Makefile 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=usign
  3. PKG_RELEASE:=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL=$(PROJECT_GIT)/project/usign.git
  6. PKG_SOURCE_DATE:=2019-08-06
  7. PKG_SOURCE_VERSION:=5a52b379902471cef495687547c7b568142f66d2
  8. PKG_MIRROR_HASH:=9779f6d6718a7f7cd3e28aa7feefc9b3f4b0c7a85cb58ff18afbeb6b4372177a
  9. CMAKE_INSTALL:=1
  10. PKG_CHECK_FORMAT_SECURITY:=1
  11. PKG_USE_MIPS16:=0
  12. PKG_LICENSE:=ISC
  13. PKG_LICENSE_FILES:=
  14. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/host-build.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
  19. define Package/usign
  20. SECTION:=base
  21. CATEGORY:=Base system
  22. DEPENDS:=+libubox
  23. TITLE:=OpenWrt signature verification utility
  24. endef
  25. CMAKE_OPTIONS += \
  26. -DUSE_LIBUBOX=on
  27. define Package/usign/install
  28. $(INSTALL_DIR) $(1)/usr/bin
  29. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/usign $(1)/usr/bin
  30. ln -s usign $(1)/usr/bin/signify
  31. endef
  32. $(eval $(call BuildPackage,usign))
  33. $(eval $(call HostBuild))