49844baf2f
The package recipe uses a post-install hook to remove useless files from $(TARGET_DIR)/etc/rc.d/init.d and $(TARGET_DIR)/etc/sysconfig. This may damage packages that install useful files on those directories (such as netplug, which installs $(TARGET_DIR)/etc/rc.d/init.d/netplugd). In the future[1] we will reorganize the init scripts and possibly get rid of /etc/rc.d and /etc/sysconfig but for the moment let's restrict the file removal to those installed by audit. 1. http://lists.busybox.net/pipermail/buildroot/2018-May/221549.html Signed-off-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
67 lines
1.8 KiB
Makefile
67 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# audit
|
|
#
|
|
################################################################################
|
|
|
|
AUDIT_VERSION = 2.8.2
|
|
AUDIT_SITE = http://people.redhat.com/sgrubb/audit
|
|
AUDIT_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries)
|
|
AUDIT_LICENSE_FILES = COPYING COPYING.LIB
|
|
|
|
AUDIT_INSTALL_STAGING = YES
|
|
|
|
AUDIT_CONF_OPTS = --without-python --without-python3 --disable-zos-remote
|
|
|
|
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
|
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
AUDIT_CONF_OPTS += --enable-systemd
|
|
else
|
|
AUDIT_CONF_OPTS += --disable-systemd
|
|
endif
|
|
|
|
define AUDIT_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 755 package/audit/S01auditd $(TARGET_DIR)/etc/init.d/S01auditd
|
|
endef
|
|
|
|
define AUDIT_INSTALL_INIT_SYSTEMD
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
ln -fs ../../../../usr/lib/systemd/system/auditd.service \
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/auditd.service
|
|
|
|
$(INSTALL) -D -m 644 package/audit/audit_tmpfiles.conf \
|
|
$(TARGET_DIR)/usr/lib/tmpfiles.d/audit.conf
|
|
endef
|
|
|
|
define AUDIT_INSTALL_CLEANUP
|
|
$(RM) $(TARGET_DIR)/etc/rc.d/init.d/auditd
|
|
$(RM) $(TARGET_DIR)/etc/sysconfig/auditd
|
|
endef
|
|
AUDIT_POST_INSTALL_TARGET_HOOKS += AUDIT_INSTALL_CLEANUP
|
|
|
|
HOST_AUDIT_CONF_OPTS = \
|
|
--without-python \
|
|
--without-python3 \
|
|
--disable-zos-remote \
|
|
--without-libcap-ng
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|