Changeset View
Changeset View
Standalone View
Standalone View
release/packages/generate-ucl.sh
Show All 26 Lines | *) | ||||
echo "Unknown argument" | echo "Unknown argument" | ||||
;; | ;; | ||||
esac | esac | ||||
done | done | ||||
shift $(( ${OPTIND} - 1 )) | shift $(( ${OPTIND} - 1 )) | ||||
outname="$(echo ${outname} | tr '-' '_')" | outname="$(echo ${outname} | tr '-' '_')" | ||||
vital="false" | |||||
case "${outname}" in | case "${outname}" in | ||||
clibs) | clibs) | ||||
# clibs should not have any dependencies or anything | # clibs should not have any dependencies or anything | ||||
# else imposed on it. | # else imposed on it. | ||||
manu: clibs should be vital too. | |||||
;; | ;; | ||||
caroot) | caroot) | ||||
pkgdeps="utilities" | pkgdeps="utilities" | ||||
;; | ;; | ||||
runtime) | runtime) | ||||
outname="runtime" | outname="runtime" | ||||
uclfile="${uclfile}" | uclfile="${uclfile}" | ||||
vital="true" | |||||
;; | ;; | ||||
utilities) | |||||
outname="utilities" | |||||
uclfile="${uclfile}" | |||||
vital="true" | |||||
;; | |||||
runtime_manuals) | runtime_manuals) | ||||
outname="${origname}" | outname="${origname}" | ||||
pkgdeps="runtime" | pkgdeps="runtime" | ||||
;; | ;; | ||||
runtime_*) | runtime_*) | ||||
outname="${origname}" | outname="${origname}" | ||||
uclfile="${outname##*}${uclfile}" | uclfile="${outname##*}${uclfile}" | ||||
pkgdeps="runtime" | pkgdeps="runtime" | ||||
_descr="$(make -C ${srctree}/release/packages -f Makefile.package -V ${outname}_DESCR)" | _descr="$(make -C ${srctree}/release/packages -f Makefile.package -V ${outname}_DESCR)" | ||||
;; | ;; | ||||
jail) | |||||
outname="runtime" | |||||
freebsd_igalic.coAuthorUnsubmitted Done Inline Actionswell, this is wrong freebsd_igalic.co: well, this is wrong | |||||
uclfile="${uclfile}" | |||||
vital="true" | |||||
;; | |||||
freebsd_igalic.coAuthorUnsubmitted Done Inline Actionsand why are jails vital? freebsd_igalic.co: and why are jails vital? | |||||
jail_*) | jail_*) | ||||
outname="${origname}" | outname="${origname}" | ||||
uclfile="${outname##*}${uclfile}" | uclfile="${outname##*}${uclfile}" | ||||
pkgdeps="runtime" | pkgdeps="runtime" | ||||
_descr="$(make -C ${srctree}/release/packages -f Makefile.package -V ${outname}_DESCR)" | _descr="$(make -C ${srctree}/release/packages -f Makefile.package -V ${outname}_DESCR)" | ||||
;; | ;; | ||||
*_lib32_dev) | *_lib32_dev) | ||||
outname="${outname%%_lib32_dev}" | outname="${outname%%_lib32_dev}" | ||||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | if [ ! -z "${debug}" ]; then | ||||
echo "DEBUG:" | echo "DEBUG:" | ||||
echo "_descr=${_descr}" | echo "_descr=${_descr}" | ||||
echo "outname=${outname}" | echo "outname=${outname}" | ||||
echo "origname=${origname}" | echo "origname=${origname}" | ||||
echo "srctree=${srctree}" | echo "srctree=${srctree}" | ||||
echo "uclfile=${uclfile}" | echo "uclfile=${uclfile}" | ||||
echo "desc=${desc}" | echo "desc=${desc}" | ||||
echo "comment=${comment}" | echo "comment=${comment}" | ||||
echo "vital=${vital}" | |||||
echo "cp ${uclsource} -> ${uclfile}" | echo "cp ${uclsource} -> ${uclfile}" | ||||
echo "===============================================================" | echo "===============================================================" | ||||
echo "" | echo "" | ||||
echo "" | echo "" | ||||
echo "" | echo "" | ||||
fi | fi | ||||
[ -z "${comment}" ] && comment="${outname} package" | [ -z "${comment}" ] && comment="${outname} package" | ||||
Show All 11 Lines | |||||
} | } | ||||
EOF | EOF | ||||
fi | fi | ||||
cap_arg="$( make -f ${srctree}/share/mk/bsd.endian.mk -VCAP_MKDB_ENDIAN )" | cap_arg="$( make -f ${srctree}/share/mk/bsd.endian.mk -VCAP_MKDB_ENDIAN )" | ||||
sed -i '' -e "s/%VERSION%/${PKG_VERSION}/" \ | sed -i '' -e "s/%VERSION%/${PKG_VERSION}/" \ | ||||
-e "s/%PKGNAME%/${origname}/" \ | -e "s/%PKGNAME%/${origname}/" \ | ||||
-e "s/%COMMENT%/${comment}/" \ | -e "s/%COMMENT%/${comment}/" \ | ||||
-e "s/%DESC%/${desc}/" \ | -e "s/%DESC%/${desc}/" \ | ||||
-e "s/%VITAL%/${vital}/" \ | |||||
-e "s/%CAP_MKDB_ENDIAN%/${cap_arg}/g" \ | -e "s/%CAP_MKDB_ENDIAN%/${cap_arg}/g" \ | ||||
-e "s/%PKG_NAME_PREFIX%/${PKG_NAME_PREFIX}/" \ | -e "s/%PKG_NAME_PREFIX%/${PKG_NAME_PREFIX}/" \ | ||||
-e "s|%PKG_WWW%|${PKG_WWW}|" \ | -e "s|%PKG_WWW%|${PKG_WWW}|" \ | ||||
-e "s/%PKG_MAINTAINER%/${PKG_MAINTAINER}/" \ | -e "s/%PKG_MAINTAINER%/${PKG_MAINTAINER}/" \ | ||||
${uclfile} | ${uclfile} | ||||
return 0 | return 0 | ||||
} | } | ||||
main "${@}" | main "${@}" |
clibs should be vital too.