aboutsummaryrefslogtreecommitdiff
path: root/net/adblock/Makefile
blob: b372506623c7b8cca7ee9dc5cac2ed5a8a749a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v3.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=adblock
PKG_VERSION:=0.11.0
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0+
PKG_MAINTAINER:=Dirk Brenken <dirk@brenken.org>

include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
	SECTION:=net
	CATEGORY:=Network
	TITLE:=powerful adblock script to block ad/abuse domains
	DEPENDS:=+curl +wget
	PKGARCH:=all
endef

define Package/$(PKG_NAME)/description
powerful adblock script to block ad/abuse domains
When the dns server on your router receives dns requests, we will sort out queries that ask for the [A] resource records of ad servers
and return the local ip address of your router and the internal web server delivers a transparent pixel instead.
The script supports the following domain blacklist sites:
  http://pgl.yoyo.org/adservers
  http://malwaredomains.com
  https://zeustracker.abuse.ch
  https://feodotracker.abuse.ch
  https://palevotracker.abuse.ch
  http://dshield.org
  http://www.shallalist.de
  http://www.spam404.com
  http://winhelp2002.mvps.org

endef

define Package/$(PKG_NAME)/conffiles
/etc/adblock/adblock.conf
/etc/adblock/adblock.whitelist
/etc/adblock/adblock.blacklist
endef

define Build/Prepare
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) ./files/usr/bin/adblock-update.sh $(1)/usr/bin/
	$(INSTALL_DATA) ./files/usr/bin/adblock-helper.sh $(1)/usr/bin/

	$(INSTALL_DIR) $(1)/etc/adblock
	$(INSTALL_CONF) ./files/etc/adblock/adblock.* $(1)/etc/adblock/
	$(INSTALL_CONF) ./files/etc/adblock/README.md $(1)/etc/adblock/

	$(INSTALL_DIR) $(1)/etc/adblock/samples
	$(INSTALL_CONF) ./files/etc/adblock/samples/*.sample $(1)/etc/adblock/samples/

	$(INSTALL_DIR) $(1)/www/adblock
	$(INSTALL_DATA) ./files/www/adblock/* $(1)/www/adblock/
endef

$(eval $(call BuildPackage,$(PKG_NAME)))