|
From: Heiko Z. <smi...@us...> - 2009-07-05 18:34:29
|
Update of /cvsroot/devil-linux/build/scripts In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv8742/scripts Added Files: otpd pam_otp_auth Log Message: - added otpd 3.1.0 - added pam_otp_auth 3.2.2 --- NEW FILE: otpd --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/otpd,v $ # $Revision: 1.1 $ # $Date: 2009/07/05 18:34:25 $ # # http://www.devil-linux.org # # OPENVPN added by Diego Torres <rap...@an...> # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: otpd # 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=OPENVPN case $1 in build ) if [ "$CONFIG_OTPD" = "y" ]; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || exit 1 make $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_OTPD" = "y" ]; then rm -rf $TMPDIR || exit 1 make install DESTDIR=$TMPDIR || exit 1 copy_docs $TMPDIR copy_files $TMPDIR/usr/ $CDDIR/ || exit 1 copy_files $TMPDIR/etc/ $ETCDIR/ || exit 1 rm -rf $TMPDIR || exit 1 #cp $MYDIR/scripts/openvpn $ETCDIR/etc/init.d || exit 1 #mkdir -p $ETCDIR/etc/openvpn || exit 1 #echo "# Start openvpn?" >> $CONFIGFILE #echo "START_OPENVPN=no" >> $CONFIGFILE #echo >> $CONFIGFILE #echo "HELP_$MYNAME=\"$MYNAME is a daemon which tunnels IP networks over UDP\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: pam_otp_auth --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/pam_otp_auth,v $ # $Revision: 1.1 $ # $Date: 2009/07/05 18:34:25 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: pam_otp_auth # Required-Start: $basebuildtools Linux-PAM otpd # 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 case $1 in build ) if [ "$CONFIG_OTPD" = "y" ]; then ./configure --prefix=/usr --sysconfdir=/etc --libdir=/lib/security || exit 1 make $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_OTPD" = "y" ]; then make install DESTDIR=$TMPDIR || exit 1 cp -dpvR $TMPDIR/* $CDDIR/ || exit 1 rm -rf $TMPDIR fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |