diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-29 17:30:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-29 17:32:07 +0000 |
commit | 49b4c1dfaf90f1435fe46e47ded7ca768d0be291 (patch) | |
tree | 22df09cf43f9865fe5e67e63c54021df917c6dfe /main/xtables-addons-grsec | |
parent | 8c4ba598f3f964a8727f3f68ff3d3463d505d579 (diff) | |
download | aports-49b4c1dfaf90f1435fe46e47ded7ca768d0be291.tar.bz2 aports-49b4c1dfaf90f1435fe46e47ded7ca768d0be291.tar.xz |
*-grsec: upgrade kernel to 2.6.31.5
and use package() function
Diffstat (limited to 'main/xtables-addons-grsec')
-rw-r--r-- | main/xtables-addons-grsec/APKBUILD | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/main/xtables-addons-grsec/APKBUILD b/main/xtables-addons-grsec/APKBUILD index f068a9b6b3..278d2b21b3 100644 --- a/main/xtables-addons-grsec/APKBUILD +++ b/main/xtables-addons-grsec/APKBUILD @@ -9,14 +9,10 @@ fi _kernelver=$pkgver-r$pkgrel _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} -pkgrel=15 +pkgver=${pkgver} +_realver=1.19 +pkgrel=0 pkgdesc="Iptables extensions kernel modules" url="http://xtables-addons.sourceforge.net/" license="GPL" @@ -24,17 +20,25 @@ depends="linux-${_flavor}=${_kernelver}" makedepends="linux-${_flavor}-dev=${_kernelver} iptables-dev pkgconfig" install= subpackages= -source="http://downloads.sourceforge.net/$_realname/$_realname-$pkgver.tar.bz2" +source="http://downloads.sourceforge.net/$_realname/$_realname-$_realver.tar.bz2" -build() { - cd "$srcdir/$_realname-$pkgver" +# override kernel's prepare() +prepare() { + : +} +build() { + cd "$srcdir/$_realname-$_realver" ./configure --prefix=/usr \ --with-kbuild=/usr/src/linux-headers-${_abi_release} cd extensions make CC="${CC:-gcc}" modules || return 1 +} + +package() { + cd "$srcdir/$_realname-$_realver"/extensions make DESTDIR="$pkgdir" modules_install } -md5sums="eca2e3f4f4904814e3a301539876fae6 xtables-addons-1.17.tar.bz2" +md5sums="6b51556a853aef8a3d1ab8925db809fc xtables-addons-1.19.tar.bz2" |