You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2020 CZ.NIC z.s.p.o. (https://www.nic.cz/)
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=checksec.sh
  9. PKG_VERSION:=2.2.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/slimm609/checksec.sh/archive/$(PKG_VERSION)
  13. PKG_HASH:=d93c8ddd8bc1c3cbfbc28e34b3b3233f82f79d6800d55ae27dbea3d8b9933435
  14. PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
  15. PKG_LICENSE_FILES:=LICENSE.txt
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/checksec/default
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. URL:=https://github.com/slimm609/checksec.sh
  22. endef
  23. define Package/checksec
  24. $(call Package/checksec/default)
  25. TITLE:=Utility to check PIE, RELRO, ASLR etc.
  26. DEPENDS:=+bash +file +binutils +procps-ng +procps-ng-sysctl +openssl-util +coreutils +coreutils-stat
  27. endef
  28. define Package/checksec_automator
  29. $(call Package/checksec/default)
  30. TITLE:=Utility to use checksec for dirs
  31. DEPENDS:=+checksec +coreutils-tee +findutils-find +grep
  32. endef
  33. define Package/checksec/description
  34. Checksec is a bash script to check the properties
  35. of executables (like PIE, RELRO, PaX, Canaries, ASLR, Fortify Source).
  36. endef
  37. define Package/checksec_automator/description
  38. Script for checksec directory scan.
  39. endef
  40. Build/Compile:=:
  41. Build/Install:=:
  42. define Package/checksec/install
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/checksec $(1)/usr/bin/
  45. endef
  46. define Package/checksec_automator/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/checksec_automator.sh $(1)/usr/bin/
  49. endef
  50. $(eval $(call BuildPackage,checksec))
  51. $(eval $(call BuildPackage,checksec_automator))