From: Martin Winter Date: Fri, 14 Apr 2017 01:54:58 +0000 (-0700) Subject: redhat: Always disable PIMd on CentOS 6 and RedHat 6 systems as they are too old... X-Git-Tag: reindent-master-before~72^2~3^2~18 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=63ef966e657468478593ce4ed873f135bd89135a;p=mirror_frr.git redhat: Always disable PIMd on CentOS 6 and RedHat 6 systems as they are too old to correctly support the protocol Signed-off-by: Martin Winter --- diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in index 4d213fbb8..32f6b74f7 100644 --- a/redhat/frr.spec.in +++ b/redhat/frr.spec.in @@ -26,6 +26,7 @@ %{!?with_fpm: %global with_fpm 0 } %{!?with_watchfrr: %global with_watchfrr 1 } %{!?with_bgp_vnc: %global with_bgp_vnc 0 } +%{!?with_pimd: %global with_pimd 1 } # path defines %define _sysconfdir /etc/frr @@ -62,7 +63,16 @@ %global with_watchfrr 1 %endif -# if FPM is enabled, then enable tcp_zebra as well +#### Check for RedHat 6.x or CentOS 6.x - they are too old to support PIM. +#### Always disable it on these old systems unconditionally +%{expand: %%global redhat6 %(if [[ `cat /etc/redhat-release 2> /dev/null` =~ release\ 6\. ]]; then echo 6; fi)} +# +# if CentOS 6 / RedHat 6, then disable PIMd +%if "%{redhat6}" == "6" + %global with_pimd 0 +%endif + +# if FPM is enabled, then enable tcp_zebra as well # %if %{with_fpm} %global with_tcp_zebra 1 @@ -73,7 +83,7 @@ %{!?frr_gid: %global frr_gid 92 } %{!?vty_gid: %global vty_gid 85 } -%define daemon_list zebra ripd ospfd bgpd isisd pimd ripngd ospf6d +%define daemon_list zebra ripd ospfd bgpd isisd ripngd ospf6d %if %{with_ldpd} %define daemon_ldpd ldpd @@ -82,9 +92,15 @@ %endif %if %{with_nhrpd} -%define daemon_nhrpd nhrpd +%define daemon_nhrpd nhrpd +%else +%define daemon_nhrpd "" +%endif + +%if %{with_pimd} +%define daemon_pimd pimd %else -%define daemon_nhrpd "" +%define daemon_pimd "" %endif %if %{with_watchfrr} @@ -93,7 +109,7 @@ %define daemon_watchfrr "" %endif -%define all_daemons %{daemon_list} %{daemon_ldpd} %{daemon_nhrpd} %{daemon_watchfrr} +%define all_daemons %{daemon_list} %{daemon_ldpd} %{daemon_nhrpd} %{daemon_pimd} %{daemon_watchfrr} # allow build dir to be kept %{!?keep_build: %global keep_build 0 } @@ -231,9 +247,14 @@ developing OSPF-API and frr applications. --disable-ldpd \ %endif %if %{with_nhrpd} - --enable-nhrpd \ + --enable-nhrpd \ %else - --disable-nhrpd \ + --disable-nhrpd \ +%endif +%if %{with_pimd} + --enable-pimd \ +%else + --disable-pimd \ %endif %if %{with_pam} --with-libpam \ @@ -361,7 +382,9 @@ zebra_spec_add_service isisd 2608/tcp "ISISd vty" %if %{with_nhrpd} zebra_spec_add_service nhrpd 2610/tcp "NHRPd vty" %endif +%if %{with_pimd} zebra_spec_add_service pimd 2611/tcp "PIMd vty" +%endif %if %{with_ldpd} zebra_spec_add_service ldpd 2612/tcp "LDPd vty" %endif @@ -538,7 +561,9 @@ rm -rf %{buildroot} %endif %{_sbindir}/ripngd %{_sbindir}/ospf6d -%{_sbindir}/pimd +%if %{with_pimd} + %{_sbindir}/pimd +%endif %{_sbindir}/isisd %if %{with_ldpd} %{_sbindir}/ldpd @@ -566,7 +591,9 @@ rm -rf %{buildroot} %config /etc/rc.d/init.d/ripngd %config /etc/rc.d/init.d/ospf6d %config /etc/rc.d/init.d/isisd - %config /etc/rc.d/init.d/pimd + %if %{with_pimd} + %config /etc/rc.d/init.d/pimd + %endif %if %{with_ldpd} %config /etc/rc.d/init.d/ldpd %endif @@ -609,6 +636,12 @@ rm -rf %{buildroot} - add nhrpd * Fri Jan 6 2017 Martin Winter - %{version} +* Thu Apr 13 2017 Martin Winter - %{version} +- new subpackage frr-pythontools with python 2.7 restart script +- remove PIMd from CentOS/RedHat 6 RPM packages (won't work - too old) +- Various other RPM package fixes for FRR 2.0 + +* Fri Jan 6 2017 Martin Winter - Renamed to frr for FRRouting fork of Quagga * Thu Feb 11 2016 Paul Jakma