[84768] trunk/dports/net/vnstat/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat Oct 1 01:41:00 PDT 2011
Revision: 84768
http://trac.macports.org/changeset/84768
Author: ryandesign at macports.org
Date: 2011-10-01 01:40:59 -0700 (Sat, 01 Oct 2011)
Log Message:
-----------
vnstat: consolidate multiple reinplaces; fix incorrect double replacement in common.h; fix typos in comments
Modified Paths:
--------------
trunk/dports/net/vnstat/Portfile
Modified: trunk/dports/net/vnstat/Portfile
===================================================================
--- trunk/dports/net/vnstat/Portfile 2011-10-01 08:33:23 UTC (rev 84767)
+++ trunk/dports/net/vnstat/Portfile 2011-10-01 08:40:59 UTC (rev 84768)
@@ -3,6 +3,7 @@
name vnstat
version 1.11
+revision 1
categories net
platforms darwin
maintainers and.damore openmaintainer
@@ -23,29 +24,28 @@
rmd160 c7a8602c6ed86c674b14b2b8708e97f5999fb0e5
post-patch {
- #fixing Makefile
+ # fix 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
- reinplace "s|/var/lib|/var/db|g" ${worksrcpath}/man/vnstat.1
- reinplace "s|/var/lib|/var/db|g" ${worksrcpath}/man/vnstatd.1
- reinplace "s|/var/lib|/var/db|g" ${worksrcpath}/man/vnstati.1
+ # fix occurrences of /var/db references in other files
+ reinplace "s|/var|${prefix}/var|g" ${worksrcpath}/src/common.h \
+ ${worksrcpath}/cfg/vnstat.conf \
+ ${worksrcpath}/man/vnstat.1 \
+ ${worksrcpath}/man/vnstatd.1 \
+ ${worksrcpath}/man/vnstati.1
+ reinplace "s|/var/lib|/var/db|g" ${worksrcpath}/man/vnstat.1 \
+ ${worksrcpath}/man/vnstatd.1 \
+ ${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
+ # fix occurrences of /etc/db references in other files
+ reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/man/vnstat.1 \
+ ${worksrcpath}/man/vnstat.conf.5 \
+ ${worksrcpath}/man/vnstatd.1 \
+ ${worksrcpath}/man/vnstati.1 \
+ ${worksrcpath}/src/cfg.c
}
use_configure no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111001/2d6b298d/attachment.html>
More information about the macports-changes
mailing list