Re: git: 4da0d4b17cba - main - sysutils/nut*: Optionally install developer files
- In reply to: Cy Schubert : "git: 4da0d4b17cba - main - sysutils/nut*: Optionally install developer files"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Oct 2023 04:11:31 UTC
On Wed, Oct 11, 2023 at 02:52:18AM +0000, Cy Schubert wrote:
> commit 4da0d4b17cba94ae605f3541234a7436d723c170
>
> sysutils/nut*: Optionally install developer files
>
> Most users do not need files needed for nut development. Make them
> optional.
...
> OPTIONS_SUB= yes
So there's OPTIONS_SUB, right?
> @@ -56,6 +57,7 @@ CGI_DESC= Web CGI interface
> FREEIPMI_DESC= freeipmi support
> IPMIPSU_DESC= Use nut-ipmipsu support (experimental)
> SSL_OFF_DESC= No SSL support
> +DEV_DESC= Install developer tools
>
> USE_RC_SUBR= nut nut_upsmon nut_upslog
> SUB_LIST+= STATEDIR=${STATEDIR} NUT_USER=${NUT_USER} NUT_GROUP=${NUT_GROUP}
> @@ -134,6 +135,10 @@ OPENSSL_CONFIGURE_WITH= openssl
> NSS_LIB_DEPENDS= libnss3.so:security/nss
> NSS_CONFIGURE_WITH= nss
>
> +DEV_CONFIGURE_WITH= dev
> +DEV_PLIST_SUB= DEV=""
> +DEV_PLIST_SUB_OFF= DEV="@comment "
Then manual PLIST_SUB dances are not needed. In fact, they'd clash with
existing ones:
$ make -V PLIST_SUB | xargs -n1 | grep DEV=
DEV=@comment
NO_DEV=
DEV=@comment
./danfe