summaryrefslogtreecommitdiffstats
path: root/main/xtables-addons/APKBUILD
blob: 1196e3efcb307aa264ea7e13b74ac1a073866913 (plain)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xtables-addons
pkgver=1.17
pkgrel=1
pkgdesc="Netfilter userspace extensions for iptables"
url="http://xtables-addons.sourceforge.net/"
license="GPL"
depends="iptables"
makedepends="iptables-dev pkgconfig bash"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--without-kbuild 

	# we dont want to build or install modules. We hack the makefile
	sed -i -e '/^all:/s/modules//; /^install:/s/modules_install//' \
		extensions/GNUmakefile

	make CC="${CC-gcc}" || return 1
	make DESTDIR="$pkgdir" install
}

md5sums="eca2e3f4f4904814e3a301539876fae6  xtables-addons-1.17.tar.bz2"