Date: Tue, 3 Jun 2014 04:21:17 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r356280 - in head/net-mgmt/nedi: . files Message-ID: <201406030421.s534LHcW024081@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Tue Jun 3 04:21:17 2014 New Revision: 356280 URL: http://svnweb.freebsd.org/changeset/ports/356280 QAT: https://qat.redports.org/buildarchive/r356280/ Log: - Use OPTIONS helpers and remove .include <bsd.port.options.mk> - Wrap overly long lines after stage conversion, sort USES and knobs - Try to improve port description text and COMMENT line - Trim bogus EOL whitespace, fix formatting in files/pkg-message.in - Utilize @sample keyword in pkg-plist, misc. Makefile cleanups NB: version 1.0.9 was released in January, 2014 (sf.net is no longer updated). Modified: head/net-mgmt/nedi/Makefile head/net-mgmt/nedi/files/pkg-message.in head/net-mgmt/nedi/pkg-descr head/net-mgmt/nedi/pkg-plist Modified: head/net-mgmt/nedi/Makefile ============================================================================== --- head/net-mgmt/nedi/Makefile Tue Jun 3 02:54:07 2014 (r356279) +++ head/net-mgmt/nedi/Makefile Tue Jun 3 04:21:17 2014 (r356280) @@ -1,4 +1,4 @@ -# Created by: cristi <cristi@net.utcluj.ro> +# Created by: Cristian KLEIN <cristi@net.utcluj.ro> # $FreeBSD$ PORTNAME= nedi @@ -8,42 +8,41 @@ CATEGORIES= net-mgmt MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/w MAINTAINER= ports@FreeBSD.org -COMMENT= Network Discovery and Monitoring tool +COMMENT= Network discovery and monitoring tool RUN_DEPENDS= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP \ p5-Net-Telnet-Cisco>=0:${PORTSDIR}/net-mgmt/p5-Telnet-Cisco \ p5-Algorithm-Diff>=0:${PORTSDIR}/devel/p5-Algorithm-Diff \ p5-DBI>=0:${PORTSDIR}/databases/p5-DBI +USES= perl5 shebangfix tar:tgz +SHEBANG_FILES= *.pl WRKSRC= ${WRKDIR}/${PORTNAME} -USES= tar:tgz perl5 shebangfix -SHEBANG_FILES= *.pl NO_BUILD= yes USE_PHP= session snmp mysql WANT_PHP_WEB= yes -OPTIONS_DEFINE= GD - -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MGD} -USE_PHP+= gd -.endif - SUB_FILES= pkg-message PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} +OPTIONS_DEFINE= GD +GD_USE= PHP=gd + post-patch: - @${REINPLACE_CMD} -e 's|/var/nedi|${WWWDIR}|' ${WRKSRC}/html/inc/libgraph.php - @${REINPLACE_CMD} -e "s|'/etc|'${PREFIX}/etc|" ${WRKSRC}/html/inc/libmisc.php + @${REINPLACE_CMD} -e 's|/var/nedi|${WWWDIR}|' \ + ${WRKSRC}/html/inc/libgraph.php + @${REINPLACE_CMD} -e "s|'/etc|'${PREFIX}/etc|" \ + ${WRKSRC}/html/inc/libmisc.php @${FIND} ${WRKSRC} \( -name *.bak -or -name *.orig \) -delete do-install: @${MKDIR} ${STAGEDIR}${WWWDIR} (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}) ${FIND} ${STAGEDIR}${WWWDIR} -name \*.pl | ${XARGS} ${CHMOD} 755 - ${MV} ${STAGEDIR}${WWWDIR}/seedlist ${STAGEDIR}${PREFIX}/etc/nedi.seedlist.sample - ${MV} ${STAGEDIR}${WWWDIR}/nedi.conf ${STAGEDIR}${PREFIX}/etc/nedi.conf.sample + ${MV} ${STAGEDIR}${WWWDIR}/seedlist \ + ${STAGEDIR}${PREFIX}/etc/nedi.seedlist.sample + ${MV} ${STAGEDIR}${WWWDIR}/nedi.conf \ + ${STAGEDIR}${PREFIX}/etc/nedi.conf.sample .include <bsd.port.mk> Modified: head/net-mgmt/nedi/files/pkg-message.in ============================================================================== --- head/net-mgmt/nedi/files/pkg-message.in Tue Jun 3 02:54:07 2014 (r356279) +++ head/net-mgmt/nedi/files/pkg-message.in Tue Jun 3 04:21:17 2014 (r356280) @@ -1,16 +1,15 @@ - To make NeDi work, do the following: 1. In %%PREFIX%%/etc, edit 'nedi.seedlist' and 'nedi.conf'. Use the samples contained in that directory. - + 2. (Optional) Create a directory where you want NeDi to store its RRD files and link it to %%WWWDIR%%/rrd: rm -r %%WWWDIR%%/rrd mkdir -p /var/db/nedi/rrd ln -s /var/db/nedi/rrd %%WWWDIR%%/rrd - + 2. Change the directory to %%WWWDIR%%. 3. Initialize the MySQL database. NeDi will do this for you, just type @@ -21,9 +20,8 @@ To make NeDi work, do the following: 5. Add a crontab entry like this: -0 * * * * root %%WWWDIR%%/nedi.pl -c > /tmp/nedi.lastrun + 0 * * * * root %%WWWDIR%%/nedi.pl -c > /tmp/nedi.lastrun 6. Add an alias to Apache like this: -Alias /nedi %%WWWDIR%%/html - + Alias /nedi %%WWWDIR%%/html Modified: head/net-mgmt/nedi/pkg-descr ============================================================================== --- head/net-mgmt/nedi/pkg-descr Tue Jun 3 02:54:07 2014 (r356279) +++ head/net-mgmt/nedi/pkg-descr Tue Jun 3 04:21:17 2014 (r356280) @@ -1,5 +1,6 @@ -NeDi is a tool to discover and monitor you network devices. It sucks -information through SNMP or CLI from your switches and routers and +NeDi is a lightweight network management framework, which is based on a +scheduled discovery, an SQL backend, and a web-based user interface. It +sucks information through SNMP or CLI from your switches and routers and stores information (such as MACs and IPs) in a MySQL database. Later, you can use its web interface to easily locate nodes withing your Modified: head/net-mgmt/nedi/pkg-plist ============================================================================== --- head/net-mgmt/nedi/pkg-plist Tue Jun 3 02:54:07 2014 (r356279) +++ head/net-mgmt/nedi/pkg-plist Tue Jun 3 04:21:17 2014 (r356280) @@ -1,5 +1,5 @@ -etc/nedi.conf.sample -etc/nedi.seedlist.sample +@sample etc/nedi.conf.sample +@sample etc/nedi.seedlist.sample %%WWWDIR%%/README %%WWWDIR%%/contrib/1.3.6.1.4.1.3076.1.2.1.1.1.2.def %%WWWDIR%%/contrib/1.3.6.1.4.1.3854.1.2.2.1.1.def
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406030421.s534LHcW024081>