audit.mk 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ################################################################################
  2. #
  3. # audit
  4. #
  5. ################################################################################
  6. AUDIT_VERSION = 3.1.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_CPE_ID_VENDOR = linux_audit_project
  11. AUDIT_CPE_ID_PRODUCT = linux_audit
  12. AUDIT_INSTALL_STAGING = YES
  13. AUDIT_CONF_OPTS = --without-python --without-python3 --disable-zos-remote
  14. # src/libev has some assembly function that is not present in Thumb mode:
  15. # Error: selected processor does not support `mcr p15,0,r3,c7,c10,5' in Thumb mode
  16. # so, we deactivate Thumb mode
  17. ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
  18. AUDIT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
  19. endif
  20. ifeq ($(BR2_PACKAGE_LIBCAP_NG),y)
  21. AUDIT_DEPENDENCIES += libcap-ng
  22. AUDIT_CONF_OPTS += --with-libcap-ng=yes
  23. else
  24. AUDIT_CONF_OPTS += --with-libcap-ng=no
  25. endif
  26. # For i386, x86-64 and PowerPC, the system call tables are
  27. # unconditionally included. However, for ARM(eb) and AArch64, then
  28. # need to be explicitly enabled.
  29. ifeq ($(BR2_arm)$(BR2_armeb),y)
  30. AUDIT_CONF_OPTS += --with-arm
  31. endif
  32. ifeq ($(BR2_aarch64),y)
  33. AUDIT_CONF_OPTS += --with-aarch64
  34. endif
  35. ifeq ($(BR2_INIT_SYSTEMD),y)
  36. AUDIT_CONF_OPTS += --enable-systemd
  37. else
  38. AUDIT_CONF_OPTS += --disable-systemd
  39. endif
  40. define AUDIT_INSTALL_INIT_SYSV
  41. $(INSTALL) -D -m 755 package/audit/S02auditd $(TARGET_DIR)/etc/init.d/S02auditd
  42. endef
  43. define AUDIT_INSTALL_INIT_SYSTEMD
  44. $(INSTALL) -D -m 644 package/audit/audit_tmpfiles.conf \
  45. $(TARGET_DIR)/usr/lib/tmpfiles.d/audit.conf
  46. endef
  47. define AUDIT_INSTALL_CLEANUP
  48. $(RM) $(TARGET_DIR)/etc/rc.d/init.d/auditd
  49. $(RM) $(TARGET_DIR)/etc/sysconfig/auditd
  50. endef
  51. AUDIT_POST_INSTALL_TARGET_HOOKS += AUDIT_INSTALL_CLEANUP
  52. define AUDIT_LINUX_CONFIG_FIXUPS
  53. $(call KCONFIG_ENABLE_OPT,CONFIG_NET)
  54. $(call KCONFIG_ENABLE_OPT,CONFIG_AUDIT)
  55. endef
  56. HOST_AUDIT_CONF_OPTS = \
  57. --without-python \
  58. --without-python3 \
  59. --disable-zos-remote \
  60. --without-libcap-ng
  61. $(eval $(autotools-package))
  62. $(eval $(host-autotools-package))