From: Heiko Z. <smi...@us...> - 2004-06-25 01:39:28
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12294 Added Files: openswan Removed Files: super-freeswan Log Message: updated files to reflect move from super-freeswan to openswan --- super-freeswan DELETED --- --- NEW FILE: openswan --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/openswan,v $ # $Revision: 1.1 $ # $Date: 2004/06/25 01:39:20 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: openswan # 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 MYNAME=OPENSWAN case $1 in build ) if [ "$CONFIG_OPENSWAN" = "y" ]; then # update kernel config if [ "$CONFIG_LINUX_VERSION" = "2.4" ]; then DIRS=$(ls klips/net/ipsec/alg/Config*) DIRS="klips/net/ipsec/Config.in $DIRS" for DIR in $DIRS do echo $DIR for CFG in $( grep tristate $DIR | cut -d "'" -f 3 | cut -d " " -f 2 ); do set_kernel_option $CFG m done for CFG in $( grep bool $DIR | cut -d "'" -f 3 | cut -d " " -f 2 ); do if [ ! "$CFG" = "CONFIG_IPSEC_DEBUG" ] \ && [ ! "$CFG" = "CONFIG_IPSEC_ALG_NON_LIBRE" ] \ && [ ! "$CFG" = "CONFIG_IPSEC_ALG_CRYPTOAPI" ]; then set_kernel_option $CFG y fi done done set_kernel_option CONFIG_IPSEC m set_kernel_option CONFIG_IPSEC_DEBUG n set_kernel_option CONFIG_IPSEC_ALG_NON_LIBRE n set_kernel_option CONFIG_IPSEC_ALG_CRYPTOAPI n replace_str Makefile.inc /usr/local /usr replace_str Makefile.inc /usr/src/linux $KERNELDIR replace_str ./fswcert/Makefile /usr/local /usr KERNELSRC=$KERNELDIR fi # compile freeswan # parallel build fails - do not use $PMAKE make oldmod || exit 1 make programs || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_OPENSWAN" = "y" ]; then rm -rf $WORKDIR/tmp mkdir -p $WORKDIR/tmp || exit 1 make install DESTDIR=$WORKDIR/tmp || exit 1 copy_docs $WORKDIR/tmp mkdir -p $DOCDIR/freeswan || exit 1 cp -dpR doc/* $DOCDIR/freeswan || exit 1 cp -dpR CHANGES* $DOCDIR/freeswan || exit 1 cp -dpR README* $DOCDIR/freeswan || exit 1 rm -rf $WORKDIR/tmp/usr/local || exit 1 cp -dpR $WORKDIR/tmp/usr $CDDIR || exit 1 cp -dpR $WORKDIR/tmp/etc/ipsec.* $ETCDIR/etc/ || exit 1 cp -p $MYDIR/scripts/ipsec $ETCDIR/etc/init.d || exit 1 rm -rf $WORKDIR/tmp || exit 1 mkdir -pm 700 $ETCDIR/etc/ipsec.d/cacerts || exit 1 mkdir -pm 700 $ETCDIR/etc/ipsec.d/crls || exit 1 # fix a problem with the read-only modules.dep replace_str $CDDIR/usr/lib/ipsec/_startklips "depmod -a >" "depmod -an >" rm $CDDIR/usr/lib/ipsec/_startklips.old echo "# Start $MYNAME?" >> $CONFIGFILE echo "START_IPSEC=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_IPSEC=\"IPSEC is the $MYNAME VPN using the IPSEC protocol\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |