diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-29 21:40:52 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-29 21:40:52 +0200 |
commit | 40f46bdf837de1d94dabb6bcd33889b6c73da118 (patch) | |
tree | be28896c611376d2adc75c7c30d06eec43a93eca | |
parent | 76bbdb8a7f9586627e4e2a6a895ce789c4102c91 (diff) | |
download | aports-40f46bdf837de1d94dabb6bcd33889b6c73da118.tar.bz2 aports-40f46bdf837de1d94dabb6bcd33889b6c73da118.tar.xz |
main/pmacct: modernize abuild
-rw-r--r-- | main/pmacct/APKBUILD | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/main/pmacct/APKBUILD b/main/pmacct/APKBUILD index 548571ddcd..0850185360 100644 --- a/main/pmacct/APKBUILD +++ b/main/pmacct/APKBUILD @@ -6,10 +6,8 @@ pkgdesc="Measure, account, classify, aggregate and export IPv4 and IPv6 traffic" url="http://www.pmacct.net/" arch="all" license="GPL" -depends= makedepends="bsd-compat-headers libpcap-dev mariadb-dev postgresql-dev zlib-dev jansson-dev sqlite-dev" -install= subpackages="$pkgname-doc" source="http://www.pmacct.net/$pkgname-$pkgver.tar.gz pmacct.initd @@ -18,20 +16,10 @@ source="http://www.pmacct.net/$pkgname-$pkgver.tar.gz sfacctd.conf nfacctd.conf uacctd.conf" - -_builddir="$srcdir"/$pkgname-$pkgver - -prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -52,7 +40,8 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" + make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/pmacctd @@ -71,20 +60,6 @@ package() { cp sql/* $pkgdir/usr/share/doc/pmacct/sql } -md5sums="3cf26857ff3bfec22857ea88046f7f41 pmacct-1.5.2.tar.gz -48ca9df1fce583936fc1e6d80bd0f0c3 pmacct.initd -394bf0687572261e90eecd70c33c8ede pmacct.confd -ecb85e4f9bcb1f6ef0ee1426f979be2b pmacctd.conf -7a549e51959946805a0c1d094213f08c sfacctd.conf -a3b1c231911f9bab7bfa73dbbcb308eb nfacctd.conf -7a549e51959946805a0c1d094213f08c uacctd.conf" -sha256sums="c12e3897e2f9aa89333968da46eb46855f357750ac1e06e36e72f374e2b54df9 pmacct-1.5.2.tar.gz -fe0ec3d26a0da0e07112e2dce85b921c188c974f5b4a22f623bdcf2f91fa3a0b pmacct.initd -02c3e0d5a19503d4be63244c77cbc47961d6f168026527ec2910c6c201a5d8fd pmacct.confd -616bf24f769a0d262a793adb4603e08fe2234f1cccc2bc0b7fabf565cf22e138 pmacctd.conf -3cbdea18c609bb4822992ec79b34987b6fc9044550823ebbb349c44af7d8503e sfacctd.conf -e21121a857bb16e76d8af087e5a2d2b1c555ac5f16808d8b7a01377f7d18accc nfacctd.conf -3cbdea18c609bb4822992ec79b34987b6fc9044550823ebbb349c44af7d8503e uacctd.conf" sha512sums="3705432cc2a28e179de637b8fc11becd2022b36191a13d440d5bec7d7e594d0936773f202f3d82e983a83695176380aa6a7c27748b632b180000590be0ead599 pmacct-1.5.2.tar.gz b109f2d64c83d6749a8c81784204e54a68ec7bbc146242f02e1fa7061647acc887921cdbf90a5ecc81186a87a5b4a5175a3b5e25f92e51b5dd1426fb390ef754 pmacct.initd 6078607dde8619f8fa5698f217c40a7e46ed85843923abecc87652d2e9df6db677898ee1965367247e6ac838d907533a8b1c7ab0515f3f2dc6f3fd4eb14bd5be pmacct.confd |