aboutsummaryrefslogtreecommitdiffstats
path: root/main/ipset/APKBUILD
blob: f2d427802e8e1928189b6620600fd60e69b95cf1 (plain) (blame)
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.24
pkgrel=1
pkgdesc="Manage Linux IP sets"
url=http://ipset.netfilter.org/
arch="all"
license="GPL2"
depends_dev="libmnl-dev"
makedepends="$depends_dev automake autoconf 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="8831b8f01458bf2abacc222884195a62  ipset-6.24.tar.bz2
14be64266379ee174a1ec05cc0dd1cfe  ipset.initd"
sha256sums="3071fc283f00a6472b5b352ef57f9825c9face70dda5b0d8715f8d43d0e995d0  ipset-6.24.tar.bz2
0740ecf458b3eed921805b105b246a38bae49c2d3f04f8bc93e3d1f6f56c5e2f  ipset.initd"
sha512sums="107bf492030dc4e8e4c2a939e46a715f58458126bfb636dae993e5bf31151d33c2a41b89eb5cca85b71d95b3e36debf97cdfc72c568f351091df17159003d6c6  ipset-6.24.tar.bz2
01db7b2ce10e6253ca050e4f49746cbdfb62744efc80aa68b28735d2c17551cec27b97c992be621f505aa772a137b12b4f189e63113854a5f4c1477571d254cc  ipset.initd"