summaryrefslogtreecommitdiff
path: root/community/darkstat/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/darkstat/PKGBUILD')
-rw-r--r--community/darkstat/PKGBUILD25
1 files changed, 17 insertions, 8 deletions
diff --git a/community/darkstat/PKGBUILD b/community/darkstat/PKGBUILD
index 802ca496f..254b5a9c6 100644
--- a/community/darkstat/PKGBUILD
+++ b/community/darkstat/PKGBUILD
@@ -1,24 +1,33 @@
-# $Id: PKGBUILD 65108 2012-02-20 04:47:59Z spupykin $
+# $Id: PKGBUILD 67650 2012-03-13 15:19:52Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=darkstat
-pkgver=3.0.714
-pkgrel=2
+pkgver=3.0.715
+pkgrel=1
pkgdesc="Network statistics gatherer (packet sniffer)."
url="http://dmr.ath.cx/net/darkstat/"
license=("GPL")
arch=(i686 x86_64 'mips64el')
-depends=('libpcap' 'zlib')
-source=(http://dmr.ath.cx/net/darkstat/$pkgname-$pkgver.tar.bz2)
-md5sums=('eef385fadc8dbb611d3d4c4d8fa94817')
+depends=('libpcap' 'zlib' 'gcc-libs')
+source=(http://dmr.ath.cx/net/darkstat/darkstat-$pkgver.tar.bz2
+ darkstat
+ darkstat.conf)
+install=darkstat.install
+md5sums=('5b7abc7538dcd8e30667dac150e81d77'
+ '1021f95fabe16cfab4c95f6264d535e5'
+ 'aa9a9effd1e8f08860afcd6439fc94c5')
build() {
- cd $srcdir/$pkgname-$pkgver
+ cd $srcdir/darkstat-$pkgver
./configure --prefix=/usr
make
}
package() {
- cd $srcdir/$pkgname-$pkgver
+ cd $srcdir/darkstat-$pkgver
make DESTDIR=$pkgdir install
+
+ # darkstat script
+ install -D -m755 "$srcdir"/darkstat "$pkgdir"/etc/rc.d/darkstat
+ install -D -m644 "$srcdir"/darkstat.conf "$pkgdir"/etc/conf.d/darkstat.conf
}