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