#!/bin/sh # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ # # Author: # # This function is for general purpose functions that most ebuilds would # have to implement themselves. # # Note: If you add anything, please comment it! # # Format: # dosign sigfile signed-files # # Check if checksign feature set. if [ "${FEATURES/checksign/}" != "${FEATURES}" ] ; then # make sure gpg exists and is executable. if [ -x /usr/bin/gpg ]; then # set sigfile shift and take rest of arguments as signed-files sigfile=$1 shift signed_files=$@ /usr/bin/gpg --verify ${sigfile} ${signed_files} # TODO: do something here when gpg fails. [ $? = 0 ] && return 1 fi fi