Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=6fef9c540cd8a5ed932dfa69ed90120d19fc6a79
commit 6fef9c540cd8a5ed932dfa69ed90120d19fc6a79 Author: Miklos Vajna <vmik...@frugalware.org> Date: Fri Jan 16 01:28:25 2009 +0100 makepkg: allow providing the package's key or keyring in pkgname.key See http://article.gmane.org/gmane.linux.frugalware.devel/5185. diff --git a/doc/FrugalBuild.txt b/doc/FrugalBuild.txt index 27b3424..f381dc7 100644 --- a/doc/FrugalBuild.txt +++ b/doc/FrugalBuild.txt @@ -237,9 +237,13 @@ sha1sums (array):: sha1sums in the FrugalBuild, run `makepkg -G`. signatures (array):: - If this field is present, it should contain an array of gpg signatures required - to validate the source files. Where there is no signature available just leave - it empty, like: + If this field is present, it should contain an array of gpg signatures + required to validate the source files. It is recommended (but not + required) that you also add the key or keyring of upstream to a file + named $pkgname.key to make off-line build possible. If there is no such + file, and the key is available on a public keyserver, it will be + retrieved automatically. Otherwise the build will be aborted. Where + there is no signature available just leave it empty, like: ---- signatures=(${source[0]}.asc '') diff --git a/scripts/makepkg b/scripts/makepkg index 30e48fc..aa65989 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -1390,6 +1390,10 @@ if [ "$GENSHA1" = "0" ]; then gpg --list-keys $ECHO "keyserver-options auto-key-retrieve" >>~/.gnupg/gpg.conf fi + if [ -e $startdir/$pkgname.key ]; then + msg "Importing $pkgname.key" + gpg --import $startdir/$pkgname.key + fi msg "Validating source files with gpg" errors=0 idx=0 _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git