aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bird/APKBUILD
blob: d84546647dd66d1f29ec2066cce46d81c53c0591 (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
# Contributor: Francesco Zanini <francesco@zanini.me>
# Contributor: Katie Holly <holly@fuslvz.ws>
# Maintainer: Francesco Zanini <francesco@zanini.me>
pkgname=bird
pkgver=2.0.7
pkgrel=3
pkgdesc="BIRD Internet Routing Daemon"
url="https://bird.network.cz/"
arch="all"
license="GPL-2.0-or-later"
makedepends="bison flex ncurses-dev readline-dev linux-headers"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-openrc"
source="
	ftp://bird.network.cz/pub/bird/bird-$pkgver.tar.gz
	bird-make-test-bsprintf.patch
	bird.initd
	bird.confd
	bird-gcc10-fix.patch
	"

# flawed test on big-endian
case "$CARCH" in
s390x|mips*) options="!check";;
esac

build() {
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/bird.initd "$pkgdir"/etc/init.d/bird
	install -Dm644 "$srcdir"/bird.confd "$pkgdir"/etc/conf.d/bird
}

sha512sums="48ca63be923285dd282e80d7e2b240256953fd7ad4f6eaa5dcba2648f3f148be20198bc8c6e7e888aac1588ecb005a4f4c03e979853e76ea6f8680643a874b35  bird-2.0.7.tar.gz
e0a9bab1bb84ab4efbf51c4c015bf35196d146560f737979d3a17c44dc2397d9578e61a3bba0c58f3cdbb108074f17288bf536db5d8d4dce87c91f1be3dc6282  bird-make-test-bsprintf.patch
8d2f6c95d9ce218dd1e3cbc847b8c39584cdb336b2ba1484294e1f3894e5b03b0966a098b5820c2980ef486c04460cbdc71fefe915dc458c459dbd8e8e6a618f  bird.initd
22e9ce0a5b5aedd1fe7f9aeb2c5c327ff6df8fe8a42b7bc21194bab8ec16f68d99480507b97b74ea549b4cac4f51fedf7d488ccb4defa44dd90d7f3a63d667cf  bird.confd
b43d6bc0e25810aa30c7eacd647996ae6b324fba7dc70bc48eb4dcd7c3d661dae192720a988cad65e01a99f143ea0bba06adef8e87ade265e19e87a9381a53f1  bird-gcc10-fix.patch"