diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-14 12:37:37 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-09 11:51:44 +0000 |
commit | 4a5bf568fc2d0443b725c195694c068c7433c4d3 (patch) | |
tree | 2b11d8cf9c6d212114fd20040434401685100f00 /main/rrdcollect | |
parent | 5c7835921d759b8da2f051c4e3e6c6c540cfdfdc (diff) | |
download | aports-4a5bf568fc2d0443b725c195694c068c7433c4d3.tar.bz2 aports-4a5bf568fc2d0443b725c195694c068c7433c4d3.tar.xz |
main/rrdcollect: modernize abuild
Diffstat (limited to 'main/rrdcollect')
-rw-r--r-- | main/rrdcollect/APKBUILD | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/main/rrdcollect/APKBUILD b/main/rrdcollect/APKBUILD index 527b7b64ef..80a6f2f1f3 100644 --- a/main/rrdcollect/APKBUILD +++ b/main/rrdcollect/APKBUILD @@ -9,27 +9,14 @@ arch="all" license="GPL2+" depends="rrdtool" makedepends="libpcap-dev" -install="" subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 rrdcollect.conf.patch rrdcollect.initd" -_builddir="$srcdir/$pkgname-$pkgver" -prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) - msg "Applying $i" - patch -p1 -i "$srcdir"/$i || return 1 - ;; - esac; - done -} - +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -37,25 +24,18 @@ build() { --localstatedir=/var \ --sysconfdir=/etc/rrdcollect \ --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - || return 1 - make || return 1 + --infodir=/usr/share/info + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/rrdcollect.initd \ - "$pkgdir"/etc/init.d/rrdcollect || return 1 - install -m755 -d "$pkgdir"/var/lib/rrdtool || return 1 + "$pkgdir"/etc/init.d/rrdcollect + install -m755 -d "$pkgdir"/var/lib/rrdtool } -md5sums="138e21fc9f2de0b8b6c89f1506394ef8 rrdcollect-0.2.10.tar.bz2 -e09d7a588e31c9ecfc44fd1747ad732b rrdcollect.conf.patch -2dea3838e456ff384caba767cf285f30 rrdcollect.initd" -sha256sums="6104ecbb12adc4fb91330d9949adfff4fe98b5a01d2249c3d840174d89704ca1 rrdcollect-0.2.10.tar.bz2 -c28b156b95d36e7177b0bb527ea0841c85c52b7d68cf3cd14889ea3f843dee48 rrdcollect.conf.patch -90cdfd6721154258c677fd6c88f857efff00b1528ae9944dbabb1b8599e4034e rrdcollect.initd" sha512sums="c926ccfdbf98a4de114b80012151bf6859644742a97e14ce06f3c44c3b48bb242d47fda54deef8069d57aa8d207389e788e6021ce337559c0185e7cdb680b26e rrdcollect-0.2.10.tar.bz2 587cea801da61601a290a553a63c26219d4ad0fe74a436a42720a2df3561aa73a878fd2f82ebc2363f2406d2a2342ff13aa57539b2237dc6681b9cd10879dc9d rrdcollect.conf.patch e8598d1846788a8c4f89e61f95c60c625ac87a667ffe1134549cc7c51d4c0b48aad415f866cab3ae2dcc0eb32c739fc2690951c64858e493af5ab3160d1cc4ab rrdcollect.initd" |