diff options
Diffstat (limited to 'release/packages/generate-ucl.sh')
-rwxr-xr-x | release/packages/generate-ucl.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/release/packages/generate-ucl.sh b/release/packages/generate-ucl.sh index eff7e3ab8504..f36ac75cb77c 100755 --- a/release/packages/generate-ucl.sh +++ b/release/packages/generate-ucl.sh @@ -34,6 +34,10 @@ main() { outname="$(echo ${outname} | tr '-' '_')" case "${outname}" in + clibs) + # clibs should not have any dependencies or anything + # else imposed on it. + ;; caroot) pkgdeps="utilities" ;; @@ -134,13 +138,22 @@ main() { [ -z "${desc}" ] && desc="${outname} package" cp "${uclsource}" "${uclfile}" + if [ ! -z "${pkgdeps}" ]; then + cat <<EOF >> ${uclfile} +deps: { + FreeBSD-${pkgdeps}: { + origin: "base", + version: "${PKG_VERSION}" + } +} +EOF + fi cap_arg="$( make -f ${srctree}/share/mk/bsd.endian.mk -VCAP_MKDB_ENDIAN )" sed -i '' -e "s/%VERSION%/${PKG_VERSION}/" \ -e "s/%PKGNAME%/${origname}/" \ -e "s/%COMMENT%/${comment}/" \ -e "s/%DESC%/${desc}/" \ -e "s/%CAP_MKDB_ENDIAN%/${cap_arg}/g" \ - -e "s/%PKGDEPS%/${pkgdeps}/" \ ${uclfile} return 0 } |