From 3aac045d82d2e874d200f7a492260ba4000138f9 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 20 Apr 2008 20:25:44 +0000 Subject: fix on gpg signature handling on generic and perl mkbuild model files git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@491 04377dda-e619-0410-9926-eae83683ac58 --- trunk/mkbuild/perl.mkSlackBuild | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'trunk/mkbuild/perl.mkSlackBuild') diff --git a/trunk/mkbuild/perl.mkSlackBuild b/trunk/mkbuild/perl.mkSlackBuild index d90dacc..617283a 100644 --- a/trunk/mkbuild/perl.mkSlackBuild +++ b/trunk/mkbuild/perl.mkSlackBuild @@ -126,17 +126,21 @@ MD5SUM_URL="$(grep "$SRC[ \t]*$" "$SRC_DIR/$SRC.[[MD5SUM EXTENSION]]" | cut -d " off # Import minimized signing key from -# [[SIGNING KEY URL]] -gpg --import << EOKEY || exit $ERROR_GPG +if echo [[SIGNING KEY URL]] | grep -q -v "SIGNING KEY URL"; then + lynx -dump [[SIGNING KEY URL]] | gpg --import || exit $ERROR_GPG +else + gpg --import << EOKEY || exit $ERROR_GPG [[SIGNING KEY]] EOKEY +fi -# Dowload source's signature if necessary and check it +# Download source's signature if necessary and check it +SIGNATURE="`basename [[SIGNING URL]]`" if [ ! -s "$SRC_DIR/$SRC.sig" ]; then - wget "$URL.sig" -O "$SRC_DIR/$SRC.sig" || exit $ERROR_WGET + wget "[[SIGNING URL]]" -O "$SRC_DIR/$SIGNATURE" || exit $ERROR_WGET fi -gpg --verify "$SRC_DIR/$SRC.sig" "$SRC_DIR/$SRC" || exit $ERROR_GPG +gpg --verify "$SRC_DIR/$SIGNATURE" "$SRC_DIR/$SRC" || exit $ERROR_GPG off -- cgit v1.2.3