Makefile 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright (C) 2018 Onion Corporation
  2. #
  3. # Author: Lazar Demin <lazar@onion.io>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=oboo-repo-keys
  10. PKG_VERSION:=0.0.1
  11. PKG_RELEASE:=1
  12. PKG_BUILD_DEPENDS:=opkg/host usign/host
  13. PKG_CONFIG_DEPENDS := CONFIG_SIGNED_PACKAGES
  14. include $(INCLUDE_DIR)/package.mk
  15. # oboo repo keys
  16. define Package/oboo-repo-keys
  17. SECTION:=onion
  18. CATEGORY:=Onion
  19. SUBMENU:=Oboo
  20. TITLE:=Signature keys required for Oboo Package Repo
  21. DEPENDS:=+SIGNED_PACKAGES:usign
  22. endef
  23. define Package/oboo-repo-keys/description
  24. Signature keys required for Onion Package Repo
  25. endef
  26. define Build/Prepare
  27. mkdir -p $(PKG_BUILD_DIR)
  28. endef
  29. define Build/Compile
  30. endef
  31. define Package/oboo-repo-keys/install
  32. mkdir -p $(1)/etc/opkg/keys
  33. $(CP) ./files/oboo.pub $(1)/etc/opkg/keys/`$(STAGING_DIR_HOST)/bin/usign -F -p ./files/oboo.pub`
  34. endef
  35. $(eval $(call BuildPackage,oboo-repo-keys))