mirror of
https://github.com/novatiq/packages.git
synced 2026-07-07 04:29:33 +01:00
afe6be45e3
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> Original commit messages: adblock: update 2.3.2 * optimize memory consumption & enable overall sort only on devices with > 64MB RAM, this prevents sort related kernel dumps (cherry picked from commit8c5b9a0802) adblock: release 2.4.0 * add tld compression, this new "top level domain compression" removes up to 40 thousand needless host entries from the block lists and lowers the memory footprint for the dns backends by 8-10 MByte * optimize restart behavior in case of an error * cosmetics (cherry picked from commited470f0dcc) adblock: release 2.4.0 (release 2) * add missing sort step if tld compression was disabled (cherry picked from commitb3b9972eac)
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
#
|
|
# Copyright (c) 2015-2017 Dirk Brenken (dev@brenken.org)
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=adblock
|
|
PKG_VERSION:=2.4.0
|
|
PKG_RELEASE:=2
|
|
PKG_LICENSE:=GPL-3.0+
|
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=Powerful adblock script to block ad/abuse domains
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
Powerful adblock script to block ad/abuse domains via dnsmasq or unbound dns backend.
|
|
The script supports many domain blacklist sites plus manual black- and whitelist overrides.
|
|
Please see https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md for further information.
|
|
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/conffiles
|
|
/etc/config/adblock
|
|
/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/adblock.sh $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/adblock.init $(1)/etc/init.d/adblock
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
|
|
|
|
$(INSTALL_DIR) $(1)/etc/adblock
|
|
$(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock/
|
|
$(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|