blob: 441c560fa8ccf5777ae01890b2457028d130fcaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $Id: PKGBUILD 95671 2013-08-15 12:15:55Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=darkstat
pkgver=3.0.716
pkgrel=2
pkgdesc="Network statistics gatherer (packet sniffer)"
url="http://dmr.ath.cx/net/darkstat/"
license=("GPL")
arch=(i686 x86_64)
depends=('libpcap' 'zlib' 'gcc-libs')
backup=('etc/conf.d/darkstat.conf')
source=(http://dmr.ath.cx/net/darkstat/darkstat-$pkgver.tar.bz2
darkstat.service
darkstat.conf)
install=darkstat.install
md5sums=('f334d3b8acd45cd06b5929a249abebe2'
'e28c56657502ce3e62c1fc6bf5ce59f7'
'aa9a9effd1e8f08860afcd6439fc94c5')
build() {
cd $srcdir/darkstat-$pkgver
./configure --prefix=/usr --sbindir=/usr/bin
make
}
package() {
cd $srcdir/darkstat-$pkgver
make DESTDIR=$pkgdir install
install -D -m644 "$srcdir"/darkstat.conf "$pkgdir"/etc/conf.d/darkstat.conf
install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
}
|