Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pkg-varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
pkg-varnish-cache
Commits
890aac81
Commit
890aac81
authored
Apr 14, 2016
by
Lasse Karstensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run gpg --verify on downloaded tarball.
parent
93c11a6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
3 deletions
+40
-3
dl-source
dl-source
+40
-3
No files found.
dl-source
View file @
890aac81
#!/bin/bash
#
# Download and verify a public source tarball of Varnish Cache.
#
# Author: Lasse Karstensen <lkarsten@varnish-software.com>, April 2016.
TMPDIR
=
$(
mktemp
-d
)
#TMPDIR="`pwd`/w"
VER
=
4.1.2-beta1
set
-o
errexit
cd
sources
wget https://repo.varnish-cache.org/source/varnish-
$VER
.tar.gz
dl
()
{
wget
--no-verbose
--no-clobber
-4
--directory-prefix
=
$TMPDIR
$1
}
RELEASEVERSION
=
$1
OUTPUTDIR
=
$(
realpath
$2
)
if
[
$#
-ne
2
]
;
then
echo
"Usage:
$0
release outputdir"
exit
1
fi
if
[
!
-d
$OUTPUTDIR
]
;
then
echo
"ERROR: No such directory
$OUTPUTDIR
"
exit
2
fi
echo
-e
"Downloading and verifying Varnish Cache
$RELEASEVERSION
.
\n
"
dl https://repo.varnish-cache.org/source/SHA256SUM
dl https://repo.varnish-cache.org/source/SHA256SUM.gpg
dl https://repo.varnish-cache.org/source/varnish-
${
RELEASEVERSION
}
.tar.gz
# Do file verification.
cd
$TMPDIR
gpg
--verify
SHA256SUM.gpg SHA256SUM
sha256sum
--ignore-missing
-c
SHA256SUM
# Release must be a part of the signed signature file to be valid.
grep
"
$RELEASEVERSION
.tar.gz"
SHA256SUM
>
tmp.sum
sha256sum
-c
tmp.sum
mv
$TMPDIR
/
*
gz
$OUTPUTDIR
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