aboutsummaryrefslogtreecommitdiffstats
path: root/main/xtables-addons/APKBUILD
blob: 5f219c8d84a53c123e7523d3cfbfb60687c6d159 (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
29
30
31
32
33
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xtables-addons
pkgver=2.1
pkgrel=0
pkgdesc="Netfilter userspace extensions for iptables"
url="http://xtables-addons.sourceforge.net/"
arch="all"
license="GPL"
depends=
makedepends="iptables-dev pkgconfig bash coreutils"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--without-kbuild 

	make CC="${CC-gcc}" kbuilddir=
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make builddir= DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="b624fc57bbda9e15c33a6471e4ec75e1  xtables-addons-2.1.tar.xz"
sha256sums="1d788bf647d96cfbcc2e61c3a32702cfdde40fea857407d2674731b41ac3ae79  xtables-addons-2.1.tar.xz"
sha512sums="df8617f8dbc386e1264063fa1650a18021a199e8d301b7a2133c840f1cd54d348d5b6e46b823a778feb9682d65d898c8d31c0df35ee2b914865b126485973973  xtables-addons-2.1.tar.xz"