summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/pmacct/APKBUILD16
-rw-r--r--testing/pmacct/pmacct.post-install6
2 files changed, 11 insertions, 11 deletions
diff --git a/testing/pmacct/APKBUILD b/testing/pmacct/APKBUILD
index 52ac23071..8451198d8 100644
--- a/testing/pmacct/APKBUILD
+++ b/testing/pmacct/APKBUILD
@@ -1,12 +1,12 @@
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=pmacct
pkgver=0.12.4
-pkgrel=4
+pkgrel=5
pkgdesc="Measure, account, classify, aggregate and export IPv4 and IPv6 traffic"
url="http://www.pmacct.net/"
license="GPL"
depends=
-makedepends="libpcap-dev postgresql-dev"
+makedepends="libpcap-dev libpq postgresql-dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="http://www.pmacct.net/$pkgname-$pkgver.tar.gz
@@ -16,10 +16,10 @@ source="http://www.pmacct.net/$pkgname-$pkgver.tar.gz
_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- cd "$_builddir"
- # apply patches here
-}
+#prepare() {
+# cd "$_builddir"
+# apply patches here
+#}
build() {
cd "$_builddir"
@@ -38,8 +38,8 @@ 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 -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
diff --git a/testing/pmacct/pmacct.post-install b/testing/pmacct/pmacct.post-install
index 5966e4349..9fd02c4b1 100644
--- a/testing/pmacct/pmacct.post-install
+++ b/testing/pmacct/pmacct.post-install
@@ -1,4 +1,4 @@
#!/bin/sh
-ln -s /etc/init.d/pmacct /etc/init.d/nfacctd &>/dev/null
-ln -s /etc/init.d/pmacct /etc/init.d/sfacctd &>/dev/null
-ln -s /etc/init.d/pmacct /etc/init.d/uacctd &>/dev/null
+ln -s /etc/init.d/pmacctd /etc/init.d/nfacctd &>/dev/null
+ln -s /etc/init.d/pmacctd /etc/init.d/sfacctd &>/dev/null
+ln -s /etc/init.d/pmacctd /etc/init.d/uacctd &>/dev/null