RPM is now able to build IPv4 and IPv6 bird.
This commit is contained in:
parent
41c8976e29
commit
e677d04aeb
2 changed files with 10 additions and 8 deletions
6
TODO
6
TODO
|
@ -19,12 +19,6 @@ Globals
|
||||||
- protocols: implement reconfigure hook
|
- protocols: implement reconfigure hook
|
||||||
- protocols: use locking
|
- protocols: use locking
|
||||||
- check use of system includes and sprintf()
|
- check use of system includes and sprintf()
|
||||||
- refuse to run twice on single system
|
|
||||||
|
|
||||||
|
|
||||||
RPM
|
|
||||||
~~~
|
|
||||||
- build v4 and v6 in once
|
|
||||||
|
|
||||||
Various ideas
|
Various ideas
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
|
@ -18,16 +18,22 @@ protocols BGP, RIP and OSPF.
|
||||||
%setup -n bird-%{version}
|
%setup -n bird-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --enable-ipv6
|
||||||
|
make
|
||||||
|
mv bird bird6
|
||||||
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT/*
|
rm -rf $RPM_BUILD_ROOT/*
|
||||||
make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var/run
|
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
|
||||||
|
|
||||||
cd $RPM_BUILD_ROOT
|
cd $RPM_BUILD_ROOT
|
||||||
install -c -d etc/rc.d/init.d
|
install -d etc/rc.d/init.d
|
||||||
install -c $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
|
install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
|
||||||
|
install $RPM_SOURCE_DIR/birdc6 usr/bin/
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
@ -40,6 +46,8 @@ fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%attr(755,root,root) /usr/sbin/bird
|
%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/birdc
|
||||||
|
%attr(755,root,root) /usr/sbin/birdc6
|
||||||
%attr(755,root,root) /etc/rc.d/init.d/bird
|
%attr(755,root,root) /etc/rc.d/init.d/bird
|
||||||
%config /etc/bird.conf
|
%config /etc/bird.conf
|
||||||
|
|
Loading…
Reference in a new issue