aboutsummaryrefslogtreecommitdiffstats
path: root/community/softflowd/APKBUILD
blob: d708a51a16fea71f9293dc63da591e3983864294 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=softflowd
pkgver=1.0.0
pkgrel=0
pkgdesc="A software NetFlow probe"
url="https://github.com/irino/softflowd"
arch="all"
license="BSD-2-Clause"
options="!check"
makedepends="autoconf automake libtool libpcap-dev"
subpackages="$pkgname-doc"
source="https://github.com/irino/softflowd/archive/softflowd-1.0.0.tar.gz
	$pkgname.initd
	$pkgname.confd
	install-sbin.patch
	fix-musl.patch
	"
builddir="$srcdir/softflowd-softflowd-$pkgver"

prepare() {
	default_prepare
	autoreconf -vfi
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="01a4f89755c957a495b08c49b572b8b6aa41f5ac7672feb5e31b039fbfab84f3a206b1da95b11de2ec5882123f6ca2387c02efb874ce707c2263bf79b56012fd  softflowd-1.0.0.tar.gz
a049158fe474bb76e497613a7e2109b92047a37210bfe695b18b50cf7f5be5407896a11927d685fc03dec899c50bd6dbfeffdccf8e918ba515cfcab5dbd2b2a9  softflowd.initd
10b536cb5d32edbfe5d1a09e2b4ded4d95cb2bbfbe44cdcf267958efe1cde440f0caf4f60e41b4a59164a471bf430527912daf2c47df42f0dc47997352689e5d  softflowd.confd
5644037692f7a165a8c06bd756181669f5847dad28c6b677b047407ca9412000ee25626110ea5037892321a0d520a27cba2f8aac488830182f1152fc08448088  install-sbin.patch
e007238442cc9017fcb4a4a1b568e884691a7335cd6f8c270dd635d3725dcae92bf370837774475582e235ec501f74e53022442152d33fba8ab443eb27d8e0a2  fix-musl.patch"