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

Felix Paul Kühne git at videolan.org
Thu Jan 5 01:36:44 CET 2012


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

contrib: add support for openssl to check the sha512 hashes

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

 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 3ab0014..e45230a 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -197,9 +197,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
@@ -247,7 +249,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