Skip to content

Commit

Permalink
vnstat: fix references in example files
Browse files Browse the repository at this point in the history
* remove platforms line
  • Loading branch information
aeiouaeiouaeiouaeiouaeiouaeiou authored and reneeotten committed Nov 8, 2022
1 parent a128eec commit 2626a5e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions net/vnstat/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ legacysupport.newest_darwin_requires_legacy 13

name vnstat
version 2.10
revision 0
revision 1
categories net
platforms darwin
maintainers nomaintainer
license GPL-2
description console-based network traffic monitor
Expand Down Expand Up @@ -40,13 +39,20 @@ post-patch {
reinplace "s|/var/lib|/var/db|g" ${worksrcpath}/man/vnstat.1 \
${worksrcpath}/man/vnstatd.8 \
${worksrcpath}/man/vnstati.1

# 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.8 \
${worksrcpath}/man/vnstati.1 \
${worksrcpath}/src/cfg.c
# fix occurrences of /usr/bin/vnstat references in example files
reinplace "s|/usr/bin/vnstat|${prefix}/bin/vnstat|g" \
${worksrcpath}/examples/vnstat-json.cgi \
${worksrcpath}/examples/vnstat-json.php \
${worksrcpath}/examples/vnstat-metrics.cgi \
${worksrcpath}/examples/vnstat.cgi
reinplace "s|/usr/bin/vnstati|${prefix}/bin/vnstati|g" \
${worksrcpath}/examples/vnstat.cgi
}

destroot.keepdirs ${destroot}${prefix}/var/db/vnstat
Expand Down

0 comments on commit 2626a5e

Please sign in to comment.