]> git.puffer.fish Git - mirror/frr.git/commitdiff
RedHat spec: Add the rpki module when needed 2672/head
authorpcarana <pcarana@users.noreply.github.com>
Tue, 17 Jul 2018 17:49:14 +0000 (12:49 -0500)
committerGitHub <noreply@github.com>
Tue, 17 Jul 2018 17:49:14 +0000 (12:49 -0500)
Additional help complementing #2669, this adds the rpki module to the bgpd daemon at RPM creation.

redhat/frr.spec.in

index e2be7050d7ad98f406d79b4ae90ae14401f27aa5..85fb309048e9bfc4fe220cd9d425d02cebc51fb1 100644 (file)
@@ -370,6 +370,10 @@ ln -s %{_sbindir}/frr %{buildroot}%{_initddir}/frr
 %endif
 
 install %{zeb_rh_src}/daemons %{buildroot}%{_sysconfdir}/frr
+# add rpki module to daemon
+%if %{with_rpki}
+    sed -i -e 's/^\(bgpd_options=\)\(.*\)\(".*\)/\1\2 -M rpki\3/' %{buildroot}%{_sysconfdir}/frr/daemons
+%endif
 install -m644 %{zeb_rh_src}/frr.pam %{buildroot}%{_sysconfdir}/pam.d/frr
 install -m644 %{zeb_rh_src}/frr.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/frr
 install -d -m750 %{buildroot}%{rundir}