# Template file for 'conntrack-tools'
pkgname=conntrack-tools
version=1.4.3
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config flex"
makedepends="libnfnetlink-devel libnetfilter_conntrack-devel libnetfilter_cttimeout-devel libnetfilter_cthelper-devel libnetfilter_queue-devel libmnl-devel"
short_desc="Tools to interact with the netfilter connection tracking system"
maintainer="Michael Gehring <mg@ebfe.org>"
license="GPL-2"
homepage="http://conntrack-tools.netfilter.org/"
distfiles="http://www.netfilter.org/projects/conntrack-tools/files/conntrack-tools-${version}.tar.bz2"
checksum=af3ccc60356cfedf941065fdaaf9cd5e51f3df7484f56858af37106feecf3f57

case "$XBPS_TARGET_MACHINE" in
	*-musl) makedepends+=" libtirpc-devel"
		CFLAGS="-D_GNU_SOURCE -I${XBPS_CROSS_BASE}/usr/include/tirpc"
		LDFLAGS="-ltirpc"
		;;
esac
