From: Yanase Yuki Date: Thu, 15 Jan 2026 07:06:11 +0000 (+0900) Subject: banhostlist: remove package X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=88a5c2cc284d700bab4399aff40f6141e481b12c;p=openwrt-packages.git banhostlist: remove package The domains list which this script uses isn't updated for 5 years. We can use adblock related packages instead of this script, so let's drop this. Signed-off-by: Yanase Yuki --- diff --git a/utils/banhosts/Makefile b/utils/banhosts/Makefile deleted file mode 100644 index 4f822106d..000000000 --- a/utils/banhosts/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# -# Copyright (C) 2015 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=banhostlist -PKG_VERSION:=1 -PKG_RELEASE:=2 - -PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_MAINTAINER:=Matteo Croce -PKG_LICENSE:=GPL-2.0 - -include $(INCLUDE_DIR)/package.mk - -define Package/banhostlist - SECTION:=utils - CATEGORY:=Utilities - TITLE:=List of advertising domains - URL:=http://winhelp2002.mvps.org/ -endef - -define Package/banhostlist/description -List of domains serving advertising and malicious content to easily block them -endef - - -define Build/Compile/Default -endef - -define Package/banhostlist/install - $(INSTALL_DIR) $(1)/etc/hotplug.d/iface - $(INSTALL_BIN) ./files/updatebanhost $(1)/etc/hotplug.d/iface/80-banhosts -endef - -$(eval $(call BuildPackage,banhostlist)) diff --git a/utils/banhosts/files/updatebanhost b/utils/banhosts/files/updatebanhost deleted file mode 100644 index 3930b60ad..000000000 --- a/utils/banhosts/files/updatebanhost +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -file=/tmp/banhost - -gethosts() { - logger -t "banhost[$$]" "Update $file" - wget -qO- http://winhelp2002.mvps.org/hosts.txt |awk 'BEGIN{printf "0.0.0.0"}/^0\.0\.0\.0/{printf " "$2}END{exit(!FNR)}' >$file || exit 1 - echo -n $time >$file.time - exec killall -s HUP dnsmasq -} - -if [ "$ACTION" = ifup -a "$INTERFACE" = wan ]; then - read time