From: Heiko Z. <smi...@us...> - 2004-03-20 17:26:08
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18981/scripts Modified Files: ppp Added Files: eagle-usb Log Message: initial checkin of eagle-usb --- NEW FILE: eagle-usb --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/eagle-usb,v $ # $Revision: 1.1 $ # $Date: 2004/03/20 17:16:09 $ # # http://www.devil-linux.org # # eagle-usb Driver added by P.Midol-Monnet # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: eagle-usb # Required-Start: $basebuildtools $libs linux # 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=EAGLE_USB case $1 in build ) if [ "$CONFIG_EAGLE_USB" = "y" ]; then ./configure --prefix=/usr --with-kernel-src=$KERNELDIR --with-lang=en || exit 1 make || exit 1 fi ;; install ) if [ "$CONFIG_EAGLE_USB" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp/etc/eagle-usb/scripts || exit 1 make install DESTDIR=$WORKDIR/tmp || exit 1 copy_files $WORKDIR/tmp/usr/sbin $CDDIR/usr/ || exit 1 copy_files $WORKDIR/tmp/lib $CDDIR || exit 1 copy_files $WORKDIR/tmp/etc $ETCDIR/ || exit 1 cp $MYDIR/scripts/eagle-usb $ETCDIR/etc/init.d || exit 1 rm -rf $WORKDIR/tmp || exit 1 echo "# Initialize the Eagle USB modem?" >> $CONFIGFILE echo "START_EAGLE_USB=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_EAGLE_USB=\"Initialize the Eagle USB modem\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac Index: ppp =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/ppp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- ppp 11 Jan 2004 14:43:05 -0000 1.12 +++ ppp 20 Mar 2004 17:16:09 -0000 1.13 @@ -28,10 +28,16 @@ case $1 in build ) if [ "$CONFIG_PPP" = "y" ]; then - cat ../ppp-patches/* | patch -p1 || exit 1 + if [ ! -e .patches_done ]; then + cat ../ppp-patches/* | patch -p1 || exit 1 + touch .patches_done + fi ./configure || exit 1 make $PMAKE all || exit 1 strip_debug + + # install it so other programs know we're here + make install fi ;; |