diff --git a/srcpkgs/vnstat/files/vnstatd/run b/srcpkgs/vnstat/files/vnstatd/run new file mode 100755 index 00000000000..ea3a9ba02bd --- /dev/null +++ b/srcpkgs/vnstat/files/vnstatd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec vnstatd -n diff --git a/srcpkgs/vnstat/template b/srcpkgs/vnstat/template index e3558c197cd..c9480b876d5 100644 --- a/srcpkgs/vnstat/template +++ b/srcpkgs/vnstat/template @@ -1,7 +1,7 @@ # Template build file for "vnstat" pkgname=vnstat version=1.12 -revision=1 +revision=2 build_style=gnu-makefile short_desc="A terminal based network traffic monitor" maintainer="Jan S. " @@ -12,11 +12,14 @@ checksum=af1050d9c1b22d4b9742fe0d1818de9eb1037b8e7f9ba67b962e108d8527be69 conf_files="/etc/vnstat.conf" make_dirs="/var/lib/vnstat 0755 root root" +build_options="systemd" pre_install() { sed -e 's,install -s,install ,g' -i Makefile } - post_install() { - vinstall ${FILESDIR}/service 644 usr/lib/systemd/system vnstat.service + if [ "$build_option_systemd" ]; then + vinstall ${FILESDIR}/service 644 usr/lib/systemd/system vnstat.service + fi + vsv vnstatd }