diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-04 18:40:27 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-04 18:40:27 +0100 |
commit | 5ec4e59ea57e05524328e16980df75b2127128d9 (patch) | |
tree | b867a285eb14a34f9c68ac1d831ed281d3e78b02 | |
parent | 26b5ff3f7211aefa2434f6669d234542650110ec (diff) | |
download | logdiag-5ec4e59ea57e05524328e16980df75b2127128d9.tar.gz logdiag-5ec4e59ea57e05524328e16980df75b2127128d9.tar.xz logdiag-5ec4e59ea57e05524328e16980df75b2127128d9.zip |
Use MD5 checksums in Win32Depends.cmake.
-rw-r--r-- | Win32Depends.cmake | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/Win32Depends.cmake b/Win32Depends.cmake index 7c480f7..751d02c 100644 --- a/Win32Depends.cmake +++ b/Win32Depends.cmake @@ -28,6 +28,13 @@ set (pkg_bsdtar_urls "${pkg_bsdtar_root}/xz/xz-4.999.9beta_20100401-1/liblzma-4.999.9beta_20100401-1-mingw32-dll-1.tar.bz2" "${pkg_bsdtar_root}/bzip2/release%201.0.5-2/libbz2-1.0.5-2-mingw32-dll-2.tar.gz" "${pkg_bsdtar_root}/zlib/zlib-1.2.3-1-mingw32/libz-1.2.3-1-mingw32-dll-1.tar.gz") +set (pkg_bsdtar_md5 + "160168b10075bf11a6405d43d98b1612" + "8409b7e9138423b491a41faff742a362" + "deb721ecbcb723d5d3ac4b7dc0860402" + "5f98e85610656cfcfa68c45e601bad0e" + "86a00cac65439ef3e3cb5c466cf6695f" + "4ccd26ac32ad3ffdef5e78cdc770ef12") set (pkg_gtk_root "http://ftp.gnome.org/pub/gnome/binaries/win32") set (pkg_gtk_urls @@ -38,28 +45,52 @@ set (pkg_gtk_urls "${pkg_gtk_root}/libcroco/0.6/libcroco_0.6.2-1_win32.zip" "${pkg_gtk_root}/dependencies/libxml2_2.7.7-1_win32.zip" "${pkg_gtk_root}/dependencies/libxml2-dev_2.7.7-1_win32.zip") +set (pkg_gtk_md5 + "a545c0ca1e6a312701d42a18e49572af" + "2c712a8d7a652363241c0967098515db" + "b09662bc99c5c1b8edb8af32a1722477" + "bf4e34f1f175b88430159d33e01d0c49" + "2d90c71404be0de4e5f3259f63a3e278" + "bd6b3d8c35e06a00937db65887c6e287" + "b6f59b70eef0992df37f8db891d4b283") set (pkg_opensuse_root "http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Factory/noarch") set (pkg_opensuse_urls - "${pkg_opensuse_root}/mingw32-libjson-glib-0.12.0-2.37.noarch.rpm" - "${pkg_opensuse_root}/mingw32-json-glib-devel-0.12.0-2.37.noarch.rpm") + "${pkg_opensuse_root}/mingw32-libjson-glib-0.12.0-2.38.noarch.rpm" + "${pkg_opensuse_root}/mingw32-json-glib-devel-0.12.0-2.38.noarch.rpm") set (pkg_opensuse_strip "usr/i686-pc-mingw32/sys-root/mingw") +set (pkg_opensuse_md5 + "2ca72896a3888c9081104e16a996a234" + "1c50ab8368b54f9ddf14dbca001477b9") set (pkg_mingw_lua_root "http://sourceforge.net/projects/mingw-cross/files/%5BLIB%5D%20Lua") set (pkg_mingw_lua_name "mingw32-lua-5.1.4-2") set (pkg_mingw_lua_urls "${pkg_mingw_lua_root}/${pkg_mingw_lua_name}/${pkg_mingw_lua_name}.zip") set (pkg_mingw_lua_strip ${pkg_mingw_lua_name}) +set (pkg_mingw_lua_md5 + "7deb1f62a9631871e9b90c0419c2e2bb") # Stage 1: fetch missing packages foreach (pkg_set ${pkg_list}) + set (pkg_md5 ${pkg_${pkg_set}_md5}) + foreach (url ${pkg_${pkg_set}_urls}) - get_filename_component (filename ${url} NAME) - set (filename ${pkg_dir}/${filename}) + get_filename_component (basename ${url} NAME) + set (filename ${pkg_dir}/${basename}) + + if (NOT pkg_md5) + message (WARNING "Checksum missing for ${basename}") + set (pkg_md5_param) + else (NOT pkg_md5) + list (GET pkg_md5 0 pkg_md5_param) + list (REMOVE_AT pkg_md5 0) + set (pkg_md5_param EXPECTED_MD5 ${pkg_md5_param}) + endif (NOT pkg_md5) if (NOT EXISTS ${filename}) message (STATUS "Downloading ${url}...") - file (DOWNLOAD ${url} ${filename} STATUS status) + file (DOWNLOAD ${url} ${filename} STATUS status ${pkg_md5_param}) list (GET status 0 status_errno) list (GET status 1 status_msg) |