Skip to content

Commit

Permalink
suricata-update: install sample configuration files
Browse files Browse the repository at this point in the history
With the move to installing Suricata-Update files from Suricata
Makefile's, the sample configuration files were forgotten.

Ticket: OISF#6132
  • Loading branch information
jasonish authored and victorjulien committed Jun 9, 2023
1 parent e30f494 commit b8071a9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions suricata-update/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ LIBS = \
suricata/update/util.py \
suricata/update/version.py

CONFIGS = \
suricata/update/configs/disable.conf \
suricata/update/configs/drop.conf \
suricata/update/configs/enable.conf \
suricata/update/configs/modify.conf \
suricata/update/configs/threshold.in \
suricata/update/configs/update.yaml

BINS = suricata-update

if HAVE_PYTHON
Expand All @@ -46,6 +54,9 @@ install-exec-local:
for lib in $(LIBS); do \
install $(srcdir)/$$lib "$(DESTDIR)$(prefix)/lib/suricata/python/$$lib"; \
done
for config in $(CONFIGS); do \
install -m 0644 $(srcdir)/$$config "$(DESTDIR)$(prefix)/lib/suricata/python/$$config"; \
done
for bin in $(BINS); do \
cat "$(srcdir)/bin/$$bin" | \
sed -e "1 s,.*,#"'!'" ${HAVE_PYTHON}," > "${DESTDIR}$(bindir)/$$bin"; \
Expand Down

0 comments on commit b8071a9

Please sign in to comment.