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 | 5b81926 | 2004-07-28 14:11:55 +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} |
| 37 | %define daemon_list %{daemon_list} ripngd ospf6d |
| 38 | %endif |
| 39 | %if %{with_isisd} |
| 40 | %define daemon_list %{daemon_list} isisd |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 41 | %endif |
| 42 | |
paul | b5f310c | 2004-09-13 13:15:25 +0000 | [diff] [blame] | 43 | # allow build dir to be kept |
| 44 | %define keep_build 0 |
| 45 | |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 46 | Summary: Routing daemon |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 47 | Name: quagga |
paul | 6382b6f | 2003-05-20 00:17:45 +0000 | [diff] [blame] | 48 | Version: @VERSION@ |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 49 | Release: @CONFDATE@01 |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 50 | License: GPL |
| 51 | Group: System Environment/Daemons |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 52 | Source0: http://www.quagga.net/snapshots/cvs/%{name}-%{version}.tar.gz |
| 53 | URL: http://www.quagga.net |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 54 | %if %{with_snmp} |
paul | b63cef7 | 2004-08-19 03:36:13 +0000 | [diff] [blame] | 55 | BuildRequires: net-snmp-devel |
| 56 | Prereq: net-snmp |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 57 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 58 | %if %{with_vtysh} |
paul | 30b9d89 | 2003-01-18 22:57:15 +0000 | [diff] [blame] | 59 | BuildRequires: readline readline-devel ncurses ncurses-devel |
paul | d7ccae2 | 2003-01-18 00:24:00 +0000 | [diff] [blame] | 60 | Prereq: readline ncurses |
| 61 | %endif |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 62 | BuildRequires: texinfo tetex autoconf pam-devel patch libcap-devel |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 63 | # Initscripts > 5.60 is required for IPv6 support |
paul | 30b9d89 | 2003-01-18 22:57:15 +0000 | [diff] [blame] | 64 | Prereq: initscripts >= 5.60 |
paul | 45315b5 | 2003-08-14 05:23:50 +0000 | [diff] [blame] | 65 | Prereq: ncurses readline pam |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 66 | Prereq: /sbin/install-info |
| 67 | Provides: routingdaemon |
| 68 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 69 | Obsoletes: bird gated mrt zebra |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 70 | |
| 71 | %description |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 72 | Quagga is a free software that manages TCP/IP based routing |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 73 | protocol. It takes multi-server and multi-thread approach to resolve |
| 74 | the current complexity of the Internet. |
| 75 | |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 76 | Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng. |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 77 | |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 78 | Quagga is intended to be used as a Route Server and a Route Reflector. It is |
| 79 | not a toolkit, it provides full routing power under a new architecture. |
| 80 | Quagga by design has a process for each protocol. |
| 81 | |
| 82 | Quagga is a fork of GNU Zebra. |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 83 | |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 84 | %package contrib |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 85 | Summary: contrib tools for quagga |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 86 | Group: System Environment/Daemons |
| 87 | |
| 88 | %description contrib |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 89 | Contributed/3rd party tools which may be of use with quagga. |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 90 | |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 91 | %package devel |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 92 | Summary: Header and object files for quagga development |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 93 | Group: System Environment/Daemons |
| 94 | |
| 95 | %description devel |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 96 | The quagga-devel package contains the header and object files neccessary for |
| 97 | developing OSPF-API and quagga applications. |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 98 | |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 99 | %prep |
| 100 | %setup -q |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 101 | |
| 102 | %build |
| 103 | %configure \ |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 104 | %if !%{with_shared} |
| 105 | --disable-shared \ |
| 106 | %endif |
| 107 | %if %{with_ipv6} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 108 | --enable-ipv6 \ |
| 109 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 110 | %if %{with_snmp} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 111 | --enable-snmp \ |
| 112 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 113 | %if %{with_multipath} |
| 114 | --enable-multipath=%{with_multipath} \ |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 115 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 116 | %if %{with_tcp_zebra} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 117 | --enable-tcp-zebra \ |
| 118 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 119 | %if %{with_nssa} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 120 | --enable-nssa \ |
| 121 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 122 | %if %{with_opaque_lsa} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 123 | --enable-opaque-lsa \ |
| 124 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 125 | %if %{with_ospf_te} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 126 | --enable-ospf-te \ |
| 127 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 128 | %if %{with_vtysh} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 129 | --enable-vtysh \ |
| 130 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 131 | %if %{with_ospfclient} |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 132 | --enable-ospfclient=yes \ |
| 133 | %else |
| 134 | --enable-ospfclient=no\ |
| 135 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 136 | %if %{with_ospfapi} |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 137 | --enable-ospfapi=yes \ |
| 138 | %else |
| 139 | --enable-ospfapi=no \ |
| 140 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 141 | %if %{with_irdp} |
paul | 5b81926 | 2004-07-28 14:11:55 +0000 | [diff] [blame] | 142 | --enable-irdp=yes \ |
| 143 | %else |
| 144 | --enable-irdp=no \ |
| 145 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 146 | %if %{with_isisd} |
| 147 | --enable-isisd \ |
| 148 | %else |
| 149 | --disable-isisd |
| 150 | %endif |
| 151 | %if %{with_pam} |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 152 | --with-libpam \ |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 153 | %endif |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 154 | %if %quagga_user |
| 155 | --enable-user=%quagga_user \ |
| 156 | --enable-group=%quagga_user \ |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 157 | %endif |
| 158 | %if %vty_group |
| 159 | --enable-vty-group=%vty_group \ |
| 160 | %endif |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 161 | --enable-netlink |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 162 | |
| 163 | make %{?_smp_mflags} MAKEINFO="makeinfo --no-split" |
| 164 | |
| 165 | pushd doc |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 166 | texi2html quagga.texi |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 167 | popd |
| 168 | |
| 169 | %install |
| 170 | rm -rf $RPM_BUILD_ROOT |
| 171 | |
| 172 | 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] | 173 | $RPM_BUILD_ROOT/var/log/quagga $RPM_BUILD_ROOT%{_infodir} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 174 | |
| 175 | make install \ |
| 176 | DESTDIR=$RPM_BUILD_ROOT |
| 177 | |
paul | 9a344b7 | 2003-08-05 23:24:58 +0000 | [diff] [blame] | 178 | # Remove this file, as it is uninstalled and causes errors when building on RH9 |
| 179 | rm -rf $RPM_BUILD_ROOT/usr/share/info/dir |
| 180 | |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 181 | # install etc sources |
| 182 | for daemon in %daemon_list ; do |
| 183 | install %{zeb_rh_src}/${daemon}.init \ |
| 184 | $RPM_BUILD_ROOT/etc/rc.d/init.d/${daemon} |
| 185 | done |
| 186 | install -m644 %{zeb_rh_src}/quagga.pam \ |
| 187 | $RPM_BUILD_ROOT/etc/pam.d/quagga |
| 188 | install -m644 %{zeb_rh_src}/quagga.logrotate \ |
| 189 | $RPM_BUILD_ROOT/etc/logrotate.d/quagga |
| 190 | install -m644 %{zeb_rh_src}/quagga.sysconfig \ |
| 191 | $RPM_BUILD_ROOT/etc/sysconfig/quagga |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 192 | install -d -m750 $RPM_BUILD_ROOT/var/run/quagga |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 193 | |
| 194 | %pre |
| 195 | # add vty_group |
| 196 | %if %vty_group |
| 197 | groupadd -r %vty_group 2> /dev/null || : |
| 198 | %endif |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 199 | # add quagga user and group |
| 200 | %if %quagga_user |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 201 | /usr/sbin/groupadd -g %quagga_gid quagga 2> /dev/null || : |
| 202 | /usr/sbin/useradd -u %quagga_uid -g %quagga_gid \ |
| 203 | -M -r -s /sbin/nologin -c "Quagga routing suite" \ |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 204 | -d %_localstatedir %quagga_user 2> /dev/null || : |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 205 | %endif |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 206 | |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 207 | %post |
paul | 30b9d89 | 2003-01-18 22:57:15 +0000 | [diff] [blame] | 208 | # zebra_spec_add_service <service name> <port/proto> <comment> |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 209 | # e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service" |
| 210 | |
| 211 | zebra_spec_add_service () |
| 212 | { |
| 213 | # Add port /etc/services entry if it isn't already there |
| 214 | if [ -f /etc/services ] && ! grep -q "^$1[^a-zA-Z0-9]" /etc/services ; then |
| 215 | echo "$1 $2 # $3" >> /etc/services |
| 216 | fi |
| 217 | } |
| 218 | |
| 219 | zebra_spec_add_service zebrasrv 2600/tcp "zebra service" |
| 220 | zebra_spec_add_service zebra 2601/tcp "zebra vty" |
| 221 | zebra_spec_add_service ripd 2602/tcp "RIPd vty" |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 222 | %if %{with_ipv6} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 223 | zebra_spec_add_service ripngd 2603/tcp "RIPngd vty" |
paul | d7ccae2 | 2003-01-18 00:24:00 +0000 | [diff] [blame] | 224 | %endif |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 225 | zebra_spec_add_service ospfd 2604/tcp "OSPFd vty" |
| 226 | zebra_spec_add_service bgpd 2605/tcp "BGPd 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 ospf6d 2606/tcp "OSPF6d vty" |
paul | d7ccae2 | 2003-01-18 00:24:00 +0000 | [diff] [blame] | 229 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 230 | %if %{with_ospfapi} |
paul | 7021c42 | 2003-07-15 12:52:22 +0000 | [diff] [blame] | 231 | zebra_spec_add_service ospfapi 2607/tcp "OSPF-API" |
| 232 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 233 | %if %{with_isisd} |
jardin | 5a514b1 | 2003-12-23 10:50:21 +0000 | [diff] [blame] | 234 | zebra_spec_add_service isisd 2608/tcp "ISISd vty" |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 235 | %endif |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 236 | |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 237 | for daemon in %daemon_list ; do |
| 238 | /sbin/chkconfig --add ${daemon} |
| 239 | done |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 240 | |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 241 | /sbin/install-info %{_infodir}/quagga.info.gz %{_infodir}/dir |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 242 | |
| 243 | # Create dummy files if they don't exist so basic functions can be used. |
| 244 | if [ ! -e %{_sysconfdir}/zebra.conf ]; then |
| 245 | echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf |
| 246 | chmod 640 %{_sysconfdir}/zebra.conf |
| 247 | fi |
| 248 | if [ ! -e %{_sysconfdir}/vtysh.conf ]; then |
| 249 | touch %{_sysconfdir}/vtysh.conf |
| 250 | chmod 640 %{_sysconfdir}/vtysh.conf |
| 251 | fi |
| 252 | |
| 253 | %postun |
| 254 | if [ "$1" -ge "1" ]; then |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 255 | for daemon in %daemon_list ; do |
| 256 | /etc/rc.d/init.d/${daemon} condrestart >/dev/null 2>&1 |
| 257 | done |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 258 | fi |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 259 | |
| 260 | %preun |
| 261 | if [ "$1" = "0" ]; then |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 262 | for daemon in %daemon_list ; do |
| 263 | /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1 |
| 264 | /sbin/chkconfig --del ${daemon} |
| 265 | done |
| 266 | /sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 267 | fi |
| 268 | |
| 269 | %clean |
paul | b5f310c | 2004-09-13 13:15:25 +0000 | [diff] [blame] | 270 | %if !%{keep_build} |
| 271 | rm -rf $RPM_BUILD_ROOT |
| 272 | %endif |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 273 | |
| 274 | %files |
| 275 | %defattr(-,root,root) |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 276 | %doc */*.sample* AUTHORS COPYING |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 277 | %doc doc/quagga.html |
paul | 30b9d89 | 2003-01-18 22:57:15 +0000 | [diff] [blame] | 278 | %doc doc/mpls |
paul | 8f75498 | 2003-01-20 04:55:51 +0000 | [diff] [blame] | 279 | %doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 280 | %if %{quagga_user} |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 281 | %dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir} |
| 282 | %dir %attr(750,%quagga_user,%quagga_user) /var/log/quagga |
| 283 | %dir %attr(751,%quagga_user,%quagga_user) /var/run/quagga |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 284 | %else |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 285 | %dir %attr(750,root,root) %{_sysconfdir} |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 286 | %dir %attr(750,root,root) /var/log/quagga |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 287 | %dir %attr(755,root,root) /usr/share/info |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 288 | %dir %attr(750,root,root) /var/run/quagga |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 289 | %endif |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 290 | %if %{vty_group} |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 291 | %attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 292 | %endif |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 293 | %{_infodir}/*info* |
| 294 | %{_mandir}/man*/* |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 295 | %{_sbindir}/zebra |
| 296 | %{_sbindir}/ospfd |
| 297 | %{_sbindir}/ripd |
| 298 | %{_sbindir}/bgpd |
| 299 | %if %{with_ipv6} |
| 300 | %{_sbindir}/ripngd |
| 301 | %{_sbindir}/ospf6d |
| 302 | %endif |
| 303 | %if %{with_isisd} |
| 304 | %{_sbindir}/isisd |
| 305 | %endif |
| 306 | %if %{with_shared} |
paul | 2ff9e82 | 2004-07-20 11:19:47 +0000 | [diff] [blame] | 307 | %{_libdir}/lib*.so |
| 308 | %{_libdir}/lib*.so.* |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 309 | %endif |
| 310 | %if %{with_vtysh} |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 311 | %{_bindir}/* |
paul | d7ccae2 | 2003-01-18 00:24:00 +0000 | [diff] [blame] | 312 | %endif |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 313 | %config /etc/quagga/[!v]* |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 314 | %config /etc/rc.d/init.d/* |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 315 | %config(noreplace) /etc/sysconfig/quagga |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 316 | %config(noreplace) /etc/pam.d/quagga |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 317 | %config(noreplace) %attr(640,root,root) /etc/logrotate.d/* |
| 318 | |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 319 | %files contrib |
| 320 | %defattr(-,root,root) |
| 321 | %doc tools |
| 322 | |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 323 | %files devel |
| 324 | %defattr(-,root,root) |
paul | 2ff9e82 | 2004-07-20 11:19:47 +0000 | [diff] [blame] | 325 | %dir %{_libdir}/*.a |
| 326 | %dir %{_libdir}/*.la |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 327 | %dir %{_includedir}/%name/*.h |
| 328 | %dir %{_includedir}/%name/ospfd/*.h |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 329 | %if %{with_ospfapi} |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 330 | %dir %{_includedir}/%name/ospfapi/*.h |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 331 | %endif |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 332 | |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 333 | %changelog |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 334 | %changelog |
paul | 54b25dc | 2004-09-30 04:56:26 +0000 | [diff] [blame] | 335 | * Wed Sep 15 2004 Paul Jakma <paul@dishone.st> |
| 336 | - build snmp support by default |
| 337 | - build irdp support |
| 338 | - build with shared libs |
| 339 | - devel subpackage for archives and headers |
| 340 | |
paul | 00bc560 | 2004-01-09 16:30:52 +0000 | [diff] [blame] | 341 | * Thu Jan 08 2004 Paul Jakma <paul@dishone.st> |
| 342 | - updated sysconfig files to specify local dir |
| 343 | - added ospf_dump.c crash quick fix patch |
| 344 | - added ospfd persistent interface configuration patch |
| 345 | |
paul | 15d74e9 | 2003-12-30 11:16:21 +0000 | [diff] [blame] | 346 | * Tue Dec 30 2003 Paul Jakma <paul@dishone.st> |
| 347 | - sync to CVS |
| 348 | - integrate RH sysconfig patch to specify daemon options (RH) |
| 349 | - default to have vty listen only to 127.1 (RH) |
| 350 | - add user with fixed UID/GID (RH) |
| 351 | - create user with shell /sbin/nologin rather than /bin/false (RH) |
| 352 | - stop daemons on uninstall (RH) |
| 353 | - delete info file on %preun, not %postun to avoid deletion on upgrade. (RH) |
| 354 | - isisd added |
| 355 | - cleanup tasks carried out for every daemon |
| 356 | |
paul | 406f700 | 2003-11-02 07:30:52 +0000 | [diff] [blame] | 357 | * Sun Nov 2 2003 Paul Jakma <paul@dishone.st> |
| 358 | - Fix -devel package to include all files |
| 359 | - Sync to 0.96.4 |
| 360 | |
paul | 6bd8fd3 | 2003-08-12 12:54:13 +0000 | [diff] [blame] | 361 | * Tue Aug 12 2003 Paul Jakma <paul@dishone.st> |
| 362 | - Renamed to Quagga |
| 363 | - Sync to Quagga release 0.96 |
| 364 | |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 365 | * Tue Mar 20 2003 Paul Jakma <paul@dishone.st> |
| 366 | - zebra privileges support |
| 367 | |
paul | e062685 | 2003-03-18 14:11:36 +0000 | [diff] [blame] | 368 | * Mon Mar 18 2003 Paul Jakma <paul@dishone.st> |
| 369 | - Fix mem leak in 'show thread cpu' |
| 370 | - Ralph Keller's OSPF-API |
| 371 | - Amir: Fix configure.ac for net-snmp |
| 372 | |
paul | 448ed4a | 2003-03-01 15:43:28 +0000 | [diff] [blame] | 373 | * Sat Mar 1 2003 Paul Jakma <paul@dishone.st> |
| 374 | - ospfd IOS prefix to interface matching for 'network' statement |
| 375 | - temporary fix for PtP and IPv6 |
| 376 | - sync to zebra.org CVS |
| 377 | |
paul | 8f75498 | 2003-01-20 04:55:51 +0000 | [diff] [blame] | 378 | * Mon Jan 20 2003 Paul Jakma <paul@dishone.st> |
| 379 | - update to latest cvs |
| 380 | - Yon's "show thread cpu" patch - 17217 |
| 381 | - walk up tree - 17218 |
| 382 | - ospfd NSSA fixes - 16681 |
| 383 | - ospfd nsm fixes - 16824 |
| 384 | - ospfd OLSA fixes and new feature - 16823 |
| 385 | - KAME and ifindex fixes - 16525 |
| 386 | - spec file changes to allow redhat files to be in tree |
| 387 | |
paul | d7ccae2 | 2003-01-18 00:24:00 +0000 | [diff] [blame] | 388 | * Sat Dec 28 2002 Alexander Hoogerhuis <alexh@ihatent.com> |
| 389 | - Added conditionals for building with(out) IPv6, vtysh, RIP, BGP |
| 390 | - Fixed up some build requirements (patch) |
| 391 | - Added conditional build requirements for vtysh / snmp |
| 392 | - Added conditional to %files for %_bindir depending on vtysh |
| 393 | |
paul | 788cdc6 | 2003-01-18 00:22:08 +0000 | [diff] [blame] | 394 | * Mon Nov 11 2002 Paul Jakma <paulj@alphyra.ie> |
| 395 | - update to latest CVS |
| 396 | - add Greg Troxel's md5 buffer copy/dup fix |
| 397 | - add RIPv1 fix |
| 398 | - add Frank's multicast flag fix |
| 399 | |
| 400 | * Wed Oct 09 2002 Paul Jakma <paulj@alphyra.ie> |
| 401 | - update to latest CVS |
| 402 | - timestamped crypt_seqnum patch |
| 403 | - oi->on_write_q fix |
| 404 | |
| 405 | * Mon Sep 30 2002 Paul Jakma <paulj@alphyra.ie> |
| 406 | - update to latest CVS |
| 407 | - add vtysh 'write-config (integrated|daemon)' patch |
| 408 | - always 'make rebuild' in vtysh/ to catch new commands |
| 409 | |
| 410 | * Fri Sep 13 2002 Paul Jakma <paulj@alphyra.ie> |
| 411 | - update to 0.93b |
| 412 | |
| 413 | * Wed Sep 11 2002 Paul Jakma <paulj@alphyra.ie> |
| 414 | - update to latest CVS |
| 415 | - add "/sbin/ip route flush proto zebra" to zebra RH init on startup |
| 416 | |
| 417 | * Sat Aug 24 2002 Paul Jakma <paulj@alphyra.ie> |
| 418 | - update to current CVS |
| 419 | - add OSPF point to multipoint patch |
| 420 | - add OSPF bugfixes |
| 421 | - add BGP hash optimisation patch |
| 422 | |
| 423 | * Fri Jun 14 2002 Paul Jakma <paulj@alphyra.ie> |
| 424 | - update to 0.93-pre1 / CVS |
| 425 | - add link state detection support |
| 426 | - add generic PtP and RFC3021 support |
| 427 | - various bug fixes |
| 428 | |
| 429 | * Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6 |
| 430 | - Fix bug #51336 |
| 431 | |
| 432 | * Wed Aug 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5 |
| 433 | - Use generic initscript strings instead of initscript specific |
| 434 | ( "Starting foo: " -> "Starting $prog:" ) |
| 435 | |
| 436 | * Fri Jul 27 2001 Elliot Lee <sopwith@redhat.com> 0.91a-4 |
| 437 | - Bump the release when rebuilding into the dist. |
| 438 | |
| 439 | * Tue Feb 6 2001 Tim Powers <timp@redhat.com> |
| 440 | - built for Powertools |
| 441 | |
| 442 | * Sun Feb 4 2001 Pekka Savola <pekkas@netcore.fi> |
| 443 | - Hacked up from PLD Linux 0.90-1, Mandrake 0.90-1mdk and one from zebra.org. |
| 444 | - Update to 0.91a |
| 445 | - Very heavy modifications to init.d/*, .spec, pam, i18n, logrotate, etc. |
| 446 | - Should be quite Red Hat'isque now. |