6 %define with_opaque_lsa
1
7 %define with_tcp_zebra
0
11 %define with_multipath
64
14 %define _sysconfdir
/etc
/zebra
15 %define zeb_src
%{_builddir}/%{name}-%{version}
16 %define zeb_rh_src
%{zeb_src}/redhat
17 %define zeb_docs
%{zeb_src}/doc
19 # defines for configure
20 %define _libexecdir
%{_exec_prefix}/libexec
/zebra
21 %define _includedir
%{_prefix}/include
/zebra
22 %define _libdir
%{_exec_prefix}/%{_lib}/zebra
24 Summary: Routing daemon
29 Group: System Environment
/Daemons
30 Source0: ftp
://ftp.zebra.org
/pub
/zebra
/%{name}-%{version}.tar.gz
31 URL: http
://www.zebra.org
/
33 #BuildRequires: ucd-snmp-devel
37 BuildRequires
: readline readline
-devel ncurses ncurses
-devel
38 Prereq
: readline ncurses
40 BuildRequires
: texinfo tetex autoconf openssl
-devel pam
-devel patch
41 # Initscripts > 5.60 is required for IPv6 support
42 Prereq
: initscripts
>= 5.60
43 Prereq
: openssl ncurses readline pam
44 Prereq
: /sbin
/install-info
45 Provides: routingdaemon
46 BuildRoot: %{_tmppath}/%{name}-%{version}-root
47 Obsoletes
: bird gated mrt
50 GNU Zebra is a free software that manages TCP
/IP based routing
51 protocol. It takes multi
-server and multi
-thread approach to resolve
52 the current complexity of the Internet.
54 GNU Zebra supports BGP4
, BGP4
+, OSPFv2
, OSPFv3
, RIPv1
, RIPv2
, and RIPng.
56 GNU Zebra is intended to be used as a Route Server and a Route
57 Reflector. It is not a toolkit
, it provides full routing power under
58 a new architecture. GNU Zebra is unique
in design
in that it has a
59 process
for each protocol.
62 Summary: contrib tools
for zebra
63 Group: System Environment
/Daemons
66 Contributed
/3rd party tools which may be of use with zebra.
69 Summary: Header and object files
for zebra development
70 Group: System Environment
/Daemons
73 The zebra
-devel package contains the header and object files neccessary
for
74 developing OSPF
-API and zebra applications.
91 --enable-multipath
=%with_multipath \
100 --enable-opaque
-lsa \
113 make %{?_smp_mflags} rebuild
116 make %{?_smp_mflags} MAKEINFO
="makeinfo
--no
-split"
123 rm -rf $RPM_BUILD_ROOT
125 install -d $RPM_BUILD_ROOT
/etc
/{rc.d
/init.d
,sysconfig
,logrotate.d
,pam.d
} \
126 $RPM_BUILD_ROOT
/var
/log
/zebra $RPM_BUILD_ROOT
%{_infodir}
129 DESTDIR
=$RPM_BUILD_ROOT
131 install %{zeb_rh_src}/zebra.init $RPM_BUILD_ROOT
/etc
/rc.d
/init.d
/zebra
132 install %{zeb_rh_src}/bgpd.init $RPM_BUILD_ROOT
/etc
/rc.d
/init.d
/bgpd
134 install %{zeb_rh_src}/ospf6d.init $RPM_BUILD_ROOT
/etc
/rc.d
/init.d
/ospf6d
135 install %{zeb_rh_src}/ripngd.init $RPM_BUILD_ROOT
/etc
/rc.d
/init.d
/ripngd
137 install %{zeb_rh_src}/ospfd.init $RPM_BUILD_ROOT
/etc
/rc.d
/init.d
/ospfd
138 install %{zeb_rh_src}/ripd.init $RPM_BUILD_ROOT
/etc
/rc.d
/init.d
/ripd
139 install -m644
%{zeb_rh_src}/zebra.pam $RPM_BUILD_ROOT
/etc
/pam.d
/zebra
140 install -m644
%{zeb_rh_src}/zebra.logrotate $RPM_BUILD_ROOT
/etc
/logrotate.d
/zebra
143 # zebra_spec_add_service <service name> <port/proto> <comment>
144 # e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
146 zebra_spec_add_service
()
148 # Add port /etc/services entry if it isn't already there
149 if [ -f
/etc
/services
] && ! grep
-q "^$
1[^a
-zA
-Z0
-9]"
/etc
/services
; then
150 echo "$
1 $
2 # $3" >> /etc/services
154 zebra_spec_add_service zebrasrv
2600/tcp "zebra service"
155 zebra_spec_add_service zebra
2601/tcp "zebra vty"
156 zebra_spec_add_service ripd
2602/tcp "RIPd vty"
158 zebra_spec_add_service ripngd
2603/tcp "RIPngd vty"
160 zebra_spec_add_service ospfd
2604/tcp "OSPFd vty"
161 zebra_spec_add_service bgpd
2605/tcp "BGPd vty"
163 zebra_spec_add_service ospf6d
2606/tcp "OSPF6d vty"
166 /sbin
/chkconfig
--add zebra
167 /sbin
/chkconfig
--add ripd
169 /sbin
/chkconfig
--add ripngd
170 /sbin
/chkconfig
--add ospf6d
172 /sbin
/chkconfig
--add ospfd
173 /sbin
/chkconfig
--add bgpd
175 /sbin
/install-info
%{_infodir}/zebra.info.gz %{_infodir}/dir
177 # Create dummy files if they don't exist so basic functions can be used.
178 if [ ! -e
%{_sysconfdir}/zebra.conf
]; then
179 echo "hostname `hostname`"
> %{_sysconfdir}/zebra.conf
180 chmod
640 %{_sysconfdir}/zebra.conf
182 if [ ! -e
%{_sysconfdir}/vtysh.conf
]; then
183 touch
%{_sysconfdir}/vtysh.conf
184 chmod
640 %{_sysconfdir}/vtysh.conf
188 if [ "$
1"
-ge "
1"
]; then
189 /etc
/rc.d
/init.d
/zebra condrestart
>/dev
/null
2>&1
190 /etc
/rc.d
/init.d
/ripd condrestart
>/dev
/null
2>&1
192 /etc
/rc.d
/init.d
/ripngd condrestart
>/dev
/null
2>&1
194 /etc
/rc.d
/init.d
/ospfd condrestart
>/dev
/null
2>&1
196 /etc
/rc.d
/init.d
/ospf6d condrestart
>/dev
/null
2>&1
198 /etc
/rc.d
/init.d
/bgpd condrestart
>/dev
/null
2>&1
200 /sbin
/install-info
--delete
%{_infodir}/zebra.info.gz %{_infodir}/dir
203 if [ "$
1"
= "
0"
]; then
204 /sbin
/chkconfig
--del zebra
205 /sbin
/chkconfig
--del ripd
207 /sbin
/chkconfig
--del ripngd
209 /sbin
/chkconfig
--del ospfd
211 /sbin
/chkconfig
--del ospf6d
213 /sbin
/chkconfig
--del bgpd
217 #rm -rf $RPM_BUILD_ROOT
220 %defattr(-,root
,root
)
221 %doc */*.sample
* AUTHORS COPYING
224 %doc ChangeLog INSTALL NEWS README REPORTING
-BUGS SERVICES TODO
225 %dir %attr(750,root
,root
) %{_sysconfdir}
226 %dir %attr(750,root
,root
) /var
/log
/zebra
227 %dir %attr(755,root
,root
) /usr
/share
/info
235 %config /etc
/rc.d
/init.d
/*
236 %config(noreplace
) /etc
/pam.d
/zebra
237 %config(noreplace
) %attr(640,root
,root
) /etc
/logrotate.d
/*
240 %defattr(-,root
,root
)
244 %defattr(-,root
,root
)
246 %dir %{_includedir}/ospfd
/*
247 %dir %{_includedir}/ospfapi
/*
250 * Mon Mar
18 2003 Paul Jakma
<paul@dishone.st
>
251 - Fix mem leak
in 'show thread cpu'
252 - Ralph Keller's OSPF
-API
253 - Amir
: Fix configure.ac
for net
-snmp
255 * Sat Mar
1 2003 Paul Jakma
<paul@dishone.st
>
256 - ospfd IOS prefix to interface matching
for 'network' statement
257 - temporary fix
for PtP and IPv6
258 - sync to zebra.org CVS
260 * Mon Jan
20 2003 Paul Jakma
<paul@dishone.st
>
261 - update to latest cvs
262 - Yon's "show thread cpu" patch
- 17217
263 - walk up tree
- 17218
264 - ospfd NSSA fixes
- 16681
265 - ospfd nsm fixes
- 16824
266 - ospfd OLSA fixes and new feature
- 16823
267 - KAME and ifindex fixes
- 16525
268 - spec file changes to allow redhat files to be
in tree
270 * Sat Dec
28 2002 Alexander Hoogerhuis
<alexh@ihatent.com
>
271 - Added conditionals
for building with
(out
) IPv6
, vtysh
, RIP
, BGP
272 - Fixed up some build requirements
(patch
)
273 - Added conditional build requirements
for vtysh
/ snmp
274 - Added conditional to
%files for %_bindir depending on vtysh
276 * Mon Nov
11 2002 Paul Jakma
<paulj@alphyra.ie
>
277 - update to latest CVS
278 - add Greg Troxel's md5 buffer copy
/dup fix
280 - add Frank's multicast flag fix
282 * Wed Oct
09 2002 Paul Jakma
<paulj@alphyra.ie
>
283 - update to latest CVS
284 - timestamped crypt_seqnum patch
287 * Mon Sep
30 2002 Paul Jakma
<paulj@alphyra.ie
>
288 - update to latest CVS
289 - add vtysh 'write
-config
(integrated|daemon
)' patch
290 - always '
make rebuild'
in vtysh
/ to catch new commands
292 * Fri Sep
13 2002 Paul Jakma
<paulj@alphyra.ie
>
295 * Wed Sep
11 2002 Paul Jakma
<paulj@alphyra.ie
>
296 - update to latest CVS
297 - add "
/sbin
/ip route flush proto zebra" to zebra RH init on startup
299 * Sat Aug
24 2002 Paul Jakma
<paulj@alphyra.ie
>
300 - update to current CVS
301 - add OSPF point to multipoint patch
303 - add BGP
hash optimisation patch
305 * Fri Jun
14 2002 Paul Jakma
<paulj@alphyra.ie
>
306 - update to
0.93-pre1
/ CVS
307 - add link state detection support
308 - add generic PtP and RFC3021 support
311 * Thu Aug
09 2001 Elliot Lee
<sopwith@redhat.com
> 0.91a
-6
314 * Wed Aug
1 2001 Trond Eivind Glomsrød
<teg@redhat.com
> 0.91a
-5
315 - Use generic initscript strings instead of initscript specific
316 ( "Starting foo
: "
-> "Starting $prog
:"
)
318 * Fri Jul
27 2001 Elliot Lee
<sopwith@redhat.com
> 0.91a
-4
319 - Bump the release when rebuilding into the dist.
321 * Tue Feb
6 2001 Tim Powers
<timp@redhat.com
>
322 - built
for Powertools
324 * Sun Feb
4 2001 Pekka Savola
<pekkas@netcore.
fi>
325 - Hacked up from PLD Linux
0.90-1, Mandrake
0.90-1mdk and one from zebra.org.
327 - Very heavy modifications to init.d
/*, .spec
, pam
, i18n
, logrotate
, etc.
328 - Should be quite Red Hat'isque now.