vnstat: create /var/lib/vnstat; add systemd service.
This commit is contained in:
parent
c5de701fc4
commit
713da3d1fe
2 changed files with 17 additions and 2 deletions
9
srcpkgs/vnstat/files/service
Normal file
9
srcpkgs/vnstat/files/service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Network traffic monitor
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/vnstatd -n
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,8 +1,7 @@
|
|||
# Template build file for "vnstat"
|
||||
pkgname=vnstat
|
||||
version=1.11
|
||||
revision=2
|
||||
conf_files="/etc/vnstat.conf"
|
||||
revision=3
|
||||
build_style=gnu-makefile
|
||||
short_desc="A terminal based network traffic monitor"
|
||||
maintainer="Jan S. <jan.schreib@gmail.com>"
|
||||
|
@ -11,6 +10,13 @@ license="GPL-2"
|
|||
distfiles="http://humdi.net/vnstat/${pkgname}-${version}.tar.gz"
|
||||
checksum=b71876d817bbb6a16d31b4236e22a2eb6c39666a7f7bfea581f5ff441cade026
|
||||
|
||||
conf_files="/etc/vnstat.conf"
|
||||
make_dirs="/var/lib/vnstat 0755 root root"
|
||||
|
||||
pre_install() {
|
||||
sed -e 's,install -s,install ,g' -i Makefile
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vinstall ${FILESDIR}/service 644 usr/lib/systemd/system vnstat.service
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue