Check-in [b69c1be66d]
Overview
SHA1:b69c1be66d707ef5837b724b83cbdeaa85c3af7c
Date: 2014-01-25 05:17:16
User: rkeene
Comment:Added checksum verification for downloads
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2014-01-25
06:27
[8f671ec548] Updated to name service we create "npf", which is what winpcap expects to find and creates if not present (user: rkeene, tags: trunk)
05:17
[b69c1be66d] Added checksum verification for downloads (user: rkeene, tags: trunk)
04:28
[e5797ca0ca] Updated ignores (user: rkeene, tags: trunk)
Changes

Modified Makefile from [14236a935e] to [b52bf2d7ba].

     1      1   TOOLCHAIN = i686-w64-mingw32
     2      2   TOOLCHAIN_CMD = $(TOOLCHAIN)-
     3      3   
     4      4   TWAPI_VERSION = 3.1.17
     5      5   TWAPI_URL = http://sourceforge.net/projects/twapi/files/Current%20Releases/Tcl%20Windows%20API/twapi-$(TWAPI_VERSION)/twapi-$(TWAPI_VERSION).zip
     6      6   TWAPI_ZIP = archive/twapi-$(TWAPI_VERSION).zip
            7  +TWAPI_SHA256 = 8803e90fdc60c8d6a1ca3d559b145e8d09ae2e1259df603ca27c89ff7b0416f4
     7      8   
     8      9   TCPDUMP_VERSION = 4.5.1
     9     10   TCPDUMP_URL = http://www.tcpdump.org/release/tcpdump-$(TCPDUMP_VERSION).tar.gz
    10     11   TCPDUMP_TARBALL = archive/tcpdump-$(TCPDUMP_VERSION).tar.gz
           12  +TCPDUMP_SHA256 = 14ab39657128f3a650aed4cf455f76c7590601087b6101c253d698f6e73f0b96
    11     13   
    12     14   WINPCAP_DEV_VERSION = 4.1.2
    13     15   WINPCAP_DEV_URL = http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip
    14     16   WINPCAP_DEV_ZIP = archive/winpcap-dev-$(WINPCAP_DEV_VERSION).zip
           17  +WINPCAP_DEV_SHA256 = ea799cf2f26e4afb1892938070fd2b1ca37ce5cf75fec4349247df12b784edbd
    15     18   
    16     19   WINPCAP_INST_VERSION = 4.1.3
    17     20   WINPCAP_INST_URL = http://www.winpcap.org/install/bin/WinPcap_4_1_3.exe
    18     21   WINPCAP_INST_7ZIP = archive/winpcap-inst-$(WINPCAP_INST_VERSION).exe
           22  +WINPCAP_INST_SHA256 = fc4623b113a1f603c0d9ad5f83130bd6de1c62b973be9892305132389c8588de
    19     23   WINPCAP_INST_FILES = files/npf32.sys files/npf64.sys files/packet.dll files/pthreadvc.dll files/wpcap.dll
    20     24   
    21     25   KITCREATOR_VERSION = 0.7.0
    22     26   KITCREATOR_URL = http://www.rkeene.org/devel/kitcreator-$(KITCREATOR_VERSION).tar.gz
    23     27   KITCREATOR_TARBALL = archive/kitcreator-$(KITCREATOR_VERSION).tar.gz
           28  +KITCREATOR_SHA256 = 2ee6993cdaafcfe6140364745d56eb1aca83cc6d9b7676e9c28d72ed0edfa177
    24     29   
    25     30   # Point to real target
    26     31   all: tcpdump.exe
    27     32   
    28     33   # WinPcap
    29     34   $(WINPCAP_INST_7ZIP):
    30     35   	@-mkdir -p archive >/dev/null 2>/dev/null
    31     36   	wget --no-use-server-timestamps -O "$(WINPCAP_INST_7ZIP).new" "$(WINPCAP_INST_URL)"
           37  +	@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
    32     38   	7z t "$(WINPCAP_INST_7ZIP).new"
    33     39   	mv "$(WINPCAP_INST_7ZIP).new" "$(WINPCAP_INST_7ZIP)"
    34     40   
    35     41   $(WINPCAP_INST_FILES): $(WINPCAP_INST_7ZIP)
    36     42   	@-mkdir -p files
    37     43   	rm -rf __TMP_WPCAP__
    38     44   	mkdir __TMP_WPCAP__
................................................................................
    44     50   	cp '__TMP_WPCAP__/$$SYSDIR/drivers/npf.sys' files/npf32.sys
    45     51   	rm -rf __TMP_WPCAP__
    46     52   
    47     53   # TCPDUMP
    48     54   $(TCPDUMP_TARBALL):
    49     55   	@-mkdir -p archive >/dev/null 2>/dev/null
    50     56   	wget --no-use-server-timestamps -O "$(TCPDUMP_TARBALL).new" "$(TCPDUMP_URL)"
           57  +	@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
    51     58   	gzip -dc "$(TCPDUMP_TARBALL).new" | tar -tf - >/dev/null
    52     59   	mv "$(TCPDUMP_TARBALL).new" "$(TCPDUMP_TARBALL)"
    53     60   
    54     61   $(WINPCAP_DEV_ZIP):
    55     62   	@-mkdir -p archive >/dev/null 2>/dev/null
    56     63   	wget --no-use-server-timestamps -O "$(WINPCAP_DEV_ZIP).new" "$(WINPCAP_DEV_URL)"
           64  +	@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
    57     65   	unzip -l "$(WINPCAP_DEV_ZIP).new"
    58     66   	mv "$(WINPCAP_DEV_ZIP).new" "$(WINPCAP_DEV_ZIP)"
    59     67   
    60     68   files/tcpdump.exe: $(TCPDUMP_TARBALL) $(WINPCAP_DEV_ZIP) pcap-config
    61     69   	rm -rf __TMP_TCP__
    62     70   	mkdir __TMP_TCP__
    63     71   	( \
................................................................................
    96    104   	mv files/tcpdump.exe.new files/tcpdump.exe
    97    105   	rm -rf __TMP_TCP__
    98    106   
    99    107   # TWAPI (TCL Windows API)
   100    108   $(TWAPI_ZIP):
   101    109   	@-mkdir -p archive >/dev/null 2>/dev/null
   102    110   	wget --no-use-server-timestamps -O "$(TWAPI_ZIP).new" "$(TWAPI_URL)"
          111  +	@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
   103    112   	unzip -l "$(TWAPI_ZIP).new"
   104    113   	mv "$(TWAPI_ZIP).new" "$(TWAPI_ZIP)"
   105    114   
   106    115   # Tclkit
   107    116   $(KITCREATOR_TARBALL):
   108    117   	@-mkdir -p archive >/dev/null 2>/dev/null
   109    118   	wget --no-use-server-timestamps -O "$(KITCREATOR_TARBALL).new" "$(KITCREATOR_URL)"
          119  +	@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
   110    120   	gzip -dc "$(KITCREATOR_TARBALL).new" | tar -tf - >/dev/null
   111    121   	mv "$(KITCREATOR_TARBALL).new" "$(KITCREATOR_TARBALL)"
   112    122   
   113    123   tclkit-zip: $(KITCREATOR_TARBALL)
   114    124   	rm -rf kitcreator-$(KITCREATOR_VERSION)
   115    125   	gzip -dc "$(KITCREATOR_TARBALL)" | tar -xf -
   116    126   	cd kitcreator-$(KITCREATOR_VERSION) && KITCREATOR_PKGS=' ' AR=$(TOOLCHAIN_CMD)ar CC=$(TOOLCHAIN_CMD)gcc ./kitcreator 8.5.15 --host=$(TOOLCHAIN) --enable-kit-storage=zip