Ticket #48497: change-vnstat-maintainer.diff
File change-vnstat-maintainer.diff, 2.8 KB (added by youvegotmoxie@…, 9 years ago) |
---|
-
(a) Portfile1 vs. (b) Portfile
a b 1 1 # $Id: Portfile 114431 2013-12-08 09:48:42Z and.damore@macports.org $ 2 2 3 PortSystem 1.0 3 4 4 5 name vnstat 5 version 1.11 6 revision 2 6 version 1.14 7 7 categories net 8 8 platforms darwin 9 maintainers nomaintainer9 maintainers gmail.com:youvegotmoxie 10 10 license GPL-2 11 11 description console-based network traffic monitor 12 12 long_description \ … … 14 14 a log of network traffic for the selected interface(s), it uses the network \ 15 15 interface statistics provided by the kernel as information source. This means \ 16 16 that vnStat won't actually be sniffing any traffic and also ensures light use \ 17 of system resources. 17 of system resources. 18 18 19 19 homepage http://humdi.net/vnstat/ 20 depends_lib port:gd2 20 depends_lib port:gd2 21 21 master_sites http://humdi.net/${name} 22 checksums md5 a5a113f9176cd61fb954f2ba297f5fdb \ 23 sha1 92494f38a752dcf60053af2a6d8977737da7e616 \ 24 rmd160 c7a8602c6ed86c674b14b2b8708e97f5999fb0e5 22 checksums rmd160 9cbe5d4f11d757ae19db4b38155de63a8caf6164 \ 23 sha256 f8462a47d85d0890493dc9eaeafbc725ae631aa5b103fb7f8af4ddb2314e8386 25 24 26 25 post-patch { 27 26 # fix Makefile … … 29 28 reinplace "s|${prefix}/man|${prefix}/share/man|g" ${worksrcpath}/Makefile 30 29 reinplace "s|(DESTDIR)/etc|(DESTDIR)${prefix}/etc|g" ${worksrcpath}/Makefile 31 30 reinplace "s|(DESTDIR)/var|(DESTDIR)${prefix}/var|g" ${worksrcpath}/Makefile 32 31 33 32 # fix occurrences of /var/db references in other files 34 33 reinplace "s|/var|${prefix}/var|g" ${worksrcpath}/src/common.h \ 35 34 ${worksrcpath}/cfg/vnstat.conf \ … … 39 38 reinplace "s|/var/lib|/var/db|g" ${worksrcpath}/man/vnstat.1 \ 40 39 ${worksrcpath}/man/vnstatd.1 \ 41 40 ${worksrcpath}/man/vnstati.1 42 41 43 42 # fix occurrences of /etc/db references in other files 44 43 reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/man/vnstat.1 \ 45 44 ${worksrcpath}/man/vnstat.conf.5 \ … … 61 60 post-destroot { 62 61 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} 63 62 xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name} 64 63 65 64 xinstall -m 644 -W ${worksrcpath} \ 66 65 CHANGES COPYING FAQ INSTALL INSTALL_BSD README \ 67 66 ${destroot}${prefix}/share/doc/${name} … … 70 69 ${destroot}${prefix}/share/examples/${name} 71 70 } 72 71 72 notes " 73 74 A configuration file has been installed in ${prefix}/etc/vnstat.conf 75 edit ${prefix}/etc/vnstat.conf to get started. 76 "