00
0
SCRIPT is
PACKAGE is
FTPDIR is
#!/bin/sh
set -e
SRC_ARCHIVE=$SRC_ARCHIVE
FTP_SERVER=$FTP_SERVER
PACKAGE=
PKG_DIR=
SRC_DIR=$SRC_DIR
cd $SRC_DIR/$PKG_DIR
rm -rf $UNPACKDIR unpacked
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@/.*@@'`
rm -rf $UNPACKDIR
fi
tar -xvf $PACKAGE > unpacked
UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
cd $UNPACKDIR
sudo
ldconfig
WGET_LST=
for package in $(cat $WGET_LST) ; do
packagedir=$(echo $package | sed 's/.tar.bz2//')
tar -xf $package
cd $packagedir
cd ..
rm -rf $packagedir
done
sudo
ldconfig
cdparanoia
docbk
gc
iso-codes
jpeg
lynx
ntp
openldap
OOo
pine
portmap
psutils
qpopper
qt-x11-free
sendmail
slib
tcl
tcp_wrappers
tetex
tidy
tk
unzip
wireless_tools
whois
Xorg
zip
-
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 ${FTP_SERVER}conglomeration/$PKG_DIR/$PACKAGE
|| \
wget
|| \
wget
fi
fi
echo "
$PACKAGE" | md5sum -c -
wget
wget
sudo sh -c "
"
#
make -k
|| true
**EDITME
EDITME**