2 %bcond_without ipv6 # disable IPv6 support (and building bird-ipv6 package)
3 %bcond_without ipv4 # disable IPv4 support (and building bird-ipv4 package)
6 # - trigger to clean up after old bird package (stop, chkconfig --del)
8 Summary: Routing daemon
9 Summary(pl): Demon dynamicznego routingu
14 Group: Networking/Daemons
15 Source0: ftp://bird.network.cz/pub/bird/%{name}-%{version}.tar.gz
16 # Source0-md5: 6a1d94b8a33b80e754ea4f9cc0ac1ff3
17 Source1: %{name}-ipv4.init
18 Source2: %{name}-ipv4.sysconfig
19 Source3: %{name}-ipv6.init
20 Source4: %{name}-ipv6.sysconfig
21 Patch0: %{name}-posix.patch
22 Patch1: %{name}-flex.patch
23 URL: http://bird.network.cz/
24 BuildRequires: autoconf
25 BuildRequires: automake
26 BuildRequires: readline-devel >= 4.2
28 Requires(post,preun): /sbin/chkconfig
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Obsoletes: zebra-guile
37 The BIRD project is an attempt to create a routing daemon running on
38 UNIX-like systems (but not necessarily limited to them) with full
39 support of all modern routing protocols, easy to use configuration
40 interface and powerful route filtering language.
43 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
44 pracuj±cego na systemach UNIX z pe³nym wsparciem dla nowoczesnych
45 protoko³ów routingu, ³atwym interfejsem konfiguracji i jêzykiem
46 filtrów o du¿ych mo¿liwo¶ciach.
49 Summary: Routing daemon for IPv4
50 Summary(pl): Demon dynamicznego routingu IPv4
51 Group: Networking/Daemons
53 Requires(post,preun): /sbin/chkconfig
54 Provides: routingdaemon
59 Obsoletes: zebra-guile
60 Requires: %{name} = %{version}-%{release}
63 The BIRD project is an attempt to create a routing daemon running on
64 UNIX-like systems (but not necessarily limited to them) with full
65 support of all modern routing protocols, easy to use configuration
66 interface and powerful route filtering language.
68 %description -l pl ipv4
69 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
70 pracuj±cego na systemach UNIX z pe³nym wsparciem dla nowoczesnych
71 protoko³ów routingu, ³atwym interfejsem konfiguracji i jêzykiem
72 filtrów o du¿ych mo¿liwo¶ciach.
75 Summary: Routing daemon for IPv6
76 Summary(pl): Demon dynamicznego routingu IPv6
77 Group: Networking/Daemons
79 Requires(post,preun): /sbin/chkconfig
80 Provides: routingdaemon
85 Obsoletes: zebra-guile
86 Requires: %{name} = %{version}-%{release}
89 The BIRD project is an attempt to create a routing daemon running on
90 UNIX-like systems (but not necessarily limited to them) with full
91 support of all modern routing protocols, easy to use configuration
92 interface and powerful route filtering language.
94 %description -l pl ipv6
95 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
96 pracuj±cego na systemach UNIX z pe³nym wsparciem dla nowoczesnych
97 protoko³ów routingu, ³atwym interfejsem konfiguracji i jêzykiem
98 filtrów o du¿ych mo¿liwo¶ciach.
106 cp -f /usr/share/automake/config.* tools
130 rm -rf $RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig,%{_sbindir}}
133 install birdc $RPM_BUILD_ROOT%{_sbindir}
136 install bird $RPM_BUILD_ROOT%{_sbindir}
137 install doc/bird.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
138 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-ipv4
139 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-ipv4
143 install bird-6 $RPM_BUILD_ROOT%{_sbindir}
144 cat <<EOF > $RPM_BUILD_ROOT%{_sbindir}/birdc-6
146 exec %{_sbindir}/birdc -s /var/run/bird-6.ctl
148 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-ipv6
149 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-ipv6
153 rm -rf $RPM_BUILD_ROOT
156 /sbin/chkconfig --add %{name}-ipv4 >&2
158 if [ -f /var/lock/subsys/%{name}-ipv4 ]; then
159 /etc/rc.d/init.d/%{name}-ipv4 restart >&2
161 echo "Run '/etc/rc.d/init.d/%{name}-ipv4 start' to start routing deamon." >&2
165 if [ "$1" = "0" ]; then
166 if [ -f /var/lock/subsys/%{name}-ipv4 ]; then
167 /etc/rc.d/init.d/%{name}-ipv4 stop >&2
169 /sbin/chkconfig --del %{name}-ipv4 >&2
173 /sbin/chkconfig --add %{name}-ipv6 >&2
175 if [ -f /var/lock/subsys/%{name}-ipv6 ]; then
176 /etc/rc.d/init.d/%{name}-ipv6 restart >&2
178 echo "Run '/etc/rc.d/init.d/%{name}-ipv6 start' to start routing deamon." >&2
182 if [ "$1" = "0" ]; then
183 if [ -f /var/lock/subsys/%{name}-ipv6 ]; then
184 /etc/rc.d/init.d/%{name}-ipv6 stop >&2
186 /sbin/chkconfig --del %{name}-ipv6 >&2
190 %defattr(644,root,root,755)
191 %doc doc/*.html TODO README
192 %attr(755,root,root) %{_sbindir}/birdc
196 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_sbindir}/bird
198 %attr(754,root,root) /etc/rc.d/init.d/bird-ipv4
199 %attr(754,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/bird-ipv4
200 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bird.conf
205 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_sbindir}/bird-6
207 %attr(755,root,root) %{_sbindir}/birdc-6
208 %attr(754,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/bird-ipv6
209 %attr(754,root,root) %config(noreplace) %verify(not size mtime md5) /etc/rc.d/init.d/bird-ipv6
210 #%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bird-6.conf