summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2016-01-25 16:18:08 +0000
committergjb <gjb@FreeBSD.org>2016-01-25 16:18:08 +0000
commit38c2fa8095c4ce38f152709522173bd201546224 (patch)
tree6006da5578acc56ce57eb7292d0302af99123b06
parentead3a2f82422177688f88922302e4f6c6da596ee (diff)
downloadFreeBSD-src-38c2fa8095c4ce38f152709522173bd201546224.zip
FreeBSD-src-38c2fa8095c4ce38f152709522173bd201546224.tar.gz
Add a 'signpackages' target, which creates the pkg repository
metadata files and uses the path of PKGSIGNKEY for signing, if set. Sponsored by: The FreeBSD Foundation
-rw-r--r--Makefile2
-rw-r--r--Makefile.inc14
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4d4a127..ff57698 100644
--- a/Makefile
+++ b/Makefile
@@ -126,7 +126,7 @@ TGTS= all all-man buildenv buildenvvars buildkernel buildworld \
_build-tools _cross-tools _includes _libraries _depend \
build32 builddtb distribute32 install32 xdev xdev-build xdev-install \
xdev-links native-xtools create-kernel-packages stageworld \
- create-world-packages packages installconfig
+ create-world-packages packages installconfig signpackages
TGTS+= ${SUBDIR_TARGETS}
diff --git a/Makefile.inc1 b/Makefile.inc1
index 0144002..73ca149 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1359,6 +1359,7 @@ packagekernel:
STAGEDIR= ${MAKEOBJDIRPREFIX}${.CURDIR}/stage
REPODIR= ${MAKEOBJDIRPREFIX}${.CURDIR}/repo
+PKGSIGNKEY?= # empty
_pkgbootstrap:
@env ASSUME_ALWAYS_YES=YES pkg bootstrap
@@ -1450,6 +1451,9 @@ create-kernel-packages: _pkgbootstrap
.endfor
.endfor
+signpackages: _pkgbootstrap
+ @pkg -o ABI_FILE=${STAGEDIR}/bin/sh repo ${REPODIR}/$$(pkg config ABI) ${PKGSIGNKEY}
+
#
# doxygen
#
OpenPOWER on IntegriCloud