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.

52 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=cache-domains
  3. PKG_VERSION:=1.0.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. Service 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)/etc/init.d
  20. $(INSTALL_BIN) ./files/cache-domains.init $(1)/etc/init.d/cache-domains
  21. endef
  22. Build/Compile=# Nothing to compile, just install the scripts
  23. define Package/cache-domains-openssl
  24. $(Package/cache-domains/default)
  25. TITLE += (openssl)
  26. DEPENDS += +libustream-openssl
  27. VARIANT:=openssl
  28. endef
  29. Package/cache-domains-openssl/description = $(Package/cache-domains/description/default)
  30. Package/cache-domains-openssl/install = $(Package/cache-domains/install/default)
  31. define Package/cache-domains-mbedtls
  32. $(Package/cache-domains/default)
  33. TITLE += (mbedtls)
  34. DEPENDS += +libustream-mbedtls
  35. VARIANT:=mbedtls
  36. DEFAULT_VARIANT:=1
  37. endef
  38. Package/cache-domains-mbedtls/description = $(Package/cache-domains/description/default)
  39. Package/cache-domains-mbedtls/install = $(Package/cache-domains/install/default)
  40. $(eval $(call BuildPackage,cache-domains-openssl))
  41. $(eval $(call BuildPackage,cache-domains-mbedtls))