pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/netdisco Initial import of a netdisco.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d05b5ca95056
branches:  trunk
changeset: 494564:d05b5ca95056
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Wed May 25 17:06:48 2005 +0000

description:
Initial import of a netdisco.

Designed for moderate to large networks, configuration information and
connection data for network devices are retrieved by SNMP. With Netdisco you
can locate the switch port of an end-user system by IP or MAC address. Data is
stored using a SQL database for scalability and speed.

diffstat:

 net/netdisco/DESCR            |    15 +
 net/netdisco/MESSAGE          |    34 +
 net/netdisco/Makefile         |   127 +++++
 net/netdisco/PLIST            |  1014 +++++++++++++++++++++++++++++++++++++++++
 net/netdisco/distinfo         |     8 +
 net/netdisco/patches/patch-aa |    33 +
 net/netdisco/patches/patch-ab |    17 +
 net/netdisco/patches/patch-ac |    12 +
 8 files changed, 1260 insertions(+), 0 deletions(-)

diffs (truncated from 1292 to 300 lines):

diff -r 0989c00c4a55 -r d05b5ca95056 net/netdisco/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/netdisco/DESCR        Wed May 25 17:06:48 2005 +0000
@@ -0,0 +1,15 @@
+Netdisco is an Open Source web-based network management tool.
+
+Designed for moderate to large networks, configuration information and
+connection data for network devices are retrieved by SNMP. With Netdisco you
+can locate the switch port of an end-user system by IP or MAC address. Data is
+stored using a SQL database for scalability and speed.
+Cisco Discovery Protocol (CDP) optionally provides automatic discovery of the
+network topology. The network is inventoried by both device model and operating
+system (like IOS). Netdisco uses router ARP tables and L2 switch MAC forwarding
+tables to locate nodes on physical ports and track them by their IP addresses.
+For each node, a time stamped history of the ports it has visited and the IP
+addresses it has used is maintained. Netdisco gets all its data, including CDP
+topology information, with SNMP polls and DNS queries. It does not use CLI
+access and has no need for privilege passwords. Security features include a
+wire-side Wireless Access Point (AP) locator.
diff -r 0989c00c4a55 -r d05b5ca95056 net/netdisco/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/netdisco/MESSAGE      Wed May 25 17:06:48 2005 +0000
@@ -0,0 +1,34 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/05/25 17:06:49 bouyer Exp $
+
+Here is a summary of the steps needed to complete the netdisco setup.
+Please look at the documentation in ${PREFIX}/doc/ for details.
+- add the netdisco administrator(s) account(s) to the netdisco group
+- cd to ${PREFIX}/netdisco/sql/ and run ./pg_init, ./pg_run and ./pg_all
+  to create the netdisco database in postgresql.  This will prompt for a
+  password which will then be used to access the netdisco database.
+  Rememer this password as you will need it later.
+- edit ${PREFIX}/netdisco/netdisco.conf to suit your needs. You have to
+  set the database password you entered in the previous step here.
+- Add a user to the netdisco system: ${PREFIX}/netdisco/netdisco -u joebob
+  Give this user administration privileges, so that it will be able to
+  create other users though the web interface.
+- Import the OUI database:
+  ${PREFIX}/netdisco/netdisco -o
+- Add an appropriate crontab to user netdisco. ${EGDIR} contains an
+  appropriate sample.
+- Include netdisco to your apache config. ${EGDIR} contains 2 config
+  fragments: netdisco_apache.conf and netdisco_apache_dir.conf which
+  can be inclued in the httpd.conf to make netdisco available though
+  http://your.host.name/netdisco/
+  You will have to set the database password in netdisco_apache_dir.conf.
+  If you are using apache2, make sure you load mod_apreq.so in addition
+  to mod_perl.so, and that you have "PerlModule Apache::compat"
+- Make netdisco discover one of your devices:
+  ${PREFIX}/netdisco/netdisco -d devicename
+- Make netdisco discover your network topology, if supported by your
+  devices: ${PREFIX}/netdisco/netdisco -r devicename
+  If not supported by your devices, you'll have to fill in
+  ${PREFIX}/netdisco/netdisco-topology.txt.
+- start the admin daemon: /etc/rc.d/netdisco start
+===========================================================================
diff -r 0989c00c4a55 -r d05b5ca95056 net/netdisco/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/netdisco/Makefile     Wed May 25 17:06:48 2005 +0000
@@ -0,0 +1,127 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/05/25 17:06:48 bouyer Exp $
+#
+
+DISTNAME=              netdisco-0.94_with_mibs
+PKGNAME=               netdisco-0.94
+CATEGORIES=            net
+MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=netdisco/}
+
+MAINTAINER=            bouyer%NetBSD.org@localhost
+HOMEPAGE=              http://www.netdisco.org/
+COMMENT=               Open Source web-based network management tool
+
+DEPENDS+=              p5-SNMP-Info-*:../../net/p5-SNMP-Info
+DEPENDS+=              p5-Apache-DBI-*:../../databases/p5-Apache-DBI
+DEPENDS+=              p5-Apache-Session-*:../../www/p5-Apache-Session
+DEPENDS+=              p5-DBD-postgresql-*:../../databases/p5-DBD-postgresql
+DEPENDS+=              p5-DB_File-*:../../databases/p5-DB_File
+DEPENDS+=              p5-MasonX-Request-WithApacheSession-*:../../www/p5-MasonX-Request-WithApacheSession
+DEPENDS+=              p5-HTML-Parser-*:../../www/p5-HTML-Parser
+DEPENDS+=              p5-GraphViz-*:../../graphics/p5-GraphViz
+DEPENDS+=              p5-Compress-Zlib-*:../../devel/p5-Compress-Zlib
+
+USE_PKGINSTALL=                yes
+#DEINSTALL_EXTRA_TMPL+=        ${.CURDIR}/DEINSTALL
+#MESSAGE_SRC=          ${.CURDIR}/MESSAGE
+
+WRKSRC=                        ${WRKDIR}/${PKGNAME}
+
+.include "../../mk/bsd.prefs.mk"
+
+EGDIR=                 ${PREFIX}/share/examples/${PKGNAME_NOREV}
+
+USE_PERL5=     yes
+REPLACE_PERL=  bin/doc_munge
+REPLACE_PERL+=  bin/test_cdp.pl
+REPLACE_PERL+=  bin/test_fwtable.pl
+REPLACE_PERL+=  bin/test_iproute.pl
+REPLACE_PERL+=  bin/parse_kismet_ap
+REPLACE_PERL+=  netdisco
+REPLACE_PERL+=  mibs/chk_dups
+REPLACE_PERL+=  mibs/rm_cisco_dups
+REPLACE_PERL+=  mibs/chk_mibs
+REPLACE_PERL+=  mibs/snmpwalkmib
+
+SUBST_CLASSES=                 installdir path var
+SUBST_STAGE.installdir=                pre-configure
+SUBST_FILES.installdir=                sql/pg_run sql/pg_init sql/pg_back
+SUBST_FILES.installdir+=       bin/netdisco_daemon
+SUBST_FILES.installdir+=       netdisco
+SUBST_FILES.installdir+=       netdisco.conf netdisco.crontab
+SUBST_FILES.installdir+=       netdisco_apache.conf netdisco_apache_dir.conf
+SUBST_FILES.installdir+=       bin/test_cache.pl bin/test_cdp.pl
+SUBST_FILES.installdir+=       bin/test_dev.pl bin/test_stats.pl
+SUBST_FILES.installdir+=       bin/debian_install.sh
+SUBST_FILES.installdir+=       bin/test_fwtable.pl bin/test_iproute.pl
+SUBST_FILES.installdir+=       doc/INSTALL.html doc/INSTALL.pod
+SUBST_FILES.installdir+=       doc/README.pod doc/README.html
+SUBST_FILES.installdir+=       doc/UPGRADE.html doc/UPGRADE.pod
+SUBST_FILES.installdir+=       INSTALL README UPGRADE
+SUBST_FILES.installdir+=       html/doc/INSTALL.html html/doc/README.html
+SUBST_FILES.installdir+=       html/doc/UPGRADE.html html/admin_reconfig.html
+SUBST_FILES.installdir+=       netdisco.crontab
+SUBST_FILES.installdir+=       mibs/snmp.conf
+SUBST_SED.installdir=          -e "s|/usr/local/netdisco|${PREFIX}/netdisco|g"
+SUBST_MESSAGE.installdir=      "Fixing hardcoded install directory path."
+
+SUBST_STAGE.path=      pre-configure
+SUBST_FILES.path=      bin/catalyst_mac_vlan.pl bin/port_control
+SUBST_FILES.path+=     bin/test_cache.pl bin/test_dev.pl bin/test_stats.pl
+SUBST_FILES.path+=     bin/parse_mac
+SUBST_FILES.path+=     doc/INSTALL.html doc/INSTALL.pod html/doc/INSTALL.html
+SUBST_FILES.path+=     INSTALL netdisco.crontab
+SUBST_SED.path=                -e "s|/usr/local/bin|${PREFIX}/bin|g"
+SUBST_MESSAGE.path=    "Fixing hardcoded path."
+
+SUBST_STAGE.var=       pre-configure
+SUBST_FILES.var=       netdisco.conf
+SUBST_SED.var=         -e "s|@VARBASE@|${VARBASE}|g"
+SUBST_MESSAGE.var=     "Fixing data directory."
+
+NETDISCOUSER?= netdisco
+NETDISCOGROUP?=        netdisco
+BUILD_DEFS=    NETDISCOUSER NETDISCOGROUP
+
+PKG_USERS=     ${NETDISCOUSER}:${NETDISCOGROUP}::Netdisco\\ administrator:${PREFIX}/netdisco:${SH}
+PKG_GROUPS=    ${NETDISCOGROUP}
+
+PKG_SYSCONFVAR=                netdisco
+PKG_SYSCONFDIR.netdisco= ${PREFIX}/netdisco
+EGDIR=                 ${PREFIX}/share/examples/netdisco
+CONF_FILES=            ${EGDIR}/netdisco.conf ${PKG_SYSCONFDIR}/netdisco.conf
+CONF_FILES_PERMS+=     ${EGDIR}/netdisco.conf ${PKG_SYSCONFDIR}/netdisco.conf \
+                       ${NETDISCOUSER} ${NETDISCOGROUP} 0660
+CONF_FILES+=           ${EGDIR}/netdisco-topology.txt ${PKG_SYSCONFDIR}/netdisco-topology.txt
+
+MAKE_DIRS=              ${PREFIX}/netdisco ${EGDIR}
+OWN_DIRS_PERMS+=        ${VARBASE}/netdisco ${NETDISCOUSER} ${NETDISCOGROUP} 0775
+RCD_SCRIPTS=           netdisco
+
+.include "../../mk/apache.mk"
+
+do-build:
+       ${RM} -f ${WRKSRC}/html/doc/ChangeLog.txt
+       ${RM} -f ${WRKSRC}/Makefile
+       for i in INSTALL README README-API-BACKEND README-API-SHARED \
+           UPGRADE ChangeLog; do \
+               ${RM} -f ${WRKSRC}/doc/$$i ;\
+               ${MV} ${WRKSRC}/$$i ${WRKSRC}/doc/ ;\
+       done
+       cd ${WRKSRC};
+       ${FIND} . \( -name '*.orig' -o -name '*.bak' \) -exec ${RM} -f {} \;
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/bin/netdisco_daemon \
+           ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/netdisco
+       ${RM} -f ${WRKSRC}/bin/netdisco_daemon
+       cd ${WRKSRC} && ${PAX} -rw -pp . ${PREFIX}/netdisco
+       ${CHOWN} -R ${NETDISCOUSER}:${NETDISCOGROUP} ${PREFIX}/netdisco
+       ${CHMOD} 775 ${PREFIX}/netdisco/html
+       for i in netdisco.conf netdisco-topology.txt netdisco.crontab \
+           netdisco_apache.conf netdisco_apache_dir.conf; do \
+               ${MV} ${PREFIX}/netdisco/$$i ${EGDIR}/ ;\
+       done
+       ${CHGRP} -R ${APACHE_GROUP} ${PREFIX}/netdisco/mason
+       ${CHMOD} -R 775 ${PREFIX}/netdisco/mason
+
+.include "../../mk/bsd.pkg.mk"
diff -r 0989c00c4a55 -r d05b5ca95056 net/netdisco/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/netdisco/PLIST        Wed May 25 17:06:48 2005 +0000
@@ -0,0 +1,1014 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/05/25 17:06:49 bouyer Exp $
+
+netdisco/bin/catalyst_mac_vlan.pl
+netdisco/bin/debian_install.sh
+netdisco/bin/doc_munge
+netdisco/bin/fix_cvsroot
+netdisco/bin/parse_kismet_ap
+netdisco/bin/parse_mac
+netdisco/bin/port_control
+netdisco/bin/test_cache.pl
+netdisco/bin/test_cdp.pl
+netdisco/bin/test_dev.pl
+netdisco/bin/test_fwtable.pl
+netdisco/bin/test_iproute.pl
+netdisco/bin/test_stats.pl
+netdisco/doc/ChangeLog
+netdisco/doc/INSTALL
+netdisco/doc/INSTALL.html
+netdisco/doc/INSTALL.pod
+netdisco/doc/README
+netdisco/doc/README-API-BACKEND
+netdisco/doc/README-API-SHARED
+netdisco/doc/README.html
+netdisco/doc/README.pod
+netdisco/doc/UPGRADE
+netdisco/doc/UPGRADE.html
+netdisco/doc/UPGRADE.pod
+netdisco/html/admin.html
+netdisco/html/admin_chimp.gif
+netdisco/html/admin_dev.html
+netdisco/html/admin_plug.gif
+netdisco/html/admin_reconfig.html
+netdisco/html/admin_user.html
+netdisco/html/autohandler
+netdisco/html/change_pw.html
+netdisco/html/corner-bl.png
+netdisco/html/corner-br.png
+netdisco/html/corner-tl.png
+netdisco/html/corner-tr.png
+netdisco/html/device.html
+netdisco/html/device_inv.html
+netdisco/html/device_search.html
+netdisco/html/doc/INSTALL.html
+netdisco/html/doc/README.html
+netdisco/html/doc/UPGRADE.html
+netdisco/html/doc/autohandler
+netdisco/html/doc/index.html
+netdisco/html/doc/netdisco-api-backend.html
+netdisco/html/doc/netdisco-api-shared.html
+netdisco/html/duplex.html
+netdisco/html/icon_down.gif
+netdisco/html/icon_info.gif
+netdisco/html/icon_lock.gif
+netdisco/html/icon_note.gif
+netdisco/html/icon_up.gif
+netdisco/html/index.html
+netdisco/html/ip_search.html
+netdisco/html/jack_search.html
+netdisco/html/log.html
+netdisco/html/login.html
+netdisco/html/logout.html
+netdisco/html/netdiscoball.gif
+netdisco/html/netmap.html
+netdisco/html/node.html
+netdisco/html/port_info.html
+netdisco/html/port_report.html
+netdisco/html/portcontrol.html
+netdisco/html/powered_by_mason.jpg
+netdisco/html/sidebar.html
+netdisco/html/stats.html
+netdisco/html/traceroute.html
+netdisco/html/valid-html401.png
+netdisco/html/vcss.gif
+netdisco/mibs/README
+netdisco/mibs/allied/ati-mib.mib
+netdisco/mibs/allied/atswtch2.mib
+netdisco/mibs/asante/ASANTE-AH1012-MIB.txt
+netdisco/mibs/asante/AsanteSwitchMIB.txt
+netdisco/mibs/chk_dups
+netdisco/mibs/chk_mibs
+netdisco/mibs/cisco/A100-R1-MIB.my
+netdisco/mibs/cisco/ADMIN-AUTH-STATS-MIB.my
+netdisco/mibs/cisco/ADSL-DMT-LINE-MIB.my
+netdisco/mibs/cisco/ALTIGA-ADDRESS-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-BMGT-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-CAP.my
+netdisco/mibs/cisco/ALTIGA-CERT-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-DHCP-SERVER-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-DHCP-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-DNS-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-EVENT-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-FILTER-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-FTP-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-GENERAL-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-GLOBAL-REG.my
+netdisco/mibs/cisco/ALTIGA-HARDWARE-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-HTTP-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-IP-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-L2TP-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-LBSSF-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-MIB.my
+netdisco/mibs/cisco/ALTIGA-MULTILINK-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-NAT-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-PPP-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-PPPOE-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-PPTP-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-SDI-ACE-STATS-MIB.my
+netdisco/mibs/cisco/ALTIGA-SEP-STATS-MIB.my



Home | Main Index | Thread Index | Old Index