From owner-dev-commits-ports-all@freebsd.org Mon Aug 23 14:12:44 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2EF3866C62F; Mon, 23 Aug 2021 14:12:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GtZ2M4wf6z4WWR; Mon, 23 Aug 2021 14:12:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 768DC15843; Mon, 23 Aug 2021 14:12:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 17NEChgJ059394; Mon, 23 Aug 2021 14:12:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17NEChkb059393; Mon, 23 Aug 2021 14:12:43 GMT (envelope-from git) Date: Mon, 23 Aug 2021 14:12:43 GMT Message-Id: <202108231412.17NEChkb059393@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Baptiste Daroussin Subject: git: ea36ef6f67f4 - main - Mk/bsd.port.mk: Add PKG_COMPRESSION_LEVEL user variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ea36ef6f67f44bbdfe04643afe7dd3ac69d6c29e Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2021 14:12:44 -0000 The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=ea36ef6f67f44bbdfe04643afe7dd3ac69d6c29e commit ea36ef6f67f44bbdfe04643afe7dd3ac69d6c29e Author: Baptiste Daroussin AuthorDate: 2021-08-23 14:10:30 +0000 Commit: Baptiste Daroussin CommitDate: 2021-08-23 14:12:20 +0000 Mk/bsd.port.mk: Add PKG_COMPRESSION_LEVEL user variable it allows users to set their desired compression level when packaging in make.conf PR: 257427 Suggested by: Trond Endrestol --- Mk/bsd.port.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index f813ae697972..f8fa7fa4b026 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1002,8 +1002,11 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # ensures periodic output during packaging and # will help prevent timeouts by build monitors # PKG_COMPRESSION_FORMAT -# the compression format used when creating a package, see +# - the compression format used when creating a package, see # pkg-create(8) for valid formats +# PKG_COMPRESSION_LEVEL +# - the compression level to use when creating a package, see +# pkg-create(8) for valid values # # 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. @@ -3486,6 +3489,9 @@ _EXTRA_PACKAGE_TARGET_DEP+= ${WRKDIR_PKGFILE} .if !target(do-package) PKG_CREATE_ARGS+= -f ${PKG_COMPRESSION_FORMAT} +.if defined(PKG_COMPRESSION_LEVEL) +PKG_CREATE_ARGS+= -l ${PKG_COMPRESSION_LEVEL} +.endif PKG_CREATE_ARGS+= -r ${STAGEDIR} . if defined(PKG_CREATE_VERBOSE) PKG_CREATE_ARGS+= -v