From ec38a1cb23de8be3e23f0d9ae51030563da6ca63 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 3 Feb 2010 07:45:43 +0000 Subject: testing/fprobe: use separate package() function --- testing/fprobe/APKBUILD | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'testing') diff --git a/testing/fprobe/APKBUILD b/testing/fprobe/APKBUILD index ea6faea28..824129afe 100644 --- a/testing/fprobe/APKBUILD +++ b/testing/fprobe/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Carlo Landmeter pkgname=fprobe pkgver=1.1 -pkgrel=1 +pkgrel=2 pkgdesc="libpcap-based tool that collect network traffic" url="http://fprobe.sourceforge.net/" license="GPL" @@ -13,14 +13,18 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 $pkgname.initd $pkgname.confd" +_builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$srcdir/$pkgname-$pkgver" - + cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info make || return 1 +} + +package() { + cd "$_builddir" make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname -- cgit v1.2.3