6 %define with_opaque_lsa
1
7 %define with_tcp_zebra
0
11 %define with_ospfclient
1
12 %define with_ospfapi
1
16 %define with_multipath
64
17 %define quagga_user quagga
18 %define vty_group quaggavty
21 %define _sysconfdir
/etc
/quagga
22 %define zeb_src
%{_builddir}/%{name}-%{version}
23 %define zeb_rh_src
%{zeb_src}/redhat
24 %define zeb_docs
%{zeb_src}/doc
26 # defines for configure
27 %define _libexecdir
%{_exec_prefix}/libexec
/quagga
28 %define _libdir
%{_exec_prefix}/%{_lib}/quagga
29 %define _includedir
%{_prefix}/include
30 %define _localstatedir
/var
/run
/quagga
32 # misc internal defines
35 %define daemon_list zebra ripd ospfd bgpd
37 %define daemonv6_list
%{daemon_list} ripngd ospf6d
40 %define daemon_other isisd
42 %define daemon_other ""
45 # allow build dir to be kept
48 Summary: Routing daemon
53 Group: System Environment
/Daemons
54 Source0: http
://www.quagga.net
/snapshots
/cvs
/%{name}-%{version}.tar.gz
55 URL: http
://www.quagga.net
57 BuildRequires
: net
-snmp
-devel
61 BuildRequires
: readline readline
-devel ncurses ncurses
-devel
62 Prereq
: readline ncurses
64 BuildRequires
: texinfo tetex autoconf pam
-devel patch libcap
-devel
65 # Initscripts > 5.60 is required for IPv6 support
66 Prereq
: initscripts
>= 5.60
67 Prereq
: ncurses readline pam
68 Prereq
: /sbin
/install-info
69 Provides: routingdaemon
70 BuildRoot: %{_tmppath}/%{name}-%{version}-root
71 Obsoletes
: bird gated mrt zebra
74 Quagga is a free software that manages TCP
/IP based routing
75 protocol. It takes multi
-server and multi
-thread approach to resolve
76 the current complexity of the Internet.
78 Quagga supports BGP4
, BGP4
+, OSPFv2
, OSPFv3
, RIPv1
, RIPv2
, and RIPng.
80 Quagga is intended to be used as a Route Server and a Route Reflector. It is
81 not a toolkit
, it provides full routing power under a new architecture.
82 Quagga by design has a process
for each protocol.
84 Quagga is a fork of GNU Zebra.
87 Summary: contrib tools
for quagga
88 Group: System Environment
/Daemons
91 Contributed
/3rd party tools which may be of use with quagga.
94 Summary: Header and object files
for quagga development
95 Group: System Environment
/Daemons
98 The quagga
-devel package contains the header and object files neccessary
for
99 developing OSPF
-API and quagga applications.
115 %if %{with_multipath}
116 --enable-multipath
=%{with_multipath} \
118 %if %{with_tcp_zebra}
124 %if %{with_opaque_lsa}
125 --enable-opaque
-lsa \
133 %if %{with_ospfclient}
134 --enable-ospfclient
=yes \
136 --enable-ospfclient
=no\
139 --enable-ospfapi
=yes \
141 --enable-ospfapi
=no \
157 --enable-user
=%quagga_user \
158 --enable-group
=%quagga_user \
161 --enable-vty
-group
=%vty_group \
165 make %{?_smp_mflags} MAKEINFO
="makeinfo
--no
-split"
168 texi2html quagga.texi
172 rm -rf $RPM_BUILD_ROOT
174 install -d $RPM_BUILD_ROOT
/etc
/{rc.d
/init.d
,sysconfig
,logrotate.d
,pam.d
} \
175 $RPM_BUILD_ROOT
/var
/log
/quagga $RPM_BUILD_ROOT
%{_infodir}
178 DESTDIR
=$RPM_BUILD_ROOT
180 # Remove this file, as it is uninstalled and causes errors when building on RH9
181 rm -rf $RPM_BUILD_ROOT
/usr
/share
/info
/dir
183 # install etc sources
184 for daemon
in %{daemon_list} %{daemonv6_list} %{daemon_other} ; do
185 if [ x"$
{daemon
}"
!= x""
] ; then
186 install %{zeb_rh_src}/${daemon}.init \
187 $RPM_BUILD_ROOT
/etc
/rc.d
/init.d
/$
{daemon
}
190 install -m644
%{zeb_rh_src}/quagga.pam \
191 $RPM_BUILD_ROOT
/etc
/pam.d
/quagga
192 install -m644
%{zeb_rh_src}/quagga.logrotate \
193 $RPM_BUILD_ROOT
/etc
/logrotate.d
/quagga
194 install -m644
%{zeb_rh_src}/quagga.sysconfig \
195 $RPM_BUILD_ROOT
/etc
/sysconfig
/quagga
196 install -d
-m750 $RPM_BUILD_ROOT
/var
/run
/quagga
201 groupadd
-r
%vty_group 2> /dev
/null ||
:
203 # add quagga user and group
205 /usr
/sbin
/groupadd
-g
%quagga_gid quagga
2> /dev
/null ||
:
206 /usr
/sbin
/useradd
-u
%quagga_uid -g
%quagga_gid \
207 -M
-r
-s
/sbin
/nologin
-c "Quagga routing suite" \
208 -d
%_localstatedir %quagga_user 2> /dev
/null ||
:
212 # zebra_spec_add_service <service name> <port/proto> <comment>
213 # e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
215 zebra_spec_add_service
()
217 # Add port /etc/services entry if it isn't already there
218 if [ -f
/etc
/services
] && \
219 ! %__sed -e 's
/#.*$//' /etc/services | %__grep -wq $1 ; then
220 echo "$
1 $
2 # $3" >> /etc/services
224 zebra_spec_add_service zebrasrv
2600/tcp "zebra service"
225 zebra_spec_add_service zebra
2601/tcp "zebra vty"
226 zebra_spec_add_service ripd
2602/tcp "RIPd vty"
228 zebra_spec_add_service ripngd
2603/tcp "RIPngd vty"
230 zebra_spec_add_service ospfd
2604/tcp "OSPFd vty"
231 zebra_spec_add_service bgpd
2605/tcp "BGPd vty"
233 zebra_spec_add_service ospf6d
2606/tcp "OSPF6d vty"
236 zebra_spec_add_service ospfapi
2607/tcp "OSPF
-API"
239 zebra_spec_add_service isisd
2608/tcp "ISISd vty"
242 for daemon
in %daemon_list ; do
243 /sbin
/chkconfig
--add $
{daemon
}
246 /sbin
/install-info
%{_infodir}/quagga.info.gz %{_infodir}/dir
248 # Create dummy files if they don't exist so basic functions can be used.
249 if [ ! -e
%{_sysconfdir}/zebra.conf
]; then
250 echo "hostname `hostname`"
> %{_sysconfdir}/zebra.conf
251 chmod
640 %{_sysconfdir}/zebra.conf
253 if [ ! -e
%{_sysconfdir}/vtysh.conf
]; then
254 touch
%{_sysconfdir}/vtysh.conf
255 chmod
640 %{_sysconfdir}/vtysh.conf
259 if [ "$
1"
-ge "
1"
]; then
260 for daemon
in %daemon_list ; do
261 /etc
/rc.d
/init.d
/$
{daemon
} condrestart
>/dev
/null
2>&1
266 if [ "$
1"
= "
0"
]; then
267 for daemon
in %daemon_list ; do
268 /etc
/rc.d
/init.d
/$
{daemon
} stop
>/dev
/null
2>&1
269 /sbin
/chkconfig
--del $
{daemon
}
271 /sbin
/install-info
--delete
%{_infodir}/quagga.info.gz %{_infodir}/dir
276 rm -rf $RPM_BUILD_ROOT
280 %defattr(-,root
,root
)
281 %doc */*.sample
* AUTHORS COPYING
284 %doc ChangeLog INSTALL NEWS README REPORTING
-BUGS SERVICES TODO
286 %dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir}
287 %dir %attr(750,%quagga_user,%quagga_user) /var
/log
/quagga
288 %dir %attr(751,%quagga_user,%quagga_user) /var
/run
/quagga
290 %dir %attr(750,root
,root
) %{_sysconfdir}
291 %dir %attr(750,root
,root
) /var
/log
/quagga
292 %dir %attr(755,root
,root
) /usr
/share
/info
293 %dir %attr(750,root
,root
) /var
/run
/quagga
296 %attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
312 %dir %attr(755,root
,root
) %{_libdir}
319 %config /etc
/quagga
/[!v
]*
320 %config /etc
/rc.d
/init.d
/*
321 %config(noreplace
) /etc
/sysconfig
/quagga
322 %config(noreplace
) /etc
/pam.d
/quagga
323 %config(noreplace
) %attr(640,root
,root
) /etc
/logrotate.d
/*
326 %defattr(-,root
,root
)
330 %defattr(-,root
,root
)
331 %if %{with_ospfclient}
332 %{_sbindir}/ospfclient
336 %dir %attr(755,root
,root
) %{_includedir}/%{name}
337 %dir %{_includedir}/%name/*.h
338 %dir %attr(755,root
,root
) %{_includedir}/%{name}/ospfd
339 %dir %{_includedir}/%name/ospfd
/*.h
341 %dir %attr(755,root
,root
) %{_includedir}/%{name}/ospfapi
342 %dir %{_includedir}/%name/ospfapi
/*.h
347 * Sat Oct
23 2004 Paul Jakma
<paul@dishone.st
>
350 * Sat Oct
23 2004 Andrew J. Schorr
<aschorr@telemetry
-investments.com
>
351 - Make directories be owned by the packages concerned
352 - Update logrotate scripts to use correct path to killall and use pid files
354 * Fri Oct
08 2004 Paul Jakma
<paul@dishone.st
>
357 * Wed Sep
15 2004 Paul Jakma
<paul@dishone.st
>
358 - build snmp support by default
360 - build with shared libs
361 - devel subpackage
for archives and headers
363 * Thu Jan
08 2004 Paul Jakma
<paul@dishone.st
>
364 - updated sysconfig files to specify
local dir
365 - added ospf_dump.c crash quick fix patch
366 - added ospfd persistent interface configuration patch
368 * Tue Dec
30 2003 Paul Jakma
<paul@dishone.st
>
370 - integrate RH sysconfig patch to specify daemon options
(RH
)
371 - default to have vty listen only to
127.1 (RH
)
372 - add user with fixed UID
/GID
(RH
)
373 - create user with shell
/sbin
/nologin rather than
/bin
/false
(RH
)
374 - stop daemons on uninstall
(RH
)
375 - delete info file on
%preun, not
%postun to avoid deletion on upgrade.
(RH
)
377 - cleanup tasks carried out
for every daemon
379 * Sun Nov
2 2003 Paul Jakma
<paul@dishone.st
>
380 - Fix
-devel package to include all files
383 * Tue Aug
12 2003 Paul Jakma
<paul@dishone.st
>
385 - Sync to Quagga release
0.96
387 * Tue Mar
20 2003 Paul Jakma
<paul@dishone.st
>
388 - zebra privileges support
390 * Mon Mar
18 2003 Paul Jakma
<paul@dishone.st
>
391 - Fix mem leak
in 'show thread cpu'
392 - Ralph Keller's OSPF
-API
393 - Amir
: Fix configure.ac
for net
-snmp
395 * Sat Mar
1 2003 Paul Jakma
<paul@dishone.st
>
396 - ospfd IOS prefix to interface matching
for 'network' statement
397 - temporary fix
for PtP and IPv6
398 - sync to zebra.org CVS
400 * Mon Jan
20 2003 Paul Jakma
<paul@dishone.st
>
401 - update to latest cvs
402 - Yon's "show thread cpu" patch
- 17217
403 - walk up tree
- 17218
404 - ospfd NSSA fixes
- 16681
405 - ospfd nsm fixes
- 16824
406 - ospfd OLSA fixes and new feature
- 16823
407 - KAME and ifindex fixes
- 16525
408 - spec file changes to allow redhat files to be
in tree
410 * Sat Dec
28 2002 Alexander Hoogerhuis
<alexh@ihatent.com
>
411 - Added conditionals
for building with
(out
) IPv6
, vtysh
, RIP
, BGP
412 - Fixed up some build requirements
(patch
)
413 - Added conditional build requirements
for vtysh
/ snmp
414 - Added conditional to
%files for %_bindir depending on vtysh
416 * Mon Nov
11 2002 Paul Jakma
<paulj@alphyra.ie
>
417 - update to latest CVS
418 - add Greg Troxel's md5 buffer copy
/dup fix
420 - add Frank's multicast flag fix
422 * Wed Oct
09 2002 Paul Jakma
<paulj@alphyra.ie
>
423 - update to latest CVS
424 - timestamped crypt_seqnum patch
427 * Mon Sep
30 2002 Paul Jakma
<paulj@alphyra.ie
>
428 - update to latest CVS
429 - add vtysh 'write
-config
(integrated|daemon
)' patch
430 - always '
make rebuild'
in vtysh
/ to catch new commands
432 * Fri Sep
13 2002 Paul Jakma
<paulj@alphyra.ie
>
435 * Wed Sep
11 2002 Paul Jakma
<paulj@alphyra.ie
>
436 - update to latest CVS
437 - add "
/sbin
/ip route flush proto zebra" to zebra RH init on startup
439 * Sat Aug
24 2002 Paul Jakma
<paulj@alphyra.ie
>
440 - update to current CVS
441 - add OSPF point to multipoint patch
443 - add BGP
hash optimisation patch
445 * Fri Jun
14 2002 Paul Jakma
<paulj@alphyra.ie
>
446 - update to
0.93-pre1
/ CVS
447 - add link state detection support
448 - add generic PtP and RFC3021 support
451 * Thu Aug
09 2001 Elliot Lee
<sopwith@redhat.com
> 0.91a
-6
454 * Wed Aug
1 2001 Trond Eivind Glomsrød
<teg@redhat.com
> 0.91a
-5
455 - Use generic initscript strings instead of initscript specific
456 ( "Starting foo
: "
-> "Starting $prog
:"
)
458 * Fri Jul
27 2001 Elliot Lee
<sopwith@redhat.com
> 0.91a
-4
459 - Bump the release when rebuilding into the dist.
461 * Tue Feb
6 2001 Tim Powers
<timp@redhat.com
>
462 - built
for Powertools
464 * Sun Feb
4 2001 Pekka Savola
<pekkas@netcore.
fi>
465 - Hacked up from PLD Linux
0.90-1, Mandrake
0.90-1mdk and one from zebra.org.
467 - Very heavy modifications to init.d
/*, .spec
, pam
, i18n
, logrotate
, etc.
468 - Should be quite Red Hat'isque now.