diff options
author | Armin Kuster <akuster808@gmail.com> | 2020-11-03 10:01:02 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2020-11-03 15:16:53 -0800 |
commit | c40e8f8d9dbdd7e2052033d9d50ebf8e4d883c69 (patch) | |
tree | 9776c9e5a3f327823c71f2b467d8c620c4c9ec59 | |
parent | ab133ef3f6ea0872b8b558fe519a4902cd75ceb6 (diff) | |
download | meta-security-c40e8f8d9dbdd7e2052033d9d50ebf8e4d883c69.tar.gz |
samhain: update to 4.4.2
refresh a few patches too
Signed-off-by: Armin Kuster <akuster808@gmail.com>
3 files changed, 42 insertions, 52 deletions
diff --git a/recipes-ids/samhain/files/samhain-avoid-searching-host-for-postgresql.patch b/recipes-ids/samhain/files/samhain-avoid-searching-host-for-postgresql.patch index 6bf67e0..a84229e 100644 --- a/recipes-ids/samhain/files/samhain-avoid-searching-host-for-postgresql.patch +++ b/recipes-ids/samhain/files/samhain-avoid-searching-host-for-postgresql.patch | |||
@@ -10,11 +10,11 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
10 | configure.ac | 101 +++-------------------------------------------------------- | 10 | configure.ac | 101 +++-------------------------------------------------------- |
11 | 1 file changed, 5 insertions(+), 96 deletions(-) | 11 | 1 file changed, 5 insertions(+), 96 deletions(-) |
12 | 12 | ||
13 | diff --git a/configure.ac b/configure.ac | 13 | Index: samhain-4.4.2/configure.ac |
14 | index a224c68..f658d53 100644 | 14 | =================================================================== |
15 | --- a/configure.ac | 15 | --- samhain-4.4.2.orig/configure.ac |
16 | +++ b/configure.ac | 16 | +++ samhain-4.4.2/configure.ac |
17 | @@ -1278,90 +1278,11 @@ AC_ARG_WITH(database, | 17 | @@ -1290,90 +1290,11 @@ AC_ARG_WITH(database, |
18 | AC_DEFINE(WITH_POSTGRES) | 18 | AC_DEFINE(WITH_POSTGRES) |
19 | AC_DEFINE(WITH_DATABASE) | 19 | AC_DEFINE(WITH_DATABASE) |
20 | # | 20 | # |
@@ -110,7 +110,7 @@ index a224c68..f658d53 100644 | |||
110 | LIBS="$LIBS -L${PGSQL_LIB_DIR} -lpq -lm" | 110 | LIBS="$LIBS -L${PGSQL_LIB_DIR} -lpq -lm" |
111 | if test x"$enable_static" = xyes; then | 111 | if test x"$enable_static" = xyes; then |
112 | LIBS="$LIBS -L${PGSQL_LIB_DIR} -lpq -lcrypt -lm" | 112 | LIBS="$LIBS -L${PGSQL_LIB_DIR} -lpq -lcrypt -lm" |
113 | @@ -1370,18 +1291,6 @@ AC_ARG_WITH(database, | 113 | @@ -1382,18 +1303,6 @@ AC_ARG_WITH(database, |
114 | fi | 114 | fi |
115 | # CFLAGS="$CFLAGS -I${PGSQL_INC_DIR}" | 115 | # CFLAGS="$CFLAGS -I${PGSQL_INC_DIR}" |
116 | CPPFLAGS="$CPPFLAGS -I${PGSQL_INC_DIR}" | 116 | CPPFLAGS="$CPPFLAGS -I${PGSQL_INC_DIR}" |
@@ -129,6 +129,3 @@ index a224c68..f658d53 100644 | |||
129 | fi | 129 | fi |
130 | elif test "x${withval}" = "xodbc"; then | 130 | elif test "x${withval}" = "xodbc"; then |
131 | AC_MSG_CHECKING(for odbc in /usr /usr/local ODBC_HOME) | 131 | AC_MSG_CHECKING(for odbc in /usr /usr/local ODBC_HOME) |
132 | -- | ||
133 | 2.11.0 | ||
134 | |||
diff --git a/recipes-ids/samhain/files/samhain-configure-add-option-for-ps.patch b/recipes-ids/samhain/files/samhain-configure-add-option-for-ps.patch index 8de0735..7e7f86e 100644 --- a/recipes-ids/samhain/files/samhain-configure-add-option-for-ps.patch +++ b/recipes-ids/samhain/files/samhain-configure-add-option-for-ps.patch | |||
@@ -14,29 +14,14 @@ to avoid host contamination. | |||
14 | Upstream-Status: Inappropriate [cross compile specific] | 14 | Upstream-Status: Inappropriate [cross compile specific] |
15 | 15 | ||
16 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 16 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
17 | --- | 17 | [AK: refactored for 4.4.3] |
18 | aclocal.m4 | 2 +- | 18 | Signed-off-by: Armin Kuster <akuster808@gmail.com> |
19 | configure.ac | 60 ++++++++++-------------------------------------------------- | ||
20 | 2 files changed, 11 insertions(+), 51 deletions(-) | ||
21 | 19 | ||
22 | diff --git a/aclocal.m4 b/aclocal.m4 | 20 | Index: samhain-4.4.2/configure.ac |
23 | index a2e59a6..cd20a2f 100644 | 21 | =================================================================== |
24 | --- a/aclocal.m4 | 22 | --- samhain-4.4.2.orig/configure.ac |
25 | +++ b/aclocal.m4 | 23 | +++ samhain-4.4.2/configure.ac |
26 | @@ -409,7 +409,7 @@ x_includes=NONE | 24 | @@ -743,56 +743,16 @@ then |
27 | x_libraries=NONE | ||
28 | DESTDIR= | ||
29 | SH_ENABLE_OPTS="selinux posix-acl asm ssp db-reload xml-log message-queue login-watch process-check port-check mounts-check logfile-monitor userfiles debug ptrace static network udp nocl stealth micro-stealth install-name identity khide suidcheck base largefile mail external-scripts encrypt srp dnmalloc ipv6 shellexpand suid" | ||
30 | -SH_WITH_OPTS="prelude libprelude-prefix database libwrap cflags libs console altconsole timeserver alttimeserver rnd egd-socket port logserver altlogserver kcheck gpg keyid checksum fp recipient sender trusted tmp-dir config-file log-file pid-file state-dir data-file html-file" | ||
31 | +SH_WITH_OPTS="prelude libprelude-prefix database libwrap cflags libs console altconsole timeserver alttimeserver rnd egd-socket port logserver altlogserver kcheck gpg keyid checksum fp recipient sender trusted tmp-dir config-file log-file pid-file state-dir data-file html-file ps-path" | ||
32 | |||
33 | # Installation directory options. | ||
34 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
35 | diff --git a/configure.ac b/configure.ac | ||
36 | index 5910b1f..8c3e087 100644 | ||
37 | --- a/configure.ac | ||
38 | +++ b/configure.ac | ||
39 | @@ -730,56 +730,16 @@ then | ||
40 | fi | 25 | fi |
41 | AC_CHECK_HEADERS(gmp.h) | 26 | AC_CHECK_HEADERS(gmp.h) |
42 | 27 | ||
@@ -55,7 +40,16 @@ index 5910b1f..8c3e087 100644 | |||
55 | - AC_MSG_ERROR([Cannot find ps in any of /usr/ucb /bin /usr/bin]) | 40 | - AC_MSG_ERROR([Cannot find ps in any of /usr/ucb /bin /usr/bin]) |
56 | -fi | 41 | -fi |
57 | -AC_DEFINE_UNQUOTED([PSPATH], _("$PS"), [Path to ps]) | 42 | -AC_DEFINE_UNQUOTED([PSPATH], _("$PS"), [Path to ps]) |
58 | - | 43 | +AC_ARG_WITH(ps-path, |
44 | + [ --with-ps-path=PATH set path to ps command ], | ||
45 | + [ | ||
46 | + if test "x${withval}" != xno; then | ||
47 | + pspath="${withval}" | ||
48 | + AC_DEFINE_UNQUOTED([PSPATH], _("${pspath}"), [Path to ps]) | ||
49 | + AC_DEFINE_UNQUOTED([PSARG], _("ax"), [Argument for ps]) | ||
50 | + fi | ||
51 | + ]) | ||
52 | |||
59 | -AC_MSG_CHECKING([how to use ps]) | 53 | -AC_MSG_CHECKING([how to use ps]) |
60 | -$PS ax >/dev/null 2>&1 | 54 | -$PS ax >/dev/null 2>&1 |
61 | -if test $? -eq 0; then | 55 | -if test $? -eq 0; then |
@@ -90,19 +84,19 @@ index 5910b1f..8c3e087 100644 | |||
90 | - PSARG="-e" | 84 | - PSARG="-e" |
91 | -fi | 85 | -fi |
92 | -AC_DEFINE_UNQUOTED([PSARG], _("$PSARG"), [Argument for ps]) | 86 | -AC_DEFINE_UNQUOTED([PSARG], _("$PSARG"), [Argument for ps]) |
93 | +AC_ARG_WITH(ps-path, | ||
94 | + [ --with-ps-path=PATH set path to ps command ], | ||
95 | + [ | ||
96 | + if test "x${withval}" != xno; then | ||
97 | + pspath="${withval}" | ||
98 | + AC_DEFINE_UNQUOTED([PSPATH], _("${pspath}"), [Path to ps]) | ||
99 | + AC_DEFINE_UNQUOTED([PSARG], _("ax"), [Argument for ps]) | ||
100 | + fi | ||
101 | + ]) | ||
102 | + | ||
103 | AC_MSG_RESULT([$PS $PSARG]) | 87 | AC_MSG_RESULT([$PS $PSARG]) |
104 | 88 | ||
105 | dnl ***************************************** | 89 | dnl ***************************************** |
106 | -- | 90 | Index: samhain-4.4.2/aclocal.m4 |
107 | 1.9.1 | 91 | =================================================================== |
108 | 92 | --- samhain-4.4.2.orig/aclocal.m4 | |
93 | +++ samhain-4.4.2/aclocal.m4 | ||
94 | @@ -409,7 +409,7 @@ x_includes=NONE | ||
95 | x_libraries=NONE | ||
96 | DESTDIR= | ||
97 | SH_ENABLE_OPTS="selinux posix-acl asm ssp db-reload xml-log message-queue login-watch process-check port-check mounts-check logfile-monitor userfiles debug ptrace static network udp nocl stealth micro-stealth install-name identity khide suidcheck base largefile mail external-scripts encrypt srp dnmalloc ipv6 shellexpand suid" | ||
98 | -SH_WITH_OPTS="prelude libprelude-prefix database libwrap cflags libs console altconsole timeserver alttimeserver rnd egd-socket port logserver altlogserver signify pubkey-checksum gpg keyid checksum fp recipient sender trusted tmp-dir config-file log-file pid-file state-dir data-file html-file" | ||
99 | +SH_WITH_OPTS="prelude libprelude-prefix database libwrap cflags libs console altconsole timeserver alttimeserver rnd egd-socket port logserver altlogserver kcheck gpg keyid checksum fp recipient sender trusted tmp-dir config-file log-file pid-file state-dir data-file html-file ps-path" | ||
100 | |||
101 | # Installation directory options. | ||
102 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
diff --git a/recipes-ids/samhain/samhain.inc b/recipes-ids/samhain/samhain.inc index b867bbc..3b4aab9 100644 --- a/recipes-ids/samhain/samhain.inc +++ b/recipes-ids/samhain/samhain.inc | |||
@@ -3,9 +3,12 @@ HOMEPAGE = "http://www.la-samhna.de/samhain/" | |||
3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8ca43cbc842c2336e835926c2166c28b" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8ca43cbc842c2336e835926c2166c28b" |
5 | 5 | ||
6 | PV = "4.3.3" | 6 | PV = "4.4.2" |
7 | 7 | ||
8 | SRC_URI = "http://la-samhna.de/archive/samhain_signed-${PV}.tar.gz \ | 8 | SRC_URI = "https://la-samhna.de/archive/samhain_signed-${PV}.tar.gz \ |
9 | file://${INITSCRIPT_NAME}.init \ | ||
10 | file://${INITSCRIPT_NAME}.default \ | ||
11 | file://samhain.service \ | ||
9 | file://samhain-mips64-aarch64-dnmalloc-hash-fix.patch \ | 12 | file://samhain-mips64-aarch64-dnmalloc-hash-fix.patch \ |
10 | file://samhain-samhainrc.patch \ | 13 | file://samhain-samhainrc.patch \ |
11 | file://samhain-samhainrc-fix-files-dirs-path.patch \ | 14 | file://samhain-samhainrc-fix-files-dirs-path.patch \ |
@@ -15,13 +18,9 @@ SRC_URI = "http://la-samhna.de/archive/samhain_signed-${PV}.tar.gz \ | |||
15 | file://samhain-avoid-searching-host-for-postgresql.patch \ | 18 | file://samhain-avoid-searching-host-for-postgresql.patch \ |
16 | file://samhain-add-LDFLAGS-variable-for-samhain_setpwd.patch \ | 19 | file://samhain-add-LDFLAGS-variable-for-samhain_setpwd.patch \ |
17 | file://fix-build-with-new-version-attr.patch \ | 20 | file://fix-build-with-new-version-attr.patch \ |
18 | file://${INITSCRIPT_NAME}.init \ | ||
19 | file://${INITSCRIPT_NAME}.default \ | ||
20 | file://samhain.service \ | ||
21 | " | 21 | " |
22 | 22 | ||
23 | SRC_URI[md5sum] = "7be46ae7d03f53ba21afafd41cff8926" | 23 | SRC_URI[sha256sum] = "2bb2750b32646be32517d0b2259402559c72b96979800f6c33774fcdea327fff" |
24 | SRC_URI[sha256sum] = "33ad4bc3dad4699694553bd9635a6b5827939f965d1f0f05fce0b4e9cdadf21b" | ||
25 | 24 | ||
26 | UPSTREAM_CHECK_URI = "https://www.la-samhna.de/samhain/archive.html" | 25 | UPSTREAM_CHECK_URI = "https://www.la-samhna.de/samhain/archive.html" |
27 | UPSTREAM_CHECK_REGEX = "samhain_signed-(?P<pver>(\d+(\.\d+)+))\.tar" | 26 | UPSTREAM_CHECK_REGEX = "samhain_signed-(?P<pver>(\d+(\.\d+)+))\.tar" |