[21305] trunk/dports/net/nrg/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 19 22:01:49 PST 2007


Revision: 21305
          http://trac.macosforge.org/projects/macports/changeset/21305
Author:   markd at macports.org
Date:     2007-01-19 22:01:48 -0800 (Fri, 19 Jan 2007)

Log Message:
-----------
Update to 0.99.27.

Modified Paths:
--------------
    trunk/dports/net/nrg/Portfile

Modified: trunk/dports/net/nrg/Portfile
===================================================================
--- trunk/dports/net/nrg/Portfile	2007-01-20 04:11:00 UTC (rev 21304)
+++ trunk/dports/net/nrg/Portfile	2007-01-20 06:01:48 UTC (rev 21305)
@@ -3,10 +3,9 @@
 PortSystem	1.0
 
 name				nrg   
-version				0.99.26
-revision			2
+version				0.99.27
 categories			net
-maintainers			markd at opendarwin.org
+maintainers			markd at macports.org
 platforms			darwin
 
 description			Network Resource Grapher
@@ -17,15 +16,11 @@
 				while providing short and long-term graph web pages just like MRTG.
 
 homepage			http://nrg.hep.wisc.edu/
-					
 master_sites		        ftp://noc.hep.wisc.edu/pub/src/nrg/
-
-checksums			md5 688a2d0efd407a7b41b854b4888bb543
-
+checksums			md5 c38e6b27bc99f8f7fd825bc6e1a44f68
 depends_lib			port:rrdtool
+patchfiles			patch-nrg-discover-tcp.in.diff
 
-patchfiles                      patch-nrg-discover-tcp.in.diff
-
 configure.pre_args		--prefix=${prefix}/var/${name}
 
 configure.args               	--bindir=${prefix}/bin \
@@ -53,21 +48,7 @@
 
 post-patch {
 
-### NET-SNMP bug fixes ###
-        reinplace "s|\$snmp_args \$system -c \$passwd|\$snmp_args -c \$passwd \$system|g" \
-                "${worksrcpath}/etc/run-star-tail.pl.in"
-
-### roverpingd bug fixes ###
-	reinplace "s|case MAXINT|case INT_MAX|g" \
-		"${worksrcpath}/roverpingd/write_stats.c"
-
-### Misc bug fixes ###
-        reinplace "s|@prefix@/table-ping-latency.cgi.tm|@prefix@/templates/table-ping-latency.cgi.tm|g" \
-                "${worksrcpath}/examples/Default.conf.in"
-
-        reinplace "s|@prefix@/table-ping-loss.cgi.tm|@prefix@/templates/table-ping-loss.cgi.tm|g" \
-                "${worksrcpath}/examples/Default.conf.in"
-
+### Path fixes ###
         reinplace "s|@prefix@/bin|@bindir@|g" \
                 ${worksrcpath}/examples/NRG.mconf.in \
                 ${worksrcpath}/src/nrg-spiketrimmer.in
@@ -75,50 +56,40 @@
         eval reinplace "s|@prefix@/bin|@bindir@|g" \
                 [glob ${worksrcpath}/templates/*.in]
 
-        eval reinplace "s|@prefix@/bin|@bindir@|g" \
-                [glob ${worksrcpath}/discoverers/*.in]
-
-
 #### Make NRG page title the way I want it ####
        reinplace "s|Somesite's NRG Home Page|NRG Home Page|g" \
                "${worksrcpath}/examples/Makefile.ops.in"
 
 	
 #### Fix paths for proper destrooting ####
-
 	reinplace "s|exec_prefix = @prefix@|exec_prefix = ${destroot}@prefix@|g" \
 		${worksrcpath}/Makefile.in
-
 	reinplace "s|prefix = @prefix@|prefix = ${destroot}@prefix@|g" \
 		${worksrcpath}/Makefile.in
-
 	reinplace "s|BIN_DIR = @bindir@|BIN_DIR = ${destroot}@bindir@|g" \
 		${worksrcpath}/Makefile.in
-
 	reinplace "s|ETC_DIR = \${prefix}/etc|ETC_DIR = ${destroot}@sysconfdir@|g" \
 		${worksrcpath}/Makefile.in
-
 	reinplace "s|TEMPLATE_DIR = \${prefix}/templates|TEMPLATE_DIR = ${destroot}@prefix@/templates|g" \
 		${worksrcpath}/Makefile.in
-
 	reinplace "s|EXAMPLE_DIR = \${prefix}/examples|EXAMPLE_DIR = ${destroot}@datadir@/doc/nrg/examples|g" \
 		${worksrcpath}/Makefile.in
-
 	reinplace "s|HTML_DIR = \${prefix}/html|HTML_DIR = ${destroot}@datadir@/doc/nrg/html|g" \
 		${worksrcpath}/Makefile.in
-
 	reinplace "s|ARCHIVE_DIR = \${prefix}/archive|ARCHIVE_DIR = ${destroot}@prefix@/archive|g" \
 		${worksrcpath}/Makefile.in
-
 	reinplace "s|CONTRIB_DIR = \${prefix}/contrib|CONTRIB_DIR = ${destroot}@datadir@/doc/nrg/contrib|g" \
 		${worksrcpath}/Makefile.in
-
 }
 
 post-destroot {
 # Install images to \${prefix}/var/nrg/web/icons
-xinstall -d -m 755 ${destroot}${prefix}/var/${name}/web/icons
-eval xinstall -m 755 [glob ${worksrcpath}/images/*.*] ${destroot}${prefix}/var/${name}/web/icons
+	xinstall -d -m 755 ${destroot}${prefix}/var/${name}/web/icons
+	eval xinstall -m 755 [glob ${worksrcpath}/images/*.*] ${destroot}${prefix}/var/${name}/web/icons
+
+# Rename Site.mconf so graphed devices won't get rewritten on port upgrades
+	file rename ${destroot}${prefix}/var/${name}/Site.mconf \
+		${destroot}${prefix}/var/${name}/Site.mconf.sample
 }
 
 post-activate {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070119/45f1d42e/attachment.html


More information about the macports-changes mailing list