aboutsummaryrefslogtreecommitdiffstats
path: root/testing/iprange/APKBUILD
blob: 895d60a6c196f4fc0b2b008155db23021817d29a (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
# Contributor: Jonny Tyers <jtyers@gmail.com>
# Maintainer: Jonny Tyers <jtyers@gmail.com>
pkgname=iprange
pkgver=1.0.3
pkgrel=0
pkgdesc="manages IP ranges (part of FireHOL)"
url="https://github.com/firehol/iprange"
arch="all"
license="GPL-2.0"
depends=""
install=""
subpackages="$pkgname-doc"
source="https://firehol.org/download/iprange/releases/v$pkgver/iprange-$pkgver.tar.bz2"
options="!check"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/ssh \
		--datadir=/usr/share/openssh \
		--libexecdir=/usr/lib/ssh \
		--mandir=/usr/share/man
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="c3da3b0f070010e53d2caa53cf0f11d5a8691ead418f2549c837a287cc8cbd023f36fa85eb7740ddc5df5339f103107cf3be02f6ee1489e160cba10692f9e0e1  iprange-1.0.3.tar.bz2"