Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (1.33 KB)

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