diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-06-08 09:35:00 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-06-08 09:35:09 +0000 |
commit | 1fd793386466c386c5b5b7374426a4b1e85af8b3 (patch) | |
tree | e774d988eca2a0b8e0d7545cf1d840ac795c42dd /main/pmacct | |
parent | b89bf0c5fca6a887a5eb562677028f7981d94c14 (diff) | |
download | aports-1fd793386466c386c5b5b7374426a4b1e85af8b3.tar.bz2 aports-1fd793386466c386c5b5b7374426a4b1e85af8b3.tar.xz |
main/pmacct: move install scripts into package
Diffstat (limited to 'main/pmacct')
-rw-r--r-- | main/pmacct/APKBUILD | 9 | ||||
-rwxr-xr-x | main/pmacct/pmacct.post-deinstall | 4 | ||||
-rw-r--r-- | main/pmacct/pmacct.post-install | 4 |
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 |