pkgbase: add a mechanism to be able to force a give ucl include

This is made in order to be able to find add the post-install scripts
for the kernel, where PKGNAME varies for each KERNCONF but we don't want
to dynamically duplicated the kernel.ucl file.

At the same time we don't want the *-dbg* packages to actually include
those post-install scripts
This commit is contained in:
Baptiste Daroussin 2024-03-20 09:35:47 +01:00
parent 49a3780aea
commit 45d83c3926
2 changed files with 3 additions and 0 deletions

View file

@ -2258,6 +2258,8 @@ create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kerne
${SRCDIR}/release/packages/generate-ucl.lua \
PKGNAME "kernel-${_kernel:tl}${flavor}" \
PKGGENNAME "kernel" \
FORCEINCLUDE "kernel${flavor}" \
UCLFILES "${SRCDIR}/release/packages/" \
VERSION "${PKG_VERSION}" \
KERNELDIR "kernel.${_kernel}" \
DESC "FreeBSD ${_kernel} kernel ${flavor}" \

View file

@ -16,3 +16,4 @@ ${DESC}
EOD
.include(try=true,duplicate=rewrite) "${UCLFILES}/${PKGGENNAME}-all.ucl"
.include(try=true,duplicate=rewrite) "${UCLFILES}/${PKGNAME}.ucl"
.include(try=true,duplicate=rewrite) "${UCLFILES}/${FORCEINCLUDE}.ucl"