|
From: Heiko Z. <smi...@us...> - 2005-01-28 23:15:10
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21935/scripts Added Files: tftp-hpa Log Message: initial checking of tftpd --- NEW FILE: tftp-hpa --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/tftp-hpa,v $ # $Revision: 1.2 $ # $Date: 2005/01/28 23:14:53 $ # # http://www.devil-linux.org # WGET added by Gunther Stammwitz <gs...@ma...> # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: tftp-hpa # 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 case $1 in build ) if [ "$CONFIG_TFTP_HPA" = "y" ]; then ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --without-tcpwrappers || exit 1 make $PMAKE all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_TFTP_HPA" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir -p $TMPDIR || exit 1 make install INSTALLROOT=$TMPDIR || exit 1 copy_docs $TMPDIR rm -rf $TMPDIR/usr/share || exit 1 mkdir -p $CDDIR copy_files $TMPDIR/usr $CDDIR/ || exit 1 rm -rf $TMPDIR || exit 1 cp $MYDIR/scripts/tftpd $ETCDIR/etc/init.d || exit 1 echo "# Start the TFTP daemon?" >> $CONFIGFILE echo "START_TFTPD=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "# what should be the root directory for tftpd?" >> $CONFIGFILE echo "TFTPD_ROOT=/tmp" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_TFTPD=\"TFTP daemon\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |