2014-02-18 13:02:36 +00:00
|
|
|
# Template build file for "vnstat"
|
2014-02-18 12:44:24 +00:00
|
|
|
pkgname=vnstat
|
|
|
|
version=1.11
|
2014-02-18 13:37:20 +00:00
|
|
|
revision=3
|
2014-02-18 12:44:24 +00:00
|
|
|
build_style=gnu-makefile
|
2014-02-18 12:55:14 +00:00
|
|
|
short_desc="A terminal based network traffic monitor"
|
2014-02-18 12:44:24 +00: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"
|
|
|
|
checksum=b71876d817bbb6a16d31b4236e22a2eb6c39666a7f7bfea581f5ff441cade026
|
2014-02-18 12:55:14 +00:00
|
|
|
|
2014-02-18 13:37:20 +00:00
|
|
|
conf_files="/etc/vnstat.conf"
|
|
|
|
make_dirs="/var/lib/vnstat 0755 root root"
|
|
|
|
|
2014-02-18 12:55:14 +00:00
|
|
|
pre_install() {
|
|
|
|
sed -e 's,install -s,install ,g' -i Makefile
|
|
|
|
}
|
2014-02-18 13:37:20 +00:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vinstall ${FILESDIR}/service 644 usr/lib/systemd/system vnstat.service
|
|
|
|
}
|