Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv4622/scripts
Added Files:
strongswan
Log Message:
- readded updated strongswan (disabled by default)
--- NEW FILE: strongswan ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/strongswan,v $
# $Revision: 1.2 $
# $Date: 2008/03/22 20:13: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: strongswan
# Required-Start: $basebuildtools $libs curl openldap
# 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
if [ "$CONFIG_CURL" = "y" ]; then
OPTIONS=" --enable-http"
fi
if [ "$CONFIG_OPENLDAPLIB" = "y" ]; then
OPTIONS="$OPTIONS --enable-ldap "
fi
case $1 in
build )
if [ "$CONFIG_STRONGSWAN" = "y" ]; then
./configure --prefix=/usr --sysconfdir=/etc --enable-cisco-quirks $OPTIONS
make $PMAKE || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_STRONGSWAN" = "y" ]; then
rm -rf $TMPDIR || exit 1
mkdir -p $TMPDIR || exit 1
make install DESTDIR=$TMPDIR || exit 1
exit 1
copy_docs $TMPDIR || exit 1
copy_files $TMPDIR/usr $CDDIR/ || exit 1
copy_files $TMPDIR/etc $ETCDIR/ || exit 1
rm -rf $TMPDIR || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|