From: Heiko Z. <smi...@us...> - 2012-05-28 15:20:26
|
Update of /cvsroot/devil-linux/build/scripts In directory vz-cvs-3.sog:/tmp/cvs-serv1336/scripts Added Files: shellinabox Log Message: - updated aufs3 to git-20120527 - updated dovecot to 2.1.6 - updated grsecurity to 2.9-3.2.18-201205261259 - updated logwatch to 7.4.0 - updated mysql to 5.5.24 - updated openssl to 1.0.1c - updated linux kernel to 3.2.18 - updated postfix to 2.9.3 - added shellinabox 2.14 - updated vsftpd webmin module --- NEW FILE: shellinabox --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/shellinabox,v $ # $Revision: 1.1 $ # $Date: 2012/05/28 15:20:24 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_SHELLINABOX" = "y" ]; then ./configure --prefix=/usr --sysconfdir=/etc || exit 1 make $PMAKE all || exit 1 fi ;; install ) if [ "$CONFIG_SHELLINABOX" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir -p $TMPDIR || exit 1 make install DESTDIR=$TMPDIR || exit 1 mv $TMPDIR/usr/bin $TMPDIR/usr/sbin || exit 1 copy_docs $TMPDIR cp -dfvpR $TMPDIR/* $CDDIR || exit 1 rm -rf $TMPDIR || exit 1 cp $MYDIR/scripts/shellinabox $ETCDIR/etc/init.d || exit 1 echo "# Start the shellinabox daemon?" >> $CONFIGFILE echo "START_SHELLINABOX=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "# additional command line options for shellinabox" >> $CONFIGFILE echo "SHELLINABOX_PARAM=" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_SHELLINABOX=\"Shellinabox is a daemon for webshells\"" >> $SOFTWAREHELP =\"SSHD is a Secure SHell for remote logins and file copying\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |