2015-06-02 15:28:20 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# audit
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-05-20 19:46:49 +02:00
|
|
|
AUDIT_VERSION = 3.0.1
|
2015-09-28 18:10:31 +02:00
|
|
|
AUDIT_SITE = http://people.redhat.com/sgrubb/audit
|
2017-10-10 13:54:14 +02:00
|
|
|
AUDIT_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries)
|
|
|
|
AUDIT_LICENSE_FILES = COPYING COPYING.LIB
|
2019-09-22 11:06:29 +02:00
|
|
|
# 0002-Add-substitue-functions-for-strndupa-rawmemchr.patch
|
|
|
|
AUDIT_AUTORECONF = YES
|
2020-12-04 16:46:01 +01:00
|
|
|
AUDIT_CPE_ID_VENDOR = linux_audit_project
|
2021-01-18 18:41:51 +01:00
|
|
|
AUDIT_CPE_ID_PRODUCT = linux_audit
|
2015-06-02 15:28:20 +02:00
|
|
|
|
|
|
|
AUDIT_INSTALL_STAGING = YES
|
|
|
|
|
2015-07-22 23:06:40 +02:00
|
|
|
AUDIT_CONF_OPTS = --without-python --without-python3 --disable-zos-remote
|
2015-06-02 15:28:20 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP_NG),y)
|
|
|
|
AUDIT_DEPENDENCIES += libcap-ng
|
|
|
|
AUDIT_CONF_OPTS += --with-libcap-ng=yes
|
|
|
|
else
|
|
|
|
AUDIT_CONF_OPTS += --with-libcap-ng=no
|
|
|
|
endif
|
|
|
|
|
|
|
|
# For i386, x86-64 and PowerPC, the system call tables are
|
|
|
|
# unconditionally included. However, for ARM(eb) and AArch64, then
|
|
|
|
# need to be explicitly enabled.
|
|
|
|
|
|
|
|
ifeq ($(BR2_arm)$(BR2_armeb),y)
|
|
|
|
AUDIT_CONF_OPTS += --with-arm
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_aarch64),y)
|
|
|
|
AUDIT_CONF_OPTS += --with-aarch64
|
|
|
|
endif
|
|
|
|
|
2015-10-04 19:29:34 +02:00
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
|
|
AUDIT_CONF_OPTS += --enable-systemd
|
|
|
|
else
|
|
|
|
AUDIT_CONF_OPTS += --disable-systemd
|
|
|
|
endif
|
|
|
|
|
2015-07-14 22:20:27 +02:00
|
|
|
define AUDIT_INSTALL_INIT_SYSV
|
2018-11-03 17:42:42 +01:00
|
|
|
$(INSTALL) -D -m 755 package/audit/S02auditd $(TARGET_DIR)/etc/init.d/S02auditd
|
2015-07-14 22:20:27 +02:00
|
|
|
endef
|
|
|
|
|
2015-10-04 19:29:34 +02:00
|
|
|
define AUDIT_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/audit/audit_tmpfiles.conf \
|
|
|
|
$(TARGET_DIR)/usr/lib/tmpfiles.d/audit.conf
|
|
|
|
endef
|
|
|
|
|
2015-06-02 15:28:20 +02:00
|
|
|
define AUDIT_INSTALL_CLEANUP
|
2018-06-05 04:08:42 +02:00
|
|
|
$(RM) $(TARGET_DIR)/etc/rc.d/init.d/auditd
|
|
|
|
$(RM) $(TARGET_DIR)/etc/sysconfig/auditd
|
2015-06-02 15:28:20 +02:00
|
|
|
endef
|
|
|
|
AUDIT_POST_INSTALL_TARGET_HOOKS += AUDIT_INSTALL_CLEANUP
|
|
|
|
|
2020-04-04 14:10:22 +02:00
|
|
|
define AUDIT_LINUX_CONFIG_FIXUPS
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NET)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_AUDIT)
|
|
|
|
endef
|
|
|
|
|
2016-07-16 22:06:26 +02:00
|
|
|
HOST_AUDIT_CONF_OPTS = \
|
|
|
|
--without-python \
|
|
|
|
--without-python3 \
|
|
|
|
--disable-zos-remote \
|
|
|
|
--without-libcap-ng
|
|
|
|
|
2015-06-02 15:28:20 +02:00
|
|
|
$(eval $(autotools-package))
|
2016-07-16 22:06:26 +02:00
|
|
|
$(eval $(host-autotools-package))
|