audit.mk 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ################################################################################
  2. #
  3. # audit
  4. #
  5. ################################################################################
  6. AUDIT_VERSION = 2.8.2
  7. AUDIT_SITE = http://people.redhat.com/sgrubb/audit
  8. AUDIT_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries)
  9. AUDIT_LICENSE_FILES = COPYING COPYING.LIB
  10. AUDIT_INSTALL_STAGING = YES
  11. AUDIT_CONF_OPTS = --without-python --without-python3 --disable-zos-remote
  12. ifeq ($(BR2_PACKAGE_LIBCAP_NG),y)
  13. AUDIT_DEPENDENCIES += libcap-ng
  14. AUDIT_CONF_OPTS += --with-libcap-ng=yes
  15. else
  16. AUDIT_CONF_OPTS += --with-libcap-ng=no
  17. endif
  18. # For i386, x86-64 and PowerPC, the system call tables are
  19. # unconditionally included. However, for ARM(eb) and AArch64, then
  20. # need to be explicitly enabled.
  21. ifeq ($(BR2_arm)$(BR2_armeb),y)
  22. AUDIT_CONF_OPTS += --with-arm
  23. endif
  24. ifeq ($(BR2_aarch64),y)
  25. AUDIT_CONF_OPTS += --with-aarch64
  26. endif
  27. ifeq ($(BR2_INIT_SYSTEMD),y)
  28. AUDIT_CONF_OPTS += --enable-systemd
  29. else
  30. AUDIT_CONF_OPTS += --disable-systemd
  31. endif
  32. define AUDIT_INSTALL_INIT_SYSV
  33. $(INSTALL) -D -m 755 package/audit/S01auditd $(TARGET_DIR)/etc/init.d/S01auditd
  34. endef
  35. define AUDIT_INSTALL_INIT_SYSTEMD
  36. mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
  37. ln -fs ../../../../usr/lib/systemd/system/auditd.service \
  38. $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/auditd.service
  39. $(INSTALL) -D -m 644 package/audit/audit_tmpfiles.conf \
  40. $(TARGET_DIR)/usr/lib/tmpfiles.d/audit.conf
  41. endef
  42. define AUDIT_INSTALL_CLEANUP
  43. $(RM) $(TARGET_DIR)/etc/rc.d/init.d/auditd
  44. $(RM) $(TARGET_DIR)/etc/sysconfig/auditd
  45. endef
  46. AUDIT_POST_INSTALL_TARGET_HOOKS += AUDIT_INSTALL_CLEANUP
  47. HOST_AUDIT_CONF_OPTS = \
  48. --without-python \
  49. --without-python3 \
  50. --disable-zos-remote \
  51. --without-libcap-ng
  52. $(eval $(autotools-package))
  53. $(eval $(host-autotools-package))