bird/misc/bird.spec

55 lines
1.3 KiB
RPMSpec
Raw Normal View History

2000-08-25 04:08:00 +08:00
Summary: BIRD Internet Routing Daemon
Name: bird
2009-08-12 16:26:42 +08:00
Version: 1.1.1
2001-06-09 23:13:38 +08:00
Release: 1
2000-08-25 04:08:00 +08:00
Copyright: GPL
Group: Networking/Daemons
Source: ftp://bird.network.cz/pub/bird/bird-%{version}.tar.gz
Source1: bird.init
2004-06-07 22:38:35 +08:00
Source2: birdc6
2000-08-25 04:08:00 +08:00
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
2004-06-07 22:38:35 +08:00
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6
make
mv bird bird6
2004-06-07 22:38:35 +08:00
make clean
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
2000-08-25 04:08:00 +08:00
make
2000-08-25 04:08:00 +08:00
%install
rm -rf $RPM_BUILD_ROOT/*
2004-06-07 22:38:35 +08:00
make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var
install bird6 $RPM_BUILD_ROOT/usr/sbin
2000-08-25 04:08:00 +08:00
cd $RPM_BUILD_ROOT
install -d etc/rc.d/init.d
install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
2004-06-07 22:38:35 +08:00
install $RPM_SOURCE_DIR/birdc6 usr/sbin/birdc6
2000-08-25 04:08:00 +08:00
%post
/sbin/ldconfig
/sbin/chkconfig --add bird
2000-08-25 04:08:00 +08:00
%preun
if [ $1 = 0 ] ; then
/sbin/chkconfig --del bird
2000-08-25 04:08:00 +08:00
fi
%files
%attr(755,root,root) /usr/sbin/bird
%attr(755,root,root) /usr/sbin/bird6
2000-08-25 04:08:00 +08:00
%attr(755,root,root) /usr/sbin/birdc
%attr(755,root,root) /usr/sbin/birdc6
%attr(755,root,root) /etc/rc.d/init.d/bird