net/vnstat: Update to 2.0

Changelog:	https://humdi.net/vnstat/CHANGES
This commit is contained in:
Mark Felder 2018-11-19 17:29:51 +00:00
parent fc3e6c152a
commit 18d3e7973a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=485333
4 changed files with 9 additions and 7 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= vnstat
PORTVERSION= 1.15
PORTVERSION= 2.0
PORTREVISION= 0
CATEGORIES= net
MASTER_SITES= https://humdi.net/vnstat/ \
@ -15,6 +15,8 @@ LICENSE= GPLv2
USE_RC_SUBR= vnstat
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1477754840
SHA256 (vnstat-1.15.tar.gz) = c3814b5baa8b627198a8debfe1dce4b4346a342523818cc8668a5497971dbc39
SIZE (vnstat-1.15.tar.gz) = 207712
TIMESTAMP = 1542644161
SHA256 (vnstat-2.0.tar.gz) = 6326648d66970802472736ee1a7037676f654b94452b141b88253343595f7e84
SIZE (vnstat-2.0.tar.gz) = 259439

View file

@ -6,7 +6,7 @@ Please add your default network interface in the 'Interface' line there
before starting vnstat service.
You can add any number of additional interfaces either in
vnstat_additional_ifaces variable in /etc/rc.conf, or with this command:
su -m %%USERS%% -c "%%PREFIX%%/bin/vnstat --create --iface <your interface>"
su -m %%USERS%% -c "%%PREFIX%%/bin/vnstat --add --iface <your interface>"
and restart vnstat service:
service vnstat restart

View file

@ -35,8 +35,8 @@ create_iface_database()
{
local iface="$1"
local descr="$2"
su -m ${vnstat_user} -c "${user_cmd} --create --iface $iface" >/dev/null 2>&1 ||
! echo "$name: Failed to create database for the $descr interface $iface" || return 1
su -m ${vnstat_user} -c "${user_cmd} --add --iface $iface" >/dev/null 2>&1 ||
! echo "$name: Failed to add database for the $descr interface $iface" || return 1
echo "$name: Created the database for the $descr interface $iface"
}