For completion it would be nice to have PKG_COMPRESSION_LEVEL as a companion to PKG_COMPRESSION_FORMAT. Thus, it becomes easier to specify the wanted compression level, be it best, or fast, or a numerical value. E.g.: PKG_COMPRESSION_LEVEL= best The current workaround is to use in /etc/make.conf or an equivalent file: PKG_CREATE_ARGS+= -l <level> E.g.: PKG_CREATE_ARGS+= -l best Both PKG_COMPRESSION_FORMAT and PKG_COMPRESSION_LEVEL should be documented at around line 1004.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ea36ef6f67f44bbdfe04643afe7dd3ac69d6c29e commit ea36ef6f67f44bbdfe04643afe7dd3ac69d6c29e Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2021-08-23 14:10:30 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> 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 <Trond.Endrestol@ximalas.info> Mk/bsd.port.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
done thank you for the suggestion