Statistics
| Branch: | Revision:

iof-bird-daemon / misc / bird.spec @ 6721e286

History | View | Annotate | Download (1.33 KB)

1
Summary: BIRD Internet Routing Daemon
2
Name: bird
3
Version: 1.0.8
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

    
14
%description
15
BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing
16
protocols BGP, RIP and OSPF.
17

    
18
%prep
19
%setup -n bird-%{version}
20

    
21
%build
22
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6
23
make
24
mv bird bird6
25
make clean
26
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
27
make
28

    
29

    
30
%install
31
rm -rf $RPM_BUILD_ROOT/*
32
make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var
33
install bird6 $RPM_BUILD_ROOT/usr/sbin
34

    
35
cd $RPM_BUILD_ROOT
36
install -d etc/rc.d/init.d
37
install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
38
install $RPM_SOURCE_DIR/birdc6 usr/sbin/birdc6
39

    
40
%post
41
/sbin/ldconfig
42
/sbin/chkconfig --add bird
43
 
44
%preun
45
if [ $1 = 0 ] ; then
46
        /sbin/chkconfig --del bird
47
fi                                                                              
48

    
49
%files
50
%attr(755,root,root) /usr/sbin/bird
51
%attr(755,root,root) /usr/sbin/bird6
52
%attr(755,root,root) /usr/sbin/birdc
53
%attr(755,root,root) /usr/sbin/birdc6
54
%attr(755,root,root) /etc/rc.d/init.d/bird