diff options
author | Konstantin Shalygin | 2018-08-07 20:26:41 +0700 |
---|---|---|
committer | Konstantin Shalygin | 2018-08-07 20:26:41 +0700 |
commit | 0bc16da012b71b2adb8bac88b11e57a07bdb6b81 (patch) | |
tree | 05155b9b6db6c3794f116b40217d324a326a53b7 | |
parent | f21891ea56e5e764dd094c16413bd4126cea9035 (diff) | |
download | aur-0bc16da012b71b2adb8bac88b11e57a07bdb6b81.tar.gz |
Allow to define custom linux_localversion.
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | ipt_ndpi.install | 3 |
3 files changed, 9 insertions, 12 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Tue Aug 7 04:19:03 UTC 2018 +# Tue Aug 7 13:26:37 UTC 2018 pkgbase = ipt_ndpi pkgdesc = nDPI as netfilter extension. pkgver = 1.2_2.3.0.1262.97099ff @@ -9,14 +9,7 @@ pkgbase = ipt_ndpi arch = any license = GPL makedepends = git - makedepends = libtool - makedepends = gcc - makedepends = gzip - makedepends = gawk - makedepends = sed - depends = linux depends = iptables - depends = conntrack-tools source = ipt_ndpi::git+https://github.com/vel21ripn/nDPI sha256sums = SKIP @@ -8,13 +8,16 @@ pkgdesc='nDPI as netfilter extension.' arch=('any') url='https://github.com/vel21ripn/nDPI' license=('GPL') -depends=('linux' 'iptables' 'conntrack-tools') -makedepends=('git' 'libtool' 'gcc' 'gzip' 'gawk' 'sed') +depends=('iptables') +makedepends=('git') source=("${pkgname}::git+${url}") sha256sums=('SKIP') install="${pkgname}.install" +# define 'lts' for linux-lts package _linux_custom="ARCH" -_kernver="`pacman -Ql linux| awk '/(\/modules\/)([0-9.-])+-(.*)-'${_linux_custom}'\/$/ {print $2}'`" +# define '-lts' for linux-lts package +_linux_localversion="" +_kernver="`pacman -Ql linux${_linux_localversion} | awk '/(\/modules\/)([0-9.-])+-(.*)-'${_linux_custom}'\/$/ {print $2}'`" pkgver() { cd "${srcdir}/${pkgname}" diff --git a/ipt_ndpi.install b/ipt_ndpi.install index 4ce6a8b84a05..47e5a2bfa5f6 100644 --- a/ipt_ndpi.install +++ b/ipt_ndpi.install @@ -1,6 +1,7 @@ post_install() { linux_custom="ARCH" - kernver="`pacman -Ql linux|gawk 'match($0, /^(.*)modules\/([0-9.-]+-(.*)-'${linux_custom}')\/$/, a) {print a[2]}'`" + linux_localversion="" + kernver="`pacman -Ql linux${linux_localversion} |gawk 'match($0, /^(.*)modules\/([0-9.-]+-(.*)-'${linux_custom}')\/$/, a) {print a[2]}'`" echo -e "Probe modules" depmod ${kernver} } |