Commit 3267e13c authored by Leonardo Arena's avatar Leonardo Arena

testing/pmacct: deps fix and more post-install fixes

parent 58158f49
# 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
......
#!/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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment