Neue Version V963

git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_cups@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2011-01-03 10:48:06 +00:00
commit dab49c4cff
4 changed files with 153 additions and 0 deletions

59
etc/init.d/cups Normal file
View File

@ -0,0 +1,59 @@
#!/bin/sh
#<Scriptname> des systemvinit prozesses
#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution
#(c) Rainmaker MultiMedia OHG
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.5 2003/04/19 08:08:07 kueller
#Nicht Funktionierende Optionen status und reload entfernt
#
#Revision 1.4 2003/01/06 18:02:09 kueller
#Lage des sleep kommandos hat sich geändert - script angepasst
#
#Revision 1.3 2002/01/11 15:43:31 kueller
#Pfade fuer aufruf von cups korrigiert
#
#Revision 1.2 2001/09/24 13:01:33 kueller
#Meldung welcher Dienst betroffen ist korriegiert -
#Die Meldung "Starting ...." ist ungenügend - erscheint jetzt als
#"Starting cupsd"
#
#Revision 1.1.1.1 2001/09/23 00:15:48 kueller
#Neustart wg. Datenverlust
#
#Revision 1.1.1.1 2001/09/07 12:15:54 dhofmann
#Cups Addon
#
#Revision 1.1.1.1 2001/08/08 10:02:32 kueller
#sysvinit addons
#
#
source /etc/init.d/functions
case "$1" in
start)
echo -n "Starting cupsd"
loadproc /usr/sbin/cupsd
;;
stop)
echo -n "Stopping cupsd"
killproc /usr/sbin/cupsd
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit 1
;;
esac

11
etc/init/cups.conf Normal file
View File

@ -0,0 +1,11 @@
description "Cups Daemon (Printing) startup"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [2345] and (started ifup))
stop on runlevel [016]
console none
exec /usr/sbin/cupsd -f

39
init/genpkg Normal file
View File

@ -0,0 +1,39 @@
#!/bin/bash
#genpkg script für cups
#(c) Rainmaker MultiMedia OHG
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.3 2003/02/01 17:25:09 kueller
#Runlevel Modifiziert. Cups startet nach X. Damit bekommt X das Keyboard nicht
#zugewiesen
#
#Revision 1.2 2001/10/17 10:09:45 kueller
#Rechtekorrektur für init script
#
#Revision 1.1.1.1 2001/09/23 00:15:48 kueller
#Neustart wg. Datenverlust
#
#
if [ -d /var/install/sysvinit ]; then
WDIR=`pwd`
cd etc/init.d
chmod 755 cups
mkdir rc{0,1,2,3,4,5,6}.d
for i in 0 1 6; do
cd rc$i.d
ln -s ../cups K05cups
cd ..
done
for i in 2 3 4 5; do
cd rc$i.d
ln -s ../cups S60cups
cd ..
done
cd $WDIR
fi
mkdir -p var/log/cups var/spool/cups/tmp

44
tmp/postinstall Normal file
View File

@ -0,0 +1,44 @@
#!/bin/bash
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
#dieses Framework wird im CVS Repository
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
#
#Lage dieser Datei im Archiv: $Source$
#
#(c) 2003 Harald Kueller, Germany
#This program is free software; you can redistribute it and/or
#modify ist 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.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#See the GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program; if not write to the Free Software Foundation,
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#Script:
#Postinstallscript für cups. Treiber und Configuration funktionieren nur
#bei moderaten sicherheitseinstellungen unter /var/spool
#
#Letzte Änderung von: $Author$
#Datum der letzten Änderung: $Date$
#Version der Datei: $Revision$
#
#$Log$
#Revision 1.3 2006/07/04 10:47:45 kueller
#ROOTDIR wird nicht mehr benoetigt, da postinstall in chroot umgebung ausgefuehrt wird
#
#Revision 1.2 2004/05/31 15:30:49 kueller
#Fehler bei chmod anweisung - optionen muessen durch , getrennt werden
#
#Revision 1.1 2004/05/31 15:22:10 kueller
#Cups macht massive probleme wenn /var/spool falsch gesetzt ist. wird
#nun durch postinstall corrigiert
#
#
chmod g+rwx,o+rx /var/spool