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.3 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/util-linux/util-linux.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. hook_add premake 5 "cp hwclock/hwclock.c{,.orig}; \
  24. sed 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
  25. hwclock/hwclock.c.orig > hwclock/hwclock.c; \
  26. mkdir -pv ${CLFS}/var/lib/hwclock"
  27. # hook_add postmake 5 "mv -v ${CLFS}/usr/bin/logger ${CLFS}/bin"
  28. tmp1=`echo "$arch_machine" | sed 's/i.86/intel/;s/arm.*/arm/'`
  29. var_append makeopt " " "CC='$CC' CPU='$arch_machine' ARCH='$tmp1'"
  30. var_append makeinstopt " " "CC='$CC' CPU='$arch_machine' ARCH='$tmp1' DESTDIR='$root'"
  31. var_append makeopt " " 'HAVE_KILL=yes HAVE_SLN=yes'
  32. var_append makeinstopt " " 'HAVE_KILL=yes HAVE_SLN=yes USE_TTY_GROUP=no'
  33. # On arm, using libblkid causes qemu 0.9.0 to exit with the error
  34. # lsi_scsi: error: readb 0x8
  35. # when mount tries to guess the fs type of CD images.
  36. if [ "$arch" = arm ] ; then
  37. var_append makeopt " " "HAVE_BLKID=no"
  38. fi
  39. util_linux_postmake() {
  40. rm -f $root/sbin/sln # we are using sln from glibc
  41. $CC $confdir/freeramdisk.c -o $root/sbin/freeramdisk
  42. $MAKE -C partx
  43. cp -v partx/{partx,delpart,addpart} $root/sbin
  44. install -m 644 misc-utils/scriptreplay.1 $mandir/man1/scriptreplay.1
  45. install -m 755 misc-utils/scriptreplay.pl $bindir/scriptreplay.pl
  46. cd $mandir/man1
  47. ln -s -v -f scriptreplay.1 replay.1
  48. cd $bindir/
  49. ln -s -v -f scriptreplay.pl replay
  50. }
  51. postmake="util_linux_postmake"
  52. var_append patchfiles " " "${confdir}/cryptoloop-support.diff"