APKBUILD 980 Bytes
Newer Older
1 2 3 4
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=fprobe
pkgver=1.1
5
pkgrel=2
6 7 8 9 10 11 12 13 14 15
pkgdesc="libpcap-based tool that collect network traffic"
url="http://fprobe.sourceforge.net/"
license="GPL"
depends=
makedepends="libpcap-dev"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
$pkgname.initd
$pkgname.confd"

16
_builddir="$srcdir"/$pkgname-$pkgver
17
build() {
18
	cd "$_builddir"
19 20 21 22 23
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
24 25 26 27
}

package() {
	cd "$_builddir"
28 29 30 31 32 33 34 35 36
	make DESTDIR="$pkgdir" install

	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="65850d0470078269b33eee58cba77ac2  fprobe-1.1.tar.bz2
41810a73503624de2c27809e34ed80b4  fprobe.initd
ba9c9327456e4db897b60481705df282  fprobe.confd"