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