00
0
SCRIPT is
FTPDIR is
#!/bin/bash
set -e
PKG_DIR=
cd $SRC_DIR/$PKG_DIR
sudo
rm -rf $UNPACKDIR unpacked
# Useless SRC_DIR=$SRC_DIR
cd $SRC_DIR
mkdir -p xc
cd xc
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
sudo /sbin/
ldconfig
if [[ $XORG_PREFIX != /usr ]] ; then
fi
PACKAGE=
if [[ ! -f $PACKAGE ]] ; then
if [[ -f $SRC_ARCHIVE/$PKG_DIR/$PACKAGE ]] ; then
cp $SRC_ARCHIVE/$PKG_DIR/$PACKAGE $PACKAGE
elif [[ -f $SRC_ARCHIVE/$PACKAGE ]] ; then
cp $SRC_ARCHIVE/$PACKAGE $PACKAGE
else
wget -T 30 -t 5 ${FTP_SERVER}svn/
/$PACKAGE
|| \
wget -T 30 -t 5
cp $PACKAGE $SRC_ARCHIVE
fi
fi
|| \
wget -T 30 -t 5
cp $PACKAGE $SRC_ARCHIVE
fi
fi
echo "
$PACKAGE" | md5sum -c -
PATCH=
if [[ ! -f $PATCH ]] ; then
if [[ -f $SRC_ARCHIVE/$PKG_DIR/$PATCH ]] ; then
cp $SRC_ARCHIVE/$PKG_DIR/$PATCH $PATCH
elif [[ -f $SRC_ARCHIVE/$PATCH ]] ; then
cp $SRC_ARCHIVE/$PATCH $PATCH
else
wget -T 30 -t 5
cp $PATCH $SRC_ARCHIVE
fi
fi
PACKAGE1=
if [[ ! -f $PACKAGE1 ]] ; then
if [[ -f $SRC_ARCHIVE/$PKG_DIR/$PACKAGE1 ]] ; then
cp $SRC_ARCHIVE/$PKG_DIR/$PACKAGE1 $PACKAGE1
elif [[ -f $SRC_ARCHIVE/$PACKAGE1 ]] ; then
cp $SRC_ARCHIVE/$PACKAGE1 $PACKAGE1
else
wget -T 30 -t 5 ${FTP_SERVER}svn/
/$PACKAGE1
|| \
wget -T 30 -t 5
cp $PACKAGE1 $SRC_ARCHIVE
fi
fi
echo "
$PACKAGE1" | md5sum -c -
wget -T 30 -t 5
wget -T 30 -t 5
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
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
if ! [[ -d $UNPACKDIR ]]; then
rm unpacked
tar -xvf $BOOTPACKG > unpacked
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
fi
else
tar -xvf $BOOTPACKG > unpacked
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
fi
cd $UNPACKDIR
popd
section=
sect_ver=
#
make
-k
|| true
# bash -e
# exit
mkdir -p
rm -rf
make -j1
\$
\`
\\
**EDITME
EDITME**
**EDITME
EDITME**