diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-02-13 19:41:03 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-02-14 18:50:08 +0000 |
commit | 4977f689649b58e9231dbf9382a791c75d38cb97 (patch) | |
tree | 7b9303a2a0863843e493cfe366f3db9d9b75893b /main/xtables-addons-grsec | |
parent | 2490b1a11bcac175094ae65a591cd3cb39b81d94 (diff) | |
download | aports-4977f689649b58e9231dbf9382a791c75d38cb97.tar.bz2 aports-4977f689649b58e9231dbf9382a791c75d38cb97.tar.xz |
main/xtables-addons-grsec: upgrade to 2.12 and 4.9.9 kernel
Diffstat (limited to 'main/xtables-addons-grsec')
-rw-r--r-- | main/xtables-addons-grsec/APKBUILD | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/main/xtables-addons-grsec/APKBUILD b/main/xtables-addons-grsec/APKBUILD index 03cd2bb0a9..d45495db33 100644 --- a/main/xtables-addons-grsec/APKBUILD +++ b/main/xtables-addons-grsec/APKBUILD @@ -4,19 +4,12 @@ _kpkg=linux-$_flavor _realname=xtables-addons _name=$_realname-$_flavor -_kver=4.4.47 +_kver=4.9.9 _kpkgrel=0 -_realver=2.11 +_realver=2.12 _mypkgrel=0 -# source the kernel version -if [ -f ../linux-$_flavor/APKBUILD ]; then - . ../linux-$_flavor/APKBUILD - [ "$_kver" != "$pkgver" ] && die "$_name: Please update _kver to $pkgver" - [ "$_kpkgrel" != "$pkgrel" ] && die "$_name: Please update _kpkgrel to $pkgrel" -fi - _kernelver=$_kver-r$_kpkgrel _abi_release=${_kver}-${_kpkgrel}-${_flavor} @@ -34,14 +27,27 @@ install_if="linux-$_flavor=$_kernelver $_realname" subpackages= source="http://downloads.sourceforge.net/$_realname/$_realname-$_realver.tar.xz" -_builddir="$srcdir/$_realname-$_realver" +builddir="$srcdir/$_realname-$_realver" prepare() { - cd "$_builddir" + 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" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -54,10 +60,8 @@ build() { } package() { - cd "$_builddir/extensions" + cd "$builddir/extensions" make DESTDIR="$pkgdir" modules_install } -md5sums="9f3123295db81a9d1bc08dabf075d0d6 xtables-addons-2.11.tar.xz" -sha256sums="f14f8953a9d3a70157a82883886ff6ec866c61dbea1585edb421478107279921 xtables-addons-2.11.tar.xz" -sha512sums="28a2b7335dc478b8efc5fa25357d2e2789303232ce31a7a6da3a3742fdaa84c7d222ebb0d6f1f900652d39b9caf9b13196309429a8aecd5e0cb936b6bd9de1bb xtables-addons-2.11.tar.xz" +sha512sums="2d93dcb98969d0fb149746b2282eafbf566d0f97c74839d194c7b6cb77d50ec71469d6bbb2565dd855fe8ed6783be2fd705f21f9f7e2842aae9205174a79a6bd xtables-addons-2.12.tar.xz" |