Re: Get ${OSREL} at install time

From: Eugene Grosbein <>
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

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