mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-14 11:03:49 +02:00
vnstat: added runit service.
This commit is contained in:
parent
aee6f3e3ce
commit
5d961943a9
2 changed files with 8 additions and 3 deletions
2
srcpkgs/vnstat/files/vnstatd/run
Executable file
2
srcpkgs/vnstat/files/vnstatd/run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec vnstatd -n
|
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for "vnstat"
|
# Template build file for "vnstat"
|
||||||
pkgname=vnstat
|
pkgname=vnstat
|
||||||
version=1.12
|
version=1.12
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
short_desc="A terminal based network traffic monitor"
|
short_desc="A terminal based network traffic monitor"
|
||||||
maintainer="Jan S. <jan.schreib@gmail.com>"
|
maintainer="Jan S. <jan.schreib@gmail.com>"
|
||||||
|
@ -12,11 +12,14 @@ checksum=af1050d9c1b22d4b9742fe0d1818de9eb1037b8e7f9ba67b962e108d8527be69
|
||||||
|
|
||||||
conf_files="/etc/vnstat.conf"
|
conf_files="/etc/vnstat.conf"
|
||||||
make_dirs="/var/lib/vnstat 0755 root root"
|
make_dirs="/var/lib/vnstat 0755 root root"
|
||||||
|
build_options="systemd"
|
||||||
|
|
||||||
pre_install() {
|
pre_install() {
|
||||||
sed -e 's,install -s,install ,g' -i Makefile
|
sed -e 's,install -s,install ,g' -i Makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
vinstall ${FILESDIR}/service 644 usr/lib/systemd/system vnstat.service
|
vinstall ${FILESDIR}/service 644 usr/lib/systemd/system vnstat.service
|
||||||
|
fi
|
||||||
|
vsv vnstatd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue