]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Added class definitions.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 14 Oct 1998 17:49:19 +0000 (17:49 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 14 Oct 1998 17:49:19 +0000 (17:49 +0000)
Added ImplicitClasses stuff.
Added printer definitions.
Added MIME definitions.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@96 7a7537e8-13f0-0310-91df-b6672ffda945

conf/classes.conf
conf/cupsd.conf
conf/printers.conf

index 3e84cd18e4a74fd51e56c23b0eaa7afa366d1d33..3092cf80e1d2367bc8e8a8a4b4aee450340027c5 100644 (file)
@@ -1,44 +1,56 @@
-/*
- * "$Id: classes.conf,v 1.1 1998/10/14 16:42:14 mike Exp $"
- *
- *   for the Common UNIX Printing System (CUPS).
- *
- *   Copyright 1997-1998 by Easy Software Products, all rights reserved.
- *
- *   These coded instructions, statements, and computer programs are the
- *   property of Easy Software Products and are protected by Federal
- *   copyright law.  Distribution and use rights are outlined in the file
- *   "LICENSE.txt" which should have been included with this file.  If this
- *   file is missing or damaged please contact Easy Software Products
- *   at:
- *
- *       Attn: CUPS Licensing Information
- *       Easy Software Products
- *       44145 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3111 USA
- *
- *       Voice: (301) 373-9603
- *       EMail: cups-info@cups.org
- *         WWW: http://www.cups.org
- *
- * Contents:
- *
- *
- * Revision History:
- *
- *   $Log: classes.conf,v $
- *   Revision 1.1  1998/10/14 16:42:14  mike
- *   Initial revision
- *
- */
+#
+# "$Id: classes.conf,v 1.2 1998/10/14 17:49:19 mike Exp $"
+#
+#   Sample class configuration file for the Common UNIX Printing System
+#   (CUPS) scheduler.
+#
+#   Copyright 1997-1998 by Easy Software Products, all rights reserved.
+#
+#   These coded instructions, statements, and computer programs are the
+#   property of Easy Software Products and are protected by Federal
+#   copyright law.  Distribution and use rights are outlined in the file
+#   "LICENSE.txt" which should have been included with this file.  If this
+#   file is missing or damaged please contact Easy Software Products
+#   at:
+#
+#       Attn: CUPS Licensing Information
+#       Easy Software Products
+#       44145 Airport View Drive, Suite 204
+#       Hollywood, Maryland 20636-3111 USA
+#
+#       Voice: (301) 373-9603
+#       EMail: cups-info@cups.org
+#         WWW: http://www.cups.org
+#
 
-/*
- * Include necessary headers...
- */
+########################################################################
+#                                                                      #
+# This is a sample class configuration file.  This file is included    #
+# from the main configuration file (cups.conf) and lists all of the    #
+# printer classes known to the system.                                 #
+#                                                                      #
+########################################################################
 
-#include
+#
+# Each class starts with a <Class name> definition.  Class names
+# can be up to 32 characters in length and are *not* case sensitive.
+#
 
+<Class sample>
+#
+# Description: the description for the printer.
+#
 
-/*
- * End of "$Id: classes.conf,v 1.1 1998/10/14 16:42:14 mike Exp $".
- */
+Description Acme LaserPrint 1000 Printers
+
+#
+# Printer: adds a printer to the class.
+#
+
+Printer sample@host1
+Printer sample@host2
+</Class>
+
+#
+# End of "$Id: classes.conf,v 1.2 1998/10/14 17:49:19 mike Exp $".
+#
index 0cbfc825161b13ad459472ab8f34088021c08e05..1634025c16aa0be389792b3f5a803644661d5c27 100644 (file)
-/*
- * "$Id: cupsd.conf,v 1.1 1998/10/13 20:38:21 mike Exp $"
- *
- *   for the Common UNIX Printing System (CUPS).
- *
- *   Copyright 1997-1998 by Easy Software Products, all rights reserved.
- *
- *   These coded instructions, statements, and computer programs are the
- *   property of Easy Software Products and are protected by Federal
- *   copyright law.  Distribution and use rights are outlined in the file
- *   "LICENSE.txt" which should have been included with this file.  If this
- *   file is missing or damaged please contact Easy Software Products
- *   at:
- *
- *       Attn: CUPS Licensing Information
- *       Easy Software Products
- *       44145 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3111 USA
- *
- *       Voice: (301) 373-9603
- *       EMail: cups-info@cups.org
- *         WWW: http://www.cups.org
- *
- * Contents:
- *
- *
- * Revision History:
- *
- *   $Log: cupsd.conf,v $
- *   Revision 1.1  1998/10/13 20:38:21  mike
- *   Initial revision
- *
- */
-
-/*
- * Include necessary headers...
- */
-
-#include
-
-
-/*
- * End of "$Id: cupsd.conf,v 1.1 1998/10/13 20:38:21 mike Exp $".
- */
+#
+# "$Id: cupsd.conf,v 1.2 1998/10/14 17:49:19 mike Exp $"
+#
+#   Sample configuration file for the Common UNIX Printing System (CUPS)
+#   scheduler.
+#
+#   Copyright 1997-1998 by Easy Software Products, all rights reserved.
+#
+#   These coded instructions, statements, and computer programs are the
+#   property of Easy Software Products and are protected by Federal
+#   copyright law.  Distribution and use rights are outlined in the file
+#   "LICENSE.txt" which should have been included with this file.  If this
+#   file is missing or damaged please contact Easy Software Products
+#   at:
+#
+#       Attn: CUPS Licensing Information
+#       Easy Software Products
+#       44145 Airport View Drive, Suite 204
+#       Hollywood, Maryland 20636-3111 USA
+#
+#       Voice: (301) 373-9603
+#       EMail: cups-info@cups.org
+#         WWW: http://www.cups.org
+#
+
+########################################################################
+#                                                                      #
+# This is the CUPS configuration file.  If you are familiar with       #
+# Apache or any of the other popular web servers, we've followed the   #
+# same format.  Any configuration variable used here has the same      #
+# semantics as the corresponding variable in Apache.  If we need       #
+# different functionality then a different name is used to avoid       #
+# confusion...                                                         #
+#                                                                      #
+########################################################################
+
+#
+# Ports/addresses that we listen to.  The default port 631 is reserved
+# for the Internet Printing Protocol (IPP) and is what we use here.
+#
+# You can have multiple Port/Listen lines to listen to more than one
+# port or address, or to restrict access:
+#
+#    Port 80
+#    Port 631
+#    Listen hostname
+#    Listen hostname:80
+#    Listen hostname:631
+#    Listen 1.2.3.4
+#    Listen 1.2.3.4:631
+# 
+
+#Port 80
+Port 631
+
+#
+# User/Group: the user and group the server runs under.  Normally this
+# must be lp and sys, however you can configure things for another user
+# or group as needed.
+#
+# Note: the server must be run initially as root to support the
+# default IPP port of 631.  It'll change users after it reads the
+# configuration files and starts things up...
+#
+
+User lp
+Group sys
+
+#
+# SystemGroupName: the group name for "System" (printer administration)
+# access.
+#
+
+SystemGroupName sys
+
+#
+# ServerName: the hostname of your server, as advertised to the world.
+# By default CUPS will use the hostname of the system.
+#
+
+#ServerName myhost.domain.com
+
+#
+# ServerAdmin: the email address to send all complaints/problems to.
+#
+
+ServerAdmin webmaster@your.domain.com
+
+#
+# ServerRoot: the root directory for the scheduler.
+#
+
+ServerRoot /var/spool/cups
+
+#
+# MimeTypes, MimeConverts: the mime.types and mime.convs files for the
+# scheduler.
+#
+
+MimeTypes conf/mime.types
+MimeConverts conf/mime.convs
+
+#
+# AccessLog: the access log file; if this does not start with a leading /
+# then it is assumed to be relative to ServerRoot.
+#
+
+AccessLog logs/access_log
+
+#
+# ErrorLog: the error log file; if this does not start with a leading /
+# then it is assumed to be relative to ServerRoot.
+#
+
+ErrorLog logs/error_log
+
+# LogLevel: controls the number of messages logged to the ErrorLog
+# file and can be one of the following:
+#
+#     debug    Log everything, including all message packets sent.
+#     error     Log only errors
+#
+
+LogLevel error
+
+#
+# HostNameLookups: whether or not to do lookups on IP addresses to get a
+# fully-qualified hostname.  This defaults to Off for performance reasons...
+#
+
+#HostNameLookups On
+
+#
+# Timeout: the timeout before requests time out.
+#
+
+Timeout 300
+
+#
+# KeepAlive: whether or not to support the Keep-Alive connection
+# option.
+#
+
+KeepAlive On
+
+#
+# KeepAliveTimeout: the timeout before Keep-Alive connections are
+# automatically closed.
+#
+
+KeepAliveTimeout 30
+
+#
+# ImplicitClasses: whether or not to use implicit classes.
+#
+# Printer classes can be specified explicitly in this file, or
+# implicitly based upon the printers available on the LAN.  When
+# ImplicitClasses is On, printers on the LAN with the same name
+# (e.g. Acme-LaserPrint-1000) will be put into a class with the same
+# name. This allows you to setup multiple redundant queues on a LAN
+# without a lot of administrative difficulties.  If a user sends a
+# job to Acme-LaserPrint-1000, the job will go to the first available
+# queue.
+#
+
+ImplicitClasses On
+
+#
+# DocumentRoot: the root directory for HTTP documents that are served.
+#
+
+DocumentRoot /usr/share/cups/docs
+
+#
+# DefaultLanguage: the default language if not specified by the browser.
+# If not specified, the current locale is used.
+#
+
+#DefaultLanguage en
+
+#
+# Access permissions for each directory served by the scheduler.
+# Locations are relative to DocumentRoot...
+#
+# AuthType: the authorization to use; currently only "Basic" authorization is
+# supported.
+#
+# AuthClass: the authorization class; currently only "Anonymous", "User",
+# "System" (valid user belonging to group SystemGroupName), and "Group"
+# (valid user belonging to the specified group) are supported.
+#
+# AuthGroupName: the group name for "Group" authorization.
+#
+# Order: the order of Allow/Deny processing.
+#
+# Allow: allows access from the specified hostname, domain, IP address, or
+# network.
+#
+# Deny: denies access from the specified hostname, domain, IP address, or
+# network.
+#
+
+<Location />
+</Location>
+
+<Location /printers>
+#
+# You may wish to limit access to printers and classes, either with Allow
+# and Deny lines, or by requiring a username and password.
+#
+
+## Require a username and password
+#AuthType Basic
+#AuthClass User
+
+## Restrict access to local domain
+#Order Deny,Allow
+#Deny From All
+#Allow From .mydomain.com
+</Location>
+
+<Location /admin>
+#
+# You definitely will want to limit access to the administration tools.
+# The default configuration requires a user who is a member of group
+# "sys" to do any admin tasks.  You can change the group name using the
+# SystemGroup directive.
+#
+
+AuthType Basic
+AuthClass System
+
+## Restrict access to local domain
+#Order Deny,Allow
+#Deny From All
+#Allow From .mydomain.com
+</Location>
+
+#
+# Include: include a configuration file (relative to ServerRoot).
+#
+
+Include conf/printers.conf
+Include conf/classes.conf
+
+#
+# End of "$Id: cupsd.conf,v 1.2 1998/10/14 17:49:19 mike Exp $".
+#
index b4924cef99153f3eda1e6cd7d384160d736fd41a..d861fb41515b575a3e67262bd4632a4ecb27fd4c 100644 (file)
-/*
- * "$Id: printers.conf,v 1.1 1998/10/14 16:41:18 mike Exp $"
- *
- *   for the Common UNIX Printing System (CUPS).
- *
- *   Copyright 1997-1998 by Easy Software Products, all rights reserved.
- *
- *   These coded instructions, statements, and computer programs are the
- *   property of Easy Software Products and are protected by Federal
- *   copyright law.  Distribution and use rights are outlined in the file
- *   "LICENSE.txt" which should have been included with this file.  If this
- *   file is missing or damaged please contact Easy Software Products
- *   at:
- *
- *       Attn: CUPS Licensing Information
- *       Easy Software Products
- *       44145 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3111 USA
- *
- *       Voice: (301) 373-9603
- *       EMail: cups-info@cups.org
- *         WWW: http://www.cups.org
- *
- * Contents:
- *
- *
- * Revision History:
- *
- *   $Log: printers.conf,v $
- *   Revision 1.1  1998/10/14 16:41:18  mike
- *   Initial revision
- *
- */
-
-/*
- * Include necessary headers...
- */
-
-#include
-
-
-/*
- * End of "$Id: printers.conf,v 1.1 1998/10/14 16:41:18 mike Exp $".
- */
+#
+# "$Id: printers.conf,v 1.2 1998/10/14 17:49:19 mike Exp $"
+#
+#   Sample printer configuration file for the Common UNIX Printing System
+#   (CUPS) scheduler.
+#
+#   Copyright 1997-1998 by Easy Software Products, all rights reserved.
+#
+#   These coded instructions, statements, and computer programs are the
+#   property of Easy Software Products and are protected by Federal
+#   copyright law.  Distribution and use rights are outlined in the file
+#   "LICENSE.txt" which should have been included with this file.  If this
+#   file is missing or damaged please contact Easy Software Products
+#   at:
+#
+#       Attn: CUPS Licensing Information
+#       Easy Software Products
+#       44145 Airport View Drive, Suite 204
+#       Hollywood, Maryland 20636-3111 USA
+#
+#       Voice: (301) 373-9603
+#       EMail: cups-info@cups.org
+#         WWW: http://www.cups.org
+#
+
+########################################################################
+#                                                                      #
+# This is a sample printer configuration file.  This file is included  #
+# from the main configuration file (cups.conf) and lists all of the    #
+# printers known to the system.                                        #
+#                                                                      #
+########################################################################
+
+#
+# Each printer starts with a <Printer name> definition.  Printer names
+# can be up to 32 characters in length and are *not* case sensitive.
+#
+
+<Printer sample>
+#
+# Description: the description for the printer.
+#
+
+Description Acme LaserPrint 1000
+
+#
+# LocationCode, LocationText: the location code and text for the printer.
+#
+
+LocationCode ACT101
+LocationText Room 101 in the activities building
+
+#
+# Device: the device URL for this printer.
+#
+
+#Device parallel:/dev/plp
+#Device serial:/dev/ttyd1?baud=38400+size=8+parity=none+flow=soft
+#Device scsi:/dev/scsi/sc1d6l0
+#Device socket://hostname:port
+#Device tftp://hostname/path
+#Device ftp://hostname/path
+#Device http://hostname[:port]/path
+#Device ipp://hostname/path
+#Device smb://hostname/printer
+
+#
+# Username: the username needed for the queue.
+#
+
+#Username someuser
+
+#
+# Password: the password needed for the queue.  Note that if you use
+# passwords for remote queues, this file should be readable only by
+# the scheduler.
+#
+
+#Password somepass
+
+#
+# PPDFile: the PostScript Printer Description file for the printer.
+#
+
+#PPDFile /path/to/ppd/file.ppd
+
+#
+# AuthType, AuthClass, AuthGroupName, Order, Allow, Deny: see the
+# cups.conf file for details on authorization.
+#
+
+#AuthType Basic
+#AuthClass User
+
+#Order Deny,Allow
+#Deny From All
+#Allow From .mydomain.com
+
+#
+# AddFilter: adds a filter for this printer.  Format is:
+#
+#    AddFilter from-type to-type cost program
+#
+# Filter programs must accept the standard filter options outlined in
+# the CUPS documentation.  A filter program of "-" means that the
+# two types are equivalent.
+#
+# The to-type can be the special type "printer/name" which is
+# automatically added for each printer.  Other MIME types are
+# described in the mime.types file.  Standard filters are described
+# in the mime.convs file.
+#
+
+AddFilter application/cups-postscript printer/sample 0 -
+</Printer>
+
+#
+# End of "$Id: printers.conf,v 1.2 1998/10/14 17:49:19 mike Exp $".
+#