aboutsummaryrefslogtreecommitdiffstats
path: root/testing/firehol/APKBUILD
blob: ff780a5d20d890320ea0727cd14757e55057fb09 (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
# Maintainer: Fran├žois Chavant <alpine@mail.chavant.info>
pkgname=firehol
pkgver=3.1.7
pkgrel=0
pkgdesc="firewall for humans"
url="https://firehol.org/"
arch="noarch"
license=" GPL-2.0-only"
depends="bash iprange iproute2 ip6tables iptables"
subpackages="$pkgname-doc $pkgname-openrc"
source="https://github.com/firehol/firehol/releases/download/v$pkgver/firehol-$pkgver.tar.bz2
	firehol.initd
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-fireqos \
		--disable-link-balancer \
		--disable-update-ipsets \
		--disable-vnetbuild
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir/usr/sbin/$pkgname"
	ln -s "/usr/libexec/$pkgname/$pkgver/$pkgname" "$pkgdir/usr/sbin/$pkgname"
	mkdir -p "$pkgdir/etc/init.d"
	install -m 755 "$startdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
}

sha512sums="e80f8e52bd4e48d9f549d7efdea6eb600c128c2729f038e2a9bbebbbb9a0bf47d8ed911c1c32f9241071c65ed57b6a6bff77796a51378b11ddcf10f793e94064  firehol-3.1.7.tar.bz2
7c2c3387b29ff0674e1c4ae500c8ea591388bf4aa3c4d72eaf3f2fcac1cf546e3e2ae026c2bf5e9c62b4f29f0a75e60c9a621bc0a6f78df22502dbbd9f9a2556  firehol.initd"