aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-01-12 05:39:13 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-01-12 05:39:13 +0000
commitf0c1050c4e78ff21d7738318808ba583d0c3d294 (patch)
tree93a53d4e5a51a2f29cb46560cb5256def96740cb /main
parent8167c0f3ee394a089fcb8383a57dc49abdddabde (diff)
downloadaports-f0c1050c4e78ff21d7738318808ba583d0c3d294.tar.bz2
aports-f0c1050c4e78ff21d7738318808ba583d0c3d294.tar.xz
main/xtables-addons-vanilla: new aport
Diffstat (limited to 'main')
-rw-r--r--main/xtables-addons-vanilla/APKBUILD68
1 files changed, 68 insertions, 0 deletions
diff --git a/main/xtables-addons-vanilla/APKBUILD b/main/xtables-addons-vanilla/APKBUILD
new file mode 100644
index 0000000000..b3caafb106
--- /dev/null
+++ b/main/xtables-addons-vanilla/APKBUILD
@@ -0,0 +1,68 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_flavor=${FLAVOR:-vanilla}
+_kpkg=linux-$_flavor
+_realname=xtables-addons
+_name=$_realname-$_flavor
+
+_kver=4.14.13
+_kpkgrel=2
+
+_realver=2.14
+_mypkgrel=0
+
+_kernelver=$_kver-r$_kpkgrel
+_abi_release=${_kver}-${_kpkgrel}-${_flavor}
+
+pkgname=$_name
+pkgver=$_kver
+pkgrel=$(($_kpkgrel + $_mypkgrel))
+pkgdesc="Iptables extensions kernel modules"
+url="http://xtables-addons.sourceforge.net/"
+arch="all"
+license="GPL"
+depends="linux-${_flavor}=${_kernelver}"
+makedepends="linux-${_flavor}-dev=${_kernelver} iptables-dev linux-headers"
+install=
+install_if="linux-$_flavor=$_kernelver $_realname"
+subpackages=
+source="http://downloads.sourceforge.net/$_realname/$_realname-$_realver.tar.xz"
+provides="$_realname-grsec=${pkgver}-r${pkgrel}"
+builddir="$srcdir/$_realname-$_realver"
+options="!check"
+
+prepare() {
+ cd "$builddir"
+ # source the kernel version
+ (
+ if [ -f "$startdir"/../linux-$_flavor/APKBUILD ]; then
+ . "$startdir"/../linux-$_flavor/APKBUILD
+ if [ "$_kver" != "$pkgver" ]; then
+ die "$_name: Please update _kver to $pkgver"
+ fi
+ if [ "$_kpkgrel" != "$pkgrel" ]; then
+ die "$_name: Please update _kpkgrel to $pkgrel"
+ fi
+ fi
+ ) || return 1
+
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --with-kbuild=/usr/src/linux-headers-${_abi_release} \
+ || return 1
+
+ cd extensions
+ make modules || return 1
+}
+
+package() {
+ cd "$builddir/extensions"
+ make DESTDIR="$pkgdir" modules_install
+}
+
+sha512sums="f3d49c53aa01fadc334906e580f16605849fe7be83637fa73d51b48ded0e77c368c544ad69fa97b53a6688eaa3ba63bab489c150a9e02205e8044cdd521f4752 xtables-addons-2.14.tar.xz"