Bladeren bron

Merge pull request #3 from crowdsecurity/test_debian_install

update to use debian/install files
Manuel Sabban 3 jaren geleden
bovenliggende
commit
fa1ee2a856
2 gewijzigde bestanden met toevoegingen van 11 en 8 verwijderingen
  1. 11 0
      debian/install
  2. 0 8
      debian/rules

+ 11 - 0
debian/install

@@ -0,0 +1,11 @@
+config/config.yaml      etc/crowdsec/
+config/profiles.yaml    etc/crowdsec/
+config/simulation.yaml  etc/crowdsec/
+
+config/patterns/*       etc/crowdsec/patterns
+config/crowdsec.service lib/systemd/system
+
+# Referenced configs:
+plugins/notifications/slack/slack.yaml etc/crowdsec/notifications/
+plugins/notifications/http/http.yaml etc/crowdsec/notifications/
+plugins/notifications/splunk/splunk.yaml debian/crowdsec/etc/crowdsec/notifications/

+ 0 - 8
debian/rules

@@ -37,14 +37,6 @@ override_dh_auto_install:
 	install -m 551 plugins/notifications/http/notification-http debian/crowdsec/usr/lib/crowdsec/plugins/
 	install -m 551 plugins/notifications/http/notification-http debian/crowdsec/usr/lib/crowdsec/plugins/
 	install -m 551 plugins/notifications/splunk/notification-splunk debian/crowdsec/usr/lib/crowdsec/plugins/
 	install -m 551 plugins/notifications/splunk/notification-splunk debian/crowdsec/usr/lib/crowdsec/plugins/
 
 
-	cp plugins/notifications/slack/slack.yaml debian/crowdsec/etc/crowdsec/notifications/
-	cp plugins/notifications/http/http.yaml debian/crowdsec/etc/crowdsec/notifications/
-	cp plugins/notifications/splunk/splunk.yaml debian/crowdsec/etc/crowdsec/notifications/
-
 	cp cmd/crowdsec/crowdsec debian/crowdsec/usr/bin
 	cp cmd/crowdsec/crowdsec debian/crowdsec/usr/bin
 	cp cmd/crowdsec-cli/cscli debian/crowdsec/usr/bin
 	cp cmd/crowdsec-cli/cscli debian/crowdsec/usr/bin
 	cp wizard.sh debian/crowdsec/usr/share/crowdsec
 	cp wizard.sh debian/crowdsec/usr/share/crowdsec
-	cp config/config.yaml debian/crowdsec/etc/crowdsec/config.yaml
-	cp config/simulation.yaml debian/crowdsec/etc/crowdsec/simulation.yaml
-	cp config/profiles.yaml debian/crowdsec/etc/crowdsec/profiles.yaml
-	cp -a config/patterns debian/crowdsec/etc/crowdsec