You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.0 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=cache-domains
  3. PKG_VERSION:=2.2.0
  4. PKG_RELEASE:=1
  5. PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/cache-domains/default
  8. SECTION:=utils
  9. CATEGORY:=Utilities
  10. TITLE:=Game content cache DNS
  11. URL:=https://github.com/uklans/cache-domains
  12. DEPENDS:=+jq +bash +dnsmasq +ca-bundle
  13. endef
  14. define Package/cache-domains/description/default
  15. hotplug script to dynamically configure the local DNS (dnsmasq) to redirect game content servers to a LAN cache.
  16. Definitive list dynamically obtained from https://github.com/uklans/cache-domains.
  17. endef
  18. define Package/cache-domains/install/default
  19. $(INSTALL_DIR) $(1)/usr/bin
  20. $(INSTALL_BIN) ./files/cache-domains $(1)/usr/bin/
  21. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface/
  22. $(INSTALL_BIN) ./files/30-cache-domains $(1)/etc/hotplug.d/iface/
  23. endef
  24. Build/Compile=# Nothing to compile, just install the scripts
  25. define Package/cache-domains-openssl
  26. $(Package/cache-domains/default)
  27. TITLE += (openssl)
  28. DEPENDS += +libustream-openssl
  29. VARIANT:=openssl
  30. endef
  31. Package/cache-domains-openssl/description = $(Package/cache-domains/description/default)
  32. Package/cache-domains-openssl/install = $(Package/cache-domains/install/default)
  33. define Package/cache-domains-mbedtls
  34. $(Package/cache-domains/default)
  35. TITLE += (mbedtls)
  36. DEPENDS += +libustream-mbedtls
  37. VARIANT:=mbedtls
  38. endef
  39. Package/cache-domains-mbedtls/description = $(Package/cache-domains/description/default)
  40. Package/cache-domains-mbedtls/install = $(Package/cache-domains/install/default)
  41. define Package/cache-domains-wolfssl
  42. $(Package/cache-domains/default)
  43. TITLE += (wolfssl)
  44. DEPENDS += +libustream-wolfssl
  45. VARIANT:=wolfssl
  46. DEFAULT_VARIANT:=1
  47. endef
  48. Package/cache-domains-wolfssl/description = $(Package/cache-domains/description/default)
  49. Package/cache-domains-wolfssl/install = $(Package/cache-domains/install/default)
  50. $(eval $(call BuildPackage,cache-domains-openssl))
  51. $(eval $(call BuildPackage,cache-domains-mbedtls))
  52. $(eval $(call BuildPackage,cache-domains-wolfssl))