Merge pull request #8030 from jow-/at-elf-depends
authorHannu Nyman <hannu.nyman@iki.fi>
Sat, 26 Jan 2019 08:21:54 +0000 (10:21 +0200)
committerGitHub <noreply@github.com>
Sat, 26 Jan 2019 08:21:54 +0000 (10:21 +0200)
at: change libelf1 dependency to libelf

22 files changed:
libs/ldns/Makefile
libs/ldns/patches/300-openssl-engine.patch [new file with mode: 0644]
libs/libgpg-error/Makefile
libs/libgpg-error/patches/001-cross-compile-fix.patch
multimedia/youtube-dl/Makefile
net/adblock/Makefile
net/adblock/files/adblock.sh
net/aria2/Makefile
net/aria2/patches/010-Platform-Fix-compilation-without-deprecated-OpenSSL-.patch
net/inadyn/Makefile
net/inadyn/patches/010-openssl-deprecated.patch [new file with mode: 0644]
net/knot/Makefile
net/ptunnel-ng/Makefile
net/travelmate/Makefile
net/travelmate/files/travelmate.sh
net/usbip/Makefile
sound/shairport-sync/Makefile
sound/shairport-sync/patches/010-no-cxx.patch [new file with mode: 0644]
utils/avrdude/Makefile
utils/bash/Makefile
utils/bash/patches/100-fix-jobs.patch
utils/bash/patches/900-no_doc.patch

index 291e6912fcbaf2b7aba042d16a3836aa1291e634..86088cda13b1042059ca3917a9a9518067cd69a0 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ldns
 PKG_VERSION:=1.7.0
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.nlnetlabs.nl/downloads/ldns
diff --git a/libs/ldns/patches/300-openssl-engine.patch b/libs/ldns/patches/300-openssl-engine.patch
new file mode 100644 (file)
index 0000000..8f2be23
--- /dev/null
@@ -0,0 +1,23 @@
+--- a/keys.c
++++ b/keys.c
+@@ -20,8 +20,10 @@
+ #include <openssl/bn.h>
+ #include <openssl/rsa.h>
+ #include <openssl/dsa.h>
+-#include <openssl/engine.h>
+ #include <openssl/ui.h>
++#ifndef OPENSSL_NO_ENGINE
++#include <openssl/engine.h>
++#endif
+ #endif /* HAVE_SSL */
+ ldns_lookup_table ldns_signing_algorithms[] = {
+@@ -103,7 +105,7 @@ ldns_key_new_frm_fp(ldns_key **k, FILE *fp)
+       return ldns_key_new_frm_fp_l(k, fp, NULL);
+ }
+-#ifdef HAVE_SSL
++#if defined(HAVE_SSL) && !defined(OPENSSL_NO_ENGINE)
+ ldns_status
+ ldns_key_new_frm_engine(ldns_key **key, ENGINE *e, char *key_id, ldns_algorithm alg)
+ {
index 3180f3bc8ff50ae62e150f191856bb11e47d9892..61db49373c21fb52745a051a6e4d360043553b6a 100644 (file)
@@ -8,12 +8,15 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libgpg-error
-PKG_VERSION:=1.33
+PKG_VERSION:=1.34
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=https://www.gnupg.org/ftp/gcrypt/libgpg-error/
-PKG_HASH:=5d38826656e746c936e7742d9cde072b50baa3c4c49daa168a56813612bf03ff
+PKG_SOURCE_URL:=https://ftp.bit.nl/mirror/gnupg/ \
+               https://ftp.nluug.nl/security/gnupg/ \
+               http://ring.ksc.gr.jp/archives/net/gnupg/libgpg-error/ \
+               https://www.gnupg.org/ftp/gcrypt/libgpg-error/
+PKG_HASH:=0680799dee71b86b2f435efb825391eb040ce2704b057f6bd3dcc47fbc398c81
 
 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
 PKG_LICENSE:=LGPL-2.1+
@@ -30,7 +33,7 @@ define Package/libgpg-error
   SECTION:=libs
   CATEGORY:=Libraries
   TITLE:=GnuPG error handling helper library
-  URL:=http://www.gnupg.org/related_software/libgpg-error/
+  URL:=https://www.gnupg.org/related_software/libgpg-error/
 endef
 
 define Package/libgpg-error/description
@@ -41,12 +44,13 @@ define Package/libgpg-error/description
        future.
 endef
 
-TARGET_CFLAGS += $(FPIC)
-
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
-       --disable-rpath
+       --disable-doc \
+       --disable-languages \
+       --disable-rpath \
+       --disable-tests
 
 define Build/InstallDev
        $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
index d19c7f936d9a7d3e4021e2afcdd515aec32f7569..c7ff30fae387048f912c9ab3d9c4ba7ed5942ce9 100644 (file)
@@ -8,7 +8,7 @@
 +    x86_64-openwrt-linux-gnu|i?86-openwrt-linux-gnu)
 +        host=$(echo $host | sed 's/openwrt/pc/g')
 +        ;;
-+    arm-openwrt-linux-gnu)
++    arm-openwrt-linux-gnu|armeb-openwrt-linux-gnu)
 +        host=arm-unknown-linux-gnueabi
 +        ;;
 +    *)
index cf81211cdfaae4408b42854899826d9c96304ebf..eca56ee04aafeaaf8ae688d2d102c58c0d392751 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=youtube-dl
-PKG_VERSION:=2019.01.23
+PKG_VERSION:=2019.01.24
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/rg3/youtube-dl/tar.gz/$(PKG_VERSION)?
-PKG_HASH:=18142591ff58c6f757e6ba2370a855ad3f3b356a2ba6f66705977fc05ec813f3
+PKG_HASH:=b4916ffc33d6dcac8e8be1656a65b8706cb7f824b7c734fe04588c78f7d09e04
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 
 PKG_LICENSE:=Unlicense
index fb807feaf2828ebb325fa5bad1ff5c8b1eb74ff6..90f88c1a580155582de85ebe181bacaf677a552f 100644 (file)
@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock
-PKG_VERSION:=3.6.3
+PKG_VERSION:=3.6.4
 PKG_RELEASE:=1
 PKG_LICENSE:=GPL-3.0+
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
index 2f36c40bcc544e8e2cf78575c134f0c3ab26f95c..e14993bceb16e723cf42fb2c67647752ebd12992 100755 (executable)
@@ -10,7 +10,7 @@
 #
 LC_ALL=C
 PATH="/usr/sbin:/usr/bin:/sbin:/bin"
-adb_ver="3.6.3"
+adb_ver="3.6.4"
 adb_sysver="unknown"
 adb_enabled=0
 adb_debug=0
@@ -1056,195 +1056,204 @@ f_main()
 #
 f_report()
 {
-local bg_pid total blocked percent rep_clients rep_domains rep_blocked index hold ports cnt=0 search="${1}" count="${2}" filter="${3}" print="${4}"
+       local bg_pid total blocked percent rep_clients rep_domains rep_blocked index hold ports cnt=0 search="${1}" count="${2}" filter="${3}" print="${4}"
 
-       if [ ! -x "${adb_reputil}" ]
+       if [ ${adb_report} -eq 1 ] && [ ! -x "${adb_reputil}" ]
        then
-               f_log "info" "Please install the package 'tcpdump-mini' manually to use the adblock reporting feature!"
-               return 0
-       fi
-
-       bg_pid="$(pgrep -f "^${adb_reputil}.*adb_report\.pcap$" | awk '{ORS=" "; print $1}')"
-       if [ ${adb_report} -eq 0 ] || ([ -n "${bg_pid}" ] && ([ "${adb_action}" = "stop" ] || [ "${adb_action}" = "restart" ]))
+               f_log "info" "Please install the package 'tcpdump-mini' to use the adblock reporting feature!"
+       elif [ ${adb_report} -eq 0 ] && [ "${adb_action}" = "report" ]
        then
-               if [ -n "${bg_pid}" ]
-               then
-                       kill -HUP ${bg_pid}
-                       while $(kill -0 ${bg_pid} 2>/dev/null)
-                       do
-                               sleep 1
-                       done
-                       unset bg_pid
-               fi
+               f_log "info" "Please enable the extra option 'adb_report' to use the adblock reporting feature!"
        fi
 
-       if [ -z "${bg_pid}" ] && [ "${adb_action}" != "report" ] && [ "${adb_action}" != "stop" ]
+       if [ -x "${adb_reputil}" ]
        then
-               for port in ${adb_replisten}
-               do
-                       if [ -z "${ports}" ]
+               bg_pid="$(pgrep -f "^${adb_reputil}.*adb_report\.pcap$" | awk '{ORS=" "; print $1}')"
+               if [ ${adb_report} -eq 0 ] || ([ -n "${bg_pid}" ] && ([ "${adb_action}" = "stop" ] || [ "${adb_action}" = "restart" ]))
+               then
+                       if [ -n "${bg_pid}" ]
                        then
-                               ports="port ${port}"
-                       else
-                               ports="${ports} or port ${port}"
+                               kill -HUP ${bg_pid}
+                               while $(kill -0 ${bg_pid} 2>/dev/null)
+                               do
+                                       sleep 1
+                               done
+                               unset bg_pid
                        fi
-               done
-               ("${adb_reputil}" -nn -s0 -l -i ${adb_repiface} ${ports} -C${adb_repchunksize} -W${adb_repchunkcnt} -w "${adb_repdir}/adb_report.pcap" >/dev/null 2>&1 &)
+               fi
        fi
 
-       if [ "${adb_action}" = "report" ] && [ "${filter}" = "false" ]
+       if [ -x "${adb_reputil}" ] && [ ${adb_report} -eq 1 ]
        then
-               > "${adb_repdir}/adb_report.raw"
-               for file in "${adb_repdir}"/adb_report.pcap*
-               do
-                       (
-                               "${adb_reputil}" -tttt -r $file 2>/dev/null | \
-                                       awk -v cnt=${cnt} '!/\.lan\. /&&/ A[\? ]+|NXDomain/{a=$1;b=substr($2,0,8);c=$4;sub(/\.[0-9]+$/,"",c); \
-                                       d=cnt $7;e=$(NF-1);sub(/[0-9]\/[0-9]\/[0-9]/,"NX",e);sub(/\.$/,"",e);sub(/([0-9]{1,3}\.){3}[0-9]{1,3}/,"OK",e);printf("%s\t%s\t%s\t%s\t%s\n", a,b,c,d,e)}' >> "${adb_repdir}/adb_report.raw"
-                       )&
-                       hold=$(( cnt % adb_maxqueue ))
-                       if [ ${hold} -eq 0 ]
-                       then
-                               wait
-                       fi
-                       cnt=$(( cnt + 1 ))
-               done
-               wait
-
-               if [ -s "${adb_repdir}/adb_report.raw" ]
-               then
-                       awk '{printf("%s\t%s\t%s\t%s\t%s\t%s\n", $4,$5,$1,$2,$3,$4)}' "${adb_repdir}/adb_report.raw" | \
-                               sort -ur | uniq -uf2 | awk '{currA=($6+0);currB=$6;currC=substr($6,length($6),1); \
-                               if(reqA==currB){reqA=0;printf("%s\t%s\n",d,$2)}else if(currC=="+"){reqA=currA;d=$3"\t"$4"\t"$5"\t"$2}}' | sort -ur > "${adb_repdir}/adb_report"
-               fi
-
-               if [ -s "${adb_repdir}/adb_report" ]
+               if [ -z "${bg_pid}" ] && [ "${adb_action}" != "report" ] && [ "${adb_action}" != "stop" ]
                then
-                       total="$(wc -l < ${adb_repdir}/adb_report)"
-                       blocked="$(awk '{if($5=="NX")print $4}' ${adb_repdir}/adb_report | wc -l)"
-                       percent="$(awk -v t=${total} -v b=${blocked} 'BEGIN{printf("%.2f %s\n",b/t*100, "%")}')"
-                       rep_clients="$(awk '{print $3}' ${adb_repdir}/adb_report | sort | uniq -c | sort -r | awk '{ORS=" ";if(NR<=10) printf("%s_%s ",$1,$2)}')"
-                       rep_domains="$(awk '{if($5!="NX")print $4}' ${adb_repdir}/adb_report | sort | uniq -c | sort -r | awk '{ORS=" ";if(NR<=10)printf("%s_%s ",$1,$2)}')"
-                       rep_blocked="$(awk '{if($5=="NX")print $4}' ${adb_repdir}/adb_report | sort | uniq -c | sort -r | awk '{ORS=" ";if(NR<=10)printf("%s_%s ",$1,$2)}')"
-
-                       > "${adb_repdir}/adb_report.json"
-                       json_load_file "${adb_repdir}/adb_report.json" >/dev/null 2>&1
-                       json_init
-                       json_add_object "data"
-                       json_add_string "start_date" "$(awk 'END{printf("%s",$1)}' ${adb_repdir}/adb_report)"
-                       json_add_string "start_time" "$(awk 'END{printf("%s",$2)}' ${adb_repdir}/adb_report)"
-                       json_add_string "end_date" "$(awk 'NR==1{printf("%s",$1)}' ${adb_repdir}/adb_report)"
-                       json_add_string "end_time" "$(awk 'NR==1{printf("%s",$2)}' ${adb_repdir}/adb_report)"
-                       json_add_string "total" "${total}"
-                       json_add_string "blocked" "${blocked}"
-                       json_add_string "percent" "${percent}"
-                       json_close_array
-                       json_add_array "top_clients"
-                       for client in ${rep_clients}
-                       do
-                               json_add_object
-                               json_add_string "count" "${client%_*}"
-                               json_add_string "address" "${client#*_}"
-                               json_close_object
-                       done
-                       json_close_array
-                       json_add_array "top_domains"
-                       for domain in ${rep_domains}
+                       for port in ${adb_replisten}
                        do
-                               json_add_object
-                               json_add_string "count" "${domain%_*}"
-                               json_add_string "address" "${domain#*_}"
-                               json_close_object
-                       done
-                       json_close_array
-                       json_add_array "top_blocked"
-                       for block in ${rep_blocked}
-                       do
-                               json_add_object
-                               json_add_string "count" "${block%_*}"
-                               json_add_string "address" "${block#*_}"
-                               json_close_object
+                               if [ -z "${ports}" ]
+                               then
+                                       ports="port ${port}"
+                               else
+                                       ports="${ports} or port ${port}"
+                               fi
                        done
-                       json_close_object
-                       json_dump > "${adb_repdir}/adb_report.json"
-               fi
-               rm -f "${adb_repdir}/adb_report.raw"
-       fi
-
-       if [ -s "${adb_repdir}/adb_report" ]
-       then
-               search="${search//./\\.}"
-               search="${search//[+*~%\$&\"\' ]/}"
-               > "${adb_repdir}/adb_report.final"
-               awk "BEGIN{i=0}/(${search})/{i++;if(i<=${count}){printf \"%s\t%s\t%s\t%s\t%s\n\",\$1,\$2,\$3,\$4,\$5}}" "${adb_repdir}/adb_report" > "${adb_repdir}/adb_report.final"
-               if [ ! -s "${adb_repdir}/adb_report.final" ]
-               then
-                       printf "%s\t%s\t%s\t%s\t%s\n" "-" "-" "-" "-" "-" > "${adb_repdir}/adb_report.final"
+                       ("${adb_reputil}" -nn -s0 -l -i ${adb_repiface} ${ports} -C${adb_repchunksize} -W${adb_repchunkcnt} -w "${adb_repdir}/adb_report.pcap" >/dev/null 2>&1 &)
+                       bg_pid="$(pgrep -f "^${adb_reputil}.*adb_report\.pcap$" | awk '{ORS=" "; print $1}')"
                fi
-       fi
 
-       if [ "${print}" = "true" ]
-       then
-               if [ -s "${adb_repdir}/adb_report.json" ]
+               if [ "${adb_action}" = "report" ] && [ "${filter}" = "false" ]
                then
-                       printf "%s\n%s\n%s\n" ":::" "::: Adblock DNS-Query Report" ":::"
-                       json_load_file "${adb_repdir}/adb_report.json"
-                       json_select "data"
-                       json_get_keys keylist
-                       for key in ${keylist}
+                       > "${adb_repdir}/adb_report.raw"
+                       for file in "${adb_repdir}"/adb_report.pcap*
                        do
-                               json_get_var value "${key}"
-                               eval "${key}=\"${value}\""
+                               (
+                                       "${adb_reputil}" -tttt -r $file 2>/dev/null | \
+                                               awk -v cnt=${cnt} '!/\.lan\. /&&/ A[\? ]+|NXDomain/{a=$1;b=substr($2,0,8);c=$4;sub(/\.[0-9]+$/,"",c); \
+                                               d=cnt $7;e=$(NF-1);sub(/[0-9]\/[0-9]\/[0-9]/,"NX",e);sub(/\.$/,"",e);sub(/([0-9]{1,3}\.){3}[0-9]{1,3}/,"OK",e);printf("%s\t%s\t%s\t%s\t%s\n", a,b,c,d,e)}' >> "${adb_repdir}/adb_report.raw"
+                               )&
+                               hold=$(( cnt % adb_maxqueue ))
+                               if [ ${hold} -eq 0 ]
+                               then
+                                       wait
+                               fi
+                               cnt=$(( cnt + 1 ))
                        done
-                       printf "  + %s\n  + %s\n" "Start    ::: ${start_date}, ${start_time}" "End      ::: ${end_date}, ${end_time}"
-                       printf "  + %s\n  + %s %s\n" "Total    ::: ${total}" "Blocked  ::: ${blocked}" "(${percent})"
-                       json_select ".."
-                       if json_get_type Status "top_clients" && [ "${Status}" = "array" ]
+                       wait
+
+                       if [ -s "${adb_repdir}/adb_report.raw" ]
                        then
-                               printf "%s\n%s\n%s\n" ":::" "::: Top 10 Clients" ":::"
-                               json_select "top_clients"
-                               index=1
-                               while json_get_type Status ${index} && [ "${Status}" = "object" ]
-                               do
-                                       json_get_values client ${index}
-                                       printf "  + %-9s::: %s\n" ${client}
-                                       index=$((index + 1))
-                               done
+                               awk '{printf("%s\t%s\t%s\t%s\t%s\t%s\n", $4,$5,$1,$2,$3,$4)}' "${adb_repdir}/adb_report.raw" | \
+                                       sort -ur | uniq -uf2 | awk '{currA=($6+0);currB=$6;currC=substr($6,length($6),1); \
+                                       if(reqA==currB){reqA=0;printf("%s\t%s\n",d,$2)}else if(currC=="+"){reqA=currA;d=$3"\t"$4"\t"$5"\t"$2}}' | sort -ur > "${adb_repdir}/adb_report"
                        fi
-                       json_select ".."
-                       if json_get_type Status "top_domains" && [ "${Status}" = "array" ]
+
+                       if [ -s "${adb_repdir}/adb_report" ]
                        then
-                               printf "%s\n%s\n%s\n" ":::" "::: Top 10 Domains" ":::"
-                               json_select "top_domains"
-                               index=1
-                               while json_get_type Status ${index} && [ "${Status}" = "object" ]
+                               total="$(wc -l < ${adb_repdir}/adb_report)"
+                               blocked="$(awk '{if($5=="NX")print $4}' ${adb_repdir}/adb_report | wc -l)"
+                               percent="$(awk -v t=${total} -v b=${blocked} 'BEGIN{printf("%.2f %s\n",b/t*100, "%")}')"
+                               rep_clients="$(awk '{print $3}' ${adb_repdir}/adb_report | sort | uniq -c | sort -r | awk '{ORS=" ";if(NR<=10) printf("%s_%s ",$1,$2)}')"
+                               rep_domains="$(awk '{if($5!="NX")print $4}' ${adb_repdir}/adb_report | sort | uniq -c | sort -r | awk '{ORS=" ";if(NR<=10)printf("%s_%s ",$1,$2)}')"
+                               rep_blocked="$(awk '{if($5=="NX")print $4}' ${adb_repdir}/adb_report | sort | uniq -c | sort -r | awk '{ORS=" ";if(NR<=10)printf("%s_%s ",$1,$2)}')"
+
+                               > "${adb_repdir}/adb_report.json"
+                               json_load_file "${adb_repdir}/adb_report.json" >/dev/null 2>&1
+                               json_init
+                               json_add_object "data"
+                               json_add_string "start_date" "$(awk 'END{printf("%s",$1)}' ${adb_repdir}/adb_report)"
+                               json_add_string "start_time" "$(awk 'END{printf("%s",$2)}' ${adb_repdir}/adb_report)"
+                               json_add_string "end_date" "$(awk 'NR==1{printf("%s",$1)}' ${adb_repdir}/adb_report)"
+                               json_add_string "end_time" "$(awk 'NR==1{printf("%s",$2)}' ${adb_repdir}/adb_report)"
+                               json_add_string "total" "${total}"
+                               json_add_string "blocked" "${blocked}"
+                               json_add_string "percent" "${percent}"
+                               json_close_array
+                               json_add_array "top_clients"
+                               for client in ${rep_clients}
                                do
-                                       json_get_values domain ${index}
-                                       printf "  + %-9s::: %s\n" ${domain}
-                                       index=$((index + 1))
+                                       json_add_object
+                                       json_add_string "count" "${client%_*}"
+                                       json_add_string "address" "${client#*_}"
+                                       json_close_object
                                done
-                       fi
-                       json_select ".."
-                       if json_get_type Status "top_blocked" && [ "${Status}" = "array" ]
-                       then
-                               printf "%s\n%s\n%s\n" ":::" "::: Top 10 Blocked Domains" ":::"
-                               json_select "top_blocked"
-                               index=1
-                               while json_get_type Status ${index} && [ "${Status}" = "object" ]
+                               json_close_array
+                               json_add_array "top_domains"
+                               for domain in ${rep_domains}
                                do
-                                       json_get_values blocked ${index}
-                                       printf "  + %-9s::: %s\n" ${blocked}
-                                       index=$((index + 1))
+                                       json_add_object
+                                       json_add_string "count" "${domain%_*}"
+                                       json_add_string "address" "${domain#*_}"
+                                       json_close_object
                                done
+                               json_close_array
+                               json_add_array "top_blocked"
+                               for block in ${rep_blocked}
+                               do
+                                       json_add_object
+                                       json_add_string "count" "${block%_*}"
+                                       json_add_string "address" "${block#*_}"
+                                       json_close_object
+                               done
+                               json_close_object
+                               json_dump > "${adb_repdir}/adb_report.json"
                        fi
-                       if [ -s "${adb_repdir}/adb_report.final" ]
+                       rm -f "${adb_repdir}/adb_report.raw"
+               fi
+
+               if [ -s "${adb_repdir}/adb_report" ]
+               then
+                       search="${search//./\\.}"
+                       search="${search//[+*~%\$&\"\' ]/}"
+                       > "${adb_repdir}/adb_report.final"
+                       awk "BEGIN{i=0}/(${search})/{i++;if(i<=${count}){printf \"%s\t%s\t%s\t%s\t%s\n\",\$1,\$2,\$3,\$4,\$5}}" "${adb_repdir}/adb_report" > "${adb_repdir}/adb_report.final"
+                       if [ ! -s "${adb_repdir}/adb_report.final" ]
                        then
-                               printf "%s\n%s\n%s\n" ":::" "::: Latest DNS Queries" ":::"
-                               printf "%-15s%-15s%-45s%-50s%s\n" "Date" "Time" "Client" "Domain" "Answer"
-                               awk '{printf "%-15s%-15s%-45s%-50s%s\n",$1,$2,$3,$4,$5}' "${adb_repdir}/adb_report.final"
+                               printf "%s\t%s\t%s\t%s\t%s\n" "-" "-" "-" "-" "-" > "${adb_repdir}/adb_report.final"
+                       fi
+               fi
+
+               if [ "${print}" = "true" ]
+               then
+                       if [ -s "${adb_repdir}/adb_report.json" ]
+                       then
+                               printf "%s\n%s\n%s\n" ":::" "::: Adblock DNS-Query Report" ":::"
+                               json_load_file "${adb_repdir}/adb_report.json"
+                               json_select "data"
+                               json_get_keys keylist
+                               for key in ${keylist}
+                               do
+                                       json_get_var value "${key}"
+                                       eval "${key}=\"${value}\""
+                               done
+                               printf "  + %s\n  + %s\n" "Start    ::: ${start_date}, ${start_time}" "End      ::: ${end_date}, ${end_time}"
+                               printf "  + %s\n  + %s %s\n" "Total    ::: ${total}" "Blocked  ::: ${blocked}" "(${percent})"
+                               json_select ".."
+                               if json_get_type Status "top_clients" && [ "${Status}" = "array" ]
+                               then
+                                       printf "%s\n%s\n%s\n" ":::" "::: Top 10 Clients" ":::"
+                                       json_select "top_clients"
+                                       index=1
+                                       while json_get_type Status ${index} && [ "${Status}" = "object" ]
+                                       do
+                                               json_get_values client ${index}
+                                               printf "  + %-9s::: %s\n" ${client}
+                                               index=$((index + 1))
+                                       done
+                               fi
+                               json_select ".."
+                               if json_get_type Status "top_domains" && [ "${Status}" = "array" ]
+                               then
+                                       printf "%s\n%s\n%s\n" ":::" "::: Top 10 Domains" ":::"
+                                       json_select "top_domains"
+                                       index=1
+                                       while json_get_type Status ${index} && [ "${Status}" = "object" ]
+                                       do
+                                               json_get_values domain ${index}
+                                               printf "  + %-9s::: %s\n" ${domain}
+                                               index=$((index + 1))
+                                       done
+                               fi
+                               json_select ".."
+                               if json_get_type Status "top_blocked" && [ "${Status}" = "array" ]
+                               then
+                                       printf "%s\n%s\n%s\n" ":::" "::: Top 10 Blocked Domains" ":::"
+                                       json_select "top_blocked"
+                                       index=1
+                                       while json_get_type Status ${index} && [ "${Status}" = "object" ]
+                                       do
+                                               json_get_values blocked ${index}
+                                               printf "  + %-9s::: %s\n" ${blocked}
+                                               index=$((index + 1))
+                                       done
+                               fi
+                               if [ -s "${adb_repdir}/adb_report.final" ]
+                               then
+                                       printf "%s\n%s\n%s\n" ":::" "::: Latest DNS Queries" ":::"
+                                       printf "%-15s%-15s%-45s%-50s%s\n" "Date" "Time" "Client" "Domain" "Answer"
+                                       awk '{printf "%-15s%-15s%-45s%-50s%s\n",$1,$2,$3,$4,$5}' "${adb_repdir}/adb_report.final"
+                               fi
+                       else
+                               printf "%s\n%s\n%s\n" ":::" "::: no reporting data available yet" ":::"
                        fi
-               else
-                       printf "%s\n%s\n%s\n" ":::" "::: no reporting data available yet" ":::"
                fi
        fi
        f_log "debug" "f_report ::: action: ${adb_action}, report: ${adb_report}, search: ${1}, count: ${2}, filter: ${3}, print: ${4}, reputil: ${adb_reputil}, repdir: ${adb_repdir}, repiface: ${adb_repiface}, replisten: ${adb_replisten}, repchunksize: ${adb_repchunksize}, repchunkcnt: ${adb_repchunkcnt}, bg_pid: ${bg_pid}"
index d137fa99afb26c7c0cc55ff4fe2dccfa14787ecc..765123faf24ed0e0a1169d9ba449b74bbcee0ba7 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=aria2
 PKG_VERSION:=1.34.0
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/
index 24823c58d5401804d63252814d65fb61c3bd98d8..1458d0722c13c7afe1e623c6e9d1b6ea17b2d566 100644 (file)
@@ -1,30 +1,38 @@
-From 0cfd523a6d0ea16d8b7c94160216838d53c30da6 Mon Sep 17 00:00:00 2001
+From 0e31e37c0f6ad0b3f393f024d1f6d8ce448e4746 Mon Sep 17 00:00:00 2001
 From: Rosen Penev <rosenp@gmail.com>
 Date: Sat, 8 Dec 2018 18:39:50 -0800
 Subject: [PATCH] Platform: Fix compilation without deprecated OpenSSL APIs
 
 ---
- src/Platform.cc | ++
- 1 file changed, 2 insertions(+)
+ src/Platform.cc | 3 +++
+ 1 file changed, 3 insertions(+)
 
 diff --git a/src/Platform.cc b/src/Platform.cc
-index ea73b6c6..0af62d18 100644
+index ea73b6c6..d7882a97 100644
 --- a/src/Platform.cc
 +++ b/src/Platform.cc
-@@ -111,11 +111,13 @@ bool Platform::setUp()
+@@ -44,6 +44,7 @@
+ #ifdef HAVE_OPENSSL
+ #include <openssl/err.h>
+ #include <openssl/ssl.h>
++#include "libssl_compat.h"
+ #endif // HAVE_OPENSSL
+ #ifdef HAVE_LIBGCRYPT
+ #include <gcrypt.h>
+@@ -111,11 +112,13 @@ bool Platform::setUp()
  #endif // ENABLE_NLS
  
  #ifdef HAVE_OPENSSL
-+#if OPENSSL_101_API
++#if !OPENSSL_101_API
    // for SSL initialization
    SSL_load_error_strings();
    SSL_library_init();
    // Need this to "decrypt" p12 files.
    OpenSSL_add_all_algorithms();
-+#endif // OPENSSL_101_API
++#endif // !OPENSSL_101_API
  #endif // HAVE_OPENSSL
  #ifdef HAVE_LIBGCRYPT
    if (!gcry_check_version("1.2.4")) {
 -- 
-2.20.0
+2.17.1
 
index caf294bafc47901d9107d16763ec0827abd92b96..7d085345175687542ac1bd12c1f76062668ce054 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=inadyn
 PKG_VERSION:=2.3.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MAINTAINER:=
 PKG_LICENSE:=GPL-2.0
 PKG_LICENSE_FILES:=COPYING
diff --git a/net/inadyn/patches/010-openssl-deprecated.patch b/net/inadyn/patches/010-openssl-deprecated.patch
new file mode 100644 (file)
index 0000000..933ec44
--- /dev/null
@@ -0,0 +1,24 @@
+--- a/src/openssl.c
++++ b/src/openssl.c
+@@ -25,17 +25,21 @@
+ int ssl_init(void)
+ {
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+       SSL_library_init();
+       SSL_load_error_strings();
+       OpenSSL_add_all_algorithms();
++#endif
+       return 0;
+ }
+ void ssl_exit(void)
+ {
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+       ERR_free_strings();
+       EVP_cleanup();
++#endif
+ }
+ static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx)
index 3f6dd0826d5252d62ba9da935de44e683ab052b3..db5b96887e1b927fedce9b494e39d05c1b35711e 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2014-2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+# Copyright (C) 2014-2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=knot
-PKG_VERSION:=2.7.4
+PKG_VERSION:=2.7.6
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-dns/
-PKG_HASH:=acebe2fbcd8f67b0cb8969376114855316fe831df08321b795147502a5e9fd74
+PKG_HASH:=a1cb1877f04f7c2549c977c2658cfafd07c7e0e924f8e8aa8d4ae4b707f697a2
 
 PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz>
 PKG_LICENSE:=GPL-3.0 LGPL-2.0 0BSD BSD-3-Clause OLDAP-2.8
index be9a7346a3f614e20975e0d0e9e0659e51199de2..da3cc45edec0999659aeca6f3c149088bdd38ab9 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ptunnel-ng
-PKG_VERSION:=1.31
+PKG_VERSION:=1.32
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/lnslbrty/ptunnel-ng/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=8324741f55aae8ccee6800912662a429774378088d81028a5f3f62f3ea9edaf4
+PKG_HASH:=0e51f6fa2fb5b11e9cd5303e450a4e236e4688560ad2a14b0b6e01e9fc2970db
 
 PKG_LICENSE:=BSD-3
 PKG_LICENSE_FILES:=COPYING
index d80ac4fdf73f485de8d8e17ce992a8c8a6847efe..fd4e959394a490e0479601dd71e56e7a37acfb66 100644 (file)
@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=travelmate
-PKG_VERSION:=1.3.3
+PKG_VERSION:=1.3.4
 PKG_RELEASE:=1
 PKG_LICENSE:=GPL-3.0+
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
index 4fa1c64967ffa31ddc095a6f0f643dc6068c7611..fbc1422322a870657c625a823f211c99bca44bb5 100755 (executable)
@@ -10,7 +10,7 @@
 #
 LC_ALL=C
 PATH="/usr/sbin:/usr/bin:/sbin:/bin"
-trm_ver="1.3.3"
+trm_ver="1.3.4"
 trm_sysver="unknown"
 trm_enabled=0
 trm_debug=0
@@ -108,7 +108,7 @@ f_prep()
        local disabled="$(uci_get wireless "${config}" disabled)"
        local eaptype="$(uci_get wireless "${config}" eap_type)"
 
-       if [ -z "${trm_radio}" ] && [ -z "$(printf "%s" "${trm_radiolist}" | grep -Fo " ${radio}")" ]
+       if [ -z "${trm_radio}" ] && [ -z "$(printf "%s" "${trm_radiolist}" | grep -Fo "${radio}")" ]
        then
                trm_radiolist="$(f_trim "${trm_radiolist} ${radio}")"
        elif [ -n "${trm_radio}" ] && [ -z "${trm_radiolist}" ]
@@ -168,7 +168,7 @@ f_check()
                                for radio in ${trm_radiolist}
                                do
                                        result="$(printf "%s" "${dev_status}" | jsonfilter -l1 -e "@.${radio}.up")"
-                                       if [ "${result}" = "true" ] && [ -z "$(printf "%s" "${trm_devlist}" | grep -Fo " ${radio}")" ]
+                                       if [ "${result}" = "true" ] && [ -z "$(printf "%s" "${trm_devlist}" | grep -Fo "${radio}")" ]
                                        then
                                                trm_devlist="$(f_trim "${trm_devlist} ${radio}")"
                                        fi
@@ -300,7 +300,7 @@ f_log()
 f_main()
 {
        local IFS cnt dev config scan scan_list scan_essid scan_bssid scan_quality faulty_list
-       local sta sta_essid sta_bssid sta_radio sta_iface active_essid active_bssid active_radio active_prio
+       local sta sta_essid sta_bssid sta_radio sta_iface active_essid active_bssid active_radio
 
        f_check "initial"
        f_log "debug" "f_main ::: status: ${trm_ifstatus}, proactive: ${trm_proactive}"
@@ -347,12 +347,10 @@ f_main()
                                                f_log "debug" "f_main ::: faulty station '${sta_radio}/${sta_essid}/${sta_bssid:-"-"}' - continue"
                                                continue
                                        fi
-                                       if ([ "${dev}" = "${active_radio}" ] && [ "${sta_essid}" = "${active_essid}" ] && [ "${sta_bssid:-"-"}" = "${active_bssid}" ]) || \
-                                               ([ "${dev}" != "${active_radio}" ] && [ "${active_prio}" = "true" ])
+                                       if [ "${dev}" = "${active_radio}" ] && [ "${sta_essid}" = "${active_essid}" ] && [ "${sta_bssid:-"-"}" = "${active_bssid}" ]
                                        then
-                                               active_prio="true"
-                                               f_log "debug" "f_main ::: active station prioritized '${active_radio}/${active_essid}/${active_bssid:-"-"}' - continue"
-                                               continue 3
+                                               f_log "debug" "f_main ::: active station prioritized '${active_radio}/${active_essid}/${active_bssid:-"-"}' - break"
+                                               break 3
                                        fi
                                        if [ -z "${scan_list}" ]
                                        then
@@ -361,6 +359,11 @@ f_main()
                                                        if(var2==""){var2=$i}else{var2=var2" "$i}}/Quality:/{printf "%i,%s,%s\n",(100/$NF*$(NF-1)),var1,var2}' | \
                                                        sort -rn | awk '{ORS=",";print $0}')")"
                                                f_log "debug" "f_main ::: scan_list: ${scan_list:0:800}"
+                                               if [ -z "${scan_list}" ]
+                                               then
+                                                       f_log "debug" "f_main ::: no scan results on '${dev}' - continue"
+                                                       continue 3
+                                               fi
                                        fi
                                        IFS=","
                                        for scan in ${scan_list}
index 11a242dab25b2e6325b826f51a0f293d5b9b2609..a2046ae00ba57e99a6f5cdc6034cee1d7c8002e0 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=usbip
-PKG_RELEASE:=10
+PKG_RELEASE:=11
 PKG_LICENSE:=GPL-2.0
 
 # Since kernel 2.6.39.1 userspace tools are inside the kernel tree
@@ -81,20 +81,20 @@ endef
 CONFIGURE_VARS+= $(if $(CONFIG_USE_GLIBC),LIBS='-lbsd -lpthread')
 CFLAGS+="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include"
 
-USB_IDS_REV:=0a6be488b4c1485d30c9efee1cc895af5d4a1383
-USB_IDS_FILE:=usb.ids.$(USB_IDS_REV)
+USB_IDS_VER:=0.318
+USB_IDS_FILE:=usb.ids.$(USB_IDS_VER)
 define Download/usb.ids
   FILE:=$(USB_IDS_FILE)
   URL_FILE:=usb.ids
-  URL:=@GITHUB/gentoo/hwids/$(USB_IDS_REV)
-  HASH:=2d0403ffccc0ff7150e32c0bf8e2878816b76ba08d2c3bb1059f33627a3da30f
+  URL:=@GITHUB/vcrhonek/hwdata/v$(USB_IDS_VER)
+  HASH:=84bc5452e4e45c2250e01bc74e03528b2a53c4724b2c4a5feaea76a922f83915
 endef
 
 define Package/usbip/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbip.so.* $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/share/hwdata
-       $(CP) $(DL_DIR)/usb.ids.$(USB_IDS_REV) $(1)/usr/share/hwdata/usb.ids
+       $(CP) $(DL_DIR)/usb.ids.$(USB_IDS_VER) $(1)/usr/share/hwdata/usb.ids
 endef
 
 define Package/usbip-client/install
index f0759645df951f339863899ba7e2aa2c256ed7d3..1621a11fe4ae4554308538bdc023592dfd4e6f1e 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=shairport-sync
 PKG_VERSION:=3.2.2
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/mikebrady/shairport-sync/tar.gz/$(PKG_VERSION)?
@@ -23,14 +23,13 @@ PKG_LICENSE_FILES:=COPYING LICENSES shairport.c
 PKG_BUILD_PARALLEL:=1
 PKG_FIXUP:=autoreconf
 
-include $(INCLUDE_DIR)/uclibc++.mk
 include $(INCLUDE_DIR)/package.mk
 
 define Package/shairport-sync/default
   SECTION:=sound
   CATEGORY:=Sound
   TITLE:=AirPlay compatible audio player
-  DEPENDS:=@AUDIO_SUPPORT $(CXX_DEPENDS) +libpthread +alsa-lib +libconfig +libdaemon +libpopt
+  DEPENDS:=@AUDIO_SUPPORT +libpthread +alsa-lib +libconfig +libdaemon +libpopt
   PROVIDES:=shairport-sync
   URL:=https://github.com/mikebrady/shairport-sync
 endef
diff --git a/sound/shairport-sync/patches/010-no-cxx.patch b/sound/shairport-sync/patches/010-no-cxx.patch
new file mode 100644 (file)
index 0000000..b782389
--- /dev/null
@@ -0,0 +1,35 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -17,10 +17,6 @@ else
+ endif
+ endif
+-if USE_APPLE_ALAC
+-  shairport_sync_SOURCES += apple_alac.cpp
+-endif
+-
+ if USE_CUSTOMPIDDIR
+ AM_CFLAGS+= \
+       -DPIDDIR=\"$(CUSTOM_PID_DIR)\"
+@@ -66,11 +62,6 @@ if USE_PA
+ shairport_sync_SOURCES += audio_pa.c
+ endif
+-if USE_CONVOLUTION
+-shairport_sync_SOURCES += FFTConvolver/AudioFFT.cpp FFTConvolver/FFTConvolver.cpp FFTConvolver/Utilities.cpp FFTConvolver/convolver.cpp
+-AM_CXXFLAGS = -std=c++11
+-endif
+-
+ if USE_DNS_SD
+ shairport_sync_SOURCES += mdns_dns_sd.c
+ endif
+--- a/configure.ac
++++ b/configure.ac
+@@ -18,7 +18,6 @@ with_os=`echo ${with_os} | tr '[[:upper:]]' '[[:lower:]]' `
+ # Checks for programs.
+ AC_PROG_CC
+-AC_PROG_CXX
+ AC_PROG_INSTALL
+ PKG_PROG_PKG_CONFIG([0.9.0])
index c87027f1500ef45ce363694712936ce29a071a3a..bac8fd468ffbc806913726abcfc280edfaf113ac 100644 (file)
@@ -31,7 +31,7 @@ define Package/avrdude
   SUBMENU:=Microcontroller programming
   TITLE:=AVR Downloader/UploaDEr
   URL:=http://www.nongnu.org/avrdude/
-  DEPENDS:=+libncurses +libreadline +libusb-compat +libftdi1 +libelf1
+  DEPENDS:=+libncurses +libreadline +libusb-compat +libftdi1 +libelf
 endef
 
 define Package/avrdude/description
index 039e70cef4a985ec011ec16cec736b1b3f64d048..571290e8996a32028a94fb41e01f48fe272dc602 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bash
-PKG_VERSION:=4.4.18
-PKG_RELEASE:=2
+PKG_VERSION:=5.0
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@GNU/bash
-PKG_HASH:=604d9eec5e4ed5fd2180ee44dd756ddca92e0b6aa4217bbab2b6227380317f23
+PKG_HASH:=b4a80f2ac66170b2913efbfb9f2594f1f76c7b1afd11f799e22035d63077fb4d
 
 PKG_LICENSE:=GPL-3.0+
 PKG_LICENSE_FILES:=COPYING
@@ -55,7 +55,7 @@ endef
 # bash_cv_sys_named_pipes: Required for process substituion
 CONFIGURE_VARS += \
        ac_cv_rl_prefix="$(STAGING_DIR)/usr" \
-       ac_cv_rl_version="7.0" \
+       ac_cv_rl_version="8.0" \
        bash_cv_getcwd_malloc=yes \
        bash_cv_job_control_missing=present \
        bash_cv_dev_fd=whacky \
@@ -72,6 +72,9 @@ CONFIGURE_ARGS+= \
        --without-bash-malloc \
        --bindir=/bin \
        --disable-rpath \
+       --enable-direxpand-default \
+       --enable-job-control \
+       --enable-readline
 
 define Package/bash/postinst
 #!/bin/sh
@@ -87,5 +90,4 @@ define Package/bash/install
        $(LN) bash $(1)/bin/rbash
 endef
 
-
 $(eval $(call BuildPackage,bash))
index 63a2ffa4b19560eb85dd13070e57c4588adf95bc..69ca6c97e5edf053fb86f98d51753ffe57bafafb 100644 (file)
@@ -3,11 +3,9 @@ Fix job control
 Patch was taken from https://git.alpinelinux.org/cgit/aports/tree/main/bash/fix-jobs.patch
 
 See also "Bash 4.4.12-r2 jobs hangs on arm (alpine 3.7)", https://bugs.alpinelinux.org/issues/8447
-diff --git a/jobs.c b/jobs.c
-index cef3c79..bf99266 100644
 --- a/jobs.c
 +++ b/jobs.c
-@@ -4166,10 +4166,8 @@ initialize_job_control (force)
+@@ -4326,10 +4326,8 @@ just_bail:
    if (js.c_childmax < 0)
      js.c_childmax = DEFAULT_CHILD_MAX;
  
@@ -18,7 +16,7 @@ index cef3c79..bf99266 100644
  
    return job_control;
  }
-@@ -4547,10 +4545,8 @@ mark_dead_jobs_as_notified (force)
+@@ -4707,10 +4705,8 @@ mark_dead_jobs_as_notified (force)
    if (js.c_childmax < 0)
      js.c_childmax = DEFAULT_CHILD_MAX;
  
index 3e7be4217d403409db3a7f51dbf8dcaaf3c94eaf..55e96fa0b49f185d185724fbadfb3014cb6d7df3 100644 (file)
@@ -1,6 +1,6 @@
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -741,10 +741,8 @@ reconfig: force
+@@ -791,10 +791,8 @@ loadables:
  #     $(MAKE) -f $(srcdir)/Makefile $(MFLAGS) srcdir=$(srcdir)
  
  doc documentation:  force