void-packages/srcpkgs/vnstat/template

26 lines
703 B
Text
Raw Normal View History

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.13
revision=1
2014-02-18 12:44:24 +00:00
build_style=gnu-makefile
short_desc="A terminal based network traffic monitor"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
2014-02-18 12:44:24 +00:00
homepage="http://humdi.net/vnstat/"
license="GPL-2"
distfiles="http://humdi.net/vnstat/${pkgname}-${version}.tar.gz"
checksum=6f4e2599ebb195b25f499d3e2e865aa14da336dfc9cc03a79181aa71f7ed99cd
conf_files="/etc/vnstat.conf"
make_dirs="/var/lib/vnstat 0755 root root"
2014-10-13 12:11:35 +00:00
build_options="systemd"
pre_install() {
sed -e 's,install -s,install ,g' -i Makefile
}
post_install() {
2014-10-13 12:11:35 +00:00
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/service 644 usr/lib/systemd/system vnstat.service
fi
vsv vnstatd
}