blob: dbda8e3dc66014d2e63d4ffbcef8d382e93177f5 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=quagga-nhrp
pkgver=0.99.24.1_git20150616
_commitid=afac3f9b63e29ac4d8fe5f2c2cfa2bd15c880068
pkgrel=0
pkgdesc="A free routing daemon replacing Zebra supporting RIP, OSPF, BGP and NHRP."
url="http://git.alpinelinux.org/cgit/tteras/quagga/commit/?h=nhrp"
arch="all"
license="GPL-2"
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"
install="$pkgname.pre-install $pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
pkgusers="quagga"
pkggroups="quagga"
source="quagga-nhrp-$pkgver.tar.bz2::http://git.alpinelinux.org/cgit/tteras/quagga/snapshot/quagga-$_commitid.tar.bz2
bgpd-gr-route-selection-fix.patch
bgpd.initd
zebra.initd
zebra.confd
"
_builddir="$srcdir"/quagga-$_commitid
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
./bootstrap.sh || return 1
}
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
rm "$pkgdir"/usr/lib/*.la || 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="8c5f6b43a9d3b74556bb0dd73697c981 quagga-nhrp-0.99.24.1_git20150616.tar.bz2
1fbfcff69bc7df56f9e6682012261004 bgpd-gr-route-selection-fix.patch
09a77e2e84e71c43f5a449738c026261 bgpd.initd
916f1dd1a286ee7b862cda4fe56cbf21 zebra.initd
34e06a1d2bc602ce691abc9ed169dd15 zebra.confd"
sha256sums="2184e13e799529b91b5bc74ba53504c07b94ad9ee9b31321388878d31540046a quagga-nhrp-0.99.24.1_git20150616.tar.bz2
66de5b7c097aeb1767001547e219af51e43f968bd241dec7f0c71b68b54855de bgpd-gr-route-selection-fix.patch
aab037454c6a70cd5cb45e14c47b7dfea358f8d81c7d12418edcf7e58a86c679 bgpd.initd
c1d7526581927e990e687cbd5d08447eb060f76a439475572785b5b90c60c460 zebra.initd
f7a52d383f60270a5a8fee5d4ac522c5c0ec2b7c4b5252cff54e260f32d9b323 zebra.confd"
sha512sums="763f147a0a4436539b80fbfd15bca31ff357aa37496e22ac41439080b8c47e8c4930e30242d2aa043134b6e8aea26be70b65008d3a6e336ead16f599929ddeae quagga-nhrp-0.99.24.1_git20150616.tar.bz2
3e3e1862739ed47da38720d87669ee0bfa2d6e2c2c65388727c92a22cad8b5bf9f4c302701cbd0cf3ac0186eeb1498aefed74c85d8f43ced41c78680fdbbc2ac bgpd-gr-route-selection-fix.patch
13b5b57e10df013bd2d931abc49bf76b8c4dee59dbceab22c9f151ccb988b2c5f7167f2909027d5e0f990b59da8de115667b02484aee9a67d347625700f6cacd bgpd.initd
1638a4a64ffd066b1884f7e5a4243edab68739aabd83bd35ea8c9608af7b8623eece1d59fb08feead84e4386b6d1da4220764ccf5fd7f2a9959a8470d5cce86a zebra.initd
900972c6f98e561dfacf384111251db262326e8764b8c763a5ef639fa11c7949c03eef5e3bce324a4b1964fe45416d2db74ae1b6bc967f7d4ba48c2eeda017c4 zebra.confd"
|