Ticket #48497: change-vnstat-maintainer.diff

File change-vnstat-maintainer.diff, 2.8 KB (added by youvegotmoxie@…, 9 years ago)

updated patch

  • (a) Portfile1 vs. (b) Portfile

    a b  
    11# $Id: Portfile 114431 2013-12-08 09:48:42Z and.damore@macports.org $
     2
    23PortSystem 1.0
    34
    45name                vnstat
    5 version             1.11
    6 revision            2
     6version             1.14
    77categories          net
    88platforms           darwin
    9 maintainers         nomaintainer
     9maintainers         gmail.com:youvegotmoxie
    1010license             GPL-2
    1111description         console-based network traffic monitor
    1212long_description    \
     
    1414        a log of network traffic for the selected interface(s), it uses the network \
    1515        interface statistics provided by the kernel as information source.  This means \
    1616        that vnStat won't actually be sniffing any traffic and also ensures light use \
    17         of system resources. 
     17        of system resources.
    1818
    1919homepage            http://humdi.net/vnstat/
    20 depends_lib         port:gd2       
     20depends_lib         port:gd2
    2121master_sites        http://humdi.net/${name}
    22 checksums           md5     a5a113f9176cd61fb954f2ba297f5fdb \
    23                     sha1    92494f38a752dcf60053af2a6d8977737da7e616 \
    24                     rmd160  c7a8602c6ed86c674b14b2b8708e97f5999fb0e5
     22checksums           rmd160              9cbe5d4f11d757ae19db4b38155de63a8caf6164 \
     23                                        sha256    f8462a47d85d0890493dc9eaeafbc725ae631aa5b103fb7f8af4ddb2314e8386
    2524
    2625post-patch {
    2726    # fix Makefile
     
    2928    reinplace "s|${prefix}/man|${prefix}/share/man|g"    ${worksrcpath}/Makefile
    3029    reinplace "s|(DESTDIR)/etc|(DESTDIR)${prefix}/etc|g" ${worksrcpath}/Makefile
    3130    reinplace "s|(DESTDIR)/var|(DESTDIR)${prefix}/var|g" ${worksrcpath}/Makefile
    32    
     31
    3332    # fix occurrences of /var/db references in other files
    3433    reinplace "s|/var|${prefix}/var|g"  ${worksrcpath}/src/common.h \
    3534                                        ${worksrcpath}/cfg/vnstat.conf \
     
    3938    reinplace "s|/var/lib|/var/db|g"    ${worksrcpath}/man/vnstat.1 \
    4039                                        ${worksrcpath}/man/vnstatd.1 \
    4140                                        ${worksrcpath}/man/vnstati.1
    42    
     41
    4342    # fix occurrences of /etc/db references in other files
    4443    reinplace "s|/etc|${prefix}/etc|g"  ${worksrcpath}/man/vnstat.1 \
    4544                                        ${worksrcpath}/man/vnstat.conf.5 \
     
    6160post-destroot {
    6261    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    6362    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
    64    
     63
    6564    xinstall -m 644 -W ${worksrcpath} \
    6665        CHANGES COPYING FAQ INSTALL INSTALL_BSD README \
    6766        ${destroot}${prefix}/share/doc/${name}
     
    7069        ${destroot}${prefix}/share/examples/${name}
    7170}
    7271
     72notes "
     73
     74A configuration file has been installed in ${prefix}/etc/vnstat.conf
     75edit ${prefix}/etc/vnstat.conf to get started.
     76"