diff options
author | Ondrej Filip <feela@network.cz> | 2000-08-24 20:08:00 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-08-24 20:08:00 +0000 |
commit | 6cf7e97abe05ee8943f8a2d300e1c46038b95df1 (patch) | |
tree | f0dfb1bb5dec16f90ee5a5cfbb5b585e68c3914d /misc/bird.spec | |
parent | a24e3157628ade4c0c0c380094bec898b630b2ee (diff) |
Added files for RPM building.
Diffstat (limited to 'misc/bird.spec')
-rw-r--r-- | misc/bird.spec | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/misc/bird.spec b/misc/bird.spec new file mode 100644 index 00000000..57cb2049 --- /dev/null +++ b/misc/bird.spec @@ -0,0 +1,45 @@ +Summary: BIRD Internet Routing Daemon +Name: bird +Version: 1.0.2 +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 +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/ + +%post +/sbin/ldconfig +/sbin/chkconfig --add bird.init + +%preun +if [ $1 = 0 ] ; then + /sbin/chkconfig --del bird.init +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.init +%config /etc/bird.conf |