1 # Contributor: Alexander Drozdov <adrozdoff@gmail.com>
3 # note: if the pkgver had been '0.99-10' then use an underscore. like '0.99_10'
6 pkgdesc="A userspace network accounting daemon"
8 url="http://alioth.debian.org/projects/pkg-ulog-acctd"
11 backup=(etc/ulog-acctd.conf)
12 source=(http://alioth.debian.org/frs/download.php/949/${pkgname}_${pkgver}.orig.tar.gz
15 ulog-acctd-makefile.patch
16 ulog-acctd-logfile-perms.patch)
17 md5sums=(faa701ef5d9ffd0e783a58e339afb336
18 8bac02c04576427be86ca4cc8aee64fb
19 02a872029ed4120881aa5c97dec5f5d3
20 5461f26b28a4e8272230f660a7347dbc
21 2d96d0217d210042df6af79b2a729a9b)
24 cd $startdir/src/$pkgname-$pkgver.orig
26 patch -p0 < ../ulog-acctd-makefile.patch
27 patch -p0 < ../ulog-acctd-logfile-perms.patch
32 install -d $startdir/pkg/usr/sbin
33 install -d $startdir/pkg/var/log/$pkgname
34 install -d $startdir/pkg/usr/man/man8
35 install -d $startdir/pkg/etc/logrotate.d
36 install -d $startdir/pkg/etc/rc.d
38 install -m 755 $pkgname $startdir/pkg/usr/sbin/
39 install -m 644 $pkgname.conf $startdir/pkg/etc/
40 install -m 644 ../doc/ulog-acctd.8 $startdir/pkg/usr/man/man8/
41 install -m 755 $startdir/src/$pkgname $startdir/pkg/etc/rc.d/
42 install -m 644 $startdir/src/ulog-acctd.logrotate $startdir/pkg/etc/logrotate.d/ulog-acctd