/tools
0
#!
/bin/bash
set +h
set -e
echo -e "\n\nTotalseconds: $SECONDS\n"
exit
wrapInstall '
mkdir -pv $PKG_DEST/{boot,etc}
mkdir -pv $PKG_DEST/usr/{bin,include,lib/pkgconfig,sbin}
mkdir -pv $PKG_DEST/usr/share/{doc,info,bash-completion/completions}
mkdir -pv $PKG_DEST/usr/share/man/man{1..8}
case $(uname -m) in
x86_64) mkdir -v $PKG_DEST/lib64 ;;
esac
ln -sv usr/sbin $PKG_DEST
ln -sv usr/bin $PKG_DEST
ln -sv usr/lib $PKG_DEST
rm -fv /usr/share/man/{man3/getspnam.3,man5/passwd.5}
rm -fv /usr/share/man/man8/nologin.8
rm -fv /sbin/nologin
'
PREV_SEC=${SECONDS}
packInstall
SECONDS=${PREV_SEC}
rm -fv $PKG_DEST/usr/share/man/{man3/getspnam.3,man5/passwd.5}
rm -fv $PKG_DEST/usr/share/man/man8/nologin.8
rm -fv $PKG_DEST/sbin/nologin
for dir in $PKG_DEST/usr/share/man/man{1..8} \
$PKG_DEST/usr/share/bash-completion{/completions,} \
$PKG_DEST/usr/share/{doc,info,man,} \
$PKG_DEST/usr/lib/pkgconfig \
$PKG_DEST/usr/{lib,bin,sbin,include} \
$PKG_DEST/{boot,etc}; do
[ -d "$dir" ] && [ -z "$(ls $dir)" ] && rmdir -v $dir
done
[ -d $PKG_DEST/lib64 ] && [ -z "$(ls $PKG_DEST/lib64)" ] &&
rmdir -v $PKG_DEST/lib64
rm -v $PKG_DEST/{lib,bin,sbin}
rm -rf $PKG_DEST/var/{run,lock}
[ -d $PKG_DEST/var ] && [ -z "$(ls $PKG_DEST/var)" ] && rmdir -v $PKG_DEST/var
PREV_SEC=${SECONDS}
packInstall
SECONDS=${PREV_SEC}
rm -rf $PKG_DEST
if LOCALE=`grep "
/" $PKGDIR/localedata/SUPPORTED`; then
CHARMAP=`echo $LOCALE | sed 's,[^/]*/\([^ ]*\) [\],\1,'`
INPUT=`echo $LOCALE | sed 's,[/.].*,,'`
LOCALE=`echo $LOCALE | sed 's,/.*,,'`
localedef -i $INPUT -f $CHARMAP $LOCALE
fi
0
#!/bin/bash
set +h
set -e
PREV_SEC=${SECONDS}
packInstall
SECONDS=${PREV_SEC}
rm -rf "$PKG_DEST"
echo -e "\n\nTotalseconds: $SECONDS\n"
exit
make mrproper
cp -v ../kernel-config .config
timeout 60 make oldconfig ||\
{ echo kernel config is not up to date; exit 124; }
if [[ ! -d /lib/udev/devices ]] ; then
fi
make -j1
OLD_PKG_DEST="$PKG_DEST"
OLD_PKGDIR=$PKGDIR
PKG_DEST=$(dirname $OLD_PKG_DEST)/001-tzdata
PKGDIR=$(dirname $PKGDIR)/tzdata-
ZONEINFO=$PKG_DEST
PREV_SEC=${SECONDS}
packInstall
SECONDS=${PREV_SEC}
rm -rf $PKG_DEST
wrapInstall '
ZONEINFO=
'
PREV_SEC=${SECONDS}
packInstall
SECONDS=${PREV_SEC}
PKG_DEST=$OLD_PKG_DEST
unset OLD_PKG_DEST
PKGDIR=$OLD_PKGDIR
unset OLD_PKGDIR
make -j1
.
**EDITME
EDITME**
LOCAL
UTC
0
1
DNS=
"
LOGLEVEL="
make install_root=$PKG_DEST -j1
install
make -j1 PREFIX=$PKG_DEST/usr install
make -j1 BINDIR=$PKG_DEST/sbin prefix=$PKG_DEST install
make -j1 DESTDIR=$PKG_DEST DOCDIR=
install
make -j1 ROOT=$PKG_DEST
install
make -j1 INSTALL_MOD_PATH=$PKG_DEST
install
make -j1 DESTDIR=$PKG_DEST
DESTDIR=$PKG_DEST ninja
>$PKG_DEST/
$PKG_DEST/
'
'\''
#
#
|| true
#
>> $TEST_LOG 2>&1 || true
make -k
>> $TEST_LOG 2>&1 || true
>> $TEST_LOG 2>&1 || true
PREV_SEC=${SECONDS}
ROOT=
$LFS/
/
SCRIPT_ROOT=
SRC_DIR=${ROOT}sources
VERSION=
PKG_DEST=${SRC_DIR}/
-
PACKAGE=
source ${ROOT}${SCRIPT_ROOT}/packInstall.sh
export -f packInstall
export -f wrapInstall
cd $SRC_DIR
PKGDIR=$(tar -tf $PACKAGE | head -n1 | sed 's@^./@@;s@/.*@@')
export PKGDIR VERSION PKG_DEST
if [ -d "$PKGDIR" ]; then rm -rf $PKGDIR; fi
if [ -d "$PKG_DEST" ]; then rm -rf $PKG_DEST; fi
if [ -d "${PKGDIR%-*}-build" ]; then rm -rf ${PKGDIR%-*}-build; fi
echo "KB: $(du -skx --exclude=lost+found --exclude=var/lib --exclude=$SCRIPT_ROOT $ROOT)"
tar -xf $PACKAGE
cd $PKGDIR
export MAKEFLAGS="-j
"
SECONDS=${PREV_SEC}
# Start of LFS book script
# End of LFS book script
echo "KB: $(du -skx --exclude=lost+found --exclude=var/lib --exclude=$SCRIPT_ROOT $ROOT)"
cd $SRC_DIR
rm -rf $PKGDIR
if [ -d "${PKGDIR%-*}-build" ]; then rm -rf ${PKGDIR%-*}-build; fi