Statistics
| Branch: | Revision:

iof-bird-daemon / misc / bird.spec @ milani/bird-2.0.1

History | View | Annotate | Download (1.3 KB)

1 6cf7e97a Ondrej Filip
Summary: BIRD Internet Routing Daemon
2
Name: bird
3 4db4ac72 Ondrej Zajicek (work)
Version: 2.0.1
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 00a124e3 Ondrej Zajicek
BuildRequires: flex bison readline-devel ncurses-devel
14 6cf7e97a Ondrej Filip
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 6721e286 Ondrej Filip
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6
24 e677d04a Ondrej Filip
make
25
mv bird bird6
26 6721e286 Ondrej Filip
make clean
27
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
28 6cf7e97a Ondrej Filip
make
29
30 e677d04a Ondrej Filip
31 6cf7e97a Ondrej Filip
%install
32
rm -rf $RPM_BUILD_ROOT/*
33 6721e286 Ondrej Filip
make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var
34 e677d04a Ondrej Filip
install bird6 $RPM_BUILD_ROOT/usr/sbin
35 6cf7e97a Ondrej Filip
36
cd $RPM_BUILD_ROOT
37 e677d04a Ondrej Filip
install -d etc/rc.d/init.d
38
install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
39 6721e286 Ondrej Filip
install $RPM_SOURCE_DIR/birdc6 usr/sbin/birdc6
40 6cf7e97a Ondrej Filip
41
%post
42
/sbin/ldconfig
43 482bbc73 Ondrej Filip
/sbin/chkconfig --add bird
44 deec752e Ondrej Zajicek
45 6cf7e97a Ondrej Filip
%preun
46
if [ $1 = 0 ] ; then
47 482bbc73 Ondrej Filip
        /sbin/chkconfig --del bird
48 deec752e Ondrej Zajicek
fi
49 6cf7e97a Ondrej Filip
50
%files
51
%attr(755,root,root) /usr/sbin/bird
52 e677d04a Ondrej Filip
%attr(755,root,root) /usr/sbin/bird6
53 6cf7e97a Ondrej Filip
%attr(755,root,root) /usr/sbin/birdc
54 e677d04a Ondrej Filip
%attr(755,root,root) /usr/sbin/birdc6
55 482bbc73 Ondrej Filip
%attr(755,root,root) /etc/rc.d/init.d/bird