From 1c9fe09b02efa0ae876b496e2221cc0d7ac2cea3 Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Wed, 13 Oct 2010 13:42:34 +0000 Subject: testing/pmacct: default config added --- testing/pmacct/APKBUILD | 13 ++++++++----- testing/pmacct/pmacctd.conf | 11 +++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 testing/pmacct/pmacctd.conf diff --git a/testing/pmacct/APKBUILD b/testing/pmacct/APKBUILD index e23f214596..ea90751cf0 100644 --- a/testing/pmacct/APKBUILD +++ b/testing/pmacct/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Leonardo Arena pkgname=pmacct pkgver=0.12.4 -pkgrel=1 +pkgrel=2 pkgdesc="Measure, account, classify, aggregate and export IPv4 and IPv6 traffic" url="http://www.pmacct.net/" license="GPL" @@ -11,7 +11,8 @@ install= subpackages="$pkgname-doc" source="http://www.pmacct.net/$pkgname-$pkgver.tar.gz pmacct.initd - pmacct.confd" + pmacct.confd + pmacctd.conf" _builddir="$srcdir"/$pkgname-$pkgver @@ -39,13 +40,15 @@ package() { install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + install -m644 -D "$srcdir"/pmacctd.conf "$pkgdir"/etc/pmacctd.conf mkdir -p $pkgdir/usr/share/doc/pmacct/examples - mkdir -p $pkgdir/etc/pmacct/sql + 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/*.pgsql $pkgdir/etc/pmacct/sql + cp sql/* $pkgdir/usr/share/doc/pmacct/sql } md5sums="72098ff945e1ddaa77d7f0b3531fa765 pmacct-0.12.4.tar.gz c2427b6a32a4eb649a075a977f5b2c42 pmacct.initd -394bf0687572261e90eecd70c33c8ede pmacct.confd" +394bf0687572261e90eecd70c33c8ede pmacct.confd +6ea97965b3fdfceb6b5c0ce2cbf01a92 pmacctd.conf" diff --git a/testing/pmacct/pmacctd.conf b/testing/pmacct/pmacctd.conf new file mode 100644 index 0000000000..fe9a64ef01 --- /dev/null +++ b/testing/pmacct/pmacctd.conf @@ -0,0 +1,11 @@ +# Sample default config file + +daemonize: true +pidfile: /var/run/pmacctd.pid +syslog: daemon + +# sql_host: localhost +# sql_passwd:pmacct +# sql_table_version: 7 + +# plugins: pgsql -- cgit v1.2.3