mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-03 11:22:56 +02:00
vnstat: remove systemd build option (#1736).
This commit is contained in:
parent
e2d43b87ba
commit
6e230fc011
2 changed files with 1 additions and 17 deletions
|
@ -1,9 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Network traffic monitor
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/sbin/vnstatd -n
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for "vnstat"
|
# Template build file for "vnstat"
|
||||||
pkgname=vnstat
|
pkgname=vnstat
|
||||||
version=1.14
|
version=1.14
|
||||||
revision=2
|
revision=3
|
||||||
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="Eivind Uggedal <eivind@uggedal.com>"
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
||||||
|
@ -13,14 +13,7 @@ make_install_args="SBIN=${DESTDIR}/usr/bin"
|
||||||
|
|
||||||
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() {
|
|
||||||
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
|
|
||||||
fi
|
|
||||||
vsv vnstatd
|
vsv vnstatd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue