From dab49c4cfffeea6b3ad138bd55c35c9fba4271f7 Mon Sep 17 00:00:00 2001 From: kueller Date: Mon, 3 Jan 2011 10:48:06 +0000 Subject: [PATCH] Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_cups@5933 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init.d/cups | 59 ++++++++++++++++++++++++++++++++++++++++++++++ etc/init/cups.conf | 11 +++++++++ init/genpkg | 39 ++++++++++++++++++++++++++++++ tmp/postinstall | 44 ++++++++++++++++++++++++++++++++++ 4 files changed, 153 insertions(+) create mode 100644 etc/init.d/cups create mode 100644 etc/init/cups.conf create mode 100644 init/genpkg create mode 100644 tmp/postinstall diff --git a/etc/init.d/cups b/etc/init.d/cups new file mode 100644 index 0000000..ed5eecd --- /dev/null +++ b/etc/init.d/cups @@ -0,0 +1,59 @@ +#!/bin/sh +# 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 diff --git a/etc/init/cups.conf b/etc/init/cups.conf new file mode 100644 index 0000000..86c8807 --- /dev/null +++ b/etc/init/cups.conf @@ -0,0 +1,11 @@ +description "Cups Daemon (Printing) startup" +author "Harald Kueller " +version 1.0 +emits none special + +start on (runlevel [2345] and (started ifup)) +stop on runlevel [016] + +console none + +exec /usr/sbin/cupsd -f diff --git a/init/genpkg b/init/genpkg new file mode 100644 index 0000000..9b30c40 --- /dev/null +++ b/init/genpkg @@ -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 diff --git a/tmp/postinstall b/tmp/postinstall new file mode 100644 index 0000000..0c89a94 --- /dev/null +++ b/tmp/postinstall @@ -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