2014-02-18 14:02:36 +01:00
|
|
|
# Template build file for "vnstat"
|
2014-02-18 13:44:24 +01:00
|
|
|
pkgname=vnstat
|
2014-09-01 22:41:38 +02:00
|
|
|
version=1.12
|
2014-10-13 14:11:35 +02:00
|
|
|
revision=2
|
2014-02-18 13:44:24 +01:00
|
|
|
build_style=gnu-makefile
|
2014-02-18 13:55:14 +01:00
|
|
|
short_desc="A terminal based network traffic monitor"
|
2014-02-18 13:44:24 +01:00
|
|
|
maintainer="Jan S. <jan.schreib@gmail.com>"
|
|
|
|
homepage="http://humdi.net/vnstat/"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://humdi.net/vnstat/${pkgname}-${version}.tar.gz"
|
2014-09-01 22:41:38 +02:00
|
|
|
checksum=af1050d9c1b22d4b9742fe0d1818de9eb1037b8e7f9ba67b962e108d8527be69
|
2014-02-18 13:55:14 +01:00
|
|
|
|
2014-02-18 14:37:20 +01:00
|
|
|
conf_files="/etc/vnstat.conf"
|
|
|
|
make_dirs="/var/lib/vnstat 0755 root root"
|
2014-10-13 14:11:35 +02:00
|
|
|
build_options="systemd"
|
2014-02-18 14:37:20 +01:00
|
|
|
|
2014-02-18 13:55:14 +01:00
|
|
|
pre_install() {
|
|
|
|
sed -e 's,install -s,install ,g' -i Makefile
|
|
|
|
}
|
2014-02-18 14:37:20 +01:00
|
|
|
post_install() {
|
2014-10-13 14:11:35 +02:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/service 644 usr/lib/systemd/system vnstat.service
|
|
|
|
fi
|
|
|
|
vsv vnstatd
|
2014-02-18 14:37:20 +01:00
|
|
|
}
|