build/common: sign the bootstrap package as well

Taken from: Poudriere
This commit is contained in:
Franco Fichtner 2015-11-17 20:10:41 +01:00
parent 36f350e8eb
commit 3e112d2369
1 changed files with 6 additions and 1 deletions

View File

@ -421,7 +421,12 @@ bundle_packages()
local SIGNARGS=
if [ -n "$(${TOOLSDIR}/scripts/pkg_fingerprint.sh)" ]; then
# XXX check if fingerprint is in core.git
SIGNARGS="signing_command: ${TOOLSDIR}/scripts/pkg_sign.sh"
local SIGNCMD="${TOOLSDIR}/scripts/pkg_sign.sh"
SIGNARGS="signing_command: ${SIGNCMD}"
# generate pkg bootstrap signature
sha256 -q ${1}${PACKAGESDIR}-new/Latest/pkg.txz | \
${SIGNCMD} > ${1}${PACKAGESDIR}-new/Latest/pkg.txz.sig
fi
# generate index files