@@ -50,7 +50,7 @@ mkdir -p %{buildroot}%{_libdir}/%{name}/plugins/
5050
5151install -m 755 -D cmd/crowdsec/crowdsec %{buildroot }%{_bindir }/%{name }
5252install -m 755 -D cmd/crowdsec-cli/cscli %{buildroot }%{_bindir }/cscli
53- install -m 755 -D debian/hubupdate.sh %{buildroot }%{_libdir }/%{name }/
53+ install -m 755 -D debian/hubupdate.sh %{buildroot }%{_libexecdir }/%{name }/
5454install -m 644 -D debian/crowdsec.service %{buildroot }%{_unitdir }/%{name }.service
5555install -m 644 -D debian/crowdsec-hubupdate.service %{buildroot }%{_unitdir }/%{name }-hubupdate.service
5656install -m 644 -D debian/crowdsec-hubupdate.timer %{buildroot }%{_unitdir }/%{name }-hubupdate.timer
@@ -63,6 +63,8 @@ install -m 644 -D config/console.yaml %{buildroot}%{_sysconfdir}/crowdsec
6363install -m 644 -D config/context.yaml %{buildroot }%{_sysconfdir }/crowdsec/console/
6464install -m 644 -D %{SOURCE1 } %{buildroot }%{_presetdir }
6565
66+ # plugins could go to _libexecdir but we'll leave them in _libdir because it's referenced in config.yaml
67+
6668install -m 551 cmd/notification-slack/notification-slack %{buildroot }%{_libdir }/%{name }/plugins/
6769install -m 551 cmd/notification-http/notification-http %{buildroot }%{_libdir }/%{name }/plugins/
6870install -m 551 cmd/notification-splunk/notification-splunk %{buildroot }%{_libdir }/%{name }/plugins/
@@ -84,7 +86,7 @@ rm -rf %{buildroot}
8486%defattr(-,root,root,-)
8587%{_bindir }/%{name }
8688%{_bindir }/cscli
87- %{_libdir }/%{name }/hubupdate.sh
89+ %{_libexecdir }/%{name }/hubupdate.sh
8890%{_libdir }/%{name }/plugins/notification-slack
8991%{_libdir }/%{name }/plugins/notification-http
9092%{_libdir }/%{name }/plugins/notification-splunk
0 commit comments