Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -2,35 +2,41 @@ TOOLCHAIN_CMD = $(TOOLCHAIN)- TWAPI_VERSION = 3.1.17 TWAPI_URL = http://sourceforge.net/projects/twapi/files/Current%20Releases/Tcl%20Windows%20API/twapi-$(TWAPI_VERSION)/twapi-$(TWAPI_VERSION).zip TWAPI_ZIP = archive/twapi-$(TWAPI_VERSION).zip +TWAPI_SHA256 = 8803e90fdc60c8d6a1ca3d559b145e8d09ae2e1259df603ca27c89ff7b0416f4 TCPDUMP_VERSION = 4.5.1 TCPDUMP_URL = http://www.tcpdump.org/release/tcpdump-$(TCPDUMP_VERSION).tar.gz TCPDUMP_TARBALL = archive/tcpdump-$(TCPDUMP_VERSION).tar.gz +TCPDUMP_SHA256 = 14ab39657128f3a650aed4cf455f76c7590601087b6101c253d698f6e73f0b96 WINPCAP_DEV_VERSION = 4.1.2 WINPCAP_DEV_URL = http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip WINPCAP_DEV_ZIP = archive/winpcap-dev-$(WINPCAP_DEV_VERSION).zip +WINPCAP_DEV_SHA256 = ea799cf2f26e4afb1892938070fd2b1ca37ce5cf75fec4349247df12b784edbd WINPCAP_INST_VERSION = 4.1.3 WINPCAP_INST_URL = http://www.winpcap.org/install/bin/WinPcap_4_1_3.exe WINPCAP_INST_7ZIP = archive/winpcap-inst-$(WINPCAP_INST_VERSION).exe +WINPCAP_INST_SHA256 = fc4623b113a1f603c0d9ad5f83130bd6de1c62b973be9892305132389c8588de WINPCAP_INST_FILES = files/npf32.sys files/npf64.sys files/packet.dll files/pthreadvc.dll files/wpcap.dll KITCREATOR_VERSION = 0.7.0 KITCREATOR_URL = http://www.rkeene.org/devel/kitcreator-$(KITCREATOR_VERSION).tar.gz KITCREATOR_TARBALL = archive/kitcreator-$(KITCREATOR_VERSION).tar.gz +KITCREATOR_SHA256 = 2ee6993cdaafcfe6140364745d56eb1aca83cc6d9b7676e9c28d72ed0edfa177 # Point to real target all: tcpdump.exe # WinPcap $(WINPCAP_INST_7ZIP): @-mkdir -p archive >/dev/null 2>/dev/null wget --no-use-server-timestamps -O "$(WINPCAP_INST_7ZIP).new" "$(WINPCAP_INST_URL)" + @if test -n "$(WINPCAP_INST_SHA256)"; then if test "`openssl sha256 "$(WINPCAP_INST_7ZIP).new" | sed 's@^.*= *@@'`" != "$(WINPCAP_INST_SHA256)"; then echo "$(WINPCAP_INST_7ZIP): Checksum Mismatch!"; exit 1; fi; fi 7z t "$(WINPCAP_INST_7ZIP).new" mv "$(WINPCAP_INST_7ZIP).new" "$(WINPCAP_INST_7ZIP)" $(WINPCAP_INST_FILES): $(WINPCAP_INST_7ZIP) @-mkdir -p files @@ -46,16 +52,18 @@ # TCPDUMP $(TCPDUMP_TARBALL): @-mkdir -p archive >/dev/null 2>/dev/null wget --no-use-server-timestamps -O "$(TCPDUMP_TARBALL).new" "$(TCPDUMP_URL)" + @if test -n "$(TCPDUMP_SHA256)"; then if test "`openssl sha256 "$(TCPDUMP_TARBALL).new" | sed 's@^.*= *@@'`" != "$(TCPDUMP_SHA256)"; then echo "$(TCPDUMP_TARBALL): Checksum Mismatch!"; exit 1; fi; fi gzip -dc "$(TCPDUMP_TARBALL).new" | tar -tf - >/dev/null mv "$(TCPDUMP_TARBALL).new" "$(TCPDUMP_TARBALL)" $(WINPCAP_DEV_ZIP): @-mkdir -p archive >/dev/null 2>/dev/null wget --no-use-server-timestamps -O "$(WINPCAP_DEV_ZIP).new" "$(WINPCAP_DEV_URL)" + @if test -n "$(WINPCAP_DEV_SHA256)"; then if test "`openssl sha256 "$(WINPCAP_DEV_ZIP).new" | sed 's@^.*= *@@'`" != "$(WINPCAP_DEV_SHA256)"; then echo "$(WINPCAP_DEV_ZIP): Checksum Mismatch!"; exit 1; fi; fi unzip -l "$(WINPCAP_DEV_ZIP).new" mv "$(WINPCAP_DEV_ZIP).new" "$(WINPCAP_DEV_ZIP)" files/tcpdump.exe: $(TCPDUMP_TARBALL) $(WINPCAP_DEV_ZIP) pcap-config rm -rf __TMP_TCP__ @@ -98,17 +106,19 @@ # TWAPI (TCL Windows API) $(TWAPI_ZIP): @-mkdir -p archive >/dev/null 2>/dev/null wget --no-use-server-timestamps -O "$(TWAPI_ZIP).new" "$(TWAPI_URL)" + @if test -n "$(TWAPI_SHA256)"; then if test "`openssl sha256 "$(TWAPI_ZIP).new" | sed 's@^.*= *@@'`" != "$(TWAPI_SHA256)"; then echo "$(TWAPI_ZIP): Checksum Mismatch!"; exit 1; fi; fi unzip -l "$(TWAPI_ZIP).new" mv "$(TWAPI_ZIP).new" "$(TWAPI_ZIP)" # Tclkit $(KITCREATOR_TARBALL): @-mkdir -p archive >/dev/null 2>/dev/null wget --no-use-server-timestamps -O "$(KITCREATOR_TARBALL).new" "$(KITCREATOR_URL)" + @if test -n "$(KITCREATOR_SHA256)"; then if test "`openssl sha256 "$(KITCREATOR_TARBALL).new" | sed 's@^.*= *@@'`" != "$(KITCREATOR_SHA256)"; then echo "$(KITCREATOR_TARBALL): Checksum Mismatch!"; exit 1; fi; fi gzip -dc "$(KITCREATOR_TARBALL).new" | tar -tf - >/dev/null mv "$(KITCREATOR_TARBALL).new" "$(KITCREATOR_TARBALL)" tclkit-zip: $(KITCREATOR_TARBALL) rm -rf kitcreator-$(KITCREATOR_VERSION)