aboutsummaryrefslogtreecommitdiffstats
path: root/community/softflowd/APKBUILD
blob: fc0a2fe4992db96827e80c5cfcd82d09c1cab930 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=softflowd
pkgver=0.9.9
pkgrel=0
pkgdesc="Flow-based network traffic analyser "
url="http://www.mindrot.org/projects/softflowd/"
arch="all"
license="BSD"
depends=
depends_dev=
makedepends="$depends_dev libpcap-dev"
install=
subpackages="$pkgname-doc"
source="https://softflowd.googlecode.com/files/$pkgname-$pkgver.tar.gz
	softflowd.initd
	softflowd.confd
	"


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

prepare() {
	cd "$_builddir"
	grep -l "#include <sys/poll.h>" * | xargs sed -i 's|sys/poll.h|poll.h|g'
}

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="ba83e2715e6250e6645ebcaa9ae1009d  softflowd-0.9.9.tar.gz
1dc4e097474bfa6bcf471f5b6ed6e2e1  softflowd.initd
7eab9e84a8711613d83efbaa79cda3fe  softflowd.confd"
sha256sums="2313f2c50ea9b3f2db3524e38ec7cd71f9a6e885ac2e3b55ab037bccf8173612  softflowd-0.9.9.tar.gz
1cb28ef2fd8d0ff0082c856812a26cce728332293115aa6e4fd8e877083a3568  softflowd.initd
f8368e88d248d420dfb8b877c53f666116c195763f40323868b52d2345b2c45c  softflowd.confd"
sha512sums="4d579c2a087c0f3cd4d2020bcfbddf9dab73254e40678b3509c93bec212bf8b5692f76bfb4e766577e431ff508f0bce0a2cf326184f192e3c5dc8ddf38514dbd  softflowd-0.9.9.tar.gz
40b671b5dc126e3b58761156eadb7b172fe8cd23f04e43c90270fbfba9c7542a7adc9a496da557143fa025af3ee6644e4732a74096a66bbaf98d3cadd6d01149  softflowd.initd
3e9ff7efb2f63519ed710af8b744a264c0ce97f22af1e1d2d4ec8e071276ff42e482183715eebba8b25ff6270afac1fe9620a9c69dc5dbda889d44b141d8cb09  softflowd.confd"