[84752] trunk/dports/net/vnstat/Portfile

and.damore at macports.org and.damore at macports.org
Fri Sep 30 10:11:08 PDT 2011


Revision: 84752
          http://trac.macports.org/changeset/84752
Author:   and.damore at macports.org
Date:     2011-09-30 10:11:06 -0700 (Fri, 30 Sep 2011)
Log Message:
-----------
port vnstat: homepage fixed (very wrong), version upgrade, extensive patching for hardcoded paths. Closing #30738 .

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

Modified: trunk/dports/net/vnstat/Portfile
===================================================================
--- trunk/dports/net/vnstat/Portfile	2011-09-30 14:41:25 UTC (rev 84751)
+++ trunk/dports/net/vnstat/Portfile	2011-09-30 17:11:06 UTC (rev 84752)
@@ -2,11 +2,11 @@
 PortSystem 1.0
 
 name                vnstat
-version             1.10
-revision            2
+version             1.11
 categories          net
 platforms           darwin
 maintainers         and.damore openmaintainer
+license             GPL-2
 description         console-based network traffic monitor
 long_description    \
 	vnStat is a console-based network traffic monitor for Linux and BSD that keeps \
@@ -15,18 +15,34 @@
 	that vnStat won't actually be sniffing any traffic and also ensures light use \
 	of system resources. 
 
-homepage            http://wsapi.luaforge.net/
+homepage            http://humdi.net/vnstat/
 depends_lib         port:gd2       
 master_sites        http://humdi.net/${name}
-checksums           md5     95421d968689130590348ceb80ff74a8 \
-                    sha1    813177fb55296deaf5059bb111885616f4d8a86f \
-                    rmd160  1fddc4343cb3206cce42516f7ff61024c65eed3f
+checksums           md5     a5a113f9176cd61fb954f2ba297f5fdb \
+                    sha1    92494f38a752dcf60053af2a6d8977737da7e616 \
+                    rmd160  c7a8602c6ed86c674b14b2b8708e97f5999fb0e5
 
-patchfiles          patch-Makefile.diff
 post-patch {
-    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile
-    reinplace "s|${prefix}/man|${prefix}/share/man|g" ${worksrcpath}/Makefile
-    reinplace "s|(DESTDIR)/etc/vnstat|(DESTDIR)${prefix}/etc/vnstat|g" ${worksrcpath}/Makefile
+    #fixing Makefile
+    reinplace "s|/usr/local|${prefix}|g"                 ${worksrcpath}/Makefile
+    reinplace "s|${prefix}/man|${prefix}/share/man|g"    ${worksrcpath}/Makefile
+    reinplace "s|(DESTDIR)/etc|(DESTDIR)${prefix}/etc|g" ${worksrcpath}/Makefile
+    reinplace "s|(DESTDIR)/var|(DESTDIR)${prefix}/var|g" ${worksrcpath}/Makefile
+    
+    #fixing occurencies on /var/db references in other files
+    reinplace "s|/var|${prefix}/var|g" ${worksrcpath}/src/common.h
+    reinplace "s|/var|${prefix}/var|g" ${worksrcpath}/cfg/vnstat.conf
+    reinplace "s|/var|${prefix}/var|g" ${worksrcpath}/man/vnstat.1
+    reinplace "s|/var|${prefix}/var|g" ${worksrcpath}/man/vnstatd.1
+    reinplace "s|/var|${prefix}/var|g" ${worksrcpath}/man/vnstati.1
+
+    #fixing occurencies on /etc/db references in other files
+    reinplace "s|/var|${prefix}/var|g" ${worksrcpath}/src/common.h
+    reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/man/vnstat.1
+    reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/man/vnstat.conf.5
+    reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/man/vnstatd.1
+    reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/man/vnstati.1
+    reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/src/cfg.c
 }
 
 use_configure       no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110930/a12a0634/attachment.html>


More information about the macports-changes mailing list