blob: a4478fd2c305e6c7468154400097cb643b2d8f85 [file] [log] [blame]
pauledd7c242003-06-04 13:59:38 +00001# configure options
paulb64d92a2005-04-25 15:13:42 +00002#
3# Some can be overriden on rpmbuild commandline with:
4# rpmbuild --define 'variable value'
Martin Wintera5efdb62015-10-29 22:15:42 -07005# (use any value, ie 1 for flag "with_XXXX" definitions)
paulb64d92a2005-04-25 15:13:42 +00006#
Paul Jakma283d5d72016-02-11 13:54:23 +00007# 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.
paulb64d92a2005-04-25 15:13:42 +000010
paul11890752005-11-05 16:29:54 +000011####################### Quagga configure options #########################
12# with-feature options
Martin Wintera5efdb62015-10-29 22:15:42 -070013%{!?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 }
Paul Jakma75ebcd82017-03-05 10:21:02 +000018%{!?with_ospfclient: %global with_ospfclient 1 }
Martin Wintera5efdb62015-10-29 22:15:42 -070019%{!?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äs2d78fe72017-02-14 13:07:39 +020024%{!?with_nhrpd: %global with_nhrpd 1 }
Martin Wintera5efdb62015-10-29 22:15:42 -070025%{!?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 }
Paul Jakma75ebcd82017-03-05 10:21:02 +000029%{!?with_fpm: %global with_fpm 0 }
30%{!?with_watchquagga: %global with_watchquagga 1 }
Paul Jakma304ec312017-03-05 12:39:41 +000031# whether to build doc/quagga.html - requires a lot of TeX packages
32%{!?with_texi2html: %global with_texi2html 0 }
paul30b9d892003-01-18 22:57:15 +000033
34# path defines
paul6bd8fd32003-08-12 12:54:13 +000035%define _sysconfdir /etc/quagga
Martin Wintera5efdb62015-10-29 22:15:42 -070036%define zeb_src %{_builddir}/%{name}-%{quaggaversion}
paul8f754982003-01-20 04:55:51 +000037%define zeb_rh_src %{zeb_src}/redhat
38%define zeb_docs %{zeb_src}/doc
paul788cdc62003-01-18 00:22:08 +000039
paule0626852003-03-18 14:11:36 +000040# defines for configure
paul6bd8fd32003-08-12 12:54:13 +000041%define _localstatedir /var/run/quagga
paul11890752005-11-05 16:29:54 +000042############################################################################
43
Martin Wintera5efdb62015-10-29 22:15:42 -070044#### Version String tweak
45# Remove invalid characters form version string and replace with _
Paul Jakma75ebcd82017-03-05 10:21:02 +000046%{expand: %%global rpmversion %(echo '@VERSION@' | tr [:blank:]- _ )}
47%define quaggaversion @VERSION@
paul11890752005-11-05 16:29:54 +000048
Martin Wintera5efdb62015-10-29 22:15:42 -070049#### Check version of texi2html
50# Old versions don't support "--number-footnotes" option.
Paul Jakma304ec312017-03-05 12:39:41 +000051%if %{with_texi2html}
52 %{expand: %%global texi2htmlversion %(type texi2html >/dev/null 2>&1 && (rpm -q --qf '%%{VERSION}' texi2html | cut -d. -f1) || echo 0 )}
53%endif
paul11890752005-11-05 16:29:54 +000054
Martin Wintera5efdb62015-10-29 22:15:42 -070055#### Check for systemd or init.d (upstart)
56# Check for init.d (upstart) as used in CentOS 6 or systemd (ie CentOS 7)
57%{expand: %%global initsystem %(if [[ `/sbin/init --version 2> /dev/null` =~ upstart ]]; then echo upstart; elif [[ `systemctl` =~ -\.mount ]]; then echo systemd; fi)}
58#
59# If init system is systemd, then always disable watchquagga
60#
61%if "%{initsystem}" == "systemd"
62 # Note: For systems with systemd, watchquagga will NOT be built. Systemd
63 # takes over the role of restarting crashed processes. Value will
64 # be overwritten with 0 below for systemd independent on the setting here
65 %global with_watchquagga 0
66%endif
paul11890752005-11-05 16:29:54 +000067
Martin Wintera5efdb62015-10-29 22:15:42 -070068# if FPM is enabled, then enable tcp_zebra as well
69#
70%if %{with_fpm}
71 %global with_tcp_zebra 1
72%endif
paule0626852003-03-18 14:11:36 +000073
paul15d74e92003-12-30 11:16:21 +000074# misc internal defines
Paul Jakma75ebcd82017-03-05 10:21:02 +000075%{!?quagga_uid: %global quagga_uid 92 }
76%{!?quagga_gid: %global quagga_gid 92 }
77%{!?vty_gid: %global vty_gid 85 }
Martin Wintera5efdb62015-10-29 22:15:42 -070078
paul54b25dc2004-09-30 04:56:26 +000079%define daemon_list zebra ripd ospfd bgpd
paul0df63b52004-11-07 22:12:23 +000080
David Lamparter5460bae2015-05-19 00:35:04 +020081%define daemonv6_list ripngd ospf6d
paul0df63b52004-11-07 22:12:23 +000082
paul54b25dc2004-09-30 04:56:26 +000083%if %{with_isisd}
Martin Wintera5efdb62015-10-29 22:15:42 -070084%define daemon_isisd isisd
paul69f5d262004-10-07 16:23:36 +000085%else
Martin Wintera5efdb62015-10-29 22:15:42 -070086%define daemon_isisd ""
paul15d74e92003-12-30 11:16:21 +000087%endif
88
Martin Wintera5efdb62015-10-29 22:15:42 -070089%if %{with_pimd}
Paul Jakma75ebcd82017-03-05 10:21:02 +000090%define daemon_pimd pimd
Martin Wintera5efdb62015-10-29 22:15:42 -070091%else
92%define daemon_pimd ""
93%endif
94
Timo Teräs2d78fe72017-02-14 13:07:39 +020095%if %{with_nhrpd}
Paul Jakma75ebcd82017-03-05 10:21:02 +000096%define daemon_nhrpd nhrpd
Timo Teräs2d78fe72017-02-14 13:07:39 +020097%else
98%define daemon_nhrpd ""
99%endif
100
Martin Wintera5efdb62015-10-29 22:15:42 -0700101%if %{with_watchquagga}
Paul Jakma75ebcd82017-03-05 10:21:02 +0000102%define daemon_watchquagga watchquagga
Martin Wintera5efdb62015-10-29 22:15:42 -0700103%else
104%define daemon_watchquagga ""
105%endif
106
Timo Teräs2d78fe72017-02-14 13:07:39 +0200107%define all_daemons %{daemon_list} %{daemonv6_list} %{daemon_isisd} %{daemon_pimd} %{daemon_nhrpd} %{daemon_watchquagga}
ajsb3324e22004-12-22 17:52:29 +0000108
paulb5f310c2004-09-13 13:15:25 +0000109# allow build dir to be kept
Martin Wintera5efdb62015-10-29 22:15:42 -0700110%{!?keep_build: %global keep_build 0 }
paulb5f310c2004-09-13 13:15:25 +0000111
paul4859e202005-11-20 02:09:32 +0000112#release sub-revision (the two digits after the CONFDATE)
Paul Jakma75ebcd82017-03-05 10:21:02 +0000113%{!?release_rev: %global release_rev 01 }
paul4859e202005-11-20 02:09:32 +0000114
paul788cdc62003-01-18 00:22:08 +0000115Summary: Routing daemon
Martin Wintera5efdb62015-10-29 22:15:42 -0700116Name: quagga
117Version: %{rpmversion}
118Release: @CONFDATE@%{release_rev}%{?dist}
119License: GPLv2+
120Group: System Environment/Daemons
Paul Jakma93687462017-02-27 22:42:59 +0000121Source0: https://download.savannah.gnu.org/releases/quagga/%{name}-%{quaggaversion}.tar.gz
122URL: https://www.quagga.net
Martin Wintera5efdb62015-10-29 22:15:42 -0700123Requires: ncurses
124Requires(pre): /sbin/install-info
125Requires(preun): /sbin/install-info
126Requires(post): /sbin/install-info
Paul Jakma304ec312017-03-05 12:39:41 +0000127BuildRequires: autoconf patch libcap-devel groff
Paul Jakma75ebcd82017-03-05 10:21:02 +0000128BuildRequires: perl-generators pkgconfig
Paul Jakma304ec312017-03-05 12:39:41 +0000129%if %{with_texi2html}
130BuildRequires: texi2html
131%endif
paul54b25dc2004-09-30 04:56:26 +0000132%if %{with_snmp}
paulb63cef72004-08-19 03:36:13 +0000133BuildRequires: net-snmp-devel
Paul Jakma75ebcd82017-03-05 10:21:02 +0000134Requires: net-snmp
paul788cdc62003-01-18 00:22:08 +0000135%endif
paul54b25dc2004-09-30 04:56:26 +0000136%if %{with_vtysh}
paul30b9d892003-01-18 22:57:15 +0000137BuildRequires: readline readline-devel ncurses ncurses-devel
Paul Jakma75ebcd82017-03-05 10:21:02 +0000138Requires: ncurses
pauld7ccae22003-01-18 00:24:00 +0000139%endif
Martin Wintera5efdb62015-10-29 22:15:42 -0700140%if %{with_pam}
141BuildRequires: pam-devel
Paul Jakma75ebcd82017-03-05 10:21:02 +0000142Requires: pam
Martin Wintera5efdb62015-10-29 22:15:42 -0700143%endif
Paul Jakma4cdc0302017-03-03 15:07:28 +0000144%if %{with_nhrpd}
145BuildRequires: c-ares-devel
146Requires: c-ares
147%endif
Martin Wintera5efdb62015-10-29 22:15:42 -0700148%if "%{initsystem}" == "systemd"
149BuildRequires: systemd
150Requires(post): systemd
151Requires(preun): systemd
152Requires(postun): systemd
153%else
paul788cdc62003-01-18 00:22:08 +0000154# Initscripts > 5.60 is required for IPv6 support
Matti-Oskari Leppänenfa755852013-02-15 10:12:55 +0000155Requires(pre): initscripts >= 5.60
Martin Wintera5efdb62015-10-29 22:15:42 -0700156%endif
157Provides: routingdaemon = %{version}-%{release}
158BuildRoot: %{_tmppath}/%{name}-%{version}-root
Paul Jakma75ebcd82017-03-05 10:21:02 +0000159#Obsoletes: mrt zebra quagga-sysvinit
Paul Jakma93687462017-02-27 22:42:59 +0000160
161%define __perl_requires %{zeb_rh_src}/quagga-filter-perl-requires.sh
paul788cdc62003-01-18 00:22:08 +0000162
163%description
Paul Jakma93687462017-02-27 22:42:59 +0000164Quagga is a free software routing protocol suite.
paul788cdc62003-01-18 00:22:08 +0000165
Paul Jakma93687462017-02-27 22:42:59 +0000166Quagga supports BGP, OSPFv2, OSPFv3, ISIS, RIP, RIPng, PIM-SSM and NHRP.
paul788cdc62003-01-18 00:22:08 +0000167
paul448ed4a2003-03-01 15:43:28 +0000168%package contrib
paul6bd8fd32003-08-12 12:54:13 +0000169Summary: contrib tools for quagga
paul448ed4a2003-03-01 15:43:28 +0000170Group: System Environment/Daemons
171
172%description contrib
paul6bd8fd32003-08-12 12:54:13 +0000173Contributed/3rd party tools which may be of use with quagga.
paul448ed4a2003-03-01 15:43:28 +0000174
paule0626852003-03-18 14:11:36 +0000175%package devel
paul6bd8fd32003-08-12 12:54:13 +0000176Summary: Header and object files for quagga development
paule0626852003-03-18 14:11:36 +0000177Group: System Environment/Daemons
Martin Wintera5efdb62015-10-29 22:15:42 -0700178Requires: %{name} = %{version}-%{release}
paule0626852003-03-18 14:11:36 +0000179
180%description devel
paul6bd8fd32003-08-12 12:54:13 +0000181The quagga-devel package contains the header and object files neccessary for
182developing OSPF-API and quagga applications.
paule0626852003-03-18 14:11:36 +0000183
paul788cdc62003-01-18 00:22:08 +0000184%prep
Paul Jakma75ebcd82017-03-05 10:21:02 +0000185%setup -q -n quagga-%{quaggaversion}
paul788cdc62003-01-18 00:22:08 +0000186
187%build
ajs7966b972004-11-10 22:02:05 +0000188
paul788cdc62003-01-18 00:22:08 +0000189%configure \
Martin Wintera5efdb62015-10-29 22:15:42 -0700190 --sysconfdir=%{_sysconfdir} \
Paul Jakma93687462017-02-27 22:42:59 +0000191 --libdir=%{_libdir}/quagga \
Martin Wintera5efdb62015-10-29 22:15:42 -0700192 --libexecdir=%{_libexecdir} \
193 --localstatedir=%{_localstatedir} \
194 --disable-werror \
paul54b25dc2004-09-30 04:56:26 +0000195%if !%{with_shared}
196 --disable-shared \
197%endif
paul54b25dc2004-09-30 04:56:26 +0000198%if %{with_snmp}
paul788cdc62003-01-18 00:22:08 +0000199 --enable-snmp \
200%endif
paul54b25dc2004-09-30 04:56:26 +0000201%if %{with_multipath}
202 --enable-multipath=%{with_multipath} \
paul788cdc62003-01-18 00:22:08 +0000203%endif
paul54b25dc2004-09-30 04:56:26 +0000204%if %{with_tcp_zebra}
paul788cdc62003-01-18 00:22:08 +0000205 --enable-tcp-zebra \
206%endif
paul54b25dc2004-09-30 04:56:26 +0000207%if %{with_vtysh}
paul788cdc62003-01-18 00:22:08 +0000208 --enable-vtysh \
209%endif
paul54b25dc2004-09-30 04:56:26 +0000210%if %{with_ospfclient}
paul68980082003-03-25 05:07:42 +0000211 --enable-ospfclient=yes \
212%else
213 --enable-ospfclient=no\
214%endif
paul54b25dc2004-09-30 04:56:26 +0000215%if %{with_ospfapi}
paul68980082003-03-25 05:07:42 +0000216 --enable-ospfapi=yes \
217%else
218 --enable-ospfapi=no \
219%endif
paul54b25dc2004-09-30 04:56:26 +0000220%if %{with_irdp}
paul5b819262004-07-28 14:11:55 +0000221 --enable-irdp=yes \
222%else
223 --enable-irdp=no \
224%endif
paule7cd37b2005-09-08 15:18:39 +0000225%if %{with_rtadv}
226 --enable-rtadv=yes \
227%else
228 --enable-rtadv=no \
229%endif
paul54b25dc2004-09-30 04:56:26 +0000230%if %{with_isisd}
231 --enable-isisd \
232%else
paul69f5d262004-10-07 16:23:36 +0000233 --disable-isisd \
paul54b25dc2004-09-30 04:56:26 +0000234%endif
Timo Teräs2d78fe72017-02-14 13:07:39 +0200235%if %{with_nhrpd}
236 --enable-nhrpd \
237%else
238 --disable-nhrpd \
239%endif
paul54b25dc2004-09-30 04:56:26 +0000240%if %{with_pam}
pauledd7c242003-06-04 13:59:38 +0000241 --with-libpam \
paul788cdc62003-01-18 00:22:08 +0000242%endif
Martin Wintera5efdb62015-10-29 22:15:42 -0700243%if 0%{?quagga_user:1}
paul6bd8fd32003-08-12 12:54:13 +0000244 --enable-user=%quagga_user \
245 --enable-group=%quagga_user \
pauledd7c242003-06-04 13:59:38 +0000246%endif
Martin Wintera5efdb62015-10-29 22:15:42 -0700247%if 0%{?vty_group:1}
pauledd7c242003-06-04 13:59:38 +0000248 --enable-vty-group=%vty_group \
249%endif
Martin Wintera5efdb62015-10-29 22:15:42 -0700250%if %{with_fpm}
251 --enable-fpm \
252%else
253 --disable-fpm \
254%endif
255%if %{with_watchquagga}
256 --enable-watchquagga \
257%else
258 --disable-watchquagga \
259%endif
260 --enable-gcc-rdynamic
paul788cdc62003-01-18 00:22:08 +0000261
262make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
263
Paul Jakma304ec312017-03-05 12:39:41 +0000264%if %{with_texi2html}
265 pushd doc
266 %if %{texi2htmlversion} < 5
267 texi2html --number-sections quagga.texi
268 %else
269 texi2html --number-footnotes --number-sections quagga.texi
270 %endif
271 popd
Martin Wintera5efdb62015-10-29 22:15:42 -0700272%endif
paul788cdc62003-01-18 00:22:08 +0000273
274%install
Martin Wintera5efdb62015-10-29 22:15:42 -0700275mkdir -p %{buildroot}/etc/{quagga,sysconfig,logrotate.d,pam.d} \
Paul Jakma75ebcd82017-03-05 10:21:02 +0000276 %{buildroot}/var/log/quagga %{buildroot}%{_infodir}
Martin Wintera5efdb62015-10-29 22:15:42 -0700277make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install
paul788cdc62003-01-18 00:22:08 +0000278
paul9a344b72003-08-05 23:24:58 +0000279# Remove this file, as it is uninstalled and causes errors when building on RH9
Martin Wintera5efdb62015-10-29 22:15:42 -0700280rm -rf %{buildroot}/usr/share/info/dir
paul9a344b72003-08-05 23:24:58 +0000281
Martin Wintera5efdb62015-10-29 22:15:42 -0700282# install /etc sources
283%if "%{initsystem}" == "systemd"
284mkdir -p %{buildroot}%{_unitdir}
285for daemon in %{all_daemons} ; do
286 if [ x"${daemon}" != x"" ] ; then
287 install %{zeb_rh_src}/${daemon}.service \
288 %{buildroot}%{_unitdir}/${daemon}.service
289 fi
290done
291%else
292mkdir -p %{buildroot}/etc/rc.d/init.d
ajsb3324e22004-12-22 17:52:29 +0000293for daemon in %{all_daemons} ; do
paulda29c6b2004-10-08 00:49:09 +0000294 if [ x"${daemon}" != x"" ] ; then
295 install %{zeb_rh_src}/${daemon}.init \
Martin Wintera5efdb62015-10-29 22:15:42 -0700296 %{buildroot}/etc/rc.d/init.d/${daemon}
paulda29c6b2004-10-08 00:49:09 +0000297 fi
paul15d74e92003-12-30 11:16:21 +0000298done
Martin Wintera5efdb62015-10-29 22:15:42 -0700299%endif
300
Paul Jakma283d5d72016-02-11 13:54:23 +0000301install -m644 %{zeb_rh_src}/quagga.pam \
Martin Wintera5efdb62015-10-29 22:15:42 -0700302 %{buildroot}/etc/pam.d/quagga
paul15d74e92003-12-30 11:16:21 +0000303install -m644 %{zeb_rh_src}/quagga.logrotate \
Martin Wintera5efdb62015-10-29 22:15:42 -0700304 %{buildroot}/etc/logrotate.d/quagga
paul15d74e92003-12-30 11:16:21 +0000305install -m644 %{zeb_rh_src}/quagga.sysconfig \
Martin Wintera5efdb62015-10-29 22:15:42 -0700306 %{buildroot}/etc/sysconfig/quagga
307install -d -m750 %{buildroot}/var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000308
Paul Jakma93687462017-02-27 22:42:59 +0000309
310%if 0%{?_tmpfilesdir:1}
311 install -d -m 755 %{buildroot}/%{_tmpfilesdir}
312 install -p -m 644 %{zeb_rh_src}/quagga-tmpfs.conf \
313 %{buildroot}/%{_tmpfilesdir}/quagga.conf
314%endif
315
pauledd7c242003-06-04 13:59:38 +0000316%pre
317# add vty_group
Martin Wintera5efdb62015-10-29 22:15:42 -0700318%if 0%{?vty_group:1}
paule7cd37b2005-09-08 15:18:39 +0000319if getent group %vty_group > /dev/null ; then : ; else \
Paul Jakma75ebcd82017-03-05 10:21:02 +0000320 /usr/sbin/groupadd -r -g %vty_gid %vty_group > /dev/null || : ; fi
pauledd7c242003-06-04 13:59:38 +0000321%endif
paule7cd37b2005-09-08 15:18:39 +0000322
paul6bd8fd32003-08-12 12:54:13 +0000323# add quagga user and group
Martin Wintera5efdb62015-10-29 22:15:42 -0700324%if 0%{?quagga_user:1}
paule7cd37b2005-09-08 15:18:39 +0000325# Ensure that quagga_gid gets correctly allocated
326if getent group %quagga_user >/dev/null; then : ; else \
Paul Jakma75ebcd82017-03-05 10:21:02 +0000327 /usr/sbin/groupadd -g %quagga_gid %quagga_user > /dev/null || : ; \
paule7cd37b2005-09-08 15:18:39 +0000328fi
329if getent passwd %quagga_user >/dev/null ; then : ; else \
Paul Jakma75ebcd82017-03-05 10:21:02 +0000330 /usr/sbin/useradd -u %quagga_uid -g %quagga_gid -G %vty_group \
331 -M -r -s /sbin/nologin -c "Quagga routing suite" \
332 -d %_localstatedir %quagga_user 2> /dev/null || : ; \
paule7cd37b2005-09-08 15:18:39 +0000333fi
pauledd7c242003-06-04 13:59:38 +0000334%endif
paul788cdc62003-01-18 00:22:08 +0000335
paul788cdc62003-01-18 00:22:08 +0000336%post
paul30b9d892003-01-18 22:57:15 +0000337# zebra_spec_add_service <service name> <port/proto> <comment>
paul788cdc62003-01-18 00:22:08 +0000338# e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
339
340zebra_spec_add_service ()
341{
342 # Add port /etc/services entry if it isn't already there
paul6b637e92004-10-23 00:48:51 +0000343 if [ -f /etc/services ] && \
344 ! %__sed -e 's/#.*$//' /etc/services | %__grep -wq $1 ; then
paul788cdc62003-01-18 00:22:08 +0000345 echo "$1 $2 # $3" >> /etc/services
346 fi
347}
348
349zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
Paul Jakma75ebcd82017-03-05 10:21:02 +0000350zebra_spec_add_service zebra 2601/tcp "zebra vty"
351zebra_spec_add_service ripd 2602/tcp "RIPd vty"
352zebra_spec_add_service ripngd 2603/tcp "RIPngd vty"
353zebra_spec_add_service ospfd 2604/tcp "OSPFd vty"
354zebra_spec_add_service bgpd 2605/tcp "BGPd vty"
355zebra_spec_add_service ospf6d 2606/tcp "OSPF6d vty"
paul54b25dc2004-09-30 04:56:26 +0000356%if %{with_ospfapi}
Paul Jakma75ebcd82017-03-05 10:21:02 +0000357zebra_spec_add_service ospfapi 2607/tcp "OSPF-API"
paul7021c422003-07-15 12:52:22 +0000358%endif
paul54b25dc2004-09-30 04:56:26 +0000359%if %{with_isisd}
Paul Jakma75ebcd82017-03-05 10:21:02 +0000360zebra_spec_add_service isisd 2608/tcp "ISISd vty"
paul54b25dc2004-09-30 04:56:26 +0000361%endif
Everton Marques871dbcf2009-08-11 15:43:05 -0300362%if %{with_pimd}
Paul Jakma75ebcd82017-03-05 10:21:02 +0000363zebra_spec_add_service pimd 2611/tcp "PIMd vty"
Everton Marques871dbcf2009-08-11 15:43:05 -0300364%endif
Timo Teräs2d78fe72017-02-14 13:07:39 +0200365%if %{with_nhrpd}
Paul Jakma75ebcd82017-03-05 10:21:02 +0000366zebra_spec_add_service nhrpd 2612/tcp "NHRPd vty"
Timo Teräs2d78fe72017-02-14 13:07:39 +0200367%endif
paul788cdc62003-01-18 00:22:08 +0000368
Martin Wintera5efdb62015-10-29 22:15:42 -0700369%if "%{initsystem}" == "systemd"
370for daemon in %all_daemons ; do
371 %systemd_post ${daemon}.service
372done
373%else
374for daemon in %all_daemons ; do
paul15d74e92003-12-30 11:16:21 +0000375 /sbin/chkconfig --add ${daemon}
376done
Martin Wintera5efdb62015-10-29 22:15:42 -0700377%endif
paul788cdc62003-01-18 00:22:08 +0000378
Paul Jakma93687462017-02-27 22:42:59 +0000379if [ -f %{_infodir}/%{name}.inf* ]; then
380 /sbin/install-info %{_infodir}/quagga.info %{_infodir}/dir
381fi
paul788cdc62003-01-18 00:22:08 +0000382
383# Create dummy files if they don't exist so basic functions can be used.
384if [ ! -e %{_sysconfdir}/zebra.conf ]; then
385 echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf
Martin Wintera5efdb62015-10-29 22:15:42 -0700386%if 0%{?quagga_user:1}
387 chown %quagga_user:%quagga_user %{_sysconfdir}/zebra.conf*
paule7cd37b2005-09-08 15:18:39 +0000388%endif
paul788cdc62003-01-18 00:22:08 +0000389 chmod 640 %{_sysconfdir}/zebra.conf
390fi
Martin Wintera5efdb62015-10-29 22:15:42 -0700391for daemon in %{all_daemons} ; do
392 if [ ! -e %{_sysconfdir}/${daemon}.conf ]; then
393 touch %{_sysconfdir}/${daemon}.conf
394 %if 0%{?quagga_user:1}
395 chown %quagga_user:%quagga_user %{_sysconfdir}/${daemon}.conf*
396 %endif
397 fi
398done
399%if %{with_watchquagga}
400 # No config for watchquagga - this is part of /etc/sysconfig/quagga
401 rm -f %{_sysconfdir}/watchquagga.*
402%endif
403
paul788cdc62003-01-18 00:22:08 +0000404if [ ! -e %{_sysconfdir}/vtysh.conf ]; then
405 touch %{_sysconfdir}/vtysh.conf
406 chmod 640 %{_sysconfdir}/vtysh.conf
Martin Wintera5efdb62015-10-29 22:15:42 -0700407%if 0%{?vty_group:1}
408 chown quagga:%{vty_group} %{_sysconfdir}/vtysh.conf*
409%endif
paul788cdc62003-01-18 00:22:08 +0000410fi
411
412%postun
ajsfc43ecc2005-01-12 16:41:33 +0000413if [ "$1" -ge 1 ]; then
414 # Find out which daemons need to be restarted.
ajsb3324e22004-12-22 17:52:29 +0000415 for daemon in %all_daemons ; do
Martin Wintera5efdb62015-10-29 22:15:42 -0700416 if [ -f /var/lock/subsys/${daemon} ]; then
417 eval restart_${daemon}=yes
ajsfc43ecc2005-01-12 16:41:33 +0000418 else
Martin Wintera5efdb62015-10-29 22:15:42 -0700419 eval restart_${daemon}=no
ajsfc43ecc2005-01-12 16:41:33 +0000420 fi
paul15d74e92003-12-30 11:16:21 +0000421 done
ajsfc43ecc2005-01-12 16:41:33 +0000422 # Rename restart flags for daemons handled specially.
423 running_zebra="$restart_zebra"
424 restart_zebra=no
Martin Wintera5efdb62015-10-29 22:15:42 -0700425 %if %{with_watchquagga}
426 running_watchquagga="$restart_watchquagga"
427 restart_watchquagga=no
428 %endif
429
430 %if "%{initsystem}" == "systemd"
431 ##
432 ## Systemd Version
433 ##
434 # No watchquagga for systemd version
435 #
436 # Stop all daemons other than zebra.
437 for daemon in %all_daemons ; do
438 eval restart=\$restart_${daemon}
439 [ "$restart" = yes ] && \
Paul Jakma93687462017-02-27 22:42:59 +0000440 %systemd_postun_with_restart ${daemon}.service
Martin Wintera5efdb62015-10-29 22:15:42 -0700441 done
442 # Restart zebra.
443 [ "$running_zebra" = yes ] && \
444 %systemd_postun_with_restart $daemon.service
445 # Start all daemons other than zebra.
446 for daemon in %all_daemons ; do
447 eval restart=\$restart_${daemon}
448 [ "$restart" = yes ] && \
449 %systemd_post ${daemon}.service
450 done
451 %else
452 ##
453 ## init.d Version
454 ##
455 %if %{with_watchquagga}
456 # Stop watchquagga first.
457 [ "$running_watchquagga" = yes ] && \
458 /etc/rc.d/init.d/watchquagga stop >/dev/null 2>&1
459 %endif
460 # Stop all daemons other than zebra and watchquagga.
461 for daemon in %all_daemons ; do
462 eval restart=\$restart_${daemon}
463 [ "$restart" = yes ] && \
464 /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1
465 done
466 # Restart zebra.
467 [ "$running_zebra" = yes ] && \
468 /etc/rc.d/init.d/zebra restart >/dev/null 2>&1
469 # Start all daemons other than zebra and watchquagga.
470 for daemon in %all_daemons ; do
471 eval restart=\$restart_${daemon}
472 [ "$restart" = yes ] && \
473 /etc/rc.d/init.d/${daemon} start >/dev/null 2>&1
474 done
475 %if %{with_watchquagga}
476 # Start watchquagga last.
477 # Avoid postun scriptlet error if watchquagga is not running.
478 [ "$running_watchquagga" = yes ] && \
479 /etc/rc.d/init.d/watchquagga start >/dev/null 2>&1 || :
480 %endif
481 %endif
paul788cdc62003-01-18 00:22:08 +0000482fi
paul788cdc62003-01-18 00:22:08 +0000483
Paul Jakma93687462017-02-27 22:42:59 +0000484if [ -f %{_infodir}/%{name}.inf* ]; then
485 /sbin/install-info --delete %{_infodir}/quagga.info %{_infodir}/dir
486fi
487
paul788cdc62003-01-18 00:22:08 +0000488%preun
Martin Wintera5efdb62015-10-29 22:15:42 -0700489%if "%{initsystem}" == "systemd"
490 ##
491 ## Systemd Version
492 ##
493 if [ "$1" = "0" ]; then
494 for daemon in %all_daemons ; do
495 %systemd_preun ${daemon}.service
496 done
497 fi
498%else
499 ##
500 ## init.d Version
501 ##
502 if [ "$1" = "0" ]; then
503 for daemon in %all_daemons ; do
Paul Jakma75ebcd82017-03-05 10:21:02 +0000504 /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1
Martin Wintera5efdb62015-10-29 22:15:42 -0700505 /sbin/chkconfig --del ${daemon}
506 done
507 fi
508%endif
paul788cdc62003-01-18 00:22:08 +0000509
510%clean
Martin Wintera5efdb62015-10-29 22:15:42 -0700511%if !0%{?keep_build:1}
512rm -rf %{buildroot}
paulb5f310c2004-09-13 13:15:25 +0000513%endif
paul788cdc62003-01-18 00:22:08 +0000514
515%files
516%defattr(-,root,root)
paul448ed4a2003-03-01 15:43:28 +0000517%doc */*.sample* AUTHORS COPYING
Paul Jakma304ec312017-03-05 12:39:41 +0000518%if %{with_texi2html}
519 %doc doc/quagga.html
520%endif
paul30b9d892003-01-18 22:57:15 +0000521%doc doc/mpls
paul8f754982003-01-20 04:55:51 +0000522%doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO
Martin Wintera5efdb62015-10-29 22:15:42 -0700523%if 0%{?quagga_user:1}
paul6bd8fd32003-08-12 12:54:13 +0000524%dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir}
525%dir %attr(750,%quagga_user,%quagga_user) /var/log/quagga
526%dir %attr(751,%quagga_user,%quagga_user) /var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000527%else
paul788cdc62003-01-18 00:22:08 +0000528%dir %attr(750,root,root) %{_sysconfdir}
paul6bd8fd32003-08-12 12:54:13 +0000529%dir %attr(750,root,root) /var/log/quagga
paul6bd8fd32003-08-12 12:54:13 +0000530%dir %attr(750,root,root) /var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000531%endif
Martin Wintera5efdb62015-10-29 22:15:42 -0700532%if 0%{?vty_group:1}
paul6bd8fd32003-08-12 12:54:13 +0000533%attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
pauledd7c242003-06-04 13:59:38 +0000534%endif
Martin Wintera5efdb62015-10-29 22:15:42 -0700535%{_infodir}/quagga.info.gz
paul788cdc62003-01-18 00:22:08 +0000536%{_mandir}/man*/*
Paul Jakma93687462017-02-27 22:42:59 +0000537%if %{with_watchquagga}
538 %{_mandir}/man*/watchquagga.*
539%endif
paul54b25dc2004-09-30 04:56:26 +0000540%{_sbindir}/zebra
541%{_sbindir}/ospfd
542%{_sbindir}/ripd
543%{_sbindir}/bgpd
Martin Wintera5efdb62015-10-29 22:15:42 -0700544%if %{with_watchquagga}
545 %{_sbindir}/watchquagga
546%endif
paul54b25dc2004-09-30 04:56:26 +0000547%{_sbindir}/ripngd
548%{_sbindir}/ospf6d
Paul Jakma283d5d72016-02-11 13:54:23 +0000549%if %{with_pimd}
550%{_sbindir}/pimd
paul54b25dc2004-09-30 04:56:26 +0000551%endif
552%if %{with_isisd}
553%{_sbindir}/isisd
554%endif
Timo Teräs2d78fe72017-02-14 13:07:39 +0200555%if %{with_nhrpd}
556%{_sbindir}/nhrpd
557%endif
paul28f79722004-10-29 05:35:43 +0000558%if %{with_shared}
Paul Jakma93687462017-02-27 22:42:59 +0000559%{_libdir}/quagga/lib*.so
560%{_libdir}/quagga/lib*.so.?
561%attr(755,root,root) %{_libdir}/quagga/lib*.so.?.?.?
paul54b25dc2004-09-30 04:56:26 +0000562%endif
563%if %{with_vtysh}
paul788cdc62003-01-18 00:22:08 +0000564%{_bindir}/*
pauld7ccae22003-01-18 00:24:00 +0000565%endif
paul6bd8fd32003-08-12 12:54:13 +0000566%config /etc/quagga/[!v]*
Martin Wintera5efdb62015-10-29 22:15:42 -0700567%if "%{initsystem}" == "systemd"
Paul Jakma93687462017-02-27 22:42:59 +0000568 %{_unitdir}/*.service
Martin Wintera5efdb62015-10-29 22:15:42 -0700569%else
570 %config /etc/rc.d/init.d/zebra
571 %if %{with_watchquagga}
572 %config /etc/rc.d/init.d/watchquagga
573 %endif
574 %config /etc/rc.d/init.d/ripd
575 %config /etc/rc.d/init.d/ospfd
576 %config /etc/rc.d/init.d/bgpd
577 %config /etc/rc.d/init.d/ripngd
578 %config /etc/rc.d/init.d/ospf6d
579 %if %{with_isisd}
580 %config /etc/rc.d/init.d/isisd
581 %endif
582 %if %{with_pimd}
583 %config /etc/rc.d/init.d/pimd
584 %endif
Timo Teräs2d78fe72017-02-14 13:07:39 +0200585 %if %{with_nhrpd}
586 %config /etc/rc.d/init.d/nhrpd
587 %endif
Martin Wintera5efdb62015-10-29 22:15:42 -0700588%endif
paul15d74e92003-12-30 11:16:21 +0000589%config(noreplace) /etc/sysconfig/quagga
paul6bd8fd32003-08-12 12:54:13 +0000590%config(noreplace) /etc/pam.d/quagga
paul788cdc62003-01-18 00:22:08 +0000591%config(noreplace) %attr(640,root,root) /etc/logrotate.d/*
Paul Jakma93687462017-02-27 22:42:59 +0000592%{_tmpfilesdir}/quagga.conf
paul788cdc62003-01-18 00:22:08 +0000593
paul448ed4a2003-03-01 15:43:28 +0000594%files contrib
595%defattr(-,root,root)
Paul Jakma93687462017-02-27 22:42:59 +0000596%doc AUTHORS COPYING %attr(0644,root,root) tools
paul448ed4a2003-03-01 15:43:28 +0000597
paule0626852003-03-18 14:11:36 +0000598%files devel
599%defattr(-,root,root)
Paul Jakma93687462017-02-27 22:42:59 +0000600%doc AUTHORS COPYING
paulda29c6b2004-10-08 00:49:09 +0000601%if %{with_ospfclient}
602%{_sbindir}/ospfclient
603%endif
Paul Jakma93687462017-02-27 22:42:59 +0000604%dir %{_libdir}/quagga/
605%{_libdir}/quagga/*.a
606%{_libdir}/quagga/*.la
paulcfc18422004-10-23 00:05:41 +0000607%dir %attr(755,root,root) %{_includedir}/%{name}
paul28f79722004-10-29 05:35:43 +0000608%{_includedir}/%name/*.h
paulcfc18422004-10-23 00:05:41 +0000609%dir %attr(755,root,root) %{_includedir}/%{name}/ospfd
paul28f79722004-10-29 05:35:43 +0000610%{_includedir}/%name/ospfd/*.h
paul54b25dc2004-09-30 04:56:26 +0000611%if %{with_ospfapi}
paulcfc18422004-10-23 00:05:41 +0000612%dir %attr(755,root,root) %{_includedir}/%{name}/ospfapi
paul28f79722004-10-29 05:35:43 +0000613%{_includedir}/%name/ospfapi/*.h
paul68980082003-03-25 05:07:42 +0000614%endif
paule0626852003-03-18 14:11:36 +0000615
paul788cdc62003-01-18 00:22:08 +0000616%changelog
Paul Jakma304ec312017-03-05 12:39:41 +0000617* Sun Mar 5 2017 Paul Jakma <paul@jakma.org>
618- Fix lint errors
619- Make texi2html conditional, disable by default to avoid needing TeX
620 by default
621
Paul Jakma75ebcd82017-03-05 10:21:02 +0000622* Mon Feb 27 2017 Paul Jakma <paul@jakma.org>
Paul Jakma93687462017-02-27 22:42:59 +0000623- Apply 0001-systemd-various-service-file-improvements.patch from Fedora
624- Review Fedora spec file and sync up with any useful differences, inc:
625- Add tmpfiles.d config for Quagga from Fedora
626- Add quagga-filter-perl-requires.sh from Fedora.
Paul Jakma75ebcd82017-03-05 10:21:02 +0000627- Move libs to %%{_libdir}/quagga as per Fedora
Paul Jakma93687462017-02-27 22:42:59 +0000628- use systemd_postun_with_restart for postun
629
Paul Jakma75ebcd82017-03-05 10:21:02 +0000630* Tue Feb 14 2017 Timo Teräs <timo.teras@iki.fi>
Timo Teräs2d78fe72017-02-14 13:07:39 +0200631- add nhrpd
632
633* Thu Feb 11 2016 Paul Jakma <paul@jakma.org>
Paul Jakma283d5d72016-02-11 13:54:23 +0000634- remove with_ipv6 conditionals, always build v6
635- Fix UTF-8 char in spec changelog
636- remove quagga.pam.stack, long deprecated.
637
Martin Wintera5efdb62015-10-29 22:15:42 -0700638* Thu Oct 22 2015 Martin Winter <mwinter@opensourcerouting.org>
639- Cleanup configure: remove --enable-ipv6 (default now), --enable-nssa,
640 --enable-netlink
641- Remove support for old fedora 4/5
642- Fix for package nameing
643- Fix Weekdays of previous changelogs (bogus dates)
644- Add conditional logic to only build tex footnotes with supported texi2html
645- Added pimd to files section and fix double listing of /var/lib*/quagga
646- Numerous fixes to unify upstart/systemd startup into same spec file
647- Only allow use of watchquagga for non-systemd systems. no need with systemd
648
649* Fri Sep 4 2015 Paul Jakma <paul@jakma.org>
Paul Jakmae07068c2015-09-04 14:25:13 +0100650- buildreq updates
651- add a default define for with_pimd
652
Martin Wintera5efdb62015-10-29 22:15:42 -0700653* Mon Sep 12 2005 Paul Jakma <paul@dishone.st>
paule7cd37b2005-09-08 15:18:39 +0000654- Steal some changes from Fedora spec file:
655- Add with_rtadv variable
656- Test for groups/users with getent before group/user adding
657- Readline need not be an explicit prerequisite
658- install-info delete should be postun, not preun
659
ajsfc43ecc2005-01-12 16:41:33 +0000660* Wed Jan 12 2005 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
661- on package upgrade, implement careful, phased restart logic
662- use gcc -rdynamic flag when linking for better backtraces
663
ajsb3324e22004-12-22 17:52:29 +0000664* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajsf3931752004-12-23 00:00:58 +0000665- daemonv6_list should contain only IPv6 daemons
666
667* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajsb3324e22004-12-22 17:52:29 +0000668- watchquagga added
669- on upgrade, all daemons should be condrestart'ed
670- on removal, all daemons should be stopped
671
paul36002ae2004-11-08 17:36:29 +0000672* Mon Nov 08 2004 Paul Jakma <paul@dishone.st>
673- Use makeinfo --html to generate quagga.html
674
paul0df63b52004-11-07 22:12:23 +0000675* Sun Nov 07 2004 Paul Jakma <paul@dishone.st>
676- Fix with_ipv6 set to 0 build
677
paulcfc18422004-10-23 00:05:41 +0000678* Sat Oct 23 2004 Paul Jakma <paul@dishone.st>
679- Update to 0.97.2
680
681* Sat Oct 23 2004 Andrew J. Schorr <aschorr@telemetry-investments.com>
682- Make directories be owned by the packages concerned
683- Update logrotate scripts to use correct path to killall and use pid files
684
paulda29c6b2004-10-08 00:49:09 +0000685* Fri Oct 08 2004 Paul Jakma <paul@dishone.st>
686- Update to 0.97.0
687
paul54b25dc2004-09-30 04:56:26 +0000688* Wed Sep 15 2004 Paul Jakma <paul@dishone.st>
689- build snmp support by default
690- build irdp support
691- build with shared libs
692- devel subpackage for archives and headers
693
paul00bc5602004-01-09 16:30:52 +0000694* Thu Jan 08 2004 Paul Jakma <paul@dishone.st>
695- updated sysconfig files to specify local dir
696- added ospf_dump.c crash quick fix patch
697- added ospfd persistent interface configuration patch
698
paul15d74e92003-12-30 11:16:21 +0000699* Tue Dec 30 2003 Paul Jakma <paul@dishone.st>
700- sync to CVS
701- integrate RH sysconfig patch to specify daemon options (RH)
702- default to have vty listen only to 127.1 (RH)
703- add user with fixed UID/GID (RH)
704- create user with shell /sbin/nologin rather than /bin/false (RH)
705- stop daemons on uninstall (RH)
Martin Wintera5efdb62015-10-29 22:15:42 -0700706- delete info file on preun, not postun to avoid deletion on upgrade. (RH)
paul15d74e92003-12-30 11:16:21 +0000707- isisd added
708- cleanup tasks carried out for every daemon
709
paul406f7002003-11-02 07:30:52 +0000710* Sun Nov 2 2003 Paul Jakma <paul@dishone.st>
711- Fix -devel package to include all files
712- Sync to 0.96.4
713
paul6bd8fd32003-08-12 12:54:13 +0000714* Tue Aug 12 2003 Paul Jakma <paul@dishone.st>
715- Renamed to Quagga
716- Sync to Quagga release 0.96
717
Martin Wintera5efdb62015-10-29 22:15:42 -0700718* Thu Mar 20 2003 Paul Jakma <paul@dishone.st>
pauledd7c242003-06-04 13:59:38 +0000719- zebra privileges support
720
Martin Wintera5efdb62015-10-29 22:15:42 -0700721* Tue Mar 18 2003 Paul Jakma <paul@dishone.st>
paule0626852003-03-18 14:11:36 +0000722- Fix mem leak in 'show thread cpu'
723- Ralph Keller's OSPF-API
724- Amir: Fix configure.ac for net-snmp
725
paul448ed4a2003-03-01 15:43:28 +0000726* Sat Mar 1 2003 Paul Jakma <paul@dishone.st>
727- ospfd IOS prefix to interface matching for 'network' statement
728- temporary fix for PtP and IPv6
729- sync to zebra.org CVS
730
paul8f754982003-01-20 04:55:51 +0000731* Mon Jan 20 2003 Paul Jakma <paul@dishone.st>
732- update to latest cvs
733- Yon's "show thread cpu" patch - 17217
734- walk up tree - 17218
735- ospfd NSSA fixes - 16681
736- ospfd nsm fixes - 16824
737- ospfd OLSA fixes and new feature - 16823
738- KAME and ifindex fixes - 16525
739- spec file changes to allow redhat files to be in tree
740
pauld7ccae22003-01-18 00:24:00 +0000741* Sat Dec 28 2002 Alexander Hoogerhuis <alexh@ihatent.com>
742- Added conditionals for building with(out) IPv6, vtysh, RIP, BGP
743- Fixed up some build requirements (patch)
744- Added conditional build requirements for vtysh / snmp
Martin Wintera5efdb62015-10-29 22:15:42 -0700745- Added conditional to files for _bindir depending on vtysh
pauld7ccae22003-01-18 00:24:00 +0000746
paul788cdc62003-01-18 00:22:08 +0000747* Mon Nov 11 2002 Paul Jakma <paulj@alphyra.ie>
748- update to latest CVS
749- add Greg Troxel's md5 buffer copy/dup fix
750- add RIPv1 fix
751- add Frank's multicast flag fix
752
753* Wed Oct 09 2002 Paul Jakma <paulj@alphyra.ie>
754- update to latest CVS
755- timestamped crypt_seqnum patch
756- oi->on_write_q fix
757
758* Mon Sep 30 2002 Paul Jakma <paulj@alphyra.ie>
759- update to latest CVS
760- add vtysh 'write-config (integrated|daemon)' patch
761- always 'make rebuild' in vtysh/ to catch new commands
762
763* Fri Sep 13 2002 Paul Jakma <paulj@alphyra.ie>
764- update to 0.93b
765
766* Wed Sep 11 2002 Paul Jakma <paulj@alphyra.ie>
767- update to latest CVS
768- add "/sbin/ip route flush proto zebra" to zebra RH init on startup
769
770* Sat Aug 24 2002 Paul Jakma <paulj@alphyra.ie>
771- update to current CVS
772- add OSPF point to multipoint patch
773- add OSPF bugfixes
774- add BGP hash optimisation patch
775
776* Fri Jun 14 2002 Paul Jakma <paulj@alphyra.ie>
777- update to 0.93-pre1 / CVS
778- add link state detection support
779- add generic PtP and RFC3021 support
780- various bug fixes
781
782* Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6
783- Fix bug #51336
784
Martin Wintera5efdb62015-10-29 22:15:42 -0700785* Wed Aug 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5
paul788cdc62003-01-18 00:22:08 +0000786- Use generic initscript strings instead of initscript specific
787 ( "Starting foo: " -> "Starting $prog:" )
788
789* Fri Jul 27 2001 Elliot Lee <sopwith@redhat.com> 0.91a-4
790- Bump the release when rebuilding into the dist.
791
792* Tue Feb 6 2001 Tim Powers <timp@redhat.com>
793- built for Powertools
794
795* Sun Feb 4 2001 Pekka Savola <pekkas@netcore.fi>
796- Hacked up from PLD Linux 0.90-1, Mandrake 0.90-1mdk and one from zebra.org.
797- Update to 0.91a
798- Very heavy modifications to init.d/*, .spec, pam, i18n, logrotate, etc.
799- Should be quite Red Hat'isque now.