diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-04-21 00:27:14 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-04-21 00:27:14 +0000 |
commit | d6da42fad22f9aaf132d87c1e2e760c035fe53c4 (patch) | |
tree | f4c4c649110967910e6e2d7cb5ce166652ca876e /trunk/mkbuild/perl.mkSlackBuild | |
parent | 3aac045d82d2e874d200f7a492260ba4000138f9 (diff) | |
download | simplepkg-d6da42fad22f9aaf132d87c1e2e760c035fe53c4.tar.gz simplepkg-d6da42fad22f9aaf132d87c1e2e760c035fe53c4.tar.bz2 |
see CHANGELOG for details
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@492 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/mkbuild/perl.mkSlackBuild')
-rw-r--r-- | trunk/mkbuild/perl.mkSlackBuild | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/trunk/mkbuild/perl.mkSlackBuild b/trunk/mkbuild/perl.mkSlackBuild index 617283a..856513a 100644 --- a/trunk/mkbuild/perl.mkSlackBuild +++ b/trunk/mkbuild/perl.mkSlackBuild @@ -135,12 +135,37 @@ EOKEY fi # Download source's signature if necessary and check it -SIGNATURE="`basename [[SIGNING URL]]`" -if [ ! -s "$SRC_DIR/$SRC.sig" ]; then - wget "[[SIGNING URL]]" -O "$SRC_DIR/$SIGNATURE" || exit $ERROR_WGET +if echo [[SIGNING URL]] | grep -q -v "SIGNING URL"; then + SIGNATURE="`basename [[SIGNING URL]]`" + if [ ! -s "$SRC_DIR/$SIGNATURE" ]; then + wget "[[SIGNING URL]]" -O "$SRC_DIR/$SIGNATURE" || exit $ERROR_WGET + fi +else + if [ -f "$SRC_DIR/$SRC.sig" ]; then + SIGNATURE="$SRC.sig" + elif [ -f "$SRC_DIR/$SRC.asc" ]; then + SIGNATURE="$SRC.asc" + else + echo Trying to get signature file from $URL.sig... + if wget "$URL.sig" -O "$SRC_DIR/$SRC.sig"; then + SIGNATURE="$SRC.sig" + else + rm $SRC_DIR/$SRC.sig + echo Trying to get signature file from $URL.asc... + if wget "$URL.asc" -O "$SRC_DIR/$SRC.asc"; then + SIGNATURE="$SRC.asc" + else + rm $SRC_DIR/$SRC.asc + echo "Error getting source's signature file" + exit $ERROR_GPG + fi + fi + fi fi +echo Checking $SRC_DIR/$SRC with gpg using $SRC_DIR/$SIGNATURE... gpg --verify "$SRC_DIR/$SIGNATURE" "$SRC_DIR/$SRC" || exit $ERROR_GPG +echo Success. </gpg_signature_check> <untar_source> off |