]>
Commit | Line | Data |
---|---|---|
1 | Summary: BIRD Internet Routing Daemon | |
2 | Name: bird | |
3 | Version: 1.6.2 | |
4 | Release: 1 | |
5 | Copyright: GPL | |
6 | Group: Networking/Daemons | |
7 | Source: ftp://bird.network.cz/pub/bird/bird-%{version}.tar.gz | |
8 | Source1: bird.init | |
9 | Source2: birdc6 | |
10 | Buildroot: /var/tmp/bird-root | |
11 | Url: http://bird.network.cz | |
12 | Prereq: /sbin/chkconfig | |
13 | BuildRequires: flex bison readline-devel ncurses-devel | |
14 | ||
15 | %description | |
16 | BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing | |
17 | protocols BGP, RIP and OSPF. | |
18 | ||
19 | %prep | |
20 | %setup -n bird-%{version} | |
21 | ||
22 | %build | |
23 | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6 | |
24 | make | |
25 | mv bird bird6 | |
26 | make clean | |
27 | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var | |
28 | make | |
29 | ||
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT/* | |
33 | make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var | |
34 | install bird6 $RPM_BUILD_ROOT/usr/sbin | |
35 | ||
36 | cd $RPM_BUILD_ROOT | |
37 | install -d etc/rc.d/init.d | |
38 | install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird | |
39 | install $RPM_SOURCE_DIR/birdc6 usr/sbin/birdc6 | |
40 | ||
41 | %post | |
42 | /sbin/ldconfig | |
43 | /sbin/chkconfig --add bird | |
44 | ||
45 | %preun | |
46 | if [ $1 = 0 ] ; then | |
47 | /sbin/chkconfig --del bird | |
48 | fi | |
49 | ||
50 | %files | |
51 | %attr(755,root,root) /usr/sbin/bird | |
52 | %attr(755,root,root) /usr/sbin/bird6 | |
53 | %attr(755,root,root) /usr/sbin/birdc | |
54 | %attr(755,root,root) /usr/sbin/birdc6 | |
55 | %attr(755,root,root) /etc/rc.d/init.d/bird |