APKBUILD 1.17 KB
Newer Older
1 2 3
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=fprobe-ulog
pkgver=1.1
4
pkgrel=1
5 6 7 8 9 10 11 12 13 14 15
pkgdesc="netfilter-based tool that collect network traffic"
url="http://fprobe.sourceforge.net/"
arch="all"
license="GPL"
depends=
makedepends=""
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/fprobe/$pkgname/$pkgver/$pkgname-1.1.tar.bz2
	fprobe-ulog.confd
	fprobe-ulog.initd
16
	fprobe-1.1-pidfile-sanity.patch
17 18 19 20 21 22
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd $_builddir
23 24 25 26 27
	for i in ../*.patch
	do
		msg "Applying $i"
		patch -p1 < ../$i || exit 1
	done
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
}

build() {
	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
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname

}

md5sums="cdb2e4edc47e8a3d5479eeabfb979ebc  fprobe-ulog-1.1.tar.bz2
a92104da52c99532d1d01007b78940fc  fprobe-ulog.confd
50 51
744975c055421223940a278517b34d47  fprobe-ulog.initd
f1316ad835c1a2b6565b4dc448b022df  fprobe-1.1-pidfile-sanity.patch"