2015-10-28 07:02:23 +08:00
|
|
|
#
|
2016-01-24 05:54:01 +08:00
|
|
|
# Copyright (C) 2015-2016 OpenWrt.org
|
2015-10-28 07:02:23 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=adblock
|
2016-02-15 19:25:21 +08:00
|
|
|
PKG_VERSION:=0.70.0
|
2015-10-28 07:02:23 +08:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_LICENSE:=GPL-3.0+
|
2016-01-24 05:54:01 +08:00
|
|
|
PKG_MAINTAINER:=Dirk Brenken <openwrt@brenken.org>
|
2015-10-28 07:02:23 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2015-11-29 23:44:24 +08:00
|
|
|
TITLE:=Powerful adblock script to block ad/abuse domains
|
2016-01-24 05:54:01 +08:00
|
|
|
DEPENDS:=+wget
|
2015-10-28 07:02:23 +08:00
|
|
|
PKGARCH:=all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/description
|
2016-02-15 19:25:21 +08:00
|
|
|
Powerful adblock script to block ad/abuse domains.
|
|
|
|
Currently the script supports 15 domain blacklist sites plus manual black- and whitelist overrides.
|
2015-12-17 18:49:31 +08:00
|
|
|
Please see README.md in /etc/adblock for further information.
|
2015-11-25 05:29:05 +08:00
|
|
|
|
2015-10-28 07:02:23 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(PKG_NAME)/conffiles
|
2015-11-12 02:36:34 +08:00
|
|
|
/etc/config/adblock
|
2015-10-28 07:02:23 +08:00
|
|
|
/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
|
2015-11-12 02:36:34 +08:00
|
|
|
$(INSTALL_BIN) ./files/adblock-update.sh $(1)/usr/bin/
|
|
|
|
$(INSTALL_DATA) ./files/adblock-helper.sh $(1)/usr/bin/
|
|
|
|
|
2016-02-15 19:25:21 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/adblock.init $(1)/etc/init.d/adblock
|
|
|
|
|
2015-11-12 02:36:34 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
|
2015-10-28 07:02:23 +08:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/adblock
|
2016-02-15 19:25:21 +08:00
|
|
|
$(INSTALL_CONF) ./files/adblock.conf $(1)/etc/adblock/adblock.conf.default
|
2015-11-12 02:36:34 +08:00
|
|
|
$(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock/
|
|
|
|
$(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock/
|
|
|
|
$(INSTALL_CONF) ./files/README.md $(1)/etc/adblock/
|
2015-10-28 07:02:23 +08:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/www/adblock
|
|
|
|
$(INSTALL_DATA) ./files/www/adblock/* $(1)/www/adblock/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|