diff options
Diffstat (limited to 'recipes-security/audit/audit_2.3.2.bb')
-rw-r--r-- | recipes-security/audit/audit_2.3.2.bb | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/recipes-security/audit/audit_2.3.2.bb b/recipes-security/audit/audit_2.3.2.bb new file mode 100644 index 0000000..bd7b4eb --- /dev/null +++ b/recipes-security/audit/audit_2.3.2.bb | |||
@@ -0,0 +1,77 @@ | |||
1 | SUMMARY = "User space tools for kernel auditing" | ||
2 | DESCRIPTION = "The audit package contains the user space utilities for \ | ||
3 | storing and searching the audit records generated by the audit subsystem \ | ||
4 | in the Linux kernel." | ||
5 | HOMEPAGE = "http://people.redhat.com/sgrubb/audit/" | ||
6 | SECTION = "base" | ||
7 | PR = "r8" | ||
8 | LICENSE = "GPLv2+ & LGPLv2+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
10 | |||
11 | SRC_URI = "http://people.redhat.com/sgrubb/audit/audit-${PV}.tar.gz \ | ||
12 | file://disable-ldap.patch \ | ||
13 | file://audit-python.patch \ | ||
14 | file://audit-python-configure.patch \ | ||
15 | file://audit-for-cross-compiling.patch \ | ||
16 | file://auditd \ | ||
17 | file://fix-swig-host-contamination.patch" | ||
18 | |||
19 | inherit autotools pythonnative update-rc.d | ||
20 | |||
21 | UPDATERCPN = "auditd" | ||
22 | INITSCRIPT_NAME = "auditd" | ||
23 | INITSCRIPT_PARAMS = "defaults" | ||
24 | |||
25 | SRC_URI[md5sum] = "4e8d065b5cc16b77b9b61e93a9ed160e" | ||
26 | SRC_URI[sha256sum] = "8872e0b5392888789061db8034164305ef0e1b34543e1e7004d275f039081d29" | ||
27 | |||
28 | DEPENDS += "python tcp-wrappers libcap-ng linux-libc-headers (>= 2.6.30)" | ||
29 | |||
30 | EXTRA_OECONF += "--without-prelude \ | ||
31 | --with-libwrap \ | ||
32 | --enable-gssapi-krb5=no \ | ||
33 | --disable-ldap \ | ||
34 | --with-libcap-ng=yes \ | ||
35 | --with-python=yes \ | ||
36 | --libdir=${base_libdir} \ | ||
37 | --sbindir=${base_sbindir} \ | ||
38 | " | ||
39 | |||
40 | EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}' \ | ||
41 | PYINC='${STAGING_INCDIR}/$(PYLIBVER)' \ | ||
42 | pyexecdir=${libdir}/python${PYTHON_BASEVERSION}/site-packages \ | ||
43 | STDINC='${STAGING_INCDIR}' \ | ||
44 | " | ||
45 | |||
46 | SUMMARY_audispd-plugins = "Plugins for the audit event dispatcher" | ||
47 | DESCRIPTION_audispd-plugins = "The audispd-plugins package provides plugins for the real-time \ | ||
48 | interface to the audit system, audispd. These plugins can do things \ | ||
49 | like relay events to remote machines or analyze events for suspicious \ | ||
50 | behavior." | ||
51 | |||
52 | PACKAGES =+ "audispd-plugins" | ||
53 | PACKAGES += "auditd ${PN}-python" | ||
54 | |||
55 | FILES_${PN} = "${sysconfdir}/libaudit.conf ${base_libdir}/libaudit.so.1* ${base_libdir}/libauparse.so.*" | ||
56 | FILES_auditd += "${bindir}/* ${base_sbindir}/* ${sysconfdir}/*" | ||
57 | FILES_audispd-plugins += "${sysconfdir}/audisp/audisp-remote.conf \ | ||
58 | ${sysconfdir}/audisp/plugins.d/au-remote.conf \ | ||
59 | ${sbindir}/audisp-remote ${localstatedir}/spool/audit \ | ||
60 | " | ||
61 | FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" | ||
62 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" | ||
63 | FILES_${PN}-dev += "${base_libdir}/*.so ${base_libdir}/*.la" | ||
64 | |||
65 | do_install_append() { | ||
66 | rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a | ||
67 | rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la | ||
68 | |||
69 | # reuse auditd config | ||
70 | [ ! -e ${D}/etc/default ] && mkdir ${D}/etc/default | ||
71 | mv ${D}/etc/sysconfig/auditd ${D}/etc/default | ||
72 | rmdir ${D}/etc/sysconfig/ | ||
73 | |||
74 | # replace init.d | ||
75 | install -D -m 0755 ${S}/../auditd ${D}/etc/init.d/auditd | ||
76 | rm -rf ${D}/etc/rc.d | ||
77 | } | ||