From d771aa0af875e384568679a993b6e451e764f380 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 27 Apr 2017 04:48:40 +0000 Subject: main/xtables-addons-hardened: rename from xtables-addons-grsec, provide xtables-addons-grsec --- main/xtables-addons-grsec/APKBUILD | 67 ----------------------------------- main/xtables-addons-hardened/APKBUILD | 67 +++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 67 deletions(-) delete mode 100644 main/xtables-addons-grsec/APKBUILD create mode 100644 main/xtables-addons-hardened/APKBUILD diff --git a/main/xtables-addons-grsec/APKBUILD b/main/xtables-addons-grsec/APKBUILD deleted file mode 100644 index bbf4493020..0000000000 --- a/main/xtables-addons-grsec/APKBUILD +++ /dev/null @@ -1,67 +0,0 @@ -# Maintainer: Natanael Copa -_flavor=${FLAVOR:-grsec} -_kpkg=linux-$_flavor -_realname=xtables-addons -_name=$_realname-$_flavor - -_kver=4.9.24 -_kpkgrel=0 - -_realver=2.12 -_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="x86 x86_64 armhf" -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" - -builddir="$srcdir/$_realname-$_realver" - -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="2d93dcb98969d0fb149746b2282eafbf566d0f97c74839d194c7b6cb77d50ec71469d6bbb2565dd855fe8ed6783be2fd705f21f9f7e2842aae9205174a79a6bd xtables-addons-2.12.tar.xz" diff --git a/main/xtables-addons-hardened/APKBUILD b/main/xtables-addons-hardened/APKBUILD new file mode 100644 index 0000000000..4f4d80d23a --- /dev/null +++ b/main/xtables-addons-hardened/APKBUILD @@ -0,0 +1,67 @@ +# Maintainer: Natanael Copa +_flavor=${FLAVOR:-hardened} +_kpkg=linux-$_flavor +_realname=xtables-addons +_name=$_realname-$_flavor + +_kver=4.9.24 +_kpkgrel=1 + +_realver=2.12 +_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="x86 x86_64 armhf" +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" + +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="2d93dcb98969d0fb149746b2282eafbf566d0f97c74839d194c7b6cb77d50ec71469d6bbb2565dd855fe8ed6783be2fd705f21f9f7e2842aae9205174a79a6bd xtables-addons-2.12.tar.xz" -- cgit v1.2.3