summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2020-10-31 02:11:45 +0100
committerMartin Winter <mwinter@opensourcerouting.org>2020-10-31 03:57:46 +0100
commitd0df840a28f92d2b2bb12fa724f432d86cd539c3 (patch)
treebeb8579ecf6606ed88f2f0a086f629ecaad131d2 /redhat
parentredhat: Move RPKI to subpackage instead of a RPM build option (diff)
downloadfrr-d0df840a28f92d2b2bb12fa724f432d86cd539c3.tar.xz
frr-d0df840a28f92d2b2bb12fa724f432d86cd539c3.zip
redhat: Add snmp as a subpackage
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'redhat')
-rw-r--r--redhat/frr.spec.in24
1 files changed, 21 insertions, 3 deletions
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}