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.

58 lines
2.4 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. # The following options make this package compatible to util-linux
  28. # wrt. available programs and installation paths.
  29. var_append extraconfopt ' ' '--enable-arch'
  30. var_append extraconfopt ' ' '--enable-partx'
  31. var_append extraconfopt ' ' '--enable-raw'
  32. var_append extraconfopt ' ' '--enable-rdev'
  33. var_append extraconfopt ' ' '--enable-write'
  34. var_append extraconfopt ' ' '--disable-wall'
  35. if [ "$ROCKCFG_PKG_UCLIBC_USEIT" = 1 ] ; then
  36. # E.g. mkfs doesn't link to an external libintl by itself,
  37. # causing a build failure if using NLS.
  38. var_append CC_WRAPPER_APPEND " " "-lintl"
  39. fi
  40. var_append INSTALL_WRAPPER_FILTER '|' 'sed -e"s,/usr/bin/\(arch\|dmesg\|more\|mount\|umount\),/bin/\1," -e"s,/usr/sbin/\(addpart\|agetty\|blockdev\|cfdisk\|ctrlaltdel\|delpart\|fdisk\|fsck.cramfs\|fsck.minix\|hwclock\|losetup\|mkfs\|mkfs.bfs\|mkfs.cramfs\|mkfs.minix\|mkswap\|partx\|pivot_root\|raw\|sfdisk\|swapoff\|swapon\),/sbin/\1,"'
  41. # The following programs are no longer available in util-linux-ng:
  42. # sbin/elvtune
  43. postmake="util_linux_postmake"
  44. util_linux_postmake() {
  45. $CC $confdir/freeramdisk.c -o $root/sbin/freeramdisk
  46. ln -svf scriptreplay.1 $mandir/man1/replay.1
  47. ln -svf scriptreplay $bindir/replay
  48. if [ ! -e $root/etc/fdprm ] ; then
  49. cp -a $confdir/etc_fdprm.txt $root/etc/fdprm
  50. fi
  51. }