]> git.puffer.fish Git - mirror/frr.git/commitdiff
redhat: Build with FPM
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 18 Jan 2018 14:05:36 +0000 (09:05 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 18 Jan 2018 14:31:20 +0000 (09:31 -0500)
Build redhat rpm's with FPM.  It's a module so not
a bad idea.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
redhat/frr.spec.in

index 4e05f7828c847ce0047f8c9bf0977ffc1580464a..20b96bb76ff6cf16d6e3fdf42a0ceb7c5e5d4128 100644 (file)
@@ -22,7 +22,7 @@
 %{!?with_multipath:     %global  with_multipath     256 }
 %{!?frr_user:           %global  frr_user           frr }
 %{!?vty_group:          %global  vty_group          frrvty }
-%{!?with_fpm:           %global  with_fpm           0 }
+%{!?with_fpm:           %global  with_fpm           1 }
 %{!?with_watchfrr:      %global  with_watchfrr      1 }
 %{!?with_bgp_vnc:       %global  with_bgp_vnc       0 }
 %{!?with_pimd:          %global  with_pimd          1 }
@@ -554,6 +554,9 @@ rm -rf %{buildroot}
 %{_libdir}/lib*.so.0
 %attr(755,root,root) %{_libdir}/lib*.so.0.*
 %endif
+%if %{with_fpm}
+%attr(755,root,root) %{_libdir}/frr/modules/zebra_fpm.so
+%endif
 %attr(755,root,root) %{_libdir}/frr/modules/zebra_irdp.so
 %{_bindir}/*
 %config(noreplace) /etc/frr/[!v]*.conf*