]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/base/util-linux/util-linux
added devmapper, cryptsetup and libpopt
[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.12r
6 # [S] 1-2 2-15
7 # [D] util-linux-2.12r.tar.bz2 ftp://ftp.kernel.org/pub/linux/utils/util-linux/
8
9 if [ "$stage" = "1" ]; then
10         pre_install()   {
11                 sed "s%/usr/include%$prefix/include%g" configure > tmp~
12                 mv tmp~ 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 -v mount/{mount,umount} text-utils/more $prefix/bin
23                         }
24 fi
25
26 if [ "$stage" = "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