]> git.proxmox.com Git - mirror_frr.git/commitdiff
redhat: Add snmp as a subpackage
authorMartin Winter <mwinter@opensourcerouting.org>
Sat, 31 Oct 2020 01:11:45 +0000 (02:11 +0100)
committerMartin Winter <mwinter@opensourcerouting.org>
Sat, 31 Oct 2020 02:57:46 +0000 (03:57 +0100)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
redhat/frr.spec.in

index 83994f115f989466fd3746bb72005da1da8511af..b228be2c8233240cd53a940a7c7ee2ef7e4b2728 100644 (file)
@@ -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}