• R/O
  • HTTP
  • SSH
  • HTTPS

packages: Commit

Community maintained packages for ImmortalWrt.


Commit MetaInfo

Révisiond1b4ed56de4cf0eed72a5b4bb5cf20df3829c139 (tree)
l'heure2022-05-25 22:28:14
AuteurRui Salvaterra <rsalvaterra@gmai...>
CommiterTianling Shen

Message de Log

openconnect: drop the dependency on resolveip

We have nslookup and awk, let's use them.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
(cherry picked from commit 131ec7b3bd6895aa3f86f57169dd23c15f174fe2)

Change Summary

Modification

--- a/net/openconnect/Makefile
+++ b/net/openconnect/Makefile
@@ -35,7 +35,7 @@ endef
3535 define Package/openconnect
3636 SECTION:=net
3737 CATEGORY:=Network
38- DEPENDS:=+libxml2 +kmod-tun +resolveip +vpnc-scripts +OPENCONNECT_OPENSSL:libopenssl +OPENCONNECT_OPENSSL:p11-kit +OPENCONNECT_OPENSSL:libp11 +OPENCONNECT_GNUTLS:libgnutls +OPENCONNECT_GNUTLS:libtasn1 +OPENCONNECT_STOKEN:libstoken $(ICONV_DEPENDS) $(INTL_DEPENDS)
38+ DEPENDS:=+libxml2 +kmod-tun +vpnc-scripts +OPENCONNECT_OPENSSL:libopenssl +OPENCONNECT_OPENSSL:p11-kit +OPENCONNECT_OPENSSL:libp11 +OPENCONNECT_GNUTLS:libgnutls +OPENCONNECT_GNUTLS:libtasn1 +OPENCONNECT_STOKEN:libstoken $(ICONV_DEPENDS) $(INTL_DEPENDS)
3939 TITLE:=OpenConnect VPN client (Cisco AnyConnect and Juniper/Pulse compatible)
4040 MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
4141 URL:=https://www.infradead.org/openconnect/
--- a/net/openconnect/files/openconnect.sh
+++ b/net/openconnect/files/openconnect.sh
@@ -68,7 +68,7 @@ proto_openconnect_setup() {
6868 logger -t openconnect "initializing..."
6969
7070 logger -t "openconnect" "adding host dependency for $server at $config"
71- for ip in $(resolveip -t 10 "$server"); do
71+ for ip in $(nslookup "$server" | awk '/^Name:/ {getline; print $2;}'); do
7272 logger -t "openconnect" "adding host dependency for $ip at $config"
7373 proto_add_host_dependency "$config" "$ip" "$interface"
7474 done
Afficher sur ancien navigateur de dépôt.