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