From bd43d02c5f32a6d4d3f11ebcac4588ff77069173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Sat, 6 Feb 2016 13:10:41 +0100 Subject: - Added sha256sum (1) file verification logic to parse_with_pkg_name(), fetch(), and the respective build scripts (cheers sortie.) - Renamed ${..._VERSION} variables to ${PKG_..._VERSION} to prevent namespace collision (cheers drewrichardson.) - Use log_msg() in check_prereqs() in build.subr. --- 207.libz.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to '207.libz.build') diff --git a/207.libz.build b/207.libz.build index 416acdf6..231baf2f 100644 --- a/207.libz.build +++ b/207.libz.build @@ -1,15 +1,17 @@ if is_build_script_done finished; then exit 212; elif [ "x${2}" = "xlibz" ]; then - _pkg_url="https://sortix.org/libz/release/libz-${LIBZ_VERSION}.tar.gz"; + _pkg_url="https://sortix.org/libz/release/libz-${PKG_LIBZ_VERSION}.tar.gz"; _pkg_fname="${_pkg_url##*/}"; - _pkg_subdir="${2}-${LIBZ_VERSION}"; + _pkg_sha256sum="${PKG_LIBZ_SHA256SUM}"; + _pkg_subdir="${2}-${PKG_LIBZ_VERSION}"; elif [ "x${2}" = "xgzip" ]; then - _pkg_url="https://ftp.gnu.org/gnu/gzip/gzip-${GZIP_VERSION}.tar.gz"; + _pkg_url="https://ftp.gnu.org/gnu/gzip/gzip-${PKG_GZIP_VERSION}.tar.gz"; _pkg_fname="${_pkg_url##*/}"; - _pkg_subdir="${2}-${GZIP_VERSION}"; + _pkg_sha256sum="${PKG_GZIP_SHA256SUM}"; + _pkg_subdir="${2}-${PKG_GZIP_VERSION}"; fi; -fetch "${_pkg_url}"; +fetch "${_pkg_url}" "${_pkg_sha256sum}"; if ! is_build_script_done extracted; then rm_if_exists "${_pkg_fname%%.tar*}"; tar -axf "${_pkg_fname}"; -- cgit v1.2.3