blob: ee27a770faba5162fceb2fa6a3505c1fa9c9f77c (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=pmacct
pkgver=1.7.8
pkgrel=1
pkgdesc="Measure, account, classify, aggregate and export IPv4 and IPv6 traffic"
url="http://www.pmacct.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
autoconf
automake
bsd-compat-headers
hiredis-dev
jansson-dev
libmaxminddb-dev
libnetfilter_log-dev
libpcap-dev
libpq-dev
libtool
mariadb-connector-c-dev
numactl-dev
rabbitmq-c-dev
sqlite-dev
zlib-dev
"
subpackages="$pkgname-doc $pkgname-openrc"
source="http://www.pmacct.net/pmacct-$pkgver.tar.gz
pmacctd.initd
pmacctd.confd
pmacctd.conf
sfacctd.conf
nfacctd.conf
uacctd.conf
"
build() {
CFLAGS="$CFLAGS -flto=auto" \
CXXFLAGS="$CXXFLAGS -flto=auto" \
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-ebfp \
--enable-geoipv2 \
--enable-pgsql \
--enable-mysql \
--enable-rabbitmq \
--enable-redis \
--enable-sqlite3 \
--enable-jansson \
--enable-nflog
make
}
package() {
make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/${pkgname}d.initd "$pkgdir"/etc/init.d/pmacctd
install -m644 -D "$srcdir"/${pkgname}d.confd "$pkgdir"/etc/conf.d/pmacctd
install -m644 -D "$srcdir"/pmacctd.conf "$pkgdir"/etc/pmacctd.conf
install -m644 -D "$srcdir"/nfacctd.conf "$pkgdir"/etc/nfacctd.conf
install -m644 -D "$srcdir"/sfacctd.conf "$pkgdir"/etc/sfacctd.conf
install -m644 -D "$srcdir"/uacctd.conf "$pkgdir"/etc/uacctd.conf
ln -s /etc/init.d/pmacctd "$pkgdir"/etc/init.d/nfacctd
ln -s /etc/init.d/pmacctd "$pkgdir"/etc/init.d/sfacctd
ln -s /etc/init.d/pmacctd "$pkgdir"/etc/init.d/uacctd
mkdir -p "$pkgdir"/usr/share/doc/pmacct/sql
cp sql/README.* "$pkgdir"/usr/share/doc/pmacct
cp sql/* "$pkgdir"/usr/share/doc/pmacct/sql
}
sha512sums="
df576644688ddb1957aa1583b101b96d86ab404c1416e0709b1bc85d691d13841bdb92a37a4526bc9273101dd11e3134d2fb35c06d2cbcde8e5bf7e84751a1c2 pmacct-1.7.8.tar.gz
62418cf66d44099ca93926d3ef9fc2d9b93922fd6edbb1d079d4f10063ad63bf922e60ebf128a86282bd0891afbddc380f9723fa1e82e128dd79feccc759645d pmacctd.initd
6078607dde8619f8fa5698f217c40a7e46ed85843923abecc87652d2e9df6db677898ee1965367247e6ac838d907533a8b1c7ab0515f3f2dc6f3fd4eb14bd5be pmacctd.confd
119f69c0ba49609ddbe8455cfa53cb45f94b5dc26b745292bc30422f97a3002dfc5e8b6d63ef17e8a8a5497adbcd64c9edf4476336e5c27144e1d2094a8e6c0a pmacctd.conf
a02d3b0c2ce56a11d965c395033ebec8e64581b7e9f60a128e8864521eeacf69a0d6a3994b47d3f3c252cd4b8ebbdc3406711fe305a80267aa151bc2da60f93f sfacctd.conf
8534411d0bb2c56d627c30f7fa60253fe5a4a2cf3119eb429f414d71cf181fa1ce94b1bb31d5e0f9fbf996afeb2cf7af39e14bd86948f00de8d2ee44ad874434 nfacctd.conf
a02d3b0c2ce56a11d965c395033ebec8e64581b7e9f60a128e8864521eeacf69a0d6a3994b47d3f3c252cd4b8ebbdc3406711fe305a80267aa151bc2da60f93f uacctd.conf
"
|