aboutsummaryrefslogtreecommitdiffstats
path: root/main/pmacct
diff options
context:
space:
mode:
Diffstat (limited to 'main/pmacct')
-rw-r--r--main/pmacct/APKBUILD9
-rwxr-xr-xmain/pmacct/pmacct.post-deinstall4
-rw-r--r--main/pmacct/pmacct.post-install4
3 files changed, 6 insertions, 11 deletions
diff --git a/main/pmacct/APKBUILD b/main/pmacct/APKBUILD
index b5cf73a6b8..8770ce45d6 100644
--- a/main/pmacct/APKBUILD
+++ b/main/pmacct/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=pmacct
pkgver=1.5.1
-pkgrel=0
+pkgrel=1
pkgdesc="Measure, account, classify, aggregate and export IPv4 and IPv6 traffic"
url="http://www.pmacct.net/"
arch="all"
@@ -9,7 +9,7 @@ license="GPL"
depends=
makedepends="bsd-compat-headers libpcap-dev libpq mariadb-dev postgresql-dev
zlib-dev"
-install="$pkgname.post-install $pkgname.post-deinstall"
+install=
subpackages="$pkgname-doc"
source="http://www.pmacct.net/$pkgname-$pkgver.tar.gz
pmacct.initd
@@ -45,7 +45,7 @@ build() {
package() {
cd "$_builddir"
- make -j1 DESTDIR="$pkgdir" install
+ 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
@@ -53,6 +53,9 @@ package() {
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 &>/dev/null
+ ln -s /etc/init.d/pmacctd "$pkgdir"/etc/init.d/sfacctd &>/dev/null
+ ln -s /etc/init.d/pmacctd "$pkgdir"/etc/init.d/uacctd &>/dev/null
mkdir -p $pkgdir/usr/share/doc/pmacct/examples
mkdir -p $pkgdir/usr/share/doc/pmacct/sql
cp examples/* $pkgdir/usr/share/doc/pmacct/examples
diff --git a/main/pmacct/pmacct.post-deinstall b/main/pmacct/pmacct.post-deinstall
deleted file mode 100755
index 327b1ce74c..0000000000
--- a/main/pmacct/pmacct.post-deinstall
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-rm /etc/init.d/nfacctd &>/dev/null
-rm /etc/init.d/sfacctd &>/dev/null
-rm /etc/init.d/uacctd &>/dev/null
diff --git a/main/pmacct/pmacct.post-install b/main/pmacct/pmacct.post-install
deleted file mode 100644
index 9fd02c4b10..0000000000
--- a/main/pmacct/pmacct.post-install
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-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