1
0

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:=2015-07-04
  7. PKG_SOURCE_VERSION:=ef6419142a3b0fbcddcccf536e3c1880302c6f89
  8. PKG_MIRROR_HASH:=9499ed7e40889b364e446a428e185c40986b75087888bd7e1496542457a6dbaa
  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))