カテゴリ

DJB

Send to Kindle

#! /bin/sh

PACK=daemontools-0.76

create_package_dir(){
if [ -e /package ] then
echo "/package is already exist."
else
ln -s pwd /package
fi
}

dl_daemontools(){
if [ -e $PACK.tar.gz ] then
echo "$PACK.tar.gz is already exist."
else
wget http://cr.yp.to/daemontools/$PACK.tar.gz
fi
}

dl_daemontools_patch(){
if [ -e daemontools-0.76.errno.patch ] then
echo "daemontools errno patch is already exist."
else
wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch
fi
}

install_daemontools(){
if [ -e $PACK.tar.gz ] then
tar zxvf $PACK.tar.gz
cd admin/$PACK

if [ -e ../../daemontools-0.76.errno.patch ] then
patch -s -p1

コメント