diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-09 07:59:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-09 08:03:37 +0000 |
commit | b0df67464598fd207f9e56a1b12a9ebc66601eab (patch) | |
tree | 45cddce12d763524adfe6816250c2b5274e49f77 | |
parent | 8f7626476d0d76494687954a9986912496f87c1e (diff) | |
download | aports-b0df67464598fd207f9e56a1b12a9ebc66601eab.tar.bz2 aports-b0df67464598fd207f9e56a1b12a9ebc66601eab.tar.xz |
core/xtables-addons: upgrade to 1.14
We would like to reuse the apkbuild for all kernel flavors in future.
Some initial works was done here but needs to be thought of more.
-rw-r--r-- | core/xtables-addons/APKBUILD | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/core/xtables-addons/APKBUILD b/core/xtables-addons/APKBUILD index 172b11c2..88123ecf 100644 --- a/core/xtables-addons/APKBUILD +++ b/core/xtables-addons/APKBUILD @@ -1,29 +1,31 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> -pkgname=xtables-addons -_kernflavor=grsec +_kflavor=${FLAVOR:-grsec} _kernver=2.6.28.9 -pkgver=1.13 + +pkgname=xtables-addons +pkgver=1.14 pkgrel=0 pkgdesc="Xtables-addons is the successor to patch-o-matic(-ng)" url="http://jengelh.medozas.de/projects/xtables/" license="GPL" -depends="linux-grsec" -makedepends="linux-grsec-dev linux-grsec-sources iptables-dev pkgconfig" +depends="linux-$_kflavor" +makedepends="linux-${_kflavor}-dev linux-${_kflavor}-sources iptables-dev pkgconfig" install= -subpackages="$pkgname-doc $pkgname-grsec:mod" +subpackages="$pkgname-doc $pkgname-${_kflavor}:mod" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 $pkgname-1.12-readlink.patch" build() { - local kout="$srcdir"/grsec + local kout="$srcdir"/$_kflavor mkdir -p "$kout" cd "$kout" - cp /usr/share/linux-grsec/config .config - make -C /usr/src/linux-$_kernver-grsec O=$PWD silentoldconfig \ + cp /boot/config-$_kflavor .config || return 1 + cp /boot/Module.symvers-$_kflavor Module.symvers || return 1 + make -C /usr/src/linux-$_kernver-$_kflavor O=$PWD silentoldconfig \ || return 1 make modules_prepare - cd "$srcdir/xtables-addons-$pkgver" + cd "$srcdir/$pkgname-$pkgver" for i in ../*.patch; do msg "Applying $i..." patch -p1 < $i || return @@ -32,9 +34,9 @@ build() { ./configure --prefix=/usr \ --with-kbuild="$kout" - make || return 1 + make CC="$CC" || return 1 make DESTDIR="$pkgdir" install } -md5sums="7c9cd60a00c2d4b9bed76cf4cec22fa1 xtables-addons-1.13.tar.bz2 +md5sums="a17b178d137480b870a7aeb54aea44f8 xtables-addons-1.14.tar.bz2 22bb434696be0960a6c758de17420e18 xtables-addons-1.12-readlink.patch" |