aboutsummaryrefslogtreecommitdiff
path: root/net/vnstat
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2014-12-01 14:32:17 +0000
committerMark Felder <feld@FreeBSD.org>2014-12-01 14:32:17 +0000
commitb074553626364606cf8c1ba9b30fc3a91da7e6a9 (patch)
treecb8a2a8843d790496d8202f9991b693657ba6152 /net/vnstat
parentd31be09f4f6ff69a0eebbbb971c1ec2a8777bab6 (diff)
downloadports-b074553626364606cf8c1ba9b30fc3a91da7e6a9.tar.gz
ports-b074553626364606cf8c1ba9b30fc3a91da7e6a9.zip
Notes
Diffstat (limited to 'net/vnstat')
-rw-r--r--net/vnstat/Makefile13
-rw-r--r--net/vnstat/distinfo4
-rw-r--r--net/vnstat/files/pkg-message.in4
-rw-r--r--net/vnstat/files/vnstat.in6
4 files changed, 11 insertions, 16 deletions
diff --git a/net/vnstat/Makefile b/net/vnstat/Makefile
index 6d3ed3ebc4d0..a13e32eb5301 100644
--- a/net/vnstat/Makefile
+++ b/net/vnstat/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= vnstat
-PORTVERSION= 1.11
-PORTREVISION= 6
+PORTVERSION= 1.12
CATEGORIES= net
MASTER_SITES= http://humdi.net/vnstat/ \
http://mirror.mcx2.org/
@@ -11,16 +10,19 @@ MASTER_SITES= http://humdi.net/vnstat/ \
MAINTAINER= feld@FreeBSD.org
COMMENT= Console-based network traffic monitor
+LICENSE= GPLv2
+
MAKE_ARGS= CC="${CC}" CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
INSTALL_TARGET= bsdinstall
USE_RC_SUBR= vnstat
+USES= gmake
USERS= vnstat
GROUPS= vnstat
-PORTDOCS= README INSTALL_BSD UPGRADE vnstat-cron
+PORTDOCS= README INSTALL_BSD UPGRADE
SUB_FILES= pkg-message
SUB_LIST= USERS=${USERS} \
GROUPS=${GROUPS}
@@ -40,11 +42,6 @@ ALL_TARGET="vnstat"
PLIST_SUB+= GUI="@comment "
.endif
-post-extract:
- @cd ${WRKSRC} && ${CP} examples/vnstat.cron vnstat-cron
- @${REINPLACE_CMD} -e 's|/usr/bin|/usr/local/bin|g' \
- -e 's|ls /var/lib|ls -l /var/db|g' ${WRKSRC}/vnstat-cron
-
post-patch:
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
${WRKSRC}/src/cfg.c
diff --git a/net/vnstat/distinfo b/net/vnstat/distinfo
index a355ee24e987..430bd40b9e8d 100644
--- a/net/vnstat/distinfo
+++ b/net/vnstat/distinfo
@@ -1,2 +1,2 @@
-SHA256 (vnstat-1.11.tar.gz) = b71876d817bbb6a16d31b4236e22a2eb6c39666a7f7bfea581f5ff441cade026
-SIZE (vnstat-1.11.tar.gz) = 79075
+SHA256 (vnstat-1.12.tar.gz) = af1050d9c1b22d4b9742fe0d1818de9eb1037b8e7f9ba67b962e108d8527be69
+SIZE (vnstat-1.12.tar.gz) = 98435
diff --git a/net/vnstat/files/pkg-message.in b/net/vnstat/files/pkg-message.in
index 5d6672aa9a37..202fe8bbbbb3 100644
--- a/net/vnstat/files/pkg-message.in
+++ b/net/vnstat/files/pkg-message.in
@@ -1,9 +1,7 @@
###########################################################################
vnstat has been installed.
-This port neeeds a cron entry. Please copy the contents of:
-%%DOCSDIR%%/vnstat-cron to your crontab. A Sample
-configuration file has be installed in %%PREFIX%%/etc/
+A Sample configuration file has be installed in %%PREFIX%%/etc/
For more information about vnStat use "man vnstat" or visit:
http://humdi.net/vnstat/
diff --git a/net/vnstat/files/vnstat.in b/net/vnstat/files/vnstat.in
index 7e90ada0eabc..ca804433d9c2 100644
--- a/net/vnstat/files/vnstat.in
+++ b/net/vnstat/files/vnstat.in
@@ -17,9 +17,9 @@ rcvar=vnstat_enable
load_rc_config $name
: ${vnstat_enable:=NO}
-: ${vnstat_pidfile:=/var/run/vnstat/vnstat.pid}
-: ${vnstat_config:=%%PREFIX%%/etc/vnstat.conf}
-: ${vnstat_flags:="-d --noadd"}
+: ${vnstat_pidfile=/var/run/vnstat/vnstat.pid}
+: ${vnstat_config=%%PREFIX%%/etc/vnstat.conf}
+: ${vnstat_flags="-d --noadd"}
: ${vnstat_user:=%%USERS%%}
: ${vnstat_group:=%%GROUPS%%}