blob: 10ccb84877ca8f6144ba50eea1512e081ad32aa2 (
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
|
# Contributor: Francesco Zanini <francesco@zanini.me>
# Maintainer: Francesco Zanini <francesco@zanini.me>
pkgname=bird
pkgver=1.6.0
pkgrel=0
pkgdesc="BIRD Internet Routing Daemon"
url="http://bird.network.cz/"
arch="all"
license="GPLv2+"
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() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
# 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 \
$@ \
|| return 1
make || return 1
}
build() {
cd "$_builddir"
mkdir -p ipv6 ipv4
cd "$_builddir"/ipv6
_build --enable-ipv6 || return 1
cd "$_builddir"/ipv4
_build || return 1
}
package() {
cd "$_builddir"/ipv4
make DESTDIR="$pkgdir" install || return 1
cd "$_builddir"/ipv6
make DESTDIR="$pkgdir" install || return 1
for i in bird bird6; do
install -Dm755 "$srcdir"/$i.initd "$pkgdir"/etc/init.d/$i \
|| return 1
done
}
bird6() {
pkgdesc="BIRD Internet Routing Daemon for IPv6"
mkdir -p "$subpkgdir"/etc \
"$subpkgdir"/etc/init.d \
"$subpkgdir"/usr/sbin || return 1
mv "$pkgdir"/etc/*6.conf "$subpkgdir"/etc/ || return 1
for i in etc/init.d usr/sbin; do
mv "$pkgdir"/$i/*6 "$subpkgdir"/$i/ || return 1
done
}
md5sums="4c92ec3548a2a120243879b6ef7046dd bird-1.6.0.tar.gz
47e25c48363125156e8b61680685c1bc bird.initd"
sha256sums="db3dfe37deac73b38b7d6966e577985f7b8e23f246760cb095ad13b0d8010e13 bird-1.6.0.tar.gz
f32612cfb938b9c634163f1c0177ccd664b77661eb41c978a4a5a4e2941c63ef bird.initd"
sha512sums="3b73c5aa26ac725547d8ff67c35008b6793ef4dc9f22940bacc3871f60abb77e41d93bef0e493d5808eea455e17a04bbba837f16665d726a0a80e73270fed67a bird-1.6.0.tar.gz
0ac7aadd9ed5d736aa39f586002c0ccdaa71817abba09789fd36c773a029e98aee37b449a9c6917836ed495c3838356cdd871e7b1d4ad3dc8e68f18fdf6c3aab bird.initd"
|