ShowSeries 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. # This file is part of the 'dragora-installer'.
  2. #
  3. # Purpose: Search to show the detected series of the found medium.
  4. MEDIUM_SOURCE="$(cat -- ${SUBTMPDIR}/MediumFound)"
  5. export MEDIUM_SOURCE
  6. cat << EOF > ${SUBTMPDIR}/ShowSeries
  7. dialog --colors \\
  8. --backtitle "\ZbChoosing the series" \\
  9. --title "SOFTWARE SERIES" \\
  10. --no-cancel --item-help --checklist \\
  11. "The following series of software were found for installation.\n\n\\
  12. Use the cursor keys and \\Z3[Space]\\Zn to deselect the software series\n\\
  13. that you do not want to include. Once ready, press \\Z3[Enter]\Zn to \
  14. continue..." $(( LINES - 5 )) 68 12 \\
  15. EOF
  16. find -- "$MEDIUM_SOURCE" -type f \( -name '*@*.tlz' -a ! -name '*-pass*' \) \
  17. -exec sh -c 'name="${1##*@}"; name="${name%.tlz}"; echo "$name"' _ {} \; | \
  18. sort -u | while read -r category
  19. do
  20. case $category in
  21. boot*)
  22. echo '"boot" "" ON "Necessary software to boot the system." \' >> ${SUBTMPDIR}/ShowSeries
  23. ;;
  24. compressors*)
  25. echo '"compressors" "" ON "Several compressors at user-level." \' >> ${SUBTMPDIR}/ShowSeries
  26. ;;
  27. daemons*)
  28. echo '"daemons" "" ON "System-related daemons." \' >> ${SUBTMPDIR}/ShowSeries
  29. ;;
  30. data*)
  31. echo '"data" "" ON "Essential configuration files." \' >> ${SUBTMPDIR}/ShowSeries
  32. ;;
  33. db*)
  34. echo '"db" "" ON "Databases such as BerkeleyDB, GDBM, and the system Time Zone Database (tzdb)." \' >> ${SUBTMPDIR}/ShowSeries
  35. ;;
  36. devel*)
  37. echo '"devel" "" ON "Compilers, programming languages and debuggers." \' >> ${SUBTMPDIR}/ShowSeries
  38. ;;
  39. dict*)
  40. echo '"dict" "" ON "Spell checker software and dictionaries." \' >> ${SUBTMPDIR}/ShowSeries
  41. ;;
  42. docbook*)
  43. echo '"docbook" "" ON "SGML and XML support for DocBook documents." \' >> ${SUBTMPDIR}/ShowSeries
  44. ;;
  45. gnupg*)
  46. echo '"gnupg" "" ON "The GNU privacy guard." \' >> ${SUBTMPDIR}/ShowSeries
  47. ;;
  48. kernel*)
  49. echo '"kernel" "" ON "The Linux-libre kernel and related." \' >> ${SUBTMPDIR}/ShowSeries
  50. ;;
  51. libs*)
  52. echo '"libs" "" ON "The system libraries." \' >> ${SUBTMPDIR}/ShowSeries
  53. ;;
  54. lua*)
  55. echo '"lua" "" ON "The Lua programming language and modules." \' >> ${SUBTMPDIR}/ShowSeries
  56. ;;
  57. manuals*)
  58. echo '"manuals" "" ON "The manual pages." \' >> ${SUBTMPDIR}/ShowSeries
  59. ;;
  60. networking*)
  61. echo '"networking" "" ON "Clients and servers for networking." \' >> ${SUBTMPDIR}/ShowSeries
  62. ;;
  63. perl*)
  64. echo '"perl" "" ON "The Perl programming language and modules." \' >> ${SUBTMPDIR}/ShowSeries
  65. ;;
  66. python*)
  67. echo '"python" "" ON "The Python programming language and modules." \' >> ${SUBTMPDIR}/ShowSeries
  68. ;;
  69. ruby*)
  70. echo '"ruby" "" ON "The Ruby programming language and modules." \' >> ${SUBTMPDIR}/ShowSeries
  71. ;;
  72. shells*)
  73. echo '"shells" "" ON "Command interpreters for the system." \' >> ${SUBTMPDIR}/ShowSeries
  74. ;;
  75. tools*)
  76. echo '"tools" "" ON "Tools and complements of the base system." \' >> ${SUBTMPDIR}/ShowSeries
  77. ;;
  78. x-apps*)
  79. echo '"x-apps" "" ON "A useful collection of applications for the X Window System." \' >> ${SUBTMPDIR}/ShowSeries
  80. ;;
  81. x-libs*)
  82. echo '"x-libs" "" ON "A useful collection of libraries for the X Window System." \' >> ${SUBTMPDIR}/ShowSeries
  83. ;;
  84. xorg_app*)
  85. echo '"xorg_app" "" ON "The X Window System applications." \' >> ${SUBTMPDIR}/ShowSeries
  86. ;;
  87. xorg_data*)
  88. echo '"xorg_data" "" ON "Bitmaps, cursor themes and configuration files." \' >> ${SUBTMPDIR}/ShowSeries
  89. ;;
  90. xorg_doc*)
  91. echo '"xorg_doc" "" ON "The X Window System documentation." \' >> ${SUBTMPDIR}/ShowSeries
  92. ;;
  93. xorg_driver*)
  94. echo '"xorg_driver" "" ON "Video and Input drivers for the X Window System." \' >> ${SUBTMPDIR}/ShowSeries
  95. ;;
  96. xorg_extra*)
  97. echo '"xorg_extra" "" ON "Extra libraries and essential utilities for the X Window System." \' >> ${SUBTMPDIR}/ShowSeries
  98. ;;
  99. xorg_font*)
  100. echo '"xorg_font" "" ON "The X Window System font files." \' >> ${SUBTMPDIR}/ShowSeries
  101. ;;
  102. xorg_lib*)
  103. echo '"xorg_lib" "" ON "The X Window System libraries." \' >> ${SUBTMPDIR}/ShowSeries
  104. ;;
  105. xorg_mesa*)
  106. echo '"xorg_mesa" "" ON "The Mesa 3D graphics library." \' >> ${SUBTMPDIR}/ShowSeries
  107. ;;
  108. xorg_proto*)
  109. echo '"xorg_proto" "" ON "The X Window System header(s) for development." \' >> ${SUBTMPDIR}/ShowSeries
  110. ;;
  111. xorg_util*)
  112. echo '"xorg_util" "" ON "The X Window System utilities." \' >> ${SUBTMPDIR}/ShowSeries
  113. ;;
  114. xorg_xcb*)
  115. echo '"xorg_xcb" "" ON "The XCB protocol." \' >> ${SUBTMPDIR}/ShowSeries
  116. ;;
  117. xorg_xserver*)
  118. echo '"xorg_xserver" "" ON "The X Window System server." \' >> ${SUBTMPDIR}/ShowSeries
  119. ;;
  120. tde_i18n*)
  121. echo '"tde_i18n" "" ON "Internationalization translations for TDE." \' >> ${SUBTMPDIR}/ShowSeries
  122. ;;
  123. tde*)
  124. echo '"tde" "" ON "The Trinity Desktop Environment (TDE)." \' >> ${SUBTMPDIR}/ShowSeries
  125. ;;
  126. *)
  127. echo "\"${category}\" \"\" ON \"Description not available.\" \\" >> ${SUBTMPDIR}/ShowSeries
  128. ;;
  129. esac
  130. done
  131. # Check if there are any detected series
  132. if test ! -f ${SUBTMPDIR}/ShowSeries || test ! -s ${SUBTMPDIR}/ShowSeries
  133. then
  134. echo "${PROGRAM}: Error no series found. Aborting..." 1>&2
  135. exit 99;
  136. fi
  137. echo ' 2> ${SUBTMPDIR}/return-ShowSeries' >> ${SUBTMPDIR}/ShowSeries
  138. touch ${SUBTMPDIR}/return-ShowSeries
  139. . ${SUBTMPDIR}/ShowSeries; # Show menu.
  140. if test ! -f ${SUBTMPDIR}/return-ShowSeries || test ! -s ${SUBTMPDIR}/return-ShowSeries
  141. then
  142. echo "${PROGRAM}: No series were selected. Aborting..." 1>&2
  143. exit 99;
  144. fi
  145. # Append a new line for reading (this will be done from 'InstallPackages')
  146. echo "" >> ${SUBTMPDIR}/return-ShowSeries