APKBUILD 1.05 KB
Newer Older
1 2 3 4 5 6 7 8
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_flavor=${FLAVOR:-grsec}
_realname=xtables-addons

# source the kernel version
if [ -f ../linux-$_flavor/APKBUILD ]; then
	. ../linux-$_flavor/APKBUILD
fi
9
_kernelver=$pkgver-r$pkgrel
10 11 12
_abi_release=$pkgver-${_flavor}

pkgname=${_realname}-${_flavor}
13 14 15
pkgver=${pkgver}
_realver=1.19
pkgrel=0
16 17 18
pkgdesc="Iptables extensions kernel modules"
url="http://xtables-addons.sourceforge.net/"
license="GPL"
Natanael Copa's avatar
Natanael Copa committed
19 20
depends="linux-${_flavor}=${_kernelver}"
makedepends="linux-${_flavor}-dev=${_kernelver} iptables-dev pkgconfig"
21 22
install=
subpackages=
23
source="http://downloads.sourceforge.net/$_realname/$_realname-$_realver.tar.bz2"
24

25 26 27 28
# override kernel's prepare()
prepare() {
	:
}
29

30 31
build() {
	cd "$srcdir/$_realname-$_realver"
32 33 34 35 36
	./configure --prefix=/usr \
		--with-kbuild=/usr/src/linux-headers-${_abi_release}

	cd extensions
	make CC="${CC:-gcc}" modules || return 1
37 38 39 40
}

package() {
	cd "$srcdir/$_realname-$_realver"/extensions
41 42 43
	make DESTDIR="$pkgdir" modules_install
}

44
md5sums="6b51556a853aef8a3d1ab8925db809fc  xtables-addons-1.19.tar.bz2"