00
0
SCRIPT is
FTPDIR is
#!/bin/bash
set -e
PKG_DIR=
cd $SRC_DIR/$PKG_DIR
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 [[ -e unpacked ]] ; then
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
[[ -n $UNPACKDIR ]] && [[ -d $UNPACKDIR ]] && rm -rf $UNPACKDIR
fi
tar -xvf $PACKAGE > unpacked
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
cd $UNPACKDIR
sudo /sbin/
ldconfig
mkdir -p ${section}
cd ${section}
for line in $(grep -v '^#' ../${sect_ver}.wget) ; do
if [[ ! -f ${line} ]] ; then
if [[ -f $SRC_ARCHIVE/Xorg/${section}/${line} ]] ; then
cp $SRC_ARCHIVE/Xorg/${section}/${line} ${line}
elif [[ -f $SRC_ARCHIVE/Xorg/${line} ]] ; then
cp $SRC_ARCHIVE/Xorg/${line} ${line}
elif [[ -f $SRC_ARCHIVE/${section}/${line} ]] ; then
cp $SRC_ARCHIVE/${section}/${line} ${line}
elif [[ -f $SRC_ARCHIVE/${line} ]] ; then
cp $SRC_ARCHIVE/${line} ${line}
else
wget -T 30 -t 5 ${FTP_X_SERVER}pub/individual/${section}/${line} || \
wget -T 30 -t 5 http://xorg.freedesktop.org/releases/individual/${section}/${line}
fi
fi
done
md5sum -c ../${sect_ver}.md5
cp ../${sect_ver}.wget ../${sect_ver}.wget.orig
cp ../${sect_ver}.md5 ../${sect_ver}.md5.orig
for package in $(grep -v '^#' ../${sect_ver}.wget) ; do
packagedir=$(echo $package | sed 's/.tar.bz2//')
tar -xf ${package}
cd ${packagedir}
cd ..
rm -rf ${packagedir}
sed -i "/${package}/d" ../${sect_ver}.wget
sed -i "/${package}/d" ../${sect_ver}.md5
done
mv ../${sect_ver}.wget.orig ../${sect_ver}.wget
mv ../${sect_ver}.md5.orig ../${sect_ver}.md5
sudo /sbin/
ldconfig
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
fi
fi
|| \
wget -T 30 -t 5
fi
fi
echo "
$PACKAGE" | md5sum -c -
wget -T 30 -t 5
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}blfs/svn/
/$PACKAGE1
|| \
wget -T 30 -t 5
fi
fi
echo "
$PACKAGE1" | md5sum -c -
wget -T 30 -t 5
wget -T 30 -t 5
sudo sh -c '
'
[[ ! -d $SRC_DIR/blfs-bootscripts ]] && mkdir $SRC_DIR/blfs-bootscripts
pushd $SRC_DIR/blfs-bootscripts
URL=
BOOTPACKG=$(basename $URL)
[[ ! -f "$BOOTPACKG" ]] && { wget -T 30 -t 5 $URL; rm -f unpacked; }
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
make -j1
**EDITME
EDITME**