Skip to content

Commit

Permalink
Prefix lib32, profile, debug, and development packages
Browse files Browse the repository at this point in the history
with 'runtime-' for consistency with other packages.

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
gjb authored and gjb committed Mar 8, 2016
1 parent a7d86f7 commit a78b912
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 26 deletions.
15 changes: 7 additions & 8 deletions release/packages/Makefile.package
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ clang_COMMENT= Clang Utilities
clang_DESC= Clang Utilities
clibs_COMMENT= Core C Libraries
clibs_DESC= Core C Libraries
debug_COMMENT= FreeBSD Base System (Debugging Symbols)
debug_DESC= FreeBSD Base System (Debugging Symbols)
development_COMMENT= FreeBSD Base System (Development Files)
development_DESC= FreeBSD Base System (Development Files)
dma_COMMENT= DMA Mail Agent Utilities
dma_DESC= DMA Mail Agent Utilities
docs_COMMENT= Documentation
Expand All @@ -46,18 +42,21 @@ jail_COMMENT= Jail Utilities
jail_DESC= Jail Utilities
kernel_COMMENT= FreeBSD Kernel
kernel_DESC= FreeBSD Kernel
lib32_COMMENT= FreeBSD Base System (32-bit Libraries)
lib32_DESC= FreeBSD Base System (32-bit Libraries)
manuals_COMMENT= Manual Pages
manuals_DESC= Manual Pages
profile_COMMENT= FreeBSD Base System (Profiling Libraries)
profile_DESC= FreeBSD Base System (Profiling Libraries)
rcmds_COMMENT= Remote Command Utilities
rcmds_DESC= Remote Command Utilities
rescue_COMMENT= Rescue Utilities
rescue_DESC= Rescue Utilities
runtime_COMMENT= FreeBSD Base System
runtime_DESC= FreeBSD Base System
runtime-debug_DESCR= Debugging Symbols
runtime-development_DESCR=Development Files
runtime-profile_DESCR= Profiling Libraries
runtime-lib32_DESCR= 32-bit Libraries
runtime-lib32-debug_DESCR=32-bit Debugging Symbols
runtime-lib32-development_DESCR=32-bit Development Files
runtime-lib32-profile_DESCR=32-bit Profiling Libraries
sendmail_COMMENT= Sendmail Utilities
sendmail_DESC= Sendmail Utilities
ssh_COMMENT= Secure Shell Utilities
Expand Down
25 changes: 14 additions & 11 deletions release/packages/generate-ucl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ main() {
outname="$(echo ${outname} | tr '-' '_')"

case "${outname}" in
runtime)
outname="runtime"
uclfile="${uclfile}"
;;
runtime_manuals)
outname="${origname}"
pkgdeps="runtime"
;;
runtime_*)
outname="${origname}"
uclfile="${outname##*}${uclfile}"
pkgdeps="runtime"
_descr="$(make -C ${srctree}/release/packages -f Makefile.package -V ${outname}_DESCR)"
;;
*_lib32_development)
outname="${outname%%_lib32_development}"
_descr="32-bit Libraries, Development Files"
Expand Down Expand Up @@ -69,20 +83,9 @@ main() {
_descr="Debugging Symbols"
pkgdeps="${outname}"
;;
*_manuals)
outname="${origname}"
pkgdeps="runtime"
;;
runtime)
outname="runtime"
uclfile="${uclfile}"
;;
${origname})
pkgdeps="runtime"
;;
debug|development|lib32|profile)
uclfile="${outname##*}${uclfile}"
;;
*)
uclfile="${outname##*}${origname}"
outname="${outname##*}${origname}"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 3 additions & 7 deletions release/scripts/mtree-to-plist.awk
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
gsub(/package=/, "", pkgname)
} else if (a[i] == "config") {
type="config"
} else if (a[i] == "development" || a[i] == "profile" || a[i] == "debug") {
} else if (a[i] == "development" || a[i] == "profile" || a[i] == "debug" || a[i] == "docs") {
pkgend=a[i]
} else {
if (ext != "")
Expand All @@ -49,14 +49,10 @@
}
}
if (ext != "") {
if (pkgname == "runtime") {
pkgname=ext
} else {
pkgname=pkgname"-"ext
}
pkgname=pkgname"-"ext
}
if (pkgend != "") {
if (pkgname == "runtime") {
if (pkgend == "docs") {
pkgname=pkgend
} else {
pkgname=pkgname"-"pkgend
Expand Down

0 comments on commit a78b912

Please sign in to comment.