mirror of
https://github.com/novatiq/packages.git
synced 2026-07-16 00:33:04 +01:00
504412ccdb
* add support for 'DNS File Reset', where the final DNS blockfile will be purged after DNS backend loading (save storage space). A small background service will be started to trace/handle dns backend reloads/restarts * add support for the 'null' blocking variant in dnsmasq (via addn-hosts), which may provide better response times in dnsmasq * enhance the report & search engine to support the new blocking variants. Search now includes backups & black-/whitelist as well * compressed source list backups are now mandatory (default to '/tmp') * speed up TLD compression * E-Mail notification setup is now integrated in UCI/LuCI * update the LuCI frontend to reflect all changes (separate PR) * drop preliminary dnscrypt-proxy-support (use dnsmasq instead) * drop additional 'dnsjail' blocklist support (not used by anyone) * procd cleanups in init * various shellcheck cleanups * update readme Signed-off-by: Dirk Brenken <dev@brenken.org>
64 lines
1.6 KiB
Makefile
64 lines
1.6 KiB
Makefile
#
|
|
# Copyright (c) 2015-2019 Dirk Brenken (dev@brenken.org)
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=adblock
|
|
PKG_VERSION:=3.8.0
|
|
PKG_RELEASE:=1
|
|
PKG_LICENSE:=GPL-3.0+
|
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/adblock
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=Powerful adblock script to block ad/abuse domains by using DNS
|
|
DEPENDS:=+jshn +jsonfilter
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/adblock/description
|
|
Powerful adblock script to block ad/abuse domains via dnsmasq, unbound, named or kresd.
|
|
The script supports many domain blacklist sites plus manual black- and whitelist overrides.
|
|
Please see https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md for further information.
|
|
|
|
endef
|
|
|
|
define Package/adblock/conffiles
|
|
/etc/config/adblock
|
|
/etc/adblock/adblock.whitelist
|
|
/etc/adblock/adblock.blacklist
|
|
endef
|
|
|
|
define Build/Prepare
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/adblock/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) ./files/adblock.sh $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/adblock.init $(1)/etc/init.d/adblock
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
|
|
|
|
$(INSTALL_DIR) $(1)/etc/adblock
|
|
$(INSTALL_BIN) ./files/adblock.mail $(1)/etc/adblock
|
|
$(INSTALL_BIN) ./files/adblock.service $(1)/etc/adblock
|
|
$(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock
|
|
$(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,adblock))
|