From 4401fa9bf1a3f2a7f2ca04fae9291218e1ca56bf Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Mon, 4 Jan 2021 16:23:10 +0100 Subject: [PATCH] pkgbase: rename PKGSIGNKEY to PKG_REPO_SIGNING_KEY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this way, it'll be automatically picked up by poudriere That's quite handy when building pkgbase! Submitted by: Mina Galić Reviewed By: bapt, bcr (manpages) Differential Revision: https://reviews.freebsd.org/D27690 --- Makefile.inc1 | 4 ++-- share/man/man5/make.conf.5 | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 6ca69da0f0bc..fecdc1bdca71 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1851,7 +1851,7 @@ WSTAGEDIR?= ${OBJTOP}/worldstage KSTAGEDIR?= ${OBJTOP}/kernelstage REPODIR?= ${OBJROOT}repo PKG_FORMAT?= txz -PKGSIGNKEY?= # empty +PKG_REPO_SIGNING_KEY?= # empty PKG_OUTPUT_DIR?= ${PKG_VERSION} .ORDER: stage-packages create-packages @@ -2064,7 +2064,7 @@ sign-packages: _pkgbootstrap .PHONY -m ${WSTAGEDIR}/meta \ -o ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/${PKG_VERSION} \ ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/${PKG_VERSION} \ - ${PKGSIGNKEY} ; \ + ${PKG_REPO_SIGNING_KEY} ; \ cd ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI); \ ln -s ${PKG_OUTPUT_DIR} latest diff --git a/share/man/man5/make.conf.5 b/share/man/man5/make.conf.5 index 7cb28c865151..3dffdf7b402c 100644 --- a/share/man/man5/make.conf.5 +++ b/share/man/man5/make.conf.5 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd September 27, 2018 +.Dd December 20, 2020 .Dt MAKE.CONF 5 .Os .Sh NAME @@ -444,6 +444,16 @@ statically linked, this can be bad. If set, every utility that uses .Pa bsd.prog.mk will be linked statically. +.It Va PKG_REPO_SIGNING_KEY +.Pq Vt str +Path to rsa private key passed to +.Xr pkg-repo 8 +to sign packages created when building the +.Ar packages +target, i.e.: pkgbase. +The variable is named the same in +.Xr poudriere 8 +so it will automatically be picked up when building pkgbase with poudriere. .It Va PPP_NO_NAT .Pq Vt bool Build