2 # Copyright (C) 2015-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v3.
7 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Dirk Brenken
<openwrt@brenken.org
>
15 include $(INCLUDE_DIR
)/package.mk
17 define Package
/$(PKG_NAME
)
20 TITLE
:=Powerful adblock script to block ad
/abuse domains
25 define Package
/$(PKG_NAME
)/description
26 Powerful adblock script to block ad
/abuse domains.
27 Currently the script supports
15 domain blacklist sites plus manual black- and whitelist overrides.
28 Please see README.md in
/etc
/adblock for further information.
32 define Package
/$(PKG_NAME
)/conffiles
34 /etc
/adblock
/adblock.whitelist
35 /etc
/adblock
/adblock.blacklist
41 define Build
/Configure
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
/
52 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
53 $(INSTALL_BIN
) .
/files
/adblock.hotplug
$(1)/etc
/hotplug.d
/iface
/99-adblock
55 $(INSTALL_DIR
) $(1)/etc
/init.d
56 $(INSTALL_BIN
) .
/files
/adblock.init
$(1)/etc
/init.d
/adblock
58 $(INSTALL_DIR
) $(1)/etc
/config
59 $(INSTALL_CONF
) .
/files
/adblock.conf
$(1)/etc
/config
/adblock
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 $(INSTALL_CONF
) .
/files
/README.md
$(1)/etc
/adblock
/
67 $(INSTALL_DIR
) $(1)/www
/adblock
68 $(INSTALL_DATA
) .
/files
/www
/adblock
/* $(1)/www
/adblock
/
71 $(eval
$(call BuildPackage
,$(PKG_NAME
)))