1 # hdw - linux util-linux package
3 # author: hackbard@hackdaworld.dyndns.org
7 # [D] util-linux-2.12q.tar.bz2 ftp://ftp.kernel.org/pub/linux/utils/util-linux/
9 if [ "$hdw_status" = "1" ]; then
11 cp configure configure.orig
12 sed "s%/usr/include%$prefix/include%g" configure.orig configure
18 make -C mount mount umount
19 make -C text-utils more
22 cp mount/{mount,umount} text-utils/more $prefix/bin
26 if [ "$hdw_status" = "2" ]; then
28 sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
29 hwclock/hwclock.c > tmp~ &&
30 mv tmp~ hwclock/hwclock.c &&
31 mkdir -p $root/var/lib/hwclock
34 cp $confdir/setclock_conf $root/etc/conf/setclock
35 chmod 644 $root/etc/conf/setclock
36 cp $confdir/setclock_script $root/etc/init.d/setclock
37 chmod 750 $root/etc/init.d/setclock
38 ln -svf ../setclock $root/etc/init.d/rc2.d/S05setclock
39 ln -svf ../setclock $root/etc/init.d/rc2.d/K95setclock
42 make_conf="HAVE_SLN=yes HAVE_KILL=yes"
43 install_conf="HAVE_SLN=yes HAVE_KILL=yes"