# USA.
#
-VERSION="2.7.1"
+VERSION="2.8"
do_dialog() {
dialog --backtitle "CRUX $VERSION Setup" --no-shadow "$@"
done
}
+get_extra_collections() {
+ for i in $crux_dir/*; do
+ if [ -d $i ]; then
+ if [ "$i" != "core" ] && [ "$i" != "kernel" ]; then
+ EXTRA_COLLECTIONS="$EXTRA_COLLECTIONS $i"
+ fi
+ fi
+ done
+}
+
select_collections() {
if [ "$ACTION" != "INSTALL" ]; then
return 0
TITLE="Select collections to install:\n(detailed package selection will follow)"
do_select --separate-output --checklist "$TITLE" 13 60 6 \
core "The core packages (required)" ON \
- opt "Optional packages" OFF \
- xorg "X.org packages" OFF 2> $collfile
+ $(for col in $EXTRA_COLLECTIONS; do echo -ne "$col \"$col packages\" OFF "; done) 2> $collfile
}
ask_detailed() {
fi
if [ "$ACTION" = "INSTALL" ]; then
if [ "$DO_DETAILED" = "yes" ]; then
- for collection in core opt xorg; do
+ for collection in core $EXTRA_COLLECTIONS; do
[ ! -d $collection ] && continue
presel=`grep $collection $collfile`
if [ "$presel" == "$collection" ]; then
do_select --separate-output --checklist "$TITLE" 19 60 12 $PKG_LIST 2>> $pkgfile
done
else # no detailed selection
- for collection in core opt xorg; do
+ for collection in core $EXTRA_COLLECTIONS; do
+
[ ! -d $collection ] && continue
presel=`grep $collection $collfile`
if [ "$presel" == "$collection" ]; then
welcome
select_action
select_root
+ get_extra_collections
select_collections
ask_detailed
select_packages
if [ "$ACTION" = "UPGRADE" ] && [ -f /usr/bin/setup-helper ]
then
(/usr/bin/setup-helper $ROOT &> $helperlogfile) | do_dialog \
- --title " Please wait [2.6 -> 2.7.1 check]" --gauge "" 8 60 0
+ --title " Please wait [2.7 -> 2.8 check]" --gauge "" 8 60 0
fi
install_packages
cat $helperlogfile 2> /dev/null
DO_DETAILED="no"
MISSINGDEPS=""
+EXTRA_COLLECTIONS=""
+
trap "rm -f $tmpfile $pkgfile $collfile $neededfile $markedfile" 0 1 2 5 15
if [ "$1" != "" ]; then