%{!?with_ldpd: %global with_ldpd 1 }
%{!?with_nhrpd: %global with_nhrpd 1 }
%{!?with_eigrpd: %global with_eigrpd 1 }
+%{!?with_babeld: %global with_babeld 1 }
%{!?with_shared: %global with_shared 1 }
%{!?with_multipath: %global with_multipath 256 }
%{!?frr_user: %global frr_user frr }
%define daemon_eigrpd ""
%endif
+%if %{with_babeld}
+%define daemon_babeld babeld
+%else
+%define daemon_babeld ""
+%endif
+
%if %{with_watchfrr}
%define daemon_watchfrr watchfrr
%else
%define daemon_watchfrr ""
%endif
-%define all_daemons %{daemon_list} %{daemon_ldpd} %{daemon_pimd} %{daemon_nhrpd} %{daemon_eigrpd} %{daemon_watchfrr}
+%define all_daemons %{daemon_list} %{daemon_ldpd} %{daemon_pimd} %{daemon_nhrpd} %{daemon_eigrpd} %{daemon_babeld} %{daemon_watchfrr}
# allow build dir to be kept
%{!?keep_build: %global keep_build 0 }
%else
--disable-eigrpd \
%endif
+%if %{with_babeld}
+ --enable-babeld \
+%else
+ --disable-babeld \
+%endif
%if %{with_pam}
--with-libpam \
%endif
zebra_spec_add_service ospfapi 2607/tcp "OSPF-API"
%endif
zebra_spec_add_service isisd 2608/tcp "ISISd vty"
-%if %{with_eigrpd}
-zebra_spec_add_service eigrpd 2609/tcp "EIGRPd vty"
+%if %{with_babeld}
+zebra_spec_add_service babeld 2609/tcp "BABELd vty"
%endif
%if %{with_nhrpd}
zebra_spec_add_service nhrpd 2610/tcp "NHRPd vty"
%if %{with_ldpd}
zebra_spec_add_service ldpd 2612/tcp "LDPd vty"
%endif
+%if %{with_eigrpd}
+zebra_spec_add_service eigrpd 2613/tcp "EIGRPd vty"
+%endif
%if "%{initsystem}" == "systemd"
for daemon in %all_daemons ; do
%if %{with_nhrpd}
%{_sbindir}/nhrpd
%endif
+%if %{with_babeld}
+ %{_sbindir}/babeld
+%endif
%if %{with_shared}
%{_libdir}/lib*.so
%{_libdir}/lib*.so.0