APKBUILD 1.04 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 13 14 15 16 17 18
_abi_release=$pkgver-${_flavor}

# get pkgver from xtables-addons package
if [ -f ../$_realname/APKBUILD ]; then
	. ../$_realname/APKBUILD
fi

pkgname=${_realname}-${_flavor}
pkgver=${pkgver:-1.17}
19
pkgrel=16
20 21 22
pkgdesc="Iptables extensions kernel modules"
url="http://xtables-addons.sourceforge.net/"
license="GPL"
Natanael Copa's avatar
Natanael Copa committed
23 24
depends="linux-${_flavor}=${_kernelver}"
makedepends="linux-${_flavor}-dev=${_kernelver} iptables-dev pkgconfig"
25 26
install=
subpackages=
27
source="http://downloads.sourceforge.net/$_realname/$_realname-$pkgver.tar.bz2"
28 29 30 31 32 33 34 35 36 37 38 39 40

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

	./configure --prefix=/usr \
		--with-kbuild=/usr/src/linux-headers-${_abi_release}

	cd extensions
	make CC="${CC:-gcc}" modules || return 1
	make DESTDIR="$pkgdir" modules_install
}

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