0eac9de6519b5ef842aa2d33b569761aa66fcdd7
[hdw-linux/hdw-linux.git] / packages / base / util-linux / util-linux
1 # hdw - linux util-linux package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 2.12q
6 # [S] 1-8 2-15
7 # [D] util-linux-2.12q.tar.bz2 ftp://ftp.kernel.org/pub/linux/utils/util-linux/
8
9 if [ "$hdw_status" = "1" ]; then
10         pre_install()   {
11                 cp configure configure.orig
12                 sed "s%/usr/include%$prefix/include%g" configure.orig configure
13                 chmod 755 configure
14                         }
15         build_main()    {
16                 ./configure &&
17                 make -C lib &&
18                 make -C mount mount umount
19                 make -C text-utils more
20                         }
21         post_install()  {
22                 cp mount/{mount,umount} text-utils/more $prefix/bin
23                         }
24 fi
25
26 if [ "$hdw_status" = "2" ]; then
27         pre_install()   {
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
32                         }
33         post_install()  {
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
40                         }
41 confopt=""
42 make_conf="HAVE_SLN=yes HAVE_KILL=yes"
43 install_conf="HAVE_SLN=yes HAVE_KILL=yes"
44 fi