From d0df840a28f92d2b2bb12fa724f432d86cd539c3 Mon Sep 17 00:00:00 2001 From: Martin Winter Date: Sat, 31 Oct 2020 02:11:45 +0100 Subject: redhat: Add snmp as a subpackage Signed-off-by: Martin Winter --- redhat/frr.spec.in | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'redhat/frr.spec.in') diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in index 83994f115..b228be2c8 100644 --- a/redhat/frr.spec.in +++ b/redhat/frr.spec.in @@ -271,6 +271,18 @@ relevant to internet service providers using their own autonomous system number. +%package snmp +Summary: SNMP support +Group: System Environment/Daemons +BuildRequires: net-snmp-devel +Requires: %{name} = %{version}-%{release} + +%description snmp +Adds SNMP support to FRR's daemons by attaching to net-snmp's snmpd +through the AgentX protocol. Provides read-only access to current +routing state through standard SNMP MIBs. + + %prep %setup -q -n frr-%{frrversion} @@ -386,6 +398,7 @@ number. %else --disable-bfdd \ %endif + --enable-snmp # end make %{?_smp_mflags} MAKEINFO="makeinfo --no-split" @@ -668,8 +681,9 @@ fi %if %{with_bfdd} %{_sbindir}/bfdd %endif -%{_libdir}/lib*.so.0 -%{_libdir}/lib*.so.0.* +%{_libdir}/libfrr.so* +%{_libdir}/libfrrcares* +%{_libdir}/libfrrospf* %if %{with_fpm} %{_libdir}/frr/modules/zebra_fpm.so %endif @@ -705,7 +719,6 @@ fi %else %{_sbindir}/generate_support_bundle.pyc %{_sbindir}/generate_support_bundle.pyo -%{_sbindir}/frr-reload.py %{_sbindir}/frr-reload.pyc %{_sbindir}/frr-reload.pyo %endif @@ -723,6 +736,11 @@ sed -i 's/ -M rpki//' %{_sysconfdir}/frr/daemons %{_libdir}/frr/modules/bgpd_rpki.so +%files snmp +%{_libdir}/libfrrsnmp.so* +%{_libdir}/frr/modules/*snmp.so + + %files devel %{_libdir}/lib*.so %dir %{_includedir}/%{name} -- cgit v1.2.3