aboutsummaryrefslogtreecommitdiffstats
path: root/testing/frr/APKBUILD
blob: 374c242744e139610cb1c95e82563d61112c4f34 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: Arthur Jones <arthur.jones@riverbed.com>
pkgname=frr
pkgver=5.0.1
pkgrel=0
pkgdesc="FRRouting is a fork of quagga"
pkgusers="frr"
pkggroups="frr"
url="https://frrouting.org/"
arch="x86_64"
license="GPL-2.0-only and LGPL-2.1-only"
depends="json-c c-ares iproute2 python py-ipaddr bash"
makedepends="ncurses-dev net-snmp-dev gawk texinfo perl
    acct autoconf automake bash bison bsd-compat-headers
    c-ares-dev cryptsetup-libs device-mapper-libs flex
    json-c-dev kmod lddtree libacl libblkid libburn libedit
    libisoburn libisofs libltdl libtool libuuid linux-headers lzo m4 mkinitfs
    mtools pcre perl python2-dev readline-dev
    squashfs-tools texinfo xorriso py-sphinx"
checkdepends="pytest py-setuptools"
install="$pkgname.pre-install $pkgname.pre-deinstall $pkgname.post-deinstall"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg $pkgname-openrc"
source="https://github.com/FRRouting/frr/archive/$pkgname-$pkgver.tar.gz
    make-check-bypass-isisd-tlv.patch
    frr
    "
builddir="$srcdir"/$pkgname-$pkgname-$pkgver

_sbindir=/usr/lib/frr
_sysconfdir=/etc/frr
_libdir=/usr/lib
_localstatedir=/var/run/frr

build() {
	cd "$builddir"
	./bootstrap.sh
	./configure \
		--prefix=/usr \
		--sbindir=$_sbindir \
		--sysconfdir=$_sysconfdir \
		--libdir=$_libdir \
		--localstatedir=$_localstatedir \
		--enable-systemd=no \
		--enable-vtysh \
		--enable-multipath=64 \
		--enable-vty-group=frrvty \
		--enable-user=${pkgusers%% *} \
		--enable-group=${pkggroups%% *}
	make
}

check() {
	cd "$builddir"

	make -j 1 check
}

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

	install -Dm644 "$builddir"/tools/etc/frr/daemons "$pkgdir"$_sysconfdir
	install -Dm644 "$builddir"/tools/etc/frr/daemons.conf "$pkgdir"$_sysconfdir
	install -Dm755 "$srcdir"/frr "$pkgdir"/etc/init.d/frr
}
sha512sums="e2a3a4e21998f8c85b59fc971190d0b5340bbcd88356a637740ad8e564275b0df14da78b72a24a99a58435725cded1b9089814fc926a7a4080bd3a8762973548  frr-5.0.1.tar.gz
3c679b857018d82443abd34823e712a8657a597b4210730d260e9796516982a137234354422cb439989985367531d600e205d3fb791cdb7b212425bb704c2016  make-check-bypass-isisd-tlv.patch
c8c568c97925191a66d51921a93f86b87b1f47180900528deb96cb91c3a2ee3b8e0874e6397ed7d1406f396d6f1e5afb847155feec74d3f00bb3329dd7d9f0b0  frr"