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

include $(TOPDIR)/rules.mk
PKG_NAME:=cache-domains
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
include $(INCLUDE_DIR)/package.mk
define Package/cache-domains/default
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Game content cache DNS
URL:=https://github.com/uklans/cache-domains
DEPENDS:=+jq +bash +dnsmasq +ca-bundle
endef
define Package/cache-domains/description/default
Service to dynamically configure the local DNS (dnsmasq) to redirect game content servers to a LAN cache.
Definitive list dynamically obtained from https://github.com/uklans/cache-domains.
endef
define Package/cache-domains/install/default
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/cache-domains.init $(1)/etc/init.d/cache-domains
endef
Build/Compile=# Nothing to compile, just install the scripts
define Package/cache-domains-openssl
$(Package/cache-domains/default)
TITLE += (openssl)
DEPENDS += +libustream-openssl
VARIANT:=openssl
endef
Package/cache-domains-openssl/description = $(Package/cache-domains/description/default)
Package/cache-domains-openssl/install = $(Package/cache-domains/install/default)
define Package/cache-domains-mbedtls
$(Package/cache-domains/default)
TITLE += (mbedtls)
DEPENDS += +libustream-mbedtls
VARIANT:=mbedtls
DEFAULT_VARIANT:=1
endef
Package/cache-domains-mbedtls/description = $(Package/cache-domains/description/default)
Package/cache-domains-mbedtls/install = $(Package/cache-domains/install/default)
$(eval $(call BuildPackage,cache-domains-openssl))
$(eval $(call BuildPackage,cache-domains-mbedtls))