# hdw - linux glibc package # # author: hackbard@hackdaworld.dyndns.org # # [V] 2.3.5 # [S] 2-3 # [D] glibc-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/ # [D] glibc-linuxthreads-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/ kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'` kernver=`echo $kernver | awk -F. '{ print $1 "." $2 }'` extraver="-${ver}" [ "$ver" = "cvs" ] && extraver="" confopt="$confopt --enable-add-ons --disable-profile" confopt="$confopt --libexecdir=$prefix/lib/glibc --without-cvs" confopt="$confopt --enable-kernel=$kernver" pre_install() { echo "creating some files needed for build ..." mkdir -p $prefix/etc [ ! -f $root/etc/ld.so.conf ] && touch $root/etc/ld.so.conf [ ! -c $root/dev/null ] && mknod -m 0666 $root/dev/null c 1 3 echo "done (file creating)" } build_main() { # create and change to seperated build directory mkdir -p ../glibc-build && cd ../glibc-build # configure and prepare Makefile ../glibc${extraver}/configure $confopt # build and install make && make install && make localedata/install-locales }