Skip to content

Commit

Permalink
Merge Official Source
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Feb 2, 2025
2 parents b981b4e + 900e71b commit a0e048d
Show file tree
Hide file tree
Showing 69 changed files with 1,205 additions and 2,668 deletions.
6 changes: 3 additions & 3 deletions lang/php8-pecl-dio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ include $(TOPDIR)/rules.mk
PECL_NAME:=dio
PECL_LONGNAME:=Direct I/O functions

PKG_VERSION:=0.2.0
PKG_RELEASE:=2
PKG_HASH:=062777e948dece374c2d7d9e92106c87d18c11128d2179b50dedb43175c4bd6e
PKG_VERSION:=0.3.0
PKG_RELEASE:=1
PKG_HASH:=632a8b5a26b8463b7114f361e48a19aaa016e8a453a9d04877a94d96b59dcc87

PKG_NAME:=php8-pecl-$(PECL_NAME)
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
Expand Down
4 changes: 2 additions & 2 deletions lang/php8-pecl-http/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ include $(TOPDIR)/rules.mk
PECL_NAME:=pecl_http
PECL_LONGNAME:=Extended HTTP Support

PKG_VERSION:=4.2.4
PKG_VERSION:=4.2.6
PKG_RELEASE:=1
PKG_HASH:=fb1e10c2e5edfb011ff8dc2e473cdbd2bbe0127d1279dfce4d98570555ac6ded
PKG_HASH:=cd33230050b3f7c5ddb6f4383ce2a81f0bcdb934432029eec72ebf0f942b876d

PKG_NAME:=php8-pecl-http
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
Expand Down
4 changes: 2 additions & 2 deletions lang/php8-pecl-krb5/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ include $(TOPDIR)/rules.mk
PECL_NAME:=krb5
PECL_LONGNAME:=Bindings for the Kerberos library

PKG_VERSION:=1.1.5
PKG_VERSION:=1.2.2
PKG_RELEASE:=1
PKG_HASH:=2798e57ad231aa3467f09460e3e69169e04c88bd82972d8e86a6641e4ddc9d3d
PKG_HASH:=0219c6654baa50a863b1552ebc14a7f3d76a0671e595051074ae59571d7b401c

PKG_NAME:=php8-pecl-krb5
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
Expand Down
4 changes: 2 additions & 2 deletions lang/php8-pecl-redis/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ include $(TOPDIR)/rules.mk
PECL_NAME:=redis
PECL_LONGNAME:=PHP extension for interfacing with Redis

PKG_VERSION:=6.0.2
PKG_VERSION:=6.1.0
PKG_RELEASE:=1
PKG_HASH:=01aeccb0e14f897fe56f0509be6e6991ff0ad459f9d34e95e4556d02699b9a03
PKG_HASH:=f10405f639fe415e9ed4ec99538e72c90694d8dbd62868edcfcd6a453466b48c

PKG_NAME:=php8-pecl-redis
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
Expand Down
4 changes: 2 additions & 2 deletions lang/php8-pecl-xdebug/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ include $(TOPDIR)/rules.mk
PECL_NAME:=xdebug
PECL_LONGNAME:=Xdebug extension

PKG_VERSION:=3.3.1
PKG_VERSION:=3.4.1
PKG_RELEASE:=1
PKG_HASH:=4eb4ee270bbcc5f14195c38f6ee58580e007cf4886ce32e11430318ab5bc2315
PKG_HASH:=4d96bcded78dbd271fb344c119171b625a8597cd67fc6899ec5e019549f1bb87

PKG_NAME:=php8-pecl-xdebug
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
Expand Down
4 changes: 2 additions & 2 deletions libs/libdaq3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=libdaq3
PKG_VERSION:=3.0.15
PKG_VERSION:=3.0.18
PKG_RELEASE:=1

PKG_MAINTAINER:=W. Michael Petullo <[email protected]>
Expand All @@ -18,7 +18,7 @@ PKG_LICENSE_FILES:=COPYING LICENSE

PKG_SOURCE:=libdaq-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/snort3/libdaq/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=174c639d59f7bda84d71bda50257febbb2646138aa7bbf948bb4d4a8be60f2d8
PKG_HASH:=301db00d33ccd7be546ffb40cd9f4fc41031a5d67196b48bd8b76ae36e10f078
PKG_BUILD_DIR:=$(BUILD_DIR)/libdaq-$(PKG_VERSION)

PKG_FIXUP:=autoreconf
Expand Down
4 changes: 2 additions & 2 deletions libs/libfmt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=libfmt
PKG_VERSION:=11.1.1
PKG_VERSION:=11.1.2
PKG_RELEASE:=1

PKG_SOURCE_NAME:=fmt
PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/fmtlib/$(PKG_SOURCE_NAME)/tar.gz/$(PKG_VERSION)?
PKG_HASH:=482eed9efbc98388dbaee5cb5f368be5eca4893456bb358c18b7ff71f835ae43
PKG_HASH:=d8773cf062cc806d4dd4df658111f15ba7a2c9c65db5084d2491696828b1eb97
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_NAME)-$(PKG_VERSION)

PKG_MAINTAINER:=Othmar Truniger <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions libs/libyang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=libyang
PKG_VERSION:=2.1.80
PKG_VERSION:=2.1.128
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/CESNET/libyang/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=fc4744839b64628939d291e5c4f3841f2a9aef38a465682703794341687a51c4
PKG_HASH:=19a5fe2742ccd68cc90bd7b28736d518ebea4241e798fa49a01b5e6f8a79928e

PKG_MAINTAINER:=Jakov Smolic <[email protected]>
PKG_LICENSE:=BSD-3-Clause
Expand Down
6 changes: 3 additions & 3 deletions net/adblock-fast/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright 2023-2024 MOSSDeF, Stan Grishin ([email protected]).
# Copyright 2023-2025 MOSSDeF, Stan Grishin ([email protected]).
# TLD optimization written by Dirk Brenken ([email protected]).
# This is free software, licensed under AGPL-3.0-or-later.

include $(TOPDIR)/rules.mk

PKG_NAME:=adblock-fast
PKG_VERSION:=1.1.2
PKG_RELEASE:=20
PKG_VERSION:=1.1.3
PKG_RELEASE:=1
PKG_MAINTAINER:=Stan Grishin <[email protected]>
PKG_LICENSE:=AGPL-3.0-or-later

Expand Down
7 changes: 7 additions & 0 deletions net/adblock-fast/files/etc/config/adblock-fast
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ config file_url
option action 'block'
option enabled '0'

config file_url
option name 'CERT Polska - Dangerous Websites'
option url 'https://hole.cert.pl/domains/v2/domains.txt'
option size '731479'
option action 'block'
option enabled '0'

config file_url
option name 'Kboghdady - YouTube Ads DNS'
option url 'https://cdn.jsdelivr.net/gh/kboghdady/youTube_ads_4_pi-hole/black.list'
Expand Down
46 changes: 26 additions & 20 deletions net/adblock-fast/files/etc/init.d/adblock-fast
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh /etc/rc.common
# Copyright 2023 MOSSDeF, Stan Grishin ([email protected])
# Copyright 2023-2025 MOSSDeF, Stan Grishin ([email protected])
# shellcheck disable=SC3043

# shellcheck disable=SC2034
Expand Down Expand Up @@ -124,6 +124,7 @@ load_environment_flag=
allowed_url=
blocked_url=
fw4_restart_flag=
adbf_boot_flag=

# shellcheck disable=SC1091
. /lib/functions.sh
Expand Down Expand Up @@ -1214,7 +1215,7 @@ process_file_url() {
local type="$1" file="$2"
case "$type" in
hosts)
sed -i '/# Title: StevenBlack/,/# Start StevenBlack/d' "$file"
sed -i '/# Title: StevenBlack/,/# Custom host records are listed here/d' "$file"
# sed -i -E '/^(.*)[\t ](local|localhost|localhost.localdomain)$/d;/^255.255.255.255[\t ]broadcasthost$/d;/^0.0.0.0[\t ]0.0.0.0$/d' "$file"
# sed -i -E '/^(.*)[\t ](ip6-localhost|ip6-loopback|ip6-localnet|ip6-mcastprefix|ip6-allnodes|ip6-allrouters|ip6-allhosts)/d' "$file"
;;
Expand Down Expand Up @@ -1960,6 +1961,7 @@ adb_start() {
local action status error message stats p iface
local param="$1" validation_result="$3"

[ -n "$adbf_boot_flag" ] && return 0
load_environment "$validation_result" "$param" || return 1

status="$(json get 'status')"
Expand Down Expand Up @@ -2256,13 +2258,9 @@ adb_pause() {

allow() { load_validate_config 'config' adb_allow "'$*'"; }
boot() {
local procd_boot_delay
ubus -t 30 wait_for network.interface 2>/dev/null
config_load "$packageName"
config_get procd_boot_delay 'config' 'procd_boot_delay' '0'
# shellcheck disable=SC2154
{ is_integer "$procd_boot_delay" && sleep "$procd_boot_delay"; \
rc_procd start_service 'on_boot' && service_started 'on_boot'; } &
adbf_boot_flag=1
rc_procd start_service 'on_boot' && service_started 'on_boot'
}
check() { load_validate_config 'config' adb_check "'$*'"; }
check_lists() { load_validate_config 'config' adb_check_lists "'$*'"; }
Expand Down Expand Up @@ -2295,22 +2293,30 @@ reload_service() { rc_procd start_service 'restart'; }
restart_service() { rc_procd start_service 'restart'; }
service_started() { is_fw4_restart_needed && procd_set_config_changed firewall; }
service_stopped() { is_fw4_restart_needed && procd_set_config_changed firewall; }
# shellcheck disable=SC2015
service_triggers() {
local wan wan6 i
local procd_trigger_wan6
config_load "$packageName"
config_get_bool procd_trigger_wan6 'config' 'procd_trigger_wan6' '0'
network_flush_cache
network_find_wan wan
wan="${wan:-wan}"
if [ "$procd_trigger_wan6" -ne '0' ]; then
network_find_wan6 wan6
wan6="${wan6:-wan6}"
if [ -n "$adbf_boot_flag" ]; then
output "Setting trigger (on_boot) "
procd_add_raw_trigger "interface.*.up" 5000 "/etc/init.d/${packageName}" start && output_okn || output_failn
else
config_load "$packageName"
config_get_bool procd_trigger_wan6 'config' 'procd_trigger_wan6' '0'
network_flush_cache
network_find_wan wan
wan="${wan:-wan}"
if [ "$procd_trigger_wan6" -ne '0' ]; then
network_find_wan6 wan6
wan6="${wan6:-wan6}"
fi
output "Setting trigger${wan6:+s} for $wan ${wan6:+$wan6 }"
for i in "$wan" "$wan6"; do
procd_add_interface_trigger "interface.*" "$i" "/etc/init.d/${packageName}" start && output_ok || output_fail
done
output '\n'
procd_add_config_trigger "config.change" "$packageName" "/etc/init.d/${packageName}" reload
fi
for i in "$wan" "$wan6"; do
[ -n "$i" ] && procd_add_interface_trigger "interface.*" "$i" "/etc/init.d/${packageName}" start
done
procd_add_config_trigger "config.change" "$packageName" "/etc/init.d/${packageName}" reload
}
sizes() { load_validate_config 'config' adb_sizes "''"; }
start_service() {
Expand Down
4 changes: 2 additions & 2 deletions net/adblock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=adblock
PKG_VERSION:=4.2.3
PKG_RELEASE:=3
PKG_VERSION:=4.2.4
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <[email protected]>

Expand Down
7 changes: 5 additions & 2 deletions net/adblock/files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ A lot of people already use adblocker plugins within their desktop browsers, but
| reg_it | | S | reg_italy | [Link](https://easylist.to) |
| reg_jp | | S | reg_japan | [Link](https://github.com/k2jp/abp-japanese-filters) |
| reg_kr | | S | reg_korea | [Link](https://github.com/List-KR/List-KR) |
| reg_nl | | S | reg_lithuania | [Link](https://easylist.to) |
| reg_lt | | S | reg_lithuania | [Link](https://easylist.to) |
| reg_nl | | S | reg_netherlands | [Link](https://easylist.to) |
| reg_pl | | M | reg_poland | [Link](https://kadantiscam.netlify.com) |
| reg_ro | | S | reg_romania | [Link](https://easylist.to) |
Expand All @@ -75,7 +75,7 @@ A lot of people already use adblocker plugins within their desktop browsers, but
• <b>VAR</b> (50k-900k) variable size depending on the selection.
* Zero-conf like automatic installation & setup, usually no manual changes needed
* Simple but yet powerful adblock engine: adblock does not use error prone external iptables rulesets, http pixel server instances and things like that
* Supports five different DNS backend formats: dnsmasq, unbound, named (bind), kresd or raw (e.g. used by dnscrypt-proxy)
* Supports six different DNS backend formats: dnsmasq, unbound, named (bind), kresd, smartdns or raw (e.g. used by dnscrypt-proxy)
* Supports four different SSL-enabled download utilities: uclient-fetch, wget, curl or aria2c
* Supports SafeSearch for google, bing, duckduckgo, yandex, youtube and pixabay
* Supports RPZ-trigger 'RPZ-CLIENT-IP' to always allow/deny certain DNS clients based on their IP address (currently only supported by bind dns backend)
Expand Down Expand Up @@ -221,6 +221,9 @@ and at the end of the file add:
Adblock deposits the final blocklist 'adb_list.overall' in '/etc/kresd', no further configuration needed.
<b>Please note:</b> The knot-resolver (kresd) is only available on Turris devices and does not support the SafeSearch functionality yet.

**Change the DNS backend to 'smartdns':**
No further configuration is needed, adblock deposits the final blocklist 'adb_list.overall' in '/tmp/smartdns' by default.

**Use restrictive jail modes:**
You can enable a restrictive 'adb_list.jail' to block access to all domains except those listed in the whitelist file. Usually this list will be generated as an additional list for guest or kidsafe configurations (for a separate dns server instance). If the jail directory points to your primary dns directory, adblock enables the restrictive jail mode automatically (jail mode only).

Expand Down
Loading

0 comments on commit a0e048d

Please sign in to comment.