Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv26230
Added Files:
expat httpd
Log Message:
initial checkin of apache2 and expat
--- NEW FILE: expat ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/expat,v $
# $Revision: 1.1 $
# $Date: 2003/10/14 02:04:31 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: expat
# Required-Start: $basebuildtools glibc
# Required-Stop:
# Default-Start: 1
# Default-Stop:
# Description: description
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
source $MYDIR/functions
case $1 in
build )
./configure --prefix=/usr --localstatedir=/var || exit 1
make $PMAKE all || exit 1
strip_debug
# install it in local system, because other programs could need it
make install
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
--- NEW FILE: httpd ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/httpd,v $
# $Revision: 1.1 $
# $Date: 2003/10/14 02:04:31 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $basebuildtools $libs
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: description
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
source $MYDIR/functions
MYNAME=APACHE2
case $1 in
build )
if [ "$CONFIG_HTTPD" = "y" ]; then
./configure --enable-v4-mapped --enable-auth-anon --enable-auth-dbm --enable-auth-digest \
--enable-case-filter --enable-case-filter-in --enable-ext-filter \
--enable-deflate --enable-logio --enable-mime-magic --enable-cern-meta --enable-expires --enable-headers \
--enable-usertrack --enable-unique-id --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http \
--enable-ssl=shared --enable-bucketeer --enable-http --enable-info --enable-cgi --enable-cgi --enable-vhost-alias \
--enable-rewrite --enable-so --enable-dav --enable-dav-fs \
--enable-mods-shared=all --enable-suexec --with-suexec-caller=www \
--enable-layout=Debian || exit 1
# not working --enable-ldap --enable-auth-ldap --enable-mem-cache
make $PMAKE all || exit 1
strip_debug
# install it, we need the libraries later
make install || exit 1
fi
;;
install )
if [ "$CONFIG_HTTPD" = "y" ]; then
rm -rf $WORKDIR/tmp
make install DESTDIR=$WORKDIR/tmp
rm -rf $WORKDIR/tmp/etc/apache2/build || exit 1
rm -rf $WORKDIR/tmp/usr/lib/*a || exit 1
rm -rf $WORKDIR/tmp/usr/include || exit 1
cp -dpR $WORKDIR/tmp/etc/* $ETCDIR/etc/ || exit 1
rm -rf $WORKDIR/tmp/etc
copy_docs $WORKDIR/tmp/
cp -dpR $WORKDIR/tmp/* $CDDIR || exit 1
rm -rf $WORKDIR/tmp || exit 1
cp $MYDIR/scripts/httpd $ETCDIR/etc/init.d || exit 1
echo "# Start $MYNAME?" >> $CONFIGFILE
echo "START_$MYNAME=no" >> $CONFIGFILE
echo >> $CONFIGFILE
echo "HELP_$MYNAME=\"this is the well know Apache Web server\"" >> $SOFTWAREHELP
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|