]>
Commit | Line | Data |
---|---|---|
edd7c245 | 1 | # configure options |
b64d92a8 | 2 | # |
3 | # Some can be overriden on rpmbuild commandline with: | |
4 | # rpmbuild --define 'variable value' | |
f755bf6d | 5 | # (use any value, ie 1 for flag "with_XXXX" definitions) |
b64d92a8 | 6 | # |
30da4585 PJ |
7 | # E.g. rpmbuild --define 'release_rev 02' may be useful if building |
8 | # rpms again and again on the same day, so the newer rpms can be installed. | |
9 | # bumping the number each time. | |
b64d92a8 | 10 | |
1189075b | 11 | ####################### Quagga configure options ######################### |
12 | # with-feature options | |
f755bf6d | 13 | %{!?with_tcp_zebra: %global with_tcp_zebra 0 } |
c63f5f2c | 14 | %{!?with_pam: %global with_pam 0 } |
f755bf6d MW |
15 | %{!?with_ospfclient: %global with_ospfclient 1 } |
16 | %{!?with_ospfapi: %global with_ospfapi 1 } | |
17 | %{!?with_irdp: %global with_irdp 1 } | |
18 | %{!?with_rtadv: %global with_rtadv 1 } | |
f755bf6d | 19 | %{!?with_shared: %global with_shared 1 } |
c63f5f2c | 20 | %{!?with_multipath: %global with_multipath 256 } |
f755bf6d | 21 | %{!?quagga_user: %global quagga_user quagga } |
95786d9e | 22 | %{!?vty_group: %global vty_group quaggavty } |
f755bf6d MW |
23 | %{!?with_fpm: %global with_fpm 0 } |
24 | %{!?with_watchquagga: %global with_watchquagga 1 } | |
30b9d89b | 25 | |
26 | # path defines | |
6bd8fd3b | 27 | %define _sysconfdir /etc/quagga |
c63f5f2c | 28 | %define _sbindir /usr/lib/quagga |
f755bf6d | 29 | %define zeb_src %{_builddir}/%{name}-%{quaggaversion} |
8f754983 | 30 | %define zeb_rh_src %{zeb_src}/redhat |
31 | %define zeb_docs %{zeb_src}/doc | |
c63f5f2c DS |
32 | %define quagga_tools %{zeb_src}/tools |
33 | %define cumulus_dir %{zeb_src}/cumulus/etc | |
788cdc6d | 34 | |
e0626854 | 35 | # defines for configure |
6bd8fd3b | 36 | %define _localstatedir /var/run/quagga |
1189075b | 37 | ############################################################################ |
38 | ||
f755bf6d MW |
39 | #### Version String tweak |
40 | # Remove invalid characters form version string and replace with _ | |
d4fbc1de | 41 | %{expand: %%global rpmversion %(echo '@VERSION@' | tr [:blank:]- _ )} |
f755bf6d | 42 | %define quaggaversion @VERSION@ |
1189075b | 43 | |
f755bf6d MW |
44 | #### Check version of texi2html |
45 | # Old versions don't support "--number-footnotes" option. | |
d4fbc1de | 46 | %{expand: %%global texi2htmlversion %(/usr/bin/texi2html --version | cut -d. -f1)} |
1189075b | 47 | |
f755bf6d MW |
48 | #### Check for systemd or init.d (upstart) |
49 | # Check for init.d (upstart) as used in CentOS 6 or systemd (ie CentOS 7) | |
50 | %{expand: %%global initsystem %(if [[ `/sbin/init --version 2> /dev/null` =~ upstart ]]; then echo upstart; elif [[ `systemctl` =~ -\.mount ]]; then echo systemd; fi)} | |
51 | # | |
52 | # If init system is systemd, then always disable watchquagga | |
53 | # | |
54 | %if "%{initsystem}" == "systemd" | |
55 | # Note: For systems with systemd, watchquagga will NOT be built. Systemd | |
56 | # takes over the role of restarting crashed processes. Value will | |
57 | # be overwritten with 0 below for systemd independent on the setting here | |
c63f5f2c | 58 | %global with_watchquagga 1 |
f755bf6d | 59 | %endif |
7c08d77f | 60 | |
f755bf6d MW |
61 | # if FPM is enabled, then enable tcp_zebra as well |
62 | # | |
63 | %if %{with_fpm} | |
64 | %global with_tcp_zebra 1 | |
65 | %endif | |
e0626854 | 66 | |
15d74e93 | 67 | # misc internal defines |
c63f5f2c DS |
68 | %{!?quagga_uid: %global quagga_uid 92 } |
69 | %{!?quagga_gid: %global quagga_gid 92 } | |
70 | %{!?vty_gid: %global vty_gid 85 } | |
f755bf6d | 71 | |
341969b3 | 72 | %define daemon_list zebra ripd ospfd bgpd isisd pimd ripngd ospfd6d |
0df63b52 | 73 | |
f755bf6d MW |
74 | |
75 | %if %{with_watchquagga} | |
76 | %define daemon_watchquagga watchquagga | |
77 | %else | |
78 | %define daemon_watchquagga "" | |
79 | %endif | |
80 | ||
341969b3 | 81 | %define all_daemons %{daemon_list} %{daemon_watchquagga} |
b3324e27 | 82 | |
b5f310cb | 83 | # allow build dir to be kept |
f755bf6d | 84 | %{!?keep_build: %global keep_build 0 } |
b5f310cb | 85 | |
4859e20c | 86 | #release sub-revision (the two digits after the CONFDATE) |
c63f5f2c | 87 | %{!?release_rev: %global release_rev 01 } |
4859e20c | 88 | |
788cdc6d | 89 | Summary: Routing daemon |
f755bf6d MW |
90 | Name: quagga |
91 | Version: %{rpmversion} | |
92 | Release: @CONFDATE@%{release_rev}%{?dist} | |
93 | License: GPLv2+ | |
94 | Group: System Environment/Daemons | |
95 | Source0: http://download.savannah.gnu.org/releases/quagga/%{name}-%{quaggaversion}.tar.gz | |
96 | URL: http://www.quagga.net | |
97 | Requires: ncurses | |
98 | Requires(pre): /sbin/install-info | |
99 | Requires(preun): /sbin/install-info | |
100 | Requires(post): /sbin/install-info | |
101 | BuildRequires: texi2html texinfo autoconf patch libcap-devel groff | |
30b9d89b | 102 | BuildRequires: readline readline-devel ncurses ncurses-devel |
f755bf6d | 103 | Requires: ncurses |
f755bf6d MW |
104 | %if %{with_pam} |
105 | BuildRequires: pam-devel | |
106 | Requires: pam | |
107 | %endif | |
108 | %if "%{initsystem}" == "systemd" | |
109 | BuildRequires: systemd | |
110 | Requires(post): systemd | |
111 | Requires(preun): systemd | |
112 | Requires(postun): systemd | |
113 | %else | |
788cdc6d | 114 | # Initscripts > 5.60 is required for IPv6 support |
fa75585d | 115 | Requires(pre): initscripts >= 5.60 |
f755bf6d MW |
116 | %endif |
117 | Provides: routingdaemon = %{version}-%{release} | |
118 | BuildRoot: %{_tmppath}/%{name}-%{version}-root | |
119 | Obsoletes: bird gated mrt zebra quagga-sysvinit | |
788cdc6d | 120 | |
121 | %description | |
6bd8fd3b | 122 | Quagga is a free software that manages TCP/IP based routing |
788cdc6d | 123 | protocol. It takes multi-server and multi-thread approach to resolve |
124 | the current complexity of the Internet. | |
125 | ||
f755bf6d | 126 | Quagga supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng and PIM. |
788cdc6d | 127 | |
6bd8fd3b | 128 | Quagga is intended to be used as a Route Server and a Route Reflector. It is |
129 | not a toolkit, it provides full routing power under a new architecture. | |
130 | Quagga by design has a process for each protocol. | |
131 | ||
132 | Quagga is a fork of GNU Zebra. | |
788cdc6d | 133 | |
448ed4a2 | 134 | %package contrib |
6bd8fd3b | 135 | Summary: contrib tools for quagga |
448ed4a2 | 136 | Group: System Environment/Daemons |
137 | ||
138 | %description contrib | |
6bd8fd3b | 139 | Contributed/3rd party tools which may be of use with quagga. |
448ed4a2 | 140 | |
e0626854 | 141 | %package devel |
6bd8fd3b | 142 | Summary: Header and object files for quagga development |
e0626854 | 143 | Group: System Environment/Daemons |
f755bf6d | 144 | Requires: %{name} = %{version}-%{release} |
e0626854 | 145 | |
146 | %description devel | |
6bd8fd3b | 147 | The quagga-devel package contains the header and object files neccessary for |
148 | developing OSPF-API and quagga applications. | |
e0626854 | 149 | |
788cdc6d | 150 | %prep |
f755bf6d | 151 | %setup -q -n quagga-%{quaggaversion} |
788cdc6d | 152 | |
153 | %build | |
7966b97c | 154 | |
155 | # For standard gcc verbosity, uncomment these lines: | |
156 | #CFLAGS="%{optflags} -Wall -Wsign-compare -Wpointer-arith" | |
157 | #CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings" | |
158 | ||
159 | # For ultra gcc verbosity, uncomment these lines also: | |
160 | #CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes" | |
161 | #CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn" | |
162 | #CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code" | |
163 | #CFLAGS="${CFLAGS} -Wpacked -Wpadded" | |
164 | ||
788cdc6d | 165 | %configure \ |
c63f5f2c | 166 | --sbindir=%{_sbindir} \ |
f755bf6d MW |
167 | --sysconfdir=%{_sysconfdir} \ |
168 | --libdir=%{_libdir} \ | |
169 | --libexecdir=%{_libexecdir} \ | |
170 | --localstatedir=%{_localstatedir} \ | |
171 | --disable-werror \ | |
54b25dca | 172 | %if !%{with_shared} |
173 | --disable-shared \ | |
174 | %endif | |
54b25dca | 175 | %if %{with_multipath} |
176 | --enable-multipath=%{with_multipath} \ | |
788cdc6d | 177 | %endif |
54b25dca | 178 | %if %{with_tcp_zebra} |
788cdc6d | 179 | --enable-tcp-zebra \ |
180 | %endif | |
788cdc6d | 181 | --enable-vtysh \ |
54b25dca | 182 | %if %{with_ospfclient} |
68980084 | 183 | --enable-ospfclient=yes \ |
184 | %else | |
185 | --enable-ospfclient=no\ | |
186 | %endif | |
54b25dca | 187 | %if %{with_ospfapi} |
68980084 | 188 | --enable-ospfapi=yes \ |
189 | %else | |
190 | --enable-ospfapi=no \ | |
191 | %endif | |
54b25dca | 192 | %if %{with_irdp} |
5b819262 | 193 | --enable-irdp=yes \ |
194 | %else | |
195 | --enable-irdp=no \ | |
196 | %endif | |
e7cd37bf | 197 | %if %{with_rtadv} |
198 | --enable-rtadv=yes \ | |
199 | %else | |
200 | --enable-rtadv=no \ | |
201 | %endif | |
54b25dca | 202 | %if %{with_pam} |
edd7c245 | 203 | --with-libpam \ |
788cdc6d | 204 | %endif |
f755bf6d | 205 | %if 0%{?quagga_user:1} |
6bd8fd3b | 206 | --enable-user=%quagga_user \ |
207 | --enable-group=%quagga_user \ | |
edd7c245 | 208 | %endif |
f755bf6d | 209 | %if 0%{?vty_group:1} |
edd7c245 | 210 | --enable-vty-group=%vty_group \ |
211 | %endif | |
f755bf6d MW |
212 | %if %{with_fpm} |
213 | --enable-fpm \ | |
214 | %else | |
215 | --disable-fpm \ | |
216 | %endif | |
217 | %if %{with_watchquagga} | |
218 | --enable-watchquagga \ | |
219 | %else | |
220 | --disable-watchquagga \ | |
221 | %endif | |
c63f5f2c DS |
222 | --enable-gcc-rdynamic \ |
223 | --enable-systemd=yes \ | |
224 | --enable-poll=yes | |
788cdc6d | 225 | |
226 | make %{?_smp_mflags} MAKEINFO="makeinfo --no-split" | |
227 | ||
228 | pushd doc | |
f755bf6d MW |
229 | %if %{texi2htmlversion} < 5 |
230 | texi2html --number-sections quagga.texi | |
231 | %else | |
7c08d77f | 232 | texi2html --number-footnotes --number-sections quagga.texi |
f755bf6d | 233 | %endif |
788cdc6d | 234 | popd |
235 | ||
236 | %install | |
c63f5f2c | 237 | mkdir -p %{buildroot}/etc/{quagga,sysconfig,logrotate.d,pam.d,default} \ |
f755bf6d MW |
238 | %{buildroot}/var/log/quagga %{buildroot}%{_infodir} |
239 | make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install | |
788cdc6d | 240 | |
9a344b74 | 241 | # Remove this file, as it is uninstalled and causes errors when building on RH9 |
f755bf6d | 242 | rm -rf %{buildroot}/usr/share/info/dir |
9a344b74 | 243 | |
c63f5f2c | 244 | |
f755bf6d MW |
245 | # install /etc sources |
246 | %if "%{initsystem}" == "systemd" | |
247 | mkdir -p %{buildroot}%{_unitdir} | |
c63f5f2c DS |
248 | install %{quagga_tools}/quagga.service \ |
249 | %{buildroot}%{_unitdir}/quagga.service | |
f755bf6d MW |
250 | %else |
251 | mkdir -p %{buildroot}/etc/rc.d/init.d | |
b3324e27 | 252 | for daemon in %{all_daemons} ; do |
da29c6b0 | 253 | if [ x"${daemon}" != x"" ] ; then |
254 | install %{zeb_rh_src}/${daemon}.init \ | |
f755bf6d | 255 | %{buildroot}/etc/rc.d/init.d/${daemon} |
da29c6b0 | 256 | fi |
15d74e93 | 257 | done |
f755bf6d MW |
258 | %endif |
259 | ||
c63f5f2c DS |
260 | install %{cumulus_dir}/quagga/debian.conf %{buildroot}/etc/quagga |
261 | install %{cumulus_dir}/quagga/daemons %{buildroot}/etc/quagga | |
262 | install -m644 %{cumulus_dir}/default/quagga %{buildroot}/etc/default | |
30da4585 | 263 | install -m644 %{zeb_rh_src}/quagga.pam \ |
f755bf6d | 264 | %{buildroot}/etc/pam.d/quagga |
15d74e93 | 265 | install -m644 %{zeb_rh_src}/quagga.logrotate \ |
f755bf6d | 266 | %{buildroot}/etc/logrotate.d/quagga |
f755bf6d | 267 | install -d -m750 %{buildroot}/var/run/quagga |
edd7c245 | 268 | |
269 | %pre | |
270 | # add vty_group | |
f755bf6d | 271 | %if 0%{?vty_group:1} |
e7cd37bf | 272 | if getent group %vty_group > /dev/null ; then : ; else \ |
f755bf6d | 273 | /usr/sbin/groupadd -r -g %vty_gid %vty_group > /dev/null || : ; fi |
edd7c245 | 274 | %endif |
e7cd37bf | 275 | |
6bd8fd3b | 276 | # add quagga user and group |
f755bf6d | 277 | %if 0%{?quagga_user:1} |
e7cd37bf | 278 | # Ensure that quagga_gid gets correctly allocated |
279 | if getent group %quagga_user >/dev/null; then : ; else \ | |
280 | /usr/sbin/groupadd -g %quagga_gid %quagga_user > /dev/null || : ; \ | |
281 | fi | |
282 | if getent passwd %quagga_user >/dev/null ; then : ; else \ | |
283 | /usr/sbin/useradd -u %quagga_uid -g %quagga_gid \ | |
284 | -M -r -s /sbin/nologin -c "Quagga routing suite" \ | |
285 | -d %_localstatedir %quagga_user 2> /dev/null || : ; \ | |
286 | fi | |
edd7c245 | 287 | %endif |
788cdc6d | 288 | |
788cdc6d | 289 | %post |
30b9d89b | 290 | # zebra_spec_add_service <service name> <port/proto> <comment> |
788cdc6d | 291 | # e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service" |
292 | ||
293 | zebra_spec_add_service () | |
294 | { | |
295 | # Add port /etc/services entry if it isn't already there | |
6b637e96 | 296 | if [ -f /etc/services ] && \ |
297 | ! %__sed -e 's/#.*$//' /etc/services | %__grep -wq $1 ; then | |
788cdc6d | 298 | echo "$1 $2 # $3" >> /etc/services |
299 | fi | |
300 | } | |
301 | ||
302 | zebra_spec_add_service zebrasrv 2600/tcp "zebra service" | |
303 | zebra_spec_add_service zebra 2601/tcp "zebra vty" | |
304 | zebra_spec_add_service ripd 2602/tcp "RIPd vty" | |
305 | zebra_spec_add_service ripngd 2603/tcp "RIPngd vty" | |
306 | zebra_spec_add_service ospfd 2604/tcp "OSPFd vty" | |
307 | zebra_spec_add_service bgpd 2605/tcp "BGPd vty" | |
308 | zebra_spec_add_service ospf6d 2606/tcp "OSPF6d vty" | |
54b25dca | 309 | %if %{with_ospfapi} |
7021c425 | 310 | zebra_spec_add_service ospfapi 2607/tcp "OSPF-API" |
311 | %endif | |
5a514b14 | 312 | zebra_spec_add_service isisd 2608/tcp "ISISd vty" |
12e41d03 | 313 | zebra_spec_add_service pimd 2611/tcp "PIMd vty" |
788cdc6d | 314 | |
f755bf6d MW |
315 | %if "%{initsystem}" == "systemd" |
316 | for daemon in %all_daemons ; do | |
c63f5f2c | 317 | %systemd_post quagga.service |
f755bf6d MW |
318 | done |
319 | %else | |
320 | for daemon in %all_daemons ; do | |
15d74e93 | 321 | /sbin/chkconfig --add ${daemon} |
322 | done | |
f755bf6d | 323 | %endif |
788cdc6d | 324 | |
6bd8fd3b | 325 | /sbin/install-info %{_infodir}/quagga.info.gz %{_infodir}/dir |
788cdc6d | 326 | |
327 | # Create dummy files if they don't exist so basic functions can be used. | |
328 | if [ ! -e %{_sysconfdir}/zebra.conf ]; then | |
329 | echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf | |
f755bf6d MW |
330 | %if 0%{?quagga_user:1} |
331 | chown %quagga_user:%quagga_user %{_sysconfdir}/zebra.conf* | |
e7cd37bf | 332 | %endif |
788cdc6d | 333 | chmod 640 %{_sysconfdir}/zebra.conf |
334 | fi | |
f755bf6d MW |
335 | for daemon in %{all_daemons} ; do |
336 | if [ ! -e %{_sysconfdir}/${daemon}.conf ]; then | |
337 | touch %{_sysconfdir}/${daemon}.conf | |
338 | %if 0%{?quagga_user:1} | |
339 | chown %quagga_user:%quagga_user %{_sysconfdir}/${daemon}.conf* | |
340 | %endif | |
341 | fi | |
342 | done | |
343 | %if %{with_watchquagga} | |
344 | # No config for watchquagga - this is part of /etc/sysconfig/quagga | |
345 | rm -f %{_sysconfdir}/watchquagga.* | |
346 | %endif | |
347 | ||
788cdc6d | 348 | if [ ! -e %{_sysconfdir}/vtysh.conf ]; then |
349 | touch %{_sysconfdir}/vtysh.conf | |
350 | chmod 640 %{_sysconfdir}/vtysh.conf | |
f755bf6d MW |
351 | %if 0%{?vty_group:1} |
352 | chown quagga:%{vty_group} %{_sysconfdir}/vtysh.conf* | |
353 | %endif | |
788cdc6d | 354 | fi |
355 | ||
356 | %postun | |
fc43ecc7 | 357 | if [ "$1" -ge 1 ]; then |
358 | # Find out which daemons need to be restarted. | |
b3324e27 | 359 | for daemon in %all_daemons ; do |
f755bf6d MW |
360 | if [ -f /var/lock/subsys/${daemon} ]; then |
361 | eval restart_${daemon}=yes | |
fc43ecc7 | 362 | else |
f755bf6d | 363 | eval restart_${daemon}=no |
fc43ecc7 | 364 | fi |
15d74e93 | 365 | done |
fc43ecc7 | 366 | # Rename restart flags for daemons handled specially. |
367 | running_zebra="$restart_zebra" | |
368 | restart_zebra=no | |
f755bf6d MW |
369 | %if %{with_watchquagga} |
370 | running_watchquagga="$restart_watchquagga" | |
371 | restart_watchquagga=no | |
372 | %endif | |
373 | ||
374 | %if "%{initsystem}" == "systemd" | |
375 | ## | |
376 | ## Systemd Version | |
377 | ## | |
378 | # No watchquagga for systemd version | |
379 | # | |
380 | # Stop all daemons other than zebra. | |
381 | for daemon in %all_daemons ; do | |
382 | eval restart=\$restart_${daemon} | |
383 | [ "$restart" = yes ] && \ | |
384 | %systemd_postun ${daemon}.service | |
385 | done | |
386 | # Restart zebra. | |
387 | [ "$running_zebra" = yes ] && \ | |
388 | %systemd_postun_with_restart $daemon.service | |
389 | # Start all daemons other than zebra. | |
390 | for daemon in %all_daemons ; do | |
391 | eval restart=\$restart_${daemon} | |
392 | [ "$restart" = yes ] && \ | |
393 | %systemd_post ${daemon}.service | |
394 | done | |
395 | %else | |
396 | ## | |
397 | ## init.d Version | |
398 | ## | |
399 | %if %{with_watchquagga} | |
400 | # Stop watchquagga first. | |
401 | [ "$running_watchquagga" = yes ] && \ | |
402 | /etc/rc.d/init.d/watchquagga stop >/dev/null 2>&1 | |
403 | %endif | |
404 | # Stop all daemons other than zebra and watchquagga. | |
405 | for daemon in %all_daemons ; do | |
406 | eval restart=\$restart_${daemon} | |
407 | [ "$restart" = yes ] && \ | |
408 | /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1 | |
409 | done | |
410 | # Restart zebra. | |
411 | [ "$running_zebra" = yes ] && \ | |
412 | /etc/rc.d/init.d/zebra restart >/dev/null 2>&1 | |
413 | # Start all daemons other than zebra and watchquagga. | |
414 | for daemon in %all_daemons ; do | |
415 | eval restart=\$restart_${daemon} | |
416 | [ "$restart" = yes ] && \ | |
417 | /etc/rc.d/init.d/${daemon} start >/dev/null 2>&1 | |
418 | done | |
419 | %if %{with_watchquagga} | |
420 | # Start watchquagga last. | |
421 | # Avoid postun scriptlet error if watchquagga is not running. | |
422 | [ "$running_watchquagga" = yes ] && \ | |
423 | /etc/rc.d/init.d/watchquagga start >/dev/null 2>&1 || : | |
424 | %endif | |
425 | %endif | |
788cdc6d | 426 | fi |
788cdc6d | 427 | |
428 | %preun | |
f755bf6d MW |
429 | %if "%{initsystem}" == "systemd" |
430 | ## | |
431 | ## Systemd Version | |
432 | ## | |
433 | if [ "$1" = "0" ]; then | |
434 | for daemon in %all_daemons ; do | |
435 | %systemd_preun ${daemon}.service | |
436 | done | |
437 | fi | |
438 | %else | |
439 | ## | |
440 | ## init.d Version | |
441 | ## | |
442 | if [ "$1" = "0" ]; then | |
443 | for daemon in %all_daemons ; do | |
444 | /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1 | |
445 | /sbin/chkconfig --del ${daemon} | |
446 | done | |
447 | fi | |
448 | %endif | |
449 | /sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir | |
788cdc6d | 450 | |
451 | %clean | |
f755bf6d MW |
452 | %if !0%{?keep_build:1} |
453 | rm -rf %{buildroot} | |
b5f310cb | 454 | %endif |
788cdc6d | 455 | |
456 | %files | |
457 | %defattr(-,root,root) | |
448ed4a2 | 458 | %doc */*.sample* AUTHORS COPYING |
6bd8fd3b | 459 | %doc doc/quagga.html |
30b9d89b | 460 | %doc doc/mpls |
8f754983 | 461 | %doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO |
f755bf6d | 462 | %if 0%{?quagga_user:1} |
6bd8fd3b | 463 | %dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir} |
464 | %dir %attr(750,%quagga_user,%quagga_user) /var/log/quagga | |
465 | %dir %attr(751,%quagga_user,%quagga_user) /var/run/quagga | |
edd7c245 | 466 | %else |
788cdc6d | 467 | %dir %attr(750,root,root) %{_sysconfdir} |
6bd8fd3b | 468 | %dir %attr(750,root,root) /var/log/quagga |
6bd8fd3b | 469 | %dir %attr(750,root,root) /var/run/quagga |
edd7c245 | 470 | %endif |
f755bf6d | 471 | %if 0%{?vty_group:1} |
6bd8fd3b | 472 | %attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample |
edd7c245 | 473 | %endif |
f755bf6d | 474 | %{_infodir}/quagga.info.gz |
788cdc6d | 475 | %{_mandir}/man*/* |
54b25dca | 476 | %{_sbindir}/zebra |
477 | %{_sbindir}/ospfd | |
478 | %{_sbindir}/ripd | |
479 | %{_sbindir}/bgpd | |
c63f5f2c DS |
480 | %{_sbindir}/ssd |
481 | %{_sbindir}/quagga | |
482 | %{_sbindir}/quagga-reload.py | |
483 | %{_sbindir}/quagga-reload.pyc | |
484 | %{_sbindir}/quagga-reload.pyo | |
f755bf6d MW |
485 | %if %{with_watchquagga} |
486 | %{_sbindir}/watchquagga | |
487 | %endif | |
54b25dca | 488 | %{_sbindir}/ripngd |
489 | %{_sbindir}/ospf6d | |
30da4585 | 490 | %{_sbindir}/pimd |
54b25dca | 491 | %{_sbindir}/isisd |
28f79728 | 492 | %if %{with_shared} |
f755bf6d MW |
493 | %attr(755,root,root) %{_libdir}/lib*.so |
494 | %attr(755,root,root) %{_libdir}/lib*.so.* | |
54b25dca | 495 | %endif |
788cdc6d | 496 | %{_bindir}/* |
6bd8fd3b | 497 | %config /etc/quagga/[!v]* |
f755bf6d | 498 | %if "%{initsystem}" == "systemd" |
c63f5f2c | 499 | %config %{_unitdir}/quagga.service |
f755bf6d MW |
500 | %else |
501 | %config /etc/rc.d/init.d/zebra | |
502 | %if %{with_watchquagga} | |
503 | %config /etc/rc.d/init.d/watchquagga | |
504 | %endif | |
505 | %config /etc/rc.d/init.d/ripd | |
506 | %config /etc/rc.d/init.d/ospfd | |
507 | %config /etc/rc.d/init.d/bgpd | |
508 | %config /etc/rc.d/init.d/ripngd | |
509 | %config /etc/rc.d/init.d/ospf6d | |
d4fbc1de DS |
510 | %config /etc/rc.d/init.d/isisd |
511 | %config /etc/rc.d/init.d/pimd | |
f755bf6d | 512 | %endif |
c63f5f2c | 513 | %config(noreplace) /etc/default/quagga |
6bd8fd3b | 514 | %config(noreplace) /etc/pam.d/quagga |
788cdc6d | 515 | %config(noreplace) %attr(640,root,root) /etc/logrotate.d/* |
516 | ||
448ed4a2 | 517 | %files contrib |
518 | %defattr(-,root,root) | |
519 | %doc tools | |
520 | ||
e0626854 | 521 | %files devel |
522 | %defattr(-,root,root) | |
da29c6b0 | 523 | %if %{with_ospfclient} |
524 | %{_sbindir}/ospfclient | |
525 | %endif | |
28f79728 | 526 | %{_libdir}/*.a |
527 | %{_libdir}/*.la | |
cfc1842b | 528 | %dir %attr(755,root,root) %{_includedir}/%{name} |
28f79728 | 529 | %{_includedir}/%name/*.h |
cfc1842b | 530 | %dir %attr(755,root,root) %{_includedir}/%{name}/ospfd |
28f79728 | 531 | %{_includedir}/%name/ospfd/*.h |
54b25dca | 532 | %if %{with_ospfapi} |
cfc1842b | 533 | %dir %attr(755,root,root) %{_includedir}/%{name}/ospfapi |
28f79728 | 534 | %{_includedir}/%name/ospfapi/*.h |
68980084 | 535 | %endif |
e0626854 | 536 | |
788cdc6d | 537 | %changelog |
f755bf6d | 538 | * Thu Feb 11 2016 Paul Jakma <paul@jakma.org> - %{version} |
30da4585 PJ |
539 | - remove with_ipv6 conditionals, always build v6 |
540 | - Fix UTF-8 char in spec changelog | |
541 | - remove quagga.pam.stack, long deprecated. | |
542 | ||
f755bf6d MW |
543 | * Thu Oct 22 2015 Martin Winter <mwinter@opensourcerouting.org> |
544 | - Cleanup configure: remove --enable-ipv6 (default now), --enable-nssa, | |
545 | --enable-netlink | |
546 | - Remove support for old fedora 4/5 | |
547 | - Fix for package nameing | |
548 | - Fix Weekdays of previous changelogs (bogus dates) | |
549 | - Add conditional logic to only build tex footnotes with supported texi2html | |
550 | - Added pimd to files section and fix double listing of /var/lib*/quagga | |
551 | - Numerous fixes to unify upstart/systemd startup into same spec file | |
552 | - Only allow use of watchquagga for non-systemd systems. no need with systemd | |
553 | ||
554 | * Fri Sep 4 2015 Paul Jakma <paul@jakma.org> | |
7c08d77f PJ |
555 | - buildreq updates |
556 | - add a default define for with_pimd | |
557 | ||
f755bf6d | 558 | * Mon Sep 12 2005 Paul Jakma <paul@dishone.st> |
e7cd37bf | 559 | - Steal some changes from Fedora spec file: |
560 | - Add with_rtadv variable | |
561 | - Test for groups/users with getent before group/user adding | |
562 | - Readline need not be an explicit prerequisite | |
563 | - install-info delete should be postun, not preun | |
564 | ||
fc43ecc7 | 565 | * Wed Jan 12 2005 Andrew J. Schorr <ajschorr@alumni.princeton.edu> |
566 | - on package upgrade, implement careful, phased restart logic | |
567 | - use gcc -rdynamic flag when linking for better backtraces | |
568 | ||
f3931751 | 569 | * Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu> |
570 | - daemonv6_list should contain only IPv6 daemons | |
571 | ||
b3324e27 | 572 | * Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu> |
573 | - watchquagga added | |
574 | - on upgrade, all daemons should be condrestart'ed | |
575 | - on removal, all daemons should be stopped | |
576 | ||
36002ae5 | 577 | * Mon Nov 08 2004 Paul Jakma <paul@dishone.st> |
578 | - Use makeinfo --html to generate quagga.html | |
579 | ||
0df63b52 | 580 | * Sun Nov 07 2004 Paul Jakma <paul@dishone.st> |
581 | - Fix with_ipv6 set to 0 build | |
582 | ||
cfc1842b | 583 | * Sat Oct 23 2004 Paul Jakma <paul@dishone.st> |
584 | - Update to 0.97.2 | |
585 | ||
586 | * Sat Oct 23 2004 Andrew J. Schorr <aschorr@telemetry-investments.com> | |
587 | - Make directories be owned by the packages concerned | |
588 | - Update logrotate scripts to use correct path to killall and use pid files | |
589 | ||
da29c6b0 | 590 | * Fri Oct 08 2004 Paul Jakma <paul@dishone.st> |
591 | - Update to 0.97.0 | |
592 | ||
54b25dca | 593 | * Wed Sep 15 2004 Paul Jakma <paul@dishone.st> |
594 | - build snmp support by default | |
595 | - build irdp support | |
596 | - build with shared libs | |
597 | - devel subpackage for archives and headers | |
598 | ||
00bc5603 | 599 | * Thu Jan 08 2004 Paul Jakma <paul@dishone.st> |
600 | - updated sysconfig files to specify local dir | |
601 | - added ospf_dump.c crash quick fix patch | |
602 | - added ospfd persistent interface configuration patch | |
603 | ||
15d74e93 | 604 | * Tue Dec 30 2003 Paul Jakma <paul@dishone.st> |
605 | - sync to CVS | |
606 | - integrate RH sysconfig patch to specify daemon options (RH) | |
607 | - default to have vty listen only to 127.1 (RH) | |
608 | - add user with fixed UID/GID (RH) | |
609 | - create user with shell /sbin/nologin rather than /bin/false (RH) | |
610 | - stop daemons on uninstall (RH) | |
f755bf6d | 611 | - delete info file on preun, not postun to avoid deletion on upgrade. (RH) |
15d74e93 | 612 | - isisd added |
613 | - cleanup tasks carried out for every daemon | |
614 | ||
406f7000 | 615 | * Sun Nov 2 2003 Paul Jakma <paul@dishone.st> |
616 | - Fix -devel package to include all files | |
617 | - Sync to 0.96.4 | |
618 | ||
6bd8fd3b | 619 | * Tue Aug 12 2003 Paul Jakma <paul@dishone.st> |
620 | - Renamed to Quagga | |
621 | - Sync to Quagga release 0.96 | |
622 | ||
f755bf6d | 623 | * Thu Mar 20 2003 Paul Jakma <paul@dishone.st> |
edd7c245 | 624 | - zebra privileges support |
625 | ||
f755bf6d | 626 | * Tue Mar 18 2003 Paul Jakma <paul@dishone.st> |
e0626854 | 627 | - Fix mem leak in 'show thread cpu' |
628 | - Ralph Keller's OSPF-API | |
629 | - Amir: Fix configure.ac for net-snmp | |
630 | ||
448ed4a2 | 631 | * Sat Mar 1 2003 Paul Jakma <paul@dishone.st> |
632 | - ospfd IOS prefix to interface matching for 'network' statement | |
633 | - temporary fix for PtP and IPv6 | |
634 | - sync to zebra.org CVS | |
635 | ||
8f754983 | 636 | * Mon Jan 20 2003 Paul Jakma <paul@dishone.st> |
637 | - update to latest cvs | |
638 | - Yon's "show thread cpu" patch - 17217 | |
639 | - walk up tree - 17218 | |
640 | - ospfd NSSA fixes - 16681 | |
641 | - ospfd nsm fixes - 16824 | |
642 | - ospfd OLSA fixes and new feature - 16823 | |
643 | - KAME and ifindex fixes - 16525 | |
644 | - spec file changes to allow redhat files to be in tree | |
645 | ||
d7ccae28 | 646 | * Sat Dec 28 2002 Alexander Hoogerhuis <alexh@ihatent.com> |
647 | - Added conditionals for building with(out) IPv6, vtysh, RIP, BGP | |
648 | - Fixed up some build requirements (patch) | |
649 | - Added conditional build requirements for vtysh / snmp | |
f755bf6d | 650 | - Added conditional to files for _bindir depending on vtysh |
d7ccae28 | 651 | |
788cdc6d | 652 | * Mon Nov 11 2002 Paul Jakma <paulj@alphyra.ie> |
653 | - update to latest CVS | |
654 | - add Greg Troxel's md5 buffer copy/dup fix | |
655 | - add RIPv1 fix | |
656 | - add Frank's multicast flag fix | |
657 | ||
658 | * Wed Oct 09 2002 Paul Jakma <paulj@alphyra.ie> | |
659 | - update to latest CVS | |
660 | - timestamped crypt_seqnum patch | |
661 | - oi->on_write_q fix | |
662 | ||
663 | * Mon Sep 30 2002 Paul Jakma <paulj@alphyra.ie> | |
664 | - update to latest CVS | |
665 | - add vtysh 'write-config (integrated|daemon)' patch | |
666 | - always 'make rebuild' in vtysh/ to catch new commands | |
667 | ||
668 | * Fri Sep 13 2002 Paul Jakma <paulj@alphyra.ie> | |
669 | - update to 0.93b | |
670 | ||
671 | * Wed Sep 11 2002 Paul Jakma <paulj@alphyra.ie> | |
672 | - update to latest CVS | |
673 | - add "/sbin/ip route flush proto zebra" to zebra RH init on startup | |
674 | ||
675 | * Sat Aug 24 2002 Paul Jakma <paulj@alphyra.ie> | |
676 | - update to current CVS | |
677 | - add OSPF point to multipoint patch | |
678 | - add OSPF bugfixes | |
679 | - add BGP hash optimisation patch | |
680 | ||
681 | * Fri Jun 14 2002 Paul Jakma <paulj@alphyra.ie> | |
682 | - update to 0.93-pre1 / CVS | |
683 | - add link state detection support | |
684 | - add generic PtP and RFC3021 support | |
685 | - various bug fixes | |
686 | ||
687 | * Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6 | |
688 | - Fix bug #51336 | |
689 | ||
f755bf6d | 690 | * Wed Aug 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5 |
788cdc6d | 691 | - Use generic initscript strings instead of initscript specific |
692 | ( "Starting foo: " -> "Starting $prog:" ) | |
693 | ||
694 | * Fri Jul 27 2001 Elliot Lee <sopwith@redhat.com> 0.91a-4 | |
695 | - Bump the release when rebuilding into the dist. | |
696 | ||
697 | * Tue Feb 6 2001 Tim Powers <timp@redhat.com> | |
698 | - built for Powertools | |
699 | ||
700 | * Sun Feb 4 2001 Pekka Savola <pekkas@netcore.fi> | |
701 | - Hacked up from PLD Linux 0.90-1, Mandrake 0.90-1mdk and one from zebra.org. | |
702 | - Update to 0.91a | |
703 | - Very heavy modifications to init.d/*, .spec, pam, i18n, logrotate, etc. | |
704 | - Should be quite Red Hat'isque now. |