2015-10-27 23:02:23 +00:00
|
|
|
#
|
2021-02-26 19:52:55 +00:00
|
|
|
# Copyright (c) 2015-2021 Dirk Brenken (dev@brenken.org)
|
2015-10-27 23:02:23 +00:00
|
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=adblock
|
2021-06-12 20:24:23 +00:00
|
|
|
PKG_VERSION:=4.1.3
|
2021-06-29 19:03:33 +00:00
|
|
|
PKG_RELEASE:=2
|
2019-09-02 13:15:08 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2016-05-13 07:54:20 +00:00
|
|
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
2015-10-27 23:02:23 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/adblock
|
2015-10-27 23:02:23 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2018-01-05 17:54:45 +00:00
|
|
|
TITLE:=Powerful adblock script to block ad/abuse domains by using DNS
|
2020-05-23 19:15:52 +00:00
|
|
|
DEPENDS:=+jshn +jsonfilter +coreutils +coreutils-sort +ca-bundle +opkg
|
2015-10-27 23:02:23 +00:00
|
|
|
PKGARCH:=all
|
|
|
|
endef
|
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/adblock/description
|
2019-08-15 12:02:30 +00:00
|
|
|
Powerful adblock script to block ad/abuse domains via dnsmasq, unbound, named or kresd.
|
2016-10-07 17:00:44 +00:00
|
|
|
The script supports many domain blacklist sites plus manual black- and whitelist overrides.
|
2016-02-28 20:26:41 +00:00
|
|
|
Please see https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md for further information.
|
2015-11-24 21:29:05 +00:00
|
|
|
|
2015-10-27 23:02:23 +00:00
|
|
|
endef
|
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/adblock/conffiles
|
2015-11-11 18:36:34 +00:00
|
|
|
/etc/config/adblock
|
2015-10-27 23:02:23 +00:00
|
|
|
/etc/adblock/adblock.whitelist
|
|
|
|
/etc/adblock/adblock.blacklist
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/adblock/install
|
2015-10-27 23:02:23 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2019-08-15 12:02:30 +00:00
|
|
|
$(INSTALL_BIN) ./files/adblock.sh $(1)/usr/bin
|
2016-02-22 19:57:40 +00:00
|
|
|
|
2016-02-15 11:25:21 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/adblock.init $(1)/etc/init.d/adblock
|
|
|
|
|
2015-11-11 18:36:34 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
|
2015-10-27 23:02:23 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/adblock
|
2019-08-15 12:02:30 +00:00
|
|
|
$(INSTALL_BIN) ./files/adblock.mail $(1)/etc/adblock
|
|
|
|
$(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock
|
|
|
|
$(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock
|
2021-02-26 19:52:55 +00:00
|
|
|
$(INSTALL_CONF) ./files/adblock.categories $(1)/etc/adblock
|
2020-03-27 19:26:39 +00:00
|
|
|
$(INSTALL_CONF) ./files/adblock.sources $(1)/etc/adblock
|
|
|
|
gzip -9 $(1)/etc/adblock/adblock.sources
|
2015-10-27 23:02:23 +00:00
|
|
|
endef
|
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
$(eval $(call BuildPackage,adblock))
|