Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11352/scripts
Added Files:
lcd4linux
Log Message:
initial checkin of lcd4linux
--- NEW FILE: lcd4linux ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/lcd4linux,v $
# $Revision: 1.1 $
# $Date: 2004/04/26 23:22:03 $
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: lcd4linux
# Required-Start: $basebuildtools $libs
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: LCD4Linux
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
# source functions and config
source $MYDIR/settings
MYNAME=LCD4LINUX
case $1 in
build )
if [ "$CONFIG_LCD4LINUX" = "y" ]; then
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc/lcd4linux --with-drivers=all,!X11 || exit 1
make $PMAKE all || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_LCD4LINUX" = "y" ]; then
rm -rf $WORKDIR/tmp || exit 1
mkdir -p $WORKDIR/tmp/usr/bin || exit 1
make install DESTDIR=$WORKDIR/tmp || exit 1
copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1
mkdir -p $ETCDIR/etc/lcd4linux || exit 1
cp -dpR lcd4linux.conf.sample $ETCDIR/etc/lcd4linux || exit 1
chmod 600 $ETCDIR/etc/lcd4linux/* || exit 1
rm -rf $WORKDIR/tmp || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
|