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.

63 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../util-linux/util-linux.conf
  5. # Copyright (C) 2006 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. # apply the patches defined in the util-linux.desc
  17. var_append patchfiles ' ' "`match_source_file -p patch`"
  18. prepare_cross_build() {
  19. # disable cramfs tools
  20. patch -p0 < $confdir/disable_cramfs_tools.diff
  21. }
  22. if ! atstage native; then
  23. hook_add premake 5 'prepare_cross_build'
  24. fi
  25. # CPU just selects optimization options, we can safely ignore this
  26. var_append makeopt " " "CPU=generic"
  27. var_append makeinstopt " " "CPU=generic"
  28. util_linux_postmake() {
  29. rm -f $root/sbin/sln # we are using sln from glibc
  30. $CC $confdir/freeramdisk.c -o $root/sbin/freeramdisk
  31. $MAKE -C partx
  32. cp -v partx/{partx,delpart,addpart} $root/sbin
  33. }
  34. hook_add postmake 5 "util_linux_postmake"
  35. util_linux_configure() {
  36. local k=
  37. (
  38. if pkginstalled shadow; then
  39. echo "HAVE_SHADOW=yes"
  40. else
  41. echo "HAVE_SHADOW=no"
  42. fi
  43. if pkginstalled pam; then
  44. echo "HAVE_PAM=yes"
  45. else
  46. echo "HAVE_PAM=no"
  47. fi
  48. # it was done on a patch
  49. echo "HAVE_KILL=yes"
  50. ) | while read k; do
  51. sed -i -e "s,^${k%%=*}=.*,$k," MCONFIG
  52. done
  53. }
  54. hook_add premake 6 'util_linux_configure'