aboutsummaryrefslogtreecommitdiffstats
path: root/main/pmacct/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-10-26 09:29:10 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-10-26 09:29:10 +0000
commit9209ca280e67dd06672435c23e23d3f9f7e8aaa8 (patch)
tree479d809171f57bc74bc8ea0f7728d3515bb4194e /main/pmacct/APKBUILD
parent8ff4faf39092bc7c8e46baa18d9f026bb8c7cbd2 (diff)
downloadaports-9209ca280e67dd06672435c23e23d3f9f7e8aaa8.tar.bz2
aports-9209ca280e67dd06672435c23e23d3f9f7e8aaa8.tar.xz
testing/pmacct: moved to main
Diffstat (limited to 'main/pmacct/APKBUILD')
-rw-r--r--main/pmacct/APKBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/main/pmacct/APKBUILD b/main/pmacct/APKBUILD
new file mode 100644
index 0000000000..83d0c547af
--- /dev/null
+++ b/main/pmacct/APKBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Leonardo Arena <rnalrd@gmail.com>
+pkgname=pmacct
+pkgver=0.12.4
+pkgrel=7
+pkgdesc="Measure, account, classify, aggregate and export IPv4 and IPv6 traffic"
+url="http://www.pmacct.net/"
+license="GPL"
+depends=
+makedepends="libpcap-dev libpq postgresql-dev"
+install="$pkgname.post-install $pkgname.post-deinstall"
+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/pmacctd
+ install -m644 -D "$srcdir"/$pkgname.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
+ 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
+8ebf022a90bb795e6726fee4065bd386 pmacct.initd
+394bf0687572261e90eecd70c33c8ede pmacct.confd
+ecb85e4f9bcb1f6ef0ee1426f979be2b pmacctd.conf"