####################### Quagga configure options #########################
# with-feature options
-%{!?with_vtysh: %global with_vtysh 1 }
%{!?with_tcp_zebra: %global with_tcp_zebra 0 }
%{!?with_pam: %global with_pam 1 }
%{!?with_ospfclient: %global with_ospfclient 1 }
%{!?with_ospfapi: %global with_ospfapi 1 }
%{!?with_irdp: %global with_irdp 1 }
%{!?with_rtadv: %global with_rtadv 1 }
-%{!?with_isisd: %global with_isisd 1 }
-%{!?with_pimd: %global with_pimd 1 }
%{!?with_shared: %global with_shared 1 }
%{!?with_multipath: %global with_multipath 64 }
%{!?quagga_user: %global quagga_user quagga }
#### Version String tweak
# Remove invalid characters form version string and replace with _
-%{expand: %%define rpmversion %(echo '@VERSION@' | tr [:blank:]- _ )}
+%{expand: %%global rpmversion %(echo '@VERSION@' | tr [:blank:]- _ )}
%define quaggaversion @VERSION@
#### Check version of texi2html
# Old versions don't support "--number-footnotes" option.
-%{expand: %%global texi2htmlversion %(rpm -q --qf '%%{VERSION}' texi2html | cut -d. -f1 )}
+%{expand: %%global texi2htmlversion %(/usr/bin/texi2html --version | cut -d. -f1)}
#### Check for systemd or init.d (upstart)
# Check for init.d (upstart) as used in CentOS 6 or systemd (ie CentOS 7)
%{!?quagga_gid: %define quagga_gid 92 }
%{!?vty_gid: %define vty_gid 85 }
-%define daemon_list zebra ripd ospfd bgpd
-
-%define daemonv6_list ripngd ospf6d
-
-%if %{with_isisd}
-%define daemon_isisd isisd
-%else
-%define daemon_isisd ""
-%endif
-
-%if %{with_pimd}
-%define daemon_pimd pimd
-%else
-%define daemon_pimd ""
-%endif
+%define daemon_list zebra ripd ospfd bgpd isisd ripngd ospfd6d
%if %{with_watchquagga}
%define daemon_watchquagga watchquagga
%define daemon_watchquagga ""
%endif
-%define all_daemons %{daemon_list} %{daemonv6_list} %{daemon_isisd} %{daemon_pimd} %{daemon_watchquagga}
+%define all_daemons %{daemon_list} %{daemonv6_list} %{daemon_watchquagga}
# allow build dir to be kept
%{!?keep_build: %global keep_build 0 }
Requires(preun): /sbin/install-info
Requires(post): /sbin/install-info
BuildRequires: texi2html texinfo autoconf patch libcap-devel groff
-%if %{with_vtysh}
BuildRequires: readline readline-devel ncurses ncurses-devel
Requires: ncurses
-%endif
%if %{with_pam}
BuildRequires: pam-devel
Requires: pam
%if %{with_tcp_zebra}
--enable-tcp-zebra \
%endif
-%if %{with_vtysh}
--enable-vtysh \
-%endif
%if %{with_ospfclient}
--enable-ospfclient=yes \
%else
%else
--enable-rtadv=no \
%endif
-%if %{with_isisd}
- --enable-isisd \
-%else
- --disable-isisd \
-%endif
%if %{with_pam}
--with-libpam \
%endif
%else
--disable-watchquagga \
%endif
+<<<<<<< HEAD
--enable-gcc-rdynamic
+=======
+ --enable-gcc-rdynamic \
+ --enable-isisd=yes \
+ --enable-systemd=yes \
+ --enable-poll=yes
+>>>>>>> 5713748... rebase me
make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
%if %{with_ospfapi}
zebra_spec_add_service ospfapi 2607/tcp "OSPF-API"
%endif
-%if %{with_isisd}
zebra_spec_add_service isisd 2608/tcp "ISISd vty"
-%endif
%if "%{initsystem}" == "systemd"
for daemon in %all_daemons ; do
%endif
%{_sbindir}/ripngd
%{_sbindir}/ospf6d
-%if %{with_pimd}
-%{_sbindir}/pimd
-%endif
-%if %{with_isisd}
%{_sbindir}/isisd
-%endif
%if %{with_shared}
%attr(755,root,root) %{_libdir}/lib*.so
%attr(755,root,root) %{_libdir}/lib*.so.*
%endif
-%if %{with_vtysh}
%{_bindir}/*
-%endif
%config /etc/quagga/[!v]*
%if "%{initsystem}" == "systemd"
%config %{_unitdir}/*.service
%config /etc/rc.d/init.d/bgpd
%config /etc/rc.d/init.d/ripngd
%config /etc/rc.d/init.d/ospf6d
- %if %{with_isisd}
- %config /etc/rc.d/init.d/isisd
- %endif
- %if %{with_pimd}
- %config /etc/rc.d/init.d/pimd
- %endif
+ %config /etc/rc.d/init.d/isisd
+ %config /etc/rc.d/init.d/pimd
%endif
%config(noreplace) /etc/sysconfig/quagga
%config(noreplace) /etc/pam.d/quagga