]> git.puffer.fish Git - matthieu/frr.git/commitdiff
distro/redhat: package nhrpd
authorTimo Teräs <timo.teras@iki.fi>
Tue, 14 Feb 2017 11:07:39 +0000 (13:07 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 7 Mar 2017 15:31:07 +0000 (16:31 +0100)
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
[DL: adapted for FRR, changed port number 2612->2610]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
redhat/frr.spec.in

index c53e8459c9a98b551f6f7a7a605375dd7157ca93..bb23931b13f3204b5606ec869b719d7ad92ca8fb 100644 (file)
@@ -18,6 +18,7 @@
 %{!?with_rtadv:                        %global with_rtadv              1 }
 %{!?with_mpls:                 %global with_mpls               0 }
 %{!?with_ldpd:                 %global with_ldpd               0 }
+%{!?with_nhrpd:                        %global with_nhrpd              1 }
 %{!?with_shared:               %global with_shared             1 }
 %{!?with_multipath:            %global with_multipath          256 }
 %{!?frr_user:          %global frr_user                frr }
 %define                daemon_ldpd     ""
 %endif
 
+%if %{with_nhrpd}
+%define         daemon_nhrpd   nhrpd
+%else
+%define                daemon_nhrpd    ""
+%endif
+
 %if %{with_watchfrr}
 %define         daemon_watchfrr        watchfrr
 %else
 %define                daemon_watchfrr ""
 %endif
 
-%define                all_daemons     %{daemon_list} %{daemon_ldpd} %{daemon_watchfrr}
+%define                all_daemons     %{daemon_list} %{daemon_ldpd} %{daemon_nhrpd} %{daemon_watchfrr}
 
 # allow build dir to be kept
 %{!?keep_build:                %global         keep_build      0 }
@@ -132,8 +139,8 @@ FreeRangeRouting is a free software that manages TCP/IP based routing
 protocol. It takes multi-server and multi-thread approach to resolve
 the current complexity of the Internet.
 
-FreeRangeRouting supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng, PIM
-and LDP
+FreeRangeRouting supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng, PIM,
+LDP and NHRP.
 
 FreeRangeRouting is a fork of Quagga.
 
@@ -215,6 +222,11 @@ developing OSPF-API and frr applications.
 %else
        --disable-ldpd \
 %endif
+%if %{with_nhrpd}
+       --enable-nhrpd \
+%else
+       --disable-nhrpd \
+%endif
 %if %{with_pam}
        --with-libpam \
 %endif
@@ -336,6 +348,9 @@ zebra_spec_add_service ospf6d   2606/tcp "OSPF6d vty"
 zebra_spec_add_service ospfapi  2607/tcp "OSPF-API"
 %endif
 zebra_spec_add_service isisd    2608/tcp "ISISd vty"
+%if %{with_nhrpd}
+zebra_spec_add_service nhrpd    2610/tcp "NHRPd vty"
+%endif
 zebra_spec_add_service pimd     2611/tcp "PIMd vty"
 %if %{with_ldpd}
 zebra_spec_add_service ldpd     2612/tcp "LDPd vty"
@@ -521,6 +536,9 @@ rm -rf %{buildroot}
 %if %{with_ldpd}
 %{_sbindir}/ldpd
 %endif
+%if %{with_nhrpd}
+%{_sbindir}/nhrpd
+%endif
 %if %{with_shared}
 %attr(755,root,root) %{_libdir}/lib*.so
 %attr(755,root,root) %{_libdir}/lib*.so.*
@@ -544,6 +562,9 @@ rm -rf %{buildroot}
        %if %{with_ldpd}
                %config /etc/rc.d/init.d/ldpd
        %endif
+       %if %{with_nhrpd}
+               %config /etc/rc.d/init.d/nhrpd
+       %endif
 %endif
 %config(noreplace) /etc/default/frr
 %config(noreplace) /etc/pam.d/frr
@@ -570,7 +591,10 @@ rm -rf %{buildroot}
 %endif
 
 %changelog
-* Fri Jan  6 2017 Martin Winter <mwinter@opensourcerouting.org> - %{version}
+* Tue Feb 14 2017 Timo Teräs <timo.teras@iki.fi> - %{version}
+- add nhrpd
+
+* Fri Jan  6 2017 Martin Winter <mwinter@opensourcerouting.org>
 - Renamed to frr for FreeRangeRouting fork of Quagga
 
 * Thu Feb 11 2016 Paul Jakma <paul@jakma.org>