Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e04ff8cd
Commit
e04ff8cd
authored
Jan 04, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: add support for openssl to check the sha512 hashes
(cherry picked from commit
d486e311
)
parent
bbc6cea1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
contrib/src/main.mak
contrib/src/main.mak
+5
-3
No files found.
contrib/src/main.mak
View file @
e04ff8cd
...
...
@@ -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
$@
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment