blob: 278d2b21b3bbb6b234290b865fc076b6cafe44a0 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_flavor=${FLAVOR:-grsec}
_realname=xtables-addons
# source the kernel version
if [ -f ../linux-$_flavor/APKBUILD ]; then
. ../linux-$_flavor/APKBUILD
fi
_kernelver=$pkgver-r$pkgrel
_abi_release=$pkgver-${_flavor}
pkgname=${_realname}-${_flavor}
pkgver=${pkgver}
_realver=1.19
pkgrel=0
pkgdesc="Iptables extensions kernel modules"
url="http://xtables-addons.sourceforge.net/"
license="GPL"
depends="linux-${_flavor}=${_kernelver}"
makedepends="linux-${_flavor}-dev=${_kernelver} iptables-dev pkgconfig"
install=
subpackages=
source="http://downloads.sourceforge.net/$_realname/$_realname-$_realver.tar.bz2"
# override kernel's prepare()
prepare() {
:
}
build() {
cd "$srcdir/$_realname-$_realver"
./configure --prefix=/usr \
--with-kbuild=/usr/src/linux-headers-${_abi_release}
cd extensions
make CC="${CC:-gcc}" modules || return 1
}
package() {
cd "$srcdir/$_realname-$_realver"/extensions
make DESTDIR="$pkgdir" modules_install
}
md5sums="6b51556a853aef8a3d1ab8925db809fc xtables-addons-1.19.tar.bz2"
|