Re: Get ${OSREL} at install time

From: Eugene Grosbein <eugen_at_grosbein.net>
Date: Tue, 18 Apr 2023 10:03:13 UTC
18.04.2023 16:51, Felix Palmen wrote:

> With lua scripts, you can't even use freebsd-version because execution
> is very restricted for them in pkg. And for some features (like e.g.
> dynamically creating a pkg-message output), you need lua...

You don't need lua to create pkg-message dynamically or do many other things.
It was possible long before invention of lua itself :-)

First, you may use pkg-message.in
https://docs.freebsd.org/en/books/porters-handbook/book/#using-sub-files

Second, you may modify ${WRKDIR}/pkg-message using post-build target of port's Makefile,
instead of pkg-message.in or in addition.