Integrate parts of meta-intel-iot-security
[AGL/meta-agl.git] / meta-security / recipes-security / audit / audit / disable-ldap.patch
1 Disable LDAP support
2
3 Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
4
5 Disable LDAP support
6
7 Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
8
9 Index: audit-2.3.2/audisp/plugins/Makefile.am
10 ===================================================================
11 --- audit-2.3.2.orig/audisp/plugins/Makefile.am
12 +++ audit-2.3.2/audisp/plugins/Makefile.am
13 @@ -22,8 +22,10 @@
14  
15  CONFIG_CLEAN_FILES = *.loT *.rej *.orig
16  
17 -SUBDIRS = builtins zos-remote remote
18 -#SUBDIRS = builtins zos-remote
19 +SUBDIRS = builtins remote
20 +if HAVE_LDAP
21 +SUBDIRS += zos-remote
22 +endif
23  if HAVE_PRELUDE
24  SUBDIRS += prelude
25  endif
26 Index: audit-2.3.2/configure.ac
27 ===================================================================
28 --- audit-2.3.2.orig/configure.ac
29 +++ audit-2.3.2/configure.ac
30 @@ -241,6 +241,12 @@ else
31  fi
32  AM_CONDITIONAL(HAVE_PRELUDE, test x$have_prelude = xyes)
33  
34 +AC_ARG_WITH(ldap,
35 +AS_HELP_STRING([--with-ldap],[enable zos-remote plugin, which requires ldap]),
36 +use_ldap=$withval,
37 +use_ldap=no)
38 +AM_CONDITIONAL(HAVE_LDAP, test x$have_ldap = xyes)
39 +
40  AC_MSG_CHECKING(whether to use libwrap)
41  AC_ARG_WITH(libwrap,
42  [  --with-libwrap[=PATH]   Compile in libwrap (tcp_wrappers) support.],
43 Index: audit-2.3.2/docs/Makefile.am
44 ===================================================================
45 --- audit-2.3.2.orig/docs/Makefile.am
46 +++ audit-2.3.2/docs/Makefile.am
47 @@ -53,7 +53,9 @@ ausearch_add_expression.3 ausearch_add_t
48  ausearch_clear.3 \
49  ausearch_next_event.3 ausearch_set_stop.3 \
50  autrace.8 get_auditfail_action.3 set_aumessage_mode.3 \
51 -audispd.8 audispd.conf.5 audispd-zos-remote.8 libaudit.conf.5 \
52 -augenrules.8 \
53 -zos-remote.conf.5 
54 +audispd.8 audispd.conf.5 libaudit.conf.5 \
55 +augenrules.8
56  
57 +if HAVE_LDAP
58 +man_MANS += audispd-zos-remote.8 zos-remote.conf.5 
59 +endif