install: create state dir with install-conf

pull/200/merge
Eric Leblond 13 years ago committed by Victor Julien
parent 9f4da93a4b
commit 1c3546fec1

@ -22,6 +22,7 @@ install-conf:
@test -e "$(e_sysconfdir)/reference.config" || install -m 600 "$(top_srcdir)/reference.config" "$(e_sysconfdir)"
@test -e "$(e_sysconfdir)/threshold.config" || install -m 600 "$(top_srcdir)/threshold.config" "$(e_sysconfdir)"
install -d "$(e_logfilesdir)"
install -d "$(e_rundir)"
install-rules:
install -d "$(e_sysconfrulesdir)"

@ -1348,11 +1348,13 @@ if test "$WINDOWS_PATH" = "yes"; then
e_logfilesdir="$e_logdir\\\\files"
else
EXPAND_VARIABLE(localstatedir, e_logdir, "/log/suricata/")
EXPAND_VARIABLE(localstatedir, e_rundir, "/run/")
EXPAND_VARIABLE(localstatedir, e_logfilesdir, "/log/suricata/files")
EXPAND_VARIABLE(sysconfdir, e_sysconfdir, "/suricata/")
EXPAND_VARIABLE(sysconfdir, e_sysconfrulesdir, "/suricata/rules")
fi
AC_SUBST(e_logdir)
AC_SUBST(e_rundir)
AC_SUBST(e_logfilesdir)
AC_SUBST(e_sysconfdir)
AC_SUBST(e_sysconfrulesdir)

Loading…
Cancel
Save