diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-09-13 21:28:28 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-09-13 21:28:28 +0000 |
commit | 1b1a1e6a3e4131ea0fd47b2bc6b05ddecaf9910a (patch) | |
tree | 601fe839759501d74b6579751767ffb707ff324a | |
parent | 353823a2df6ebe9a9a9656c923aa5cc637932361 (diff) |
Remove our local copy of WinPcap and download it from
wireshark-win{32,64}-libs instead. In win-setup.sh only try to unzip
files ending in .zip. PortableApps and U3 packaging changes are untested.
svn path=/trunk/; revision=44888
-rw-r--r-- | Makefile.nmake | 2 | ||||
-rw-r--r-- | packaging/nsis/Makefile.am | 1 | ||||
-rw-r--r-- | packaging/nsis/Makefile.nmake | 3 | ||||
-rwxr-xr-x | packaging/nsis/WinPcap_4_1_2.exe | bin | 915920 -> 0 bytes | |||
-rw-r--r-- | packaging/nsis/wireshark.nsi | 8 | ||||
-rwxr-xr-x | tools/win-setup.sh | 28 | ||||
-rwxr-xr-x | tools/win32-setup.sh | 2 | ||||
-rwxr-xr-x | tools/win64-setup.sh | 2 |
8 files changed, 25 insertions, 21 deletions
diff --git a/Makefile.nmake b/Makefile.nmake index 305664b94d..d08de675a1 100644 --- a/Makefile.nmake +++ b/Makefile.nmake @@ -856,6 +856,8 @@ setup: verify_tools clean_setup process_libs # (The choice is determined by the value of the macro WIN_SETUP_OPT). process_libs: @if not exist "$(WIRESHARK_LIB_DIR)" md "$(WIRESHARK_LIB_DIR)" + @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \ + . WinPcap_$(PCAP_VERSION).exe !IFDEF GTK_DIR @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \ "$(GTK_NAME)" gtk+-bundle_$(GTK_PKG)_$(WIRESHARK_TARGET_PLATFORM)$(PKG_SUFIX).zip diff --git a/packaging/nsis/Makefile.am b/packaging/nsis/Makefile.am index 3615d4e96f..c1e8ec1c21 100644 --- a/packaging/nsis/Makefile.am +++ b/packaging/nsis/Makefile.am @@ -12,7 +12,6 @@ EXTRA_DIST = \ VersionCompare.nsh \ AdditionalTasksPage.ini \ WinPcapPage.ini \ - WinPcap_4_1_2.exe \ Makefile.nmake \ Custom.nmake \ custom_plugins.txt \ diff --git a/packaging/nsis/Makefile.nmake b/packaging/nsis/Makefile.nmake index 9a1f104929..7446b9f126 100644 --- a/packaging/nsis/Makefile.nmake +++ b/packaging/nsis/Makefile.nmake @@ -18,7 +18,7 @@ EXE=../../tshark.exe ../../editcap.exe \ !IFDEF GTK_DIR ../../wireshark.exe \ !ENDIF - ../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe WinPcap_$(PCAP_VERSION).exe + ../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe $(WIRESHARK_LIB_DIR)\WinPcap_$(PCAP_VERSION).exe DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll ../../wsutil/libwsutil.dll DOC=../../doc/ws.css \ ../../doc/capinfos.html \ @@ -96,6 +96,7 @@ NSIS_FLAGS=\ /DMSVC_VARIANT=$(MSVC_VARIANT) \ /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED) \ /DWIRESHARK_LIB_DIR=$(WIRESHARK_LIB_DIR) \ + /DPCAP_VERSION=$(PCAP_VERSION) \ !IFDEF MSVCR_DLL /DMSVCR_DLL="$(MSVCR_DLL)" \ !ENDIF diff --git a/packaging/nsis/WinPcap_4_1_2.exe b/packaging/nsis/WinPcap_4_1_2.exe Binary files differdeleted file mode 100755 index 5fa00555ab..0000000000 --- a/packaging/nsis/WinPcap_4_1_2.exe +++ /dev/null diff --git a/packaging/nsis/wireshark.nsi b/packaging/nsis/wireshark.nsi index 47df79977b..0d971a3d38 100644 --- a/packaging/nsis/wireshark.nsi +++ b/packaging/nsis/wireshark.nsi @@ -716,8 +716,8 @@ IfErrors lbl_winpcap_notinstalled ;if RegKey is unavailable, WinPcap is not inst ;DetailPrint "WinPcap uninstaller returned $0" lbl_winpcap_notinstalled: SetOutPath $INSTDIR -File "WinPcap_4_1_2.exe" -ExecWait '"$INSTDIR\WinPcap_4_1_2.exe"' $0 +File "${WIRESHARK_LIB_DIR}\WinPcap_${PCAP_VERSION}.exe" +ExecWait '"$INSTDIR\WinPcap_${PCAP_VERSION}.exe"' $0 DetailPrint "WinPcap installer returned $0" SecRequired_skip_Winpcap: @@ -1013,7 +1013,7 @@ lbl_winversion_unsupported_2000: lbl_winversion_supported: ; detect if WinPcap should be installed - WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 4" "Text" "Install WinPcap 4.1.2" + WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 4" "Text" "Install WinPcap ${PCAP_VERSION}" ReadRegStr $WINPCAP_NAME HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinPcapInst" "DisplayName" IfErrors 0 lbl_winpcap_installed ;if RegKey is available, WinPcap is already installed WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 2" "Text" "WinPcap is currently not installed" @@ -1039,7 +1039,7 @@ lbl_winpcap_installed: ; force the user to upgrade by hand WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 4" "State" "0" WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 4" "Flags" "DISABLED" - WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 5" "Text" "If you wish to install WinPcap 4.1.2, please uninstall $WINPCAP_NAME manually first." + WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 5" "Text" "If you wish to install WinPcap ${PCAP_VERSION}, please uninstall $WINPCAP_NAME manually first." WriteINIStr "$PLUGINSDIR\WinPcapPage.ini" "Field 5" "Flags" "DISABLED" Goto lbl_winpcap_done diff --git a/tools/win-setup.sh b/tools/win-setup.sh index 5945b40ef9..fa253322cd 100755 --- a/tools/win-setup.sh +++ b/tools/win-setup.sh @@ -177,19 +177,21 @@ case "$1" in err_exit "Can't download $DOWNLOAD_PREFIX/$PACKAGE_PATH" cd "$DEST_SUBDIR" || err_exit "Can't find $DEST_SUBDIR" echo "Extracting '$DEST_PATH/$PACKAGE' into '$DEST_PATH/$DEST_SUBDIR'" - unzip -oq "$DEST_PATH/$PACKAGE" || - err_exit "Couldn't unpack '$DEST_PATH/$PACKAGE'" - echo "Verifying that the DLLs and EXEs in $DEST_SUBDIR are executable." - # XX: Note that find will check *all* dlls/exes in DEST_SUBDIR and below - # which may be more than those just unzipped depending upon DEST_SUBDIR. - # This may cause extra repeated checks but will do no harm. - for i in $(/usr/bin/find . \( -name '*\.dll' -o -name '*\.exe' \)) ; do - if [ ! -x "$i" ] ; then - echo "Changing file permissions (add executable bit) to:" - echo "$i" - chmod a+x "$i" - fi - done + if [[ "$PACKAGE" == *.zip ]] ; then + unzip -oq "$DEST_PATH/$PACKAGE" || + err_exit "Couldn't unpack '$DEST_PATH/$PACKAGE'" + echo "Verifying that the DLLs and EXEs in $DEST_SUBDIR are executable." + # XX: Note that find will check *all* dlls/exes in DEST_SUBDIR and below + # which may be more than those just unzipped depending upon DEST_SUBDIR. + # This may cause extra repeated checks but will do no harm. + for i in $(/usr/bin/find . \( -name '*\.dll' -o -name '*\.exe' \)) ; do + if [ ! -x "$i" ] ; then + echo "Changing file permissions (add executable bit) to:" + echo "$i" + chmod a+x "$i" + fi + done + fi ;; --settag) if [ -z "$2" ] ; then diff --git a/tools/win32-setup.sh b/tools/win32-setup.sh index 1ab9a406cc..e38462c24e 100755 --- a/tools/win32-setup.sh +++ b/tools/win32-setup.sh @@ -4,7 +4,7 @@ # 32-bit wrapper for win-setup.sh. -export DOWNLOAD_TAG="2012-05-30" +export DOWNLOAD_TAG="2012-09-13" export WIRESHARK_TARGET_PLATFORM="win32" WIN_SETUP=`echo $0 | sed -e s/win32/win/` diff --git a/tools/win64-setup.sh b/tools/win64-setup.sh index 4d389784fe..59da926baf 100755 --- a/tools/win64-setup.sh +++ b/tools/win64-setup.sh @@ -4,7 +4,7 @@ # 64-bit wrapper for win-setup.sh. -export DOWNLOAD_TAG="2012-06-06" +export DOWNLOAD_TAG="2012-09-13" export WIRESHARK_TARGET_PLATFORM="win64" WIN_SETUP=`echo $0 | sed -e s/win64/win/` |