From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/vnstat/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 community/vnstat/PKGBUILD (limited to 'community/vnstat/PKGBUILD') diff --git a/community/vnstat/PKGBUILD b/community/vnstat/PKGBUILD new file mode 100644 index 000000000..7cc05f52d --- /dev/null +++ b/community/vnstat/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 93779 2013-07-10 07:27:19Z bpiotrowski $ +# Maintainer: Sergej Pupykin +# Maintainer: Bartłomiej Piotrowski +# Contributor: Thorsten Töpper + +pkgname=vnstat +pkgver=1.11 +pkgrel=7 +pkgdesc="A console-based network traffic monitor" +arch=('i686' 'x86_64') +url="http://humdi.net/vnstat/" +license=('GPL') +depends=('bash') +makedepends=('gd') +optdepends=('gd: image output') +backup=(etc/vnstat.conf) +source=(http://humdi.net/vnstat/$pkgname-$pkgver.tar.gz + service) +md5sums=('a5a113f9176cd61fb954f2ba297f5fdb' + 'df452896729db4a569005f1ebf6b57f4') + +build() { + cd $srcdir/$pkgname-$pkgver + make all SBIN=/usr/bin +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install SBIN=$pkgdir/usr/bin + + install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/vnstat.service + + install -D -m0644 examples/vnstat.cron $pkgdir/usr/share/doc/vnstat/examples/vnstat.cron + install -D -m0755 examples/vnstat.cgi $pkgdir/usr/share/doc/vnstat/examples/vnstat.cgi + sed -i 's#root##' $pkgdir/usr/share/doc/vnstat/examples/vnstat.cron +} -- cgit v1.2.3-54-g00ecf