aboutsummaryrefslogtreecommitdiffstats
path: root/community/captagent/APKBUILD
blob: e2f23c4080446832af2e8f1c0653c9d04b57da0c (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=captagent
pkgver=6.3.1
pkgrel=2
pkgdesc="HEP Capture Agent for HOMER"
url="https://github.com/sipcapture/captagent"
arch="all"
license="GPL-3.0-or-later"
makedepends="autoconf automake bison expat-dev flex flex-dev json-c-dev
	libgcrypt-dev libpcap-dev libtool libuv-dev linux-headers openssl-dev"
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/captagent/archive/$pkgver.tar.gz
	$pkgname.initd
	"

prepare() {
	default_prepare
	./build.sh
}

build() {
	CFLAGS="$CFLAGS -fcommon"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	./src/captagent -v
}

package() {
	make install DESTDIR="$pkgdir"
	rm "$pkgdir"/usr/lib/$pkgname/modules/*.a

	install -Dm775 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

sha512sums="e4043ddb92a1228fb9e4e220e503e3bd0bf9009c893e9c153fc90d15f91902ff7b86ca4b01bf2ef40056bc16647a3838fcfb88f76503f41f4bea88d054e4d7de  captagent-6.3.1.tar.gz
fdd3de15ffd46c5fe08e94533628809373f0afd64c249d308ff4cd649ffa249ff0412c83668f882db71a1bd23879e27528b6ee4a1abccf09b545b92aea4ab646  captagent.initd"