paxtest.mk 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. ################################################################################
  2. #
  3. # paxtest
  4. #
  5. ################################################################################
  6. PAXTEST_VERSION = 0.9.15
  7. PAXTEST_SITE = https://www.grsecurity.net/~spender
  8. PAXTEST_LICENSE = GPL-2.0+
  9. PAXTEST_LICENSE_FILES = README
  10. PAXTEST_CPE_ID_VENDOR = grsecurity
  11. define PAXTEST_BUILD_CMDS
  12. $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
  13. RUNDIR="/usr/lib/paxtest" CC="$(TARGET_CC)" LD="$(TARGET_CC)" linux
  14. endef
  15. # The files installed to RUNDIR include test apps and shared libs.
  16. # Assuming /usr/bin/paxtest script solely uses these libs and apps, the
  17. # genpaxtest script updates LD_LIBRARY_PATH in the paxtest script
  18. # as part of the paxtest's creation to include the RUNDIR path for shared
  19. # library use.
  20. define PAXTEST_INSTALL_TARGET_CMDS
  21. $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
  22. CC="$(TARGET_CC)" LD="$(TARGET_CC)" \
  23. DESTDIR=$(TARGET_DIR) \
  24. BINDIR="usr/bin" \
  25. RUNDIR="/usr/lib/paxtest" -f Makefile.psm install
  26. endef
  27. $(eval $(generic-package))