[vlc-commits] contrib: add support for openssl to check the sha512 hashes

Felix Paul Kühne git at videolan.org
Sat Feb 11 14:59:47 CET 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jan  4 18:49:38 2012 +0100| [e04ff8cdf60909a350759508032c9dac86216a95] | committer: Felix Paul Kühne

contrib: add support for openssl to check the sha512 hashes
(cherry picked from commit d486e3110f5a95e29606d22ed2c70ed9662526b2)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=e04ff8cdf60909a350759508032c9dac86216a95
---

 contrib/src/main.mak |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index b008754..93d647f 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -206,9 +206,11 @@ ZCAT ?= $(error Gunzip client (zcat) not found!)
 endif
 
 ifeq ($(shell sha512sum --version >/dev/null 2>&1 || echo FAIL),)
-SHA512SUM = sha512sum
+SHA512SUM = sha512sum --check
 else ifeq ($(shell shasum --version >/dev/null 2>&1 || echo FAIL),)
-SHA512SUM = shasum -a 512
+SHA512SUM = shasum -a 512 --check
+else ifeq ($(shell openssl version >/dev/null 2>&1 || echo FAIL),)
+SHA512SUM = openssl dgst -sha512
 else
 SHA512SUM = $(error SHA-512 checksumming not found!)
 endif
@@ -256,7 +258,7 @@ checksum = \
 	$(foreach f,$(filter $(TARBALLS)/%,$^), \
 		grep -- " $(f:$(TARBALLS)/%=%)$$" \
 			"$(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS" &&) \
-	(cd $(TARBALLS) && $(1) --check /dev/stdin) < \
+	(cd $(TARBALLS) && $(1) /dev/stdin) < \
 		"$(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS"
 CHECK_SHA512 = $(call checksum,$(SHA512SUM),SHA512)
 UNPACK = $(RM) -R $@ \



More information about the vlc-commits mailing list