python: put some defaults on suricata.config.defaults

This is a module that can contain installation default. For now
it includes the sysconfdir, and rules data directory for use
by suricata-update.
pull/3368/head
Jason Ish 7 years ago committed by Victor Julien
parent 7bf490062c
commit b9e083a703

@ -2266,7 +2266,7 @@ AC_SUBST(CONFIGURE_SYSCONDIR)
AC_SUBST(CONFIGURE_LOCALSTATEDIR)
AC_SUBST(PACKAGE_VERSION)
AC_OUTPUT(Makefile src/Makefile rust/Makefile rust/Cargo.toml rust/.cargo/config qa/Makefile qa/coccinelle/Makefile rules/Makefile doc/Makefile doc/userguide/Makefile contrib/Makefile contrib/file_processor/Makefile contrib/file_processor/Action/Makefile contrib/file_processor/Processor/Makefile contrib/tile_pcie_logd/Makefile suricata.yaml etc/Makefile etc/suricata.logrotate etc/suricata.service python/Makefile python/bin/suricatasc ebpf/Makefile)
AC_OUTPUT(Makefile src/Makefile rust/Makefile rust/Cargo.toml rust/.cargo/config qa/Makefile qa/coccinelle/Makefile rules/Makefile doc/Makefile doc/userguide/Makefile contrib/Makefile contrib/file_processor/Makefile contrib/file_processor/Action/Makefile contrib/file_processor/Processor/Makefile contrib/tile_pcie_logd/Makefile suricata.yaml etc/Makefile etc/suricata.logrotate etc/suricata.service python/Makefile python/suricata/config/defaults.py python/bin/suricatasc ebpf/Makefile)
SURICATA_BUILD_CONF="Suricata Configuration:
AF_PACKET support: ${enable_af_packet}

2
python/.gitignore vendored

@ -5,3 +5,5 @@ lib/
scripts-*/
bin/suricatasc
!bin/suricatasc.in
suricata/config/defaults.py
!suricata/config/defaults.py.in

@ -28,6 +28,7 @@ setup(
url='https://www.suricata-ids.org/',
packages=[
"suricata",
"suricata.config",
"suricata.ctl",
"suricata.sc",
"suricatasc",

@ -0,0 +1,2 @@
sysconfdir = "@e_sysconfdir@"
datarulesdir = "@e_datarulesdir@"
Loading…
Cancel
Save