00
0
SCRIPT is
FTPDIR is
#!/bin/bash
set -e
PKG_DIR=
cd $SRC_DIR/$PKG_DIR
sudo
rm -rf $UNPACKDIR unpacked
exit
mkdir -p $SRC_DIR/$PKG_DIR
cd $SRC_DIR/$PKG_DIR
find . -maxdepth 1 -mindepth 1 -type d | xargs
sudo
rm -rf
case $PACKAGE in
*.tar.gz|*.tar.bz2|*.tar.xz|*.tgz|*.tar.lzma)
tar -xvf $PACKAGE > unpacked
UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^\./@@;s@/.*@@'`
;;
*.tar.lz)
bsdtar -xvf $PACKAGE 2> unpacked
UNPACKDIR=`head -n1 unpacked | cut -d" " -f2 | sed 's@^\./@@;s@/.*@@'`
;;
*.zip)
zipinfo -1 $PACKAGE > unpacked
UNPACKDIR="$(sed 's@/.*@@' unpacked | uniq )"
if test $(wc -w <<< $UNPACKDIR) -eq 1; then
unzip $PACKAGE
else
UNPACKDIR=${PACKAGE%.zip}
unzip -d $UNPACKDIR $PACKAGE
fi
;;
*)
UNPACKDIR=$PKG_DIR-build
mkdir $UNPACKDIR
cp $PACKAGE $UNPACKDIR
;;
esac
cd $UNPACKDIR
sudo /sbin/
ldconfig
=
if [[ ! -f $
]] ; then
if [[ -f $SRC_ARCHIVE/$PKG_DIR/$
]] ; then
cp $SRC_ARCHIVE/$PKG_DIR/$
$
elif [[ -f $SRC_ARCHIVE/$
]] ; then
cp $SRC_ARCHIVE/$
$
else
wget -T 30 -t 5
||
wget -T 30 -t 5
||
wget -T 30 -t 5 ${FTP_SERVER}svn/
/$
cp $
$SRC_ARCHIVE
fi
fi
echo "
$
" | md5sum -c -
PATCH
PACKAGE1
sudo -E sh << ROOT_EOF
ROOT_EOF
[[ ! -d $SRC_DIR/blfs-bootscripts ]] && mkdir $SRC_DIR/blfs-bootscripts
pushd $SRC_DIR/blfs-bootscripts
URL=
BOOTPACKG=$(basename $URL)
if [[ ! -f $BOOTPACKG ]] ; then
if [[ -f $SRC_ARCHIVE/$PKG_DIR/$BOOTPACKG ]] ; then
cp $SRC_ARCHIVE/$PKG_DIR/$BOOTPACKG $BOOTPACKG
elif [[ -f $SRC_ARCHIVE/$BOOTPACKG ]] ; then
cp $SRC_ARCHIVE/$BOOTPACKG $BOOTPACKG
else
wget -T 30 -t 5 $URL
cp $BOOTPACKG $SRC_ARCHIVE
fi
rm -f unpacked
fi
if [[ -e unpacked ]] ; then
BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
if ! [[ -d $BOOTUNPACKDIR ]]; then
rm unpacked
tar -xvf $BOOTPACKG > unpacked
BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
fi
else
tar -xvf $BOOTPACKG > unpacked
BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
fi
cd $BOOTUNPACKDIR
popd
#
make
-k
|| true
make -j1
\$
\`
\\
**EDITME
EDITME**
**EDITME
EDITME**