2000-08-24 20:08:00 +00:00
|
|
|
Summary: BIRD Internet Routing Daemon
|
|
|
|
Name: bird
|
2022-02-09 02:47:49 +00:00
|
|
|
Version: 2.0.9
|
2001-06-09 15:13:38 +00:00
|
|
|
Release: 1
|
2000-08-24 20:08:00 +00:00
|
|
|
Copyright: GPL
|
|
|
|
Group: Networking/Daemons
|
|
|
|
Source: ftp://bird.network.cz/pub/bird/bird-%{version}.tar.gz
|
|
|
|
Source1: bird.init
|
2004-06-07 14:38:35 +00:00
|
|
|
Source2: birdc6
|
2000-08-24 20:08:00 +00:00
|
|
|
Buildroot: /var/tmp/bird-root
|
|
|
|
Url: http://bird.network.cz
|
|
|
|
Prereq: /sbin/chkconfig
|
2011-10-10 00:33:11 +00:00
|
|
|
BuildRequires: flex bison readline-devel ncurses-devel
|
2000-08-24 20:08:00 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing
|
|
|
|
protocols BGP, RIP and OSPF.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n bird-%{version}
|
|
|
|
|
|
|
|
%build
|
2004-06-07 14:38:35 +00:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6
|
2004-06-06 17:20:16 +00:00
|
|
|
make
|
|
|
|
mv bird bird6
|
2004-06-07 14:38:35 +00:00
|
|
|
make clean
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
2000-08-24 20:08:00 +00:00
|
|
|
make
|
|
|
|
|
2004-06-06 17:20:16 +00:00
|
|
|
|
2000-08-24 20:08:00 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT/*
|
2004-06-07 14:38:35 +00:00
|
|
|
make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var
|
2004-06-06 17:20:16 +00:00
|
|
|
install bird6 $RPM_BUILD_ROOT/usr/sbin
|
2000-08-24 20:08:00 +00:00
|
|
|
|
|
|
|
cd $RPM_BUILD_ROOT
|
2004-06-06 17:20:16 +00:00
|
|
|
install -d etc/rc.d/init.d
|
|
|
|
install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
|
2004-06-07 14:38:35 +00:00
|
|
|
install $RPM_SOURCE_DIR/birdc6 usr/sbin/birdc6
|
2000-08-24 20:08:00 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2000-09-09 19:21:01 +00:00
|
|
|
/sbin/chkconfig --add bird
|
2015-04-20 10:27:00 +00:00
|
|
|
|
2000-08-24 20:08:00 +00:00
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ] ; then
|
2000-09-09 19:21:01 +00:00
|
|
|
/sbin/chkconfig --del bird
|
2015-04-20 10:27:00 +00:00
|
|
|
fi
|
2000-08-24 20:08:00 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%attr(755,root,root) /usr/sbin/bird
|
2004-06-06 17:20:16 +00:00
|
|
|
%attr(755,root,root) /usr/sbin/bird6
|
2000-08-24 20:08:00 +00:00
|
|
|
%attr(755,root,root) /usr/sbin/birdc
|
2004-06-06 17:20:16 +00:00
|
|
|
%attr(755,root,root) /usr/sbin/birdc6
|
2000-09-09 19:21:01 +00:00
|
|
|
%attr(755,root,root) /etc/rc.d/init.d/bird
|