# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/base/lprng/no-lpd-killing.patch # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at http://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END --- --- ./preremove.linux.sh.orig Sat Nov 10 16:26:28 2001 +++ ./preremove.linux.sh Sat Nov 10 16:26:58 2001 @@ -2,14 +2,3 @@ # preremove.linux.sh,v 1.1 2001/08/21 20:33:17 root Exp # echo RUNNING preremove.linux.sh -echo "Stopping lpd server" -killall -INT lpd -sleep 2 -if [ -f /etc/redhat-release -a -f /sbin/chkconfig ] ; then - /sbin/chkconfig lprng off - /sbin/chkconfig --del lprng -else - for i in /etc/rc.d/*/*lprng ; do - rm $i; - done -fi --- ./postinstall.linux.sh.orig Sat Nov 10 16:27:13 2001 +++ ./postinstall.linux.sh Sat Nov 10 16:43:34 2001 @@ -57,60 +57,3 @@ fix "${LPD_CONF_PATH}" "${DESTDIR}${LPD_CONF_PATH}" fix "${PRINTCAP_PATH}" "${DESTDIR}${PRINTCAP_PATH}" fi -if [ "X$MAKEPACKAGE" != "XYES" -a "$INIT" != no ] ; then - echo "Configuring startup scripts" - if [ ! -f $init ] ; then - echo "Missing $init"; - fi - if [ -f /etc/redhat-release -a -f /sbin/chkconfig ] ; then - echo "RedHat Linux - running chkconfig" - ( - /sbin/chkconfig lpr off - /sbin/chkconfig --del lpr - /sbin/chkconfig lpr off - /sbin/chkconfig --del lpr - /sbin/chkconfig lprng off - /sbin/chkconfig --del lprng - ) - echo "Stopping server" - kill -INT `ps ${PSHOWALL} | awk '/lpd/{ print $1;}'` >/dev/null 2>&1 - sleep 2 - echo "Checking Printcap" - ${SBINDIR}/checkpc -f - echo "Installing Printer Startup Scripts" - /sbin/chkconfig --add lprng - /sbin/chkconfig --list lprng - /sbin/chkconfig lprng on - echo "Starting Printer" - sh $init start - echo "Printer Started" - else - echo "Stopping server" - kill -INT `ps ${PSHOWALL} | awk '/lpd/{ print $1;}'` >/dev/null 2>&1 - sleep 2 - echo "Checking Printcap" - ${SBINDIR}/checkpc -f - echo "Starting Printer" - ${LPD_PATH} - echo "Printer Started" - cat <