From 1c3546fec11180aa85689e6d1d18f78631846714 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sun, 11 Nov 2012 20:25:22 +0100 Subject: [PATCH] install: create state dir with install-conf --- Makefile.am | 1 + configure.ac | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index 62e8488510..c2542f41cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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)" diff --git a/configure.ac b/configure.ac index 6917ccab51..b8781f4f5e 100644 --- a/configure.ac +++ b/configure.ac @@ -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)