adblock: update 1.2.7
[feed/packages.git] / net / adblock / Makefile
1 #
2 # Copyright (C) 2015-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v3.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=adblock
10 PKG_VERSION:=1.2.7
11 PKG_RELEASE:=1
12 PKG_LICENSE:=GPL-3.0+
13 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/$(PKG_NAME)
18 SECTION:=net
19 CATEGORY:=Network
20 TITLE:=Powerful adblock script to block ad/abuse domains
21 DEPENDS:=+wget
22 PKGARCH:=all
23 endef
24
25 define Package/$(PKG_NAME)/description
26 Powerful adblock script to block ad/abuse domains.
27 Currently the script supports 19 domain blacklist sites plus manual black- and whitelist overrides.
28 Please see https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md for further information.
29
30 endef
31
32 define Package/$(PKG_NAME)/conffiles
33 /etc/config/adblock
34 /etc/adblock/adblock.whitelist
35 /etc/adblock/adblock.blacklist
36 endef
37
38 define Build/Prepare
39 endef
40
41 define Build/Configure
42 endef
43
44 define Build/Compile
45 endef
46
47 define Package/$(PKG_NAME)/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) ./files/adblock-update.sh $(1)/usr/bin/
50 $(INSTALL_DATA) ./files/adblock-helper.sh $(1)/usr/bin/
51
52 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
53 $(INSTALL_BIN) ./files/adblock.hotplug $(1)/etc/hotplug.d/iface/99-adblock
54
55 $(INSTALL_DIR) $(1)/etc/init.d
56 $(INSTALL_BIN) ./files/adblock.init $(1)/etc/init.d/adblock
57
58 $(INSTALL_DIR) $(1)/etc/config
59 $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
60
61 $(INSTALL_DIR) $(1)/etc/adblock
62 $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/adblock/adblock.conf.default
63 $(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock/
64 $(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock/
65
66 $(INSTALL_DIR) $(1)/www/adblock
67 $(INSTALL_DATA) ./files/www/adblock/* $(1)/www/adblock/
68 endef
69
70 $(eval $(call BuildPackage,$(PKG_NAME)))