0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-18 09:08:42 +00:00
bird/misc/bird.spec

46 lines
1.1 KiB
RPMSpec
Raw Normal View History

2000-08-24 20:08:00 +00:00
Summary: BIRD Internet Routing Daemon
Name: bird
2001-06-09 15:13:38 +00:00
Version: 1.0.5
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
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
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
cd $RPM_BUILD_ROOT
install -c -d etc/rc.d/init.d
install -c $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
2000-08-24 20:08:00 +00:00
%post
/sbin/ldconfig
/sbin/chkconfig --add bird
2000-08-24 20:08:00 +00:00
%preun
if [ $1 = 0 ] ; then
/sbin/chkconfig --del bird
2000-08-24 20:08:00 +00:00
fi
%files
%attr(755,root,root) /usr/sbin/bird
%attr(755,root,root) /usr/sbin/birdc
%attr(755,root,root) /etc/rc.d/init.d/bird
2000-08-24 20:08:00 +00:00
%config /etc/bird.conf