Commit 5a5b32dc authored by Leonardo Arena's avatar Leonardo Arena Committed by Natanael Copa

main/pmacct: ressurect and upgrade to 1.5.1. Disable deprecated ULOG

(cherry picked from commit 00d2ba45,
e754521b and
 1fd79338)
parent 1d63d70b
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=pmacct
pkgver=0.14.1
pkgver=1.5.1
pkgrel=1
pkgdesc="Measure, account, classify, aggregate and export IPv4 and IPv6 traffic"
url="http://www.pmacct.net/"
arch="all"
license="GPL"
depends=
makedepends="libpcap-dev libpq postgresql-dev zlib-dev"
install="$pkgname.post-install $pkgname.post-deinstall"
makedepends="bsd-compat-headers libpcap-dev libpq mariadb-dev postgresql-dev
zlib-dev"
install=
subpackages="$pkgname-doc"
source="http://www.pmacct.net/$pkgname-$pkgver.tar.gz
pmacct.initd
......@@ -37,14 +38,14 @@ build() {
--enable-pgsql \
--enable-64bit \
--enable-threads \
--enable-ulog \
--enable-mysql \
|| return 1
make || return 1
}
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
......@@ -52,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
......@@ -59,21 +63,21 @@ package() {
cp sql/* $pkgdir/usr/share/doc/pmacct/sql
}
md5sums="a1a9805af114df913470933873bba594 pmacct-0.14.1.tar.gz
md5sums="80a205e85fd06a30a761877568b01376 pmacct-1.5.1.tar.gz
48ca9df1fce583936fc1e6d80bd0f0c3 pmacct.initd
394bf0687572261e90eecd70c33c8ede pmacct.confd
ecb85e4f9bcb1f6ef0ee1426f979be2b pmacctd.conf
7a549e51959946805a0c1d094213f08c sfacctd.conf
a3b1c231911f9bab7bfa73dbbcb308eb nfacctd.conf
7a549e51959946805a0c1d094213f08c uacctd.conf"
sha256sums="048f5747c2caa1085f1cd9442668b9edc98a40688b7696d1ad6f1e16c5a6d206 pmacct-0.14.1.tar.gz
sha256sums="96134549a10947f3f6d610b670a26f1a54e01af4be0eff09bf48c19246d33584 pmacct-1.5.1.tar.gz
fe0ec3d26a0da0e07112e2dce85b921c188c974f5b4a22f623bdcf2f91fa3a0b pmacct.initd
02c3e0d5a19503d4be63244c77cbc47961d6f168026527ec2910c6c201a5d8fd pmacct.confd
616bf24f769a0d262a793adb4603e08fe2234f1cccc2bc0b7fabf565cf22e138 pmacctd.conf
3cbdea18c609bb4822992ec79b34987b6fc9044550823ebbb349c44af7d8503e sfacctd.conf
e21121a857bb16e76d8af087e5a2d2b1c555ac5f16808d8b7a01377f7d18accc nfacctd.conf
3cbdea18c609bb4822992ec79b34987b6fc9044550823ebbb349c44af7d8503e uacctd.conf"
sha512sums="0c13a2a2faab0fda1ba3b9218ea1f5d33de2581abb16916fa95ad80a05758e65b9bd2c19fa54bf1f59e62f8c769c9b0dedcbc505bcc4eb8fc79df12806b013a2 pmacct-0.14.1.tar.gz
sha512sums="c3a0ddaf1b8679df2097147ce844eb2a3e3058599aea457e463cd4e65a7601e0ce5bac5ca5e1c82afecd5edc92dae673eed3ed1787bfbd3e8ac2af5677885bb7 pmacct-1.5.1.tar.gz
b109f2d64c83d6749a8c81784204e54a68ec7bbc146242f02e1fa7061647acc887921cdbf90a5ecc81186a87a5b4a5175a3b5e25f92e51b5dd1426fb390ef754 pmacct.initd
6078607dde8619f8fa5698f217c40a7e46ed85843923abecc87652d2e9df6db677898ee1965367247e6ac838d907533a8b1c7ab0515f3f2dc6f3fd4eb14bd5be pmacct.confd
fa1ead3ee4374ad84cccc0e7043fc86e95da555e2bde3815f03953587f03a609ec3aea227ebf85c9636e071921c5b094359d71d15055f866c05e113cda3b347b pmacctd.conf
......
#!/bin/sh
rm /etc/init.d/nfacctd &>/dev/null
rm /etc/init.d/sfacctd &>/dev/null
rm /etc/init.d/uacctd &>/dev/null
#!/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
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