aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ossec-hids-local/makefile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ossec-hids-local/makefile.patch')
-rw-r--r--testing/ossec-hids-local/makefile.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/ossec-hids-local/makefile.patch b/testing/ossec-hids-local/makefile.patch
new file mode 100644
index 0000000000..e3f15a6b96
--- /dev/null
+++ b/testing/ossec-hids-local/makefile.patch
@@ -0,0 +1,47 @@
+diff --git a/src/Makefile b/src/Makefile
+index 1a3c9bd..b2ddfb1 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -22,13 +22,13 @@ OSSEC_USER_MAIL?=ossecm
+ OSSEC_USER_REM?=ossecr
+
+ INSTALL_CMD?=install -m $(1) -o $(2) -g $(3)
+-INSTALL_LOCALTIME?=yes
+-INSTALL_RESOLVCONF?=yes
++INSTALL_LOCALTIME=no
++INSTALL_RESOLVCONF=no
+
+ USE_PRELUDE?=no
+ USE_ZEROMQ?=no
+ USE_GEOIP?=no
+-USE_INOTIFY=no
++USE_INOTIFY=yes
+ USE_PCRE2_JIT=yes
+
+ ifneq (${TARGET},winagent)
+@@ -399,7 +399,6 @@ install-hybrid: install-server-generic
+ install-server: install-server-generic
+
+ install-common: build
+- ./init/adduser.sh ${OSSEC_USER} ${OSSEC_USER_MAIL} ${OSSEC_USER_REM} ${OSSEC_GROUP} ${PREFIX}
+ $(call INSTALL_CMD,0550,root,${OSSEC_GROUP}) -d ${PREFIX}/
+ $(call INSTALL_CMD,0750,${OSSEC_USER},${OSSEC_GROUP}) -d ${PREFIX}/logs
+ $(call INSTALL_CMD,0660,${OSSEC_USER},${OSSEC_GROUP}) /dev/null ${PREFIX}/logs/ossec.log
+@@ -1254,7 +1253,7 @@ ossec-makelists: analysisd/makelists-live.o ${analysisd_live_o} ${format_o} aler
+ #### test ##########
+ ####################
+
+-CFLAGS_TEST = -g -O0 --coverage
++CFLAGS_TEST = -g -O0
+
+ LDFLAGS_TEST = -lcheck -lm -pthread -lrt -lsubunit
+
+@@ -1265,7 +1264,7 @@ endif #TEST
+
+ test_programs = test_os_zlib test_os_xml test_os_regex test_os_crypto test_shared
+
+-.PHONY: test run_tests build_tests test_valgrind test_coverage
++.PHONY: test run_tests build_tests test_valgrind
+
+ test: build_tests
+ ${MAKE} run_tests