blob: 31345d11b694117f0e2ac6e8973e6d61e17f1fb6 (
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
66
67
68
69
70
71
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_flavor=${FLAVOR:-vanilla}
_kpkg=linux-$_flavor
_realname=xtables-addons
_name=$_realname-$_flavor
_kver=4.14.13
_kpkgrel=2
_realver=2.14
_mypkgrel=2
_kernelver=$_kver-r$_kpkgrel
_abi_release=${_kver}-${_kpkgrel}-${_flavor}
pkgname=$_name
pkgver=$_kver
pkgrel=$(($_kpkgrel + $_mypkgrel))
pkgdesc="Iptables extensions kernel modules"
url="http://xtables-addons.sourceforge.net/"
arch="all"
license="GPL"
depends="linux-${_flavor}=${_kernelver}"
makedepends="linux-${_flavor}-dev=${_kernelver} iptables-dev linux-headers"
install=
install_if="linux-$_flavor=$_kernelver $_realname"
subpackages=
source="http://downloads.sourceforge.net/$_realname/$_realname-$_realver.tar.xz"
# temporary disable the provides til hardened is fully removed
#provides="$_realname-grsec=${pkgver}-r${pkgrel}"
#replaces="$_realname-hardened"
builddir="$srcdir/$_realname-$_realver"
options="!check"
prepare() {
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"
unset LDFLAGS
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--with-kbuild=/usr/src/linux-headers-${_abi_release} \
|| return 1
cd extensions
make modules || return 1
}
package() {
cd "$builddir/extensions"
make DESTDIR="$pkgdir" modules_install
}
sha512sums="f3d49c53aa01fadc334906e580f16605849fe7be83637fa73d51b48ded0e77c368c544ad69fa97b53a6688eaa3ba63bab489c150a9e02205e8044cdd521f4752 xtables-addons-2.14.tar.xz"
|