Commit e677d04a authored by Ondřej Filip's avatar Ondřej Filip
Browse files

RPM is now able to build IPv4 and IPv6 bird.

parent 41c8976e
......@@ -19,12 +19,6 @@ Globals
- protocols: implement reconfigure hook
- protocols: use locking
- check use of system includes and sprintf()
- refuse to run twice on single system
- build v4 and v6 in once
Various ideas
......@@ -18,16 +18,22 @@ protocols BGP, RIP and OSPF.
%setup -n bird-%{version}
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --enable-ipv6
mv bird bird6
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run
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
install -c -d etc/rc.d/init.d
install -c $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
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/
......@@ -40,6 +46,8 @@ fi
%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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment