|
#!/bin/bash
|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/base/util-linux/util-linux.conf
|
|
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
hook_add premake 5 "cp hwclock/hwclock.c{,.orig}; \
|
|
sed 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
|
|
hwclock/hwclock.c.orig > hwclock/hwclock.c; \
|
|
mkdir -pv ${CLFS}/var/lib/hwclock"
|
|
|
|
# The following options make this package compatible to util-linux
|
|
# wrt. available programs and installation paths.
|
|
var_append extraconfopt ' ' '--enable-arch'
|
|
var_append extraconfopt ' ' '--enable-partx'
|
|
var_append extraconfopt ' ' '--enable-raw'
|
|
var_append extraconfopt ' ' '--enable-rdev'
|
|
var_append extraconfopt ' ' '--enable-write'
|
|
var_append extraconfopt ' ' '--disable-wall'
|
|
|
|
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,"'
|
|
|
|
# The following programs are no longer available in util-linux-ng:
|
|
# sbin/elvtune
|
|
postmake="util_linux_postmake"
|
|
util_linux_postmake() {
|
|
$CC $confdir/freeramdisk.c -o $root/sbin/freeramdisk
|
|
|
|
ln -svf scriptreplay.1 $mandir/man1/replay.1
|
|
ln -svf scriptreplay $bindir/replay
|
|
|
|
if [ ! -e $root/etc/fdprm ] ; then
|
|
cp -a $confdir/etc_fdprm.txt $root/etc/fdprm
|
|
fi
|
|
}
|