aboutsummaryrefslogtreecommitdiffstats
path: root/main/quagga-nhrp/APKBUILD
blob: d7ccac46892dcbf395d79b0ae69662aa1a466d18 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=quagga-nhrp
pkgver=1.1.0
pkgrel=1
pkgdesc="A free routing daemon replacing Zebra supporting RIP, OSPF, BGP and NHRP."
url="http://quagga.net/"
arch="all"
license="GPL2"
depends="iproute2"
makedepends="gawk texinfo perl autoconf automake libtool c-ares-dev
	linux-headers readline-dev ncurses-dev net-snmp-dev libcap-dev"
provides="quagga=0.99"
replaces="quagga"
install="$pkgname.pre-install $pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
pkgusers="quagga"
pkggroups="quagga"
source="http://download.savannah.gnu.org/releases/quagga/quagga-$pkgver.tar.gz
	dont-hook-core-signals.patch
	0001-zebra-use-FIB-state-for-nexthop-tracking.patch
	0002-zebra-fix-nht-validity-checking-to-be-same-as-when-i.patch
	0003-bgpd-honor-disable-connected-check-option-with-next-.patch
	0004-bgpd-simplify-ebgp-multihop-and-ttl-security-handlin.patch
	0005-nhrpd-implement-next-hop-resolution-protocol.patch
	0006-bgpd-allow-using-ebgp-multihop-for-ibgp-connections.patch

	bgpd.initd
	zebra.initd
	zebra.confd
	"

builddir="$srcdir"/quagga-$pkgver

prepare() {
	default_prepare
	autoreconf
}

build() {
	cd "$builddir"
	quagga_cv_ipforward_method=proc \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--enable-ospf6d \
		--enable-rtadv \
		--enable-user=quagga \
		--enable-group=quagga \
		--enable-vty-group=quagga \
		--enable-vtysh \
		--enable-snmp \
		--enable-multipath=64 \
		--enable-pimd \
		--sysconfdir=/etc/quagga \
		--enable-exampledir=/usr/share/doc/quagga/ \
		--localstatedir=/var/run/quagga \
		|| return 1

	# add CFLAGS to work around textrel issue
	make CFLAGS+="-fPIC" || return 1
}

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

	install -o quagga -g quagga -d "$pkgdir"/var/run/quagga
	for i in zebra bgpd; do
		install -Dm755 "$srcdir"/$i.initd "$pkgdir"/etc/init.d/$i
	done
	for i in ripd ospfd ripngd ospf6d nhrpd; do
		ln -s bgpd "$pkgdir"/etc/init.d/$i || return 1
	done
	install -Dm644 "$srcdir/zebra.confd" "$pkgdir"/etc/conf.d/zebra
	install -o quagga -g quagga -d -m755 "$pkgdir"/etc/quagga
}
md5sums="daa303871e07ea5856aae6fd79e89722  quagga-1.1.0.tar.gz
1224ba91ea6b6e81f583bad7813aba98  dont-hook-core-signals.patch
06f0ae78b129cfc729430c4df9e9f807  0001-zebra-use-FIB-state-for-nexthop-tracking.patch
6769244333af49b9a47268111ee690b6  0002-zebra-fix-nht-validity-checking-to-be-same-as-when-i.patch
78450d646cb3e63899a2223ab2dbce97  0003-bgpd-honor-disable-connected-check-option-with-next-.patch
f8c2e263994a9ca1705127f967d858f0  0004-bgpd-simplify-ebgp-multihop-and-ttl-security-handlin.patch
92e66d8bf3058e1db660b89ca4fa323f  0005-nhrpd-implement-next-hop-resolution-protocol.patch
e1a27c077e323e3f915d4c3b142ca56b  0006-bgpd-allow-using-ebgp-multihop-for-ibgp-connections.patch
09a77e2e84e71c43f5a449738c026261  bgpd.initd
916f1dd1a286ee7b862cda4fe56cbf21  zebra.initd
34e06a1d2bc602ce691abc9ed169dd15  zebra.confd"
sha256sums="f7a43a9c59bfd3722002210530b2553c8d5cc05bfea5acd56d4f102b9f55dc63  quagga-1.1.0.tar.gz
4b71588e34ac14f8d6e72e6064b5e4ec302f286ebbe43df94c97411cceb66a23  dont-hook-core-signals.patch
a9cfc74247612640129a0bd8402e78380e35ce86f54ca4aeb40bfcf2a05c5688  0001-zebra-use-FIB-state-for-nexthop-tracking.patch
d290a449084d5be89b124b721a539772ab95e56304d0441723a8811fbd5fa692  0002-zebra-fix-nht-validity-checking-to-be-same-as-when-i.patch
463087091c5fe4ddcc85e476ac56d3bef8c964050b2a45c7b10e670d0c20911b  0003-bgpd-honor-disable-connected-check-option-with-next-.patch
643688c2b3f05b1b307821d0bad18f1452ccebf00d2a5b262ee6fe14f363b14b  0004-bgpd-simplify-ebgp-multihop-and-ttl-security-handlin.patch
f7161e557fde61ce61094df564fe48900af390f2e6098b359d45ef4b0f460697  0005-nhrpd-implement-next-hop-resolution-protocol.patch
4ad0e70d235981c8063395b947a7a677a8d354b130fcf9eb545297e99ce96ddb  0006-bgpd-allow-using-ebgp-multihop-for-ibgp-connections.patch
aab037454c6a70cd5cb45e14c47b7dfea358f8d81c7d12418edcf7e58a86c679  bgpd.initd
c1d7526581927e990e687cbd5d08447eb060f76a439475572785b5b90c60c460  zebra.initd
f7a52d383f60270a5a8fee5d4ac522c5c0ec2b7c4b5252cff54e260f32d9b323  zebra.confd"
sha512sums="3b29a90c4f05593714bda3c702fd2c8886ce48fba2fbfb98f55cc04d1025edd5427944e9a9fb7cd630e5e8ccea388b72a8e611ab65c370e760f3f319d03f090f  quagga-1.1.0.tar.gz
5ef5c5e6d70d991b33b13a062e25b6fbde395dceee36aea29384b0640a48d2957ed5f50d416a1f2f770bf69bae2340133e35b1114be7e1fa722eb6d3d021f37a  dont-hook-core-signals.patch
73f23b62a0fdc4a55dc1dab67a7a79cd2968c090dfe264cc6a733c9f0fb844df47e6c876d98211f94e5903c85103020a669bd3dd5bf6cb4f08c1162e030b6b7b  0001-zebra-use-FIB-state-for-nexthop-tracking.patch
4fb238f07b67d927fc1e5ec5cd184fb7a4247dfcb2e2733496db3277da439d2eb9728c634c40cd87a250b890170120f9b613aeb17aaaf054952d2e7ead81e63c  0002-zebra-fix-nht-validity-checking-to-be-same-as-when-i.patch
568c0c9ca2fff36c7ddf52908b8df7028b0f4242ae0329f002460ee632bb4d8067f5e2d3c1dbb5e1fcb513fe30674babf16338b923628ccc2f838b5c23f4fb39  0003-bgpd-honor-disable-connected-check-option-with-next-.patch
de0d14ceb91d6d858b790c276a2bced579696c36c954084892f90d6c36a27bec62cb496b18e11017fad5a1d646149130bf3bcada1f786f2a9939b606491eff15  0004-bgpd-simplify-ebgp-multihop-and-ttl-security-handlin.patch
9b58fc2be9757676f8ee9c7d766c98b58123f28cace08a3ff0eb7b237d7879c51a8324c8687f488597109fc4e2f30002ac9c1cb0a825bb2604f6723abbeddef6  0005-nhrpd-implement-next-hop-resolution-protocol.patch
dfa33341119fe51caa7bc33b44256f57361f2e3f8192862cca215b312ceb68e6a8c264dbf2a43d6244e6152bfad110cb0fdbefb065d95dd50389cf613d9720b3  0006-bgpd-allow-using-ebgp-multihop-for-ibgp-connections.patch
13b5b57e10df013bd2d931abc49bf76b8c4dee59dbceab22c9f151ccb988b2c5f7167f2909027d5e0f990b59da8de115667b02484aee9a67d347625700f6cacd  bgpd.initd
1638a4a64ffd066b1884f7e5a4243edab68739aabd83bd35ea8c9608af7b8623eece1d59fb08feead84e4386b6d1da4220764ccf5fd7f2a9959a8470d5cce86a  zebra.initd
900972c6f98e561dfacf384111251db262326e8764b8c763a5ef639fa11c7949c03eef5e3bce324a4b1964fe45416d2db74ae1b6bc967f7d4ba48c2eeda017c4  zebra.confd"