aboutsummaryrefslogtreecommitdiffstats
path: root/main/xtables-addons-grsec/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/xtables-addons-grsec/APKBUILD')
-rw-r--r--main/xtables-addons-grsec/APKBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/main/xtables-addons-grsec/APKBUILD b/main/xtables-addons-grsec/APKBUILD
index 78d0b999a5..dcfdd830ab 100644
--- a/main/xtables-addons-grsec/APKBUILD
+++ b/main/xtables-addons-grsec/APKBUILD
@@ -34,13 +34,15 @@ install_if="linux-$_flavor=$_kernelver $_realname"
subpackages=
source="http://downloads.sourceforge.net/$_realname/$_realname-$_realver.tar.xz"
-# override kernel's prepare()
+_builddir="$srcdir/$_realname-$_realver"
+
prepare() {
- :
+ cd "$_builddir"
+ update_config_sub || return 1
}
build() {
- cd "$srcdir/$_realname-$_realver"
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -54,7 +56,7 @@ build() {
}
package() {
- cd "$srcdir/$_realname-$_realver"/extensions
+ cd "$_builddir/extensions"
make DESTDIR="$pkgdir" modules_install
}