1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

Mk/bsd.port.mk: Add PKG_CREATE_VERBOSE functionality

When PKG_CREATE_VERBOSE is set, the "-v" option will be added to
the arguments for PKG_CREATE.  The intended use is for poudriere and
other build monitors that can time out.  The verbose option of pkg
create will periodically emit output as the package is being created.
It would be set mk.conf (the DragonFly version of poudriere will set
it unconditionally during package building).

Approved by:	portmgr
Differential Revision:	https://reviews.freebsd.org/D3507
This commit is contained in:
John Marino 2015-08-28 13:50:43 +00:00
parent e638299edc
commit 5f3bf8cb9d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395484

View File

@ -1024,6 +1024,10 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# has been specified in distinfo. This is useful
# when using an alternate FETCH_CMD.
#
# PKG_CREATE_VERBOSE - If set, pass the -v option to pkg create which
# ensures periodic output during packaging and
# will help prevent timeouts by build monitors
#
# End of the list of all variables that need to be defined in a port.
# Most port authors should not need to understand anything after this point.
#
@ -3453,6 +3457,9 @@ do-install:
.if !target(do-package)
PKG_CREATE_ARGS= -r ${STAGEDIR} -m ${METADIR} -p ${TMPPLIST}
.if defined(PKG_CREATE_VERBOSE)
PKG_CREATE_ARGS+= -v
.endif
do-package: create-manifest
do-package: ${TMPPLIST}
@if [ -d ${PACKAGES} ]; then \