6 %define with_opaque_lsa
1
7 %define with_tcp_zebra
0
11 %define with_ospfclient
1
12 %define with_ospfapi
1
13 %define with_multipath
64
14 %define quagga_user quagga
15 %define vty_group quaggavty
18 %define _sysconfdir
/etc
/quagga
19 %define zeb_src
%{_builddir}/%{name}-%{version}
20 %define zeb_rh_src
%{zeb_src}/redhat
21 %define zeb_docs
%{zeb_src}/doc
23 # defines for configure
24 %define _libexecdir
%{_exec_prefix}/libexec
/quagga
25 %define _libdir
%{_exec_prefix}/%{_lib}/quagga
26 %define _includedir
%{_prefix}/include
27 %define _localstatedir
/var
/run
/quagga
29 # misc internal defines
33 %define daemon_list zebra ripd isisd ospfd ripngd ospf6d bgpd
35 %define daemon_list zebra ripd isisd ospfd bgpd
38 Summary: Routing daemon
43 Group: System Environment
/Daemons
44 Source0: http
://www.quagga.net
/snapshots
/cvs
/%{name}-%{version}.tar.gz
45 URL: http
://www.quagga.net
47 BuildRequires
: ucd
-snmp
-devel
51 BuildRequires
: readline readline
-devel ncurses ncurses
-devel
52 Prereq
: readline ncurses
54 BuildRequires
: texinfo tetex autoconf pam
-devel patch libcap
-devel
55 # Initscripts > 5.60 is required for IPv6 support
56 Prereq
: initscripts
>= 5.60
57 Prereq
: ncurses readline pam
58 Prereq
: /sbin
/install-info
59 Provides: routingdaemon
60 BuildRoot: %{_tmppath}/%{name}-%{version}-root
61 Obsoletes
: bird gated mrt zebra
64 Quagga is a free software that manages TCP
/IP based routing
65 protocol. It takes multi
-server and multi
-thread approach to resolve
66 the current complexity of the Internet.
68 Quagga supports BGP4
, BGP4
+, OSPFv2
, OSPFv3
, RIPv1
, RIPv2
, and RIPng.
70 Quagga is intended to be used as a Route Server and a Route Reflector. It is
71 not a toolkit
, it provides full routing power under a new architecture.
72 Quagga by design has a process
for each protocol.
74 Quagga is a fork of GNU Zebra.
77 Summary: contrib tools
for quagga
78 Group: System Environment
/Daemons
81 Contributed
/3rd party tools which may be of use with quagga.
84 Summary: Header and object files
for quagga development
85 Group: System Environment
/Daemons
88 The quagga
-devel package contains the header and object files neccessary
for
89 developing OSPF
-API and quagga applications.
103 --enable-multipath
=%with_multipath \
112 --enable-opaque
-lsa \
121 --enable-ospfclient
=yes \
123 --enable-ospfclient
=no\
126 --enable-ospfapi
=yes \
128 --enable-ospfapi
=no \
134 --enable-user
=%quagga_user \
135 --enable-group
=%quagga_user \
138 --enable-vty
-group
=%vty_group \
142 make %{?_smp_mflags} MAKEINFO
="makeinfo
--no
-split"
145 texi2html quagga.texi
149 rm -rf $RPM_BUILD_ROOT
151 install -d $RPM_BUILD_ROOT
/etc
/{rc.d
/init.d
,sysconfig
,logrotate.d
,pam.d
} \
152 $RPM_BUILD_ROOT
/var
/log
/quagga $RPM_BUILD_ROOT
%{_infodir}
155 DESTDIR
=$RPM_BUILD_ROOT
157 # Remove this file, as it is uninstalled and causes errors when building on RH9
158 rm -rf $RPM_BUILD_ROOT
/usr
/share
/info
/dir
160 # install etc sources
161 for daemon
in %daemon_list ; do
162 install %{zeb_rh_src}/${daemon}.init \
163 $RPM_BUILD_ROOT
/etc
/rc.d
/init.d
/$
{daemon
}
165 install -m644
%{zeb_rh_src}/quagga.pam \
166 $RPM_BUILD_ROOT
/etc
/pam.d
/quagga
167 install -m644
%{zeb_rh_src}/quagga.logrotate \
168 $RPM_BUILD_ROOT
/etc
/logrotate.d
/quagga
169 install -m644
%{zeb_rh_src}/quagga.sysconfig \
170 $RPM_BUILD_ROOT
/etc
/sysconfig
/quagga
171 install -d
-m750 $RPM_BUILD_ROOT
/var
/run
/quagga
176 groupadd
-r
%vty_group 2> /dev
/null ||
:
178 # add quagga user and group
180 /usr
/sbin
/groupadd
-g
%quagga_gid quagga
2> /dev
/null ||
:
181 /usr
/sbin
/useradd
-u
%quagga_uid -g
%quagga_gid \
182 -M
-r
-s
/sbin
/nologin
-c "Quagga routing suite" \
183 -d
%_localstatedir %quagga_user 2> /dev
/null ||
:
187 # zebra_spec_add_service <service name> <port/proto> <comment>
188 # e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
190 zebra_spec_add_service
()
192 # Add port /etc/services entry if it isn't already there
193 if [ -f
/etc
/services
] && ! grep
-q "^$
1[^a
-zA
-Z0
-9]"
/etc
/services
; then
194 echo "$
1 $
2 # $3" >> /etc/services
198 zebra_spec_add_service zebrasrv
2600/tcp "zebra service"
199 zebra_spec_add_service zebra
2601/tcp "zebra vty"
200 zebra_spec_add_service ripd
2602/tcp "RIPd vty"
202 zebra_spec_add_service ripngd
2603/tcp "RIPngd vty"
204 zebra_spec_add_service ospfd
2604/tcp "OSPFd vty"
205 zebra_spec_add_service bgpd
2605/tcp "BGPd vty"
207 zebra_spec_add_service ospf6d
2606/tcp "OSPF6d vty"
210 zebra_spec_add_service ospfapi
2607/tcp "OSPF
-API"
212 zebra_spec_add_service isisd
2608/tcp "ISISd vty"
214 for daemon
in %daemon_list ; do
215 /sbin
/chkconfig
--add $
{daemon
}
218 /sbin
/install-info
%{_infodir}/quagga.info.gz %{_infodir}/dir
220 # Create dummy files if they don't exist so basic functions can be used.
221 if [ ! -e
%{_sysconfdir}/zebra.conf
]; then
222 echo "hostname `hostname`"
> %{_sysconfdir}/zebra.conf
223 chmod
640 %{_sysconfdir}/zebra.conf
225 if [ ! -e
%{_sysconfdir}/vtysh.conf
]; then
226 touch
%{_sysconfdir}/vtysh.conf
227 chmod
640 %{_sysconfdir}/vtysh.conf
231 if [ "$
1"
-ge "
1"
]; then
232 for daemon
in %daemon_list ; do
233 /etc
/rc.d
/init.d
/$
{daemon
} condrestart
>/dev
/null
2>&1
238 if [ "$
1"
= "
0"
]; then
239 for daemon
in %daemon_list ; do
240 /etc
/rc.d
/init.d
/$
{daemon
} stop
>/dev
/null
2>&1
241 /sbin
/chkconfig
--del $
{daemon
}
243 /sbin
/install-info
--delete
%{_infodir}/quagga.info.gz %{_infodir}/dir
247 #rm -rf $RPM_BUILD_ROOT
250 %defattr(-,root
,root
)
251 %doc */*.sample
* AUTHORS COPYING
254 %doc ChangeLog INSTALL NEWS README REPORTING
-BUGS SERVICES TODO
256 %dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir}
257 %dir %attr(750,%quagga_user,%quagga_user) /var
/log
/quagga
258 %dir %attr(751,%quagga_user,%quagga_user) /var
/run
/quagga
260 %dir %attr(750,root
,root
) %{_sysconfdir}
261 %dir %attr(750,root
,root
) /var
/log
/quagga
262 %dir %attr(755,root
,root
) /usr
/share
/info
263 %dir %attr(750,root
,root
) /var
/run
/quagga
266 %attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
274 %config /etc
/quagga
/[!v
]*
275 %config /etc
/rc.d
/init.d
/*
276 %config(noreplace
) /etc
/sysconfig
/quagga
277 %config(noreplace
) /etc
/pam.d
/quagga
278 %config(noreplace
) %attr(640,root
,root
) /etc
/logrotate.d
/*
281 %defattr(-,root
,root
)
285 %defattr(-,root
,root
)
287 %dir %{_includedir}/%name/*.h
288 %dir %{_includedir}/%name/ospfd
/*.h
290 %dir %{_includedir}/%name/ospfapi
/*.h
295 * Thu Jan
08 2004 Paul Jakma
<paul@dishone.st
>
296 - updated sysconfig files to specify
local dir
297 - added ospf_dump.c crash quick fix patch
298 - added ospfd persistent interface configuration patch
300 * Tue Dec
30 2003 Paul Jakma
<paul@dishone.st
>
302 - integrate RH sysconfig patch to specify daemon options
(RH
)
303 - default to have vty listen only to
127.1 (RH
)
304 - add user with fixed UID
/GID
(RH
)
305 - create user with shell
/sbin
/nologin rather than
/bin
/false
(RH
)
306 - stop daemons on uninstall
(RH
)
307 - delete info file on
%preun, not
%postun to avoid deletion on upgrade.
(RH
)
309 - cleanup tasks carried out
for every daemon
311 * Sun Nov
2 2003 Paul Jakma
<paul@dishone.st
>
312 - Fix
-devel package to include all files
315 * Tue Aug
12 2003 Paul Jakma
<paul@dishone.st
>
317 - Sync to Quagga release
0.96
319 * Tue Mar
20 2003 Paul Jakma
<paul@dishone.st
>
320 - zebra privileges support
322 * Mon Mar
18 2003 Paul Jakma
<paul@dishone.st
>
323 - Fix mem leak
in 'show thread cpu'
324 - Ralph Keller's OSPF
-API
325 - Amir
: Fix configure.ac
for net
-snmp
327 * Sat Mar
1 2003 Paul Jakma
<paul@dishone.st
>
328 - ospfd IOS prefix to interface matching
for 'network' statement
329 - temporary fix
for PtP and IPv6
330 - sync to zebra.org CVS
332 * Mon Jan
20 2003 Paul Jakma
<paul@dishone.st
>
333 - update to latest cvs
334 - Yon's "show thread cpu" patch
- 17217
335 - walk up tree
- 17218
336 - ospfd NSSA fixes
- 16681
337 - ospfd nsm fixes
- 16824
338 - ospfd OLSA fixes and new feature
- 16823
339 - KAME and ifindex fixes
- 16525
340 - spec file changes to allow redhat files to be
in tree
342 * Sat Dec
28 2002 Alexander Hoogerhuis
<alexh@ihatent.com
>
343 - Added conditionals
for building with
(out
) IPv6
, vtysh
, RIP
, BGP
344 - Fixed up some build requirements
(patch
)
345 - Added conditional build requirements
for vtysh
/ snmp
346 - Added conditional to
%files for %_bindir depending on vtysh
348 * Mon Nov
11 2002 Paul Jakma
<paulj@alphyra.ie
>
349 - update to latest CVS
350 - add Greg Troxel's md5 buffer copy
/dup fix
352 - add Frank's multicast flag fix
354 * Wed Oct
09 2002 Paul Jakma
<paulj@alphyra.ie
>
355 - update to latest CVS
356 - timestamped crypt_seqnum patch
359 * Mon Sep
30 2002 Paul Jakma
<paulj@alphyra.ie
>
360 - update to latest CVS
361 - add vtysh 'write
-config
(integrated|daemon
)' patch
362 - always '
make rebuild'
in vtysh
/ to catch new commands
364 * Fri Sep
13 2002 Paul Jakma
<paulj@alphyra.ie
>
367 * Wed Sep
11 2002 Paul Jakma
<paulj@alphyra.ie
>
368 - update to latest CVS
369 - add "
/sbin
/ip route flush proto zebra" to zebra RH init on startup
371 * Sat Aug
24 2002 Paul Jakma
<paulj@alphyra.ie
>
372 - update to current CVS
373 - add OSPF point to multipoint patch
375 - add BGP
hash optimisation patch
377 * Fri Jun
14 2002 Paul Jakma
<paulj@alphyra.ie
>
378 - update to
0.93-pre1
/ CVS
379 - add link state detection support
380 - add generic PtP and RFC3021 support
383 * Thu Aug
09 2001 Elliot Lee
<sopwith@redhat.com
> 0.91a
-6
386 * Wed Aug
1 2001 Trond Eivind Glomsrød
<teg@redhat.com
> 0.91a
-5
387 - Use generic initscript strings instead of initscript specific
388 ( "Starting foo
: "
-> "Starting $prog
:"
)
390 * Fri Jul
27 2001 Elliot Lee
<sopwith@redhat.com
> 0.91a
-4
391 - Bump the release when rebuilding into the dist.
393 * Tue Feb
6 2001 Tim Powers
<timp@redhat.com
>
394 - built
for Powertools
396 * Sun Feb
4 2001 Pekka Savola
<pekkas@netcore.
fi>
397 - Hacked up from PLD Linux
0.90-1, Mandrake
0.90-1mdk and one from zebra.org.
399 - Very heavy modifications to init.d
/*, .spec
, pam
, i18n
, logrotate
, etc.
400 - Should be quite Red Hat'isque now.