aboutsummaryrefslogtreecommitdiffstats
path: root/main/ipset/APKBUILD
blob: acc40c9ab1de5daaca416a6c4e99ec0bd1520c60 (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=ipset
pkgver=6.14
pkgrel=0
pkgdesc="Manage Linux IP sets"
url=http://ipset.netfilter.org/
arch=all
license=GPL-2
depends_dev=libmnl-dev
makedepends="$depends_dev automake autoconf pkgconfig libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="${url}ipset-$pkgver.tar.bz2 ipset.initd"

_builddir=$srcdir/ipset-$pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --with-kmod=no --prefix=/usr && make
}

package() {
	cd "$_builddir"
	make install DESTDIR=$pkgdir || return
	rm $pkgdir/usr/lib/*.la

	mkdir -p "$pkgdir/etc/init.d" \
		"$pkgdir/etc/ipset.d"
	install -m 755 "$startdir/ipset.initd" "$pkgdir/etc/init.d/ipset"
}

md5sums="70f2d4c054592236dcda285855a4ee58  ipset-6.14.tar.bz2
bedd95e2ada2f75af1032f9ab63efb3e  ipset.initd"