blob: 011028c9385c6ae2bc0dd763d062437aef10c2e0 (
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
|
# Contributor: Francesco Zanini <francesco@zanini.me>
# Contributor: Katie Holly <holly@fuslvz.ws>
# Maintainer: Francesco Zanini <francesco@zanini.me>
pkgname=bird
pkgver=1.6.3
pkgrel=0
pkgdesc="BIRD Internet Routing Daemon"
url="http://bird.network.cz/"
arch="all"
license="GPL-2.0-or-later"
depends=""
makedepends="bison flex ncurses-dev readline-dev linux-headers"
install=""
subpackages="bird6"
source="
ftp://bird.network.cz/pub/bird/bird-$pkgver.tar.gz
bird.initd
"
builddir="$srcdir"/bird-$pkgver
prepare() {
cd "$builddir"
default_prepare
update_config_guess
# generate bird6.initd
cd "$srcdir"
sed -e 's/^name=.*/name=bird6/' bird.initd > bird6.initd
}
_build() {
../configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
"$@"
make
}
build() {
cd "$builddir"
mkdir -p ipv6 ipv4
cd "$builddir"/ipv6
_build --enable-ipv6
cd "$builddir"/ipv4
_build
}
package() {
cd "$builddir"/ipv4
make DESTDIR="$pkgdir" install
cd "$builddir"/ipv6
make DESTDIR="$pkgdir" install
for i in bird bird6; do
install -Dm755 "$srcdir"/$i.initd "$pkgdir"/etc/init.d/$i
done
}
bird6() {
pkgdesc="BIRD Internet Routing Daemon for IPv6"
mkdir -p "$subpkgdir"/etc \
"$subpkgdir"/etc/init.d \
"$subpkgdir"/usr/sbin
mv "$pkgdir"/etc/*6.conf "$subpkgdir"/etc/
for i in etc/init.d usr/sbin; do
mv "$pkgdir"/$i/*6 "$subpkgdir"/$i/
done
}
sha512sums="d0f044cbbb3e5fe0624ad8ae58f5fa352ff41a9cd73f37d803431d9d148927bce52d8f2b82e31dd65c753c55b1034aaf8e15739a511e42cd2dd122b5cd1e15df bird-1.6.3.tar.gz
59245af3fd514421d0babcefed556597022a36d14615d596bb5c08c7dd0a6ed4519928e35a0b7ff14fe27ecfa50fa8011283c92bfc9b8355b15b3263df189d5d bird.initd"
|