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
if [ "${PACKAGE%.zip}" = "${PACKAGE}" ]; then
if [[ -e unpacked ]] ; then
UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^./@@;s@/.*@@'`
[[ -n $UNPACKDIR ]] && [[ -d $UNPACKDIR ]] && rm -rf $UNPACKDIR
fi
tar -xvf $PACKAGE > unpacked
UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^./@@;s@/.*@@'`
else
UNPACKDIR=${PACKAGE%.zip}
[[ -n $UNPACKDIR ]] && [[ -d $UNPACKDIR ]] && rm -rf $UNPACKDIR
unzip -d $UNPACKDIR ${PACKAGE}
fi
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 ${FTP_SERVER}svn/
/$
||
wget -T 30 -t 5
||
wget -T 30 -t 5
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**