diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-19 08:09:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-19 08:09:09 +0000 |
commit | 600b8a24e126944224aab6eac9937b27c3467d04 (patch) | |
tree | 6a0513640b4ffcf2970cd82f04c3eccb0b738c64 /core | |
parent | 69dc35534e94491bbd94451db20133d4c07dec5a (diff) | |
download | aports-600b8a24e126944224aab6eac9937b27c3467d04.tar.bz2 aports-600b8a24e126944224aab6eac9937b27c3467d04.tar.xz |
core/xtables-addons: new aport
Xtables-addons is the successor to patch-o-matic(-ng)
http://jengelh.medozas.de/projects/xtables/
Diffstat (limited to 'core')
-rw-r--r-- | core/xtables-addons/APKBUILD | 40 | ||||
-rw-r--r-- | core/xtables-addons/xtables-addons-1.9-readlink.patch | 13 |
2 files changed, 53 insertions, 0 deletions
diff --git a/core/xtables-addons/APKBUILD b/core/xtables-addons/APKBUILD new file mode 100644 index 00000000..0ee365c9 --- /dev/null +++ b/core/xtables-addons/APKBUILD @@ -0,0 +1,40 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=xtables-addons +_kernflavor=grsec +_kernver=2.6.28.5 +pkgver=1.9 +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" +install= +subpackages="$pkgname-doc $pkgname-grsec:mod" +source="http://dev.medozas.de/files/xtables/xtables-addons-$pkgver.tar.bz2 + $pkgname-1.9-readlink.patch" + +build() { + local kout="$srcdir"/grsec + mkdir -p "$kout" + cd "$kout" + cp /usr/share/linux-grsec/config .config + make -C /usr/src/linux-$_kernver-grsec O=$PWD silentoldconfig \ + || return 1 + make modules_prepare + + cd "$srcdir/xtables-addons-$pkgver" + for i in ../*.patch; do + msg "Applying $i..." + patch -p1 < $i || return + done + + ./configure --prefix=/usr \ + --with-kbuild="$kout" + + make || return 1 + make DESTDIR="$pkgdir" install +} + +md5sums="578176c969a70858bfc06d9ee3b5dbda xtables-addons-1.9.tar.bz2 +eb9b3874ba74a291627898e537e2e8ab xtables-addons-1.9-readlink.patch" diff --git a/core/xtables-addons/xtables-addons-1.9-readlink.patch b/core/xtables-addons/xtables-addons-1.9-readlink.patch new file mode 100644 index 00000000..8113b055 --- /dev/null +++ b/core/xtables-addons/xtables-addons-1.9-readlink.patch @@ -0,0 +1,13 @@ +--- xtables-addons-1.9/extensions/ipset/GNUmakefile.in.orig 2009-02-19 07:46:31.000000000 +0000 ++++ xtables-addons-1.9/extensions/ipset/GNUmakefile.in 2009-02-19 07:46:42.000000000 +0000 +@@ -2,8 +2,8 @@ + + top_srcdir := @top_srcdir@ + srcdir := @srcdir@ +-abstop_srcdir := $(shell readlink -e ${top_srcdir}) +-abssrcdir := $(shell readlink -e ${srcdir}) ++abstop_srcdir := $(shell readlink -f ${top_srcdir}) ++abssrcdir := $(shell readlink -f ${srcdir}) + + ifeq (${abstop_srcdir},) + $(error Path resolution of ${top_srcdir} failed) |