From 66216b1fa67bd68a32ce617ec87489612fd0cfe6 Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 30 May 2024 17:51:11 +0100 Subject: [PATCH] NPCAP gone down. Use SmingTools cache. (#2778) The npcap SDK is required by Host networking in Windows, and is downloaded on demand from `npcam.com`. This site has been down since yesterday and whilst it may come back up again it makes sense to keep a cached copy of this in SmingTools. --- Sming/Components/lwip/src/Arch/Host/arch.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sming/Components/lwip/src/Arch/Host/arch.mk b/Sming/Components/lwip/src/Arch/Host/arch.mk index 06334b16f2..0f6622c651 100644 --- a/Sming/Components/lwip/src/Arch/Host/arch.mk +++ b/Sming/Components/lwip/src/Arch/Host/arch.mk @@ -13,6 +13,9 @@ ifeq ($(UNAME),Windows) COMPONENT_PREREQUISITES += $(NPCAP_SRCDIR)/.ok PCAP_SRC := npcap-sdk-1.05.zip + # PCAP_URL := https://npcap.com/dist/ + PCAP_URL := https://github.com/SmingHub/SmingTools/releases/download/1.0/ + $(NPCAP_SRCDIR)/.ok: @echo Fetching npcap... $(Q) \ @@ -20,7 +23,7 @@ $(NPCAP_SRCDIR)/.ok: mkdir -p $(@D) && \ cd $(@D) && \ powershell -Command "Set-Variable ProgressPreference SilentlyContinue; \ - Invoke-WebRequest https://npcap.com/dist/$(PCAP_SRC) -OutFile $(PCAP_SRC); \ + Invoke-WebRequest $(PCAP_URL)$(PCAP_SRC) -OutFile $(PCAP_SRC); \ Expand-Archive $(PCAP_SRC) ." && \ $(call ApplyPatch,$(LWIP_ARCH_SRCDIR)/npcap.patch) && \ touch $@