diff --git a/net/vnstat/Makefile b/net/vnstat/Makefile index 2397a693e67a..000fbf5bc658 100644 --- a/net/vnstat/Makefile +++ b/net/vnstat/Makefile @@ -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 diff --git a/net/vnstat/distinfo b/net/vnstat/distinfo index d0fea63e1d5f..89ef9c7e9bfc 100644 --- a/net/vnstat/distinfo +++ b/net/vnstat/distinfo @@ -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 diff --git a/net/vnstat/files/pkg-message.in b/net/vnstat/files/pkg-message.in index 327385460a7d..ec25e0504453 100644 --- a/net/vnstat/files/pkg-message.in +++ b/net/vnstat/files/pkg-message.in @@ -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 " +su -m %%USERS%% -c "%%PREFIX%%/bin/vnstat --add --iface " and restart vnstat service: service vnstat restart diff --git a/net/vnstat/files/vnstat.in b/net/vnstat/files/vnstat.in index f4b9263748f8..118db4eccfe2 100644 --- a/net/vnstat/files/vnstat.in +++ b/net/vnstat/files/vnstat.in @@ -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" }