Skip to content

Commit

Permalink
NPCAP gone down. Use SmingTools cache. (#2778)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mikee47 authored May 30, 2024
1 parent 2d3d267 commit 66216b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sming/Components/lwip/src/Arch/Host/arch.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ 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) \
rm -rf $(@D) && \
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 $@
Expand Down

0 comments on commit 66216b1

Please sign in to comment.