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 Sep 21, 2024
2 parents 7518100 + 446c9dd commit 2aba6b8
Show file tree
Hide file tree
Showing 43 changed files with 327 additions and 158 deletions.
4 changes: 2 additions & 2 deletions libs/tiff/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=tiff
PKG_VERSION:=4.6.0
PKG_VERSION:=4.7.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://download.osgeo.org/libtiff
PKG_HASH:=88b3979e6d5c7e32b50d7ec72fb15af724f6ab2cbf7e10880c360a77e4b5d99a
PKG_HASH:=67160e3457365ab96c5b3286a0903aa6e78bdc44c4bc737d2e486bcecb6ba976

PKG_MAINTAINER:=Jiri Slachta <[email protected]>
PKG_LICENSE:=libtiff
Expand Down
4 changes: 2 additions & 2 deletions net/aardvark-dns/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=aardvark-dns
PKG_VERSION:=1.11.0
PKG_VERSION:=1.12.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/containers/aardvark-dns/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=3e95b363f89a945ee6e63f51051f9eb982bdc469bf8e727b5d7adca676789750
PKG_HASH:=19317d97525c19135b31f76101b9c13bf2b009cecfc11f467b2ab30fb2641867

PKG_MAINTAINER:=Oskari Rauta <[email protected]>
PKG_LICENSE:=Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion net/adblock-fast/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

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

Expand Down
19 changes: 12 additions & 7 deletions net/adblock-fast/files/etc/init.d/adblock-fast
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ is_running() {
fi
}
ipset() { "$ipset" "$@" >/dev/null 2>&1; }
get_ram_available() { ubus call system info | jsonfilter -e '@.memory.available'; }
get_ram_free() { ubus call system info | jsonfilter -e '@.memory.free'; }
get_ram_total() { ubus call system info | jsonfilter -e '@.memory.total'; }
led_on(){ if [ -n "${1}" ] && [ -e "${1}/trigger" ]; then echo 'default-on' > "${1}/trigger" 2>&1; fi; }
Expand Down Expand Up @@ -1067,7 +1068,7 @@ cache() {
;;
create_gzip)
rm -f "$outputGzip" >/dev/null 2>/dev/null
R_TMP="$(mktemp -u -q -t ${packageName}_tmp.XXXXXXXX)"
R_TMP="$(mktemp -u -q -t "${packageName}_tmp.XXXXXXXX")"
if gzip < "$outputFile" > "$R_TMP"; then
if mv "$R_TMP" "$outputGzip"; then
rm -f "$R_TMP"
Expand Down Expand Up @@ -1130,7 +1131,7 @@ process_file_url() {
return 0
fi
while [ -z "$R_TMP" ] || [ -e "$R_TMP" ]; do
R_TMP="$(mktemp -u -q -t ${packageName}_tmp.XXXXXXXX)"
R_TMP="$(mktemp -u -q -t "${packageName}_tmp.XXXXXXXX")"
done
if [ -z "$url" ] || ! $dl_command "$url" "$dl_flag" "$R_TMP" 2>/dev/null || \
[ ! -s "$R_TMP" ]; then
Expand All @@ -1141,7 +1142,7 @@ process_file_url() {
append_newline "$R_TMP"
[ -n "$cfg" ] && new_size="$(get_local_filesize "$R_TMP")"
if [ -n "$new_size" ] && [ "$size" != "$new_size" ]; then
uci_set "$packageName" "$cfg" 'size' "$size"
uci_set "$packageName" "$cfg" 'size' "$new_size"
fi
format="$(detect_file_type "$R_TMP")"
case "$format" in
Expand Down Expand Up @@ -1182,7 +1183,7 @@ download_dnsmasq_file() {
json set status 'statusDownloading'

rm -f "$A_TMP" "$B_TMP" "$SED_TMP" "$outputFile" "$outputCache" "$outputGzip"
if [ "$(get_ram_free)" -lt 32 ]; then
if [ "$(get_ram_available)" -lt 32 ]; then
output 3 'Low free memory, restarting resolver '
if resolver 'quiet_restart'; then
output_okn
Expand Down Expand Up @@ -1211,6 +1212,7 @@ download_dnsmasq_file() {
}

download_lists() {
# shellcheck disable=SC2317
_ram_check() {
_config_calculate_sizes() {
local cfg="$1"
Expand All @@ -1223,7 +1225,7 @@ download_lists() {
[ -n "$size" ] && total_sizes=$((total_sizes+size))
}
local i free_mem total_sizes
free_mem="$(get_ram_free)"
free_mem="$(get_ram_available)"
if [ -z "$free_mem" ]; then
json add warnning 'warningFreeRamCheckFail'
output "${_WARNING_}: $(get_text 'warningFreeRamCheckFail')!\\n"
Expand Down Expand Up @@ -1623,6 +1625,7 @@ adb_check() {
}

adb_check_lists() {
# shellcheck disable=SC2317
_check_list() {
local cfg="$1"
local en size url R_TMP string c
Expand All @@ -1635,7 +1638,7 @@ adb_check_lists() {
output "[DL] $url $__FAIL__\\n"
fi
while [ -z "$R_TMP" ] || [ -e "$R_TMP" ]; do
R_TMP="$(mktemp -u -q -t ${packageName}_tmp.XXXXXXXX)"
R_TMP="$(mktemp -u -q -t "${packageName}_tmp.XXXXXXXX")"
done
if [ -z "$url" ] || ! $dl_command "$url" "$dl_flag" "$R_TMP" 2>/dev/null || \
[ ! -s "$R_TMP" ]; then
Expand Down Expand Up @@ -1671,6 +1674,7 @@ adb_check_lists() {
}

adb_config_update() {
# shellcheck disable=SC2317
_cleanup_missing_urls() {
local cfg="$1" url size
config_get url "$cfg" url
Expand All @@ -1695,7 +1699,7 @@ adb_config_update() {
fi
output 1 'Updating config '
while [ -z "$R_TMP" ] || [ -e "$R_TMP" ]; do
R_TMP="$(mktemp -u -q -t ${packageName}_tmp.XXXXXXXX)"
R_TMP="$(mktemp -u -q -t "${packageName}_tmp.XXXXXXXX")"
done
if ! $dl_command "$config_update_url" "$dl_flag" "$R_TMP" 2>/dev/null || [ ! -s "$R_TMP" ]; then
append_newline "$R_TMP"
Expand Down Expand Up @@ -1726,6 +1730,7 @@ adb_show_blocklist() {
}

adb_sizes() {
# shellcheck disable=SC2317
_config_add_url_size() {
local cfg="$1" url name size
config_get url "$cfg" url
Expand Down
2 changes: 1 addition & 1 deletion net/adblock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=adblock
PKG_VERSION:=4.2.2
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <[email protected]>

Expand Down
8 changes: 5 additions & 3 deletions net/adblock/files/adblock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
export LC_ALL=C
export PATH="/usr/sbin:/usr/bin:/sbin:/bin"

adb_ver="4.2.2-r4"
adb_ver="4.2.2-r5"
adb_enabled="0"
adb_debug="0"
adb_forcedns="0"
Expand Down Expand Up @@ -1330,7 +1330,8 @@ f_report() {
{domain=substr($(NF-1),1,length($(NF-1))-1);type="RQ"}
else
{if($(NF-2)~/NXDomain/||$(NF-1)=="0.0.0.0"){type="NX"}else{type="OK"};domain=""};
printf "%08d\t%s\t%s\t%s\t%-25s\t%s\n",$9,type,$1,substr($2,1,8),$6,domain}' >>"${report_raw}"
if(int($9)>0)
printf "%08d\t%s\t%s\t%s\t%-25s\t%s\n",$9,type,$1,substr($2,1,8),$6,domain}' >>"${report_raw}"
else
"${adb_dumpcmd}" "${resolve}" --immediate-mode -T domain -tttt -r "${file}" 2>/dev/null |
"${adb_awkcmd}" -v cnt="${cnt}" '!/\.lan\. |PTR\? | SOA\? | Flags /&&/ A[A]*\? |NXDomain|0\.0\.0\.0|[0-9]\/[0-9]\/[0-9]/{sub(/\.[0-9]+$/,"",$4);
Expand All @@ -1339,7 +1340,8 @@ f_report() {
{domain=substr($(NF-1),1,length($(NF-1))-1);type="RQ"}
else
{if($(NF-2)~/NXDomain/||$(NF-1)=="0.0.0.0"){type="NX"}else{type="OK"};domain=""};
printf "%08d\t%s\t%s\t%s\t%-25s\t%s\n",$7,type,$1,substr($2,1,8),$4,domain}' >>"${report_raw}"
if(int($7)>0)
printf "%08d\t%s\t%s\t%s\t%-25s\t%s\n",$7,type,$1,substr($2,1,8),$4,domain}' >>"${report_raw}"
fi
) &
hold="$((cnt % adb_cores))"
Expand Down
2 changes: 1 addition & 1 deletion net/banip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=banip
PKG_VERSION:=1.0.0
PKG_RELEASE:=6
PKG_RELEASE:=7
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <[email protected]>

Expand Down
1 change: 0 additions & 1 deletion net/banip/files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ IP address blocking is commonly used to protect against brute force attacks, pre
| doh | public DoH-Provider | | | x | tcp: 80, 443 | [Link](https://github.com/dibdot/DoH-IP-blocklists) |
| drop | spamhaus drop compilation | x | x | | | [Link](https://www.spamhaus.org) |
| dshield | dshield IP blocklist | x | x | | | [Link](https://www.dshield.org) |
| edrop | spamhaus edrop compilation | x | x | | | [Link](https://www.spamhaus.org) |
| etcompromised | ET compromised hosts | x | x | | | [Link](https://iplists.firehol.org/?ipset=et_compromised) |
| feodo | feodo tracker | x | x | | | [Link](https://feodotracker.abuse.ch) |
| firehol1 | firehol level 1 compilation | x | x | | | [Link](https://iplists.firehol.org/?ipset=firehol_level1) |
Expand Down
8 changes: 4 additions & 4 deletions net/banip/files/banip-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ f_getuplink() {
if [ "${update}" = "0" ]; then
"${ban_sedcmd}" -i "/# uplink added on /d" "${ban_allowlist}"
fi
printf "%-42s%s\n" "${ip}" "# uplink added on $(date "+%Y-%m-%d %H:%M:%S")" >>"${ban_allowlist}"
printf "%-45s%s\n" "${ip}" "# uplink added on $(date "+%Y-%m-%d %H:%M:%S")" >>"${ban_allowlist}"
f_log "info" "add uplink '${ip}' to local allowlist"
update="1"
fi
Expand Down Expand Up @@ -1326,9 +1326,9 @@ f_lookup() {
else
[ "${ip##*:}" = "${ip}" ] && elementsv4="${elementsv4} ${ip}," || elementsv6="${elementsv6} ${ip},"
if [ "${feed}" = "allowlist" ] && [ "${ban_autoallowlist}" = "1" ] && ! "${ban_grepcmd}" -q "^${ip}[[:space:]]*#" "${ban_allowlist}"; then
printf "%-42s%s\n" "${ip}" "# '${domain}' added on $(date "+%Y-%m-%d %H:%M:%S")" >>"${ban_allowlist}"
printf "%-45s%s\n" "${ip}" "# '${domain}' added on $(date "+%Y-%m-%d %H:%M:%S")" >>"${ban_allowlist}"
elif [ "${feed}" = "blocklist" ] && [ "${ban_autoblocklist}" = "1" ] && ! "${ban_grepcmd}" -q "^${ip}[[:space:]]*#" "${ban_blocklist}"; then
printf "%-42s%s\n" "${ip}" "# '${domain}' added on $(date "+%Y-%m-%d %H:%M:%S")" >>"${ban_blocklist}"
printf "%-45s%s\n" "${ip}" "# '${domain}' added on $(date "+%Y-%m-%d %H:%M:%S")" >>"${ban_blocklist}"
fi
cnt_ip="$((cnt_ip + 1))"
fi
Expand Down Expand Up @@ -1714,7 +1714,7 @@ f_monitor() {
fi
fi
if [ -z "${ban_nftexpiry}" ] && [ "${ban_autoblocklist}" = "1" ] && ! "${ban_grepcmd}" -q "^${ip}" "${ban_blocklist}"; then
printf "%-42s%s\n" "${ip}" "# added on $(date "+%Y-%m-%d %H:%M:%S")" >>"${ban_blocklist}"
printf "%-45s%s\n" "${ip}" "# added on $(date "+%Y-%m-%d %H:%M:%S")" >>"${ban_blocklist}"
f_log "info" "add IP '${ip}' to local blocklist"
fi
fi
Expand Down
4 changes: 2 additions & 2 deletions net/crowdsec-firewall-bouncer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=crowdsec-firewall-bouncer
PKG_VERSION:=0.0.29
PKG_VERSION:=0.0.30
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/crowdsecurity/cs-firewall-bouncer/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=d3b1b8d43fd063629c3875c6b17fa853e548ae43b0db8e770c98228872931a70
PKG_HASH:=1acd787692acd692ce8f9ce27ea9add8c3941b266e16f449b20a97c161e6879e

PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
Expand Down
2 changes: 1 addition & 1 deletion net/dnsproxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=dnsproxy
PKG_VERSION:=0.73.2
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/AdguardTeam/dnsproxy/tar.gz/v$(PKG_VERSION)?
Expand Down
3 changes: 1 addition & 2 deletions net/dnsproxy/files/dnsproxy.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ config dnsproxy 'global'
list listen_addr '::1'
list listen_port '5353'
option log_file ''
option all_servers '0'
option fastest_addr '0'
option http3 '0'
option insecure '0'
option ipv6_disabled '0'
Expand All @@ -17,6 +15,7 @@ config dnsproxy 'global'
option rate_limit ''
option refuse_any '0'
option udp_buf_size ''
option upstream_mode ''
option verbose '0'

config dnsproxy 'bogus_nxdomain'
Expand Down
13 changes: 12 additions & 1 deletion net/dnsproxy/files/dnsproxy.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@

[ -s "/etc/config/dnsproxy" ] || exit 0

#Migrate options 'listen_addr' 'listen_port' to list type
# Migrate options 'listen_addr' 'listen_port' to list type
sed -i -e "s,option listen_addr,list listen_addr,g" \
-e "s,option listen_port,list listen_port,g" "/etc/config/dnsproxy"

# Migrate 'all_servers' and 'fastest_addr' to 'upstream_mode'
if [ "$(uci -q get "dnsproxy.global.all_servers")" = "1" ]; then
uci -q set "dnsproxy.global.upstream_mode"="parallel"
elif [ "$(uci -q get "dnsproxy.global.fastest_addr")" = "1" ]; then
uci -q set "dnsproxy.global.upstream_mode"="fastest_addr"
fi
uci -q delete "dnsproxy.global.all_servers"
uci -q delete "dnsproxy.global.fastest_addr"
uci -q commit "dnsproxy"

exit 0
5 changes: 2 additions & 3 deletions net/dnsproxy/files/dnsproxy.init
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ append_param_bool() {
}

load_config_arg() {
append_param_bool "$1" "all_servers"
append_param_bool "$1" "fastest_addr"
append_param_bool "$1" "http3"
append_param_bool "$1" "insecure"
append_param_bool "$1" "ipv6_disabled"
Expand Down Expand Up @@ -82,10 +80,11 @@ load_config_list() {

load_config_param() {
append_param_arg "global" "log_file" "--output"
append_param_arg "global" "timeout" "--timeout"
append_param_arg "global" "max_go_routines" "--max-go-routines"
append_param_arg "global" "rate_limit" "--ratelimit"
append_param_arg "global" "timeout" "--timeout"
append_param_arg "global" "udp_buf_size" "--udp-buf-size"
append_param_arg "global" "upstream_mode" "--upstream-mode"

append_param_arg "hosts" "enabled" "--hosts-file-enabled" "0"

Expand Down
4 changes: 2 additions & 2 deletions net/haproxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=haproxy
PKG_VERSION:=3.0.4
PKG_VERSION:=3.0.5
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.haproxy.org/download/3.0/src
PKG_HASH:=aabfd98ada721bbfb68f7805586ced0373fb4c8d73e18faa94055a16c2096936
PKG_HASH:=ae38221e85aeba038a725efbef5bfe5e76671ba7959e5eb74c39fd079e5d002e

PKG_MAINTAINER:=Thomas Heil <[email protected]>, \
Christian Lachner <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion net/haproxy/get-latest-patches.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

CLONEURL=https://git.haproxy.org/git/haproxy-3.0.git
BASE_TAG=v3.0.4
BASE_TAG=v3.0.5
TMP_REPODIR=tmprepo
PATCHESDIR=patches

Expand Down
13 changes: 7 additions & 6 deletions net/linuxptp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=linuxptp
PKG_VERSION:=4.1
PKG_RELEASE:=2
PKG_VERSION:=4.4
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)/v$(PKG_VERSION)
PKG_HASH:=e1743d44f8208897e30895da3579e670ff919b914feb4b5a949f3e421ddde535
PKG_SOURCE_URL:=https://downloads.nwtime.org/linuxptp/
PKG_HASH:=61757bc0a58d789b8fcbdddf56c88a0230597184a70dcb2ac05b4c6b619f7d5c

PKG_MAINTAINER:=Wojciech Dubowik <[email protected]>
PKG_LICENSE:=GPL-2.0-only
Expand All @@ -28,7 +28,7 @@ define Package/linuxptp
CATEGORY:=Network
SUBMENU:=Time Synchronization
TITLE:=Linux Precision Time Protocol (PTP) daemon
URL:=http://linuxptp.sourceforge.net/
URL:=https://linuxptp.nwtime.org/
endef

define Package/linuxptp/description
Expand All @@ -42,7 +42,8 @@ EXTRA_CFLAGS += -DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC

MAKE_VARS += \
EXTRA_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CFLAGS)" \
KBUILD_OUTPUT="$(LINUX_DIR)"
KBUILD_OUTPUT="$(LINUX_DIR)" \
NO_AUTODETECT_SAD_MAC_LIB="y"

define Package/linuxptp/install
$(INSTALL_DIR) $(1)/usr/sbin
Expand Down
4 changes: 2 additions & 2 deletions net/linuxptp/patches/001-fix_kbuild_output.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- a/incdefs.sh
+++ b/incdefs.sh
@@ -62,7 +62,7 @@ user_flags()
@@ -152,7 +152,7 @@ user_flags()
kernel_flags()
{
prefix=""
- tstamp=/usr/include/linux/net_tstamp.h
+ tstamp=/include/uapi/linux/net_tstamp.h
ptp_clock=/usr/include/linux/ptp_clock.h
if_team=/usr/include/linux/if_team.h

if [ "x$KBUILD_OUTPUT" != "x" ]; then
Loading

0 comments on commit 2aba6b8

Please sign in to comment.