From: <rap...@us...> - 2003-11-07 00:15:49
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv11873/scripts Added Files: alsa-driver Log Message: alsa support, stage 1 --- NEW FILE: alsa-driver --- #!/bin/bash # ALSA modules added by Diego Torres <dt...@co...> # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: alsa-driver # Required-Start: $basebuildtools $libs linux # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: alsa sound support, 1st step ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions MYNAME=ALSA-DRIVER case $1 in build ) if [ "$CONFIG_ALSA" = "y" ]; then # ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || exit 1 ./configure --with-isa-pnp=no --with-oss=yes --with-cards=all || exit 1 make $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_ALSA" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 make install DESTDIR=$WORKDIR/tmp || exit 1 copy_files $WORKDIR/tmp/usr/* $CDDIR/ || exit 1 copy_files $WORKDIR/tmp/lib/* $CDDIR/ || exit 1 copy_files $WORKDIR/tmp/etc/* $ETCDIR/ || exit 1 rm -rf $WORKDIR/tmp || exit 1 echo "HELP_$MYNAME=\"$MYNAME are the needed modules to have sound support\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |