aboutsummaryrefslogtreecommitdiffstats
path: root/main/ipset/APKBUILD
blob: c4015b3dbe3efed9ba6b2dc3c5816829b0cc508f (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=ipset
pkgver=6.21.1
pkgrel=0
pkgdesc="Manage Linux IP sets"
url=http://ipset.netfilter.org/
arch="all"
license="GPL2"
depends_dev="libmnl-dev"
makedepends="$depends_dev automake autoconf pkgconfig libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="http://ipset.netfilter.org/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 \
		--build=$CBUILD \
		--host=$CHOST \
		--with-kmod=no \
		--prefix=/usr \
		|| return 1
	make || return 1
}

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="9c136fd51694eb0ef259cda085145da0  ipset-6.21.1.tar.bz2
bedd95e2ada2f75af1032f9ab63efb3e  ipset.initd"
sha256sums="cf46c9c35a15aa0f2e0fbab0422586757bd82386c8ad3864936e6cffbd74a331  ipset-6.21.1.tar.bz2
f68ab7e726b96e03c203ac1b71a019a081c635a6ab19021c05756b9695ad94e5  ipset.initd"
sha512sums="c2ffb2eafc780e15370fd48841f4323c39e8fef1893216c8bc0b8aa8d143f9daf078c6e261e4558243004fe9612ce1d5ca4cca16f8b3f324f4194700c1b0accb  ipset-6.21.1.tar.bz2
92832a6722a6ae18a7e5cde445dfe0bb8065de4be2bc24b2a9948cd0da511118b5c5f3515c7c619a0c71444350065c20bce1b215283501e582536c8e88458d05  ipset.initd"