Makefile 1.0 KB

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