1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 04:44:10 +02:00
openwrt-packages/utils/cache-domains/Makefile
Gerard Ryan 124deec9ae cache-domains: Changed to hotplug script
Since we have to restart dnsmasq to reload the config anyway, this
package doesn't need to run before anything. We do however need to
wait for the network so I've changed this service to be a hotplug
script and utility script.

Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com>
2019-12-02 19:16:42 +10:00

56 lines
1.7 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=cache-domains
PKG_VERSION:=2.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
hotplug script 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)/usr/bin
$(INSTALL_BIN) ./files/cache-domains $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface/
$(INSTALL_BIN) ./files/30-cache-domains $(1)/etc/hotplug.d/iface/
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))