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.

55 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=cache-domains
  3. PKG_VERSION:=2.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. 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. DEFAULT_VARIANT:=1
  39. endef
  40. Package/cache-domains-mbedtls/description = $(Package/cache-domains/description/default)
  41. Package/cache-domains-mbedtls/install = $(Package/cache-domains/install/default)
  42. $(eval $(call BuildPackage,cache-domains-openssl))
  43. $(eval $(call BuildPackage,cache-domains-mbedtls))