mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
pkgbase: make only vital packages vital, not their sub-packages
make "vital" a replaceable, which defaults to "false" and only set it for the main clib, utilities and runtime packages, not their sub-packages PR: 254174 Differential Revision: https://reviews.freebsd.org/D29224
This commit is contained in:
parent
bd94c8ab29
commit
1c1ff79795
@ -32,19 +32,25 @@ main() {
|
||||
shift $(( ${OPTIND} - 1 ))
|
||||
|
||||
outname="$(echo ${outname} | tr '-' '_')"
|
||||
vital="false"
|
||||
|
||||
case "${outname}" in
|
||||
clibs)
|
||||
vital="true"
|
||||
# clibs should not have any dependencies or anything
|
||||
# else imposed on it.
|
||||
;;
|
||||
caroot)
|
||||
pkgdeps="utilities"
|
||||
;;
|
||||
utilities)
|
||||
uclfile="${uclfile}"
|
||||
vital="true"
|
||||
;;
|
||||
runtime)
|
||||
outname="runtime"
|
||||
uclfile="${uclfile}"
|
||||
_descr="$(make -C ${srctree}/release/packages -f Makefile.package -V ${outname}_DESCR)"
|
||||
vital="true"
|
||||
;;
|
||||
*_lib32_dev)
|
||||
outname="${outname%%_lib32_dev}"
|
||||
@ -108,6 +114,7 @@ main() {
|
||||
echo "uclfile=${uclfile}"
|
||||
echo "desc=${desc}"
|
||||
echo "comment=${comment}"
|
||||
echo "vital=${vital}"
|
||||
echo "cp ${uclsource} -> ${uclfile}"
|
||||
echo "==============================================================="
|
||||
echo ""
|
||||
@ -135,6 +142,7 @@ EOF
|
||||
-e "s/%PKGNAME%/${origname}/" \
|
||||
-e "s/%COMMENT%/${comment}/" \
|
||||
-e "s/%DESC%/${desc}/" \
|
||||
-e "s/%VITAL%/${vital}/" \
|
||||
-e "s/%CAP_MKDB_ENDIAN%/${cap_arg}/g" \
|
||||
-e "s/%PKG_NAME_PREFIX%/${PKG_NAME_PREFIX}/" \
|
||||
-e "s|%PKG_WWW%|${PKG_WWW}|" \
|
||||
|
@ -10,7 +10,7 @@ categories = [ base ]
|
||||
maintainer = "%PKG_MAINTAINER%"
|
||||
www = "%PKG_WWW%"
|
||||
prefix = "/"
|
||||
vital = true
|
||||
vital = %VITAL%
|
||||
licenselogic = "single"
|
||||
licenses = [ BSD2CLAUSE ]
|
||||
desc = <<EOD
|
||||
|
@ -10,7 +10,7 @@ categories = [ base ]
|
||||
maintainer = "%PKG_MAINTAINER%"
|
||||
www = "%PKG_WWW%"
|
||||
prefix = "/"
|
||||
vital = true
|
||||
vital = %VITAL%
|
||||
licenselogic = "single"
|
||||
licenses = [ BSD2CLAUSE ]
|
||||
desc = <<EOD
|
||||
|
@ -10,6 +10,7 @@ categories = [ base ]
|
||||
maintainer = "%PKG_MAINTAINER%"
|
||||
www = "%PKG_WWW%"
|
||||
prefix = "/"
|
||||
vital = %VITAL%
|
||||
licenselogic = "single"
|
||||
licenses = [ BSD2CLAUSE ]
|
||||
desc = <<EOD
|
||||
|
@ -10,7 +10,7 @@ categories = [ base ]
|
||||
maintainer = "%PKG_MAINTAINER%"
|
||||
www = "%PKG_WWW%"
|
||||
prefix = "/"
|
||||
vital = true
|
||||
vital = %VITAL%
|
||||
licenselogic = "single"
|
||||
licenses = [ BSD2CLAUSE ]
|
||||
desc = <<EOD
|
||||
|
Loading…
Reference in New Issue
Block a user