OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../bash/bash.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. bash_which=1
  16. pkg_bash_postmake() {
  17. if [ "$bash_which" = "1" ]; then
  18. echo "Creating 'usr/bin/which' and 'bin/sh' ..."
  19. echo -e '#!/bin/bash\ntype -p "$@"' > $root/usr/bin/which
  20. chmod +x $root/usr/bin/which
  21. else
  22. echo "Creating 'bin/sh' ..."
  23. fi
  24. [ -f $root/usr/bin/bash ] && \
  25. mv -v $root/usr/bin/bash $root/bin/bash
  26. ln -sfv bash $root/bin/sh
  27. if [ "$SDECFG_CREATE_DOCS" != 0 ] ; then
  28. echo "Unpacking bash documentation ..."
  29. tar $taropt `match_source_file -p bash-doc`
  30. fi
  31. }
  32. pkg_bash_preconf() {
  33. # historic hack - still needed? -ReneR
  34. touch lib/malloc/malloc.c
  35. for x in `match_source_file -p 'bash3.*-.*'` ; do
  36. echo "Applying patch ${x##*/} ..."
  37. patch -p0 < $x
  38. done
  39. }
  40. pkg_bash_docver=$ver
  41. var_append confopt " " "--without-bash-malloc"
  42. [ "$SDECFG_PKG_BASH_PROGCOMP" = 0 ] &&
  43. var_append confopt " " "--disable-progcomp"
  44. [ "$SDECFG_PKG_BASH_HELP_CMD" = 0 ] &&
  45. var_append confopt " " "--disable-help-builtin"
  46. hook_add preconf 5 "pkg_bash_preconf"
  47. hook_add premake 5 "eval $MAKE $makeopt builtins/builtext.h" # parallel make
  48. hook_add postmake 5 "pkg_bash_postmake"