paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 1 | # configure options |
paul | b63cef7 | 2004-08-19 03:36:13 +0000 | [diff] [blame] | 2 | %define with_snmp 1 |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 3 | %define with_vtysh 1 |
| 4 | %define with_ospf_te 1 |
| 5 | %define with_nssa 1 |
| 6 | %define with_opaque_lsa 1 |
| 7 | %define with_tcp_zebra 0 |
| 8 | %define with_vtysh 1 |
| 9 | %define with_pam 1 |
| 10 | %define with_ipv6 1 |
paul | 55ea381 | 2003-04-07 08:14:11 +0000 | [diff] [blame] | 11 | %define with_ospfclient 1 |
| 12 | %define with_ospfapi 1 |
paul | cfc1842 | 2004-10-23 00:05:41 +0000 | [diff] [blame] | 13 | %define with_irdp 1 |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 14 | %define with_isisd 0 |
| 15 | %define with_shared 1 |
paul | 8f75498 | 2003-01-20 04:55:51 +0000 | [diff] [blame] | 16 | %define with_multipath 64 |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 17 | %define quagga_user quagga |
paul | 45315b5 | 2003-08-14 05:23:50 +0000 | [diff] [blame] | 18 | %define vty_group quaggavty |
paul | 30b9d89 | 2003-01-18 22:57:15 +0000 | [diff] [blame] | 19 | |
| 20 | # path defines |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 21 | %define _sysconfdir /etc/quagga |
paul | 8f75498 | 2003-01-20 04:55:51 +0000 | [diff] [blame] | 22 | %define zeb_src %{_builddir}/%{name}-%{version} |
| 23 | %define zeb_rh_src %{zeb_src}/redhat |
| 24 | %define zeb_docs %{zeb_src}/doc |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 25 | |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 26 | # defines for configure |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 27 | %define _libexecdir %{_exec_prefix}/libexec/quagga |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 28 | %define _libdir %{_exec_prefix}/%{_lib}/quagga |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 29 | %define _includedir %{_prefix}/include |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 30 | %define _localstatedir /var/run/quagga |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 31 | |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 32 | # misc internal defines |
| 33 | %define quagga_uid 92 |
| 34 | %define quagga_gid 92 |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 35 | %define daemon_list zebra ripd ospfd bgpd |
| 36 | %if %{with_ipv6} |
paul | 69f5d26 | 2004-10-07 16:23:36 +0000 | [diff] [blame] | 37 | %define daemonv6_list %{daemon_list} ripngd ospf6d |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 38 | %endif |
| 39 | %if %{with_isisd} |
paul | 69f5d26 | 2004-10-07 16:23:36 +0000 | [diff] [blame] | 40 | %define daemon_other isisd |
| 41 | %else |
| 42 | %define daemon_other "" |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 43 | %endif |
| 44 | |
paul | b5f310c | 2004-09-13 13:15:25 +0000 | [diff] [blame] | 45 | # allow build dir to be kept |
| 46 | %define keep_build 0 |
| 47 | |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 48 | Summary: Routing daemon |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 49 | Name: quagga |
paul | 6382b6f | 2003-05-20 00:17:45 +0000 | [diff] [blame] | 50 | Version: @VERSION@ |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 51 | Release: @CONFDATE@01 |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 52 | License: GPL |
| 53 | Group: System Environment/Daemons |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 54 | Source0: http://www.quagga.net/snapshots/cvs/%{name}-%{version}.tar.gz |
| 55 | URL: http://www.quagga.net |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 56 | %if %{with_snmp} |
paul | b63cef7 | 2004-08-19 03:36:13 +0000 | [diff] [blame] | 57 | BuildRequires: net-snmp-devel |
| 58 | Prereq: net-snmp |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 59 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 60 | %if %{with_vtysh} |
paul | 30b9d89 | 2003-01-18 22:57:15 +0000 | [diff] [blame] | 61 | BuildRequires: readline readline-devel ncurses ncurses-devel |
paul | d7ccae2 | 2003-01-18 00:24:00 +0000 | [diff] [blame] | 62 | Prereq: readline ncurses |
| 63 | %endif |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 64 | BuildRequires: texinfo tetex autoconf pam-devel patch libcap-devel |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 65 | # Initscripts > 5.60 is required for IPv6 support |
paul | 30b9d89 | 2003-01-18 22:57:15 +0000 | [diff] [blame] | 66 | Prereq: initscripts >= 5.60 |
paul | 45315b5 | 2003-08-14 05:23:50 +0000 | [diff] [blame] | 67 | Prereq: ncurses readline pam |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 68 | Prereq: /sbin/install-info |
| 69 | Provides: routingdaemon |
| 70 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 71 | Obsoletes: bird gated mrt zebra |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 72 | |
| 73 | %description |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 74 | Quagga is a free software that manages TCP/IP based routing |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 75 | protocol. It takes multi-server and multi-thread approach to resolve |
| 76 | the current complexity of the Internet. |
| 77 | |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 78 | Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng. |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 79 | |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 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. |
| 83 | |
| 84 | Quagga is a fork of GNU Zebra. |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 85 | |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 86 | %package contrib |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 87 | Summary: contrib tools for quagga |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 88 | Group: System Environment/Daemons |
| 89 | |
| 90 | %description contrib |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 91 | Contributed/3rd party tools which may be of use with quagga. |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 92 | |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 93 | %package devel |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 94 | Summary: Header and object files for quagga development |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 95 | Group: System Environment/Daemons |
| 96 | |
| 97 | %description devel |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 98 | The quagga-devel package contains the header and object files neccessary for |
| 99 | developing OSPF-API and quagga applications. |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 100 | |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 101 | %prep |
| 102 | %setup -q |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 103 | |
| 104 | %build |
| 105 | %configure \ |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 106 | %if !%{with_shared} |
| 107 | --disable-shared \ |
| 108 | %endif |
| 109 | %if %{with_ipv6} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 110 | --enable-ipv6 \ |
| 111 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 112 | %if %{with_snmp} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 113 | --enable-snmp \ |
| 114 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 115 | %if %{with_multipath} |
| 116 | --enable-multipath=%{with_multipath} \ |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 117 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 118 | %if %{with_tcp_zebra} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 119 | --enable-tcp-zebra \ |
| 120 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 121 | %if %{with_nssa} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 122 | --enable-nssa \ |
| 123 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 124 | %if %{with_opaque_lsa} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 125 | --enable-opaque-lsa \ |
| 126 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 127 | %if %{with_ospf_te} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 128 | --enable-ospf-te \ |
| 129 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 130 | %if %{with_vtysh} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 131 | --enable-vtysh \ |
| 132 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 133 | %if %{with_ospfclient} |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 134 | --enable-ospfclient=yes \ |
| 135 | %else |
| 136 | --enable-ospfclient=no\ |
| 137 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 138 | %if %{with_ospfapi} |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 139 | --enable-ospfapi=yes \ |
| 140 | %else |
| 141 | --enable-ospfapi=no \ |
| 142 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 143 | %if %{with_irdp} |
paul | 5b81926 | 2004-07-28 14:11:55 +0000 | [diff] [blame] | 144 | --enable-irdp=yes \ |
| 145 | %else |
| 146 | --enable-irdp=no \ |
| 147 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 148 | %if %{with_isisd} |
| 149 | --enable-isisd \ |
| 150 | %else |
paul | 69f5d26 | 2004-10-07 16:23:36 +0000 | [diff] [blame] | 151 | --disable-isisd \ |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 152 | %endif |
| 153 | %if %{with_pam} |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 154 | --with-libpam \ |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 155 | %endif |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 156 | %if %quagga_user |
| 157 | --enable-user=%quagga_user \ |
| 158 | --enable-group=%quagga_user \ |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 159 | %endif |
| 160 | %if %vty_group |
| 161 | --enable-vty-group=%vty_group \ |
| 162 | %endif |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 163 | --enable-netlink |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 164 | |
| 165 | make %{?_smp_mflags} MAKEINFO="makeinfo --no-split" |
| 166 | |
| 167 | pushd doc |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 168 | texi2html quagga.texi |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 169 | popd |
| 170 | |
| 171 | %install |
| 172 | rm -rf $RPM_BUILD_ROOT |
| 173 | |
| 174 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,pam.d} \ |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 175 | $RPM_BUILD_ROOT/var/log/quagga $RPM_BUILD_ROOT%{_infodir} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 176 | |
| 177 | make install \ |
| 178 | DESTDIR=$RPM_BUILD_ROOT |
| 179 | |
paul | 9a344b7 | 2003-08-05 23:24:58 +0000 | [diff] [blame] | 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 |
| 182 | |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 183 | # install etc sources |
paul | 69f5d26 | 2004-10-07 16:23:36 +0000 | [diff] [blame] | 184 | for daemon in %{daemon_list} %{daemonv6_list} %{daemon_other} ; do |
paul | da29c6b | 2004-10-08 00:49:09 +0000 | [diff] [blame] | 185 | if [ x"${daemon}" != x"" ] ; then |
| 186 | install %{zeb_rh_src}/${daemon}.init \ |
| 187 | $RPM_BUILD_ROOT/etc/rc.d/init.d/${daemon} |
| 188 | fi |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 189 | done |
| 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 |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 196 | install -d -m750 $RPM_BUILD_ROOT/var/run/quagga |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 197 | |
| 198 | %pre |
| 199 | # add vty_group |
| 200 | %if %vty_group |
| 201 | groupadd -r %vty_group 2> /dev/null || : |
| 202 | %endif |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 203 | # add quagga user and group |
| 204 | %if %quagga_user |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 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" \ |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 208 | -d %_localstatedir %quagga_user 2> /dev/null || : |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 209 | %endif |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 210 | |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 211 | %post |
paul | 30b9d89 | 2003-01-18 22:57:15 +0000 | [diff] [blame] | 212 | # zebra_spec_add_service <service name> <port/proto> <comment> |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 213 | # e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service" |
| 214 | |
| 215 | zebra_spec_add_service () |
| 216 | { |
| 217 | # Add port /etc/services entry if it isn't already there |
paul | 6b637e9 | 2004-10-23 00:48:51 +0000 | [diff] [blame] | 218 | if [ -f /etc/services ] && \ |
| 219 | ! %__sed -e 's/#.*$//' /etc/services | %__grep -wq $1 ; then |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 220 | echo "$1 $2 # $3" >> /etc/services |
| 221 | fi |
| 222 | } |
| 223 | |
| 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" |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 227 | %if %{with_ipv6} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 228 | zebra_spec_add_service ripngd 2603/tcp "RIPngd vty" |
paul | d7ccae2 | 2003-01-18 00:24:00 +0000 | [diff] [blame] | 229 | %endif |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 230 | zebra_spec_add_service ospfd 2604/tcp "OSPFd vty" |
| 231 | zebra_spec_add_service bgpd 2605/tcp "BGPd vty" |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 232 | %if %{with_ipv6} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 233 | zebra_spec_add_service ospf6d 2606/tcp "OSPF6d vty" |
paul | d7ccae2 | 2003-01-18 00:24:00 +0000 | [diff] [blame] | 234 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 235 | %if %{with_ospfapi} |
paul | 7021c42 | 2003-07-15 12:52:22 +0000 | [diff] [blame] | 236 | zebra_spec_add_service ospfapi 2607/tcp "OSPF-API" |
| 237 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 238 | %if %{with_isisd} |
jardin | 5a514b1 | 2003-12-23 10:50:21 +0000 | [diff] [blame] | 239 | zebra_spec_add_service isisd 2608/tcp "ISISd vty" |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 240 | %endif |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 241 | |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 242 | for daemon in %daemon_list ; do |
| 243 | /sbin/chkconfig --add ${daemon} |
| 244 | done |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 245 | |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 246 | /sbin/install-info %{_infodir}/quagga.info.gz %{_infodir}/dir |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 247 | |
| 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 |
| 252 | fi |
| 253 | if [ ! -e %{_sysconfdir}/vtysh.conf ]; then |
| 254 | touch %{_sysconfdir}/vtysh.conf |
| 255 | chmod 640 %{_sysconfdir}/vtysh.conf |
| 256 | fi |
| 257 | |
| 258 | %postun |
| 259 | if [ "$1" -ge "1" ]; then |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 260 | for daemon in %daemon_list ; do |
| 261 | /etc/rc.d/init.d/${daemon} condrestart >/dev/null 2>&1 |
| 262 | done |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 263 | fi |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 264 | |
| 265 | %preun |
| 266 | if [ "$1" = "0" ]; then |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 267 | for daemon in %daemon_list ; do |
| 268 | /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1 |
| 269 | /sbin/chkconfig --del ${daemon} |
| 270 | done |
| 271 | /sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 272 | fi |
| 273 | |
| 274 | %clean |
paul | b5f310c | 2004-09-13 13:15:25 +0000 | [diff] [blame] | 275 | %if !%{keep_build} |
| 276 | rm -rf $RPM_BUILD_ROOT |
| 277 | %endif |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 278 | |
| 279 | %files |
| 280 | %defattr(-,root,root) |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 281 | %doc */*.sample* AUTHORS COPYING |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 282 | %doc doc/quagga.html |
paul | 30b9d89 | 2003-01-18 22:57:15 +0000 | [diff] [blame] | 283 | %doc doc/mpls |
paul | 8f75498 | 2003-01-20 04:55:51 +0000 | [diff] [blame] | 284 | %doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 285 | %if %{quagga_user} |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 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 |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 289 | %else |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 290 | %dir %attr(750,root,root) %{_sysconfdir} |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 291 | %dir %attr(750,root,root) /var/log/quagga |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 292 | %dir %attr(755,root,root) /usr/share/info |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 293 | %dir %attr(750,root,root) /var/run/quagga |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 294 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 295 | %if %{vty_group} |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 296 | %attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 297 | %endif |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 298 | %{_infodir}/*info* |
| 299 | %{_mandir}/man*/* |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 300 | %{_sbindir}/zebra |
| 301 | %{_sbindir}/ospfd |
| 302 | %{_sbindir}/ripd |
| 303 | %{_sbindir}/bgpd |
| 304 | %if %{with_ipv6} |
| 305 | %{_sbindir}/ripngd |
| 306 | %{_sbindir}/ospf6d |
| 307 | %endif |
| 308 | %if %{with_isisd} |
| 309 | %{_sbindir}/isisd |
| 310 | %endif |
| 311 | %if %{with_shared} |
paul | cfc1842 | 2004-10-23 00:05:41 +0000 | [diff] [blame] | 312 | %dir %attr(755,root,root) %{_libdir} |
paul | 2ff9e82 | 2004-07-20 11:19:47 +0000 | [diff] [blame] | 313 | %{_libdir}/lib*.so |
| 314 | %{_libdir}/lib*.so.* |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 315 | %endif |
| 316 | %if %{with_vtysh} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 317 | %{_bindir}/* |
paul | d7ccae2 | 2003-01-18 00:24:00 +0000 | [diff] [blame] | 318 | %endif |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 319 | %config /etc/quagga/[!v]* |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 320 | %config /etc/rc.d/init.d/* |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 321 | %config(noreplace) /etc/sysconfig/quagga |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 322 | %config(noreplace) /etc/pam.d/quagga |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 323 | %config(noreplace) %attr(640,root,root) /etc/logrotate.d/* |
| 324 | |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 325 | %files contrib |
| 326 | %defattr(-,root,root) |
| 327 | %doc tools |
| 328 | |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 329 | %files devel |
| 330 | %defattr(-,root,root) |
paul | da29c6b | 2004-10-08 00:49:09 +0000 | [diff] [blame] | 331 | %if %{with_ospfclient} |
| 332 | %{_sbindir}/ospfclient |
| 333 | %endif |
paul | 2ff9e82 | 2004-07-20 11:19:47 +0000 | [diff] [blame] | 334 | %dir %{_libdir}/*.a |
| 335 | %dir %{_libdir}/*.la |
paul | cfc1842 | 2004-10-23 00:05:41 +0000 | [diff] [blame] | 336 | %dir %attr(755,root,root) %{_includedir}/%{name} |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 337 | %dir %{_includedir}/%name/*.h |
paul | cfc1842 | 2004-10-23 00:05:41 +0000 | [diff] [blame] | 338 | %dir %attr(755,root,root) %{_includedir}/%{name}/ospfd |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 339 | %dir %{_includedir}/%name/ospfd/*.h |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 340 | %if %{with_ospfapi} |
paul | cfc1842 | 2004-10-23 00:05:41 +0000 | [diff] [blame] | 341 | %dir %attr(755,root,root) %{_includedir}/%{name}/ospfapi |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 342 | %dir %{_includedir}/%name/ospfapi/*.h |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 343 | %endif |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 344 | |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 345 | %changelog |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 346 | %changelog |
paul | cfc1842 | 2004-10-23 00:05:41 +0000 | [diff] [blame] | 347 | * Sat Oct 23 2004 Paul Jakma <paul@dishone.st> |
| 348 | - Update to 0.97.2 |
| 349 | |
| 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 |
| 353 | |
paul | da29c6b | 2004-10-08 00:49:09 +0000 | [diff] [blame] | 354 | * Fri Oct 08 2004 Paul Jakma <paul@dishone.st> |
| 355 | - Update to 0.97.0 |
| 356 | |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 357 | * Wed Sep 15 2004 Paul Jakma <paul@dishone.st> |
| 358 | - build snmp support by default |
| 359 | - build irdp support |
| 360 | - build with shared libs |
| 361 | - devel subpackage for archives and headers |
| 362 | |
paul | 00bc560 | 2004-01-09 16:30:52 +0000 | [diff] [blame] | 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 |
| 367 | |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 368 | * Tue Dec 30 2003 Paul Jakma <paul@dishone.st> |
| 369 | - sync to CVS |
| 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) |
| 376 | - isisd added |
| 377 | - cleanup tasks carried out for every daemon |
| 378 | |
paul | 406f700 | 2003-11-02 07:30:52 +0000 | [diff] [blame] | 379 | * Sun Nov 2 2003 Paul Jakma <paul@dishone.st> |
| 380 | - Fix -devel package to include all files |
| 381 | - Sync to 0.96.4 |
| 382 | |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 383 | * Tue Aug 12 2003 Paul Jakma <paul@dishone.st> |
| 384 | - Renamed to Quagga |
| 385 | - Sync to Quagga release 0.96 |
| 386 | |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 387 | * Tue Mar 20 2003 Paul Jakma <paul@dishone.st> |
| 388 | - zebra privileges support |
| 389 | |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 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 |
| 394 | |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 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 |
| 399 | |
paul | 8f75498 | 2003-01-20 04:55:51 +0000 | [diff] [blame] | 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 |
| 409 | |
paul | d7ccae2 | 2003-01-18 00:24:00 +0000 | [diff] [blame] | 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 |
| 415 | |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 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 |
| 419 | - add RIPv1 fix |
| 420 | - add Frank's multicast flag fix |
| 421 | |
| 422 | * Wed Oct 09 2002 Paul Jakma <paulj@alphyra.ie> |
| 423 | - update to latest CVS |
| 424 | - timestamped crypt_seqnum patch |
| 425 | - oi->on_write_q fix |
| 426 | |
| 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 |
| 431 | |
| 432 | * Fri Sep 13 2002 Paul Jakma <paulj@alphyra.ie> |
| 433 | - update to 0.93b |
| 434 | |
| 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 |
| 438 | |
| 439 | * Sat Aug 24 2002 Paul Jakma <paulj@alphyra.ie> |
| 440 | - update to current CVS |
| 441 | - add OSPF point to multipoint patch |
| 442 | - add OSPF bugfixes |
| 443 | - add BGP hash optimisation patch |
| 444 | |
| 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 |
| 449 | - various bug fixes |
| 450 | |
| 451 | * Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6 |
| 452 | - Fix bug #51336 |
| 453 | |
| 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:" ) |
| 457 | |
| 458 | * Fri Jul 27 2001 Elliot Lee <sopwith@redhat.com> 0.91a-4 |
| 459 | - Bump the release when rebuilding into the dist. |
| 460 | |
| 461 | * Tue Feb 6 2001 Tim Powers <timp@redhat.com> |
| 462 | - built for Powertools |
| 463 | |
| 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. |
| 466 | - Update to 0.91a |
| 467 | - Very heavy modifications to init.d/*, .spec, pam, i18n, logrotate, etc. |
| 468 | - Should be quite Red Hat'isque now. |