blob: ea90751cf0bd68abb621c00fcd28da18966f3348 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=pmacct
pkgver=0.12.4
pkgrel=2
pkgdesc="Measure, account, classify, aggregate and export IPv4 and IPv6 traffic"
url="http://www.pmacct.net/"
license="GPL"
depends=
makedepends="libpcap-dev postgresql-dev"
install=
subpackages="$pkgname-doc"
source="http://www.pmacct.net/$pkgname-$pkgver.tar.gz
pmacct.initd
pmacct.confd
pmacctd.conf"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
# apply patches here
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-pgsql \
--enable-64bit \
--enable-threads \
--enable-ulog
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -m644 -D "$srcdir"/pmacctd.conf "$pkgdir"/etc/pmacctd.conf
mkdir -p $pkgdir/usr/share/doc/pmacct/examples
mkdir -p $pkgdir/usr/share/doc/pmacct/sql
cp examples/* $pkgdir/usr/share/doc/pmacct/examples
cp sql/README.* $pkgdir/usr/share/doc/pmacct
cp sql/* $pkgdir/usr/share/doc/pmacct/sql
}
md5sums="72098ff945e1ddaa77d7f0b3531fa765 pmacct-0.12.4.tar.gz
c2427b6a32a4eb649a075a977f5b2c42 pmacct.initd
394bf0687572261e90eecd70c33c8ede pmacct.confd
6ea97965b3fdfceb6b5c0ce2cbf01a92 pmacctd.conf"
|