aboutsummaryrefslogtreecommitdiffstats
path: root/main/ipset/APKBUILD
blob: 0706a0d17e25112f8161854238a380641f212196 (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=ipset
pkgver=6.27
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 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

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

md5sums="c39f8958908b1396e2c69f082b75d924  ipset-6.27.tar.bz2
5879eb9ff65f102003376634f60c578f  ipset.initd"
sha256sums="724897a80395534466142c3542184e5a480a5046140ca2a7d9097690b931b235  ipset-6.27.tar.bz2
90822d788ef4b1d04bcf5130ac5b97bbfd044a62be35360289ec1252c590a3c1  ipset.initd"
sha512sums="2406087f64857599de0eb8fbb5377b113717da21d83a6a1a149881f969e139a43b8f1b514c0ae3323754afc0262fd118e2e6acc201e54dade848988bffe9dbb5  ipset-6.27.tar.bz2
73993eb882371f5ef605762c96ad33625b99680aa38c823ed908dfc43b1fa86eb7714fe3b6e4cd5547b7b0a9b1f4209d2541d60341548fcbbfa95244471cfc93  ipset.initd"