diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | ipt_iftag.install | 3 |
3 files changed, 6 insertions, 3 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Fri Aug 18 09:12:54 UTC 2017 +# Mon Nov 13 08:41:11 UTC 2017 pkgbase = ipt_iftag pkgdesc = Netfilter extension that can operate on groups of interfaces. pkgver = 6.04d141a @@ -13,7 +13,8 @@ makedepends=('git' 'libtool' 'gcc' 'gzip' 'gawk' 'sed') source=("${pkgname}::git+${url}") sha256sums=('SKIP') install="${pkgname}.install" -_kernver="`pacman -Ql linux| awk '/(\/modules\/)([0-9.-])+-ARCH\/$/ {print $2}'`" +_linux_custom="ARCH" +_kernver="`pacman -Ql linux| awk '/(\/modules\/)([0-9.-])+-'${_linux_custom}'\/$/ {print $2}'`" pkgver() { cd "${srcdir}/${pkgname}" @@ -23,6 +24,7 @@ pkgver() { } build() { + echo ${_kernver} cd "${srcdir}/${pkgname}" make KERNEL_DIR="${_kernver}build" } diff --git a/ipt_iftag.install b/ipt_iftag.install index b49fe6130f68..0bddbd3b8950 100644 --- a/ipt_iftag.install +++ b/ipt_iftag.install @@ -1,5 +1,6 @@ post_install() { - kernver="`pacman -Ql linux|gawk 'match($0, /^(.*)modules\/([0-9.-]+-ARCH)\/$/, a) {print a[2]}'`" + linux_custom="ARCH" + kernver="`pacman -Ql linux|gawk 'match($0, /^(.*)modules\/([0-9.-]+-'${linux_custom}')\/$/, a) {print a[2]}'`" echo -e "Probe modules" depmod ${kernver} } |