Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv23618/scripts
Added Files:
openl2tp
Log Message:
- added openl2tpd
- updated e1000 driver
- updated unionfs
--- NEW FILE: openl2tp ---
#!/bin/bash
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: l2tpd
# Required-Start: $basebuildtools $libs ppp
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: Layer 2 Tunneling Protocol
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
MYNAME=openl2tp
case $1 in
build )
if [ "$CONFIG_L2TPD" = "y" ]; then
if [ ! -f openl2tpd-patches.done ]; then
#pushd $KERNELDIR || exit 1
#bzcat $SRCDIR/linux-2.6.*openl2tp.patch.bz2 | patch -p1 || exit 1
#popd
bzcat $SRCDIR/openl2tp-0.19_ppp_unix.c.patch.bz2 | patch -p1 || exit 1
touch openl2tpd-patches.done
fi
replace_str usl/Makefile "-Wall -Werror" "-Wall "
make $PMAKE L2TP_KERNELDIR=$KERNELDIR || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_L2TPD" = "y" ]; then
rm -rf $TMPDIR || exit 1
mkdir -p $TMPDIR || exit 1
make install DESTDIR=$TMPDIR L2TP_KERNELDIR=$KERNELDIR || exit 1
copy_docs $TMPDIR || exit 1
rm -rf $TMPDIR/usr/lib/*a || exit 1
copy_files $TMPDIR/* $CDDIR || exit 1
copy_files etc/sysconfig/* $ETCDIR/etc/sysconfig/ || exit 1
# Copy our own startup script into /etc/init.d
cp $MYDIR/scripts/l2tpd $ETCDIR/etc/init.d || exit 1
# Create the l2tp option in the config file
echo "# Start $MYNAME?" >> $CONFIGFILE
echo "START_L2TPD=no" >> $CONFIGFILE
echo >> $CONFIGFILE
echo "HELP_L2TPD=\"L2TPD is an implementation of the l2tp protocol (http://opensource.katalix.com/openl2tp)\"" >> $SOFTWAREHELP
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|