|
From: Serge L. <sma...@us...> - 2009-01-07 06:28:01
|
Update of /cvsroot/devil-linux/build/scripts In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv5697 Modified Files: strongswan Log Message: - added web-based managment interface Index: strongswan =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/strongswan,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- strongswan 24 Jul 2008 22:03:12 -0000 1.5 +++ strongswan 7 Jan 2009 06:27:53 -0000 1.6 @@ -24,7 +24,7 @@ source $MYDIR/settings if [ "$CONFIG_CURL" = "y" ]; then - OPTIONS=" --enable-http" + OPTIONS=" --enable-curl " fi if [ "$CONFIG_OPENLDAPLIB" = "y" ]; then OPTIONS="$OPTIONS --enable-ldap " @@ -34,14 +34,35 @@ OPTIONS="$OPTIONS --enable-mysql " fi -if [ "$CONFIG_SQLITE" != "y" ]; then - OPTIONS="$OPTIONS --disable-sqlite " +if [ "$CONFIG_SQLITE" = "y" ]; then + OPTIONS="$OPTIONS --enable-sqlite " fi case $1 in build ) if [ "$CONFIG_STRONGSWAN" = "y" ]; then - ./configure --prefix=/usr --sysconfdir=/etc --enable-cisco-quirks --enable-smp $OPTIONS || exit 1 + # Web management console + CSDIR=$(find_src_dir clearsilver) # clearsilver lib + FCGIDIR=$(find_src_dir fcgi) # fcgi lib + if [ x"$CSDIR" = "x" -o x"$FCGIDIR" = "x" ]; then + echo "Necessary libs not found, try to build strongswan without web interface" + else + pushd $CSDIR > /dev/null + echo "Building clearsilver lib" + ./configure --prefix=/usr --disable-python --disable-perl || exit 1 + make || exit 1 + make install || exit 1 + popd > /dev/null + pushd $FCGIDIR > /dev/null + echo "Building fcgi lib" + ./configure --prefix=/usr || exit 1 + make || exit 1 + make install || exit 1 + popd > /dev/null + OPTIONS="$OPTIONS --enable-manager" + fi + + ./configure --prefix=/usr --sysconfdir=/etc/strongswan --enable-cisco-quirks --enable-smp $OPTIONS || exit 1 make $PMAKE || exit 1 strip_debug fi |