]>
Commit | Line | Data |
---|---|---|
6cf7e97a OF |
1 | Summary: BIRD Internet Routing Daemon |
2 | Name: bird | |
f51b1f55 | 3 | Version: 1.6.2 |
c48b3329 | 4 | Release: 1 |
6cf7e97a OF |
5 | Copyright: GPL |
6 | Group: Networking/Daemons | |
7 | Source: ftp://bird.network.cz/pub/bird/bird-%{version}.tar.gz | |
8 | Source1: bird.init | |
6721e286 | 9 | Source2: birdc6 |
6cf7e97a OF |
10 | Buildroot: /var/tmp/bird-root |
11 | Url: http://bird.network.cz | |
12 | Prereq: /sbin/chkconfig | |
00a124e3 | 13 | BuildRequires: flex bison readline-devel ncurses-devel |
6cf7e97a OF |
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 | |
6721e286 | 23 | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6 |
e677d04a OF |
24 | make |
25 | mv bird bird6 | |
6721e286 OF |
26 | make clean |
27 | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var | |
6cf7e97a OF |
28 | make |
29 | ||
e677d04a | 30 | |
6cf7e97a OF |
31 | %install |
32 | rm -rf $RPM_BUILD_ROOT/* | |
6721e286 | 33 | make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var |
e677d04a | 34 | install bird6 $RPM_BUILD_ROOT/usr/sbin |
6cf7e97a OF |
35 | |
36 | cd $RPM_BUILD_ROOT | |
e677d04a OF |
37 | install -d etc/rc.d/init.d |
38 | install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird | |
6721e286 | 39 | install $RPM_SOURCE_DIR/birdc6 usr/sbin/birdc6 |
6cf7e97a OF |
40 | |
41 | %post | |
42 | /sbin/ldconfig | |
482bbc73 | 43 | /sbin/chkconfig --add bird |
deec752e | 44 | |
6cf7e97a OF |
45 | %preun |
46 | if [ $1 = 0 ] ; then | |
482bbc73 | 47 | /sbin/chkconfig --del bird |
deec752e | 48 | fi |
6cf7e97a OF |
49 | |
50 | %files | |
51 | %attr(755,root,root) /usr/sbin/bird | |
e677d04a | 52 | %attr(755,root,root) /usr/sbin/bird6 |
6cf7e97a | 53 | %attr(755,root,root) /usr/sbin/birdc |
e677d04a | 54 | %attr(755,root,root) /usr/sbin/birdc6 |
482bbc73 | 55 | %attr(755,root,root) /etc/rc.d/init.d/bird |