Skip to content

Commit

Permalink
redhat: Add snmp as a subpackage
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Winter <[email protected]>
  • Loading branch information
mwinter-osr committed Oct 31, 2020
1 parent a0187fd commit d0df840
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions redhat/frr.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -386,6 +398,7 @@ number.
%else
--disable-bfdd \
%endif
--enable-snmp
# end

make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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}
Expand Down

0 comments on commit d0df840

Please sign in to comment.