Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8202/scripts
Modified Files:
Tag: rel-1-2-patches
net-tools
Added Files:
Tag: rel-1-2-patches
LPRng
Log Message:
- added LPRng v3.8.27 (backport from DL 1.3)
- re-added hostname from net-tools package
- set version no to 1.2
--- NEW FILE: LPRng ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/LPRng,v $
# $Revision: 1.1.2.1 $
# $Date: 2004/10/13 02:34:47 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: LPRng
# 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
MYNAME=LPRNG
case $1 in
build )
if [ "$CONFIG_LPRNG" = "y" ]; then
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
--with-userid=lprng --with-groupid=lprng --disable-nls --with-pic || exit 1
make $PMAKE all || exit 1
strip_debug
fi
;;
install )
if [ "$CONFIG_LPRNG" = "y" ]; then
rm -rf $WORKDIR/tmp || exit 1
mkdir -p $WORKDIR/tmp/usr/{sbin,man} || exit 1
# install it into build system, because we need it later
make install DESTDIR=$WORKDIR/tmp || exit 1
rm -rf $WORKDIR/tmp/usr/lib || exit 1
rm -rf $WORKDIR/tmp/etc/rc.d || exit 1
find $WORKDIR/tmp/etc -name \*.sample | xargs rm || exit 1
copy_docs $WORKDIR/tmp
copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1
copy_files $WORKDIR/tmp/etc $ETCDIR/ || exit 1
rm -rf $WORKDIR/tmp || exit 1
cp $MYDIR/scripts/lpd $ETCDIR/etc/init.d || exit 1
echo "# Start $MYNAME?" >> $CONFIGFILE
echo "START_$MYNAME=no" >> $CONFIGFILE
echo >> $CONFIGFILE
echo "HELP_$MYNAME=\"$MYNAME is a line printer daemon\"" >> $SOFTWAREHELP
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
Index: net-tools
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/net-tools,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -u -d -r1.14 -r1.14.2.1
--- net-tools 4 Feb 2004 20:40:59 -0000 1.14
+++ net-tools 13 Oct 2004 02:34:47 -0000 1.14.2.1
@@ -26,7 +26,7 @@
case $1 in
build )
if [ ! -f net_tools_patch ]; then
- zcat $DL_DIR/src/net-tools*.diff.gz | patch -p1 || exit 1
+ bzcat $DL_DIR/src/net-tools*.diff.bz2 | patch -p1 || exit 1
touch net_tools_patch
fi
cp $MYDIR/config/config_net-tools.h ./config.h
|