mirror of the now-defunct rocklinux.org
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.

59 lines
2.2 KiB

  1. #!/bin/bash
  2. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  3. #
  4. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  5. # Please add additional copyright information _after_ the line containing
  6. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  7. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  8. #
  9. # ROCK Linux: rock-src/package/base/coreutils/coreutils.conf
  10. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version. A copy of the GNU General Public
  16. # License can be found at Documentation/COPYING.
  17. #
  18. # Many people helped and are helping developing ROCK Linux. Please
  19. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  20. # file for details.
  21. #
  22. # --- ROCK-COPYRIGHT-NOTE-END ---
  23. coreutils_postmake() {
  24. for x in chgrp chmod chown cp dd df ln ls mkdir mknod mv rm rmdir \
  25. rmdir sync date echo false pwd stty true uname sleep \
  26. cat cut sort
  27. do
  28. for y in usr/bin usr/sbin ; do
  29. if [ -f $root/$y/$x ] ; then
  30. echo "Move: /$y/$x -> /bin/$x"
  31. cp $root/$y/$x $root/bin/$x.new
  32. mv $root/bin/$x.new $root/bin/$x
  33. rm -f $root/$y/$x
  34. fi
  35. done
  36. done
  37. rm -f $root/usr/bin/ginstall
  38. ln -s install $root/usr/bin/ginstall
  39. echo '#!/usr/bin/perl' > $root/usr/bin/shuffle
  40. echo '$_{rand()." ".$_}=1 while(<>);foreach(keys%_){s/^\S+ //;print;}' >> $root/usr/bin/shuffle
  41. chmod +x $root/usr/bin/shuffle
  42. }
  43. postmake="coreutils_postmake"
  44. # disable some file provided by other packages:
  45. # uptime, groups, hostname, kill, su
  46. #
  47. var_append INSTALL_WRAPPER_FILTER "|" "sed -r 's,.*/share/man/.*/(uptime|groups|hostname|kill|su).1\$,$builddir/dummy,'"
  48. var_append INSTALL_WRAPPER_FILTER "|" "sed -r 's,.*/bin/(uptime|groups|hostname|kill|su)\$,$builddir/dummy,'"
  49. hook_add preconf 5 "echo 'fu_cv_sys_stat_statfs2_bsize=yes' > config.cache ; \
  50. echo ac_cv_c_restrict=__restrict >> config.cache"
  51. var_append extraconfopt " " "--cache-file=config.cache"
  52. hook_add premake 5 'sed -i "s/futimens/gl_&/" $(grep -lr futimens *); \
  53. touch man/uname.1 man/touch.1'