blob: 1cdb49572e19f8f1652f3a5c96bfd89bd2c0e75d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Amish <contact at via dot aur>
# Contributor: Iacopo Isimbaldi <isiachi@rhye.it>
# Contributor: Lubomir Krajcovic <lubomir.krajcovic(AT)gmail(DOT)com>
# Contributor: Vladimir Kutyavin <vlkut(AT)bk(DOT)ru>
pkgname=xtables-addons-dkms
pkgver=3.26
pkgrel=1
pkgdesc='DKMS for additional extensions for Xtables packet filter present in the Linux kernel'
arch=('i686' 'x86_64')
license=('GPL2')
url="https://inai.de/projects/xtables-addons/"
depends=('dkms')
optdepends=('perl-text-csv-xs: required for building GeoIP database'
'perl-net-cidr-lite: required for building GeoIP database'
'wget: required for building GeoIP database'
'unzip: required for building GeoIP database')
conflicts=(xtables-addons xtables-addons-git xtables-addons-multikernel)
replaces=(xtables-addons xtables-addons-git xtables-addons-multikernel)
source=(https://inai.de/files/${pkgname%-dkms}/${pkgname%-dkms}-${pkgver}.tar.xz
dkms.conf)
sha256sums=('0b52df2117bacf2e32d1d3f98d09dbf88b274390733d3955699b108acaf9f2a6'
'87546f6d100a33271086d3bc990a2a1e4de83e25fb4a048774c520f4c36729e6')
prepare() {
cd "xtables-addons-${pkgver}"
# disable install-exec-hook (avoids useless calling of depmod -a at 'make install' stage)
sed -i 's/^install-exec-hook:$/dont-run:/' Makefile.am
# disable building of xt_ECHO (it's an example module, and it breaks the build)
sed -i 's/^build_ECHO=.*$/build_ECHO=n/' mconfig
}
build() {
cd "xtables-addons-${pkgver}"
# build userspace parts
autoreconf -fvi
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--libdir=/usr/lib \
--mandir=/usr/share/man \
--docdir=/usr/share/doc \
--libexecdir=/usr/lib/xtables \
--with-xtlibdir=/usr/lib/xtables \
--without-kbuild
make
}
package() {
cd "xtables-addons-${pkgver}"
# prepare dkms build tree
dkmsDst="${pkgdir}/usr/src/xtables-addons-${pkgver}"
mkdir -p "${dkmsDst}/"
cp -R . "${dkmsDst}/"
# prepare dkms config
cp "${srcdir}/dkms.conf" "${dkmsDst}/"
sed -i -e "s/@VERSION@/${pkgver}/" "${dkmsDst}/dkms.conf"
make DESTDIR="${pkgdir}" install
}
|