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.

61 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../busybox/busybox.conf
  5. # Copyright (C) 2006 - 2007 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. runconf=0
  17. for x in $( match_source_file -p patch ); do
  18. var_append patchfiles ' ' $x
  19. done
  20. . $base/package/*/uclibc/functions.in
  21. hook_add premake 1 'auto_config 2'
  22. # add basic config
  23. var_append conffiles ' ' "$confdir/busybox.config"
  24. [ "$SDECFG_STATIC" != 1 ] || var_append conffiles ' ' "$confdir/static.config"
  25. # add custom/target configuration from $targetdir
  26. if [ -e $targetdir/busybox.config ] ; then
  27. var_append conffiles ' ' $targetdir/busybox.config
  28. fi
  29. if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then
  30. prefix="${SDECFG_PKG_BUSYBOX_ET_DIR#/}"
  31. set_confopt
  32. var_append flistroot ' ' "${prefix%%/*}"
  33. var_append conffiles ' ' "$confdir/emergency.config"
  34. fi
  35. # FIXME: shouldn't emergency thing force the symlinks creation? (on config.in)
  36. if [ "$SDECFG_PKG_BUSYBOX_SYMLINKS" = 0 ] ; then
  37. makeinstopt=''
  38. hook_add postmake 5 'cp -v busybox $root/$bindir'
  39. else
  40. if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then
  41. var_append makeinstopt ' ' "PREFIX=${SDECFG_PKG_BUSYBOX_ET_DIR#/}"
  42. else
  43. var_append makeinstopt ' ' "PREFIX=$root"
  44. fi
  45. fi
  46. # save .config file for the future
  47. hook_add postinstall 9 'cp -v .config busybox.links $root/$docdir'