Makefile 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=usign
  3. PKG_VERSION:=2015-05-08
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=git://git.openwrt.org/project/usign.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=cf8dcdb8a4e874c77f3e9a8e9b643e8c17b19131
  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@openwrt.org>
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/host-build.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  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))