Comparar commits
1 Commits
| Autor | SHA1 | Data | |
|---|---|---|---|
| db102e9d26 |
+90
-87
@@ -1,92 +1,6 @@
|
||||
CHANGES.txt - 07/10/2000
|
||||
CHANGES.txt - 03/13/2000
|
||||
------------------------
|
||||
|
||||
CHANGES IN CUPS v1.1
|
||||
|
||||
- Documentation updates.
|
||||
- Configuration script updates.
|
||||
- Didn't map charset and language value strings to lowercase
|
||||
and _ to - as required by SLP and IPP.
|
||||
- ppdLoadXYZ() didn't add the list of available fonts to the
|
||||
ppd_file_t structure.
|
||||
- The text filter common code was freeing the PPD file data
|
||||
before it was used.
|
||||
- The text filter now embeds missing fonts.
|
||||
- The CGI interface now maps local access to the server to
|
||||
the localhost address.
|
||||
- The HP-GL/2 filter didn't use the specified (or default)
|
||||
color ranges, resulting in strange colors.
|
||||
- The HP-GL/2 filter didn't default to no input window, which
|
||||
caused unnecessary clipping of plots.
|
||||
- Integrated Xpdf's pdftops filter into CUPS, which is a
|
||||
lightweight and reliable replacement for Ghostscript's
|
||||
PDF support.
|
||||
- Removed all PDF support from Ghostscript.
|
||||
- Updated HP driver to set top margin; this seems to fix
|
||||
the offset problem seen on HP DeskJet printers.
|
||||
- Fixed dependencies on the ZLIB and JPEG libraries in
|
||||
pstoraster.
|
||||
- The lpr command wasn't using the lpoptions defined by
|
||||
the user.
|
||||
- The lpr command would segfault if the CUPS server was
|
||||
not running.
|
||||
- The top-level makefile was not installing the CUPS
|
||||
initialization script. It now does so if it sees there
|
||||
is an init.d directory in /sbin, /etc/rc.d, or /etc.
|
||||
- "lpstat -v all" didn't work.
|
||||
- pstoraster would crash on some platforms doing the
|
||||
setpagedevice operator.
|
||||
- The web administration interface now allows you to set
|
||||
the default banner pages.
|
||||
- Images can now be positioned on the page using the new
|
||||
"position" option.
|
||||
- The AccessLog, ErrorLog, and PageLog directives now
|
||||
support "%s" to insert the server name.
|
||||
- Added a new BrowseShortNames directive to allow for
|
||||
short remote printer names ("printer" instead of
|
||||
"printer@server") when possible.
|
||||
- The scheduler could crash if given an invalid PPD file
|
||||
with no PageSize attributes.
|
||||
- Updated the serial, parallel, and usb backends to do
|
||||
multiple writes and ignore ioctl() errors as needed;
|
||||
this should fix problems with serial printing on old
|
||||
serial drivers and with the UltraSPARC parallel port
|
||||
driver under Solaris 2.7.
|
||||
- Now propagate LD_LIBRARY_PATH to child processes from
|
||||
cupsd.
|
||||
- New DataDir directive for installing in alternate
|
||||
locations.
|
||||
- New CUPS_SERVERROOT and CUPS_DATADIR environment
|
||||
variables to specify installation directories as
|
||||
needed.
|
||||
- Queued remote jobs recreate remote printers as needed
|
||||
when the scheduler is started.
|
||||
- Deleting a printer also purges all jobs on that
|
||||
printer.
|
||||
- Old job and control files that don't belong to a
|
||||
printer are automatically deleted.
|
||||
- Wasn't updating time-at-processing and
|
||||
time-at-completed attributes in job.
|
||||
- Didn't send required multiple-operation-time-out
|
||||
attribute in response to a get-printer-attributes
|
||||
request.
|
||||
- cups-lpd now supports options set with lpoptions.
|
||||
- The job-hold-until attribute is now provided with all
|
||||
jobs. For jobs that are not currently held the value
|
||||
is "no-hold".
|
||||
- The scheduler was not sending "unknown" values in IPP
|
||||
responses.
|
||||
- The lpoptions command now accumulates options from
|
||||
previous runs rather than replacing all options for a
|
||||
printer.
|
||||
- The IPP backend now switches to IPP/1.0 if a 1.1
|
||||
request fails.
|
||||
- The lpadmin and admin.cgi programs now validate new
|
||||
printer and class names.
|
||||
- The access_log file now includes the number of IPP bytes
|
||||
received in a POST request.
|
||||
|
||||
|
||||
CHANGES IN CUPS v1.1b5
|
||||
|
||||
- Documentation updates.
|
||||
@@ -144,147 +58,215 @@ CHANGES IN CUPS v1.1b5
|
||||
CHANGES IN CUPS v1.1b4
|
||||
|
||||
- Documentation updates.
|
||||
|
||||
- Many makefile and configuration script fixes (should
|
||||
now compile better under *BSD.)
|
||||
|
||||
- The MediaPosition attribute was being mishandled by
|
||||
GhostScript, causing the RIP to fail whenever a paper
|
||||
tray was selected.
|
||||
|
||||
- The scheduler now logs the final line of log information
|
||||
from a filter, even if it doesn't end with a newline; this
|
||||
primarily affects GhostScript error output.
|
||||
|
||||
- The scheduler was saving implicit classes, so after a few
|
||||
restarts you'll end up with AnyPrinter, AnyAnyPrinter, etc.
|
||||
|
||||
- The JPEG autodetection didn't work with some JPEG files that
|
||||
came from digital cameras (JPEG but not JFIF); the new
|
||||
magic types should work with all images that the JPEG library
|
||||
can handle.
|
||||
|
||||
- Fixed a bug in the new contains() MIME type rule that could
|
||||
cause cupsd to crash.
|
||||
|
||||
- Switched to using strtol() in the MIME type code so that you
|
||||
can use hex, octal, or decimal constants as desired in the
|
||||
mime.types file.
|
||||
|
||||
- Banner files are now treated as templates, allowing any type
|
||||
of file to be used as a banner.
|
||||
|
||||
- Added a 30-second timeout to backend device reports so that a
|
||||
hung backend will not prevent the scheduler from starting.
|
||||
|
||||
- Backends are once again terminated when jobs are stopped; the
|
||||
CUPS-supplied backends will stay alive until the downstream
|
||||
filters have had a chance to clear out old page data.
|
||||
|
||||
- The charset lookup in the CUPS localization support was wrong
|
||||
(iso8859-x instead of iso-8859-x)
|
||||
|
||||
- Changed the "cpNNNN" code page files to "windows-NNNN" to match
|
||||
the IANA registrations.
|
||||
|
||||
- New PostScript banner pages.
|
||||
|
||||
- Added Windows BMP and Alias PIX image file support to the image
|
||||
filter.
|
||||
|
||||
- The PNG reading coded didn't free all of its buffers.
|
||||
|
||||
- Added Digest authentication support to the client and server
|
||||
code.
|
||||
|
||||
- Added Solaris options to System V commands.
|
||||
|
||||
- Now support the output-bin job template attribute.
|
||||
|
||||
- Now log the job-billing attribute in the page_log file, and
|
||||
keep track of the total number of pages in the
|
||||
job-media-sheets-completed attribute.
|
||||
|
||||
- The penwidth option is now in micrometers to support more
|
||||
accurate width specification.
|
||||
|
||||
- The image filters now support interlaced and transparent PNG
|
||||
files.
|
||||
|
||||
- Didn't handle Keep-Alive for HTTP/1.0 clients.
|
||||
|
||||
- The BrowsePoll support didn't handle when BrowseInterval
|
||||
was set to 0 (now uses 30 seconds if BrowseInterval is 0)
|
||||
|
||||
- The DeskJet driver now supports 600 DPI color for printers
|
||||
that support it.
|
||||
|
||||
- New lpinfo and lpmove commands.
|
||||
|
||||
- The lpq command now supports the Digital UNIX output format.
|
||||
|
||||
- The LPD mini-daemon now supports all required LPD operations.
|
||||
|
||||
- Implemented timeouts for multi-file documents.
|
||||
|
||||
- New cupsPrintFiles() function in the CUPS API library to
|
||||
print multiple files using create-job and send-document
|
||||
requests (1 job ID for multiple files)
|
||||
|
||||
- The lp command now sends multiple files as a single job,
|
||||
matching the behavior of the System V command.
|
||||
|
||||
- The "cancel -a" command now purges job history files.
|
||||
|
||||
|
||||
CHANGES IN CUPS v1.1b3
|
||||
|
||||
- Documentation updates.
|
||||
|
||||
- The startup script redirected stderr before stdout,
|
||||
which caused problems with some versions of Bourne
|
||||
shell and Bash.
|
||||
|
||||
- Fixed a bug in the scheduler's PPD language reading
|
||||
code.
|
||||
|
||||
- Fixed a bug in the scheduler's check for the
|
||||
manufacturer in the PPD.
|
||||
|
||||
- The pstoraster filter didn't allow some input and
|
||||
output attributes to be set.
|
||||
|
||||
- Added banner page support.
|
||||
|
||||
- Added missing PAM configuration file.
|
||||
|
||||
- Configuration script fixes for Linux and *BSD.
|
||||
|
||||
- The log file code was using the wrong sign for the
|
||||
timezone offset.
|
||||
|
||||
- The default printcap file is now empty (no printcap
|
||||
file is generated).
|
||||
|
||||
- The scheduler did not start jobs destined for remote
|
||||
printers when they became available.
|
||||
|
||||
- The scheduler now sends jobs to remote printers
|
||||
immediately. (when sending jobs to a class, the remote
|
||||
printer is only used when it becomes available)
|
||||
|
||||
- The scheduler now supports printing of banner pages
|
||||
via the job-sheets attribute (banner files go in
|
||||
/usr/share/cups/banners)
|
||||
|
||||
- The cupsd process now forks itself into the background
|
||||
(override with -f)
|
||||
|
||||
- Added several *BSD enhancements.
|
||||
|
||||
- Added UNSUPPORTED libtool option to configuration
|
||||
script to allow the use of libtool. Note that this is
|
||||
UNSUPPORTED by us, but added by request of the *BSD
|
||||
folks.
|
||||
|
||||
- The parallel, serial, and usb backends now retry the
|
||||
opening of their ports. This allows multiple print
|
||||
queues to be associated with a single physical port,
|
||||
and will allow CUPS to support several types of
|
||||
parallel port auto-switches in the near future.
|
||||
|
||||
- Set-Job-Attributes now supports adding, changing, and
|
||||
deleting job template attributes, and no longer allows
|
||||
job-printer-uri to be set (see CUPS-Move-Job)
|
||||
|
||||
- Added CUPS-Move-Job operation to support moving of jobs.
|
||||
|
||||
- The CGI template functionality now supports multiple
|
||||
languages (still only have templates for English)
|
||||
|
||||
- The CUPS-Get-Printers and CUPS-Get-Classes operations
|
||||
now support filtering as defined in the IDD.
|
||||
|
||||
- The Get-Jobs, CUPS-Get-Printers, and CUPS-Get-Classes
|
||||
operations no longer limit themselves to 1000 jobs,
|
||||
printers, or classes (believe it or not, this is
|
||||
needed for some sites)
|
||||
|
||||
- The web interfaces now support language-specific
|
||||
templates.
|
||||
|
||||
- The web admin interface now supports class management.
|
||||
|
||||
- The web admin interface now shows a list of
|
||||
manufacturers before selecting the PPD/driver for a
|
||||
specific printer.
|
||||
|
||||
- The web admin interface now supports configuration of
|
||||
the default printer options in the PPD file.
|
||||
|
||||
- The web interface now uses printer/class
|
||||
authentication for the test page instead of admin
|
||||
authentication.
|
||||
|
||||
- Updated the RPM spec file for the current release.
|
||||
|
||||
- Updated language support for Windows code pages.
|
||||
|
||||
- 8-bit character set files can now use multiple fonts
|
||||
(needed for Arabic, Greek, Hebrew, etc.)
|
||||
|
||||
- Added basic right-to-left text support in the text
|
||||
filter.
|
||||
|
||||
- The POSIX locale now uses ISO-8859-1 instead of
|
||||
US-ASCII.
|
||||
|
||||
- Fixed PDF printing problems.
|
||||
|
||||
- Fixed PostScript RIP page device dictionary elements
|
||||
that weren't getting passed in cups_get_params().
|
||||
|
||||
- Added a new "contains" rule for the magic file typing.
|
||||
|
||||
- The "printable" rule now accepts characters from 128 to 255
|
||||
(needed for Microsoft character sets)
|
||||
|
||||
- Added support for ~/.cupsrc as well as /etc/cups/client.conf
|
||||
so that the default server can be configured on a per-user
|
||||
basis without environment variables.
|
||||
|
||||
- Added LPD mini-daemon to support incoming LPD jobs.
|
||||
|
||||
|
||||
@@ -520,46 +502,67 @@ CHANGES IN CUPS v1.0.2
|
||||
CHANGES IN CUPS v1.0.1
|
||||
|
||||
- Documentation updates.
|
||||
|
||||
- Fixed a bunch of possible buffer-overflow conditions.
|
||||
|
||||
- The scheduler now supports authentication using PAM.
|
||||
|
||||
- Updated the Italian message file.
|
||||
|
||||
- httpEncode64() didn't add an extra "=" if there was
|
||||
only one byte in the last three-byte group.
|
||||
|
||||
- Now drop any trailing character set from the locale
|
||||
string (e.g. "en_US.ISO_8859-1" becomes "en_US")
|
||||
|
||||
- Fixed "timezone" vs "tm_gmtoff" usage for BSD-based
|
||||
operating systems.
|
||||
|
||||
- Updated IPP security so that "get" operations can be
|
||||
done from any resource name; this allows the CGIs to
|
||||
work with printer authentication enabled so long as
|
||||
authentication isn't turned on for the whole "site".
|
||||
|
||||
- The IPP code didn't properly handle the "unsupported"
|
||||
group; this caused problems with the HP JetDirect since
|
||||
it doesn't seem to support the "copies" attribute.
|
||||
|
||||
- The HTTP chunking code was missing a CR LF pair at the
|
||||
end of a 0-length chunk.
|
||||
|
||||
- The httpSeparate() function didn't handle embedded
|
||||
usernames and passwords in the URI properly.
|
||||
|
||||
- Doing "lpadmin -p printer -E" didn't restart printing
|
||||
if there were pending jobs.
|
||||
|
||||
- The cancel-job operation now requires either a
|
||||
requesting-user-name attribute or an authenticated
|
||||
username.
|
||||
|
||||
- The add-printer code did not report errors if the
|
||||
interface script or PPD file could not be renamed.
|
||||
|
||||
- Request files are now created without world read
|
||||
permissions.
|
||||
|
||||
- Added a cupsLastError() function to the CUPS API to
|
||||
retrieve the IPP error code from the last request.
|
||||
|
||||
- Options are now case-insensitive.
|
||||
|
||||
- The lpq command now provides 10 characters for the
|
||||
username instead of the original (Berkeley standard)
|
||||
7.
|
||||
|
||||
- The cancel command needed a local CUPS server to work
|
||||
(or the appropriate ServerName in cupsd.conf)
|
||||
|
||||
- The cancel and lprm commands didn't report the IPP
|
||||
error if the job could not be cancelled.
|
||||
|
||||
- The lp and lpr commands didn't intercept SIGTERM to
|
||||
remove temporary files when printing from stdin.
|
||||
|
||||
- The lp and lpr commands didn't report the IPP error if
|
||||
the job could not be printed.
|
||||
|
||||
+13
-24
@@ -17,19 +17,19 @@ WWW: <A HREF="http://www.cups.org">http://www.cups.org</A>
|
||||
|
||||
<H3>Introduction</H3>
|
||||
|
||||
<P>The Common UNIX Printing System<SUP>TM</SUP>, ("CUPS<SUP>TM</SUP>"),
|
||||
<P>The Common UNIX Printing System<SUP>TM</SUP>, or CUPS<SUP>TM</SUP>,
|
||||
is provided under the GNU General Public License ("GPL") and GNU
|
||||
Library General Public License ("LGPL"), Version 2. A copy of these
|
||||
licenses follow this introduction.
|
||||
|
||||
<P>The GNU LGPL applies to the CUPS API library, located in the "cups"
|
||||
subdirectory of the CUPS source distribution and in the
|
||||
"/usr/include/cups" directory and "libcups.a", "libcups.sl", or
|
||||
"libcups.so" files in the binary distributions.
|
||||
"/usr/include/cups" directory and "/usr/lib/libcups.so" or
|
||||
"/usr/lib32/libcups.so" files in the binary distributions.
|
||||
|
||||
<P>The GNU GPL applies to the remainder of the CUPS distribution,
|
||||
including the "pstoraster" filter which is based upon GNU Ghostscript
|
||||
5.50 and the "pdftops" filter which is based upon Xpdf 0.90.
|
||||
5.50.
|
||||
|
||||
<P>For those not familiar with the GNU GPL, the license basically
|
||||
allows you to:
|
||||
@@ -44,16 +44,15 @@ allows you to:
|
||||
<LI>Sell verbatim copies of the software for a media fee, or
|
||||
sell support for the software.
|
||||
|
||||
<LI>Distribute or sell printer drivers and filters that use
|
||||
CUPS so long as source code is made available under the GPL.
|
||||
<LI>Distribute or sell printer drivers and filters that use the
|
||||
CUPS API so long as source code is made available under the GPL.
|
||||
|
||||
</UL>
|
||||
|
||||
<P>What this license <B>does not</B> allow you to do is make changes or
|
||||
add features to CUPS and then sell a binary distribution without source
|
||||
code. You must provide source for any new drivers, changes, or
|
||||
additions to the software, and all code must be provided under the GPL
|
||||
or LGPL as appropriate.
|
||||
additions to the software, and all code must be provided under the GPL.
|
||||
|
||||
<P>The GNU LGPL relaxes the "link-to" restriction, allowing you to
|
||||
develop applications that use the CUPS API library under other licenses
|
||||
@@ -74,32 +73,22 @@ standards as the original.
|
||||
<P>Easy Software Products also sells rights to the CUPS source code
|
||||
under a binary distribution license for vendors that are unable to
|
||||
release source code for their drivers, additions, and modifications to
|
||||
CUPS under the GNU GPL and LGPL. For information please contact us at
|
||||
CUPS under the GNU GPL and LGPL. For pricing information please contact us at
|
||||
the address shown above.
|
||||
|
||||
<P>The Common UNIX Printing System provides a "pstoraster" filter that
|
||||
utilizes the GNU GhostScript 5.50 core to convert PostScript files into
|
||||
a stream of raster images. For binary distribution licensing of this
|
||||
software, please contact:
|
||||
utilizes GNU GhostScript 5.50 to convert PostScript files into a stream
|
||||
of raster images. For binary distribution licensing of this software,
|
||||
please contact:
|
||||
|
||||
<BLOCKQUOTE>
|
||||
Miles Jones<BR>
|
||||
<BLOCKQUOTE>Miles Jones<BR>
|
||||
Director of Marketing<BR>
|
||||
Artifex Software Inc.<BR>
|
||||
454 Las Gallinas Ave., Suite 108<BR>
|
||||
San Rafael, CA 94903 USA<BR>
|
||||
Voice: +1.415.492.9861<BR>
|
||||
Fax: +1.415.492.9862<BR>
|
||||
EMail: <A HREF="mailto:info@arsoft.com">info@arsoft.com</A>
|
||||
</BLOCKQUOTE>
|
||||
|
||||
<P>The "pdftops" filter is based on the Xpdf 0.90 software. For binary
|
||||
distribution licensing of this software, please contact:
|
||||
|
||||
<BLOCKQUOTE>
|
||||
Derek B. Noonburg<BR>
|
||||
Email: <A HREF="mailto:derekn@foolabs.com">derekn@foolabs.com</A><BR>
|
||||
WWW: <A HREF="http://www.foolabs.com/xpdf/">http://www.foolabs.com/xpdf/</A>
|
||||
EMail: info@arsoft.com
|
||||
</BLOCKQUOTE>
|
||||
|
||||
<H3>Support</H3>
|
||||
|
||||
+3
-18
@@ -31,7 +31,6 @@ AWK = @AWK@
|
||||
CC = @LIBTOOL@ @CC@
|
||||
CHMOD = @CHMOD@
|
||||
CP = @CP@
|
||||
CXX = @LIBTOOL@ @CXX@
|
||||
DSO = @DSO@
|
||||
HTMLDOC = @HTMLDOC@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
@@ -49,6 +48,7 @@ SHELL = /bin/sh
|
||||
#
|
||||
|
||||
INSTALL_BIN = $(LIBTOOL) $(CP)
|
||||
INSTALL_CAT = @INSTALL_CAT@
|
||||
INSTALL_DATA = $(CP)
|
||||
INSTALL_LIB = $(LIBTOOL) $(CP)
|
||||
INSTALL_MAN = $(CP)
|
||||
@@ -76,7 +76,6 @@ LIBZ = @LIBZ@
|
||||
|
||||
ARFLAGS = crvs
|
||||
CFLAGS = @CFLAGS@ $(OPTIM) -I.. $(OPTIONS)
|
||||
CXXFLAGS = @CXXFLAGS@ $(OPTIM) -I.. $(OPTIONS)
|
||||
DSOLIBS = @DSOLIBS@
|
||||
IMGLIBS = @IMGLIBS@ -lm
|
||||
LDFLAGS = @LDFLAGS@ $(OPTIM)
|
||||
@@ -119,7 +118,6 @@ top_srcdir = @top_srcdir@
|
||||
BINDIR = @bindir@
|
||||
DATADIR = @CUPS_DATADIR@
|
||||
DOCDIR = @CUPS_DOCROOT@
|
||||
ESP_ROOT = @ESP_ROOT@
|
||||
INCLUDEDIR = $(includedir)
|
||||
LIBDIR = $(libdir)
|
||||
LOCALEDIR = @CUPS_LOCALEDIR@
|
||||
@@ -131,32 +129,19 @@ SBINDIR = @sbindir@
|
||||
SERVERBIN = @CUPS_SERVERBIN@
|
||||
SERVERROOT = @CUPS_SERVERROOT@
|
||||
|
||||
CAT1EXT = @CAT1EXT@
|
||||
CAT5EXT = @CAT5EXT@
|
||||
CAT8EXT = @CAT8EXT@
|
||||
|
||||
#
|
||||
# Rules...
|
||||
#
|
||||
|
||||
.SILENT:
|
||||
.SUFFIXES: .a .c .cxx .h .man .o .0 .1 .5 .8 .z
|
||||
.SUFFIXES: .a .c .h .man .o .1 .5 .8
|
||||
.c.o:
|
||||
echo Compiling $<...
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
.cxx.o:
|
||||
echo Compiling $<...
|
||||
$(CXX) $(CXXFLAGS) -c $<
|
||||
.man.0 .man.1 .man.5 .man.8:
|
||||
.man.1 .man.5 .man.8:
|
||||
echo Formatting $<...
|
||||
$(RM) $@
|
||||
$(NROFF) -man $< >$@
|
||||
.man.z:
|
||||
echo Formatting $<...
|
||||
$(RM) $@ t.z
|
||||
$(NROFF) -man $< >t
|
||||
pack -f t
|
||||
$(MV) t.z $@
|
||||
|
||||
#
|
||||
# End of "$Id$"
|
||||
|
||||
+19
-45
@@ -28,7 +28,7 @@ include Makedefs
|
||||
# Directories to make...
|
||||
#
|
||||
|
||||
DIRS = cups backend berkeley cgi-bin doc filter man pdftops pstoraster \
|
||||
DIRS = cups backend berkeley cgi-bin filter man pstoraster \
|
||||
scheduler systemv
|
||||
|
||||
#
|
||||
@@ -38,7 +38,7 @@ DIRS = cups backend berkeley cgi-bin doc filter man pdftops pstoraster \
|
||||
all:
|
||||
for dir in $(DIRS); do\
|
||||
echo Making all in $$dir... ;\
|
||||
(cd $$dir ; $(MAKE) $(MFLAGS)) || exit 1;\
|
||||
(cd $$dir ; $(MAKE) -$(MAKEFLAGS)) || exit 1;\
|
||||
done
|
||||
|
||||
#
|
||||
@@ -48,7 +48,7 @@ all:
|
||||
clean:
|
||||
for dir in $(DIRS); do\
|
||||
echo Cleaning in $$dir... ;\
|
||||
(cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\
|
||||
(cd $$dir; $(MAKE) -$(MAKEFLAGS) clean) || exit 1;\
|
||||
done
|
||||
|
||||
#
|
||||
@@ -58,70 +58,44 @@ clean:
|
||||
install:
|
||||
for dir in $(DIRS); do\
|
||||
echo Installing in $$dir... ;\
|
||||
(cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\
|
||||
(cd $$dir; $(MAKE) -$(MAKEFLAGS) install) || exit 1;\
|
||||
done
|
||||
echo Installing in conf...
|
||||
(cd conf; $(MAKE) $(MFLAGS) install)
|
||||
(cd conf; $(MAKE) -$(MAKEFLAGS) install)
|
||||
echo Installing in data...
|
||||
(cd data; $(MAKE) $(MFLAGS) install)
|
||||
(cd data; $(MAKE) -$(MAKEFLAGS) install)
|
||||
echo Installing in doc...
|
||||
(cd doc; $(MAKE) -$(MAKEFLAGS) install)
|
||||
echo Installing in fonts...
|
||||
(cd fonts; $(MAKE) $(MFLAGS) install)
|
||||
(cd fonts; $(MAKE) $(MFLAGS) install)
|
||||
(cd fonts; $(MAKE) -$(MAKEFLAGS) install)
|
||||
(cd fonts; $(MAKE) -$(MAKEFLAGS) install)
|
||||
echo Installing in locale...
|
||||
echo Installing in ppd...
|
||||
(cd ppd; $(MAKE) $(MFLAGS) install)
|
||||
(cd ppd; $(MAKE) -$(MAKEFLAGS) install)
|
||||
echo Installing in templates...
|
||||
(cd templates; $(MAKE) $(MFLAGS) install)
|
||||
echo Installing startup script...
|
||||
if test -d $(prefix)/sbin/init.d; then \
|
||||
$(INSTALL_SCRIPT) cups.sh $(prefix)/sbin/init.d/cups; \
|
||||
$(CHMOD) ugo+rx $(prefix)/sbin/init.d/cups; \
|
||||
ln -s ../init.d/cups $(prefix)/sbin/rc0.d/K000cups; \
|
||||
ln -s ../init.d/cups $(prefix)/sbin/rc2.d/S999cups; \
|
||||
fi
|
||||
if test -d $(prefix)/etc/rc.d/init.d; then \
|
||||
$(INSTALL_SCRIPT) cups.sh $(prefix)/etc/rc.d/init.d/cups; \
|
||||
$(CHMOD) ugo+rx $(prefix)/etc/rc.d/cups; \
|
||||
ln -s ../init.d/cups $(prefix)/etc/rc.d/rc0.d/K00cups; \
|
||||
ln -s ../init.d/cups $(prefix)/etc/rc.d/rc2.d/S99cups; \
|
||||
fi
|
||||
if test -d $(prefix)/etc/init.d; then \
|
||||
$(INSTALL_SCRIPT) cups.sh $(prefix)/etc/init.d/cups; \
|
||||
$(CHMOD) ugo+rx $(prefix)/etc/init.d/cups; \
|
||||
ln -s ../init.d/cups $(prefix)/etc/rc0.d/K00cups; \
|
||||
ln -s ../init.d/cups $(prefix)/etc/rc2.d/S99cups; \
|
||||
fi
|
||||
(cd templates; $(MAKE) -$(MAKEFLAGS) install)
|
||||
|
||||
#
|
||||
# Make software distributions using EPM (http://www.easysw.com/epm)...
|
||||
# Make a software distribution...
|
||||
#
|
||||
|
||||
EPMFLAGS = -v \
|
||||
BINDIR=$(BINDIR) DATADIR=$(DATADIR) \
|
||||
DOCDIR=$(DOCDIR) ESP_ROOT=$(ESP_ROOT) \
|
||||
INCLUDEDIR=$(INCLUDEDIR) LIBDIR=$(LIBDIR) \
|
||||
LOCALEDIR=$(LOCALEDIR) LOGDIR=$(LOGDIR) \
|
||||
MANDIR=$(MANDIR) PAMDIR=$(PAMDIR) \
|
||||
REQUESTS=$(REQUESTS) SBINDIR=$(SBINDIR) \
|
||||
SERVERBIN=$(SERVERBIN) SERVERROOT=$(SERVERROOT)
|
||||
|
||||
epm:
|
||||
epm $(EPMFLAGS) cups
|
||||
epm -v cups
|
||||
|
||||
rpm:
|
||||
epm $(EPMFLAGS) -f rpm cups
|
||||
epm -v -f rpm cups
|
||||
|
||||
deb:
|
||||
epm $(EPMFLAGS) -f deb cups
|
||||
epm -v -f deb cups
|
||||
|
||||
depot:
|
||||
epm $(EPMFLAGS) -f depot cups
|
||||
epm -v -f depot cups
|
||||
|
||||
pkg:
|
||||
epm $(EPMFLAGS) -f pkg cups
|
||||
epm -v -f pkg cups
|
||||
|
||||
tardist:
|
||||
epm $(EPMFLAGS) -f tardist cups
|
||||
epm -v -f tardist cups
|
||||
|
||||
#
|
||||
# End of "$Id$".
|
||||
|
||||
+35
-48
@@ -1,5 +1,24 @@
|
||||
README - CUPS v1.1 - 07/10/2000
|
||||
-------------------------------
|
||||
README - CUPS v1.1b5 - 06/08/2000
|
||||
---------------------------------
|
||||
|
||||
************************************************************************
|
||||
************************************************************************
|
||||
**** ****
|
||||
**** BETA SOFTWARE BETA SOFTWARE BETA SOFTWARE BETA SOFTWARE ****
|
||||
**** ****
|
||||
************************************************************************
|
||||
************************************************************************
|
||||
|
||||
This is an official public beta release for the Common UNIX Printing
|
||||
System. Since this is a beta release, we do not recommend that you
|
||||
use this software on a production system. Instead, please use the
|
||||
current 1.0.x release for your production systems.
|
||||
|
||||
Please report all problems in the CUPS 1.1 beta releases to
|
||||
"cups-beta@cups.org" or to the CUPS mailing list.
|
||||
|
||||
Thanks for using CUPS!
|
||||
|
||||
|
||||
INTRODUCTION
|
||||
|
||||
@@ -36,8 +55,8 @@ Binary distributions require a minimum of 10MB of free disk space. We
|
||||
do not recommend using CUPS on a workstation with less than 32MB of RAM
|
||||
or a PC with less than 16MB of RAM.
|
||||
|
||||
If you are installing from source you'll need ANSI-compliant C and C++
|
||||
compilers and optionally one or more image file support libraries.
|
||||
If you are installing from source you'll need an ANSI-compliant C
|
||||
compiler and optionally one or more image file support libraries.
|
||||
Complete source installation instructions can be found in the CUPS
|
||||
System Administrator's Manual in the files "doc/sam.html" or
|
||||
"doc/sam.pdf".
|
||||
@@ -55,11 +74,11 @@ the binary distributions from Easy Software Products:
|
||||
- Solaris 2.5 or higher (SPARC or Intel)
|
||||
|
||||
|
||||
INSTALLING "PORTABLE" CUPS DISTRIBUTIONS
|
||||
INSTALLING CUPS
|
||||
|
||||
We are currently distributing "portable" CUPS binary distributions in
|
||||
TAR format with installation and removal scripts generated by our ESP
|
||||
Package Manager (EPM) software, which is available from:
|
||||
We are currently distributing CUPS binary distributions in TAR format
|
||||
with installation and removal scripts generated by our ESP Package
|
||||
Manager (EPM) software, which is available from:
|
||||
|
||||
http://www.easysw.com/epm
|
||||
|
||||
@@ -80,14 +99,6 @@ After asking you a few yes/no questions the CUPS software will be
|
||||
installed and the scheduler will be started automatically.
|
||||
|
||||
|
||||
INSTALLING HOST-SPECIFIC (RPM, DEBIAN, ETC.) DISTRIBUTIONS
|
||||
|
||||
The host-specific distributions use the operating system software
|
||||
installation tools. To install a host-specific distribution please
|
||||
consult the CUPS Software Administrators Manual or your operating
|
||||
system documentation.
|
||||
|
||||
|
||||
READING THE DOCUMENTATION
|
||||
|
||||
Once you have installed the software you can access the documentation
|
||||
@@ -114,10 +125,6 @@ You will be asked for the administration password (root or any other
|
||||
user in the sys/system/root group on your system) and then shown a
|
||||
menu of available functions.
|
||||
|
||||
DO NOT use the hostname for your machine - it will not work with the
|
||||
default CUPS configuration. To enable administration access on other
|
||||
addresses, consult the CUPS Software Administrators Manual.
|
||||
|
||||
|
||||
SETTING UP PRINTER QUEUES FROM THE COMMAND-LINE
|
||||
|
||||
@@ -184,9 +191,9 @@ driver:
|
||||
lp -omedia=A4 -oresolution=600dpi filename
|
||||
lpr -omedia=A4 -oresolution=600dpi filename
|
||||
|
||||
CUPS recognizes many types of images files as well as PDF, PostScript,
|
||||
HP-GL/2, and text files, so you can print those files directly rather
|
||||
than through an application.
|
||||
CUPS recognizes many types of images files as well as PostScript, HP-GL/2,
|
||||
and text files, so you can print those files directly rather than through
|
||||
an application.
|
||||
|
||||
If you have an application that generates output specifically for your
|
||||
printer then you need to use the "-oraw" or "-l" options:
|
||||
@@ -202,18 +209,10 @@ REPORTING PROBLEMS
|
||||
If you have problems, READ THE DOCUMENTATION FIRST! If the
|
||||
documentation does not solve your problems please send an email to
|
||||
cups-support@cups.org. Include your operating system and version,
|
||||
compiler and version, and any errors or problems you've run into. The
|
||||
/var/log/error_log file should also be sent, as it often helps to
|
||||
determine the cause of your problem.
|
||||
|
||||
If you are running a version of Linux, be sure to provide the Linux
|
||||
compiler and version, and any errors or problems you've run into. If
|
||||
you are running a version of Linux, be sure to provide the Linux
|
||||
distribution you have, too.
|
||||
|
||||
Please note that the "cups-support@cups.org" email address goes to the
|
||||
CUPS developers; they are busy people, so your email may go unanswered
|
||||
for days or weeks. Commercial support (with a guaranteed response
|
||||
time) is available from Easy Software Products.
|
||||
|
||||
|
||||
OTHER RESOURCES
|
||||
|
||||
@@ -231,22 +230,11 @@ CUPS is Copyright 1993-2000 by Easy Software Products. CUPS, the CUPS
|
||||
logo, and the Common UNIX Printing System are the trademark property of
|
||||
Easy Software Products.
|
||||
|
||||
The MD5 Digest code is Copyright 1999 Aladdin Enterprises.
|
||||
|
||||
The PostScript RIP software (pstoraster) is based on the GNU
|
||||
Ghostscript 5.50 core, Copyright 1986-1998 by Aladdin Enterprises.
|
||||
|
||||
The PDF filter (pdftops) is based on the Xpdf 0.90 software, Copyright
|
||||
1996-1999 by Derek B. Noonburg.
|
||||
|
||||
This software is based in part on the work of the Independent JPEG
|
||||
Group.
|
||||
|
||||
CUPS is provided under the terms of the GNU General Public License and
|
||||
GNU Library General Public License. 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 "LICENSE.html", "LICENSE.txt", or "cups.license" files
|
||||
PURPOSE. See the "LICENSE.html", "LICENSE.txt", "cups.license" file
|
||||
for more information.
|
||||
|
||||
For commercial licensing information, please contact:
|
||||
@@ -260,7 +248,6 @@ For commercial licensing information, please contact:
|
||||
Email: cups-info@cups.org
|
||||
WWW: http://www.cups.org
|
||||
|
||||
Note that commercial licensors may also require a license from Artifex
|
||||
Note that commercial licensors may also require license from Artifex
|
||||
Software Inc. which handles commercial licensing of the Ghostscript
|
||||
software, and from Derek B. Noonburg who developed the Xpdf software
|
||||
used to print PDF files.
|
||||
software.
|
||||
|
||||
@@ -50,8 +50,6 @@ clean:
|
||||
|
||||
install:
|
||||
-$(MKDIR) $(SERVERBIN)/backend
|
||||
$(CHMOD) ugo+rx $(SERVERBIN)
|
||||
$(CHMOD) ugo+rx $(SERVERBIN)/backend
|
||||
$(INSTALL_BIN) $(BACKENDS) $(SERVERBIN)/backend
|
||||
$(RM) $(SERVERBIN)/backend/http
|
||||
$(LN) ipp $(SERVERBIN)/backend/http
|
||||
|
||||
+1
-21
@@ -86,7 +86,6 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
|
||||
struct sigaction action; /* Actions for POSIX signals */
|
||||
#endif /* HAVE_SIGACTION && !HAVE_SIGSET */
|
||||
int version; /* IPP version */
|
||||
|
||||
|
||||
if (argc == 1)
|
||||
@@ -205,7 +204,6 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
|
||||
language = cupsLangDefault();
|
||||
copies_sup = NULL;
|
||||
version = 1;
|
||||
|
||||
do
|
||||
{
|
||||
@@ -214,7 +212,6 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
*/
|
||||
|
||||
request = ippNew();
|
||||
request->request.op.version[1] = version;
|
||||
request->request.op.operation_id = IPP_GET_PRINTER_ATTRIBUTES;
|
||||
request->request.op.request_id = 1;
|
||||
|
||||
@@ -299,20 +296,10 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
fputs("INFO: Printer busy; will retry in 10 seconds...\n", stderr);
|
||||
sleep(10);
|
||||
}
|
||||
else if (ipp_status == IPP_BAD_REQUEST && version == 1)
|
||||
{
|
||||
/*
|
||||
* Switch to IPP/1.0...
|
||||
*/
|
||||
|
||||
fputs("INFO: Printer does not support IPP/1.1, trying IPP/1.0...\n", stderr);
|
||||
version = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "ERROR: Printer will not accept print file (%x)!\n",
|
||||
ipp_status);
|
||||
fprintf(stderr, "ERROR: %s\n", ippErrorString(ipp_status));
|
||||
status = HTTP_ERROR;
|
||||
}
|
||||
}
|
||||
@@ -343,8 +330,7 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "ERROR: Validate request was not accepted (%d)!\n",
|
||||
status);
|
||||
fprintf(stderr, "ERROR: Validate request was not accepted (%d)!\n", status);
|
||||
ipp_status = IPP_FORBIDDEN;
|
||||
}
|
||||
}
|
||||
@@ -363,8 +349,6 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
|
||||
return (1);
|
||||
}
|
||||
else if (ipp_status > IPP_OK_CONFLICT)
|
||||
httpReconnect(http);
|
||||
}
|
||||
while (ipp_status > IPP_OK_CONFLICT);
|
||||
|
||||
@@ -406,7 +390,6 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
*/
|
||||
|
||||
request = ippNew();
|
||||
request->request.op.version[1] = version;
|
||||
request->request.op.operation_id = IPP_PRINT_JOB;
|
||||
request->request.op.request_id = 1;
|
||||
|
||||
@@ -646,11 +629,8 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
sleep(10);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "ERROR: Print file was not accepted (%04x)!\n",
|
||||
response->request.status.status_code);
|
||||
fprintf(stderr, "ERROR: %s\n", ippErrorString(ipp_status));
|
||||
}
|
||||
}
|
||||
else if ((job_id = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) == NULL)
|
||||
fputs("INFO: Print file accepted - job ID unknown.\n", stderr);
|
||||
|
||||
+7
-20
@@ -86,11 +86,9 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
FILE *fp; /* Print file */
|
||||
int copies; /* Number of copies to print */
|
||||
int fd; /* Parallel device */
|
||||
int wbytes; /* Number of bytes written */
|
||||
size_t nbytes, /* Number of bytes read */
|
||||
size_t nbytes, /* Number of bytes written */
|
||||
tbytes; /* Total number of bytes written */
|
||||
char buffer[8192], /* Output buffer */
|
||||
*bufptr; /* Pointer into buffer */
|
||||
char buffer[8192]; /* Output buffer */
|
||||
struct termios opts; /* Parallel port options */
|
||||
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
|
||||
struct sigaction action; /* Actions for POSIX signals */
|
||||
@@ -226,24 +224,13 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
* Write the print data to the printer...
|
||||
*/
|
||||
|
||||
tbytes += nbytes;
|
||||
bufptr = buffer;
|
||||
|
||||
while (nbytes > 0)
|
||||
if (write(fd, buffer, nbytes) < nbytes)
|
||||
{
|
||||
if ((wbytes = write(fd, bufptr, nbytes)) < 0)
|
||||
if (errno == ENOTTY)
|
||||
wbytes = write(fd, bufptr, nbytes);
|
||||
|
||||
if (wbytes < 0)
|
||||
{
|
||||
perror("ERROR: Unable to send print file to printer");
|
||||
break;
|
||||
}
|
||||
|
||||
nbytes -= wbytes;
|
||||
bufptr += wbytes;
|
||||
perror("ERROR: Unable to send print file to printer");
|
||||
break;
|
||||
}
|
||||
else
|
||||
tbytes += nbytes;
|
||||
|
||||
if (argc > 6)
|
||||
fprintf(stderr, "INFO: Sending print file, %u bytes...\n", tbytes);
|
||||
|
||||
+7
-20
@@ -89,11 +89,9 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
FILE *fp; /* Print file */
|
||||
int copies; /* Number of copies to print */
|
||||
int fd; /* Parallel device */
|
||||
int wbytes; /* Number of bytes written */
|
||||
size_t nbytes, /* Number of bytes read */
|
||||
size_t nbytes, /* Number of bytes written */
|
||||
tbytes; /* Total number of bytes written */
|
||||
char buffer[8192], /* Output buffer */
|
||||
*bufptr; /* Pointer into buffer */
|
||||
char buffer[8192]; /* Output buffer */
|
||||
struct termios opts; /* Parallel port options */
|
||||
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
|
||||
struct sigaction action; /* Actions for POSIX signals */
|
||||
@@ -344,24 +342,13 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
* Write the print data to the printer...
|
||||
*/
|
||||
|
||||
tbytes += nbytes;
|
||||
bufptr = buffer;
|
||||
|
||||
while (nbytes > 0)
|
||||
if (write(fd, buffer, nbytes) < nbytes)
|
||||
{
|
||||
if ((wbytes = write(fd, bufptr, nbytes)) < 0)
|
||||
if (errno == ENOTTY)
|
||||
wbytes = write(fd, bufptr, nbytes);
|
||||
|
||||
if (wbytes < 0)
|
||||
{
|
||||
perror("ERROR: Unable to send print file to printer");
|
||||
break;
|
||||
}
|
||||
|
||||
nbytes -= wbytes;
|
||||
bufptr += wbytes;
|
||||
perror("ERROR: Unable to send print file to printer");
|
||||
break;
|
||||
}
|
||||
else
|
||||
tbytes += nbytes;
|
||||
|
||||
if (argc > 6)
|
||||
fprintf(stderr, "INFO: Sending print file, %u bytes...\n", tbytes);
|
||||
|
||||
+7
-20
@@ -75,11 +75,9 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
FILE *fp; /* Print file */
|
||||
int copies; /* Number of copies to print */
|
||||
int fd; /* Parallel device */
|
||||
int wbytes; /* Number of bytes written */
|
||||
size_t nbytes, /* Number of bytes read */
|
||||
size_t nbytes, /* Number of bytes written */
|
||||
tbytes; /* Total number of bytes written */
|
||||
char buffer[8192], /* Output buffer */
|
||||
*bufptr; /* Pointer into buffer */
|
||||
char buffer[8192]; /* Output buffer */
|
||||
struct termios opts; /* Parallel port options */
|
||||
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
|
||||
struct sigaction action; /* Actions for POSIX signals */
|
||||
@@ -215,24 +213,13 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
* Write the print data to the printer...
|
||||
*/
|
||||
|
||||
tbytes += nbytes;
|
||||
bufptr = buffer;
|
||||
|
||||
while (nbytes > 0)
|
||||
if (write(fd, buffer, nbytes) < nbytes)
|
||||
{
|
||||
if ((wbytes = write(fd, bufptr, nbytes)) < 0)
|
||||
if (errno == ENOTTY)
|
||||
wbytes = write(fd, bufptr, nbytes);
|
||||
|
||||
if (wbytes < 0)
|
||||
{
|
||||
perror("ERROR: Unable to send print file to printer");
|
||||
break;
|
||||
}
|
||||
|
||||
nbytes -= wbytes;
|
||||
bufptr += wbytes;
|
||||
perror("ERROR: Unable to send print file to printer");
|
||||
break;
|
||||
}
|
||||
else
|
||||
tbytes += nbytes;
|
||||
|
||||
if (argc > 6)
|
||||
fprintf(stderr, "INFO: Sending print file, %u bytes...\n", tbytes);
|
||||
|
||||
@@ -49,10 +49,8 @@ clean:
|
||||
|
||||
install:
|
||||
-$(MKDIR) $(BINDIR)
|
||||
$(CHMOD) ugo+rx $(BINDIR)
|
||||
$(INSTALL_BIN) lpq lpr lprm $(BINDIR)
|
||||
-$(MKDIR) $(SBINDIR)
|
||||
$(CHMOD) ugo+rx $(SBINDIR)
|
||||
$(INSTALL_BIN) lpc $(SBINDIR)
|
||||
|
||||
|
||||
|
||||
+49
-86
@@ -63,17 +63,12 @@ int
|
||||
main(int argc, /* I - Number of command-line arguments */
|
||||
char *argv[]) /* I - Command-line arguments */
|
||||
{
|
||||
int i, j; /* Looping var */
|
||||
int i; /* Looping var */
|
||||
int job_id; /* Job ID */
|
||||
char *printer, /* Destination printer or class */
|
||||
*instance; /* Instance */
|
||||
const char *dest; /* Destination printer */
|
||||
const char *title; /* Job title */
|
||||
int num_copies; /* Number of copies per file */
|
||||
int num_files; /* Number of files to print */
|
||||
const char *files[1000]; /* Files to print */
|
||||
int num_dests; /* Number of destinations */
|
||||
cups_dest_t *dests, /* Destinations */
|
||||
*dest; /* Selected destination */
|
||||
int num_files; /* Number of files printed */
|
||||
int num_options; /* Number of options */
|
||||
cups_option_t *options; /* Options */
|
||||
int deletefile; /* Delete file after print? */
|
||||
@@ -85,9 +80,7 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
|
||||
|
||||
deletefile = 0;
|
||||
printer = NULL;
|
||||
num_dests = 0;
|
||||
dests = NULL;
|
||||
dest = cupsGetDefault();
|
||||
num_options = 0;
|
||||
options = NULL;
|
||||
num_files = 0;
|
||||
@@ -144,25 +137,11 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
|
||||
case 'P' : /* Destination printer or class */
|
||||
if (argv[i][2] != '\0')
|
||||
printer = argv[i] + 2;
|
||||
dest = argv[i] + 2;
|
||||
else
|
||||
{
|
||||
i ++;
|
||||
printer = argv[i];
|
||||
}
|
||||
|
||||
if ((instance = strrchr(printer, '/')) != NULL)
|
||||
*instance++ = '\0';
|
||||
|
||||
if (num_dests == 0)
|
||||
num_dests = cupsGetDests(&dests);
|
||||
|
||||
if ((dest = cupsGetDest(printer, instance, num_dests, dests)) != NULL)
|
||||
{
|
||||
for (j = 0; j < dest->num_options; j ++)
|
||||
num_options = cupsAddOption(dest->options[j].name,
|
||||
dest->options[j].value,
|
||||
num_options, &options);
|
||||
dest = argv[i];
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -201,70 +180,54 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
fprintf(stderr, "lpr: Unknown option \'%c\'!\n", argv[i][1]);
|
||||
return (1);
|
||||
}
|
||||
else if (num_files < 1000)
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Print a file...
|
||||
*/
|
||||
|
||||
files[num_files] = argv[i];
|
||||
num_files ++;
|
||||
|
||||
if (title == NULL)
|
||||
if (dest == NULL)
|
||||
{
|
||||
if ((title = strrchr(argv[i], '/')) != NULL)
|
||||
title ++;
|
||||
else
|
||||
title = argv[i];
|
||||
fputs("lpr: error - no default destination available.\n", stderr);
|
||||
return (1);
|
||||
}
|
||||
|
||||
num_files ++;
|
||||
if (title)
|
||||
job_id = cupsPrintFile(dest, argv[i], title, num_options, options);
|
||||
else
|
||||
{
|
||||
char *filename;
|
||||
|
||||
if ((filename = strrchr(argv[i], '/')) != NULL)
|
||||
filename ++;
|
||||
else
|
||||
filename = argv[i];
|
||||
|
||||
job_id = cupsPrintFile(dest, argv[i], filename, num_options, options);
|
||||
}
|
||||
|
||||
if (job_id < 1)
|
||||
{
|
||||
fprintf(stderr, "lpr: unable to print file \'%s\' - %s.\n",
|
||||
argv[i], ippErrorString(cupsLastError()));
|
||||
return (1);
|
||||
}
|
||||
else if (deletefile)
|
||||
unlink(argv[i]);
|
||||
}
|
||||
else
|
||||
fprintf(stderr, "lpr: Too many files - \"%s\"\n", argv[i]);
|
||||
|
||||
/*
|
||||
* See if we have any files to print; if not, print from stdin...
|
||||
* See if we printed anything; if not, print from stdin...
|
||||
*/
|
||||
|
||||
if (printer == NULL)
|
||||
if (num_files == 0)
|
||||
{
|
||||
if (num_dests == 0)
|
||||
num_dests = cupsGetDests(&dests);
|
||||
|
||||
for (j = 0, dest = dests; j < num_dests; j ++, dest ++)
|
||||
if (dest->is_default)
|
||||
{
|
||||
printer = dests[j].name;
|
||||
|
||||
for (j = 0; j < dest->num_options; j ++)
|
||||
num_options = cupsAddOption(dest->options[j].name,
|
||||
dest->options[j].value,
|
||||
num_options, &options);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (printer == NULL)
|
||||
{
|
||||
fputs("lpr: error - no default destination available.\n", stderr);
|
||||
return (1);
|
||||
}
|
||||
|
||||
if (num_files > 0)
|
||||
{
|
||||
job_id = cupsPrintFiles(printer, num_files, files, title, num_options, options);
|
||||
|
||||
if (deletefile)
|
||||
if (dest == NULL)
|
||||
{
|
||||
/*
|
||||
* Delete print files after printing...
|
||||
*/
|
||||
|
||||
for (i = 0; i < num_files; i ++)
|
||||
unlink(files[i]);
|
||||
fputs("lpr: error - no default destination available.\n", stderr);
|
||||
return (1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
num_files = 1;
|
||||
|
||||
#ifndef WIN32
|
||||
# if defined(HAVE_SIGSET)
|
||||
@@ -301,23 +264,23 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
fputs("lpr: stdin is empty, so no job has been sent.\n", stderr);
|
||||
fputs("lpr: standard input is empty, so no job has been sent.\n", stderr);
|
||||
return (1);
|
||||
}
|
||||
|
||||
if (title)
|
||||
job_id = cupsPrintFile(printer, tempfile, title, num_options, options);
|
||||
job_id = cupsPrintFile(dest, tempfile, title, num_options, options);
|
||||
else
|
||||
job_id = cupsPrintFile(printer, tempfile, "(stdin)", num_options, options);
|
||||
job_id = cupsPrintFile(dest, tempfile, "(stdin)", num_options, options);
|
||||
|
||||
unlink(tempfile);
|
||||
}
|
||||
|
||||
if (job_id < 1)
|
||||
{
|
||||
fprintf(stderr, "lpr: unable to print file: %s\n",
|
||||
ippErrorString(cupsLastError()));
|
||||
return (1);
|
||||
if (job_id < 1)
|
||||
{
|
||||
fprintf(stderr, "lpr: unable to print standard input - %s.\n",
|
||||
ippErrorString(cupsLastError()));
|
||||
return (1);
|
||||
}
|
||||
}
|
||||
|
||||
return (0);
|
||||
|
||||
@@ -50,8 +50,6 @@ clean:
|
||||
|
||||
install:
|
||||
-$(MKDIR) $(SERVERBIN)/cgi-bin
|
||||
$(CHMOD) ugo+rx $(SERVERBIN)
|
||||
$(CHMOD) ugo+rx $(SERVERBIN)/cgi-bin
|
||||
$(INSTALL_BIN) $(TARGETS) $(SERVERBIN)/cgi-bin
|
||||
|
||||
|
||||
|
||||
+4
-127
@@ -201,8 +201,6 @@ do_am_class(http_t *http, /* I - HTTP connection */
|
||||
ipp_attribute_t *attr; /* member-uris attribute */
|
||||
ipp_status_t status; /* Request status */
|
||||
char uri[HTTP_MAX_URI]; /* Device or printer URI */
|
||||
const char *name, /* Pointer to class name */
|
||||
*ptr; /* Pointer to CGI variable */
|
||||
|
||||
|
||||
if (cgiGetVariable("PRINTER_LOCATION") == NULL)
|
||||
@@ -258,24 +256,8 @@ do_am_class(http_t *http, /* I - HTTP connection */
|
||||
|
||||
cgiCopyTemplateLang(stdout, TEMPLATES, "add-class.tmpl", getenv("LANG"));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
name = cgiGetVariable("PRINTER_NAME");
|
||||
for (ptr = name; *ptr; ptr ++)
|
||||
if (!isalnum(*ptr) && *ptr != '_')
|
||||
break;
|
||||
|
||||
if (*ptr || ptr == name)
|
||||
{
|
||||
cgiSetVariable("ERROR", "The class name may only contain letters, "
|
||||
"numbers, and the underscore.");
|
||||
cgiCopyTemplateLang(stdout, TEMPLATES, "error.tmpl", getenv("LANG"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (cgiGetVariable("MEMBER_URIS") == NULL)
|
||||
else if (cgiGetVariable("MEMBER_URIS") == NULL)
|
||||
{
|
||||
/*
|
||||
* Build a CUPS_GET_PRINTERS request, which requires the
|
||||
@@ -490,8 +472,6 @@ do_am_printer(http_t *http, /* I - HTTP connection */
|
||||
*uriptr; /* Pointer into URI */
|
||||
int maxrate; /* Maximum baud rate */
|
||||
char baudrate[255]; /* Baud rate string */
|
||||
const char *name, /* Pointer to class name */
|
||||
*ptr; /* Pointer to CGI variable */
|
||||
static int baudrates[] = /* Baud rates */
|
||||
{
|
||||
1200,
|
||||
@@ -560,24 +540,8 @@ do_am_printer(http_t *http, /* I - HTTP connection */
|
||||
|
||||
cgiCopyTemplateLang(stdout, TEMPLATES, "add-printer.tmpl", getenv("LANG"));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
name = cgiGetVariable("PRINTER_NAME");
|
||||
for (ptr = name; *ptr; ptr ++)
|
||||
if (!isalnum(*ptr) && *ptr != '_')
|
||||
break;
|
||||
|
||||
if (*ptr || ptr == name)
|
||||
{
|
||||
cgiSetVariable("ERROR", "The printer name may only contain letters, "
|
||||
"numbers, and the underscore.");
|
||||
cgiCopyTemplateLang(stdout, TEMPLATES, "error.tmpl", getenv("LANG"));
|
||||
return;
|
||||
}
|
||||
|
||||
if ((var = cgiGetVariable("DEVICE_URI")) == NULL)
|
||||
else if ((var = cgiGetVariable("DEVICE_URI")) == NULL)
|
||||
{
|
||||
/*
|
||||
* Build a CUPS_GET_DEVICES request, which requires the following
|
||||
@@ -819,7 +783,6 @@ do_config_printer(http_t *http, /* I - HTTP connection */
|
||||
int have_options; /* Have options? */
|
||||
ipp_t *request, /* IPP request */
|
||||
*response; /* IPP response */
|
||||
ipp_attribute_t *attr; /* IPP attribute */
|
||||
char uri[HTTP_MAX_URI]; /* Job URI */
|
||||
const char *var; /* Variable value */
|
||||
const char *printer; /* Printer printer name */
|
||||
@@ -862,14 +825,8 @@ do_config_printer(http_t *http, /* I - HTTP connection */
|
||||
|
||||
ppd = ppdOpenFile(filename);
|
||||
|
||||
if (cgiGetVariable("job_sheets_start") != NULL ||
|
||||
cgiGetVariable("job_sheets_end") != NULL)
|
||||
have_options = 1;
|
||||
else
|
||||
have_options = 0;
|
||||
|
||||
for (i = ppd->num_groups, group = ppd->groups;
|
||||
i > 0 && !have_options;
|
||||
for (have_options = 0, i = ppd->num_groups, group = ppd->groups;
|
||||
i > 0;
|
||||
i --, group ++)
|
||||
for (j = group->num_options, option = group->options;
|
||||
j > 0;
|
||||
@@ -937,80 +894,6 @@ do_config_printer(http_t *http, /* I - HTTP connection */
|
||||
getenv("LANG"));
|
||||
}
|
||||
|
||||
/*
|
||||
* Build an IPP_GET_PRINTER_ATTRIBUTES request, which requires the
|
||||
* following attributes:
|
||||
*
|
||||
* attributes-charset
|
||||
* attributes-natural-language
|
||||
* printer-uri
|
||||
*/
|
||||
|
||||
request = ippNew();
|
||||
|
||||
request->request.op.operation_id = IPP_GET_PRINTER_ATTRIBUTES;
|
||||
request->request.op.request_id = 1;
|
||||
|
||||
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
|
||||
"attributes-charset", NULL, cupsLangEncoding(language));
|
||||
|
||||
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
|
||||
"attributes-natural-language", NULL, language->language);
|
||||
|
||||
snprintf(uri, sizeof(uri), "ipp://localhost/printers/%s",
|
||||
cgiGetVariable("PRINTER_NAME"));
|
||||
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri",
|
||||
NULL, uri);
|
||||
|
||||
/*
|
||||
* Do the request and get back a response...
|
||||
*/
|
||||
|
||||
if ((response = cupsDoRequest(http, request, "/")) != NULL)
|
||||
{
|
||||
if ((attr = ippFindAttribute(response, "job-sheets-supported", IPP_TAG_ZERO)) != NULL)
|
||||
{
|
||||
/*
|
||||
* Add the job sheets options...
|
||||
*/
|
||||
|
||||
cgiSetVariable("GROUP", "Banners");
|
||||
cgiCopyTemplateLang(stdout, TEMPLATES, "option-header.tmpl",
|
||||
getenv("LANG"));
|
||||
|
||||
cgiSetSize("CHOICES", attr->num_values);
|
||||
cgiSetSize("TEXT", attr->num_values);
|
||||
for (k = 0; k < attr->num_values; k ++)
|
||||
{
|
||||
cgiSetArray("CHOICES", k, attr->values[k].string.text);
|
||||
cgiSetArray("TEXT", k, attr->values[k].string.text);
|
||||
}
|
||||
|
||||
attr = ippFindAttribute(response, "job-sheets-default", IPP_TAG_ZERO);
|
||||
|
||||
cgiSetVariable("KEYWORD", "job_sheets_start");
|
||||
cgiSetVariable("KEYTEXT", "Starting Banner");
|
||||
cgiSetVariable("DEFCHOICE", attr == NULL ?
|
||||
"" : attr->values[0].string.text);
|
||||
|
||||
cgiCopyTemplateLang(stdout, TEMPLATES, "option-pickone.tmpl",
|
||||
getenv("LANG"));
|
||||
|
||||
cgiSetVariable("KEYWORD", "job_sheets_end");
|
||||
cgiSetVariable("KEYTEXT", "Ending Banner");
|
||||
cgiSetVariable("DEFCHOICE", attr == NULL && attr->num_values > 1 ?
|
||||
"" : attr->values[1].string.text);
|
||||
|
||||
cgiCopyTemplateLang(stdout, TEMPLATES, "option-pickone.tmpl",
|
||||
getenv("LANG"));
|
||||
|
||||
cgiCopyTemplateLang(stdout, TEMPLATES, "option-trailer.tmpl",
|
||||
getenv("LANG"));
|
||||
}
|
||||
|
||||
ippDelete(response);
|
||||
}
|
||||
|
||||
cgiCopyTemplateLang(stdout, TEMPLATES, "config-printer2.tmpl",
|
||||
getenv("LANG"));
|
||||
}
|
||||
@@ -1065,7 +948,6 @@ do_config_printer(http_t *http, /* I - HTTP connection */
|
||||
* attributes-charset
|
||||
* attributes-natural-language
|
||||
* printer-uri
|
||||
* job-sheets-default
|
||||
* [ppd file]
|
||||
*/
|
||||
|
||||
@@ -1085,11 +967,6 @@ do_config_printer(http_t *http, /* I - HTTP connection */
|
||||
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri",
|
||||
NULL, uri);
|
||||
|
||||
attr = ippAddStrings(request, IPP_TAG_PRINTER, IPP_TAG_NAME,
|
||||
"job-sheets-default", 2, NULL, NULL);
|
||||
attr->values[0].string.text = strdup(cgiGetVariable("job_sheets_start"));
|
||||
attr->values[1].string.text = strdup(cgiGetVariable("job_sheets_end"));
|
||||
|
||||
/*
|
||||
* Do the request and get back a response...
|
||||
*/
|
||||
|
||||
+9
-53
@@ -34,33 +34,6 @@
|
||||
#include "ipp-var.h"
|
||||
|
||||
|
||||
/*
|
||||
* 'ippGetTemplateDir()' - Get the templates directory...
|
||||
*/
|
||||
|
||||
char * /* O - Template directory */
|
||||
ippGetTemplateDir(void)
|
||||
{
|
||||
const char *datadir; /* CUPS_DATADIR env var */
|
||||
static char templates[1024] = ""; /* Template directory */
|
||||
|
||||
|
||||
if (!templates[0])
|
||||
{
|
||||
/*
|
||||
* Build the template directory pathname...
|
||||
*/
|
||||
|
||||
if ((datadir = getenv("CUPS_DATADIR")) == NULL)
|
||||
datadir = CUPS_DATADIR;
|
||||
|
||||
snprintf(templates, sizeof(templates), "%s/templates", datadir);
|
||||
}
|
||||
|
||||
return (templates);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* 'ippSetServerVersion()' - Set the server name and CUPS version...
|
||||
*/
|
||||
@@ -95,14 +68,11 @@ ippSetCGIVars(ipp_t *response, /* I - Response data to be copied... */
|
||||
hostname[HTTP_MAX_URI],
|
||||
resource[HTTP_MAX_URI],
|
||||
uri[HTTP_MAX_URI];
|
||||
int port; /* URI data */
|
||||
char server[1024]; /* Name of server */
|
||||
int port;
|
||||
|
||||
|
||||
ippSetServerVersion();
|
||||
|
||||
strcpy(server, cupsServer());
|
||||
|
||||
for (attr = response->attrs;
|
||||
attr && attr->group_tag == IPP_TAG_OPERATION;
|
||||
attr = attr->next);
|
||||
@@ -192,34 +162,20 @@ ippSetCGIVars(ipp_t *response, /* I - Response data to be copied... */
|
||||
break;
|
||||
|
||||
case IPP_TAG_URI :
|
||||
httpSeparate(attr->values[i].string.text, method, username,
|
||||
hostname, &port, resource);
|
||||
|
||||
if (strcmp(method, "ipp") == 0 ||
|
||||
strcmp(method, "http") == 0)
|
||||
{
|
||||
/*
|
||||
* Map localhost access to localhost...
|
||||
*/
|
||||
|
||||
if (strcasecmp(hostname, server) == 0 &&
|
||||
strcmp(getenv("REMOTE_ADDR"), "127.0.0.1") == 0)
|
||||
strcpy(hostname, "localhost");
|
||||
|
||||
/*
|
||||
* Rewrite URI with HTTP address...
|
||||
*/
|
||||
|
||||
if (username[0])
|
||||
if (strncmp(attr->values[i].string.text, "ipp:", 4) == 0)
|
||||
{
|
||||
httpSeparate(attr->values[i].string.text, method, username,
|
||||
hostname, &port, resource);
|
||||
if (username[0])
|
||||
snprintf(uri, sizeof(uri), "http://%s@%s:%d%s", username,
|
||||
hostname, port, resource);
|
||||
else
|
||||
else
|
||||
snprintf(uri, sizeof(uri), "http://%s:%d%s", hostname, port,
|
||||
resource);
|
||||
|
||||
strcat(valptr, uri);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case IPP_TAG_STRING :
|
||||
case IPP_TAG_TEXT :
|
||||
|
||||
+2
-2
@@ -38,14 +38,14 @@
|
||||
* Definitions...
|
||||
*/
|
||||
|
||||
#define TEMPLATES ippGetTemplateDir()
|
||||
/*#define TEMPLATES "/home/mike/c/cups/templates"*/
|
||||
#define TEMPLATES CUPS_DATADIR "/templates"
|
||||
|
||||
|
||||
/*
|
||||
* Prototype...
|
||||
*/
|
||||
|
||||
extern char *ippGetTemplateDir(void);
|
||||
extern void ippSetServerVersion(void);
|
||||
extern void ippSetCGIVars(ipp_t *, const char *, const char *);
|
||||
|
||||
|
||||
@@ -52,7 +52,6 @@ clean:
|
||||
|
||||
install:
|
||||
-$(MKDIR) $(SERVERROOT)
|
||||
$(CHMOD) ugo+rx $(SERVERROOT)
|
||||
for file in $(KEEP); do \
|
||||
if test -r $(SERVERROOT)/$$file ; then \
|
||||
$(INSTALL_DATA) $$file $(SERVERROOT)/$$file.N ; \
|
||||
|
||||
+8
-2
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# "$Id: classes.conf 1152 2000-06-22 18:25:29Z mike $"
|
||||
# "$Id: classes.conf 969 2000-03-10 16:56:46Z mike $"
|
||||
#
|
||||
# Sample class configuration file for the Common UNIX Printing System
|
||||
# (CUPS) scheduler.
|
||||
@@ -47,6 +47,12 @@
|
||||
|
||||
#Info Acme LaserPrint 1000 Printers
|
||||
|
||||
#
|
||||
# MoreInfo: a URL for more information on the printer.
|
||||
#
|
||||
|
||||
#MoreInfo http://www.acme.com/lp1000.html
|
||||
|
||||
#
|
||||
# Location: the location of the printer.
|
||||
#
|
||||
@@ -85,5 +91,5 @@
|
||||
#</Class>
|
||||
|
||||
#
|
||||
# End of "$Id: classes.conf 1152 2000-06-22 18:25:29Z mike $".
|
||||
# End of "$Id: classes.conf 969 2000-03-10 16:56:46Z mike $".
|
||||
#
|
||||
|
||||
+2
-17
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# "$Id: cupsd.conf 1171 2000-06-27 21:15:41Z mike $"
|
||||
# "$Id: cupsd.conf 1054 2000-05-08 21:13:37Z mike $"
|
||||
#
|
||||
# Sample configuration file for the Common UNIX Printing System (CUPS)
|
||||
# scheduler.
|
||||
@@ -71,13 +71,6 @@
|
||||
|
||||
#AccessLog /var/log/cups/access_log
|
||||
|
||||
#
|
||||
# DataDir: the root directory for the CUPS data files.
|
||||
# By default /usr/share/cups.
|
||||
#
|
||||
|
||||
#DataDir /usr/share/cups
|
||||
|
||||
#
|
||||
# DefaultCharset: the default character set to use. If not specified,
|
||||
# defaults to utf-8. Note that this can also be overridden in
|
||||
@@ -296,14 +289,6 @@ Port 631
|
||||
|
||||
#Browsing On
|
||||
|
||||
#
|
||||
# BrowseShortNames: whether or not to use "short" names for remote printers
|
||||
# when possible (e.g. "printer" instead of "printer@host".) Enabled by
|
||||
# default.
|
||||
#
|
||||
|
||||
#BrowseShortNames Yes
|
||||
|
||||
#
|
||||
# BrowseAddress: specifies a broadcast address to be used. By
|
||||
# default browsing information is broadcast to all active interfaces.
|
||||
@@ -538,5 +523,5 @@ Allow From 127.0.0.1
|
||||
</Location>
|
||||
|
||||
#
|
||||
# End of "$Id: cupsd.conf 1171 2000-06-27 21:15:41Z mike $".
|
||||
# End of "$Id: cupsd.conf 1054 2000-05-08 21:13:37Z mike $".
|
||||
#
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# "$Id: mime.types 1152 2000-06-22 18:25:29Z mike $"
|
||||
# "$Id: mime.types 1042 2000-04-30 22:03:57Z mike $"
|
||||
#
|
||||
# MIME types file for the Common UNIX Printing System (CUPS).
|
||||
#
|
||||
@@ -39,7 +39,7 @@
|
||||
# ascii(offset,length) True if bytes are valid printable ASCII
|
||||
# (CR, NL, TAB, BS, 32-126)
|
||||
# printable(offset,length) True if bytes are printable 8-bit chars
|
||||
# (CR, NL, TAB, BS, 32-126, 128-254)
|
||||
# (CR, NL, TAB, BS, 32-126, 160-254)
|
||||
# string(offset,"string") True if bytes are identical to string
|
||||
# char(offset,value) True if byte is identical
|
||||
# short(offset,value) True if 16-bit integer is identical
|
||||
@@ -123,5 +123,5 @@ application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR")
|
||||
application/vnd.cups-raw
|
||||
|
||||
#
|
||||
# End of "$Id: mime.types 1152 2000-06-22 18:25:29Z mike $".
|
||||
# End of "$Id: mime.types 1042 2000-04-30 22:03:57Z mike $".
|
||||
#
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# "$Id: printers.conf 1152 2000-06-22 18:25:29Z mike $"
|
||||
# "$Id: printers.conf 969 2000-03-10 16:56:46Z mike $"
|
||||
#
|
||||
# Sample printer configuration file for the Common UNIX Printing System
|
||||
# (CUPS) scheduler.
|
||||
@@ -47,6 +47,12 @@
|
||||
|
||||
#Info Acme LaserPrint 1000
|
||||
|
||||
#
|
||||
# MoreInfo: a URL for more information on the printer.
|
||||
#
|
||||
|
||||
#MoreInfo http://www.acme.com/lp1000.html
|
||||
|
||||
#
|
||||
# Location: the location of the printer.
|
||||
#
|
||||
@@ -92,5 +98,5 @@
|
||||
#</Printer>
|
||||
|
||||
#
|
||||
# End of "$Id: printers.conf 1152 2000-06-22 18:25:29Z mike $".
|
||||
# End of "$Id: printers.conf 969 2000-03-10 16:56:46Z mike $".
|
||||
#
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
* Version of software...
|
||||
*/
|
||||
|
||||
#define CUPS_SVERSION "CUPS v1.1"
|
||||
#define CUPS_SVERSION "CUPS v1.1b5"
|
||||
|
||||
/*
|
||||
* Where are files stored?
|
||||
|
||||
+52
-101
@@ -24,7 +24,7 @@ dnl
|
||||
|
||||
AC_INIT(cups/cups.h)
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
AC_PREFIX_DEFAULT(/)
|
||||
AC_PREFIX_DEFAULT(/usr)
|
||||
|
||||
dnl Get the operating system and version number...
|
||||
|
||||
@@ -41,7 +41,6 @@ OPTIM=""
|
||||
AC_SUBST(OPTIM)
|
||||
PICFLAG=1
|
||||
CFLAGS="${CFLAGS:=}"
|
||||
CXXFLAGS="${CXXFLAGS:=}"
|
||||
|
||||
AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],[if eval "test x$enable_debug = xyes"; then
|
||||
OPTIM="-g "
|
||||
@@ -116,7 +115,6 @@ AC_ARG_ENABLE(pam, [ --enable-pam turn on PAM support [default=yes]])
|
||||
dnl Checks for programs...
|
||||
AC_PROG_AWK
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_PROG_CPP
|
||||
AC_PROG_RANLIB
|
||||
AC_PATH_PROG(AR,ar)
|
||||
@@ -192,7 +190,7 @@ AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
|
||||
LIBJPEG="-ljpeg"
|
||||
LIBS="$LIBS -ljpeg")
|
||||
|
||||
AC_CHECK_LIB(z, gzgets,
|
||||
AC_CHECK_LIB(z, deflate,
|
||||
AC_DEFINE(HAVE_LIBZ)
|
||||
LIBZ="-lz"
|
||||
LIBS="$LIBS -lz")
|
||||
@@ -313,6 +311,19 @@ else
|
||||
IMGLIBS="\$(LIBJPEG) \$(LIBPNG) \$(LIBTIFF) \$(LIBZ)"
|
||||
fi
|
||||
|
||||
# Figure out how to install "cat" pages...
|
||||
case "$uname" in
|
||||
FreeBSD* | NetBSD* | OpenBSD*)
|
||||
# *BSD
|
||||
INSTALL_CAT="install-bsdcat"
|
||||
;;
|
||||
*)
|
||||
# All others
|
||||
INSTALL_CAT="install-cat"
|
||||
;;
|
||||
esac
|
||||
AC_SUBST(INSTALL_CAT)
|
||||
|
||||
AC_SUBST(DSO)
|
||||
AC_SUBST(DSOLIBS)
|
||||
AC_SUBST(IMGLIBS)
|
||||
@@ -322,108 +333,48 @@ AC_SUBST(LIBTOOL)
|
||||
AC_SUBST(LINKCUPS)
|
||||
AC_SUBST(LINKCUPSIMAGE)
|
||||
|
||||
dnl Fix "prefix" variable if it hasn't been specified...
|
||||
if test "$prefix" = "NONE"; then
|
||||
prefix="/"
|
||||
fi
|
||||
|
||||
dnl Fix "exec_prefix" variable if it hasn't been specified...
|
||||
if test "$exec_prefix" = "NONE" -a "$prefix" = "/"; then
|
||||
exec_prefix="/usr"
|
||||
fi
|
||||
|
||||
dnl Fix "sharedstatedir" variable if it hasn't been specified...
|
||||
if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
|
||||
sharedstatedir="/usr/com"
|
||||
fi
|
||||
|
||||
dnl Fix "infodir" variable if it hasn't been specified...
|
||||
if test "$infodir" = "\${prefix}/info" -a "$prefix" = "/"; then
|
||||
infodir="/usr/info"
|
||||
fi
|
||||
|
||||
dnl Fix "datadir" variable if it hasn't been specified...
|
||||
if test "$datadir" = "\${prefix}/share" -a "$prefix" = "/"; then
|
||||
datadir="/usr/share"
|
||||
fi
|
||||
|
||||
dnl Fix "includedir" variable if it hasn't been specified...
|
||||
if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
|
||||
includedir="/usr/include"
|
||||
fi
|
||||
|
||||
dnl Fix "localstatedir" variable if it hasn't been specified...
|
||||
if test "$localstatedir" = "\${prefix}/var" -a "$prefix" = "/"; then
|
||||
localstatedir="/var"
|
||||
fi
|
||||
|
||||
dnl Fix "sysconfdir" variable if it hasn't been specified...
|
||||
if test "$sysconfdir" = "\${prefix}/etc" -a "$prefix" = "/"; then
|
||||
sysconfdir="/etc"
|
||||
dnl Fix prefix as needed..
|
||||
if test "$prefix" = "NONE" ; then
|
||||
prefix="/usr"
|
||||
fi
|
||||
|
||||
dnl Fix "libdir" variable for IRIX 6.x...
|
||||
if test "$uname" = "IRIX" -a $uversion -ge 62; then
|
||||
libdir="$exec_prefix/lib32"
|
||||
if test "$uname" = "IRIX" -a $uversion -ge 65; then
|
||||
libdir="${prefix}/lib32"
|
||||
fi
|
||||
|
||||
dnl Fix "mandir" variable...
|
||||
if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
|
||||
if test "$uname" = "IRIX"; then
|
||||
mandir="/usr/share/catman"
|
||||
else
|
||||
mandir="/usr/man"
|
||||
fi
|
||||
dnl Need special attention for the default location...
|
||||
if test "$prefix" = "/usr" ; then
|
||||
CUPS_SERVERROOT="/etc/cups"
|
||||
CUPS_LOGDIR="/var/log/cups"
|
||||
CUPS_REQUESTS="/var/spool/cups"
|
||||
|
||||
AC_DEFINE_UNQUOTED(CUPS_SERVERROOT, "$CUPS_SERVERROOT")
|
||||
AC_DEFINE_UNQUOTED(CUPS_LOGDIR, "$CUPS_LOGDIR")
|
||||
AC_DEFINE_UNQUOTED(CUPS_REQUESTS, "$CUPS_REQUESTS")
|
||||
else
|
||||
CUPS_SERVERROOT='${prefix}/etc/cups'
|
||||
CUPS_LOGDIR='${prefix}/log/cups'
|
||||
CUPS_REQUESTS='${prefix}/spool/cups'
|
||||
|
||||
AC_DEFINE_UNQUOTED(CUPS_SERVERROOT, "$prefix/etc/cups")
|
||||
AC_DEFINE_UNQUOTED(CUPS_LOGDIR, "$prefix/log/cups")
|
||||
AC_DEFINE_UNQUOTED(CUPS_REQUESTS, "$prefix/spool/cups")
|
||||
fi
|
||||
|
||||
dnl Setup manpage extensions...
|
||||
case "$uname" in
|
||||
FreeBSD* | NetBSD* | OpenBSD*)
|
||||
# *BSD
|
||||
CAT1EXT=0
|
||||
CAT5EXT=0
|
||||
CAT8EXT=0
|
||||
;;
|
||||
IRIX*)
|
||||
# SGI IRIX
|
||||
CAT1EXT=z
|
||||
CAT5EXT=z
|
||||
CAT8EXT=z
|
||||
;;
|
||||
*)
|
||||
# All others
|
||||
CAT1EXT=1
|
||||
CAT5EXT=5
|
||||
CAT8EXT=8
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_SUBST(CAT1EXT)
|
||||
AC_SUBST(CAT5EXT)
|
||||
AC_SUBST(CAT8EXT)
|
||||
|
||||
dnl Setup default locations...
|
||||
CUPS_SERVERROOT='${prefix}/etc/cups'
|
||||
CUPS_LOGDIR='${prefix}/var/log/cups'
|
||||
CUPS_REQUESTS='${prefix}/var/spool/cups'
|
||||
|
||||
AC_DEFINE_UNQUOTED(CUPS_SERVERROOT, "$prefix/etc/cups")
|
||||
AC_DEFINE_UNQUOTED(CUPS_LOGDIR, "$prefix/var/log/cups")
|
||||
AC_DEFINE_UNQUOTED(CUPS_REQUESTS, "$prefix/var/spool/cups")
|
||||
|
||||
dnl See what directory to put server executables...
|
||||
case "$uname" in
|
||||
FreeBSD* | NetBSD* | OpenBSD*)
|
||||
# *BSD
|
||||
INSTALL_SYSV=""
|
||||
CUPS_SERVERBIN='${exec_prefix}/libexec/cups'
|
||||
AC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$exec_prefix/libexec/cups")
|
||||
CUPS_SERVERBIN='${prefix}/libexec/cups'
|
||||
AC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$prefix/libexec/cups")
|
||||
;;
|
||||
*)
|
||||
# All others
|
||||
INSTALL_SYSV="install-sysv"
|
||||
CUPS_SERVERBIN='${exec_prefix}/lib/cups'
|
||||
AC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$exec_prefix/lib/cups")
|
||||
CUPS_SERVERBIN='${prefix}/lib/cups'
|
||||
AC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$prefix/lib/cups")
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -436,35 +387,35 @@ AC_SUBST(CUPS_REQUESTS)
|
||||
dnl Set the CUPS_LOCALE directory...
|
||||
case "$uname" in
|
||||
Linux* | FreeBSD* | NetBSD* | OpenBSD*)
|
||||
CUPS_LOCALEDIR='${exec_prefix}/share/locale'
|
||||
AC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$exec_prefix/share/locale")
|
||||
CUPS_LOCALEDIR='${prefix}/share/locale'
|
||||
AC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$prefix/share/locale")
|
||||
;;
|
||||
|
||||
OSF1*)
|
||||
CUPS_LOCALEDIR='${exec_prefix}/lib/nls/msg'
|
||||
AC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$exec_prefix/lib/nls/msg")
|
||||
CUPS_LOCALEDIR='${prefix}/lib/nls/msg'
|
||||
AC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$prefix/lib/nls/msg")
|
||||
;;
|
||||
|
||||
*)
|
||||
# This is the standard System V location...
|
||||
CUPS_LOCALEDIR='${exec_prefix}/lib/locale'
|
||||
AC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$exec_prefix/lib/locale")
|
||||
CUPS_LOCALEDIR='${prefix}/lib/locale'
|
||||
AC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$prefix/lib/locale")
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_SUBST(CUPS_LOCALEDIR)
|
||||
|
||||
dnl Set the CUPS_DATADIR directory...
|
||||
CUPS_DATADIR='${exec_prefix}/share/cups'
|
||||
AC_DEFINE_UNQUOTED(CUPS_DATADIR, "$exec_prefix/share/cups")
|
||||
CUPS_DATADIR='${datadir}/cups'
|
||||
AC_DEFINE_UNQUOTED(CUPS_DATADIR, "$prefix/share/cups")
|
||||
AC_SUBST(CUPS_DATADIR)
|
||||
|
||||
dnl Set the CUPS_DOCROOT directory...
|
||||
CUPS_DOCROOT='${exec_prefix}/share/doc/cups'
|
||||
AC_DEFINE_UNQUOTED(CUPS_DOCROOT, "$exec_prefix/share/doc/cups")
|
||||
CUPS_DOCROOT='${datadir}/doc/cups'
|
||||
AC_DEFINE_UNQUOTED(CUPS_DOCROOT, "$prefix/share/doc/cups")
|
||||
AC_SUBST(CUPS_DOCROOT)
|
||||
|
||||
AC_OUTPUT(Makedefs cups.sh)
|
||||
AC_OUTPUT(Makedefs)
|
||||
|
||||
dnl
|
||||
dnl End of "$Id$".
|
||||
|
||||
+392
-434
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# "$Id: cups.list 1202 2000-07-07 21:25:17Z mike $"
|
||||
# "$Id: cups.list 1127 2000-06-08 20:00:41Z mike $"
|
||||
#
|
||||
# ESP Package Manager (EPM) file list for the Common UNIX Printing
|
||||
# System (CUPS).
|
||||
@@ -28,479 +28,437 @@
|
||||
%vendor Easy Software Products
|
||||
%license LICENSE.txt
|
||||
%readme README.txt
|
||||
%version 1.1
|
||||
%version 1.1b5
|
||||
%incompat printpro
|
||||
|
||||
%system all
|
||||
# Server files
|
||||
f 0555 root sys $SBINDIR/cupsd scheduler/cupsd
|
||||
|
||||
d 0555 root sys $SERVERBIN -
|
||||
d 0555 root sys $SERVERBIN/backend -
|
||||
f 0555 root sys $SERVERBIN/backend/ipp backend/ipp
|
||||
l 0555 root sys $SERVERBIN/backend/http ipp
|
||||
f 0555 root sys $SERVERBIN/backend/lpd backend/lpd
|
||||
f 0555 root sys $SERVERBIN/backend/parallel backend/parallel
|
||||
f 0555 root sys $SERVERBIN/backend/serial backend/serial
|
||||
f 0555 root sys $SERVERBIN/backend/socket backend/socket
|
||||
f 0555 root sys $SERVERBIN/backend/usb backend/usb
|
||||
d 0555 root sys $SERVERBIN/cgi-bin -
|
||||
f 0555 root sys $SERVERBIN/cgi-bin/admin.cgi cgi-bin/admin.cgi
|
||||
f 0555 root sys $SERVERBIN/cgi-bin/classes.cgi cgi-bin/classes.cgi
|
||||
f 0555 root sys $SERVERBIN/cgi-bin/jobs.cgi cgi-bin/jobs.cgi
|
||||
f 0555 root sys $SERVERBIN/cgi-bin/printers.cgi cgi-bin/printers.cgi
|
||||
d 0555 root sys $SERVERBIN/daemon -
|
||||
f 0555 root sys $SERVERBIN/daemon/cups-lpd scheduler/cups-lpd
|
||||
f 0555 root sys $SERVERBIN/daemon/cups-polld scheduler/cups-polld
|
||||
d 0555 root sys $SERVERBIN/filter -
|
||||
f 0555 root sys $SERVERBIN/filter/pstoraster pstoraster/pstoraster
|
||||
f 0555 root sys $SERVERBIN/filter/pdftops pdftops/pdftops
|
||||
f 0555 root sys $SERVERBIN/filter/imagetops filter/imagetops
|
||||
f 0555 root sys $SERVERBIN/filter/pstops filter/pstops
|
||||
f 0555 root sys $SERVERBIN/filter/texttops filter/texttops
|
||||
f 0555 root sys $SERVERBIN/filter/rastertoepson filter/rastertoepson
|
||||
f 0555 root sys $SERVERBIN/filter/rastertohp filter/rastertohp
|
||||
f 0555 root sys $SERVERBIN/filter/hpgltops filter/hpgltops
|
||||
f 0555 root sys $SERVERBIN/filter/imagetoraster filter/imagetoraster
|
||||
f 0500 root sys /usr/sbin/cupsd scheduler/cupsd
|
||||
f 0555 root sys /usr/lib/cups/backend/ipp backend/ipp
|
||||
l 0555 root sys /usr/lib/cups/backend/http ipp
|
||||
f 0555 root sys /usr/lib/cups/backend/lpd backend/lpd
|
||||
f 0555 root sys /usr/lib/cups/backend/parallel backend/parallel
|
||||
f 0555 root sys /usr/lib/cups/backend/serial backend/serial
|
||||
f 0555 root sys /usr/lib/cups/backend/socket backend/socket
|
||||
f 0555 root sys /usr/lib/cups/backend/usb backend/usb
|
||||
f 0555 root sys /usr/lib/cups/cgi-bin/admin.cgi cgi-bin/admin.cgi
|
||||
f 0555 root sys /usr/lib/cups/cgi-bin/classes.cgi cgi-bin/classes.cgi
|
||||
f 0555 root sys /usr/lib/cups/cgi-bin/jobs.cgi cgi-bin/jobs.cgi
|
||||
f 0555 root sys /usr/lib/cups/cgi-bin/printers.cgi cgi-bin/printers.cgi
|
||||
f 0555 root sys /usr/lib/cups/daemon/cups-lpd scheduler/cups-lpd
|
||||
f 0555 root sys /usr/lib/cups/daemon/cups-polld scheduler/cups-polld
|
||||
f 0555 root sys /usr/lib/cups/filter/pstoraster pstoraster/pstoraster
|
||||
l 0555 root sys /usr/lib/cups/filter/pdftops pstoraster
|
||||
f 0555 root sys /usr/lib/cups/filter/imagetops filter/imagetops
|
||||
f 0555 root sys /usr/lib/cups/filter/pstops filter/pstops
|
||||
f 0555 root sys /usr/lib/cups/filter/texttops filter/texttops
|
||||
f 0555 root sys /usr/lib/cups/filter/rastertoepson filter/rastertoepson
|
||||
f 0555 root sys /usr/lib/cups/filter/rastertohp filter/rastertohp
|
||||
f 0555 root sys /usr/lib/cups/filter/hpgltops filter/hpgltops
|
||||
f 0555 root sys /usr/lib/cups/filter/imagetoraster filter/imagetoraster
|
||||
|
||||
# Admin commands
|
||||
l 0555 root sys $BINDIR/disable $SBINDIR/accept
|
||||
l 0555 root sys $BINDIR/enable $SBINDIR/accept
|
||||
l 0555 root sys $LIBDIR/accept $SBINDIR/accept
|
||||
l 0555 root sys $LIBDIR/lpadmin $SBINDIR/lpadmin
|
||||
l 0555 root sys $LIBDIR/reject accept
|
||||
f 0555 root sys $SBINDIR/accept systemv/accept
|
||||
f 0555 root sys $SBINDIR/lpadmin systemv/lpadmin
|
||||
f 0555 root sys $SBINDIR/lpc berkeley/lpc
|
||||
f 0555 root sys $SBINDIR/lpinfo systemv/lpinfo
|
||||
f 0555 root sys $SBINDIR/lpmove systemv/lpmove
|
||||
l 0555 root sys $SBINDIR/reject accept
|
||||
|
||||
%system irix
|
||||
l 0555 root sys /usr/etc/lpc $SBINDIR/lpc
|
||||
%system all
|
||||
l 0555 root sys /usr/bin/disable /usr/sbin/accept
|
||||
l 0555 root sys /usr/bin/enable /usr/sbin/accept
|
||||
l 0555 root sys /usr/lib/accept /usr/sbin/accept
|
||||
l 0555 root sys /usr/lib/lpadmin /usr/sbin/lpadmin
|
||||
l 0555 root sys /usr/lib/reject accept
|
||||
f 0555 root sys /usr/sbin/accept systemv/accept
|
||||
f 0555 root sys /usr/sbin/lpadmin systemv/lpadmin
|
||||
f 0555 root sys /usr/sbin/lpc berkeley/lpc
|
||||
f 0555 root sys /usr/sbin/lpinfo systemv/lpinfo
|
||||
f 0555 root sys /usr/sbin/lpmove systemv/lpmove
|
||||
l 0555 root sys /usr/sbin/reject accept
|
||||
|
||||
# User commands
|
||||
f 0555 root sys $BINDIR/cancel systemv/cancel
|
||||
f 0555 root sys $BINDIR/lp systemv/lp
|
||||
f 0555 root sys $BINDIR/lpoptions systemv/lpoptions
|
||||
f 4555 root sys $BINDIR/lppasswd systemv/lppasswd
|
||||
f 0555 root sys $BINDIR/lpq berkeley/lpq
|
||||
f 0555 root sys $BINDIR/lpr berkeley/lpr
|
||||
f 0555 root sys $BINDIR/lprm berkeley/lprm
|
||||
f 0555 root sys $BINDIR/lpstat systemv/lpstat
|
||||
|
||||
%system irix
|
||||
l 0555 root sys /usr/bsd/lpq $BINDIR/lpq
|
||||
l 0555 root sys /usr/bsd/lpr $BINDIR/lpr
|
||||
l 0555 root sys /usr/bsd/lprm $BINDIR/lprm
|
||||
%system all
|
||||
f 0555 root sys /usr/bin/cancel systemv/cancel
|
||||
f 0555 root sys /usr/bin/lp systemv/lp
|
||||
f 0555 root sys /usr/bin/lpoptions systemv/lpoptions
|
||||
f 4555 root sys /usr/bin/lppasswd systemv/lppasswd
|
||||
f 0555 root sys /usr/bin/lpq berkeley/lpq
|
||||
f 0555 root sys /usr/bin/lpr berkeley/lpr
|
||||
f 0555 root sys /usr/bin/lprm berkeley/lprm
|
||||
f 0555 root sys /usr/bin/lpstat systemv/lpstat
|
||||
|
||||
# DSOs
|
||||
%system hpux
|
||||
f 0555 root sys $LIBDIR/libcups.sl.2 cups/libcups.sl.2
|
||||
l 0555 root sys $LIBDIR/libcups.sl libcups.sl.2
|
||||
f 0555 root sys $LIBDIR/libcupsimage.sl.2 filter/libcupsimage.sl.2
|
||||
l 0555 root sys $LIBDIR/libcupsimage.sl libcupsimage.sl.2
|
||||
%system !hpux
|
||||
f 0555 root sys $LIBDIR/libcups.so.2 cups/libcups.so.2
|
||||
l 0555 root sys $LIBDIR/libcups.so libcups.so.2
|
||||
f 0555 root sys $LIBDIR/libcupsimage.so.2 filter/libcupsimage.so.2
|
||||
l 0555 root sys $LIBDIR/libcupsimage.so libcupsimage.so.2
|
||||
f 0555 root sys /usr/lib/libcups.sl.2 cups/libcups.sl.2
|
||||
l 0555 root sys /usr/lib/libcups.sl libcups.sl.2
|
||||
f 0555 root sys /usr/lib/libcupsimage.sl.2 filter/libcupsimage.sl.2
|
||||
l 0555 root sys /usr/lib/libcupsimage.sl libcupsimage.sl.2
|
||||
%system irix-6.5
|
||||
f 0555 root sys /usr/lib32/libcups.so.2 cups/libcups.so.2
|
||||
l 0555 root sys /usr/lib32/libcups.so libcups.so.2
|
||||
f 0555 root sys /usr/lib32/libcupsimage.so.2 filter/libcupsimage.so.2
|
||||
l 0555 root sys /usr/lib32/libcupsimage.so libcupsimage.so.2
|
||||
%system !irix-6.5 !hpux
|
||||
f 0555 root sys /usr/lib/libcups.so.2 cups/libcups.so.2
|
||||
l 0555 root sys /usr/lib/libcups.so libcups.so.2
|
||||
f 0555 root sys /usr/lib/libcupsimage.so.2 filter/libcupsimage.so.2
|
||||
l 0555 root sys /usr/lib/libcupsimage.so libcupsimage.so.2
|
||||
%system all
|
||||
|
||||
# Directories
|
||||
d 0755 root sys $LOGDIR -
|
||||
d 0755 root sys $REQUESTS -
|
||||
d 0711 root sys /etc/cups/certs
|
||||
d 0755 root sys /etc/cups/interfaces
|
||||
d 0755 root sys /etc/cups/ppd
|
||||
d 0755 root sys /var/log/cups
|
||||
d 0755 root sys /var/spool/cups
|
||||
|
||||
# Data files
|
||||
f 0444 root sys $LOCALEDIR/C/cups_C locale/C/cups_C
|
||||
f 0444 root sys $LOCALEDIR/de/cups_de locale/de/cups_de
|
||||
f 0444 root sys $LOCALEDIR/en/cups_en locale/en/cups_en
|
||||
f 0444 root sys $LOCALEDIR/es/cups_es locale/es/cups_es
|
||||
f 0444 root sys $LOCALEDIR/fr/cups_fr locale/fr/cups_fr
|
||||
f 0444 root sys $LOCALEDIR/it/cups_it locale/it/cups_it
|
||||
%system linux
|
||||
f 0444 root sys /usr/share/locale/C/cups_C locale/C/cups_C
|
||||
f 0444 root sys /usr/share/locale/de/cups_de locale/de/cups_de
|
||||
f 0444 root sys /usr/share/locale/en/cups_en locale/en/cups_en
|
||||
f 0444 root sys /usr/share/locale/es/cups_es locale/es/cups_es
|
||||
f 0444 root sys /usr/share/locale/fr/cups_fr locale/fr/cups_fr
|
||||
f 0444 root sys /usr/share/locale/it/cups_it locale/it/cups_it
|
||||
|
||||
d 0555 root sys $DATADIR -
|
||||
%system dunix
|
||||
f 0444 root sys /usr/lib/nls/msg/C/cups_C locale/C/cups_C
|
||||
f 0444 root sys /usr/lib/nls/msg/de/cups_de locale/de/cups_de
|
||||
f 0444 root sys /usr/lib/nls/msg/en/cups_en locale/en/cups_en
|
||||
f 0444 root sys /usr/lib/nls/msg/es/cups_es locale/es/cups_es
|
||||
f 0444 root sys /usr/lib/nls/msg/fr/cups_fr locale/fr/cups_fr
|
||||
f 0444 root sys /usr/lib/nls/msg/it/cups_it locale/it/cups_it
|
||||
|
||||
d 0555 root sys $DATADIR/banners -
|
||||
f 0444 root sys $DATADIR/banners/classified data/classified
|
||||
f 0444 root sys $DATADIR/banners/confidential data/confidential
|
||||
f 0444 root sys $DATADIR/banners/secret data/secret
|
||||
f 0444 root sys $DATADIR/banners/standard data/standard
|
||||
f 0444 root sys $DATADIR/banners/topsecret data/topsecret
|
||||
f 0444 root sys $DATADIR/banners/unclassified data/unclassified
|
||||
%system !linux dunix
|
||||
f 0444 root sys /usr/lib/locale/C/cups_C locale/C/cups_C
|
||||
f 0444 root sys /usr/lib/locale/de/cups_de locale/de/cups_de
|
||||
f 0444 root sys /usr/lib/locale/en/cups_en locale/en/cups_en
|
||||
f 0444 root sys /usr/lib/locale/es/cups_es locale/es/cups_es
|
||||
f 0444 root sys /usr/lib/locale/fr/cups_fr locale/fr/cups_fr
|
||||
f 0444 root sys /usr/lib/locale/it/cups_it locale/it/cups_it
|
||||
|
||||
d 0555 root sys $DATADIR/charsets -
|
||||
f 0444 root sys $DATADIR/charsets/windows-874 data/windows-874
|
||||
f 0444 root sys $DATADIR/charsets/windows-1250 data/windows-1250
|
||||
f 0444 root sys $DATADIR/charsets/windows-1251 data/windows-1251
|
||||
f 0444 root sys $DATADIR/charsets/windows-1252 data/windows-1252
|
||||
f 0444 root sys $DATADIR/charsets/windows-1253 data/windows-1253
|
||||
f 0444 root sys $DATADIR/charsets/windows-1254 data/windows-1254
|
||||
f 0444 root sys $DATADIR/charsets/windows-1255 data/windows-1255
|
||||
f 0444 root sys $DATADIR/charsets/windows-1256 data/windows-1256
|
||||
f 0444 root sys $DATADIR/charsets/windows-1257 data/windows-1257
|
||||
f 0444 root sys $DATADIR/charsets/windows-1258 data/windows-1258
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-1 data/iso-8859-1
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-14 data/iso-8859-14
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-15 data/iso-8859-15
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-2 data/iso-8859-2
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-3 data/iso-8859-3
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-4 data/iso-8859-4
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-5 data/iso-8859-5
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-6 data/iso-8859-6
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-7 data/iso-8859-7
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-8 data/iso-8859-8
|
||||
f 0444 root sys $DATADIR/charsets/iso-8859-9 data/iso-8859-9
|
||||
f 0444 root sys $DATADIR/charsets/utf-8 data/utf-8
|
||||
%system all
|
||||
f 0444 root sys /usr/share/cups/banners/classified data/classified
|
||||
f 0444 root sys /usr/share/cups/banners/confidential data/confidential
|
||||
f 0444 root sys /usr/share/cups/banners/secret data/secret
|
||||
f 0444 root sys /usr/share/cups/banners/standard data/standard
|
||||
f 0444 root sys /usr/share/cups/banners/topsecret data/topsecret
|
||||
f 0444 root sys /usr/share/cups/banners/unclassified data/unclassified
|
||||
|
||||
d 0555 root sys $DATADIR/data -
|
||||
f 0444 root sys $DATADIR/data/HPGLprolog data/HPGLprolog
|
||||
f 0444 root sys $DATADIR/data/psglyphs data/psglyphs
|
||||
f 0444 root sys $DATADIR/data/testprint.ps data/testprint.ps
|
||||
f 0444 root sys /usr/share/cups/charsets/windows-874 data/windows-874
|
||||
f 0444 root sys /usr/share/cups/charsets/windows-1250 data/windows-1250
|
||||
f 0444 root sys /usr/share/cups/charsets/windows-1251 data/windows-1251
|
||||
f 0444 root sys /usr/share/cups/charsets/windows-1252 data/windows-1252
|
||||
f 0444 root sys /usr/share/cups/charsets/windows-1253 data/windows-1253
|
||||
f 0444 root sys /usr/share/cups/charsets/windows-1254 data/windows-1254
|
||||
f 0444 root sys /usr/share/cups/charsets/windows-1255 data/windows-1255
|
||||
f 0444 root sys /usr/share/cups/charsets/windows-1256 data/windows-1256
|
||||
f 0444 root sys /usr/share/cups/charsets/windows-1257 data/windows-1257
|
||||
f 0444 root sys /usr/share/cups/charsets/windows-1258 data/windows-1258
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-1 data/iso-8859-1
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-14 data/iso-8859-14
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-15 data/iso-8859-15
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-2 data/iso-8859-2
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-3 data/iso-8859-3
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-4 data/iso-8859-4
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-5 data/iso-8859-5
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-6 data/iso-8859-6
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-7 data/iso-8859-7
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-8 data/iso-8859-8
|
||||
f 0444 root sys /usr/share/cups/charsets/iso-8859-9 data/iso-8859-9
|
||||
f 0444 root sys /usr/share/cups/charsets/utf-8 data/utf-8
|
||||
|
||||
d 0555 root sys $DATADIR/fonts -
|
||||
f 0444 root sys $DATADIR/fonts/AvantGarde-Book fonts/AvantGarde-Book
|
||||
f 0444 root sys $DATADIR/fonts/AvantGarde-BookOblique fonts/AvantGarde-BookOblique
|
||||
f 0444 root sys $DATADIR/fonts/AvantGarde-Demi fonts/AvantGarde-Demi
|
||||
f 0444 root sys $DATADIR/fonts/AvantGarde-DemiOblique fonts/AvantGarde-DemiOblique
|
||||
f 0444 root sys $DATADIR/fonts/Bookman-Demi fonts/Bookman-Demi
|
||||
f 0444 root sys $DATADIR/fonts/Bookman-DemiItalic fonts/Bookman-DemiItalic
|
||||
f 0444 root sys $DATADIR/fonts/Bookman-Light fonts/Bookman-Light
|
||||
f 0444 root sys $DATADIR/fonts/Bookman-LightItalic fonts/Bookman-LightItalic
|
||||
f 0444 root sys $DATADIR/fonts/Charter-Bold fonts/Charter-Bold
|
||||
f 0444 root sys $DATADIR/fonts/Charter-BoldItalic fonts/Charter-BoldItalic
|
||||
f 0444 root sys $DATADIR/fonts/Charter-Italic fonts/Charter-Italic
|
||||
f 0444 root sys $DATADIR/fonts/Charter-Roman fonts/Charter-Roman
|
||||
f 0444 root sys $DATADIR/fonts/Courier fonts/Courier
|
||||
f 0444 root sys $DATADIR/fonts/Courier-Bold fonts/Courier-Bold
|
||||
f 0444 root sys $DATADIR/fonts/Courier-BoldOblique fonts/Courier-BoldOblique
|
||||
f 0444 root sys $DATADIR/fonts/Courier-Oblique fonts/Courier-Oblique
|
||||
f 0444 root sys $DATADIR/fonts/Helvetica fonts/Helvetica
|
||||
f 0444 root sys $DATADIR/fonts/Helvetica-Bold fonts/Helvetica-Bold
|
||||
f 0444 root sys $DATADIR/fonts/Helvetica-BoldOblique fonts/Helvetica-BoldOblique
|
||||
f 0444 root sys $DATADIR/fonts/Helvetica-Narrow fonts/Helvetica-Narrow
|
||||
f 0444 root sys $DATADIR/fonts/Helvetica-Narrow-Bold fonts/Helvetica-Narrow-Bold
|
||||
f 0444 root sys $DATADIR/fonts/Helvetica-Narrow-BoldOblique fonts/Helvetica-Narrow-BoldOblique
|
||||
f 0444 root sys $DATADIR/fonts/Helvetica-Narrow-Oblique fonts/Helvetica-Narrow-Oblique
|
||||
f 0444 root sys $DATADIR/fonts/Helvetica-Oblique fonts/Helvetica-Oblique
|
||||
f 0444 root sys $DATADIR/fonts/NewCenturySchlbk-Bold fonts/NewCenturySchlbk-Bold
|
||||
f 0444 root sys $DATADIR/fonts/NewCenturySchlbk-BoldItalic fonts/NewCenturySchlbk-BoldItalic
|
||||
f 0444 root sys $DATADIR/fonts/NewCenturySchlbk-Italic fonts/NewCenturySchlbk-Italic
|
||||
f 0444 root sys $DATADIR/fonts/NewCenturySchlbk-Roman fonts/NewCenturySchlbk-Roman
|
||||
f 0444 root sys $DATADIR/fonts/Palatino-Bold fonts/Palatino-Bold
|
||||
f 0444 root sys $DATADIR/fonts/Palatino-BoldItalic fonts/Palatino-BoldItalic
|
||||
f 0444 root sys $DATADIR/fonts/Palatino-Italic fonts/Palatino-Italic
|
||||
f 0444 root sys $DATADIR/fonts/Palatino-Roman fonts/Palatino-Roman
|
||||
f 0444 root sys $DATADIR/fonts/Symbol fonts/Symbol
|
||||
f 0444 root sys $DATADIR/fonts/Times-Bold fonts/Times-Bold
|
||||
f 0444 root sys $DATADIR/fonts/Times-BoldItalic fonts/Times-BoldItalic
|
||||
f 0444 root sys $DATADIR/fonts/Times-Italic fonts/Times-Italic
|
||||
f 0444 root sys $DATADIR/fonts/Times-Roman fonts/Times-Roman
|
||||
f 0444 root sys $DATADIR/fonts/Utopia-Bold fonts/Utopia-Bold
|
||||
f 0444 root sys $DATADIR/fonts/Utopia-BoldItalic fonts/Utopia-BoldItalic
|
||||
f 0444 root sys $DATADIR/fonts/Utopia-Italic fonts/Utopia-Italic
|
||||
f 0444 root sys $DATADIR/fonts/Utopia-Regular fonts/Utopia-Regular
|
||||
f 0444 root sys $DATADIR/fonts/ZapfChancery-MediumItalic fonts/ZapfChancery-MediumItalic
|
||||
f 0444 root sys $DATADIR/fonts/ZapfDingbats fonts/ZapfDingbats
|
||||
f 0444 root sys /usr/share/cups/data/HPGLprolog data/HPGLprolog
|
||||
f 0444 root sys /usr/share/cups/data/psglyphs data/psglyphs
|
||||
f 0444 root sys /usr/share/cups/data/testprint.ps data/testprint.ps
|
||||
|
||||
d 0555 root sys $DATADIR/pstoraster -
|
||||
f 0444 root sys $DATADIR/pstoraster/Fontmap pstoraster/Fontmap
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_btokn.ps pstoraster/gs_btokn.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_ccfnt.ps pstoraster/gs_ccfnt.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_cff.ps pstoraster/gs_cff.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_cidfn.ps pstoraster/gs_cidfn.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_cmap.ps pstoraster/gs_cmap.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_cmdl.ps pstoraster/gs_cmdl.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_dbt_e.ps pstoraster/gs_dbt_e.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_diskf.ps pstoraster/gs_diskf.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_dpnxt.ps pstoraster/gs_dpnxt.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_dps.ps pstoraster/gs_dps.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_dps1.ps pstoraster/gs_dps1.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_dps2.ps pstoraster/gs_dps2.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_epsf.ps pstoraster/gs_epsf.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_fform.ps pstoraster/gs_fform.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_fonts.ps pstoraster/gs_fonts.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_init.ps pstoraster/gs_init.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_iso_e.ps pstoraster/gs_iso_e.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_kanji.ps pstoraster/gs_kanji.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_ksb_e.ps pstoraster/gs_ksb_e.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_lev2.ps pstoraster/gs_lev2.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_ll3.ps pstoraster/gs_ll3.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_mex_e.ps pstoraster/gs_mex_e.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_mro_e.ps pstoraster/gs_mro_e.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_pfile.ps pstoraster/gs_pfile.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_res.ps pstoraster/gs_res.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_setpd.ps pstoraster/gs_setpd.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_statd.ps pstoraster/gs_statd.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_std_e.ps pstoraster/gs_std_e.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_sym_e.ps pstoraster/gs_sym_e.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_ttf.ps pstoraster/gs_ttf.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_typ32.ps pstoraster/gs_typ32.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_typ42.ps pstoraster/gs_typ42.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_type1.ps pstoraster/gs_type1.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_wan_e.ps pstoraster/gs_wan_e.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_wl1_e.ps pstoraster/gs_wl1_e.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_wl2_e.ps pstoraster/gs_wl2_e.ps
|
||||
f 0444 root sys $DATADIR/pstoraster/gs_wl5_e.ps pstoraster/gs_wl5_e.ps
|
||||
f 0444 root sys /usr/share/cups/fonts/AvantGarde-Book fonts/AvantGarde-Book
|
||||
f 0444 root sys /usr/share/cups/fonts/AvantGarde-BookOblique fonts/AvantGarde-BookOblique
|
||||
f 0444 root sys /usr/share/cups/fonts/AvantGarde-Demi fonts/AvantGarde-Demi
|
||||
f 0444 root sys /usr/share/cups/fonts/AvantGarde-DemiOblique fonts/AvantGarde-DemiOblique
|
||||
f 0444 root sys /usr/share/cups/fonts/Bookman-Demi fonts/Bookman-Demi
|
||||
f 0444 root sys /usr/share/cups/fonts/Bookman-DemiItalic fonts/Bookman-DemiItalic
|
||||
f 0444 root sys /usr/share/cups/fonts/Bookman-Light fonts/Bookman-Light
|
||||
f 0444 root sys /usr/share/cups/fonts/Bookman-LightItalic fonts/Bookman-LightItalic
|
||||
f 0444 root sys /usr/share/cups/fonts/Charter-Bold fonts/Charter-Bold
|
||||
f 0444 root sys /usr/share/cups/fonts/Charter-BoldItalic fonts/Charter-BoldItalic
|
||||
f 0444 root sys /usr/share/cups/fonts/Charter-Italic fonts/Charter-Italic
|
||||
f 0444 root sys /usr/share/cups/fonts/Charter-Roman fonts/Charter-Roman
|
||||
f 0444 root sys /usr/share/cups/fonts/Courier fonts/Courier
|
||||
f 0444 root sys /usr/share/cups/fonts/Courier-Bold fonts/Courier-Bold
|
||||
f 0444 root sys /usr/share/cups/fonts/Courier-BoldOblique fonts/Courier-BoldOblique
|
||||
f 0444 root sys /usr/share/cups/fonts/Courier-Oblique fonts/Courier-Oblique
|
||||
f 0444 root sys /usr/share/cups/fonts/Helvetica fonts/Helvetica
|
||||
f 0444 root sys /usr/share/cups/fonts/Helvetica-Bold fonts/Helvetica-Bold
|
||||
f 0444 root sys /usr/share/cups/fonts/Helvetica-BoldOblique fonts/Helvetica-BoldOblique
|
||||
f 0444 root sys /usr/share/cups/fonts/Helvetica-Narrow fonts/Helvetica-Narrow
|
||||
f 0444 root sys /usr/share/cups/fonts/Helvetica-Narrow-Bold fonts/Helvetica-Narrow-Bold
|
||||
f 0444 root sys /usr/share/cups/fonts/Helvetica-Narrow-BoldOblique fonts/Helvetica-Narrow-BoldOblique
|
||||
f 0444 root sys /usr/share/cups/fonts/Helvetica-Narrow-Oblique fonts/Helvetica-Narrow-Oblique
|
||||
f 0444 root sys /usr/share/cups/fonts/Helvetica-Oblique fonts/Helvetica-Oblique
|
||||
f 0444 root sys /usr/share/cups/fonts/NewCenturySchlbk-Bold fonts/NewCenturySchlbk-Bold
|
||||
f 0444 root sys /usr/share/cups/fonts/NewCenturySchlbk-BoldItalic fonts/NewCenturySchlbk-BoldItalic
|
||||
f 0444 root sys /usr/share/cups/fonts/NewCenturySchlbk-Italic fonts/NewCenturySchlbk-Italic
|
||||
f 0444 root sys /usr/share/cups/fonts/NewCenturySchlbk-Roman fonts/NewCenturySchlbk-Roman
|
||||
f 0444 root sys /usr/share/cups/fonts/Palatino-Bold fonts/Palatino-Bold
|
||||
f 0444 root sys /usr/share/cups/fonts/Palatino-BoldItalic fonts/Palatino-BoldItalic
|
||||
f 0444 root sys /usr/share/cups/fonts/Palatino-Italic fonts/Palatino-Italic
|
||||
f 0444 root sys /usr/share/cups/fonts/Palatino-Roman fonts/Palatino-Roman
|
||||
f 0444 root sys /usr/share/cups/fonts/Symbol fonts/Symbol
|
||||
f 0444 root sys /usr/share/cups/fonts/Times-Bold fonts/Times-Bold
|
||||
f 0444 root sys /usr/share/cups/fonts/Times-BoldItalic fonts/Times-BoldItalic
|
||||
f 0444 root sys /usr/share/cups/fonts/Times-Italic fonts/Times-Italic
|
||||
f 0444 root sys /usr/share/cups/fonts/Times-Roman fonts/Times-Roman
|
||||
f 0444 root sys /usr/share/cups/fonts/Utopia-Bold fonts/Utopia-Bold
|
||||
f 0444 root sys /usr/share/cups/fonts/Utopia-BoldItalic fonts/Utopia-BoldItalic
|
||||
f 0444 root sys /usr/share/cups/fonts/Utopia-Italic fonts/Utopia-Italic
|
||||
f 0444 root sys /usr/share/cups/fonts/Utopia-Regular fonts/Utopia-Regular
|
||||
f 0444 root sys /usr/share/cups/fonts/ZapfChancery-MediumItalic fonts/ZapfChancery-MediumItalic
|
||||
f 0444 root sys /usr/share/cups/fonts/ZapfDingbats fonts/ZapfDingbats
|
||||
|
||||
d 0555 root sys $DATADIR/model -
|
||||
f 0444 root sys $DATADIR/model/deskjet.ppd ppd/deskjet.ppd
|
||||
f 0444 root sys $DATADIR/model/laserjet.ppd ppd/laserjet.ppd
|
||||
f 0444 root sys $DATADIR/model/epson9.ppd ppd/epson9.ppd
|
||||
f 0444 root sys $DATADIR/model/epson24.ppd ppd/epson24.ppd
|
||||
f 0444 root sys $DATADIR/model/stcolor.ppd ppd/stcolor.ppd
|
||||
f 0444 root sys $DATADIR/model/stphoto.ppd ppd/stphoto.ppd
|
||||
f 0444 root sys /usr/share/cups/pstoraster/Fontmap pstoraster/Fontmap
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_btokn.ps pstoraster/gs_btokn.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_ccfnt.ps pstoraster/gs_ccfnt.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_cff.ps pstoraster/gs_cff.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_cidfn.ps pstoraster/gs_cidfn.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_cmap.ps pstoraster/gs_cmap.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_cmdl.ps pstoraster/gs_cmdl.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_dbt_e.ps pstoraster/gs_dbt_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_diskf.ps pstoraster/gs_diskf.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_dpnxt.ps pstoraster/gs_dpnxt.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_dps1.ps pstoraster/gs_dps1.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_dps2.ps pstoraster/gs_dps2.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_dps.ps pstoraster/gs_dps.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_epsf.ps pstoraster/gs_epsf.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_fform.ps pstoraster/gs_fform.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_fonts.ps pstoraster/gs_fonts.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_init.ps pstoraster/gs_init.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_iso_e.ps pstoraster/gs_iso_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_kanji.ps pstoraster/gs_kanji.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_ksb_e.ps pstoraster/gs_ksb_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_l2img.ps pstoraster/gs_l2img.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_lev2.ps pstoraster/gs_lev2.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_ll3.ps pstoraster/gs_ll3.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_mex_e.ps pstoraster/gs_mex_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_mro_e.ps pstoraster/gs_mro_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_pdfwr.ps pstoraster/gs_pdfwr.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_pdf_e.ps pstoraster/gs_pdf_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_pfile.ps pstoraster/gs_pfile.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_res.ps pstoraster/gs_res.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_setpd.ps pstoraster/gs_setpd.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_statd.ps pstoraster/gs_statd.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_std_e.ps pstoraster/gs_std_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_sym_e.ps pstoraster/gs_sym_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_ttf.ps pstoraster/gs_ttf.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_typ32.ps pstoraster/gs_typ32.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_typ42.ps pstoraster/gs_typ42.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_type1.ps pstoraster/gs_type1.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_wan_e.ps pstoraster/gs_wan_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_wl1_e.ps pstoraster/gs_wl1_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_wl2_e.ps pstoraster/gs_wl2_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/gs_wl5_e.ps pstoraster/gs_wl5_e.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/pdf2dsc.ps pstoraster/pdf2dsc.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/pdf_base.ps pstoraster/pdf_base.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/pdf_draw.ps pstoraster/pdf_draw.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/pdf_font.ps pstoraster/pdf_font.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/pdf_main.ps pstoraster/pdf_main.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/pdf_ops.ps pstoraster/pdf_ops.ps
|
||||
f 0444 root sys /usr/share/cups/pstoraster/pdf_sec.ps pstoraster/pdf_sec.ps
|
||||
|
||||
d 0555 root sys $DATADIR/templates -
|
||||
f 0444 root sys $DATADIR/templates/add-class.tmpl templates/add-class.tmpl
|
||||
f 0444 root sys $DATADIR/templates/add-printer.tmpl templates/add-printer.tmpl
|
||||
f 0444 root sys $DATADIR/templates/admin-op.tmpl templates/admin-op.tmpl
|
||||
f 0444 root sys $DATADIR/templates/admin.tmpl templates/admin.tmpl
|
||||
f 0444 root sys $DATADIR/templates/choose-device.tmpl templates/choose-device.tmpl
|
||||
f 0444 root sys $DATADIR/templates/choose-make.tmpl templates/choose-make.tmpl
|
||||
f 0444 root sys $DATADIR/templates/choose-members.tmpl templates/choose-members.tmpl
|
||||
f 0444 root sys $DATADIR/templates/choose-model.tmpl templates/choose-model.tmpl
|
||||
f 0444 root sys $DATADIR/templates/choose-serial.tmpl templates/choose-serial.tmpl
|
||||
f 0444 root sys $DATADIR/templates/choose-uri.tmpl templates/choose-uri.tmpl
|
||||
f 0444 root sys $DATADIR/templates/class-added.tmpl templates/class-added.tmpl
|
||||
f 0444 root sys $DATADIR/templates/class-confirm.tmpl templates/class-confirm.tmpl
|
||||
f 0444 root sys $DATADIR/templates/class-deleted.tmpl templates/class-deleted.tmpl
|
||||
f 0444 root sys $DATADIR/templates/class-modified.tmpl templates/class-modified.tmpl
|
||||
f 0444 root sys $DATADIR/templates/classes.tmpl templates/classes.tmpl
|
||||
f 0444 root sys $DATADIR/templates/config-printer.tmpl templates/config-printer.tmpl
|
||||
f 0444 root sys $DATADIR/templates/config-printer2.tmpl templates/config-printer2.tmpl
|
||||
f 0444 root sys $DATADIR/templates/error.tmpl templates/error.tmpl
|
||||
f 0444 root sys $DATADIR/templates/header.tmpl templates/header.tmpl
|
||||
f 0444 root sys $DATADIR/templates/job-cancel.tmpl templates/job-cancel.tmpl
|
||||
f 0444 root sys $DATADIR/templates/job-hold.tmpl templates/job-hold.tmpl
|
||||
f 0444 root sys $DATADIR/templates/job-release.tmpl templates/job-release.tmpl
|
||||
f 0444 root sys $DATADIR/templates/job-restart.tmpl templates/job-restart.tmpl
|
||||
f 0444 root sys $DATADIR/templates/jobs.tmpl templates/jobs.tmpl
|
||||
f 0444 root sys $DATADIR/templates/modify-class.tmpl templates/modify-class.tmpl
|
||||
f 0444 root sys $DATADIR/templates/modify-printer.tmpl templates/modify-printer.tmpl
|
||||
f 0444 root sys $DATADIR/templates/option-boolean.tmpl templates/option-boolean.tmpl
|
||||
f 0444 root sys $DATADIR/templates/option-header.tmpl templates/option-header.tmpl
|
||||
f 0444 root sys $DATADIR/templates/option-pickmany.tmpl templates/option-pickmany.tmpl
|
||||
f 0444 root sys $DATADIR/templates/option-pickone.tmpl templates/option-pickone.tmpl
|
||||
f 0444 root sys $DATADIR/templates/option-trailer.tmpl templates/option-trailer.tmpl
|
||||
f 0444 root sys $DATADIR/templates/printer-accept.tmpl templates/printer-accept.tmpl
|
||||
f 0444 root sys $DATADIR/templates/printer-added.tmpl templates/printer-added.tmpl
|
||||
f 0444 root sys $DATADIR/templates/printer-configured.tmpl templates/printer-configured.tmpl
|
||||
f 0444 root sys $DATADIR/templates/printer-confirm.tmpl templates/printer-confirm.tmpl
|
||||
f 0444 root sys $DATADIR/templates/printer-deleted.tmpl templates/printer-deleted.tmpl
|
||||
f 0444 root sys $DATADIR/templates/printer-modified.tmpl templates/printer-modified.tmpl
|
||||
f 0444 root sys $DATADIR/templates/printer-reject.tmpl templates/printer-reject.tmpl
|
||||
f 0444 root sys $DATADIR/templates/printer-start.tmpl templates/printer-start.tmpl
|
||||
f 0444 root sys $DATADIR/templates/printer-stop.tmpl templates/printer-stop.tmpl
|
||||
f 0444 root sys $DATADIR/templates/printers.tmpl templates/printers.tmpl
|
||||
f 0444 root sys $DATADIR/templates/test-page.tmpl templates/test-page.tmpl
|
||||
f 0444 root sys $DATADIR/templates/trailer.tmpl templates/trailer.tmpl
|
||||
f 0444 root sys /usr/share/cups/model/deskjet.ppd ppd/deskjet.ppd
|
||||
f 0444 root sys /usr/share/cups/model/laserjet.ppd ppd/laserjet.ppd
|
||||
#f 0444 root sys /usr/share/cups/model/epson9.ppd ppd/epson9.ppd
|
||||
#f 0444 root sys /usr/share/cups/model/epson24.ppd ppd/epson24.ppd
|
||||
f 0444 root sys /usr/share/cups/model/stcolor.ppd ppd/stcolor.ppd
|
||||
f 0444 root sys /usr/share/cups/model/stphoto.ppd ppd/stphoto.ppd
|
||||
|
||||
f 0444 root sys /usr/share/cups/templates/add-class.tmpl templates/add-class.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/add-printer.tmpl templates/add-printer.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/admin-op.tmpl templates/admin-op.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/admin.tmpl templates/admin.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/choose-device.tmpl templates/choose-device.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/choose-make.tmpl templates/choose-make.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/choose-members.tmpl templates/choose-members.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/choose-model.tmpl templates/choose-model.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/choose-serial.tmpl templates/choose-serial.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/choose-uri.tmpl templates/choose-uri.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/class-added.tmpl templates/class-added.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/class-confirm.tmpl templates/class-confirm.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/class-deleted.tmpl templates/class-deleted.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/class-modified.tmpl templates/class-modified.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/classes.tmpl templates/classes.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/config-printer.tmpl templates/config-printer.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/config-printer2.tmpl templates/config-printer2.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/error.tmpl templates/error.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/job-cancel.tmpl templates/job-cancel.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/job-hold.tmpl templates/job-hold.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/job-release.tmpl templates/job-release.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/job-restart.tmpl templates/job-restart.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/jobs.tmpl templates/jobs.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/modify-class.tmpl templates/modify-class.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/modify-printer.tmpl templates/modify-printer.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/option-boolean.tmpl templates/option-boolean.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/option-header.tmpl templates/option-header.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/option-pickmany.tmpl templates/option-pickmany.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/option-pickone.tmpl templates/option-pickone.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/option-trailer.tmpl templates/option-trailer.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/printer-accept.tmpl templates/printer-accept.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/printer-added.tmpl templates/printer-added.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/printer-configured.tmpl templates/printer-configured.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/printer-confirm.tmpl templates/printer-confirm.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/printer-deleted.tmpl templates/printer-deleted.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/printer-modified.tmpl templates/printer-modified.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/printer-reject.tmpl templates/printer-reject.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/printer-start.tmpl templates/printer-start.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/printer-stop.tmpl templates/printer-stop.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/printers.tmpl templates/printers.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/test-page.tmpl templates/test-page.tmpl
|
||||
|
||||
f 0444 root sys /usr/share/cups/templates/header.tmpl templates/header.tmpl
|
||||
f 0444 root sys /usr/share/cups/templates/trailer.tmpl templates/trailer.tmpl
|
||||
|
||||
# Config files
|
||||
d 0555 root sys $SERVERROOT -
|
||||
d 0711 root sys $SERVERROOT/certs -
|
||||
d 0755 root sys $SERVERROOT/interfaces -
|
||||
d 0755 root sys $SERVERROOT/ppd -
|
||||
c 0644 root sys $SERVERROOT/classes.conf conf/classes.conf
|
||||
c 0644 root sys $SERVERROOT/cupsd.conf conf/cupsd.conf
|
||||
f 0644 root sys $SERVERROOT/mime.convs conf/mime.convs
|
||||
f 0644 root sys $SERVERROOT/mime.types conf/mime.types
|
||||
c 0644 root sys $SERVERROOT/printers.conf conf/printers.conf
|
||||
|
||||
%system linux
|
||||
# Linux version needs PAM...
|
||||
%requires /lib/libpam.so.0
|
||||
d 0555 root sys $PAMDIR -
|
||||
c 0644 root sys $PAMDIR/cups data/cups.pam
|
||||
%system all
|
||||
c 0644 root sys /etc/cups/classes.conf conf/classes.conf
|
||||
c 0644 root sys /etc/cups/cupsd.conf conf/cupsd.conf
|
||||
f 0644 root sys /etc/cups/mime.convs conf/mime.convs
|
||||
f 0644 root sys /etc/cups/mime.types conf/mime.types
|
||||
c 0644 root sys /etc/cups/printers.conf conf/printers.conf
|
||||
c 0644 root sys /etc/pam.d/cups data/cups.pam
|
||||
|
||||
# Developer files
|
||||
d 0555 root sys $INCLUDEDIR/cups -
|
||||
f 0444 root sys $INCLUDEDIR/cups/cups.h cups/cups.h
|
||||
f 0444 root sys $INCLUDEDIR/cups/http.h cups/http.h
|
||||
f 0444 root sys $INCLUDEDIR/cups/image.h filter/image.h
|
||||
f 0444 root sys $INCLUDEDIR/cups/ipp.h cups/ipp.h
|
||||
f 0444 root sys $INCLUDEDIR/cups/language.h cups/language.h
|
||||
f 0444 root sys $INCLUDEDIR/cups/md5.h cups/md5.h
|
||||
f 0444 root sys $INCLUDEDIR/cups/ppd.h cups/ppd.h
|
||||
f 0444 root sys $INCLUDEDIR/cups/raster.h filter/raster.h
|
||||
f 0444 root sys /usr/include/cups/cups.h cups/cups.h
|
||||
f 0444 root sys /usr/include/cups/http.h cups/http.h
|
||||
f 0444 root sys /usr/include/cups/image.h filter/image.h
|
||||
f 0444 root sys /usr/include/cups/ipp.h cups/ipp.h
|
||||
f 0444 root sys /usr/include/cups/language.h cups/language.h
|
||||
f 0444 root sys /usr/include/cups/md5.h cups/md5.h
|
||||
f 0444 root sys /usr/include/cups/ppd.h cups/ppd.h
|
||||
f 0444 root sys /usr/include/cups/raster.h filter/raster.h
|
||||
|
||||
f 0444 root sys $LIBDIR/libcups.a cups/libcups.a
|
||||
%system irix-6.5
|
||||
f 0444 root sys /usr/lib32/libcups.a cups/libcups.a
|
||||
%system !irix-6.5
|
||||
f 0444 root sys /usr/lib/libcups.a cups/libcups.a
|
||||
%system all
|
||||
|
||||
# Documentation files
|
||||
d 0555 root sys $DOCDIR -
|
||||
f 0444 root sys $DOCDIR/cups.css doc/cups.css
|
||||
f 0444 root sys $DOCDIR/documentation.html doc/documentation.html
|
||||
f 0444 root sys $DOCDIR/index.html doc/index.html
|
||||
f 0444 root sys /usr/share/doc/cups/cups.css doc/cups.css
|
||||
f 0444 root sys /usr/share/doc/cups/documentation.html doc/documentation.html
|
||||
f 0444 root sys /usr/share/doc/cups/index.html doc/index.html
|
||||
|
||||
d 0555 root sys $DOCDIR/images -
|
||||
|
||||
f 0444 root sys $DOCDIR/images/classes.gif doc/images/classes.gif
|
||||
f 0444 root sys $DOCDIR/images/printer-idle.gif doc/images/printer-idle.gif
|
||||
f 0444 root sys $DOCDIR/images/printer-processing.gif doc/images/printer-processing.gif
|
||||
f 0444 root sys $DOCDIR/images/printer-stopped.gif doc/images/printer-stopped.gif
|
||||
|
||||
f 0444 root sys $DOCDIR/images/accept-jobs.gif doc/images/accept-jobs.gif
|
||||
f 0444 root sys $DOCDIR/images/add-class.gif doc/images/add-class.gif
|
||||
f 0444 root sys $DOCDIR/images/add-printer.gif doc/images/add-printer.gif
|
||||
f 0444 root sys $DOCDIR/images/cancel-job.gif doc/images/cancel-job.gif
|
||||
f 0444 root sys $DOCDIR/images/cancel-jobs.gif doc/images/cancel-jobs.gif
|
||||
f 0444 root sys $DOCDIR/images/cancel.gif doc/images/cancel.gif
|
||||
f 0444 root sys $DOCDIR/images/continue.gif doc/images/continue.gif
|
||||
f 0444 root sys $DOCDIR/images/config-printer.gif doc/images/config-printer.gif
|
||||
f 0444 root sys $DOCDIR/images/cups-block-diagram.gif doc/images/cups-block-diagram.gif
|
||||
f 0444 root sys $DOCDIR/images/delete-class.gif doc/images/delete-class.gif
|
||||
f 0444 root sys $DOCDIR/images/delete-printer.gif doc/images/delete-printer.gif
|
||||
f 0444 root sys $DOCDIR/images/hold-job.gif doc/images/hold-job.gif
|
||||
f 0444 root sys $DOCDIR/images/left.gif doc/images/left.gif
|
||||
f 0444 root sys $DOCDIR/images/logo.gif doc/images/logo.gif
|
||||
f 0444 root sys $DOCDIR/images/manage-classes.gif doc/images/manage-classes.gif
|
||||
f 0444 root sys $DOCDIR/images/manage-jobs.gif doc/images/manage-jobs.gif
|
||||
f 0444 root sys $DOCDIR/images/manage-printers.gif doc/images/manage-printers.gif
|
||||
f 0444 root sys $DOCDIR/images/modify-class.gif doc/images/modify-class.gif
|
||||
f 0444 root sys $DOCDIR/images/modify-printer.gif doc/images/modify-printer.gif
|
||||
f 0444 root sys $DOCDIR/images/navbar.gif doc/images/navbar.gif
|
||||
f 0444 root sys $DOCDIR/images/print-test-page.gif doc/images/print-test-page.gif
|
||||
f 0444 root sys $DOCDIR/images/reject-jobs.gif doc/images/reject-jobs.gif
|
||||
f 0444 root sys $DOCDIR/images/release-job.gif doc/images/release-job.gif
|
||||
f 0444 root sys $DOCDIR/images/restart-job.gif doc/images/restart-job.gif
|
||||
f 0444 root sys $DOCDIR/images/right.gif doc/images/right.gif
|
||||
f 0444 root sys $DOCDIR/images/show-active.gif doc/images/show-active.gif
|
||||
f 0444 root sys $DOCDIR/images/show-completed.gif doc/images/show-completed.gif
|
||||
f 0444 root sys $DOCDIR/images/start-class.gif doc/images/start-class.gif
|
||||
f 0444 root sys $DOCDIR/images/start-printer.gif doc/images/start-printer.gif
|
||||
f 0444 root sys $DOCDIR/images/stop-class.gif doc/images/stop-class.gif
|
||||
f 0444 root sys $DOCDIR/images/stop-printer.gif doc/images/stop-printer.gif
|
||||
|
||||
f 0444 root sys $DOCDIR/cmp.html doc/cmp.html
|
||||
f 0444 root sys $DOCDIR/cmp.pdf doc/cmp.pdf
|
||||
f 0444 root sys $DOCDIR/cupsdoc.css doc/cupsdoc.css
|
||||
f 0444 root sys $DOCDIR/idd.html doc/idd.html
|
||||
f 0444 root sys $DOCDIR/idd.pdf doc/idd.pdf
|
||||
f 0444 root sys $DOCDIR/ipp.html doc/ipp.html
|
||||
f 0444 root sys $DOCDIR/ipp.pdf doc/ipp.pdf
|
||||
f 0444 root sys $DOCDIR/overview.html doc/overview.html
|
||||
f 0444 root sys $DOCDIR/overview.pdf doc/overview.pdf
|
||||
f 0444 root sys $DOCDIR/sam.html doc/sam.html
|
||||
f 0444 root sys $DOCDIR/sam.pdf doc/sam.pdf
|
||||
f 0444 root sys $DOCDIR/sdd.html doc/sdd.html
|
||||
f 0444 root sys $DOCDIR/sdd.pdf doc/sdd.pdf
|
||||
f 0444 root sys $DOCDIR/spm.html doc/spm.html
|
||||
f 0444 root sys $DOCDIR/spm.pdf doc/spm.pdf
|
||||
f 0444 root sys $DOCDIR/ssr.html doc/ssr.html
|
||||
f 0444 root sys $DOCDIR/ssr.pdf doc/ssr.pdf
|
||||
f 0444 root sys $DOCDIR/sum.html doc/sum.html
|
||||
f 0444 root sys $DOCDIR/sum.pdf doc/sum.pdf
|
||||
f 0444 root sys $DOCDIR/svd.html doc/svd.html
|
||||
f 0444 root sys $DOCDIR/svd.pdf doc/svd.pdf
|
||||
f 0444 root sys $DOCDIR/images/cups-bar.gif doc/images/cups-bar.gif
|
||||
f 0444 root sys $DOCDIR/images/cups-large.gif doc/images/cups-large.gif
|
||||
f 0444 root sys $DOCDIR/images/cups-medium.gif doc/images/cups-medium.gif
|
||||
f 0444 root sys $DOCDIR/images/cups-small.gif doc/images/cups-small.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/accept-jobs.gif doc/images/accept-jobs.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/add-class.gif doc/images/add-class.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/add-printer.gif doc/images/add-printer.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/cancel-job.gif doc/images/cancel-job.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/cancel-jobs.gif doc/images/cancel-jobs.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/cancel.gif doc/images/cancel.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/classes.gif doc/images/classes.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/continue.gif doc/images/continue.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/config-printer.gif doc/images/config-printer.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/cups-bar.gif doc/images/cups-bar.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/cups-block-diagram.gif doc/images/cups-block-diagram.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/cups-large.gif doc/images/cups-large.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/cups-medium.gif doc/images/cups-medium.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/cups-small.gif doc/images/cups-small.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/delete-class.gif doc/images/delete-class.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/delete-printer.gif doc/images/delete-printer.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/hold-job.gif doc/images/hold-job.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/left.gif doc/images/left.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/logo.gif doc/images/logo.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/manage-classes.gif doc/images/manage-classes.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/manage-jobs.gif doc/images/manage-jobs.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/manage-printers.gif doc/images/manage-printers.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/modify-class.gif doc/images/modify-class.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/modify-printer.gif doc/images/modify-printer.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/navbar.gif doc/images/navbar.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/print-test-page.gif doc/images/print-test-page.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/printer-idle.gif doc/images/printer-idle.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/printer-processing.gif doc/images/printer-processing.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/printer-stopped.gif doc/images/printer-stopped.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/reject-jobs.gif doc/images/reject-jobs.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/release-job.gif doc/images/release-job.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/restart-job.gif doc/images/restart-job.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/right.gif doc/images/right.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/show-active.gif doc/images/show-active.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/show-completed.gif doc/images/show-completed.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/start-class.gif doc/images/start-class.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/start-printer.gif doc/images/start-printer.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/stop-class.gif doc/images/stop-class.gif
|
||||
f 0444 root sys /usr/share/doc/cups/images/stop-printer.gif doc/images/stop-printer.gif
|
||||
|
||||
f 0444 root sys /usr/share/doc/cups/cmp.html doc/cmp.html
|
||||
f 0444 root sys /usr/share/doc/cups/cmp.pdf doc/cmp.pdf
|
||||
f 0444 root sys /usr/share/doc/cups/cupsdoc.css doc/cupsdoc.css
|
||||
f 0444 root sys /usr/share/doc/cups/idd.html doc/idd.html
|
||||
f 0444 root sys /usr/share/doc/cups/idd.pdf doc/idd.pdf
|
||||
f 0444 root sys /usr/share/doc/cups/ipp.html doc/ipp.html
|
||||
f 0444 root sys /usr/share/doc/cups/ipp.pdf doc/ipp.pdf
|
||||
f 0444 root sys /usr/share/doc/cups/overview.html doc/overview.html
|
||||
f 0444 root sys /usr/share/doc/cups/overview.pdf doc/overview.pdf
|
||||
f 0444 root sys /usr/share/doc/cups/sam.html doc/sam.html
|
||||
f 0444 root sys /usr/share/doc/cups/sam.pdf doc/sam.pdf
|
||||
f 0444 root sys /usr/share/doc/cups/sdd.html doc/sdd.html
|
||||
f 0444 root sys /usr/share/doc/cups/sdd.pdf doc/sdd.pdf
|
||||
f 0444 root sys /usr/share/doc/cups/spm.html doc/spm.html
|
||||
f 0444 root sys /usr/share/doc/cups/spm.pdf doc/spm.pdf
|
||||
f 0444 root sys /usr/share/doc/cups/ssr.html doc/ssr.html
|
||||
f 0444 root sys /usr/share/doc/cups/ssr.pdf doc/ssr.pdf
|
||||
f 0444 root sys /usr/share/doc/cups/sum.html doc/sum.html
|
||||
f 0444 root sys /usr/share/doc/cups/sum.pdf doc/sum.pdf
|
||||
f 0444 root sys /usr/share/doc/cups/svd.html doc/svd.html
|
||||
f 0444 root sys /usr/share/doc/cups/svd.pdf doc/svd.pdf
|
||||
|
||||
# Man pages
|
||||
%system irix
|
||||
d 0555 root sys $MANDIR/a_man -
|
||||
d 0555 root sys $MANDIR/a_man/cat1 -
|
||||
d 0555 root sys $MANDIR/u_man -
|
||||
d 0555 root sys $MANDIR/u_man/cat1 -
|
||||
d 0555 root sys $MANDIR/u_man/cat5 -
|
||||
|
||||
f 0444 root sys $MANDIR/a_man/cat1/accept.z man/accept.z
|
||||
l 0444 root sys $MANDIR/a_man/cat1/reject.z accept.z
|
||||
f 0444 root sys $MANDIR/u_man/cat1/backend.z man/backend.z
|
||||
f 0444 root sys $MANDIR/u_man/cat5/classes.conf.z man/classes.conf.z
|
||||
f 0444 root sys $MANDIR/a_man/cat1/cups-lpd.z man/cups-lpd.z
|
||||
f 0444 root sys $MANDIR/a_man/cat1/cups-polld.z man/cups-polld.z
|
||||
f 0444 root sys $MANDIR/u_man/cat5/cupsd.conf.z man/cupsd.conf.z
|
||||
f 0444 root sys $MANDIR/a_man/cat1/cupsd.z man/cupsd.z
|
||||
f 0444 root sys $MANDIR/a_man/cat1/enable.z man/enable.z
|
||||
l 0444 root sys $MANDIR/a_man/cat1/disable.z enable.z
|
||||
f 0444 root sys $MANDIR/u_man/cat1/filter.z man/filter.z
|
||||
f 0444 root sys $MANDIR/a_man/cat1/lpadmin.z man/lpadmin.z
|
||||
f 0444 root sys $MANDIR/a_man/cat1/lpc.z man/lpc.z
|
||||
f 0444 root sys $MANDIR/a_man/cat1/lpinfo.z man/lpinfo.z
|
||||
f 0444 root sys $MANDIR/a_man/cat1/lpmove.z man/lpmove.z
|
||||
f 0444 root sys $MANDIR/u_man/cat1/lpoptions.z man/lpoptions.z
|
||||
f 0444 root sys $MANDIR/u_man/cat1/lpq.z man/lpq.z
|
||||
f 0444 root sys $MANDIR/u_man/cat1/lprm.z man/lprm.z
|
||||
f 0444 root sys $MANDIR/u_man/cat1/lpr.z man/lpr.z
|
||||
f 0444 root sys $MANDIR/u_man/cat1/lpstat.z man/lpstat.z
|
||||
f 0444 root sys $MANDIR/u_man/cat1/lp.z man/lp.z
|
||||
l 0444 root sys $MANDIR/u_man/cat1/cancel.z lp.z
|
||||
f 0444 root sys $MANDIR/u_man/cat5/mime.convs.z man/mime.convs.z
|
||||
f 0444 root sys $MANDIR/u_man/cat5/mime.types.z man/mime.types.z
|
||||
f 0444 root sys $MANDIR/u_man/cat5/printers.conf.z man/printers.conf.z
|
||||
|
||||
%system solaris hpux
|
||||
d 0555 root sys $MANDIR/man1 -
|
||||
d 0555 root sys $MANDIR/man5 -
|
||||
d 0555 root sys $MANDIR/man1m -
|
||||
|
||||
f 0444 root sys $MANDIR/man1m/accept.1m man/accept.man
|
||||
l 0444 root sys $MANDIR/man1m/reject.1m accept.man
|
||||
f 0444 root sys $MANDIR/man1/backend.1 man/backend.man
|
||||
f 0444 root sys $MANDIR/man1/classes.conf.5 man/classes.conf.man
|
||||
f 0444 root sys $MANDIR/man1m/cups-lpd.1m man/cups-lpd.man
|
||||
f 0444 root sys $MANDIR/man1m/cups-polld.1m man/cups-polld.man
|
||||
f 0444 root sys $MANDIR/man1m/cupsd.1m man/cupsd.man
|
||||
f 0444 root sys $MANDIR/man5/cupsd.conf.5 man/cupsd.conf.man
|
||||
f 0444 root sys $MANDIR/man1m/enable.1m man/enable.man
|
||||
l 0444 root sys $MANDIR/man1m/disable.1m enable.man
|
||||
f 0444 root sys $MANDIR/man1/filter.1 man/filter.man
|
||||
f 0444 root sys $MANDIR/man1m/lpadmin.1m man/lpadmin.man
|
||||
f 0444 root sys $MANDIR/man1m/lpc.1m man/lpc.man
|
||||
f 0444 root sys $MANDIR/man1m/lpinfo.1m man/lpinfo.man
|
||||
f 0444 root sys $MANDIR/man1m/lpmove.1m man/lpmove.man
|
||||
f 0444 root sys $MANDIR/man1/lpoptions.1 man/lpoptions.man
|
||||
f 0444 root sys $MANDIR/man1/lpq.1 man/lpq.man
|
||||
f 0444 root sys $MANDIR/man1/lprm.1 man/lprm.man
|
||||
f 0444 root sys $MANDIR/man1/lpr.1 man/lpr.man
|
||||
f 0444 root sys $MANDIR/man1/lpstat.1 man/lpstat.man
|
||||
f 0444 root sys $MANDIR/man1/lp.1 man/lp.man
|
||||
l 0444 root sys $MANDIR/man1/cancel.1 lp.man
|
||||
f 0444 root sys $MANDIR/man5/mime.convs.5 man/mime.convs.man
|
||||
f 0444 root sys $MANDIR/man5/mime.types.5 man/mime.types.man
|
||||
f 0444 root sys $MANDIR/man5/printers.conf.5 man/printers.conf.man
|
||||
|
||||
%system !irix !solaris !hpux
|
||||
d 0555 root sys $MANDIR/man1 -
|
||||
d 0555 root sys $MANDIR/man5 -
|
||||
d 0555 root sys $MANDIR/man8 -
|
||||
|
||||
f 0444 root sys $MANDIR/man8/accept.8 man/accept.man
|
||||
l 0444 root sys $MANDIR/man8/reject.8 accept.man
|
||||
f 0444 root sys $MANDIR/man1/backend.1 man/backend.man
|
||||
f 0444 root sys $MANDIR/man1/classes.conf.5 man/classes.conf.man
|
||||
f 0444 root sys $MANDIR/man8/cups-lpd.8 man/cups-lpd.man
|
||||
f 0444 root sys $MANDIR/man8/cups-polld.8 man/cups-polld.man
|
||||
f 0444 root sys $MANDIR/man8/cupsd.8 man/cupsd.man
|
||||
f 0444 root sys $MANDIR/man5/cupsd.conf.5 man/cupsd.conf.man
|
||||
f 0444 root sys $MANDIR/man8/enable.8 man/enable.man
|
||||
l 0444 root sys $MANDIR/man8/disable.8 enable.man
|
||||
f 0444 root sys $MANDIR/man1/filter.1 man/filter.man
|
||||
f 0444 root sys $MANDIR/man8/lpadmin.8 man/lpadmin.man
|
||||
f 0444 root sys $MANDIR/man8/lpc.8 man/lpc.man
|
||||
f 0444 root sys $MANDIR/man8/lpinfo.8 man/lpinfo.man
|
||||
f 0444 root sys $MANDIR/man8/lpmove.8 man/lpmove.man
|
||||
f 0444 root sys $MANDIR/man1/lpoptions.1 man/lpoptions.man
|
||||
f 0444 root sys $MANDIR/man1/lpq.1 man/lpq.man
|
||||
f 0444 root sys $MANDIR/man1/lprm.1 man/lprm.man
|
||||
f 0444 root sys $MANDIR/man1/lpr.1 man/lpr.man
|
||||
f 0444 root sys $MANDIR/man1/lpstat.1 man/lpstat.man
|
||||
f 0444 root sys $MANDIR/man1/lp.1 man/lp.man
|
||||
l 0444 root sys $MANDIR/man1/cancel.1 lp.man
|
||||
f 0444 root sys $MANDIR/man5/mime.convs.5 man/mime.convs.man
|
||||
f 0444 root sys $MANDIR/man5/mime.types.5 man/mime.types.man
|
||||
f 0444 root sys $MANDIR/man5/printers.conf.5 man/printers.conf.man
|
||||
f 0444 root sys /usr/share/catman/a_man/cat1/accept.1 man/accept.8
|
||||
l 0444 root sys /usr/share/catman/a_man/cat1/reject.1 accept.1
|
||||
f 0444 root sys /usr/share/catman/u_man/cat1/backend.1 man/backend.1
|
||||
f 0444 root sys /usr/share/catman/u_man/cat5/classes.conf.5 man/classes.conf.5
|
||||
f 0444 root sys /usr/share/catman/a_man/cat1/cups-lpd.1 man/cups-lpd.8
|
||||
f 0444 root sys /usr/share/catman/a_man/cat1/cups-polld.1 man/cups-polld.8
|
||||
f 0444 root sys /usr/share/catman/u_man/cat5/cupsd.conf.5 man/cupsd.conf.5
|
||||
f 0444 root sys /usr/share/catman/a_man/cat1/cupsd.1 man/cupsd.8
|
||||
f 0444 root sys /usr/share/catman/a_man/cat1/enable.1 man/enable.8
|
||||
l 0444 root sys /usr/share/catman/a_man/cat1/disable.1 enable.1
|
||||
f 0444 root sys /usr/share/catman/u_man/cat1/filter.1 man/filter.1
|
||||
f 0444 root sys /usr/share/catman/a_man/cat1/lpadmin.1 man/lpadmin.8
|
||||
f 0444 root sys /usr/share/catman/a_man/cat1/lpc.1 man/lpc.8
|
||||
f 0444 root sys /usr/share/catman/a_man/cat1/lpinfo.1 man/lpinfo.8
|
||||
f 0444 root sys /usr/share/catman/a_man/cat1/lpmove.1 man/lpmove.8
|
||||
f 0444 root sys /usr/share/catman/u_man/cat1/lpoptions.1 man/lpoptions.1
|
||||
f 0444 root sys /usr/share/catman/u_man/cat1/lpq.1 man/lpq.1
|
||||
f 0444 root sys /usr/share/catman/u_man/cat1/lprm.1 man/lprm.1
|
||||
f 0444 root sys /usr/share/catman/u_man/cat1/lpr.1 man/lpr.1
|
||||
f 0444 root sys /usr/share/catman/u_man/cat1/lpstat.1 man/lpstat.1
|
||||
f 0444 root sys /usr/share/catman/u_man/cat1/lp.1 man/lp.1
|
||||
l 0444 root sys /usr/share/catman/u_man/cat1/cancel.1 lp.1
|
||||
f 0444 root sys /usr/share/catman/u_man/cat5/mime.convs.5 man/mime.convs.5
|
||||
f 0444 root sys /usr/share/catman/u_man/cat5/mime.types.5 man/mime.types.5
|
||||
f 0444 root sys /usr/share/catman/u_man/cat5/printers.conf.5 man/printers.conf.5
|
||||
%system !irix
|
||||
f 0444 root sys /usr/man/man8/accept.8 man/accept.man
|
||||
l 0444 root sys /usr/man/man8/reject.8 accept.man
|
||||
f 0444 root sys /usr/man/man1/backend.1 man/backend.man
|
||||
f 0444 root sys /usr/man/man1/classes.conf.5 man/classes.conf.man
|
||||
f 0444 root sys /usr/man/man8/cups-lpd.8 man/cups-lpd.man
|
||||
f 0444 root sys /usr/man/man8/cups-polld.8 man/cups-polld.man
|
||||
f 0444 root sys /usr/man/man8/cupsd.8 man/cupsd.man
|
||||
f 0444 root sys /usr/man/man5/cupsd.conf.5 man/cupsd.conf.man
|
||||
f 0444 root sys /usr/man/man8/enable.8 man/enable.man
|
||||
l 0444 root sys /usr/man/man8/disable.8 enable.man
|
||||
f 0444 root sys /usr/man/man1/filter.1 man/filter.man
|
||||
f 0444 root sys /usr/man/man8/lpadmin.8 man/lpadmin.man
|
||||
f 0444 root sys /usr/man/man8/lpc.8 man/lpc.man
|
||||
f 0444 root sys /usr/man/man8/lpinfo.8 man/lpinfo.man
|
||||
f 0444 root sys /usr/man/man8/lpmove.8 man/lpmove.man
|
||||
f 0444 root sys /usr/man/man1/lpoptions.1 man/lpoptions.man
|
||||
f 0444 root sys /usr/man/man1/lpq.1 man/lpq.man
|
||||
f 0444 root sys /usr/man/man1/lprm.1 man/lprm.man
|
||||
f 0444 root sys /usr/man/man1/lpr.1 man/lpr.man
|
||||
f 0444 root sys /usr/man/man1/lpstat.1 man/lpstat.man
|
||||
f 0444 root sys /usr/man/man1/lp.1 man/lp.man
|
||||
l 0444 root sys /usr/man/man1/cancel.1 lp.man
|
||||
f 0444 root sys /usr/man/man5/mime.convs.5 man/mime.convs.man
|
||||
f 0444 root sys /usr/man/man5/mime.types.5 man/mime.types.man
|
||||
f 0444 root sys /usr/man/man5/printers.conf.5 man/printers.conf.man
|
||||
|
||||
# Startup script
|
||||
%system all
|
||||
i 0555 root sys cups cups.sh
|
||||
|
||||
#
|
||||
# End of "$Id: cups.list 1202 2000-07-07 21:25:17Z mike $".
|
||||
# End of "$Id: cups.list 1127 2000-06-08 20:00:41Z mike $".
|
||||
#
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#
|
||||
# Linux chkconfig stuff:
|
||||
#
|
||||
# chkconfig: 02 99 00
|
||||
# chkconfig: 02345 99 00
|
||||
# description: Startup/shutdown script for the Common UNIX \
|
||||
# Printing System (CUPS).
|
||||
#
|
||||
@@ -77,9 +77,7 @@ case $1 in
|
||||
fi
|
||||
else
|
||||
if $IS_ON cups; then
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
@sbindir@/cupsd
|
||||
/usr/sbin/cupsd
|
||||
$ECHO "cups: scheduler started."
|
||||
fi
|
||||
fi
|
||||
+7
-14
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# "$Id: cups.spec 1214 2000-07-10 20:58:19Z mike $"
|
||||
# "$Id: cups.spec 1127 2000-06-08 20:00:41Z mike $"
|
||||
#
|
||||
# RPM "spec" file for the Common UNIX Printing System (CUPS).
|
||||
#
|
||||
@@ -26,11 +26,11 @@
|
||||
|
||||
Summary: Common Unix Printing System
|
||||
Name: cups
|
||||
Version: 1.1
|
||||
Version: 1.1b5
|
||||
Release: 0
|
||||
Copyright: GPL
|
||||
Group: System Environment/Daemons
|
||||
Source: ftp://ftp.easysw.com/pub/cups/1.1/cups-1.1-source.tar.gz
|
||||
Source: ftp://ftp.easysw.com/pub/cups/beta/cups-1.1b5-source.tar.gz
|
||||
Url: http://www.cups.org
|
||||
Packager: Michael Sweet <mike@easysw.com>
|
||||
Vendor: Easy Software Products
|
||||
@@ -68,16 +68,9 @@ make
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||
|
||||
make datadir=$RPM_BUILD_ROOT/usr/share \
|
||||
exec_prefix=$RPM_BUILD_ROOT/usr \
|
||||
includedir=$RPM_BUILD_ROOT/usr/include \
|
||||
infodir=$RPM_BUILD_ROOT/usr/info \
|
||||
libdir=$RPM_BUILD_ROOT/usr/lib \
|
||||
localestatedir=$RPM_BUILD_ROOT/var \
|
||||
prefix=$RPM_BUILD_ROOT \
|
||||
sharedstatedir=$RPM_BUILD_ROOT/usr/com \
|
||||
sysconfdir=$RPM_BUILD_ROOT/etc \
|
||||
install
|
||||
make prefix=$RPM_BUILD_ROOT/usr LOGDIR=$RPM_BUILD_ROOT/var/log/cups \
|
||||
REQUESTS=$RPM_BUILD_ROOT/var/spool/cups \
|
||||
SERVERROOT=$RPM_BUILD_ROOT/etc/cups install
|
||||
|
||||
install -m 755 -o root -g root cups.sh $RPM_BUILD_ROOT/etc/rc.d/init.d/cups
|
||||
|
||||
@@ -109,5 +102,5 @@ rm -rf $RPM_BUILD_ROOT
|
||||
/usr/lib/*.a
|
||||
|
||||
#
|
||||
# End of "$Id: cups.spec 1214 2000-07-10 20:58:19Z mike $".
|
||||
# End of "$Id: cups.spec 1127 2000-06-08 20:00:41Z mike $".
|
||||
#
|
||||
|
||||
@@ -68,11 +68,8 @@ clean:
|
||||
|
||||
install: all
|
||||
-$(MKDIR) $(INCLUDEDIR)/cups
|
||||
$(CHMOD) ugo+rx $(INCLUDEDIR)
|
||||
$(CHMOD) ugo+rx $(INCLUDEDIR)/cups
|
||||
$(INSTALL_DATA) $(HEADERS) $(INCLUDEDIR)/cups
|
||||
-$(MKDIR) $(LIBDIR)
|
||||
$(CHMOD) ugo+rx $(LIBDIR)
|
||||
$(INSTALL_LIB) $(LIBCUPS) $(LIBDIR)
|
||||
if test $(LIBCUPS) != "libcups.a" -a $(LIBCUPS) != "libcups.la"; then \
|
||||
$(INSTALL_LIB) libcups.a $(LIBDIR); \
|
||||
|
||||
+2
-13
@@ -261,13 +261,7 @@ cupsGetDests(cups_dest_t **dests) /* O - Destinations */
|
||||
* Load the /etc/cups/lpoptions and ~/.lpoptions files...
|
||||
*/
|
||||
|
||||
if ((home = getenv("CUPS_SERVERROOT")) != NULL)
|
||||
{
|
||||
snprintf(filename, sizeof(filename), "%s/lpoptions", home);
|
||||
num_dests = cups_get_dests(filename, num_dests, dests);
|
||||
}
|
||||
else
|
||||
num_dests = cups_get_dests(CUPS_SERVERROOT "/lpoptions", num_dests, dests);
|
||||
num_dests = cups_get_dests(CUPS_SERVERROOT "/lpoptions", num_dests, dests);
|
||||
|
||||
if ((home = getenv("HOME")) != NULL)
|
||||
{
|
||||
@@ -304,12 +298,7 @@ cupsSetDests(int num_dests, /* I - Number of destinations */
|
||||
*/
|
||||
|
||||
if (getuid() == 0)
|
||||
{
|
||||
if ((home = getenv("CUPS_SERVERROOT")) != NULL)
|
||||
snprintf(filename, sizeof(filename), "%s/lpoptions", home);
|
||||
else
|
||||
strcpy(filename, CUPS_SERVERROOT "/lpoptions");
|
||||
}
|
||||
strcpy(filename, CUPS_SERVERROOT "/lpoptions");
|
||||
else if ((home = getenv("HOME")) != NULL)
|
||||
snprintf(filename, sizeof(filename), "%s/.lpoptions", home);
|
||||
else
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
* ippErrorString() - Return a textual message for the given error message.
|
||||
* ippFindAttribute() - Find a named attribute in a request...
|
||||
* ippLength() - Compute the length of an IPP request.
|
||||
* ippNew() - Allocate a new IPP request.
|
||||
* ippPort() - Return the default IPP port number.
|
||||
* ippRead() - Read data for an IPP request.
|
||||
* ippTimeToDate() - Convert from UNIX time to RFC 1903 format.
|
||||
@@ -62,7 +61,6 @@
|
||||
|
||||
#include "ipp.h"
|
||||
#include "debug.h"
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
/*
|
||||
@@ -262,22 +260,6 @@ ippAddString(ipp_t *ipp, /* I - IPP request */
|
||||
attr->values[0].string.charset = charset ? strdup(charset) : NULL;
|
||||
attr->values[0].string.text = strdup(value);
|
||||
|
||||
if (type == IPP_TAG_LANGUAGE || type == IPP_TAG_CHARSET)
|
||||
{
|
||||
/*
|
||||
* Convert to lowercase and change _ to - as needed...
|
||||
*/
|
||||
|
||||
char *p;
|
||||
|
||||
|
||||
for (p = attr->values[0].string.text; *p; p ++)
|
||||
if (*p == '_')
|
||||
*p = '-';
|
||||
else
|
||||
*p = tolower(*p);
|
||||
}
|
||||
|
||||
return (attr);
|
||||
}
|
||||
|
||||
|
||||
@@ -633,27 +633,6 @@ ppdOpen(FILE *fp) /* I - File to read from */
|
||||
}
|
||||
else if (strcmp(keyword, "Throughput") == 0)
|
||||
ppd->throughput = atoi(string);
|
||||
else if (strcmp(keyword, "Font") == 0)
|
||||
{
|
||||
/*
|
||||
* Add this font to the list of available fonts...
|
||||
*/
|
||||
|
||||
if (ppd->num_fonts == 0)
|
||||
ppd->fonts = (char **)malloc(sizeof(char *));
|
||||
else
|
||||
ppd->fonts = (char **)realloc(ppd->fonts,
|
||||
sizeof(char *) * (ppd->num_fonts + 1));
|
||||
|
||||
if (ppd->fonts == NULL)
|
||||
{
|
||||
ppdClose(ppd);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
ppd->fonts[ppd->num_fonts] = strdup(name);
|
||||
ppd->num_fonts ++;
|
||||
}
|
||||
else if (strcmp(keyword, "VariablePaperSize") == 0 &&
|
||||
strcmp(string, "True") == 0 &&
|
||||
!ppd->variable_sizes)
|
||||
|
||||
@@ -171,10 +171,6 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
}
|
||||
}
|
||||
|
||||
printf(" num_fonts = %d\n", ppd->num_fonts);
|
||||
for (j = 0; j < ppd->num_fonts; j ++)
|
||||
printf(" fonts[%d] = %s\n", j, ppd->fonts[j]);
|
||||
|
||||
ppdClose(ppd);
|
||||
}
|
||||
|
||||
|
||||
+1
-9
@@ -149,15 +149,7 @@ cupsServer(void)
|
||||
fp = NULL;
|
||||
|
||||
if (fp == NULL)
|
||||
{
|
||||
if ((home = getenv("CUPS_SERVERROOT")) != NULL)
|
||||
{
|
||||
snprintf(line, sizeof(line), "%s/client.conf", home);
|
||||
fp = fopen(line, "r");
|
||||
}
|
||||
else
|
||||
fp = fopen(CUPS_SERVERROOT "/client.conf", "r");
|
||||
}
|
||||
fp = fopen(CUPS_SERVERROOT "/client.conf", "r");
|
||||
|
||||
if (fp == NULL)
|
||||
return ("localhost");
|
||||
|
||||
+2
-6
@@ -549,12 +549,7 @@ cupsGetDefault(void)
|
||||
* Next check to see if we have a client.conf file...
|
||||
*/
|
||||
|
||||
if ((var = getenv("CUPS_SERVERROOT")) != NULL)
|
||||
snprintf(line, sizeof(line), "%s/client.conf", var);
|
||||
else
|
||||
strcpy(line, CUPS_SERVERROOT "/client.conf");
|
||||
|
||||
if ((fp = fopen(line, "r")) != NULL)
|
||||
if ((fp = fopen(CUPS_SERVERROOT "/client.conf", "r")) != NULL)
|
||||
{
|
||||
/*
|
||||
* Read the client.conf file and look for a DefaultPrinter line...
|
||||
@@ -971,6 +966,7 @@ cupsPrintFiles(const char *name, /* I - Printer or class name */
|
||||
DEBUG_printf(("cupsPrintFile: Unable to open connection - %s.\n",
|
||||
strerror(errno)));
|
||||
last_error = IPP_SERVICE_UNAVAILABLE;
|
||||
ippDelete(request);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
+1
-5
@@ -81,19 +81,15 @@ clean:
|
||||
#
|
||||
|
||||
install:
|
||||
-$(MKDIR) $(DATADIR)
|
||||
-$(MKDIR) $(DATADIR)/banners
|
||||
$(CHMOD) ugo+rx $(DATADIR)
|
||||
$(CHMOD) ugo+rx $(DATADIR)/banners
|
||||
$(INSTALL_DATA) $(BANNERS) $(DATADIR)/banners
|
||||
-$(MKDIR) $(DATADIR)/charsets
|
||||
$(CHMOD) ugo+rx $(DATADIR)/charsets
|
||||
$(INSTALL_DATA) $(CHARSETS) $(DATADIR)/charsets
|
||||
-$(MKDIR) $(DATADIR)/data
|
||||
$(CHMOD) ugo+rx $(DATADIR)/data
|
||||
$(INSTALL_DATA) $(DATAFILES) $(DATADIR)/data
|
||||
-if test "$(PAMDIR)" != ""; then \
|
||||
$(MKDIR) $(PAMDIR); \
|
||||
$(CHMOD) ugo+rx $(PAMDIR); \
|
||||
$(INSTALL_DATA) cups.pam $(PAMDIR)/cups; \
|
||||
fi
|
||||
|
||||
|
||||
@@ -125,13 +125,11 @@ clean:
|
||||
|
||||
install:
|
||||
-$(MKDIR) $(DOCDIR)
|
||||
$(CHMOD) ugo+rx $(DOCDIR)
|
||||
$(INSTALL_MAN) $(WEBPAGES) $(DOCDIR)
|
||||
$(INSTALL_MAN) overview.html overview.pdf $(DOCDIR)
|
||||
$(INSTALL_MAN) $(DOCUMENTS:.shtml=.html) $(DOCDIR)
|
||||
$(INSTALL_MAN) $(DOCUMENTS:.shtml=.pdf) $(DOCDIR)
|
||||
-$(MKDIR) $(DOCDIR)/images
|
||||
$(CHMOD) ugo+rx $(DOCDIR)/images
|
||||
$(INSTALL_MAN) $(WEBIMAGES) $(DOCDIR)/images
|
||||
$(INSTALL_MAN) $(DOCIMAGES) $(DOCDIR)/images
|
||||
|
||||
@@ -215,11 +213,6 @@ sum-7x8.ps: sum.shtml
|
||||
--size 7x8.5in --left 0.5in --right 0.25in \
|
||||
--top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sum.shtml
|
||||
|
||||
$(DOCUMENTS): glossary.shtml printing-overview.shtml \
|
||||
references.shtml system-overview.shtml \
|
||||
../LICENSE.html
|
||||
|
||||
|
||||
#
|
||||
# End of Makefile.
|
||||
#
|
||||
|
||||
+243
-247
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> CUPS Configuration Management Plan</TITLE>
|
||||
<TITLE>CUPS Configuration Management Plan</TITLE>
|
||||
<META NAME="AUTHOR" CONTENT="Easy Software Products">
|
||||
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
|
||||
<META NAME="DOCNUMBER" CONTENT="CUPS-CMP-1.1">
|
||||
@@ -17,11 +17,14 @@ H6 { font-family: sans-serif; font-size: 8.0pt }
|
||||
SUB { font-size: 8.0pt }
|
||||
SUP { font-size: 8.0pt }
|
||||
PRE { font-size: 9.0pt }
|
||||
A:link { text-decoration: underline }
|
||||
A:visited { text-decoration: underline }
|
||||
A:active { text-decoration: underline }
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0" WIDTH="100%"><BR>
|
||||
<H1> CUPS Configuration Management Plan</H1></A><BR>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0"><BR>
|
||||
<H1>CUPS Configuration Management Plan</H1></A><BR>
|
||||
CUPS-CMP-1.1<BR>
|
||||
Easy Software Products<BR>
|
||||
Copyright 1997-2000, All Rights Reserved<BR>
|
||||
@@ -29,225 +32,218 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
<HR>
|
||||
<H1 ALIGN="CENTER"><A NAME="CONTENTS">Table of Contents</A></H1>
|
||||
<BR>
|
||||
<BR><B><A HREF="#1">1 Scope</A></B>
|
||||
<BR><B><A HREF="#1">1 Scope</A></B>
|
||||
<UL>
|
||||
<LI><A HREF="#1_1">1.1 Identification</A></LI>
|
||||
<LI><A HREF="#1_2">1.2 System Overview</A></LI>
|
||||
<LI><A HREF="#1_3">1.3 Document Overview</A></LI>
|
||||
<LI><A HREF="#1_1">1.1 Identification</A></LI>
|
||||
<LI><A HREF="#1_2">1.2 System Overview</A></LI>
|
||||
<LI><A HREF="#1_3">1.3 Document Overview</A></LI>
|
||||
</UL>
|
||||
<B><A HREF="#2">2 References</A></B>
|
||||
<B><A HREF="#2">2 References</A></B>
|
||||
<UL>
|
||||
<LI><A HREF="#2_1">2.1 CUPS Documentation</A></LI>
|
||||
<LI><A HREF="#2_2">2.2 Other Documents</A></LI>
|
||||
<LI><A HREF="#2_1">2.1 CUPS Documentation</A></LI>
|
||||
<LI><A HREF="#2_2">2.2 Other Documents</A></LI>
|
||||
</UL>
|
||||
<B><A HREF="#3">3 File Management</A></B>
|
||||
<B><A HREF="#3">3 File Management</A></B>
|
||||
<UL>
|
||||
<LI><A HREF="#3_1">3.1 Directory Structure</A></LI>
|
||||
<LI><A HREF="#3_2">3.2 Source Files</A></LI>
|
||||
<LI><A HREF="#3_3">3.3 Configuration Management</A></LI>
|
||||
<LI><A HREF="#3_1">3.1 Directory Structure</A></LI>
|
||||
<LI><A HREF="#3_2">3.2 Source Files</A></LI>
|
||||
<LI><A HREF="#3_3">3.3 Configuration Management</A></LI>
|
||||
</UL>
|
||||
<B><A HREF="#4">4 Trouble Report Processing</A></B>
|
||||
<B><A HREF="#4">4 Trouble Report Processing</A></B>
|
||||
<UL>
|
||||
<LI><A HREF="#4_1">4.1 Classification</A></LI>
|
||||
<LI><A HREF="#4_2">4.2 Identification</A></LI>
|
||||
<LI><A HREF="#4_3">4.3 Correction</A></LI>
|
||||
<LI><A HREF="#4_4">4.4 Notification</A></LI>
|
||||
<LI><A HREF="#4_1">4.1 Classification</A></LI>
|
||||
<LI><A HREF="#4_2">4.2 Identification</A></LI>
|
||||
<LI><A HREF="#4_3">4.3 Correction</A></LI>
|
||||
<LI><A HREF="#4_4">4.4 Notification</A></LI>
|
||||
</UL>
|
||||
<B><A HREF="#5">5 Software Releases</A></B>
|
||||
<B><A HREF="#5">5 Software Releases</A></B>
|
||||
<UL>
|
||||
<LI><A HREF="#5_1">5.1 Version Numbering</A></LI>
|
||||
<LI><A HREF="#5_2">5.2 Generation</A></LI>
|
||||
<LI><A HREF="#5_3">5.3 Testing</A></LI>
|
||||
<LI><A HREF="#5_4">5.4 Release</A></LI>
|
||||
<LI><A HREF="#5_1">5.1 Version Numbering</A></LI>
|
||||
<LI><A HREF="#5_2">5.2 Generation</A></LI>
|
||||
<LI><A HREF="#5_3">5.3 Testing</A></LI>
|
||||
<LI><A HREF="#5_4">5.4 Release</A></LI>
|
||||
</UL>
|
||||
<B><A HREF="#6">A Glossary</A></B>
|
||||
<B><A HREF="#6">A Glossary</A></B>
|
||||
<UL>
|
||||
<LI><A HREF="#6_1">A.1 Terms</A></LI>
|
||||
<LI><A HREF="#6_2">A.2 Acronyms</A></LI>
|
||||
<LI><A HREF="#6_1">A.1 Terms</A></LI>
|
||||
<LI><A HREF="#6_2">A.2 Acronyms</A></LI>
|
||||
</UL>
|
||||
<B><A HREF="#7">B Coding Requirements</A></B>
|
||||
<B><A HREF="#7">B Coding Requirements</A></B>
|
||||
<UL>
|
||||
<LI><A HREF="#7_1">B.1 Source Files</A></LI>
|
||||
<LI><A HREF="#7_1">B.1 Source Files</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_1_1">B.1.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_1_2">B.1.2 Documentation</A></LI>
|
||||
<LI><A HREF="#7_1_1">B.1.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_1_2">B.1.2 Documentation</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#7_2">B.2 Functions</A></LI>
|
||||
<LI><A HREF="#7_2">B.2 Functions</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_2_1">B.2.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_2_2">B.2.2 Documentation</A></LI>
|
||||
<LI><A HREF="#7_2_1">B.2.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_2_2">B.2.2 Documentation</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#7_3">B.3 Methods</A></LI>
|
||||
<LI><A HREF="#7_3">B.3 Methods</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_3_1">B.3.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_3_2">B.3.2 Documentation</A></LI>
|
||||
<LI><A HREF="#7_3_1">B.3.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_3_2">B.3.2 Documentation</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#7_4">B.4 Variables</A></LI>
|
||||
<LI><A HREF="#7_4">B.4 Variables</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_4_1">B.4.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_4_2">B.4.2 Documentation</A></LI>
|
||||
<LI><A HREF="#7_4_1">B.4.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_4_2">B.4.2 Documentation</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#7_5">B.5 Types</A></LI>
|
||||
<LI><A HREF="#7_5">B.5 Types</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_5_1">B.5.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_5_2">B.5.2 Documentation</A></LI>
|
||||
<LI><A HREF="#7_5_1">B.5.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_5_2">B.5.2 Documentation</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#7_6">B.6 Structures</A></LI>
|
||||
<LI><A HREF="#7_6">B.6 Structures</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_6_1">B.6.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_6_2">B.6.2 Documentation</A></LI>
|
||||
<LI><A HREF="#7_6_1">B.6.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_6_2">B.6.2 Documentation</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#7_7">B.7 Classes</A></LI>
|
||||
<LI><A HREF="#7_7">B.7 Classes</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_7_1">B.7.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_7_2">B.7.2 Documentation</A></LI>
|
||||
<LI><A HREF="#7_7_1">B.7.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_7_2">B.7.2 Documentation</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#7_8">B.8 Constants</A></LI>
|
||||
<LI><A HREF="#7_8">B.8 Constants</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_8_1">B.8.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_8_2">B.8.2 Documentation</A></LI>
|
||||
<LI><A HREF="#7_8_1">B.8.1 Naming</A></LI>
|
||||
<LI><A HREF="#7_8_2">B.8.2 Documentation</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#7_9">B.9 Code</A></LI>
|
||||
<LI><A HREF="#7_9">B.9 Code</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_9_1">B.9.1 Documentation</A></LI>
|
||||
<LI><A HREF="#7_9_2">B.9.2 Style</A></LI>
|
||||
<LI><A HREF="#7_9_1">B.9.1 Documentation</A></LI>
|
||||
<LI><A HREF="#7_9_2">B.9.2 Style</A></LI>
|
||||
</UL>
|
||||
</UL>
|
||||
<B><A HREF="#8">C Software Trouble Report Form</A></B><HR>
|
||||
<H1><A NAME="1">1 Scope</A></H1>
|
||||
<H2><A NAME="1_1">1.1 Identification</A></H2>
|
||||
<B><A HREF="#8">C Software Trouble Report Form</A></B><HR>
|
||||
<H1><A NAME="1">1 Scope</A></H1>
|
||||
<H2><A NAME="1_1">1.1 Identification</A></H2>
|
||||
This configuration management plan document provides the guidelines
|
||||
for development and maintenance of the Common UNIX Printing System
|
||||
for development and maintainance of the Common UNIX Printing System
|
||||
("CUPS") Version 1.1 software.
|
||||
<H2><A NAME="1_2">1.2 System Overview</A></H2>
|
||||
<P> CUPS provides a portable printing layer for UNIX®-based operating
|
||||
systems. It has been developed by <A HREF="http://www.easysw.com">Easy
|
||||
Software Products</A> to promote a standard printing solution for all
|
||||
UNIX vendors and users. CUPS provides the System V and Berkeley
|
||||
<H2><A NAME="1_2">1.2 System Overview</A></H2>
|
||||
<P>The Common UNIX Printing System provides a portable printing layer
|
||||
for UNIX® operating systems. It has been developed by <A HREF="http://www.easysw.com">
|
||||
Easy Software Products</A> to promote a standard printing solution for
|
||||
all UNIX vendors and users. CUPS provides the System V and Berkeley
|
||||
command-line interfaces. </P>
|
||||
<P> CUPS uses the Internet Printing Protocol ("IPP") as the basis for
|
||||
managing print jobs and queues. The Line Printer Daemon ("LPD") Server
|
||||
Message Block ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are
|
||||
also supported with reduced functionality. CUPS adds network printer
|
||||
browsing and PostScript Printer Description ("PPD") based printing
|
||||
options to support real-world printing under UNIX. </P>
|
||||
<P> CUPS also includes a customized version of GNU Ghostscript
|
||||
(currently based off GNU Ghostscript 5.50) and an image file RIP that
|
||||
are used to support non-PostScript printers. Sample drivers for HP and
|
||||
EPSON printers are included that use these filters. </P>
|
||||
<H2><A NAME="1_3">1.3 Document Overview</A></H2>
|
||||
<P>CUPS uses the Internet Printing Protocol (IETF-IPP) as the basis for
|
||||
managing print jobs and queues. The Line Printer Daemon (LPD, RFC1179),
|
||||
Server Message Block (SMB), and AppSocket protocols are also supported
|
||||
with reduced functionality. </P>
|
||||
<P>CUPS adds network printer browsing and PostScript Printer
|
||||
Description ("PPD")-based printing options to support real world
|
||||
applications under UNIX. </P>
|
||||
<P>CUPS also includes a customized version of GNU GhostScript
|
||||
(currently based off GNU GhostScript 5.50) and an image file RIP that
|
||||
is used to support non-PostScript printers. </P>
|
||||
<H2><A NAME="1_3">1.3 Document Overview</A></H2>
|
||||
This configuration management document is organized into the following
|
||||
sections:
|
||||
<UL>
|
||||
<LI> 1 - Scope</LI>
|
||||
<LI> 2 - References</LI>
|
||||
<LI> 3 - File Management</LI>
|
||||
<LI> 4 - Trouble Report Processing</LI>
|
||||
<LI> 5 - Software Releases</LI>
|
||||
<LI> A - Glossary</LI>
|
||||
<LI> B - Coding Requirements</LI>
|
||||
<LI>1 - Scope</LI>
|
||||
<LI>2 - References</LI>
|
||||
<LI>3 - File Management</LI>
|
||||
<LI>4 - Trouble Report Processing</LI>
|
||||
<LI>5 - Software Releases</LI>
|
||||
<LI>A - Glossary</LI>
|
||||
<LI>B - Coding Requirements</LI>
|
||||
</UL>
|
||||
<H1><A NAME="2">2 References</A></H1>
|
||||
<H2><A NAME="2_1">2.1 CUPS Documentation</A></H2>
|
||||
<P> The following CUPS documentation is referenced by this document: </P>
|
||||
<H1><A NAME="2">2 References</A></H1>
|
||||
<H2><A NAME="2_1">2.1 CUPS Documentation</A></H2>
|
||||
<P>The following CUPS documentation is referenced by this document: </P>
|
||||
<UL>
|
||||
<LI> CUPS-CMP-1.1: CUPS Configuration Management Plan </LI>
|
||||
<LI> CUPS-IDD-1.1: CUPS System Interface Design Description </LI>
|
||||
<LI> CUPS-IPP-1.1: CUPS Implmentation of IPP </LI>
|
||||
<LI> CUPS-SAM-1.1.x: CUPS Software Administrators Manual </LI>
|
||||
<LI> CUPS-SDD-1.1: CUPS Software Design Description </LI>
|
||||
<LI> CUPS-SPM-1.1.x: CUPS Software Programming Manual </LI>
|
||||
<LI> CUPS-SSR-1.1: CUPS Software Security Report </LI>
|
||||
<LI> CUPS-STP-1.1: CUPS Software Test Plan </LI>
|
||||
<LI> CUPS-SUM-1.1.x: CUPS Software Users Manual </LI>
|
||||
<LI> CUPS-SVD-1.1.x: CUPS Software Version Description </LI>
|
||||
<LI>CUPS-CMP-1.1: CUPS Configuration Management Plan </LI>
|
||||
<LI>CUPS-IDD-1.1: CUPS System Interface Design Description </LI>
|
||||
<LI>CUPS-IPP-1.1: CUPS Implmentation of IPP </LI>
|
||||
<LI>CUPS-SAM-1.1.x: CUPS Software Administrators Manual </LI>
|
||||
<LI>CUPS-SDD-1.1: CUPS Software Design Description </LI>
|
||||
<LI>CUPS-SPM-1.1: CUPS Software Programming Manual </LI>
|
||||
<LI>CUPS-SSR-1.1: CUPS Software Security Report </LI>
|
||||
<LI>CUPS-STP-1.1: CUPS Software Test Plan </LI>
|
||||
<LI>CUPS-SUM-1.1.x: CUPS Software Users Manual </LI>
|
||||
<LI>CUPS-SVD-1.1.x: CUPS Software Version Description </LI>
|
||||
</UL>
|
||||
<H2><A NAME="2_2">2.2 Other Documents</A></H2>
|
||||
<P> The following non-CUPS documents are referenced by this document: </P>
|
||||
<H2><A NAME="2_2">2.2 Other Documents</A></H2>
|
||||
<P>The following non-CUPS documents are referenced by this document: </P>
|
||||
<UL>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/5003.PPD_Spec_v4.3.pdf">
|
||||
Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3.</A></LI>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/PLRM.pdf">
|
||||
Adobe PostScript Language Reference, Third Edition.</A></LI>
|
||||
<LI> IPP: Job and Printer Set Operations </LI>
|
||||
<LI> IPP/1.1: Encoding and Transport </LI>
|
||||
<LI> IPP/1.1: Implementers Guide </LI>
|
||||
<LI> IPP/1.1: Model and Semantics </LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc1179.txt"> RFC 1179, Line
|
||||
Printer Daemon Protocol</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2567.txt"> RFC 2567, Design
|
||||
Goals for an Internet Printing Protocol</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2568.txt"> RFC 2568, Rationale
|
||||
for the Structure of the Model and Protocol</A> for the Internet
|
||||
Printing Protocol</LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2569.txt"> RFC 2569, Mapping
|
||||
between LPD and IPP Protocols</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2616.txt"> RFC 2616, Hypertext
|
||||
Transfer Protocol -- HTTP/1.1</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2617.txt"> RFC 2617, HTTP
|
||||
Authentication: Basic and Digest Access</A> Authentication </LI>
|
||||
<LI>Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3. </LI>
|
||||
<LI>Adobe PostScript Language Reference, Third Edition. </LI>
|
||||
<LI>IPP: Job and Printer Set Operations </LI>
|
||||
<LI>IPP/1.1: Encoding and Transport </LI>
|
||||
<LI>IPP/1.1: Implementers Guide </LI>
|
||||
<LI>IPP/1.1: Model and Semantics </LI>
|
||||
<LI>RFC 1179, Line Printer Daemon Protocol </LI>
|
||||
<LI>RFC 2567, Design Goals for an Internet Printing Protocol </LI>
|
||||
<LI>RFC 2568, Rationale for the Structure of the Model and Protocol
|
||||
for the Internet Printing Protocol </LI>
|
||||
<LI>RFC 2569, Mapping between LPD and IPP Protocols </LI>
|
||||
<LI>RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1 </LI>
|
||||
<LI>RFC 2617, HTTP Authentication: Basic and Digest Access
|
||||
Authentication </LI>
|
||||
</UL>
|
||||
<H1><A NAME="3">3 File Management</A></H1>
|
||||
<H2><A NAME="3_1">3.1 Directory Structure</A></H2>
|
||||
<H1><A NAME="3">3 File Management</A></H1>
|
||||
<H2><A NAME="3_1">3.1 Directory Structure</A></H2>
|
||||
Each source file shall be placed a sub-directory corresponding to the
|
||||
software sub-system it belongs to ("scheduler", "cups", etc.) To remain
|
||||
compatible with older UNIX filesystems, directory names shall not
|
||||
exceed 16 characters in length.
|
||||
<H2><A NAME="3_2">3.2 Source Files</A></H2>
|
||||
software sub-system it belongs to ("scheduler", "libcups", etc.) To
|
||||
remain compatible with older UNIX filesystems, directory names shall
|
||||
not exceed 16 characters in length.
|
||||
<H2><A NAME="3_2">3.2 Source Files</A></H2>
|
||||
Source files shall be documented and formatted as described in
|
||||
Appendix B, Coding Requirements.
|
||||
<H2><A NAME="3_3">3.3 Configuration Management</A></H2>
|
||||
<H2><A NAME="3_3">3.3 Configuration Management</A></H2>
|
||||
Source files shall be placed under the control of the Concurrent
|
||||
Versions System ("CVS") software. Source files shall be "checked in"
|
||||
with each change so that modifications can be tracked.
|
||||
<P> Documentation on the CVS software is included with the whitepaper,
|
||||
<P>Documentation on the CVS software is included with the whitepaper,
|
||||
"CVS II: Parallelizing Software Development". </P>
|
||||
<H1><A NAME="4">4 Trouble Report Processing</A></H1>
|
||||
<H1><A NAME="4">4 Trouble Report Processing</A></H1>
|
||||
A Software Trouble Report ("STR") shall be submitted every time a user
|
||||
or vendor experiences a problem with the CUPS software. Trouble reports
|
||||
are maintained in a database with one of the following states:
|
||||
<OL>
|
||||
<LI> STR is closed with complete resolution</LI>
|
||||
<LI> STR is closed without resolution</LI>
|
||||
<LI> STR is active</LI>
|
||||
<LI> STR is pending (new STR or additional information available)</LI>
|
||||
<LI>STR is closed with complete resolution</LI>
|
||||
<LI>STR is closed without resolution</LI>
|
||||
<LI>STR is active</LI>
|
||||
<LI>STR is pending (new STR or additional information available)</LI>
|
||||
</OL>
|
||||
Trouble reports shall be processed using the following steps.
|
||||
<H2><A NAME="4_1">4.1 Classification</A></H2>
|
||||
<H2><A NAME="4_1">4.1 Classification</A></H2>
|
||||
When a trouble report is received it must be classified at one of the
|
||||
following levels:
|
||||
<OL>
|
||||
<LI> Request for enhancement</LI>
|
||||
<LI> Documentation error</LI>
|
||||
<LI> Unable to print a file</LI>
|
||||
<LI> Unable to print to a printer</LI>
|
||||
<LI> Unable to print at all</LI>
|
||||
<LI>Request for enhancement</LI>
|
||||
<LI>Documentation error</LI>
|
||||
<LI>Unable to print a file</LI>
|
||||
<LI>Unable to print to a printer</LI>
|
||||
<LI>Unable to print at all</LI>
|
||||
</OL>
|
||||
The scope of the problem should also be determined as:
|
||||
<OL>
|
||||
<LI> Specific to a machine</LI>
|
||||
<LI> Specific to an operating system</LI>
|
||||
<LI> Applies to all machines and operating systems</LI>
|
||||
<LI>Specific to a machine</LI>
|
||||
<LI>Specific to an operating system</LI>
|
||||
<LI>Applies to all machines and operating systems</LI>
|
||||
</OL>
|
||||
<H2><A NAME="4_2">4.2 Identification</A></H2>
|
||||
<H2><A NAME="4_2">4.2 Identification</A></H2>
|
||||
Once the level and scope of the trouble report is determined the
|
||||
software sub-system(s) involved with the problem are determined. This
|
||||
may involve additional communication with the user or vendor to isolate
|
||||
the problem to a specific cause.
|
||||
<P> When the sub-system(s) involved have been identified, an engineer
|
||||
<P>When the sub-system(s) involved have been identified, an engineer
|
||||
will then determine the change(s) needed and estimate the time required
|
||||
for the change(s). </P>
|
||||
<H2><A NAME="4_3">4.3 Correction</A></H2>
|
||||
<H2><A NAME="4_3">4.3 Correction</A></H2>
|
||||
Corrections are scheduled based upon the severity and complexity of
|
||||
the problem. Once all changes have been made, documented, and tested
|
||||
successfully a new software release snapshot is generated. Additional
|
||||
tests are added as necessary for proper testing of the changes.
|
||||
<H2><A NAME="4_4">4.4 Notification</A></H2>
|
||||
<H2><A NAME="4_4">4.4 Notification</A></H2>
|
||||
The user or vendor is notified when the fix is available or if the
|
||||
problem was caused by user error.
|
||||
<H1><A NAME="5">5 Software Releases</A></H1>
|
||||
<H2><A NAME="5_1">5.1 Version Numbering</A></H2>
|
||||
<H1><A NAME="5">5 Software Releases</A></H1>
|
||||
<H2><A NAME="5_1">5.1 Version Numbering</A></H2>
|
||||
CUPS uses a three-part version number separated by periods to
|
||||
represent the major, minor, and patch release numbers:
|
||||
<UL>
|
||||
@@ -292,81 +288,81 @@ numbers reset to 0:
|
||||
2.0.0 Production release of 2.0.0
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="5_2">5.2 Generation</A></H2>
|
||||
<H2><A NAME="5_2">5.2 Generation</A></H2>
|
||||
Software releases shall be generated for each successfully completed
|
||||
software trouble report. All object and executable files shall be
|
||||
deleted prior to performing a full build to ensure that source files
|
||||
are recompiled.
|
||||
<H2><A NAME="5_3">5.3 Testing</A></H2>
|
||||
<H2><A NAME="5_3">5.3 Testing</A></H2>
|
||||
Software testing shall be conducted according to the CUPS Software
|
||||
Test Plan, CUPS-STP-1.1. Failed tests cause STRs to be generated to
|
||||
correct the problems found.
|
||||
<H2><A NAME="5_4">5.4 Release</A></H2>
|
||||
<H2><A NAME="5_4">5.4 Release</A></H2>
|
||||
When testing has been completed successfully a new distribution image
|
||||
is created from the current CVS code "snapshot". No production release
|
||||
shall contain software that has not passed the appropriate software
|
||||
tests.
|
||||
<H1 TYPE="A" VALUE="1"><A NAME="6">A Glossary</A></H1>
|
||||
<H2><A NAME="6_1">A.1 Terms</A></H2>
|
||||
<H1 TYPE="A" VALUE="1"><A NAME="6">A Glossary</A></H1>
|
||||
<H2><A NAME="6_1">A.1 Terms</A></H2>
|
||||
<DL>
|
||||
<DT> C </DT>
|
||||
<DD> A computer language. </DD>
|
||||
<DT> parallel </DT>
|
||||
<DD> Sending or receiving data more than 1 bit at a time. </DD>
|
||||
<DT> pipe </DT>
|
||||
<DD> A one-way communications channel between two programs. </DD>
|
||||
<DT> serial </DT>
|
||||
<DD> Sending or receiving data 1 bit at a time. </DD>
|
||||
<DT> socket </DT>
|
||||
<DD> A two-way network communications channel. </DD>
|
||||
<DT>C </DT>
|
||||
<DD>A computer language. </DD>
|
||||
<DT>parallel </DT>
|
||||
<DD>Sending or receiving data more than 1 bit at a time. </DD>
|
||||
<DT>pipe </DT>
|
||||
<DD>A one-way communications channel between two programs. </DD>
|
||||
<DT>serial </DT>
|
||||
<DD>Sending or receiving data 1 bit at a time. </DD>
|
||||
<DT>socket </DT>
|
||||
<DD>A two-way network communications channel. </DD>
|
||||
</DL>
|
||||
<H2><A NAME="6_2">A.2 Acronyms</A></H2>
|
||||
<H2><A NAME="6_2">A.2 Acronyms</A></H2>
|
||||
<DL>
|
||||
<DT> ASCII </DT>
|
||||
<DD> American Standard Code for Information Interchange </DD>
|
||||
<DT> CUPS </DT>
|
||||
<DD> Common UNIX Printing System </DD>
|
||||
<DT> ESC/P </DT>
|
||||
<DD> EPSON Standard Code for Printers </DD>
|
||||
<DT> FTP </DT>
|
||||
<DD> File Transfer Protocol </DD>
|
||||
<DT> HP-GL </DT>
|
||||
<DD> Hewlett-Packard Graphics Language </DD>
|
||||
<DT> HP-PCL </DT>
|
||||
<DD> Hewlett-Packard Printer Control Language </DD>
|
||||
<DT> HP-PJL </DT>
|
||||
<DD> Hewlett-Packard Printer Job Language </DD>
|
||||
<DT> IETF </DT>
|
||||
<DD> Internet Engineering Task Force </DD>
|
||||
<DT> IPP </DT>
|
||||
<DD> Internet Printing Protocol </DD>
|
||||
<DT> ISO </DT>
|
||||
<DD> International Standards Organization </DD>
|
||||
<DT> LPD </DT>
|
||||
<DD> Line Printer Daemon </DD>
|
||||
<DT> MIME </DT>
|
||||
<DD> Multimedia Internet Mail Exchange </DD>
|
||||
<DT> PCL </DT>
|
||||
<DD> Page Control Language </DD>
|
||||
<DT> PPD </DT>
|
||||
<DD> PostScript Printer Description </DD>
|
||||
<DT> SMB </DT>
|
||||
<DD> Server Message Block </DD>
|
||||
<DT> TFTP </DT>
|
||||
<DD> Trivial File Transfer Protocol </DD>
|
||||
<DT>ASCII </DT>
|
||||
<DD>American Standard Code for Information Interchange </DD>
|
||||
<DT>CUPS </DT>
|
||||
<DD>Common UNIX Printing System </DD>
|
||||
<DT>ESC/P </DT>
|
||||
<DD>EPSON Standard Code for Printers </DD>
|
||||
<DT>FTP </DT>
|
||||
<DD>File Transfer Protocol </DD>
|
||||
<DT>HP-GL </DT>
|
||||
<DD>Hewlett-Packard Graphics Language </DD>
|
||||
<DT>HP-PCL </DT>
|
||||
<DD>Hewlett-Packard Printer Control Language </DD>
|
||||
<DT>HP-PJL </DT>
|
||||
<DD>Hewlett-Packard Printer Job Language </DD>
|
||||
<DT>IETF </DT>
|
||||
<DD>Internet Engineering Task Force </DD>
|
||||
<DT>IPP </DT>
|
||||
<DD>Internet Printing Protocol </DD>
|
||||
<DT>ISO </DT>
|
||||
<DD>International Standards Organization </DD>
|
||||
<DT>LPD </DT>
|
||||
<DD>Line Printer Daemon </DD>
|
||||
<DT>MIME </DT>
|
||||
<DD>Multimedia Internet Mail Exchange </DD>
|
||||
<DT>PCL </DT>
|
||||
<DD>Page Control Language </DD>
|
||||
<DT>PPD </DT>
|
||||
<DD>PostScript Printer Description </DD>
|
||||
<DT>SMB </DT>
|
||||
<DD>Server Message Block </DD>
|
||||
<DT>TFTP </DT>
|
||||
<DD>Trivial File Transfer Protocol </DD>
|
||||
</DL>
|
||||
<H1><A NAME="7">B Coding Requirements</A></H1>
|
||||
<H1><A NAME="7">B Coding Requirements</A></H1>
|
||||
These coding requirements provide detailed information on source file
|
||||
formatting and documentation content. These guidelines shall be applied
|
||||
to all C and C++ source files provided with CUPS.
|
||||
<H2><A NAME="7_1">B.1 Source Files</A></H2>
|
||||
<H3><A NAME="7_1_1">B.1.1 Naming</A></H3>
|
||||
<H2><A NAME="7_1">B.1 Source Files</A></H2>
|
||||
<H3><A NAME="7_1_1">B.1.1 Naming</A></H3>
|
||||
All source files names shall be 16 characters or less in length to
|
||||
ensure compatibility with older UNIX filesystems. Source files
|
||||
containing functions shall have an extension of ".c" for ANSI C and
|
||||
".cxx" for C++ source files. All other "include" files shall have an
|
||||
extension of ".h".
|
||||
<H3><A NAME="7_1_2">B.1.2 Documentation</A></H3>
|
||||
<H3><A NAME="7_1_2">B.1.2 Documentation</A></H3>
|
||||
The top of each source file shall contain a header giving the name of
|
||||
the file, the purpose or nature of the source file, the copyright and
|
||||
licensing notice, and the functions contained in the file. The file
|
||||
@@ -416,16 +412,16 @@ that code has been lost near the end of the file:
|
||||
*/
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="7_2">B.2 Functions</A></H2>
|
||||
<H3><A NAME="7_2_1">B.2.1 Naming</A></H3>
|
||||
<H2><A NAME="7_2">B.2 Functions</A></H2>
|
||||
<H3><A NAME="7_2_1">B.2.1 Naming</A></H3>
|
||||
Functions with a global scope shall be capitalized ("DoThis",
|
||||
"DoThat", "DoSomethingElse", etc.) The only exception to this rule
|
||||
shall be the CUPS interface library functions which may begin with a
|
||||
prefix word in lowercase ("cupsDoThis", "cupsDoThat", etc.)
|
||||
<P> Functions with a local scope shall be declared "static" and be
|
||||
<P>Functions with a local scope shall be declared "static" and be
|
||||
lowercase with underscores between words ("do_this", "do_that",
|
||||
"do_something_else", etc.) </P>
|
||||
<H3><A NAME="7_2_2">B.2.2 Documentation</A></H3>
|
||||
<H3><A NAME="7_2_2">B.2.2 Documentation</A></H3>
|
||||
Each function shall begin with a comment header describing what the
|
||||
function does, the possible input limits (if any), and the possible
|
||||
output values (if any), and any special information needed:
|
||||
@@ -445,11 +441,11 @@ do_this(float x) /* I - Power value (0.0 <= x <= 1.1) */
|
||||
}
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="7_3">B.3 Methods</A></H2>
|
||||
<H3><A NAME="7_3_1">B.3.1 Naming</A></H3>
|
||||
<H2><A NAME="7_3">B.3 Methods</A></H2>
|
||||
<H3><A NAME="7_3_1">B.3.1 Naming</A></H3>
|
||||
Methods shall be in lowercase with underscores between words
|
||||
("do_this", "do_that", "do_something_else", etc.)
|
||||
<H3><A NAME="7_3_2">B.3.2 Documentation</A></H3>
|
||||
<H3><A NAME="7_3_2">B.3.2 Documentation</A></H3>
|
||||
Each method shall begin with a comment header describing what the
|
||||
method does, the possible input limits (if any), and the possible
|
||||
output values (if any), and any special information needed:
|
||||
@@ -469,19 +465,19 @@ class::do_this(float x) /* I - Power value (0.0 <= x <= 1.0) */
|
||||
}
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="7_4">B.4 Variables</A></H2>
|
||||
<H3><A NAME="7_4_1">B.4.1 Naming</A></H3>
|
||||
<H2><A NAME="7_4">B.4 Variables</A></H2>
|
||||
<H3><A NAME="7_4_1">B.4.1 Naming</A></H3>
|
||||
Variables with a global scope shall be capitalized ("ThisVariable",
|
||||
"ThatVariable", "ThisStateVariable", etc.) The only exception to this
|
||||
rule shall be the CUPS interface library global variables which must
|
||||
begin with the prefix "cups" ("cupsThisVariable", "cupsThatVariable",
|
||||
etc.) Global variables shall be replaced by function arguments whenever
|
||||
possible.
|
||||
<P> Variables with a local scope shall be lowercase with underscores
|
||||
<P>Variables with a local scope shall be lowercase with underscores
|
||||
between words ("this_variable", "that_variable", etc.) Any local
|
||||
variables shared by functions within a source file shall be declared
|
||||
"static". </P>
|
||||
<H3><A NAME="7_4_2">B.4.2 Documentation</A></H3>
|
||||
<H3><A NAME="7_4_2">B.4.2 Documentation</A></H3>
|
||||
Each variable shall be declared on a separate line and shall be
|
||||
immediately followed by a comment block describing the variable:
|
||||
<UL>
|
||||
@@ -490,12 +486,12 @@ int this_variable; /* The current state of this */
|
||||
int that_variable; /* The current state of that */
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="7_5">B.5 Types</A></H2>
|
||||
<H3><A NAME="7_5_1">B.5.1 Naming</A></H3>
|
||||
<H2><A NAME="7_5">B.5 Types</A></H2>
|
||||
<H3><A NAME="7_5_1">B.5.1 Naming</A></H3>
|
||||
All type names shall be lowercase with underscores between words and
|
||||
"_t" appended to the end of the name ("this_type_t", "that_type_t",
|
||||
etc.)
|
||||
<H3><A NAME="7_5_2">B.5.2 Documentation</A></H3>
|
||||
<H3><A NAME="7_5_2">B.5.2 Documentation</A></H3>
|
||||
Each type shall have a comment block immediately before the typedef:
|
||||
<UL>
|
||||
<PRE>
|
||||
@@ -505,12 +501,12 @@ etc.)
|
||||
typedef int cups_this_type_t;
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="7_6">B.6 Structures</A></H2>
|
||||
<H3><A NAME="7_6_1">B.6.1 Naming</A></H3>
|
||||
<H2><A NAME="7_6">B.6 Structures</A></H2>
|
||||
<H3><A NAME="7_6_1">B.6.1 Naming</A></H3>
|
||||
All structure names shall be lowercase with underscores between words
|
||||
and "_str" appended to the end of the name ("this_struct_str",
|
||||
"that_struct_str", etc.)
|
||||
<H3><A NAME="7_6_2">B.6.2 Documentation</A></H3>
|
||||
<H3><A NAME="7_6_2">B.6.2 Documentation</A></H3>
|
||||
Each structure shall have a comment block immediately before the
|
||||
struct and each member shall be documented in accordance with the
|
||||
variable naming policy above:
|
||||
@@ -526,11 +522,11 @@ struct cups_this_struct_str
|
||||
};
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="7_7">B.7 Classes</A></H2>
|
||||
<H3><A NAME="7_7_1">B.7.1 Naming</A></H3>
|
||||
<H2><A NAME="7_7">B.7 Classes</A></H2>
|
||||
<H3><A NAME="7_7_1">B.7.1 Naming</A></H3>
|
||||
All class names shall be lowercase with underscores between words
|
||||
("this_class", "that_class", etc.)
|
||||
<H3><A NAME="7_7_2">B.7.2 Documentation</A></H3>
|
||||
<H3><A NAME="7_7_2">B.7.2 Documentation</A></H3>
|
||||
Each class shall have a comment block immediately before the class and
|
||||
each member shall be documented in accordance with the variable naming
|
||||
policy above:
|
||||
@@ -546,15 +542,15 @@ class cups_this_class
|
||||
};
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="7_8">B.8 Constants</A></H2>
|
||||
<H3><A NAME="7_8_1">B.8.1 Naming</A></H3>
|
||||
<H2><A NAME="7_8">B.8 Constants</A></H2>
|
||||
<H3><A NAME="7_8_1">B.8.1 Naming</A></H3>
|
||||
All constant names shall be uppercase with underscored between words
|
||||
("THIS_CONSTANT", "THAT_CONSTANT", etc.) Constants defined for the CUPS
|
||||
interface library must begin with an uppercase prefix
|
||||
("CUPS_THIS_CONSTANT", "CUPS_THAT_CONSTANT", etc.)
|
||||
<P> Typed enumerations shall be used whenever possible to allow for
|
||||
type checking by the compiler. </P>
|
||||
<H3><A NAME="7_8_2">B.8.2 Documentation</A></H3>
|
||||
<P>Typed enumerations shall be used whenever possible to allow for type
|
||||
checking by the compiler. </P>
|
||||
<H3><A NAME="7_8_2">B.8.2 Documentation</A></H3>
|
||||
Comment blocks shall immediately follow each constant:
|
||||
<UL>
|
||||
<PRE>
|
||||
@@ -565,8 +561,8 @@ enum
|
||||
};
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="7_9">B.9 Code</A></H2>
|
||||
<H3><A NAME="7_9_1">B.9.1 Documentation</A></H3>
|
||||
<H2><A NAME="7_9">B.9 Code</A></H2>
|
||||
<H3><A NAME="7_9_1">B.9.1 Documentation</A></H3>
|
||||
All source code shall utilize block comments within functions to
|
||||
describe the operations being performed by a group of statements:
|
||||
<UL>
|
||||
@@ -593,8 +589,8 @@ do
|
||||
} while (i == (sizeof(array) / sizeof(array[0])));
|
||||
</PRE>
|
||||
</UL>
|
||||
<H3><A NAME="7_9_2">B.9.2 Style</A></H3>
|
||||
<H4 TYPE="a">B.9.2.a Indentation</H4>
|
||||
<H3><A NAME="7_9_2">B.9.2 Style</A></H3>
|
||||
<H4 TYPE="a">B.9.2.a Indentation</H4>
|
||||
All code blocks enclosed by brackets shall begin with the opening
|
||||
brace on a new line. The code then follows starting on a new line after
|
||||
the brace and is indented 2 spaces. The closing brace is then placed on
|
||||
@@ -634,11 +630,11 @@ switch (array[i])
|
||||
}
|
||||
</PRE>
|
||||
</UL>
|
||||
<H4>B.9.2.b Spacing</H4>
|
||||
<H4>B.9.2.b Spacing</H4>
|
||||
A space shall follow each reserved word ("if", "while", etc.) Spaces
|
||||
shall not be inserted between a function name and the arguments in
|
||||
parenthesis.
|
||||
<H4>B.9.2.c Return Values</H4>
|
||||
<H4>B.9.2.c Return Values</H4>
|
||||
Parenthesis shall surround values returned from a function using
|
||||
"return":
|
||||
<UL>
|
||||
@@ -646,7 +642,7 @@ parenthesis.
|
||||
return (STATE_IDLE);
|
||||
</PRE>
|
||||
</UL>
|
||||
<H4>B.9.2.d Loops</H4>
|
||||
<H4>B.9.2.d Loops</H4>
|
||||
Whenever convenient loops should count downward to zero to improve
|
||||
program performance:
|
||||
<UL>
|
||||
@@ -655,25 +651,25 @@ for (i = sizeof(array) / sizeof(array[0]) - 1; i >= 0; i --)
|
||||
array[i] = STATE_IDLE;
|
||||
</PRE>
|
||||
</UL>
|
||||
<H1 ALIGN="RIGHT"><A NAME="8">C Software Trouble Report Form</A></H1>
|
||||
<H1 ALIGN="RIGHT"><A NAME="8">C Software Trouble Report Form</A></H1>
|
||||
<CENTER>
|
||||
<TABLE WIDTH="80%">
|
||||
<TR><TH ALIGN="RIGHT"> Summary of Problem:</TH><TD ALIGN="LEFT">
|
||||
________________________________________</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT"> Problem Severity:</TH><TD ALIGN="LEFT"> __1=RFE
|
||||
<BR> __2=Documentation-Error
|
||||
<BR> __3=Unable-to-Print-a-File
|
||||
<BR> __4=Unable-to-Print-to-a-Printer
|
||||
<BR> __5=Unable-to-Print-at-All</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT"> Problem Scope:</TH><TD ALIGN="LEFT"> __1=Machine
|
||||
<TR><TH ALIGN="RIGHT">Summary of Problem:</TH><TD ALIGN="LEFT">
|
||||
________________________________________</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT">Problem Severity:</TH><TD ALIGN="LEFT">__1=RFE
|
||||
<BR>__2=Documentation-Error
|
||||
<BR>__3=Unable-to-Print-a-File
|
||||
<BR>__4=Unable-to-Print-to-a-Printer
|
||||
<BR>__5=Unable-to-Print-at-All</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT">Problem Scope:</TH><TD ALIGN="LEFT">__1=Machine
|
||||
__2=Operating-System __3=All</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP"> Detailed Description of Problem:</TH><TD
|
||||
ALIGN="LEFT"> ________________________________________
|
||||
<BR> ________________________________________
|
||||
<BR> ________________________________________
|
||||
<BR> ________________________________________
|
||||
<BR> ________________________________________
|
||||
<BR> ________________________________________</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP">Detailed Description of Problem:</TH><TD
|
||||
ALIGN="LEFT">________________________________________
|
||||
<BR>________________________________________
|
||||
<BR>________________________________________
|
||||
<BR>________________________________________
|
||||
<BR>________________________________________
|
||||
<BR>________________________________________</TD></TR>
|
||||
</TABLE>
|
||||
</CENTER>
|
||||
</BODY>
|
||||
|
||||
+623
-688
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+2
-2
@@ -12,7 +12,7 @@
|
||||
<H2>Identification</H2>
|
||||
|
||||
This configuration management plan document provides the guidelines for
|
||||
development and maintenance of the Common UNIX Printing System ("CUPS")
|
||||
development and maintainance of the Common UNIX Printing System ("CUPS")
|
||||
Version 1.1 software.
|
||||
|
||||
<EMBED SRC="system-overview.shtml">
|
||||
@@ -39,7 +39,7 @@ sections:
|
||||
<H2>Directory Structure</H2>
|
||||
|
||||
Each source file shall be placed a sub-directory corresponding to the software
|
||||
sub-system it belongs to ("scheduler", "cups", etc.) To remain compatible
|
||||
sub-system it belongs to ("scheduler", "libcups", etc.) To remain compatible
|
||||
with older UNIX filesystems, directory names shall not exceed 16 characters
|
||||
in length.
|
||||
|
||||
|
||||
Arquivo binário não exibido.
@@ -41,7 +41,7 @@
|
||||
<DD>Hewlett-Packard Graphics Language
|
||||
|
||||
<DT>HP-PCL
|
||||
<DD>Hewlett-Packard Page Control Language
|
||||
<DD>Hewlett-Packard Printer Control Language
|
||||
|
||||
<DT>HP-PJL
|
||||
<DD>Hewlett-Packard Printer Job Language
|
||||
@@ -61,6 +61,9 @@
|
||||
<DT>MIME
|
||||
<DD>Multimedia Internet Mail Exchange
|
||||
|
||||
<DT>PCL
|
||||
<DD>Page Control Language
|
||||
|
||||
<DT>PPD
|
||||
<DD>PostScript Printer Description
|
||||
|
||||
|
||||
+504
-540
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+724
-846
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+21
-33
@@ -129,6 +129,16 @@ file consists of two or more lines of ASCII text.
|
||||
The currently recognized values are:
|
||||
|
||||
<UL>
|
||||
<LI>cp874
|
||||
<LI>cp1250
|
||||
<LI>cp1251
|
||||
<LI>cp1252
|
||||
<LI>cp1253
|
||||
<LI>cp1254
|
||||
<LI>cp1255
|
||||
<LI>cp1256
|
||||
<LI>cp1257
|
||||
<LI>cp1258
|
||||
<LI>iso-8859-1
|
||||
<LI>iso-8859-2
|
||||
<LI>iso-8859-3
|
||||
@@ -144,16 +154,6 @@ The currently recognized values are:
|
||||
<LI>iso-8859-15
|
||||
<LI>us-ascii
|
||||
<LI>utf-8
|
||||
<LI>windows-874
|
||||
<LI>windows-1250
|
||||
<LI>windows-1251
|
||||
<LI>windows-1252
|
||||
<LI>windows-1253
|
||||
<LI>windows-1254
|
||||
<LI>windows-1255
|
||||
<LI>windows-1256
|
||||
<LI>windows-1257
|
||||
<LI>windows-1258
|
||||
</UL>
|
||||
|
||||
<P>The second and succeeding lines define text messages. If the message text
|
||||
@@ -208,11 +208,7 @@ of 1 or more lines of ASCII text. Comment lines start with the pound
|
||||
representing the source and destination types. Following the MIME types are
|
||||
a cost value (0 to 100) and the filter program to use. If the filter program
|
||||
is not specified using the full path then it must reside in the CUPS filter
|
||||
directory:
|
||||
|
||||
<UL><PRE>
|
||||
super/type SP super/type2 SP cost SP program
|
||||
</PRE></UL>
|
||||
directory.
|
||||
|
||||
<H2>Option Files</H2>
|
||||
|
||||
@@ -386,6 +382,10 @@ followed by its value. The following directives are understood:
|
||||
<TD>Location</TD>
|
||||
<TD>A textual location of the class.</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>MoreInfo</TD>
|
||||
<TD>A URL pointing to additional information on the class.</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>Printer</TD>
|
||||
<TD>Specifies a printer that is a member of the class.</TD>
|
||||
@@ -488,12 +488,6 @@ followed by its value. The following directives are understood:
|
||||
<TD>Specifies a source and destination address for relaying browser
|
||||
information from one subnet to another.</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BrowseShortNames</TD>
|
||||
<TD>yes</TD>
|
||||
<TD>Specifies whether or not to provide short names (without the
|
||||
"@server" part) for remote printers.</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BrowseTimeout</TD>
|
||||
<TD>300</TD>
|
||||
@@ -506,11 +500,6 @@ followed by its value. The following directives are understood:
|
||||
<TD>Specifies whether or not printer and class browsing is enabled; can
|
||||
be "On" or "Off".</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>DataDir</TD>
|
||||
<TD>/usr/share/cups</TD>
|
||||
<TD>Specifies the directory where CUPS data files are stored.</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>DefaultCharset</TD>
|
||||
<TD>iso-8859-1</TD>
|
||||
@@ -738,6 +727,10 @@ followed by its value. The following directives are understood:
|
||||
<TD>Location</TD>
|
||||
<TD>A textual location of the printer.</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>MoreInfo</TD>
|
||||
<TD>A URL pointing to additional information on the printer.</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><Printer name><BR>
|
||||
</Printer></TD>
|
||||
@@ -1063,7 +1056,7 @@ Adobe PostScript Language Reference Manual, Third Edition</A>.
|
||||
|
||||
<P>CUPS raster files are device-dependent raster image files that contain a
|
||||
PostScript page device dictionary and device-dependent raster imagery for
|
||||
each page in the document. These files are used to transfer raster data
|
||||
each page in the document. These files are used to transfer raster data
|
||||
from the PostScript and image file RIPs to device-dependent filters that
|
||||
convert the raster data to a printable format.
|
||||
|
||||
@@ -1348,9 +1341,7 @@ Protocol</A>.
|
||||
System (CIFS) protocols are described at
|
||||
<A HREF="http://anu.samba.org/cifs">http://anu.samba.org/cifs</A>.
|
||||
|
||||
<P>The URI method name for SMB is "smb". Support for this protocol is
|
||||
provided via the SAMBA <CODE>smbspool(1)</CODE> program provided with
|
||||
SAMBA 2.0.6 and higher.
|
||||
<P>The URI method name for SMB is "smb".
|
||||
|
||||
<H1>Directories</H1>
|
||||
|
||||
@@ -1373,9 +1364,6 @@ SAMBA 2.0.6 and higher.
|
||||
<CODE>lpr</CODE>, <CODE>lprm</CODE>, and <CODE>lpstat</CODE> commands
|
||||
reside here.
|
||||
|
||||
<DT>/usr/lib, /usr/lib32
|
||||
<DD>The shared libraries (DSOs) reside here.
|
||||
|
||||
<DT>/usr/lib/cups/backend
|
||||
<DD>The backend filters reside here.
|
||||
|
||||
|
||||
Arquivo binário não exibido.
|
Antes Largura: | Altura: | Tamanho: 11 KiB Depois Largura: | Altura: | Tamanho: 3.4 KiB |
+830
-853
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+977
-986
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
@@ -1649,38 +1649,6 @@ equals 1 inch). The default value is the device physical margin.
|
||||
<P>The penwidth attribute specifies the default pen width in micrometers
|
||||
when printing HP-GL/2 plot files. The default value is 1000 (1 millimeter).
|
||||
|
||||
<H3>position (type2 keyword)</H3>
|
||||
|
||||
<P>The position attribute specifies the location of image files on the
|
||||
media. The following keyword values are recognized:
|
||||
|
||||
<UL>
|
||||
|
||||
<LI><CODE>center</CODE> - Center the image on the page (default)
|
||||
|
||||
<LI><CODE>top</CODE> - Print the image centered at the top of the page
|
||||
|
||||
<LI><CODE>left</CODE> - Print the image centered on the left of page
|
||||
|
||||
<LI><CODE>right</CODE> - Print the image centered on the right of the page
|
||||
|
||||
<LI><CODE>top-left</CODE> - Print the image at the top left corner of
|
||||
the page
|
||||
|
||||
<LI><CODE>top-right</CODE> - Print the image at the top right corner of
|
||||
the page
|
||||
|
||||
<LI><CODE>bottom</CODE> - Print the image centered at the bottom of
|
||||
the page
|
||||
|
||||
<LI><CODE>bottom-left</CODE> - Print the image at the bottom left
|
||||
corner of the page
|
||||
|
||||
<LI><CODE>bottom-right</CODE> - Print the image at the bottom right
|
||||
corner of the page
|
||||
|
||||
</UL>
|
||||
|
||||
<H3>ppi (integer(1:MAX))</H3>
|
||||
|
||||
<P>The ppi attribute specifies the resolution of an image file in pixels
|
||||
|
||||
+155
-363
@@ -8,13 +8,12 @@
|
||||
<TABLE WIDTH="100%">
|
||||
<TR VALIGN=TOP>
|
||||
<TD><IMG SRC="images/cups-large.gif" WIDTH="103" HEIGHT="120"></TD>
|
||||
<TD><H1 ALIGN="RIGHT">An Overview of the<BR>
|
||||
Common UNIX Printing System,<BR>
|
||||
Version 1.1</H1>
|
||||
<TD><H1 ALIGN=right>An Overview of the<BR>
|
||||
Common UNIX Printing System</H1></DIV>
|
||||
|
||||
<P ALIGN="RIGHT">July 10, 2000<BR>
|
||||
<P ALIGN=right>October 4, 1999<BR>
|
||||
Michael Sweet, Easy Software Products<BR>
|
||||
Copyright 1998-2000, All Rights Reserved.</P>
|
||||
Copyright 1998-1999, All Rights Reserved.</P>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
@@ -22,84 +21,124 @@
|
||||
<P>This whitepaper describes the Common UNIX Printing
|
||||
System<SUP>TM</SUP> ("CUPS<SUP>TM</SUP>"), a portable and extensible
|
||||
printing system for UNIX<SUP>®</SUP>. CUPS is being developed by
|
||||
<A HREF="http://www.easysw.com">Easy Software Products</A>, a software
|
||||
firm located in Hollywood, Maryland that has been selling commercial
|
||||
software for UNIX since 1993 through more than 40 distributors serving
|
||||
over 80 countries worldwide.
|
||||
Easy Software Products, a software firm located in Hollywood, Maryland
|
||||
that has been selling commercial software for Silicon
|
||||
Graphics<SUP>®</SUP>, Sun<SUP>®</SUP>, and HP workstations
|
||||
since 1993 through more than 40 distributors serving over 80 countries
|
||||
worldwide.
|
||||
|
||||
<P>Additional information on CUPS is available on the World Wide Web at
|
||||
"<A HREF="http://www.cups.org">http://www.cups.org</A>".
|
||||
|
||||
<H2>Background</H2>
|
||||
|
||||
<P>Printing within UNIX has historically been done using one of two
|
||||
Printing within UNIX has historically been done using one of two
|
||||
printing systems - the Berkeley Line Printer Daemon ("LPD") [RFC1179]
|
||||
and the AT&T Line Printer system. These printing systems were
|
||||
designed in the 70's for printing text to line printers; vendors have
|
||||
since added varying levels of support for other types of printers.
|
||||
|
||||
<P>Replacements for these printing systems have emerged [LPRng,
|
||||
Palladin, PLP], however none of the replacements change the fundamental
|
||||
capabilities of these systems.
|
||||
and the AT&T Line Printer system. Replacements for these printing
|
||||
systems have emerged [LPRng, Palladin, PLP], however none of the
|
||||
replacements change the fundamental capabilities of these systems.
|
||||
|
||||
<P>Over the last few years several attempts at developing a standard
|
||||
printing interface have been made, including the draft POSIX Printing
|
||||
standard developed by the Institute of Electrical and Electronics
|
||||
Engineers, Inc. ("IEEE") [IEEE-1387.4] and Internet Printing Protocol
|
||||
("IPP") developed by the Internet Engineering Task Force ("IETF")
|
||||
through the Printer Working Group ("PWG") [IETF-IPP]. The POSIX
|
||||
printing standard defines a common set of command-line tools as well as
|
||||
a C interface for printer administration and print jobs, but has been
|
||||
shelved by the IEEE.
|
||||
standard [IEEE-1387.4, last updated in 1994] and Internet Printing
|
||||
Protocol [IETF-IPP]. The POSIX printing standard defines a common set
|
||||
of command-line tools as well as a C interface for printer
|
||||
administration and print jobs. The Internet Printing Protocol defines
|
||||
extensions to the HyperText Transport Protocol 1.1 [RFC2068] to provide
|
||||
support for remote printing services.
|
||||
|
||||
<P>The Internet Printing Protocol defines extensions to the HyperText
|
||||
Transport Protocol 1.1 [RFC2616] to provide support for remote printing
|
||||
services. IPP/1.0 was accepted by the IETF as an experimental Request
|
||||
For Comments [RFC] document in October of 1999. Since then the Printer
|
||||
Working Group has developed an updated set of specifications for
|
||||
IPP/1.1 which have been accepted by the IETF and are awaiting
|
||||
publication as proposed standards. Unlike POSIX Printing, IPP enjoys
|
||||
widespread industry support and is poised to become the standard
|
||||
network printing solution for all operating systems.
|
||||
<H2>Weaknesses in Existing Printing Systems</H2>
|
||||
|
||||
<P>CUPS uses IPP/1.1 to provide a complete, modern printing system for
|
||||
UNIX that can be extended to support new printers, devices, and
|
||||
protocols while providing compatibility with existing UNIX
|
||||
applications. CUPS is free software provided under the terms of the
|
||||
GNU General Public License and GNU Library General Public License.
|
||||
Easy Software Products has identified several major weaknesses in
|
||||
the printing systems currently in use:
|
||||
|
||||
<H2>History</H2>
|
||||
<OL>
|
||||
|
||||
<P>The first production release of CUPS (based on IPP/1.0) was released
|
||||
in October of 1999. Since then, we have released several patch updates
|
||||
to the original CUPS 1.0 release that addressed security, portability,
|
||||
and bugs found, but no new functionality was added to improve the
|
||||
stability of the CUPS code.
|
||||
<LI>Users must print text or Adobe<SUP>®</SUP>
|
||||
PostScript<SUP>TM</SUP> files; other formats <I>may</I> be
|
||||
supported, but not universally.
|
||||
|
||||
<P>CUPS 1.1 is based on IPP/1.1 and adds many of the functional
|
||||
enhancements that have been requested by our users. As with 1.0, CUPS
|
||||
1.1 will be followed by patch releases that address any problems found
|
||||
with the software but add no new features.
|
||||
<LI>Lack of a standard command-line interface; each operating
|
||||
system and driver package provides different command-line
|
||||
options, e.g. setting the media size with one driver may
|
||||
involve passing a single option ("letter") while another
|
||||
requires two ("mediasize letter").
|
||||
|
||||
<LI>Lack of a standard application interface; most UNIX
|
||||
applications either do not provide an interface for sending
|
||||
printer options, or restrict the options to those in printer
|
||||
description files supplied with the application.
|
||||
|
||||
<LI>Remote printing problems; no vendor seems to use the same
|
||||
remote printing protocol (many use an "enhanced" version of the
|
||||
LPD protocol with vendor-specific extensions).
|
||||
|
||||
<LI>Client printer administration hassles; most vendors
|
||||
require that you install remote printers on each client by
|
||||
hand, and many do not even provide the ability to browse
|
||||
printers on the "server" system.
|
||||
|
||||
<LI>Drivers typically are hardcoded to handle printing to
|
||||
parallel or serial printers; support for other types of
|
||||
interfaces or networking protocols requires that a driver be
|
||||
rewritten to support them.
|
||||
|
||||
<LI>Security, accounting, and quotas; most printing systems do
|
||||
not support access control lists ("ACLs"), and printer
|
||||
accounting and quotas are not well supported, if at all.
|
||||
|
||||
</OL>
|
||||
|
||||
<H2>Goals of CUPS</H2>
|
||||
|
||||
The basic goals of CUPS are:
|
||||
|
||||
<OL>
|
||||
|
||||
<LI>Provide standard support for text (US ASCII, UTF-8, and
|
||||
ISO-8859-x), Adobe PostScript, PDF, HP-GL/2, TIFF, JPEG, PNG,
|
||||
PBM, PGM, PPM, GIF, SGI RGB, Sun Raster, and Kodak
|
||||
PhotoCD<SUP>TM</SUP> files.
|
||||
|
||||
<LI>Provide a standard command-line interface with a standard
|
||||
minimum set of options (media size and so forth).
|
||||
|
||||
<LI>Provide a standard application interface.
|
||||
|
||||
<LI>Provide a common remote printing interface (IPP).
|
||||
|
||||
<LI>Provide a printer browsing interface and allow users to
|
||||
print to remote printers using a "printer@server" notation
|
||||
rather than adding the printer locally.
|
||||
|
||||
<LI>Provide a scheduler extension interface to support
|
||||
different interfaces separate from the printer driver (e.g.
|
||||
serial, parallel, lpd, tftp, ipp, etc.)
|
||||
|
||||
<LI>Provide a standard interface for ACLs, quotas, accounting,
|
||||
and logging.
|
||||
|
||||
</OL>
|
||||
|
||||
<H2>Design Overview</H2>
|
||||
|
||||
<P>Like most printing systems, CUPS is designed around a central print
|
||||
Like most printing systems, CUPS is designed around a central print
|
||||
scheduling process that dispatches print jobs, processes administrative
|
||||
commands, provides printer status information to local and remote
|
||||
programs, and informs users as needed. Figure 1 shows the basic
|
||||
organization of CUPS.
|
||||
|
||||
<CENTER><IMG SRC="images/cups-block-diagram.gif" WIDTH="470" HEIGHT="170"></CENTER>
|
||||
<P ALIGN="CENTER">Figure 1 - CUPS Block Diagram</P>
|
||||
<P ALIGN=CENTER><IMG SRC="images/cups-block-diagram.gif" WIDTH="540" HEIGHT="200">
|
||||
<BR>Figure 1 - CUPS Block Diagram
|
||||
|
||||
<H3>Scheduler</H3>
|
||||
|
||||
<P>The scheduler is a HTTP/1.1 server application that handles HTTP
|
||||
The scheduler is a HTTP/1.1 server application that handles HTTP
|
||||
requests. Besides handling printer requests via IPP POST requests, the
|
||||
scheduler also acts as a full-featured web server for documentation,
|
||||
status monitoring, and administration.
|
||||
scheduler also acts as a full-featured web server for documentation and
|
||||
status monitoring.
|
||||
|
||||
<P>The scheduler also manages a list of available printers on the LAN
|
||||
<P>The scheduler also monitors the LAN for printer browsing information
|
||||
and dispatches print jobs as needed using the appropriate filters and
|
||||
backends.
|
||||
|
||||
@@ -109,17 +148,17 @@ The configuration files consist of:
|
||||
|
||||
<UL>
|
||||
|
||||
<LI>The HTTP server configuration file.
|
||||
<LI>A HTTP server configuration file.
|
||||
|
||||
<LI>Printer and class definition files.
|
||||
|
||||
<LI>MIME type and conversion rule files.
|
||||
|
||||
<LI>PostScript Printer Description ("PPD") files.
|
||||
<LI>PostScript Printer Description (PPD) files.
|
||||
|
||||
</UL>
|
||||
|
||||
<P>The HTTP server configuration file is purposely similar to the
|
||||
The HTTP server configuration file is purposely similar to the
|
||||
Apache server configuration file and defines all of the access control
|
||||
properties for the server.
|
||||
|
||||
@@ -132,323 +171,77 @@ class, round-robin fashion.
|
||||
application/postscript, etc.) and "magic" rules for automatically
|
||||
detecting the format of a file. These are used by the HTTP server to
|
||||
determine the <I>Content-Type</I> field for <I>GET</I> and <I>HEAD</I>
|
||||
requests and by the IPP request handler to determine the file type
|
||||
when a <I>Print-Job</I> or <I>Send-File</I> request is received with a
|
||||
requests, and by the IPP request handler to determine the file type
|
||||
when a <I>Print-Job</I> request is received with a
|
||||
<I>document-format</I> of <I>application/octet-stream</I>.
|
||||
|
||||
<P>The MIME conversion rule files list the available filters. The
|
||||
filters are used when a job is dispatched so that an application can
|
||||
send a convenient file format to the printing system which then
|
||||
converts the document into a printable format as needed. Each filter
|
||||
has a relative cost associated with it, and the filtering algorithm
|
||||
chooses the set of filters that will convert the file to the needed
|
||||
format with the lowest total "cost".
|
||||
<P>The MIME conversion rule files list the available filters. These
|
||||
files are augmented by <I>cupsFilter</I> entries in the printer PPD
|
||||
files. The filters are used when a job is dispatched so that an
|
||||
application can send a convenient file format to the printing system
|
||||
which then converts the document into a printable format as needed.
|
||||
Each filter has a relative cost associated with it, and the filtering
|
||||
algorithm chooses the set of filters that will convert the file to the
|
||||
needed format with the lowest total "cost".
|
||||
|
||||
<P>The PPD files describe the capabilities of all printers, not just
|
||||
PostScript printers. There is one PPD file for each printer. PPD files
|
||||
for non-PostScript printers define additional filters through
|
||||
<I>cupsFilter</I> attributes to support printer drivers.
|
||||
<P>The PPD files describe the capabilities of PostScript printers.
|
||||
There is one PPD file for each printer.
|
||||
|
||||
<H3>CUPS API</H3>
|
||||
<H3>CUPS Interface Library</H3>
|
||||
|
||||
<P>The CUPS API contains CUPS-specific convenience functions for queuing
|
||||
print jobs, getting printer information, accessing resources via HTTP
|
||||
and IPP, and manipulating PPD files. Unlike the rest of CUPS, the CUPS
|
||||
API is provided under the terms of the GNU LGPL so it may be used by
|
||||
non-GPL applications.
|
||||
|
||||
<H3>Berkeley and System V Commands</H3>
|
||||
|
||||
<P>CUPS provides the System V and Berkeley command-line interfaces for
|
||||
submitting jobs and checking the printer status. The
|
||||
<CODE>lpstat</CODE> and <CODE>lpc status</CODE> commands also show
|
||||
network printers ("printer@server") when printer browsing is enabled.
|
||||
|
||||
<P>The System V administation commands are supplied for managing
|
||||
printers and classes. The Berkeley printer administration tool
|
||||
(<CODE>lpc</CODE>) is only supported in a "read-only" mode to check the
|
||||
current status of the printer queues and scheduler.
|
||||
The CUPS interface library contains CUPS-specific convenience functions
|
||||
for queuing print jobs, etc. It also contains functions to access
|
||||
resources via HTTP and IPP, perform MIME typing and conversion, and
|
||||
manipulate PPD files.
|
||||
|
||||
<H3>Filters</H3>
|
||||
|
||||
<P>A filter program reads from the standard input or from a file if a
|
||||
A filter program reads from the standard input or from a file if a
|
||||
filename is supplied. All filters must support a common set of options
|
||||
including printer name, job ID, username, job title, number of copies,
|
||||
and job options. All output is sent to the standard output.
|
||||
|
||||
<P>Filters are provided for many file formats and include image file
|
||||
and PostScript raster filters that support non-PostScript printers. Multiple
|
||||
filters are run in parallel to produce the required output format.
|
||||
|
||||
<P>The PostScript raster filter is based on the GNU Ghostscript 5.50
|
||||
core. Instead of using the Ghostscript printer drivers and front-end,
|
||||
the CUPS filter uses a generic raster printer driver and CUPS-compliant
|
||||
front-end to support any kind of raster printer. This allows the same
|
||||
printer driver filter to be used for printing raster data from any
|
||||
filter.
|
||||
|
||||
<H3>CUPS Imaging</H3>
|
||||
|
||||
<P>The CUPS Imaging library provides functions for managing large
|
||||
images, doing colorspace conversion and color management, scaling
|
||||
images for printing, and managing raster page streams. It is used by
|
||||
the CUPS image file filters, the PostScript RIP, and all raster
|
||||
printers drivers.
|
||||
|
||||
<H3>Backends</H3>
|
||||
|
||||
<P>A backend program is a special filter that sends print data to a
|
||||
device or network connection. Backends for parallel, serial, USB, LPD, IPP,
|
||||
and AppSocket (JetDirect) connections are provided in CUPS 1.1.
|
||||
|
||||
<P>SAMBA version 2.0.6 and higher includes a SMB backend
|
||||
(<CODE>smbspool(1)</CODE>) that can be used with CUPS 1.0 or 1.1 for
|
||||
printing to Windows.
|
||||
|
||||
<H2>Network Printing</H2>
|
||||
|
||||
<P>Traditionally, network printing has been one of the hardest things to
|
||||
get working under UNIX. One reason is because each vendor added their
|
||||
own extensions to the LPD protocol (the previous standard for network
|
||||
printing), making cross-platform printing difficult if not impossible.
|
||||
|
||||
<P>Another reason is that you have to administer every network printer
|
||||
on every client machine. In some cases you can "clone" the printer
|
||||
configuration from a "master" client to each of the others, but even
|
||||
that can be time-consuming and error-prone. Something better is needed.
|
||||
|
||||
<P>CUPS provides "printer browsing", which allows clients to
|
||||
automatically see and use printers from any server on a LAN. This means
|
||||
that you only need to configure the server and the clients will
|
||||
automatically see the printers and classes on it.
|
||||
|
||||
<P>In addition, CUPS can automatically merge multiple identical network
|
||||
printers into "implicit classes". This allows clients to send jobs to
|
||||
the implicit class and have them print on the first available printer
|
||||
or server. In addition, failsafe and load-balancing functions are
|
||||
enabled simply by defining the same printer on multiple servers!
|
||||
|
||||
<H2>New Features in CUPS 1.1</H2>
|
||||
|
||||
<P>CUPS 1.1 includes many new features and capabilities:
|
||||
|
||||
<OL>
|
||||
|
||||
<LI><A HREF="#BACKENDS">Backends</A>
|
||||
|
||||
<LI><A HREF="#BANNERS">Banner Page Support</A>
|
||||
|
||||
<LI><A HREF="#DIGEST">Digest Authentication</A>
|
||||
|
||||
<LI><A HREF="#DIRSVC">Directory Services</A>
|
||||
|
||||
<LI><A HREF="#FHS2">Directory Structure Changes</A>
|
||||
|
||||
<LI><A HREF="#DOCOS">Documentation</A>
|
||||
|
||||
<LI><A HREF="#DRIVERS">Drivers</A>
|
||||
|
||||
<LI><A HREF="#FILTERS">Filters</A>
|
||||
|
||||
<LI><A HREF="#IPP">IPP Support</A>
|
||||
|
||||
<LI><A HREF="#PERSISTENCE">Job Persistence</A>
|
||||
|
||||
<LI><A HREF="#LPD">LPD Client Support</A>
|
||||
|
||||
<LI><A HREF="#USEROPTS">User-Defined Printers and Options</A>
|
||||
|
||||
<LI><A HREF="#WEB">Web Administration Interface</A>
|
||||
|
||||
</OL>
|
||||
|
||||
<H3><A NAME="BACKENDS">1. Backends</A></H3>
|
||||
|
||||
<P>CUPS 1.1 implements a new backend interface for retrieving a list of
|
||||
available devices for CUPS clients. This allows administration
|
||||
interfaces to query the CUPS scheduler for a list of available devices,
|
||||
automatically configure printers if the device identification
|
||||
information is available, and present the user with a list of available
|
||||
devices rather than relying on the user to know what devices are
|
||||
configured on the system.
|
||||
|
||||
<P>The new release also includes a backend for USB printers under
|
||||
*BSD and Linux. Support for USB under Solaris 8 will be provided in
|
||||
a subsequent patch release.
|
||||
|
||||
<H3><A NAME="BANNERS">2. Banner Page Support</A></H3>
|
||||
|
||||
<P>CUPS 1.1 includes support for banner pages at the beginning and end
|
||||
of a job. Banner pages may be of any file format and support variable
|
||||
substitution for job titles, usernames, etc. Default banner pages are
|
||||
associated with each printer and can be overridden with command-line
|
||||
options by the user.
|
||||
|
||||
<H3><A NAME="DIGEST">3. Digest Authentication</A></H3>
|
||||
|
||||
<P>Digest authentication provides a more secure method of authenticating
|
||||
access to the printing system. Unlike Basic authentication, Digest
|
||||
authentication does not send passwords "in the clear" so it is more
|
||||
difficult to gain unauthorized access to your system.
|
||||
|
||||
<P>CUPS 1.1 implements Digest authentication using a special MD5
|
||||
password file instead of the UNIX password file. This file is managed
|
||||
using the new <CODE>lppasswd</CODE> command.
|
||||
|
||||
<H3><A NAME="DIRSVC">4. Directory Services</A></H3>
|
||||
|
||||
<P>CUPS 1.1 adds new directory service ("printer browsing") features to
|
||||
make using CUPS on large LANs and WANs easier. You can now poll a
|
||||
remote server for printer information and relay it to the LAN as well
|
||||
as restrict what printer information is processed (e.g. to "hide"
|
||||
servers, domains, or networks that you don't want to see.)
|
||||
|
||||
<H3><A NAME="FHS2">5. Directory Structure Changes</A></H3>
|
||||
|
||||
<P>CUPS 1.1 now uses a directory structure that complies with the
|
||||
Filesystem Hierarchy Standard ("FHS"), version 2.0. This should make
|
||||
integration into existing Linux and *BSD distributions a lot easier.
|
||||
|
||||
<H3><A NAME="DOCOS">6. Documentation</A></H3>
|
||||
|
||||
<P>The CUPS 1.1 documentation has gone through many revisions,
|
||||
including a completely rewritten administrators manual, a new
|
||||
programmers manual, and an IPP implementation reference manual.
|
||||
|
||||
<H3><A NAME="DRIVERS">7. Drivers</A></H3>
|
||||
|
||||
<P>CUPS 1.1 includes drivers for EPSON dot-matrix and inkjet printers.
|
||||
As with the HP PCL drivers, the EPSON drivers don't necessarily provide
|
||||
the best possible output for each printer but should provide adequate
|
||||
printing quality for general day-to-day printing.
|
||||
|
||||
<H3><A NAME="FILTERS">8. Filters</A></H3>
|
||||
|
||||
<P>CUPS 1.1 includes new image, PostScript, PDF, and text filters. The image
|
||||
filters have been upgraded to support Windows BMP and Alias PIX files.
|
||||
|
||||
<P>The PostScript filter is now based off GNU Ghostscript 5.50. The new
|
||||
filter provides much better performance with higher-resolution printers
|
||||
and supports most Level 3 PostScript language features.
|
||||
|
||||
<P>The new PDF filter is based off the excellent Xpdf software from
|
||||
Derek Noonburg and supports automatic page scaling. The new filter is a
|
||||
faster, smaller, more reliable replacement for the GNU Ghostscript PDF
|
||||
filtering that was used in CUPS 1.0.
|
||||
|
||||
<P>The new text filter now supports bidirectional text and can embed
|
||||
fonts as needed.
|
||||
|
||||
<H3><A NAME="IPP">9. IPP Support</A></H3>
|
||||
|
||||
<P>Probably the least visible portion of CUPS is the IPP support. CUPS
|
||||
1.1 implements all of the required IPP/1.1 operations and attributes
|
||||
and most of the optional ones. The optional Create-Job and Send-File
|
||||
operations are now implemented, allowing for better System V printing
|
||||
system compatibility (one job ID per <CODE>lp</CODE> command) and
|
||||
support for banner pages.
|
||||
|
||||
<H3><A NAME="PERSISTENCE">10. Job Persistence</A></H3>
|
||||
|
||||
<P>CUPS 1.1 supports job persistence. This means that jobs are preserved
|
||||
even after a reboot, a feature that was sorely missing from CUPS 1.0.
|
||||
|
||||
<P>In addition, CUPS 1.1 allows you to keep job information after the
|
||||
job has printed. The basic post-job persistence mode provides a job
|
||||
history (number of pages printed, time job was printed, etc.) but does
|
||||
not preserve the actual job files. This can be changed to discard all
|
||||
information after a job is printed or keep the job files after printing
|
||||
so you can reprint a job at some later time.
|
||||
|
||||
<H3><A NAME="LPD">11. LPD Client Support</A></H3>
|
||||
|
||||
<P>By popular request, CUPS 1.1 supports LPD-based clients using a new
|
||||
mini-daemon that handles LPD requests and passes them on to the main
|
||||
server.
|
||||
|
||||
<H3><A NAME="USEROPTS">12. User-Defined Printers and Options</A></H3>
|
||||
|
||||
<P>CUPS 1.1 includes support for user-defined printers and options via
|
||||
a new <CODE>lpoptions</CODE> command. User-defined printers are special
|
||||
instances of the available printers (e.g. "printer/instance" or
|
||||
"printer@server/instance") that can have their own default options such
|
||||
as media size, resolution, and so forth. The <CODE>lpoptions</CODE>
|
||||
command can also be used to set a different default printer queue.
|
||||
|
||||
<H3><A NAME="WEB">13. Web Administration Interface</A></H3>
|
||||
|
||||
<P>CUPS 1.0 provided a simple class, job, and printer monitoring
|
||||
interface for web browsers. CUPS 1.1 replaces this interface with an
|
||||
enhanced administration interface that allows you to add, modify,
|
||||
delete, configure, and control classes, jobs, and printers.
|
||||
|
||||
<H2>Software Using CUPS</H2>
|
||||
|
||||
<P>A lot has happened since CUPS 1.0 came out, and many software packages
|
||||
are supporting CUPS. We have contributed code to the SAMBA team to support
|
||||
CUPS, and parts of that are already available in SAMBA 2.0.6 and 2.0.7.
|
||||
With any luck the final pieces that provide a complete integration with
|
||||
SAMBA will be available in the next release of SAMBA.
|
||||
|
||||
<P>Two graphical interfaces have appeared on the scene that use CUPS as
|
||||
well. The KUPS project provides a KDE-based interface for CUPS and can be
|
||||
found at:
|
||||
|
||||
<UL><PRE>
|
||||
<A HREF="http://kups.sourceforge.net">http://kups.sourceforge.net</A>
|
||||
</PRE></UL>
|
||||
|
||||
<P>The X Printing Panel ("XPP") project provides a graphical printing
|
||||
panel for CUPS and can be found at:
|
||||
|
||||
<UL><PRE>
|
||||
<A HREF="http://www.phy.uni-bayreuth.de/till/xpp">http://www.phy.uni-bayreuth.de/till/xpp/</A>
|
||||
</PRE></UL>
|
||||
|
||||
<P>Numerous other filters, drivers, tutorials, etc. have been made available
|
||||
on the CUPS bazaar, available at:
|
||||
|
||||
<UL><PRE>
|
||||
<A HREF="http://www.cups.org/bazaar.cgi">http://www.cups.org/bazaar.cgi</A>
|
||||
</PRE></UL>
|
||||
|
||||
<P>Finally, our own ESP Print Pro software uses CUPS to provide drivers
|
||||
for over 2300 printers and can be found at:
|
||||
|
||||
<UL><PRE>
|
||||
<A HREF="http://www.easysw.com/printpro">http://www.easysw.com/printpro</A>
|
||||
</PRE></UL>
|
||||
|
||||
<H2>Operating Systems Using CUPS</H2>
|
||||
|
||||
<P>One of our goals has always been to get as many UNIX/Linux
|
||||
distributions using CUPS as possible. Debian is currently providing
|
||||
CUPS as part of its stable distribution, and many other distributions
|
||||
are considering it in their next releases.
|
||||
A backend program is a special filter that writes incoming data to a
|
||||
device or network connection. Backends for serial, parallel, LPD,
|
||||
IPP, SMB, and AppSocket (JetDirect) connections are provided in
|
||||
CUPS 1.0.
|
||||
|
||||
<H2>Berkeley and System V Commands</H2>
|
||||
|
||||
CUPS provides the System V and Berkeley command-line interfaces
|
||||
for submitting jobs and checking the printer status. The "lpstat" and
|
||||
"lpc status" commands also show network printers ("printer@hostname")
|
||||
when printer browsing is enabled.
|
||||
|
||||
<P>The System V administation commands are supplied for managing
|
||||
printers local to the system. The Berkeley printer administration tool
|
||||
("lpc") is only supported in a "read-only" mode to check the current
|
||||
status of the printer queues and scheduler.
|
||||
|
||||
<H2>Summary</H2>
|
||||
|
||||
<P>The Common UNIX Printing System provides a modern printing interface
|
||||
The Common UNIX Printing System provides a modern printing interface
|
||||
for UNIX applications that is both flexible and user-friendly. The
|
||||
software provides System V and Berkeley compatible command-line
|
||||
interfaces to ensure compatibility with existing applications. CUPS 1.1
|
||||
adds many new features that make it an even better choice for printing
|
||||
under UNIX.
|
||||
interfaces to ensure compatibility with existing applications.
|
||||
|
||||
<H2>Who to Contact</H2>
|
||||
<H2>Licensing</H2>
|
||||
|
||||
<P>For more information on CUPS please contact us at:
|
||||
CUPS is available under the terms of the GNU General Public License
|
||||
which means that it is basically free except for binary-only
|
||||
distribution. Vendors wishing to license CUPS for their printing
|
||||
solution should contact Easy Software Products at:
|
||||
|
||||
<UL><PRE>
|
||||
Attn: CUPS Information
|
||||
Easy Software Products
|
||||
44141 Airport View Drive Suite 204
|
||||
<UL>
|
||||
<P>Attn: CUPS Licensing<BR>
|
||||
Easy Software Products<BR>
|
||||
44141 Airport View Drive Suite 204<BR>
|
||||
Hollywood, Maryland 20636-3111 USA
|
||||
|
||||
+1.301.373.9600
|
||||
|
||||
<A HREF="mailto:cups-info@cups.org">cups-info@cups.org</A>
|
||||
</PRE></UL>
|
||||
<P>+1.301.373.9600<BR>
|
||||
cups-info@cups.org
|
||||
</UL>
|
||||
|
||||
<H2>References</H2>
|
||||
|
||||
@@ -460,31 +253,30 @@ Hollywood, Maryland 20636-3111 USA
|
||||
|
||||
<DT><A HREF="http://www.pwg.org/ipp/index.html">IETF-IPP</A></DT>
|
||||
|
||||
<DD>Internet Printing Protocol/1.1</DD>
|
||||
<DD>Internet Printing Protocol/1.0</DD>
|
||||
|
||||
<DT><A HREF="http://www.astart.com/lprng.html">LPRng</A></DT>
|
||||
|
||||
<DD>An enhanced, extended, and portable implementation of the
|
||||
Berkeley LPR print spooler functionality</DD>
|
||||
<DD>An enhanced, extended, and portable implementation of the Berkeley LPR
|
||||
print spooler functionality</DD>
|
||||
|
||||
<DT>Palladin</DT>
|
||||
|
||||
<DD>A printing system developed at the Massachussetts Institute
|
||||
of Technology</DD>
|
||||
<DD>A printing system developed at the Massachussetts Institute of Technology</DD>
|
||||
|
||||
<DT><A HREF="http://www-usa.iona.com//hyplan/jmason/plp.html">PLP</A></DT>
|
||||
|
||||
<DD>The Portable Line Printer spooler system</DD>
|
||||
|
||||
<DT><A HREF="http://www.ietf.org/rfc/rfc1179.txt">RFC1179</A></DT>
|
||||
<DT><A HREF="http://www.cis.ohio-state.edu/rfc/rfc1179.txt">RFC1179</A></DT>
|
||||
|
||||
<DD>Line Printer Daemon Protocol</DD>
|
||||
|
||||
<DT><A HREF="http://www.ietf.org/rfc/rfc2046.txt">RFC2046</A></DT>
|
||||
<DT><A HREF="http://www.cis.ohio-state.edu/rfc/rfc2046.txt">RFC2046</A></DT>
|
||||
|
||||
<DD>Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types</DD>
|
||||
|
||||
<DT><A HREF="http://www.ietf.org/rfc/rfc2616.txt">RFC2616</A></DT>
|
||||
<DT><A HREF="http://www.cis.ohio-state.edu/rfc/rfc2068.txt">RFC2068</A></DT>
|
||||
|
||||
<DD>Hypertext Transfer Protocol -- HTTP/1.1</DD>
|
||||
|
||||
@@ -492,9 +284,9 @@ Hollywood, Maryland 20636-3111 USA
|
||||
|
||||
<H2>Trademarks</H2>
|
||||
|
||||
<P>The Common UNIX Printing System, CUPS, and the CUPS logo are the
|
||||
trademark property of Easy Software Products. All other trademarks are
|
||||
the property of their respective owners.
|
||||
The Common UNIX Printing System, CUPS, and the CUPS logo are
|
||||
trademarks of Easy Software Products. All other trademarks are the
|
||||
property of their respective owners.
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
Arquivo binário não exibido.
+11
-13
@@ -10,7 +10,7 @@
|
||||
<LI>CUPS-IPP-1.1: CUPS Implmentation of IPP
|
||||
<LI>CUPS-SAM-1.1.x: CUPS Software Administrators Manual
|
||||
<LI>CUPS-SDD-1.1: CUPS Software Design Description
|
||||
<LI>CUPS-SPM-1.1.x: CUPS Software Programming Manual
|
||||
<LI>CUPS-SPM-1.1: CUPS Software Programming Manual
|
||||
<LI>CUPS-SSR-1.1: CUPS Software Security Report
|
||||
<LI>CUPS-STP-1.1: CUPS Software Test Plan
|
||||
<LI>CUPS-SUM-1.1.x: CUPS Software Users Manual
|
||||
@@ -22,21 +22,19 @@
|
||||
<P>The following non-CUPS documents are referenced by this document:
|
||||
|
||||
<UL>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/5003.PPD_Spec_v4.3.pdf">Adobe
|
||||
PostScript Printer Description File Format Specification,
|
||||
Version 4.3.</A>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/PLRM.pdf">Adobe
|
||||
PostScript Language Reference, Third Edition.</A>
|
||||
<LI>Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3.
|
||||
<LI>Adobe PostScript Language Reference, Third Edition.
|
||||
<LI>IPP: Job and Printer Set Operations
|
||||
<LI>IPP/1.1: Encoding and Transport
|
||||
<LI>IPP/1.1: Implementers Guide
|
||||
<LI>IPP/1.1: Model and Semantics
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc1179.txt">RFC 1179, Line Printer Daemon Protocol</A>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2567.txt">RFC 2567, Design Goals for an Internet Printing Protocol</A>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2568.txt">RFC 2568, Rationale for the Structure of the Model and Protocol</A>
|
||||
for the Internet Printing Protocol</A>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2569.txt">RFC 2569, Mapping between LPD and IPP Protocols</A>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1</A>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2617.txt">RFC 2617, HTTP Authentication: Basic and Digest Access</A>
|
||||
<LI>RFC 1179, Line Printer Daemon Protocol
|
||||
<LI>RFC 2567, Design Goals for an Internet Printing Protocol
|
||||
<LI>RFC 2568, Rationale for the Structure of the Model and Protocol
|
||||
for the Internet Printing Protocol
|
||||
<LI>RFC 2569, Mapping between LPD and IPP Protocols
|
||||
<LI>RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1
|
||||
<LI>RFC 2617, HTTP Authentication: Basic and Digest Access
|
||||
Authentication
|
||||
</UL>
|
||||
|
||||
+118
-269
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> CUPS Software Administrators Manual</TITLE>
|
||||
<TITLE>CUPS Software Administrators Manual</TITLE>
|
||||
<META NAME="AUTHOR" CONTENT="Easy Software Products">
|
||||
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
|
||||
<META NAME="DOCNUMBER" CONTENT="CUPS-SAM-1.1">
|
||||
@@ -20,8 +20,8 @@ PRE { font-size: 9.0pt }
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#ffffff">
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0" WIDTH="100%"><BR>
|
||||
<H1> CUPS Software Administrators Manual</H1></A><BR>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0"><BR>
|
||||
<H1>CUPS Software Administrators Manual</H1></A><BR>
|
||||
CUPS-SAM-1.1<BR>
|
||||
Easy Software Products<BR>
|
||||
Copyright 1997-2000, All Rights Reserved<BR>
|
||||
@@ -102,9 +102,8 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
<B><A HREF="#PRINTING_MANAGEMENT">6 - Printing System Management</A></B>
|
||||
<UL>
|
||||
<LI><A HREF="#7_1">The Basics</A></LI>
|
||||
<LI><A HREF="#RESTARTING">Restarting the CUPS Server</A></LI>
|
||||
<LI><A HREF="#7_3">Changing the Server Configuration</A></LI>
|
||||
<LI><A HREF="#7_4">Server Directives</A></LI>
|
||||
<LI><A HREF="#7_2">Changing the Server Configuration</A></LI>
|
||||
<LI><A HREF="#7_3">Server Directives</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#AccessLog">AccessLog</A></LI>
|
||||
<LI><A HREF="#Allow">Allow</A></LI>
|
||||
@@ -119,10 +118,8 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
<LI><A HREF="#BrowsePoll">BrowsePoll</A></LI>
|
||||
<LI><A HREF="#BrowsePort">BrowsePort</A></LI>
|
||||
<LI><A HREF="#BrowseRelay">BrowseRelay</A></LI>
|
||||
<LI><A HREF="#BrowseShortNames">BrowseShortNames</A></LI>
|
||||
<LI><A HREF="#BrowseTimeout">BrowseTimeout</A></LI>
|
||||
<LI><A HREF="#Browsing">Browsing</A></LI>
|
||||
<LI><A HREF="#DataDir">DataDir</A></LI>
|
||||
<LI><A HREF="#DefaultCharset">DefaultCharset</A></LI>
|
||||
<LI><A HREF="#DefaultLanguage">DefaultLanguage</A></LI>
|
||||
<LI><A HREF="#Deny">Deny</A></LI>
|
||||
@@ -159,23 +156,23 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
<LI><A HREF="#PRINTING_SECURITY">Printing System Security</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#CERTIFICATES">Authentication Using Certificates</A></LI>
|
||||
<LI><A HREF="#7_5_2">Using Basic Authentication</A></LI>
|
||||
<LI><A HREF="#7_5_3">Using Digest Authentication</A></LI>
|
||||
<LI><A HREF="#7_5_4">System and Group Authentication</A></LI>
|
||||
<LI><A HREF="#7_4_2">Using Basic Authentication</A></LI>
|
||||
<LI><A HREF="#7_4_3">Using Digest Authentication</A></LI>
|
||||
<LI><A HREF="#7_4_4">System and Group Authentication</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#PRINTER_ACCOUNTING">Printer Accounting</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_6_1">The access_log File</A></LI>
|
||||
<LI><A HREF="#7_6_2">The error_log File</A></LI>
|
||||
<LI><A HREF="#7_6_3">The page_log File</A></LI>
|
||||
<LI><A HREF="#7_5_1">The access_log File</A></LI>
|
||||
<LI><A HREF="#7_5_2">The error_log File</A></LI>
|
||||
<LI><A HREF="#7_5_3">The page_log File</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#FILE_TYPING_FILTERING">File Typing and Filtering</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#7_7_1">mime.types</A></LI>
|
||||
<LI><A HREF="#7_7_2">mime.convs</A></LI>
|
||||
<LI><A HREF="#7_7_3">Adding Filetypes and Filters</A></LI>
|
||||
<LI><A HREF="#7_7_4">Printer Drivers and PPD Files</A></LI>
|
||||
<LI><A HREF="#7_7_5">Writing Your Own Filter or Printer Driver</A></LI>
|
||||
<LI><A HREF="#7_6_1">mime.types</A></LI>
|
||||
<LI><A HREF="#7_6_2">mime.convs</A></LI>
|
||||
<LI><A HREF="#7_6_3">Adding Filetypes and Filters</A></LI>
|
||||
<LI><A HREF="#7_6_4">Printer Drivers and PPD Files</A></LI>
|
||||
<LI><A HREF="#7_6_5">Writing Your Own Filter or Printer Driver</A></LI>
|
||||
</UL>
|
||||
</UL>
|
||||
<B><A HREF="#PRINTING_OTHER">7 - Printing with Other Systems</A></B>
|
||||
@@ -216,7 +213,6 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
<LI><A HREF="#10_2">Verifying the Printer Connection</A></LI>
|
||||
<LI><A HREF="#10_3">Common Network Interface Settings</A></LI>
|
||||
<LI><A HREF="#AXIS">Configuring Axis Print Servers</A></LI>
|
||||
<LI><A HREF="#LINKSYS">Configuring Linksys Print Servers</A></LI>
|
||||
</UL>
|
||||
<B><A HREF="#PRINTER_DRIVERS">C - Printer Drivers</A></B>
|
||||
<UL>
|
||||
@@ -289,12 +285,12 @@ and their meanings and uses are explained below:
|
||||
<TR><TH>Example</TH><TD> </TD><TH>Description</TH></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR VALIGN="TOP"><TD><CODE>lpstat</CODE>
|
||||
<BR><CODE> lpstat(1)</CODE></TD><TD> </TD><TD>The names of commands;
|
||||
<BR><CODE>lpstat(1)</CODE></TD><TD> </TD><TD>The names of commands;
|
||||
the first mention of a command or function in a chapter is followed by
|
||||
a manual page section number.</TD></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR VALIGN="TOP"><TD><VAR>/var</VAR>
|
||||
<BR><VAR> /usr/share/cups/data/testprint.ps</VAR></TD><TD> </TD><TD>
|
||||
<BR><VAR>/usr/share/cups/data/testprint.ps</VAR></TD><TD> </TD><TD>
|
||||
File and directory names.</TD></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR VALIGN="TOP"><TD NOWRAP><TT>Request ID is Printer-123</TT></TD><TD>
|
||||
@@ -447,7 +443,7 @@ Binary Distribution</A>. </P>
|
||||
<P>This section describes how to compile and install CUPS on your
|
||||
system from the source code. </P>
|
||||
<H3><A NAME="REQUIREMENTS">Requirements</A></H3>
|
||||
<P>You'll need ANSI-compliant C and C++ compilers to build CUPS on your
|
||||
<P>You'll need an ANSI-compliant C compiler to build CUPS on your
|
||||
system. As its name implies, CUPS is designed to run on the UNIX
|
||||
operating system, however the CUPS interface library and most of the
|
||||
filters and backends supplied with CUPS should also compile and run
|
||||
@@ -496,23 +492,12 @@ another location: </P>
|
||||
</UL>
|
||||
<P>If the PNG, JPEG, TIFF, and ZLIB libraries are not installed in a
|
||||
system default location (typically <VAR>/usr/include</VAR> and <VAR>
|
||||
/usr/lib</VAR>) you'll need to set the <CODE>CFLAGS</CODE>, <CODE>
|
||||
CXXFLAGS</CODE>, and <CODE>LDFLAGS</CODE> environment variables prior
|
||||
to running configure: </P>
|
||||
/usr/lib</VAR>) you'll need to set the <CODE>CFLAGS</CODE> and <CODE>
|
||||
LDFLAGS</CODE> environment variables prior to running configure: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
<B>setenv CFLAGS "-I/some/directory" ENTER</B>
|
||||
<B>setenv CXXFLAGS "-I/some/directory" ENTER</B>
|
||||
<B>setenv LDFLAGS "-L/some/directory" ENTER</B>
|
||||
<B>./configure ... ENTER</B>
|
||||
</PRE>
|
||||
</UL>
|
||||
<P>or: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
<B>CFLAGS="-I/some/directory"; export CFLAGS ENTER</B>
|
||||
<B>CXXFLAGS="-I/some/directory"; export CXXFLAGS ENTER</B>
|
||||
<B>LDFLAGS="-L/some/directory"; export LDFLAGS ENTER</B>
|
||||
<B>setenv CFLAGS "-I/some/directory"</B>
|
||||
<B>setenv LDFLAGS "-L/some/directory"</B>
|
||||
<B>./configure ... ENTER</B>
|
||||
</PRE>
|
||||
</UL>
|
||||
@@ -534,11 +519,11 @@ to running configure: </P>
|
||||
</UL>
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> WARNING:</B>
|
||||
<TR><TD><B>WARNING:</B>
|
||||
<P>Installing CUPS will overwrite your existing printing system. If
|
||||
you experience difficulties with the CUPS software and need to go back
|
||||
to your old printing system, you will need to reinstall the old
|
||||
printing system from your operating system CDs. </P>
|
||||
to your old printing system, you will need to reinstall the printing
|
||||
system from your operating system CDs. </P>
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
</CENTER>
|
||||
@@ -561,11 +546,11 @@ available for all platforms, while the RPM and DPKG distributions are
|
||||
only available for Linux.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> WARNING:</B>
|
||||
<TR><TD><B>WARNING:</B>
|
||||
<P>Installing CUPS will overwrite your existing printing system. If
|
||||
you experience difficulties with the CUPS software and need to go back
|
||||
to your old printing system, you will need to remove the CUPS software
|
||||
with the provided script and/or reinstall the old printing system from
|
||||
with the provided script and/or reinstall the printing system from
|
||||
your operating system CDs. </P>
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
@@ -581,9 +566,7 @@ Once you are the root user, run the installation script with: </P>
|
||||
</PRE>
|
||||
</UL>
|
||||
<P>After asking you a few yes/no questions the CUPS software will be
|
||||
installed and the scheduler will be started automatically.
|
||||
<!-- NEED 2in ---->
|
||||
</P>
|
||||
installed and the scheduler will be started automatically. </P>
|
||||
<H3><A NAME="RPM-BINARY">Installing an RPM Distribution</A></H3>
|
||||
<P>To install the CUPS software from an RPM distribution you will need
|
||||
to be logged in as root; doing an <CODE>su</CODE> is good enough. Once
|
||||
@@ -625,7 +608,7 @@ uses a device URI of <CODE>parallel:/dev/lp1</CODE>.
|
||||
<!-- NEED 2.5in ---->
|
||||
</P>
|
||||
<P>You can see a complete list of supported devices by running the <CODE>
|
||||
lpinfo(8)</CODE> command: </P>
|
||||
lpinfo(1m)</CODE> command: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
<B>lpinfo -v ENTER</B>
|
||||
@@ -637,7 +620,7 @@ network lpd
|
||||
direct parallel:/dev/lp1
|
||||
serial serial:/dev/ttyS1?baud=115200
|
||||
serial serial:/dev/ttyS2?baud=115200
|
||||
direct usb:/dev/usb/lp0
|
||||
direct usb:/dev/usb/usblp0
|
||||
network smb
|
||||
</PRE>
|
||||
</UL>
|
||||
@@ -656,7 +639,7 @@ files for HP LaserJet, HP DeskJet, EPSON 9-pin, EPSON 24-pin, and EPSON
|
||||
Stylus printers. </P>
|
||||
<H2><A NAME="4_2">Adding Your First Printer</A></H2>
|
||||
<P>CUPS provides two methods for adding printers: a command-line
|
||||
program called <CODE>lpadmin(8)</CODE> and a Web interface. The <CODE>
|
||||
program called <CODE>lpadmin(1m)</CODE> and a Web interface. The <CODE>
|
||||
lpadmin</CODE> command allows you to perform most printer
|
||||
administration tasks from the command-line and is located in <VAR>
|
||||
/usr/sbin</VAR>. The Web interface is located at: </P>
|
||||
@@ -733,9 +716,9 @@ filtering is disabled when using an interface script, scripts
|
||||
printer. </DD>
|
||||
<DT>-m <I>model</I></DT>
|
||||
<DD>Specifies a standard printer driver which is usually a PPD file. A
|
||||
list of all available models can be displayed using the <CODE> lpinfo</CODE>
|
||||
list of all available models can be displayed using the <CODE>lpinfo</CODE>
|
||||
command with the <CODE>-m</CODE> option. A list of printer drivers
|
||||
included with CUPS can be found in <A HREF="#PRINTER_DRIVERS"> Appendix
|
||||
included with CUPS can be found in <A HREF="#PRINTER_DRIVERS">Appendix
|
||||
C, "Printer Drivers"</A>. </DD>
|
||||
<DT>-r <I>class</I></DT>
|
||||
<DD>Removes the named printer from printer class <VAR>class. If the
|
||||
@@ -749,7 +732,7 @@ and sent to the new device. </DD>
|
||||
Personal Printer". </DD>
|
||||
<DT>-E </DT>
|
||||
<DD>Enables the printer and accepts job. This option is equivalent to
|
||||
running the <CODE>enable(1)</CODE> and <CODE> accept(8)</CODE> commands
|
||||
running the <CODE>enable(1)</CODE> and <CODE>accept(1m)</CODE> commands
|
||||
on the printer. </DD>
|
||||
<DT>-L <I>location</I></DT>
|
||||
<DD>Provides a textual location for the printer, e.g. "Computer Lab
|
||||
@@ -901,8 +884,8 @@ jobs to a single server. However, if that server goes down then all
|
||||
printing will be disabled. Use this configuration only as absolutely
|
||||
needed. </P>
|
||||
<P>The default server is normally "localhost". To override the default
|
||||
server create a file named <VAR>/etc/cups/client.conf</VAR> and add a
|
||||
line reading: </P>
|
||||
server create a file named <VAR>/etc/cups/conf/client.conf</VAR> and
|
||||
add a line reading: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
ServerName <I>server</I>
|
||||
@@ -918,8 +901,8 @@ add a line reading: </P>
|
||||
ServerName <I>server</I>
|
||||
</PRE>
|
||||
</UL>
|
||||
<P>to the file. The <VAR>server</VAR> name can be the hostname or IP
|
||||
address of the default server. </P>
|
||||
<P>to the file. As before the <VAR>server</VAR> name can be the
|
||||
hostname or IP address of the default server. </P>
|
||||
<H3><A NAME="CLIENT_AUTO">Automatic Configuration of Print Queues</A></H3>
|
||||
<P>CUPS supports automatic client configuration of printers on the same
|
||||
subnet. To configure printers on the same subnet, <I>do nothing</I>.
|
||||
@@ -950,7 +933,7 @@ configuration files are located in the <VAR>/etc/cups</VAR> directory: </P>
|
||||
|
||||
<DT>classes.conf </DT>
|
||||
<DD>This file contains information on each printer class. Normally you
|
||||
manipulate this file using the <CODE> lpadmin</CODE> command or the Web
|
||||
manipulate this file using the <CODE>lpadmin</CODE> command or the Web
|
||||
interface.
|
||||
<BR>
|
||||
<!-- NEED 1in ---->
|
||||
@@ -987,7 +970,6 @@ Interface.
|
||||
<BR> </DD>
|
||||
</DL>
|
||||
</UL>
|
||||
<H2><A NAME="RESTARTING">Restarting the CUPS Server</A></H2>
|
||||
<P>Once you have made a change to a configuration file you need to
|
||||
restart the CUPS server by sending it a <CODE>HUP</CODE> signal or
|
||||
using the supplied initialization script. The CUPS distributions
|
||||
@@ -1000,16 +982,17 @@ cups</VAR>. The location varies based upon the operating system: </P>
|
||||
<B>/sbin/init.d/cups restart ENTER</B>
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="7_3">Changing the Server Configuration</A></H2>
|
||||
<H2><A NAME="7_2">Changing the Server Configuration</A></H2>
|
||||
<P>The <VAR>/etc/cups/cupsd.conf</VAR> file contains configuration <I>
|
||||
directives</I> that control how the server functions. Each directive is
|
||||
listed on a line by itself followed by its value. Comments are
|
||||
introduced using the number sign ("#") character at the beginning of a
|
||||
line. Since the server configuration file consists of plain text, you
|
||||
can use your favorite text editor to make changes to it.
|
||||
line. </P>
|
||||
<P>Since the server configuration file consists of plain text, you can
|
||||
use your favorite text editor to make changes to it.
|
||||
<!-- NEED 4in ---->
|
||||
</P>
|
||||
<H2><A NAME="7_4">Server Directives</A></H2>
|
||||
<H2><A NAME="7_3">Server Directives</A></H2>
|
||||
<P>The <VAR>cupsd.conf</VAR> file contains many directives that
|
||||
determine how the server operates: </P>
|
||||
<UL>
|
||||
@@ -1028,12 +1011,10 @@ determine how the server operates: </P>
|
||||
<LI><A HREF="#BrowsePoll"><CODE>BrowsePoll</CODE></A></LI>
|
||||
<LI><A HREF="#BrowsePort"><CODE>BrowsePort</CODE></A></LI>
|
||||
<LI><A HREF="#BrowseRelay"><CODE>BrowseRelay</CODE></A></LI>
|
||||
<LI><A HREF="#BrowseShortNames"><CODE>BrowseShortNames</CODE></A></LI>
|
||||
<LI><A HREF="#BrowseTimeout"><CODE>BrowseTimeout</CODE></A></LI>
|
||||
<LI><A HREF="#Browsing"><CODE>Browsing</CODE></A></LI>
|
||||
<LI><A HREF="#DataDir"><CODE>DataDir</CODE></A></LI>
|
||||
</TD><TD VALIGN="TOP"> </TD><TD VALIGN="TOP">
|
||||
<LI><A HREF="#DefaultCharset"><CODE>DefaultCharset</CODE></A></LI>
|
||||
</TD><TD VALIGN="TOP"> </TD><TD VALIGN="TOP">
|
||||
<LI><A HREF="#DefaultLanguage"><CODE>DefaultLanguage</CODE></A></LI>
|
||||
<LI><A HREF="#Deny"><CODE>Deny</CODE></A></LI>
|
||||
<LI><A HREF="#DocumentRoot"><CODE>DocumentRoot</CODE></A></LI>
|
||||
@@ -1049,8 +1030,8 @@ determine how the server operates: </P>
|
||||
<LI><A HREF="#MaxClients"><CODE>MaxClients</CODE></A></LI>
|
||||
<LI><A HREF="#MaxLogSize"><CODE>MaxLogSize</CODE></A></LI>
|
||||
<LI><A HREF="#MaxRequestSize"><CODE>MaxRequestSize</CODE></A></LI>
|
||||
</TD><TD VALIGN="TOP"> </TD><TD VALIGN="TOP">
|
||||
<LI><A HREF="#Order"><CODE>Order</CODE></A></LI>
|
||||
</TD><TD VALIGN="TOP"> </TD><TD VALIGN="TOP">
|
||||
<LI><A HREF="#PageLog"><CODE>PageLog</CODE></A></LI>
|
||||
<LI><A HREF="#Port"><CODE>Port</CODE></A></LI>
|
||||
<LI><A HREF="#PreserveJobFiles"><CODE>PreserveJobFiles</CODE></A></LI>
|
||||
@@ -1077,7 +1058,6 @@ determine how the server operates: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
AccessLog /var/log/cups/access_log
|
||||
AccessLog /var/log/cups/access_log-%s
|
||||
AccessLog syslog
|
||||
</PRE>
|
||||
</UL>
|
||||
@@ -1087,12 +1067,10 @@ file. If the filename is not absolute then it is assumed to be relative
|
||||
to the <A HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
|
||||
access log file is stored in "common log format" and can be used by any
|
||||
web access reporting tool to generate a report on CUPS server activity. </P>
|
||||
<P>The server name can be included in the filename by using <CODE>%s</CODE>
|
||||
in the name. </P>
|
||||
<P>The special name "syslog" can be used to send the access information
|
||||
to the system log instead of a plain file. </P>
|
||||
<P>The default access log file is <VAR>/var/log/cups/access_log</VAR>.
|
||||
<!-- NEED 6in ---->
|
||||
<!-- NEED 5in ---->
|
||||
</P>
|
||||
<H3><A NAME="Allow">Allow</A></H3>
|
||||
<HR>
|
||||
@@ -1114,7 +1092,7 @@ Allow from nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
|
||||
</UL>
|
||||
<H4>Description</H4>
|
||||
<P>The <CODE>Allow</CODE> directive specifies a hostname, IP address,
|
||||
or network that is allowed access to the server. <CODE> Allow</CODE>
|
||||
or network that is allowed access to the server. <CODE>Allow</CODE>
|
||||
directives are cummulative, so multiple <CODE>Allow</CODE> directives
|
||||
can be used to allow access for multiple hosts or networks. The <CODE>
|
||||
/mm</CODE> notation specifies a CIDR netmask:
|
||||
@@ -1157,7 +1135,7 @@ authentication is required: </P>
|
||||
<LI><CODE>User</CODE> - A valid username and password is required. </LI>
|
||||
<LI><CODE>System</CODE> - A valid username and password is required,
|
||||
and the username must belong to the "sys" group; this can be changed
|
||||
using the <A HREF="#SystemGroup"><CODE> SystemGroup</CODE></A>
|
||||
using the <A HREF="#SystemGroup"><CODE>SystemGroup</CODE></A>
|
||||
directive. </LI>
|
||||
<LI><CODE>Group</CODE> - A valid username and password is required,
|
||||
and the username must belong to the group named by the <CODE>
|
||||
@@ -1230,7 +1208,7 @@ networks or systems. </P>
|
||||
broadcast the information to all networks the server is connected to.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>If you are using HP-UX 10.20 and a subnet that is not 24, 16, or 8
|
||||
bits, printer browsing (and in fact all broadcast reception) will not
|
||||
work. This problem appears to be fixed in HP-UX 11.0. </P>
|
||||
@@ -1362,7 +1340,7 @@ BrowsePort 9999
|
||||
used for browse packets. The default port number is 631.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>You must set the <CODE>BrowsePort</CODE> to the same value on all
|
||||
of the systems that you want to see. </P>
|
||||
</TD></TR>
|
||||
@@ -1400,24 +1378,6 @@ BrowseRelay 127.0.0.1 255.255.255.255
|
||||
clients on the LAN(s).
|
||||
<!-- NEED 3in ---->
|
||||
</P>
|
||||
<H3><A NAME="BrowseShortNames">BrowseShortNames</A></H3>
|
||||
<HR>
|
||||
<H4>Examples</H4>
|
||||
<UL>
|
||||
<PRE>
|
||||
BrowseShortNames Yes
|
||||
BrowseShortNames No
|
||||
</PRE>
|
||||
</UL>
|
||||
<H4>Description</H4>
|
||||
<P>The <CODE>BrowseShortNames</CODE> directive specifies whether or not
|
||||
short names are used for remote printers when possible. Short names are
|
||||
just the remote printer name, without the server ("printer"). If more
|
||||
than one remote printer is detected with the same name, the printers
|
||||
will have long names ("printer@server1", "printer@server2".) </P>
|
||||
<P>The default value for this option is <CODE>Yes</CODE>.
|
||||
<!-- NEED 3in ---->
|
||||
</P>
|
||||
<H3><A NAME="BrowseTimeout">BrowseTimeout</A></H3>
|
||||
<HR>
|
||||
<H4>Examples</H4>
|
||||
@@ -1436,7 +1396,7 @@ destinations. </P>
|
||||
the <A HREF="#BrowseInterval"><CODE>BrowseInterval</CODE></A> value.
|
||||
Otherwise printers and classes will disappear from client systems
|
||||
between updates.
|
||||
<!-- NEED 4in ---->
|
||||
<!-- NEED 3in ---->
|
||||
</P>
|
||||
<H3><A NAME="Browsing">Browsing</A></H3>
|
||||
<HR>
|
||||
@@ -1452,7 +1412,7 @@ Browsing Off
|
||||
printer browsing is enabled. The default setting is <CODE>On</CODE>.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>If you are using HP-UX 10.20 and a subnet that is not 24, 16, or 8
|
||||
bits, printer browsing (and in fact all broadcast reception) will not
|
||||
work. This problem appears to be fixed in HP-UX 11.0. </P>
|
||||
@@ -1460,19 +1420,6 @@ work. This problem appears to be fixed in HP-UX 11.0. </P>
|
||||
</TABLE>
|
||||
</CENTER>
|
||||
|
||||
<!-- NEED 3in ---->
|
||||
</P>
|
||||
<H3><A NAME="DataDir">DataDir</A></H3>
|
||||
<HR>
|
||||
<H4>Examples</H4>
|
||||
<UL>
|
||||
<PRE>
|
||||
DataDir /usr/share/cups
|
||||
</PRE>
|
||||
</UL>
|
||||
<H4>Description</H4>
|
||||
<P>The <CODE>DataDir</CODE> directive sets the directory to use for
|
||||
data files.
|
||||
<!-- NEED 3in ---->
|
||||
</P>
|
||||
<H3><A NAME="DefaultCharset">DefaultCharset</A></H3>
|
||||
@@ -1582,7 +1529,6 @@ content by providing subdirectories for each language needed.
|
||||
<UL>
|
||||
<PRE>
|
||||
ErrorLog /var/log/cups/error_log
|
||||
ErrorLog /var/log/cups/error_log-%s
|
||||
ErrorLog syslog
|
||||
</PRE>
|
||||
</UL>
|
||||
@@ -1591,8 +1537,6 @@ ErrorLog syslog
|
||||
file. If the filename is not absolute then it is assumed to be relative
|
||||
to the <A HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
|
||||
default error log file is <VAR>/var/log/cups/error_log</VAR>. </P>
|
||||
<P>The server name can be included in the filename by using <CODE>%s</CODE>
|
||||
in the name. </P>
|
||||
<P>The special name "syslog" can be used to send the error information
|
||||
to the system log instead of a plain file.
|
||||
<!-- NEED 3in ---->
|
||||
@@ -1764,9 +1708,9 @@ simultaneous clients that will be allowed by the server. The default is
|
||||
100 clients.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>Since each print job requires a file descriptor for the status
|
||||
pipe, the CUPS server internally limits the <CODE> MaxClients</CODE>
|
||||
pipe, the CUPS server internally limits the <CODE>MaxClients</CODE>
|
||||
value to 1/3 of the available file descriptors to avoid possible
|
||||
problems when printing large numbers of jobs. </P>
|
||||
</TD></TR>
|
||||
@@ -1837,7 +1781,6 @@ an <CODE>Allow</CODE> directive. </LI>
|
||||
<UL>
|
||||
<PRE>
|
||||
PageLog /var/log/cups/page_log
|
||||
PageLog /var/log/cups/page_log-%s
|
||||
PageLog syslog
|
||||
</PRE>
|
||||
</UL>
|
||||
@@ -1846,8 +1789,6 @@ PageLog syslog
|
||||
file. If the filename is not absolute then it is assumed to be relative
|
||||
to the <A HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
|
||||
default page log file is <VAR>/var/log/cups/page_log</VAR>. </P>
|
||||
<P>The server name can be included in the filename by using <CODE>%s</CODE>
|
||||
in the name. </P>
|
||||
<P>The special name "syslog" can be used to send the page information
|
||||
to the system log instead of a plain file.
|
||||
<!-- NEED 3in ---->
|
||||
@@ -2102,9 +2043,9 @@ and CGI programs run as. The default user is <CODE>lp</CODE>.
|
||||
</P>
|
||||
<H2><A NAME="PRINTING_SECURITY">Printing System Security</A></H2>
|
||||
<P>CUPS provides support for address, certificate, and password (Basic
|
||||
and Digest) based authentication and access control. Certificate and
|
||||
password authentication provide ways to limit access to individual
|
||||
people or groups. </P>
|
||||
and Digest) based authentication and access control. </P>
|
||||
<P>Certificate and password authentication provide ways to limit access
|
||||
to individual people or groups. </P>
|
||||
<P>Address based access control allows you to limit access to specific
|
||||
systems, networks, or domains. While this does not provide
|
||||
authentication, it does allow you to limit the potential users of your
|
||||
@@ -2174,13 +2115,13 @@ certificate</I> which can be used by any client running as the
|
||||
super-user or another user that is part of the group defined by the <A HREF="#SystemGroup">
|
||||
<CODE>SystemGroup</CODE></A> directive. The root certificate is
|
||||
automatically regenerated every 5 minutes. </P>
|
||||
<H3><A NAME="7_5_2">Using Basic Authentication</A></H3>
|
||||
<H3><A NAME="7_4_2">Using Basic Authentication</A></H3>
|
||||
<P>Basic authentication uses UNIX users and passwords to authenticate
|
||||
access to resources such as printers and classes, and to limit access
|
||||
to administrative functions.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>Basic authentication sends the username and password Base64 encoded
|
||||
from the client to the server, so it offers no protection against
|
||||
eavesdropping. This means that a malicious user can monitor network
|
||||
@@ -2199,7 +2140,7 @@ immediately blocked. </P>
|
||||
additional group membership requirements are checked.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>The root user is considered by CUPS to be a member of every group. </P>
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
@@ -2214,16 +2155,14 @@ authentication: </P>
|
||||
AuthType Basic
|
||||
</PRE>
|
||||
</UL>
|
||||
|
||||
<!-- NEED 7in ---->
|
||||
<H3><A NAME="7_5_3">Using Digest Authentication</A></H3>
|
||||
<H3><A NAME="7_4_3">Using Digest Authentication</A></H3>
|
||||
<P>Digest authentication uses users and passwords defined in the <VAR>
|
||||
/etc/cups/passwd.md5</VAR> file to authenticate access to resources
|
||||
such as printers and classes, and to limit access to administrative
|
||||
functions.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>Unlike Basic authentication, Digest passes the MD5 sum (basically a
|
||||
complicated checksum) of the username and password instead of the
|
||||
strings themselves. Also, Digest authentication does not use the UNIX
|
||||
@@ -2283,7 +2222,7 @@ Password again: <B>(password) ENTER</B> [password is not echoed]
|
||||
additional group membership requirements are checked.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>The root user is considered by CUPS to be a member of every group. </P>
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
@@ -2296,7 +2235,7 @@ authentication: </P>
|
||||
AuthType Digest
|
||||
</PRE>
|
||||
</UL>
|
||||
<H3><A NAME="7_5_4">System and Group Authentication</A></H3>
|
||||
<H3><A NAME="7_4_4">System and Group Authentication</A></H3>
|
||||
<P>The <A HREF="#AuthClass"><CODE>AuthClass</CODE></A> directive
|
||||
controls the level of authentication to perform. <CODE>System</CODE>
|
||||
and <CODE>Group</CODE> authentication extend the normal user-based
|
||||
@@ -2334,7 +2273,7 @@ Password again: <B>(password) ENTER</B> [password is not echoed]
|
||||
<P>The log files are normally stored in the <VAR>/var/log/cups</VAR>
|
||||
directory. You can change this by editing the <VAR>/etc/cups/cupsd.conf</VAR>
|
||||
configuration file. </P>
|
||||
<H3><A NAME="7_6_1">The access_log File</A></H3>
|
||||
<H3><A NAME="7_5_1">The access_log File</A></H3>
|
||||
<P>The <VAR>access_log</VAR> file lists each HTTP resource that is
|
||||
accessed by a web browser or CUPS/IPP client. Each line is in the
|
||||
so-called "Common Log Format" used by many web servers and web
|
||||
@@ -2355,14 +2294,12 @@ have enabled the <A HREF="#HostNameLookups"><CODE>HostNameLookups</CODE></A>
|
||||
requesting user. If no username and password is supplied for the
|
||||
request then this field contains "-". </P>
|
||||
<P>The <I>date-time</I> field is the date and time of the request in
|
||||
local time and is in the format: </P>
|
||||
Greenwich Mean Time (a.k.a. ZULU) and is in the format: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
[DD/MON/YYYY:HH:MM:SS +ZZZZ]
|
||||
[DD/MON/YYYY:HH:MM:SS +0000]
|
||||
</PRE>
|
||||
</UL>
|
||||
<P>where <I>ZZZZ</I> is the timezone offset in hours and minutes from
|
||||
Greenwich Mean Time (a.k.a. GMT a.k.a. ZULU.) </P>
|
||||
<P>The <I>method</I> field is the HTTP method used ("GET", "PUT",
|
||||
"POST", etc.) </P>
|
||||
<P>The <I>resource</I> field is the filename of the requested resource. </P>
|
||||
@@ -2374,8 +2311,8 @@ For example, 401 is the "unauthorized access" status in the example
|
||||
above. </P>
|
||||
<P>The <I>bytes</I> field contains the number of bytes in the request.
|
||||
For POST requests the <I>bytes</I> field contains the number of bytes
|
||||
that was received from the client. </P>
|
||||
<H3><A NAME="7_6_2">The error_log File</A></H3>
|
||||
of non-IPP data that is received from the client. </P>
|
||||
<H3><A NAME="7_5_2">The error_log File</A></H3>
|
||||
<P>The <VAR>error_log</VAR> file lists messages from the scheduler
|
||||
(errors, warnings, etc.): </P>
|
||||
<UL>
|
||||
@@ -2398,7 +2335,7 @@ I [20/May/1999:19:22:24 +0000] Job 2 was cancelled by 'mike'.
|
||||
page started printing. The format of this field is identical to the <I>
|
||||
data-time</I> field in the <VAR>access_log</VAR> file. </P>
|
||||
<P>The <I>message</I> fields contains a free-form textual message. </P>
|
||||
<H3><A NAME="7_6_3">The page_log File</A></H3>
|
||||
<H3><A NAME="7_5_3">The page_log File</A></H3>
|
||||
<P>The <VAR>page_log</VAR> file lists each page that is sent to a
|
||||
printer. Each line contains the following information: </P>
|
||||
<UL>
|
||||
@@ -2439,7 +2376,7 @@ database in memory. These database files are plain ASCII text and can
|
||||
be edited with your favorite text editor. </P>
|
||||
<P>The <VAR>mime.types</VAR> and <VAR>mime.convs</VAR> files define the
|
||||
standard file types and filters that are available on the system. </P>
|
||||
<H3><A NAME="7_7_1">mime.types</A></H3>
|
||||
<H3><A NAME="7_6_1">mime.types</A></H3>
|
||||
<P>The <VAR>mime.types</VAR> file defines the known file types. Each
|
||||
line of the file starts with the MIME type and may be followed by one
|
||||
or more file type recognition rules. For example, the <CODE>text/html</CODE>
|
||||
@@ -2517,7 +2454,7 @@ image/jpeg jpeg jpg jpe string(0,<FFD8FF>) &&\
|
||||
file starting with the hexadecimal string <CODE><FFD8FF></CODE> (JPEG
|
||||
Start-Of-Image) followed by a character between and including <CODE>0xe0</CODE>
|
||||
and <CODE>0xef</CODE> (JPEG APPn markers) is also a JPEG file. </P>
|
||||
<H3><A NAME="7_7_2">mime.convs</A></H3>
|
||||
<H3><A NAME="7_6_2">mime.convs</A></H3>
|
||||
<P>The <VAR>mime.convs</VAR> file defines all of the filter programs
|
||||
that are known to the system. Each line consists of: </P>
|
||||
<UL>
|
||||
@@ -2557,7 +2494,7 @@ when filtering, otherwise the filter must read from the standard input.
|
||||
All filtered output must go to the standard output.
|
||||
<!-- NEED 4in ---->
|
||||
</P>
|
||||
<H3><A NAME="7_7_3">Adding Filetypes and Filters</A></H3>
|
||||
<H3><A NAME="7_6_3">Adding Filetypes and Filters</A></H3>
|
||||
<P>Adding a new file type or filter is fairly straight-forward. Rather
|
||||
than adding the new type and filter to the <VAR>mime.types</VAR> and <VAR>
|
||||
mime.convs</VAR> files which are overwritten when you upgrade to a new
|
||||
@@ -2583,9 +2520,9 @@ different file types and filters. </P>
|
||||
<P>Once you choose the names for these files, create them using your
|
||||
favorite text editor as described earlier in this chapter. Once you
|
||||
have created the files, restart the <CODE>cupsd</CODE> process as
|
||||
described earlier in <A HREF="#RESTARTING">"Restarting the CUPS Server"</A>
|
||||
. </P>
|
||||
<H3><A NAME="7_7_4">Printer Drivers and PPD Files</A></H3>
|
||||
described in <A HREF="#PRINTING_MANAGEMENT">Chapter N, "Printing System
|
||||
Configuration"</A>. </P>
|
||||
<H3><A NAME="7_6_4">Printer Drivers and PPD Files</A></H3>
|
||||
<P>Most CUPS printer drivers utilize one or more printer-specific
|
||||
filters and a PPD file for each printer model. Printer driver filters
|
||||
are registered via the PPD file using <CODE>cupsFilter</CODE>
|
||||
@@ -2598,7 +2535,7 @@ are registered via the PPD file using <CODE>cupsFilter</CODE>
|
||||
<P>The filter is specified using the source file type only; the
|
||||
destination file type is assumed to be <CODE>printer/name</CODE> -
|
||||
suitable for sending to the printer. </P>
|
||||
<H3><A NAME="7_7_5">Writing Your Own Filter or Printer Driver</A></H3>
|
||||
<H3><A NAME="7_6_5">Writing Your Own Filter or Printer Driver</A></H3>
|
||||
<P>CUPS supports an unlimited number of file formats and filters, and
|
||||
can handle any printer. If you'd like to write a filter or printer
|
||||
driver for your favorite file format or printer, consult the CUPS
|
||||
@@ -2619,7 +2556,7 @@ you can print files to specific printers, list the queue status, and so
|
||||
forth. However, the automatic client configuration and printer options
|
||||
are not supported by the LPD protocol, so you must manually configure
|
||||
each client for the printers it needs to access. </P>
|
||||
<P>The <CODE>cups-lpd(8)</CODE> program provides support for LPD
|
||||
<P>The <CODE>cups-lpd(1m)</CODE> program provides support for LPD
|
||||
clients. To enable LPD support on your server, edit the <VAR>
|
||||
/etc/inetd.conf</VAR> file and add a line reading: </P>
|
||||
<UL>
|
||||
@@ -2629,13 +2566,13 @@ printer stream tcp nowait lp /usr/lib/cups/daemon/cups-lpd cups-lpd
|
||||
</UL>
|
||||
<P>The path to the <CODE>cups-lpd</CODE> may vary depending on your
|
||||
installation. </P>
|
||||
<P>Once you have added this line, send the <CODE>inetd(8)</CODE>
|
||||
<P>Once you have added this line, send the <CODE>inetd(1m)</CODE>
|
||||
process a <CODE>HUP</CODE> signal or reboot the system: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
<B>killall -HUP inetd ENTER</B> [IRIX and some versions of Linux]
|
||||
<B>kill -HUP <I>pid</I> ENTER [Others]</B>
|
||||
<B>reboot ENTER [For all systems if the HUP signal fails]</B>
|
||||
<B>kill -HUP <I>pid</I> ENTER</B>
|
||||
<B>reboot ENTER</B>
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="8_3">Printing to LPD Servers</A></H2>
|
||||
@@ -2653,7 +2590,7 @@ the LPD protocol. </P>
|
||||
<P>CUPS does not provide Mac OS support directly. However, there are
|
||||
several free and commercial software packages that do. </P>
|
||||
<H3><A NAME="8_4_1">Columbia Appletalk Package (CAP)</A></H3>
|
||||
<P>Because the CAP LaserWriter server (<CODE>lwsrv(8)</CODE>) does not
|
||||
<P>Because the CAP LaserWriter server (<CODE>lwsrv(1m)</CODE>) does not
|
||||
support specification of PPD files, we do not recommend that you use
|
||||
CAP with CUPS. However, you can run the <CODE>lpsrv</CODE> program for
|
||||
limited printing with the command: </P>
|
||||
@@ -2668,7 +2605,7 @@ printer, and <CODE>printer</CODE> is the name of the CUPS print queue.
|
||||
</P>
|
||||
<H3><A NAME="8_4_2">XINET KA/Spool</A></H3>
|
||||
<P>To use your system as a print server for Mac OS clients, configure
|
||||
each printer using a <CODE>papserver(8)</CODE> in the <VAR>
|
||||
each printer using a <CODE>papserver(1m)</CODE> in the <VAR>
|
||||
/usr/adm/appletalk/services</VAR> file, specifying the corresponding
|
||||
PPD file in the <VAR>/etc/cups/ppd</VAR> directory for each printer.
|
||||
For a printer named <CODE>MyPrinter</CODE> the entry would look like: </P>
|
||||
@@ -2680,7 +2617,7 @@ PPD file in the <VAR>/etc/cups/ppd</VAR> directory for each printer.
|
||||
</UL>
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>Enter the text above on a single line without the backslash (\)
|
||||
character. </P>
|
||||
</TD></TR>
|
||||
@@ -2836,17 +2773,17 @@ Agreement</A></H2>
|
||||
<BR> Email: <A HREF="mailto:cups-info@cups.org">cups-info@cups.org</A>
|
||||
<BR> WWW: <A HREF="http://www.cups.org">http://www.cups.org</A></P>
|
||||
<H3><A NAME="9_1_1">Introduction</A></H3>
|
||||
<P>The Common UNIX Printing System<SUP>TM</SUP>, ("CUPS<SUP>TM</SUP>"),
|
||||
<P>The Common UNIX Printing System<SUP>TM</SUP>, or CUPS<SUP>TM</SUP>,
|
||||
is provided under the GNU General Public License ("GPL") and GNU
|
||||
Library General Public License ("LGPL"), Version 2. A copy of these
|
||||
licenses follow this introduction. </P>
|
||||
<P>The GNU LGPL applies to the CUPS API library, located in the "cups"
|
||||
subdirectory of the CUPS source distribution and in the
|
||||
"/usr/include/cups" directory and "libcups.a", "libcups.sl", or
|
||||
"libcups.so" files in the binary distributions. </P>
|
||||
"/usr/include/cups" directory and "/usr/lib/libcups.so" or
|
||||
"/usr/lib32/libcups.so" files in the binary distributions. </P>
|
||||
<P>The GNU GPL applies to the remainder of the CUPS distribution,
|
||||
including the "pstoraster" filter which is based upon GNU Ghostscript
|
||||
5.50 and the "pdftops" filter which is based upon Xpdf 0.90. </P>
|
||||
5.50. </P>
|
||||
<P>For those not familiar with the GNU GPL, the license basically
|
||||
allows you to: </P>
|
||||
<UL>
|
||||
@@ -2855,14 +2792,13 @@ allows you to: </P>
|
||||
form. </LI>
|
||||
<LI>Sell verbatim copies of the software for a media fee, or sell
|
||||
support for the software. </LI>
|
||||
<LI>Distribute or sell printer drivers and filters that use CUPS so
|
||||
long as source code is made available under the GPL. </LI>
|
||||
<LI>Distribute or sell printer drivers and filters that use the CUPS
|
||||
API so long as source code is made available under the GPL. </LI>
|
||||
</UL>
|
||||
<P>What this license <B>does not</B> allow you to do is make changes or
|
||||
add features to CUPS and then sell a binary distribution without source
|
||||
code. You must provide source for any new drivers, changes, or
|
||||
additions to the software, and all code must be provided under the GPL
|
||||
or LGPL as appropriate. </P>
|
||||
additions to the software, and all code must be provided under the GPL. </P>
|
||||
<P>The GNU LGPL relaxes the "link-to" restriction, allowing you to
|
||||
develop applications that use the CUPS API library under other licenses
|
||||
and/or conditions as appropriate for your application. </P>
|
||||
@@ -2878,26 +2814,19 @@ standards as the original. </P>
|
||||
<P>Easy Software Products also sells rights to the CUPS source code
|
||||
under a binary distribution license for vendors that are unable to
|
||||
release source code for their drivers, additions, and modifications to
|
||||
CUPS under the GNU GPL and LGPL. For information please contact us at
|
||||
CUPS under the GNU GPL. For pricing information please contact us at
|
||||
the address shown above. </P>
|
||||
<P>The Common UNIX Printing System provides a "pstoraster" filter that
|
||||
utilizes the GNU GhostScript 5.50 core to convert PostScript files into
|
||||
a stream of raster images. For binary distribution licensing of this
|
||||
software, please contact: <BLOCKQUOTE> Miles Jones
|
||||
utilizes GNU GhostScript 5.50 to convert PostScript files into a stream
|
||||
of raster images. For binary distribution licensing of this software,
|
||||
please contact: <BLOCKQUOTE>Miles Jones
|
||||
<BR> Director of Marketing
|
||||
<BR> Artifex Software Inc.
|
||||
<BR> 454 Las Gallinas Ave., Suite 108
|
||||
<BR> San Rafael, CA 94903 USA
|
||||
<BR> Voice: +1.415.492.9861
|
||||
<BR> Fax: +1.415.492.9862
|
||||
<BR> EMail: <A HREF="mailto:info@arsoft.com">info@arsoft.com</A></BLOCKQUOTE>
|
||||
</P>
|
||||
<P>The "pdftops" filter is based on the Xpdf 0.90 software. For binary
|
||||
distribution licensing of this software, please contact: <BLOCKQUOTE>
|
||||
Derek B. Noonburg
|
||||
<BR> Email: <A HREF="mailto:derekn@foolabs.com">derekn@foolabs.com</A>
|
||||
<BR> WWW: <A HREF="http://www.foolabs.com/xpdf/">
|
||||
http://www.foolabs.com/xpdf/</A></BLOCKQUOTE></P>
|
||||
<BR> EMail: info@arsoft.com </BLOCKQUOTE></P>
|
||||
<H3><A NAME="9_1_4">Support</A></H3>
|
||||
<P>Easy Software Products sells software support for CUPS as well as a
|
||||
commercial printing product based on CUPS called ESP Print Pro. You can
|
||||
@@ -3569,9 +3498,9 @@ test page or bottom of the print server.
|
||||
</P>
|
||||
<H3><A NAME="10_1_1">Configuring the IP Address Using ARP</A></H3>
|
||||
<P>The easiest way to set the IP address of a network device is to use
|
||||
the <CODE>arp(8)</CODE> command. The <CODE>arp</CODE> sends an Address
|
||||
Resolution Protocol ("ARP") packet to the specified Ethernet MAC
|
||||
address, setting the network device's IP address: </P>
|
||||
the <CODE>arp(1m)</CODE> command. The <CODE>arp</CODE> sends an
|
||||
Address Resolution Protocol ("ARP") packet to the specified Ethernet
|
||||
MAC address, setting the network device's IP address: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
<B>arp -s ip-address ethernet-address ENTER</B>
|
||||
@@ -3589,7 +3518,7 @@ packet with the IP address the device can use. </P>
|
||||
servers, or when you have a network device that does not remember its
|
||||
IP address after a power cycle. If you just have a single printer or
|
||||
print server, the <CODE>arp</CODE> command is the way to go. </P>
|
||||
<P>Some UNIX operating systems use a program called <CODE>rarpd(8)</CODE>
|
||||
<P>Some UNIX operating systems use a program called <CODE>rarpd(1m)</CODE>
|
||||
to manage RARP. Others, like Linux, support this protocol in the
|
||||
kernel. For systems that provide the <CODE>rarpd</CODE> program you
|
||||
will need to start it before RARP lookups will work: </P>
|
||||
@@ -3621,7 +3550,7 @@ server to set its address.
|
||||
<H3><A NAME="10_1_3">Configuring the IP Address Using BOOTP</A></H3>
|
||||
<P>The BOOTP protocol is used when you need to provide additional
|
||||
information such as the location of a configuration file to the network
|
||||
interface. Using the standard <CODE>bootpd(8)</CODE> program supplied
|
||||
interface. Using the standard <CODE>bootpd(1m)</CODE> program supplied
|
||||
with UNIX you simply need to add a line to the <VAR>/etc/bootptab</VAR>
|
||||
file; for IRIX: </P>
|
||||
<UL>
|
||||
@@ -3644,7 +3573,7 @@ provide a boot file you may leave the last part of the line blank.
|
||||
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>Some versions of UNIX do not enable the BOOTP service by default.
|
||||
The <VAR>/etc/inetd.conf</VAR> usually contains a line for the BOOTP
|
||||
service that can be uncommented if needed. </P>
|
||||
@@ -3691,7 +3620,7 @@ address</I>/PASSTHRU</TD></TR>
|
||||
|
||||
<!-- NEED 1in ---->
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>Axis w/o IPP
|
||||
<BR><A HREF="#AXIS"> (see directions)</A></TD><TD>socket://<I>address</I>
|
||||
<BR><A HREF="#AXIS">(see directions)</A></TD><TD>socket://<I>address</I>
|
||||
:9100
|
||||
<BR> socket://<I>address</I>:9101
|
||||
<BR> socket://<I>address</I>:9102</TD></TR>
|
||||
@@ -3713,7 +3642,7 @@ lpd://<I>address</I>/pr1
|
||||
/pr1
|
||||
<BR> lpd://<I>address</I>/pr2
|
||||
<BR> lpd://<I>address</I>/pr3</TD></TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>EFI® Fiery® RIP</TD><TD>lpd://<I>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>EFI® Fiery RIP</TD><TD>lpd://<I>
|
||||
address</I>/print</TD></TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>EPSON® Multiprotocol Ethernet
|
||||
Interface Board</TD><TD>socket://<I>address</I></TD></TR>
|
||||
@@ -3746,9 +3675,8 @@ lpd://<I>address</I>/LPT1_PASSTHRU
|
||||
lpd://<I>address</I>/ps</TD></TR>
|
||||
|
||||
<!-- NEED 1in ---->
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>Linksys EtherFast®
|
||||
<BR><A HREF="#LINKSYS"> (see directions)</A></TD><TD>socket://<I>address</I>
|
||||
:4010
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>Linksys EtherFast®</TD><TD>socket://<I>
|
||||
address</I>:4010
|
||||
<BR> socket://<I>address</I>:4020
|
||||
<BR> socket://<I>address</I>:4030</TD></TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>Kodak®</TD><TD>lpd://<I>address</I>/ps</TD>
|
||||
@@ -3757,12 +3685,8 @@ lpd://<I>address</I>/ps</TD></TR>
|
||||
lpd://<I>address</I>/ps</TD></TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>Tektronix® PhaserShare<SUP>TM</SUP></TD><TD>
|
||||
socket://<I>address</I>:9100</TD></TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>XEROX® 4512 NIC</TD><TD>lpd://<I>
|
||||
address</I>/PORT1</TD></TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>XEROX® XNIC</TD><TD>lpd://<I>address</I>
|
||||
/PASSTHRU</TD></TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>XEROX® (most others)</TD><TD>socket://<I>
|
||||
address</I>:5503</TD></TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP"><TD>XEROX®</TD><TD>socket://<I>address</I>
|
||||
:5503</TD></TR>
|
||||
</TABLE>
|
||||
</CENTER>
|
||||
</P>
|
||||
@@ -3868,77 +3792,6 @@ ftp> <B>quit ENTER</B>
|
||||
</PRE>
|
||||
</UL>
|
||||
<P>Your Axis print server is now ready for use! </P>
|
||||
<H2><A NAME="LINKSYS">Configuring Linksys Print Servers</A></H2>
|
||||
<P>The Linksys print servers can be configured using ARP, RARP, or
|
||||
BOOTP. Like older Axis print servers, an additional step must be
|
||||
performed to configure the TCP/IP portion of the print server for use
|
||||
with CUPS.
|
||||
<!-- NEED 3in ---->
|
||||
</P>
|
||||
<P>Each print server contains a configuration file named <VAR>CONFIG</VAR>
|
||||
that contains a list of network parameters used by the server. To
|
||||
modify this file you must first download it from the print server using
|
||||
the <CODE>ftp(1)</CODE> program: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
<B>ftp -n ip-address ENTER</B>
|
||||
Connected to ip-address.
|
||||
220 Print Server Ready.
|
||||
Remote system type is Print.
|
||||
ftp> <B>get CONFIG ENTER</B>
|
||||
local: CONFIG remote: CONFIG
|
||||
200 Command OK.
|
||||
150 Open ASCII Mode Connection.
|
||||
WARNING! 68 bare linefeeds received in ASCII mode
|
||||
File may not have transferred correctly.
|
||||
226 Transfer complete.
|
||||
##### bytes received in #.## seconds (##### Kbytes/s)
|
||||
ftp> <B>quit ENTER</B>
|
||||
221 Goodbye.
|
||||
</PRE>
|
||||
</UL>
|
||||
|
||||
<!-- NEED 2in ---->
|
||||
<P>Next, edit the file with your favorite text editor and locate the
|
||||
lines beginning with: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
0100 L1_PROUT:P1
|
||||
0120 L2_PROUT:P1
|
||||
0140 L3_PROUT:P1
|
||||
</PRE>
|
||||
</UL>
|
||||
<P>Change the port number for each parallel and serial port on the
|
||||
server as follows: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
0100 L1_PROUT:<B>P1</B>
|
||||
0120 L2_PROUT:<B>P2</B>
|
||||
0140 L3_PROUT:<B>P3</B>
|
||||
</PRE>
|
||||
</UL>
|
||||
|
||||
<!-- NEED 4in ---->
|
||||
<P>This maps each virtual printer with a physical port. Save the file
|
||||
and then upload the new <VAR>CONFIG</VAR> file using the <CODE>ftp</CODE>
|
||||
command: </P>
|
||||
<UL>
|
||||
<PRE>
|
||||
<B>ftp -n ip-address ENTER</B>
|
||||
Connected to ip-address.
|
||||
220 Print Server Ready.
|
||||
Remote system type is Print.
|
||||
ftp> <B>put CONFIG ENTER</B>
|
||||
local: CONFIG remote: CONFIG
|
||||
200 Command OK.
|
||||
150 Open ASCII Mode Connection.
|
||||
226 Transfer complete.
|
||||
##### bytes received in #.## seconds (##### Kbytes/s)
|
||||
ftp> <B>quit ENTER</B>
|
||||
221 Goodbye.
|
||||
</PRE>
|
||||
</UL>
|
||||
<P>Your Linksys print server is now ready for use! </P>
|
||||
<H1 ALIGN="RIGHT"><A NAME="PRINTER_DRIVERS">C - Printer Drivers</A></H1>
|
||||
<P>This appendix lists the printer drivers that are provided with CUPS. </P>
|
||||
<H2><A NAME="11_1">Printer Drivers</A></H2>
|
||||
@@ -3992,22 +3845,20 @@ the Common UNIX Printing System.
|
||||
<CENTER>
|
||||
<TABLE BORDER="1" WIDTH="80%">
|
||||
<TR VALIGN="TOP"><TH>Pathname</TH><TH>Description</TH></TR>
|
||||
<TR VALIGN="TOP"><TD>/etc/cups/certs/</TD><TD>The location of
|
||||
authentication certificate files for local HTTP clients.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/etc/cups/classes.conf</TD><TD>The printer classes
|
||||
configuration file for the scheduler.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/etc/cups/cupsd.conf</TD><TD>The scheduler
|
||||
configuration file.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/etc/cups/interfaces/</TD><TD>The location of
|
||||
System V interface scripts for printers.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/etc/cups/mime.convs</TD><TD>The list of standard
|
||||
file filters included with ESP Print Pro.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/etc/cups/mime.types</TD><TD>The list of
|
||||
recognized file types for ESP Print Pro.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/etc/cups/ppd/</TD><TD>The location of PostScript
|
||||
Printer Description ("PPD") files for printers.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/etc/cups/printers.conf</TD><TD>The printer
|
||||
configuration file for the scheduler.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/etc/cups/interfaces/</TD><TD>The location of
|
||||
System V interface scripts for printers.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/etc/cups/ppd/</TD><TD>The location of PostScript
|
||||
Printer Description ("PPD") files for printers.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/usr/bin/cancel</TD><TD>The System V cancel job(s)
|
||||
command.</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/usr/bin/disable</TD><TD>The System V disable
|
||||
@@ -4072,8 +3923,6 @@ get-ppds command.</TD></TR>
|
||||
</TR>
|
||||
<TR VALIGN="TOP"><TD>/usr/share/catman/a_man/
|
||||
<BR> /usr/share/catman/u_man/</TD><TD>Man pages (IRIX)</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/usr/share/man/</TD><TD>Man pages (Compaq Tru64
|
||||
UNIX, HP-UX, Solaris)</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/usr/man/</TD><TD>Man pages (all others)</TD></TR>
|
||||
<TR VALIGN="TOP"><TD>/usr/share/cups/data/</TD><TD>The location of
|
||||
filter data files.</TD></TR>
|
||||
@@ -4105,7 +3954,7 @@ encounter when installing and configuring CUPS. </P>
|
||||
<P>Commercial support for CUPS is available from Easy Software
|
||||
Products. For more information please contact us at: </P>
|
||||
<UL>
|
||||
<LI>WWW: <A HREF="http://www.easysw.com"><CODE> http://www.easysw.com</CODE>
|
||||
<LI>WWW: <A HREF="http://www.easysw.com"><CODE>http://www.easysw.com</CODE>
|
||||
</A></LI>
|
||||
<LI>EMail: <A HREF="mailto:support@easysw.com">support@easysw.com</A></LI>
|
||||
<LI>Telephone (M-F, 9-5 EST): +1.301.373.9603 </LI>
|
||||
@@ -4142,7 +3991,7 @@ described in <A HREF="PRINTING_MANAGEMENT">Chapter 8, "Printing System
|
||||
Management"</A>.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>Disabling password checks will allow any local user to change your
|
||||
printer and class configuration, but remote administration from
|
||||
another machine will still not be allowed. </P>
|
||||
@@ -4166,7 +4015,7 @@ described in <A HREF="PRINTING_MANAGEMENT">Chapter 8, "Printing System
|
||||
Management"</A>.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>Allowing administration access from all hosts is a potential
|
||||
security risk. Please read <A HREF="PRINTING_SECURITY">Chapter 6,
|
||||
"Printing System Management"</A> for a description of these risks and
|
||||
@@ -4182,7 +4031,7 @@ ways to minimize them. </P>
|
||||
<OL>
|
||||
<LI>not specifying the correct password for the root account. </LI>
|
||||
<LI>accessing the CUPS server using the hostname or IP address of the
|
||||
server without enabling remote access for administration functions.
|
||||
server but haven't enabled remote access for administration functions.
|
||||
This can be corrected by following the instructions in the <A HREF="#ALLOW_REMOTE">
|
||||
"I Can't Do Administration Tasks from Another Machine!"</A> section
|
||||
earlier in this appendix. </LI>
|
||||
|
||||
+2576
-2737
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+56
-207
@@ -148,7 +148,7 @@ from the source code.
|
||||
|
||||
<H3><A NAME="REQUIREMENTS">Requirements</A></H3>
|
||||
|
||||
<P>You'll need ANSI-compliant C and C++ compilers to build CUPS on your
|
||||
<P>You'll need an ANSI-compliant C compiler to build CUPS on your
|
||||
system. As its name implies, CUPS is designed to run on the UNIX
|
||||
operating system, however the CUPS interface library and most of the
|
||||
filters and backends supplied with CUPS should also compile and run
|
||||
@@ -199,23 +199,12 @@ software in another location:
|
||||
|
||||
<P>If the PNG, JPEG, TIFF, and ZLIB libraries are not installed in a
|
||||
system default location (typically <VAR>/usr/include</VAR> and
|
||||
<VAR>/usr/lib</VAR>) you'll need to set the <CODE>CFLAGS</CODE>,
|
||||
<CODE>CXXFLAGS</CODE>, and <CODE>LDFLAGS</CODE> environment variables
|
||||
prior to running configure:
|
||||
<VAR>/usr/lib</VAR>) you'll need to set the <CODE>CFLAGS</CODE> and
|
||||
<CODE>LDFLAGS</CODE> environment variables prior to running configure:
|
||||
|
||||
<UL><PRE>
|
||||
<B>setenv CFLAGS "-I/some/directory" ENTER</B>
|
||||
<B>setenv CXXFLAGS "-I/some/directory" ENTER</B>
|
||||
<B>setenv LDFLAGS "-L/some/directory" ENTER</B>
|
||||
<B>./configure ... ENTER</B>
|
||||
</PRE></UL>
|
||||
|
||||
<P>or:
|
||||
|
||||
<UL><PRE>
|
||||
<B>CFLAGS="-I/some/directory"; export CFLAGS ENTER</B>
|
||||
<B>CXXFLAGS="-I/some/directory"; export CXXFLAGS ENTER</B>
|
||||
<B>LDFLAGS="-L/some/directory"; export LDFLAGS ENTER</B>
|
||||
<B>setenv CFLAGS "-I/some/directory"</B>
|
||||
<B>setenv LDFLAGS "-L/some/directory"</B>
|
||||
<B>./configure ... ENTER</B>
|
||||
</PRE></UL>
|
||||
|
||||
@@ -244,7 +233,7 @@ prior to running configure:
|
||||
<P>Installing CUPS will overwrite your existing printing
|
||||
system. If you experience difficulties with the CUPS software
|
||||
and need to go back to your old printing system, you will need
|
||||
to reinstall the old printing system from your operating system CDs.
|
||||
to reinstall the printing system from your operating system CDs.
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE></CENTER>
|
||||
@@ -277,7 +266,7 @@ only available for Linux.
|
||||
system. If you experience difficulties with the CUPS software
|
||||
and need to go back to your old printing system, you will need
|
||||
to remove the CUPS software with the provided script and/or
|
||||
reinstall the old printing system from your operating system CDs.
|
||||
reinstall the printing system from your operating system CDs.
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE></CENTER>
|
||||
@@ -296,7 +285,6 @@ Once you are the root user, run the installation script with:
|
||||
<P>After asking you a few yes/no questions the CUPS software will be
|
||||
installed and the scheduler will be started automatically.
|
||||
|
||||
<!-- NEED 2in -->
|
||||
<H3><A NAME="RPM-BINARY">Installing an RPM Distribution</A></H3>
|
||||
|
||||
<P>To install the CUPS software from an RPM distribution you will need
|
||||
@@ -346,7 +334,7 @@ example, the first parallel port in Linux usually uses a device URI of
|
||||
|
||||
<!-- NEED 2.5in -->
|
||||
<P>You can see a complete list of supported devices by running the
|
||||
<CODE>lpinfo(8)</CODE> command:
|
||||
<CODE>lpinfo(1m)</CODE> command:
|
||||
|
||||
<UL><PRE>
|
||||
<B>lpinfo -v ENTER</B>
|
||||
@@ -358,7 +346,7 @@ network lpd
|
||||
direct parallel:/dev/lp1
|
||||
serial serial:/dev/ttyS1?baud=115200
|
||||
serial serial:/dev/ttyS2?baud=115200
|
||||
direct usb:/dev/usb/lp0
|
||||
direct usb:/dev/usb/usblp0
|
||||
network smb
|
||||
</PRE></UL>
|
||||
|
||||
@@ -379,7 +367,7 @@ DeskJet, EPSON 9-pin, EPSON 24-pin, and EPSON Stylus printers.
|
||||
<H2>Adding Your First Printer</H2>
|
||||
|
||||
<P>CUPS provides two methods for adding printers: a command-line
|
||||
program called <CODE>lpadmin(8)</CODE> and a Web interface. The
|
||||
program called <CODE>lpadmin(1m)</CODE> and a Web interface. The
|
||||
<CODE>lpadmin</CODE> command allows you to perform most printer
|
||||
administration tasks from the command-line and is located in
|
||||
<VAR>/usr/sbin</VAR>. The Web interface is located at:
|
||||
@@ -493,7 +481,7 @@ to add or modify a printer:
|
||||
|
||||
<DD>Enables the printer and accepts job. This option is
|
||||
equivalent to running the <CODE>enable(1)</CODE> and
|
||||
<CODE>accept(8)</CODE> commands on the printer.
|
||||
<CODE>accept(1m)</CODE> commands on the printer.
|
||||
|
||||
<DT>-L <I>location</I>
|
||||
|
||||
@@ -682,7 +670,7 @@ jobs to a single server. However, if that server goes down then all
|
||||
printing will be disabled. Use this configuration only as absolutely needed.
|
||||
|
||||
<P>The default server is normally "localhost". To override the default
|
||||
server create a file named <VAR>/etc/cups/client.conf</VAR> and add
|
||||
server create a file named <VAR>/etc/cups/conf/client.conf</VAR> and add
|
||||
a line reading:
|
||||
|
||||
<UL><PRE>
|
||||
@@ -700,8 +688,8 @@ reading:
|
||||
ServerName <I>server</I>
|
||||
</PRE></UL>
|
||||
|
||||
<P>to the file. The <VAR>server</VAR> name can be the hostname or IP
|
||||
address of the default server.
|
||||
<P>to the file. As before the <VAR>server</VAR> name can be the
|
||||
hostname or IP address of the default server.
|
||||
|
||||
<H3><A NAME="CLIENT_AUTO">Automatic Configuration of Print Queues</A></H3>
|
||||
|
||||
@@ -784,8 +772,6 @@ configuration files are located in the <VAR>/etc/cups</VAR> directory:
|
||||
</DL>
|
||||
</UL>
|
||||
|
||||
<H2><A NAME="RESTARTING">Restarting the CUPS Server</A></H2>
|
||||
|
||||
<P>Once you have made a change to a configuration file you need to
|
||||
restart the CUPS server by sending it a <CODE>HUP</CODE> signal or using the
|
||||
supplied initialization script. The CUPS distributions install the
|
||||
@@ -803,9 +789,11 @@ script in the <VAR>init.d</VAR> directory with the name
|
||||
<P>The <VAR>/etc/cups/cupsd.conf</VAR> file contains configuration
|
||||
<I>directives</I> that control how the server functions. Each directive
|
||||
is listed on a line by itself followed by its value. Comments are
|
||||
introduced using the number sign ("#") character at the beginning of a
|
||||
line. Since the server configuration file consists of plain text, you
|
||||
can use your favorite text editor to make changes to it.
|
||||
introduced using the number sign ("#") character at the beginning of
|
||||
a line.
|
||||
|
||||
<P>Since the server configuration file consists of plain text, you can
|
||||
use your favorite text editor to make changes to it.
|
||||
|
||||
<!-- NEED 4in -->
|
||||
<H2>Server Directives</H2>
|
||||
@@ -832,10 +820,9 @@ determine how the server operates:
|
||||
<LI><A HREF="#BrowsePoll"><CODE>BrowsePoll</CODE></A>
|
||||
<LI><A HREF="#BrowsePort"><CODE>BrowsePort</CODE></A>
|
||||
<LI><A HREF="#BrowseRelay"><CODE>BrowseRelay</CODE></A>
|
||||
<LI><A HREF="#BrowseShortNames"><CODE>BrowseShortNames</CODE></A>
|
||||
<LI><A HREF="#BrowseTimeout"><CODE>BrowseTimeout</CODE></A>
|
||||
<LI><A HREF="#Browsing"><CODE>Browsing</CODE></A>
|
||||
<LI><A HREF="#DataDir"><CODE>DataDir</CODE></A>
|
||||
<LI><A HREF="#DefaultCharset"><CODE>DefaultCharset</CODE></A>
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="TOP">
|
||||
@@ -843,7 +830,6 @@ determine how the server operates:
|
||||
</TD>
|
||||
<TD VALIGN="TOP">
|
||||
|
||||
<LI><A HREF="#DefaultCharset"><CODE>DefaultCharset</CODE></A>
|
||||
<LI><A HREF="#DefaultLanguage"><CODE>DefaultLanguage</CODE></A>
|
||||
<LI><A HREF="#Deny"><CODE>Deny</CODE></A>
|
||||
<LI><A HREF="#DocumentRoot"><CODE>DocumentRoot</CODE></A>
|
||||
@@ -859,6 +845,7 @@ determine how the server operates:
|
||||
<LI><A HREF="#MaxClients"><CODE>MaxClients</CODE></A>
|
||||
<LI><A HREF="#MaxLogSize"><CODE>MaxLogSize</CODE></A>
|
||||
<LI><A HREF="#MaxRequestSize"><CODE>MaxRequestSize</CODE></A>
|
||||
<LI><A HREF="#Order"><CODE>Order</CODE></A>
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="TOP">
|
||||
@@ -866,7 +853,6 @@ determine how the server operates:
|
||||
</TD>
|
||||
<TD VALIGN="TOP">
|
||||
|
||||
<LI><A HREF="#Order"><CODE>Order</CODE></A>
|
||||
<LI><A HREF="#PageLog"><CODE>PageLog</CODE></A>
|
||||
<LI><A HREF="#Port"><CODE>Port</CODE></A>
|
||||
<LI><A HREF="#PreserveJobFiles"><CODE>PreserveJobFiles</CODE></A>
|
||||
@@ -896,7 +882,6 @@ determine how the server operates:
|
||||
|
||||
<UL><PRE>
|
||||
AccessLog /var/log/cups/access_log
|
||||
AccessLog /var/log/cups/access_log-%s
|
||||
AccessLog syslog
|
||||
</PRE></UL>
|
||||
|
||||
@@ -908,15 +893,12 @@ to the <A HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
|
||||
access log file is stored in "common log format" and can be used by any
|
||||
web access reporting tool to generate a report on CUPS server activity.
|
||||
|
||||
<P>The server name can be included in the filename by using
|
||||
<CODE>%s</CODE> in the name.
|
||||
|
||||
<P>The special name "syslog" can be used to send the access information
|
||||
to the system log instead of a plain file.
|
||||
|
||||
<P>The default access log file is <VAR>/var/log/cups/access_log</VAR>.
|
||||
|
||||
<!-- NEED 6in -->
|
||||
<!-- NEED 5in -->
|
||||
<H3><A NAME="Allow">Allow</A></H3>
|
||||
<HR>
|
||||
|
||||
@@ -1295,27 +1277,6 @@ BrowseRelay 127.0.0.1 255.255.255.255
|
||||
<P>This effectively provides access to printers on a WAN for all clients
|
||||
on the LAN(s).
|
||||
|
||||
<!-- NEED 3in -->
|
||||
<H3><A NAME="BrowseShortNames">BrowseShortNames</A></H3>
|
||||
<HR>
|
||||
|
||||
<H4>Examples</H4>
|
||||
|
||||
<UL><PRE>
|
||||
BrowseShortNames Yes
|
||||
BrowseShortNames No
|
||||
</PRE></UL>
|
||||
|
||||
<H4>Description</H4>
|
||||
|
||||
<P>The <CODE>BrowseShortNames</CODE> directive specifies whether or not
|
||||
short names are used for remote printers when possible. Short names are
|
||||
just the remote printer name, without the server ("printer"). If more than
|
||||
one remote printer is detected with the same name, the printers will have
|
||||
long names ("printer@server1", "printer@server2".)
|
||||
|
||||
<P>The default value for this option is <CODE>Yes</CODE>.
|
||||
|
||||
<!-- NEED 3in -->
|
||||
<H3><A NAME="BrowseTimeout">BrowseTimeout</A></H3>
|
||||
<HR>
|
||||
@@ -1338,7 +1299,7 @@ destinations.
|
||||
<A HREF="#BrowseInterval"><CODE>BrowseInterval</CODE></A> value. Otherwise
|
||||
printers and classes will disappear from client systems between updates.
|
||||
|
||||
<!-- NEED 4in -->
|
||||
<!-- NEED 3in -->
|
||||
<H3><A NAME="Browsing">Browsing</A></H3>
|
||||
<HR>
|
||||
|
||||
@@ -1367,21 +1328,6 @@ browsing is enabled. The default setting is <CODE>On</CODE>.
|
||||
</TR>
|
||||
</TABLE></CENTER>
|
||||
|
||||
<!-- NEED 3in -->
|
||||
<H3><A NAME="DataDir">DataDir</A></H3>
|
||||
<HR>
|
||||
|
||||
<H4>Examples</H4>
|
||||
|
||||
<UL><PRE>
|
||||
DataDir /usr/share/cups
|
||||
</PRE></UL>
|
||||
|
||||
<H4>Description</H4>
|
||||
|
||||
<P>The <CODE>DataDir</CODE> directive sets the directory to use for data
|
||||
files.
|
||||
|
||||
<!-- NEED 3in -->
|
||||
<H3><A NAME="DefaultCharset">DefaultCharset</A></H3>
|
||||
<HR>
|
||||
@@ -1519,7 +1465,6 @@ the web content by providing subdirectories for each language needed.
|
||||
|
||||
<UL><PRE>
|
||||
ErrorLog /var/log/cups/error_log
|
||||
ErrorLog /var/log/cups/error_log-%s
|
||||
ErrorLog syslog
|
||||
</PRE></UL>
|
||||
|
||||
@@ -1530,9 +1475,6 @@ file. If the filename is not absolute then it is assumed to be relative
|
||||
to the <A HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
|
||||
default error log file is <VAR>/var/log/cups/error_log</VAR>.
|
||||
|
||||
<P>The server name can be included in the filename by using
|
||||
<CODE>%s</CODE> in the name.
|
||||
|
||||
<P>The special name "syslog" can be used to send the error information
|
||||
to the system log instead of a plain file.
|
||||
|
||||
@@ -1822,7 +1764,6 @@ The following values are supported:
|
||||
|
||||
<UL><PRE>
|
||||
PageLog /var/log/cups/page_log
|
||||
PageLog /var/log/cups/page_log-%s
|
||||
PageLog syslog
|
||||
</PRE></UL>
|
||||
|
||||
@@ -1833,9 +1774,6 @@ file. If the filename is not absolute then it is assumed to be relative
|
||||
to the <A HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
|
||||
default page log file is <VAR>/var/log/cups/page_log</VAR>.
|
||||
|
||||
<P>The server name can be included in the filename by using
|
||||
<CODE>%s</CODE> in the name.
|
||||
|
||||
<P>The special name "syslog" can be used to send the page information
|
||||
to the system log instead of a plain file.
|
||||
|
||||
@@ -2126,10 +2064,11 @@ filter and CGI programs run as. The default user is <CODE>lp</CODE>.
|
||||
<!-- NEW PAGE -->
|
||||
<H2><A NAME="PRINTING_SECURITY">Printing System Security</A></H2>
|
||||
|
||||
<P>CUPS provides support for address, certificate, and password (Basic
|
||||
and Digest) based authentication and access control. Certificate and
|
||||
password authentication provide ways to limit access to individual
|
||||
people or groups.
|
||||
<P>CUPS provides support for address, certificate, and password (Basic and
|
||||
Digest) based authentication and access control.
|
||||
|
||||
<P>Certificate and password authentication provide ways to limit access to
|
||||
individual people or groups.
|
||||
|
||||
<P>Address based access control allows you to limit access to specific
|
||||
systems, networks, or domains. While this does not provide authentication,
|
||||
@@ -2276,7 +2215,6 @@ additional group membership requirements are checked.
|
||||
AuthType Basic
|
||||
</PRE></UL>
|
||||
|
||||
<!-- NEED 7in -->
|
||||
<H3>Using Digest Authentication</H3>
|
||||
|
||||
<P>Digest authentication uses users and passwords defined in the
|
||||
@@ -2429,16 +2367,13 @@ directive in the <VAR>cupsd.conf</VAR> file.
|
||||
If no username and password is supplied for the request then this field
|
||||
contains "-".
|
||||
|
||||
<P>The <I>date-time</I> field is the date and time of the request in local time
|
||||
and is in the format:
|
||||
<P>The <I>date-time</I> field is the date and time of the request in Greenwich
|
||||
Mean Time (a.k.a. ZULU) and is in the format:
|
||||
|
||||
<UL><PRE>
|
||||
[DD/MON/YYYY:HH:MM:SS +ZZZZ]
|
||||
[DD/MON/YYYY:HH:MM:SS +0000]
|
||||
</PRE></UL>
|
||||
|
||||
<P>where <I>ZZZZ</I> is the timezone offset in hours and minutes from Greenwich
|
||||
Mean Time (a.k.a. GMT a.k.a. ZULU.)
|
||||
|
||||
<P>The <I>method</I> field is the HTTP method used ("GET", "PUT", "POST", etc.)
|
||||
|
||||
<P>The <I>resource</I> field is the filename of the requested resource.
|
||||
@@ -2453,7 +2388,7 @@ above.
|
||||
|
||||
<P>The <I>bytes</I> field contains the number of bytes in the request.
|
||||
For POST requests the <I>bytes</I> field contains the number of bytes
|
||||
that was received from the client.
|
||||
of non-IPP data that is received from the client.
|
||||
|
||||
<H3>The error_log File</H3>
|
||||
|
||||
@@ -2710,7 +2645,8 @@ different file types and filters.
|
||||
<P>Once you choose the names for these files, create them using your
|
||||
favorite text editor as described earlier in this chapter. Once you
|
||||
have created the files, restart the <CODE>cupsd</CODE> process as
|
||||
described earlier in <A HREF="#RESTARTING">"Restarting the CUPS Server"</A>.
|
||||
described in <A HREF="#PRINTING_MANAGEMENT">Chapter N, "Printing System
|
||||
Configuration"</A>.
|
||||
|
||||
<H3>Printer Drivers and PPD Files</H3>
|
||||
|
||||
@@ -2755,7 +2691,7 @@ the automatic client configuration and printer options are not supported by
|
||||
the LPD protocol, so you must manually configure each client for the printers
|
||||
it needs to access.
|
||||
|
||||
<P>The <CODE>cups-lpd(8)</CODE> program provides support for LPD clients.
|
||||
<P>The <CODE>cups-lpd(1m)</CODE> program provides support for LPD clients.
|
||||
To enable LPD support on your server, edit the <VAR>/etc/inetd.conf</VAR>
|
||||
file and add a line reading:
|
||||
|
||||
@@ -2766,13 +2702,13 @@ printer stream tcp nowait lp /usr/lib/cups/daemon/cups-lpd cups-lpd
|
||||
<P>The path to the <CODE>cups-lpd</CODE> may vary depending on your
|
||||
installation.
|
||||
|
||||
<P>Once you have added this line, send the <CODE>inetd(8)</CODE> process
|
||||
<P>Once you have added this line, send the <CODE>inetd(1m)</CODE> process
|
||||
a <CODE>HUP</CODE> signal or reboot the system:
|
||||
|
||||
<UL><PRE>
|
||||
<B>killall -HUP inetd ENTER</B> [IRIX and some versions of Linux]
|
||||
<B>kill -HUP <I>pid</I> ENTER [Others]</B>
|
||||
<B>reboot ENTER [For all systems if the HUP signal fails]</B>
|
||||
<B>kill -HUP <I>pid</I> ENTER</B>
|
||||
<B>reboot ENTER</B>
|
||||
</PRE></UL>
|
||||
|
||||
<H2>Printing to LPD Servers</H2>
|
||||
@@ -2796,7 +2732,7 @@ free and commercial software packages that do.
|
||||
|
||||
<H3>Columbia Appletalk Package (CAP)</H3>
|
||||
|
||||
<P>Because the CAP LaserWriter server (<CODE>lwsrv(8)</CODE>) does
|
||||
<P>Because the CAP LaserWriter server (<CODE>lwsrv(1m)</CODE>) does
|
||||
not support specification of PPD files, we do not recommend that you
|
||||
use CAP with CUPS. However, you can run the <CODE>lpsrv</CODE> program
|
||||
for limited printing with the command:
|
||||
@@ -2812,7 +2748,7 @@ printer, and <CODE>printer</CODE> is the name of the CUPS print queue.
|
||||
<H3>XINET KA/Spool</H3>
|
||||
|
||||
<P>To use your system as a print server for Mac OS clients,
|
||||
configure each printer using a <CODE>papserver(8)</CODE> in the
|
||||
configure each printer using a <CODE>papserver(1m)</CODE> in the
|
||||
<VAR>/usr/adm/appletalk/services</VAR> file, specifying the
|
||||
corresponding PPD file in the <VAR>/etc/cups/ppd</VAR> directory for
|
||||
each printer. For a printer named <CODE>MyPrinter</CODE> the entry
|
||||
@@ -3009,7 +2945,7 @@ test page or bottom of the print server.
|
||||
<H3>Configuring the IP Address Using ARP</H3>
|
||||
|
||||
<P>The easiest way to set the IP address of a network device is to use
|
||||
the <CODE>arp(8)</CODE> command. The <CODE>arp</CODE> sends an Address
|
||||
the <CODE>arp(1m)</CODE> command. The <CODE>arp</CODE> sends an Address
|
||||
Resolution Protocol ("ARP") packet to the specified Ethernet MAC address,
|
||||
setting the network device's IP address:
|
||||
|
||||
@@ -3033,7 +2969,7 @@ IP address after a power cycle. If you just have a single printer or
|
||||
print server, the <CODE>arp</CODE> command is the way to go.
|
||||
|
||||
<P>Some UNIX operating systems use a program called
|
||||
<CODE>rarpd(8)</CODE> to manage RARP. Others, like Linux, support this
|
||||
<CODE>rarpd(1m)</CODE> to manage RARP. Others, like Linux, support this
|
||||
protocol in the kernel. For systems that provide the <CODE>rarpd</CODE>
|
||||
program you will need to start it before RARP lookups will work:
|
||||
|
||||
@@ -3065,7 +3001,7 @@ server to set its address.
|
||||
|
||||
<P>The BOOTP protocol is used when you need to provide additional information
|
||||
such as the location of a configuration file to the network interface. Using
|
||||
the standard <CODE>bootpd(8)</CODE> program supplied with UNIX you simply need to
|
||||
the standard <CODE>bootpd(1m)</CODE> program supplied with UNIX you simply need to
|
||||
add a line to the <VAR>/etc/bootptab</VAR> file; for IRIX:
|
||||
|
||||
<UL><PRE>
|
||||
@@ -3170,7 +3106,7 @@ CUPS:
|
||||
lpd://<I>address</I>/pr3</TD>
|
||||
</TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP">
|
||||
<TD>EFI® Fiery® RIP</TD>
|
||||
<TD>EFI® Fiery RIP</TD>
|
||||
<TD>lpd://<I>address</I>/print</TD>
|
||||
</TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP">
|
||||
@@ -3212,8 +3148,7 @@ CUPS:
|
||||
</TR>
|
||||
<!-- NEED 1in -->
|
||||
<TR ALIGN="LEFT" VALIGN="TOP">
|
||||
<TD>Linksys EtherFast®<BR>
|
||||
<A HREF="#LINKSYS">(see directions)</A></TD>
|
||||
<TD>Linksys EtherFast®</TD>
|
||||
<TD>socket://<I>address</I>:4010<BR>
|
||||
socket://<I>address</I>:4020<BR>
|
||||
socket://<I>address</I>:4030</TD>
|
||||
@@ -3231,15 +3166,7 @@ CUPS:
|
||||
<TD>socket://<I>address</I>:9100</TD>
|
||||
</TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP">
|
||||
<TD>XEROX® 4512 NIC</TD>
|
||||
<TD>lpd://<I>address</I>/PORT1</TD>
|
||||
</TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP">
|
||||
<TD>XEROX® XNIC</TD>
|
||||
<TD>lpd://<I>address</I>/PASSTHRU</TD>
|
||||
</TR>
|
||||
<TR ALIGN="LEFT" VALIGN="TOP">
|
||||
<TD>XEROX® (most others)</TD>
|
||||
<TD>XEROX®</TD>
|
||||
<TD>socket://<I>address</I>:5503</TD>
|
||||
</TR>
|
||||
</TABLE></CENTER>
|
||||
@@ -3344,76 +3271,6 @@ ftp> <B>quit ENTER</B>
|
||||
|
||||
<P>Your Axis print server is now ready for use!
|
||||
|
||||
<H2><A NAME="LINKSYS">Configuring Linksys Print Servers</A></H2>
|
||||
|
||||
<P>The Linksys print servers can be configured using ARP, RARP, or
|
||||
BOOTP. Like older Axis print servers, an additional step must be
|
||||
performed to configure the TCP/IP portion of the print server for use
|
||||
with CUPS.
|
||||
|
||||
<!-- NEED 3in -->
|
||||
<P>Each print server contains a configuration file named
|
||||
<VAR>CONFIG</VAR> that contains a list of network parameters used by
|
||||
the server. To modify this file you must first download it from the
|
||||
print server using the <CODE>ftp(1)</CODE> program:
|
||||
|
||||
<UL><PRE>
|
||||
<B>ftp -n ip-address ENTER</B>
|
||||
Connected to ip-address.
|
||||
220 Print Server Ready.
|
||||
Remote system type is Print.
|
||||
ftp> <B>get CONFIG ENTER</B>
|
||||
local: CONFIG remote: CONFIG
|
||||
200 Command OK.
|
||||
150 Open ASCII Mode Connection.
|
||||
WARNING! 68 bare linefeeds received in ASCII mode
|
||||
File may not have transferred correctly.
|
||||
226 Transfer complete.
|
||||
##### bytes received in #.## seconds (##### Kbytes/s)
|
||||
ftp> <B>quit ENTER</B>
|
||||
221 Goodbye.
|
||||
</PRE></UL>
|
||||
|
||||
<!-- NEED 2in -->
|
||||
<P>Next, edit the file with your favorite text editor and locate the
|
||||
lines beginning with:
|
||||
|
||||
<UL><PRE>
|
||||
0100 L1_PROUT:P1
|
||||
0120 L2_PROUT:P1
|
||||
0140 L3_PROUT:P1
|
||||
</PRE></UL>
|
||||
|
||||
<P>Change the port number for
|
||||
each parallel and serial port on the server as follows:
|
||||
|
||||
<UL><PRE>
|
||||
0100 L1_PROUT:<B>P1</B>
|
||||
0120 L2_PROUT:<B>P2</B>
|
||||
0140 L3_PROUT:<B>P3</B>
|
||||
</PRE></UL>
|
||||
|
||||
<!-- NEED 4in -->
|
||||
<P>This maps each virtual printer with a physical port. Save the file and then upload the
|
||||
new <VAR>CONFIG</VAR> file using the <CODE>ftp</CODE> command:
|
||||
|
||||
<UL><PRE>
|
||||
<B>ftp -n ip-address ENTER</B>
|
||||
Connected to ip-address.
|
||||
220 Print Server Ready.
|
||||
Remote system type is Print.
|
||||
ftp> <B>put CONFIG ENTER</B>
|
||||
local: CONFIG remote: CONFIG
|
||||
200 Command OK.
|
||||
150 Open ASCII Mode Connection.
|
||||
226 Transfer complete.
|
||||
##### bytes received in #.## seconds (##### Kbytes/s)
|
||||
ftp> <B>quit ENTER</B>
|
||||
221 Goodbye.
|
||||
</PRE></UL>
|
||||
|
||||
<P>Your Linksys print server is now ready for use!
|
||||
|
||||
|
||||
<H1 ALIGN="RIGHT"><A NAME="PRINTER_DRIVERS">C - Printer Drivers</A></H1>
|
||||
|
||||
@@ -3499,11 +3356,7 @@ the Common UNIX Printing System.
|
||||
<TH>Pathname</TH>
|
||||
<TH>Description</TH>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/etc/cups/certs/</TD>
|
||||
<TD>The location of authentication certificate files for local
|
||||
HTTP clients.</TD>
|
||||
</TR>
|
||||
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/etc/cups/classes.conf</TD>
|
||||
<TD>The printer classes configuration file for the scheduler.</TD>
|
||||
@@ -3512,10 +3365,6 @@ the Common UNIX Printing System.
|
||||
<TD>/etc/cups/cupsd.conf</TD>
|
||||
<TD>The scheduler configuration file.</TD>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/etc/cups/interfaces/</TD>
|
||||
<TD>The location of System V interface scripts for printers.</TD>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/etc/cups/mime.convs</TD>
|
||||
<TD>The list of standard file filters included with ESP Print Pro.</TD>
|
||||
@@ -3524,15 +3373,19 @@ the Common UNIX Printing System.
|
||||
<TD>/etc/cups/mime.types</TD>
|
||||
<TD>The list of recognized file types for ESP Print Pro.</TD>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/etc/cups/printers.conf</TD>
|
||||
<TD>The printer configuration file for the scheduler.</TD>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/etc/cups/interfaces/</TD>
|
||||
<TD>The location of System V interface scripts for printers.</TD>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/etc/cups/ppd/</TD>
|
||||
<TD>The location of PostScript Printer Description ("PPD") files for
|
||||
printers.</TD>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/etc/cups/printers.conf</TD>
|
||||
<TD>The printer configuration file for the scheduler.</TD>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/usr/bin/cancel</TD>
|
||||
<TD>The System V cancel job(s) command.</TD>
|
||||
@@ -3663,10 +3516,6 @@ the Common UNIX Printing System.
|
||||
/usr/share/catman/u_man/</TD>
|
||||
<TD>Man pages (IRIX)</TD>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/usr/share/man/</TD>
|
||||
<TD>Man pages (Compaq Tru64 UNIX, HP-UX, Solaris)</TD>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TD>/usr/man/</TD>
|
||||
<TD>Man pages (all others)</TD>
|
||||
@@ -3823,7 +3672,7 @@ Management"</A>.
|
||||
root account.
|
||||
|
||||
<LI>accessing the CUPS server using the hostname or IP
|
||||
address of the server without enabling remote access for
|
||||
address of the server but haven't enabled remote access for
|
||||
administration functions. This can be corrected by following
|
||||
the instructions in the <A HREF="#ALLOW_REMOTE">"I Can't Do
|
||||
Administration Tasks from Another Machine!"</A> section earlier
|
||||
|
||||
+219
-312
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> CUPS Software Design Description</TITLE>
|
||||
<TITLE>CUPS Software Design Description</TITLE>
|
||||
<META NAME="AUTHOR" CONTENT="Easy Software Products">
|
||||
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
|
||||
<META NAME="DOCNUMBER" CONTENT="CUPS-SDD-1.1">
|
||||
@@ -17,11 +17,14 @@ H6 { font-family: sans-serif; font-size: 8.0pt }
|
||||
SUB { font-size: 8.0pt }
|
||||
SUP { font-size: 8.0pt }
|
||||
PRE { font-size: 9.0pt }
|
||||
A:link { text-decoration: underline }
|
||||
A:visited { text-decoration: underline }
|
||||
A:active { text-decoration: underline }
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0" WIDTH="100%"><BR>
|
||||
<H1> CUPS Software Design Description</H1></A><BR>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0"><BR>
|
||||
<H1>CUPS Software Design Description</H1></A><BR>
|
||||
CUPS-SDD-1.1<BR>
|
||||
Easy Software Products<BR>
|
||||
Copyright 1997-2000, All Rights Reserved<BR>
|
||||
@@ -49,85 +52,62 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
<LI><A HREF="#3_1_3">3.1.3 parallel</A></LI>
|
||||
<LI><A HREF="#3_1_4">3.1.4 serial</A></LI>
|
||||
<LI><A HREF="#3_1_5">3.1.5 socket</A></LI>
|
||||
<LI><A HREF="#3_1_6">3.1.6 usb</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_2">3.2 Berkeley Commands</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_2_1">3.2.1 lpc</A></LI>
|
||||
<LI><A HREF="#3_2_2">3.2.2 lpq</A></LI>
|
||||
<LI><A HREF="#3_2_3">3.2.3 lpr</A></LI>
|
||||
<LI><A HREF="#3_2_4">3.2.4 lprm</A></LI>
|
||||
<LI><A HREF="#3_2_2">3.2.2 lpr</A></LI>
|
||||
<LI><A HREF="#3_2_3">3.2.3 lprm</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_3">3.3 CGI</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_3_1">3.3.1 admin.cgi</A></LI>
|
||||
<LI><A HREF="#3_3_2">3.3.2 classes.cgi</A></LI>
|
||||
<LI><A HREF="#3_3_3">3.3.3 jobs.cgi</A></LI>
|
||||
<LI><A HREF="#3_3_4">3.3.4 printers.cgi</A></LI>
|
||||
<LI><A HREF="#3_3_1">3.3.1 classes.cgi</A></LI>
|
||||
<LI><A HREF="#3_3_2">3.3.2 jobs.cgi</A></LI>
|
||||
<LI><A HREF="#3_3_3">3.3.3 printers.cgi</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_4">3.4 CUPS Application Programmers Interface</A></LI>
|
||||
<LI><A HREF="#3_4">3.4 CUPS Interface Library</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_4_1">3.4.1 Convenience Functions</A></LI>
|
||||
<LI><A HREF="#3_4_2">3.4.2 HTTP Functions</A></LI>
|
||||
<LI><A HREF="#3_4_3">3.4.3 IPP Functions</A></LI>
|
||||
<LI><A HREF="#3_4_4">3.4.4 Language Functions</A></LI>
|
||||
<LI><A HREF="#3_4_5">3.4.5 PPD Functions</A></LI>
|
||||
<LI><A HREF="#3_4_5">3.4.5 MIME Functions</A></LI>
|
||||
<LI><A HREF="#3_4_6">3.4.6 PPD Functions</A></LI>
|
||||
<LI><A HREF="#3_4_7">3.4.7 Raster Functions</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_5">3.5 CUPS Imaging Library</A></LI>
|
||||
<LI><A HREF="#3_5">3.5 Filters</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_5_1">3.5.1 Colorspace Conversion Functions</A></LI>
|
||||
<LI><A HREF="#3_5_2">3.5.2 Color Management Functions</A></LI>
|
||||
<LI><A HREF="#3_5_3">3.5.3 Image Management Functions</A></LI>
|
||||
<LI><A HREF="#3_5_4">3.5.4 Scaling Functions</A></LI>
|
||||
<LI><A HREF="#3_5_5">3.5.5 Image File Functions</A></LI>
|
||||
<LI><A HREF="#3_5_6">3.5.6 Raster Functions</A></LI>
|
||||
<LI><A HREF="#3_5_1">3.5.1 hpgltops</A></LI>
|
||||
<LI><A HREF="#3_5_2">3.5.2 imagetops</A></LI>
|
||||
<LI><A HREF="#3_5_3">3.5.3 imagetoraster</A></LI>
|
||||
<LI><A HREF="#3_5_4">3.5.4 pstops</A></LI>
|
||||
<LI><A HREF="#3_5_5">3.5.5 pstoraster</A></LI>
|
||||
<LI><A HREF="#3_5_6">3.5.6 rastertohp</A></LI>
|
||||
<LI><A HREF="#3_5_7">3.5.7 texttops</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_6">3.6 Daemons</A></LI>
|
||||
<LI><A HREF="#3_6">3.6 Scheduler</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_6_1">3.6.1 Line Printer Daemon</A></LI>
|
||||
<LI><A HREF="#3_6_2">3.6.2 Polling Daemon</A></LI>
|
||||
<LI><A HREF="#3_6_1">3.6.1 Authorization</A></LI>
|
||||
<LI><A HREF="#3_6_2">3.6.2 Classes</A></LI>
|
||||
<LI><A HREF="#3_6_3">3.6.3 Client</A></LI>
|
||||
<LI><A HREF="#3_6_4">3.6.4 Configuration</A></LI>
|
||||
<LI><A HREF="#3_6_5">3.6.5 Directory Services</A></LI>
|
||||
<LI><A HREF="#3_6_6">3.6.6 IPP</A></LI>
|
||||
<LI><A HREF="#3_6_7">3.6.7 Jobs</A></LI>
|
||||
<LI><A HREF="#3_6_8">3.6.8 Logging</A></LI>
|
||||
<LI><A HREF="#3_6_9">3.6.9 Main</A></LI>
|
||||
<LI><A HREF="#3_6_10">3.6.10 Printers</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_7">3.7 Filters</A></LI>
|
||||
<LI><A HREF="#3_7">3.7 System V Commands</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_7_1">3.7.1 hpgltops</A></LI>
|
||||
<LI><A HREF="#3_7_2">3.7.2 imagetops</A></LI>
|
||||
<LI><A HREF="#3_7_3">3.7.3 imagetoraster</A></LI>
|
||||
<LI><A HREF="#3_7_4">3.7.4 pdftops</A></LI>
|
||||
<LI><A HREF="#3_7_5">3.7.5 pstops</A></LI>
|
||||
<LI><A HREF="#3_7_6">3.7.6 pstoraster</A></LI>
|
||||
<LI><A HREF="#3_7_7">3.7.7 rastertoepson</A></LI>
|
||||
<LI><A HREF="#3_7_8">3.7.8 rastertohp</A></LI>
|
||||
<LI><A HREF="#3_7_9">3.7.9 texttops</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_8">3.8 Scheduler</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_8_1">3.8.1 Authorization</A></LI>
|
||||
<LI><A HREF="#3_8_2">3.8.2 Classes</A></LI>
|
||||
<LI><A HREF="#3_8_3">3.8.3 Client</A></LI>
|
||||
<LI><A HREF="#3_8_4">3.8.4 Configuration</A></LI>
|
||||
<LI><A HREF="#3_8_5">3.8.5 Devices</A></LI>
|
||||
<LI><A HREF="#3_8_6">3.8.6 Directory Services</A></LI>
|
||||
<LI><A HREF="#3_8_7">3.8.7 IPP</A></LI>
|
||||
<LI><A HREF="#3_8_8">3.8.8 Jobs</A></LI>
|
||||
<LI><A HREF="#3_8_9">3.8.9 Logging</A></LI>
|
||||
<LI><A HREF="#3_8_10">3.8.10 Main</A></LI>
|
||||
<LI><A HREF="#3_8_11">3.8.11 MIME</A></LI>
|
||||
<LI><A HREF="#3_8_12">3.8.12 PPDs</A></LI>
|
||||
<LI><A HREF="#3_8_13">3.8.13 Printers</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_9">3.9 System V Commands</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_9_1">3.9.1 accept</A></LI>
|
||||
<LI><A HREF="#3_9_2">3.9.2 cancel</A></LI>
|
||||
<LI><A HREF="#3_9_3">3.9.3 disable</A></LI>
|
||||
<LI><A HREF="#3_9_4">3.9.4 enable</A></LI>
|
||||
<LI><A HREF="#3_9_5">3.9.5 lp</A></LI>
|
||||
<LI><A HREF="#3_9_6">3.9.6 lpadmin</A></LI>
|
||||
<LI><A HREF="#3_9_7">3.9.7 lpinfo</A></LI>
|
||||
<LI><A HREF="#3_9_8">3.9.8 lpmove</A></LI>
|
||||
<LI><A HREF="#3_9_9">3.9.9 lpoptions</A></LI>
|
||||
<LI><A HREF="#3_9_10">3.9.10 lpstat</A></LI>
|
||||
<LI><A HREF="#3_9_11">3.9.11 reject</A></LI>
|
||||
<LI><A HREF="#3_7_1">3.7.1 accept</A></LI>
|
||||
<LI><A HREF="#3_7_2">3.7.2 cancel</A></LI>
|
||||
<LI><A HREF="#3_7_3">3.7.3 disable</A></LI>
|
||||
<LI><A HREF="#3_7_4">3.7.4 enable</A></LI>
|
||||
<LI><A HREF="#3_7_5">3.7.5 lp</A></LI>
|
||||
<LI><A HREF="#3_7_6">3.7.6 lpadmin</A></LI>
|
||||
<LI><A HREF="#3_7_7">3.7.7 lpstat</A></LI>
|
||||
<LI><A HREF="#3_7_8">3.7.8 reject</A></LI>
|
||||
</UL>
|
||||
</UL>
|
||||
<B><A HREF="#4">A Glossary</A></B>
|
||||
@@ -138,25 +118,25 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
<HR>
|
||||
<H1><A NAME="1">1 Scope</A></H1>
|
||||
<H2><A NAME="1_1">1.1 Identification</A></H2>
|
||||
This software design description document provides general information
|
||||
on the architecture and coding of the Common UNIX Printing System
|
||||
("CUPS") Version 1.1.
|
||||
This software design description document provides detailed
|
||||
information on the architecture and coding of the Common UNIX Printing
|
||||
System ("CUPS") Version 1.1.
|
||||
<H2><A NAME="1_2">1.2 System Overview</A></H2>
|
||||
<P>CUPS provides a portable printing layer for UNIX®-based operating
|
||||
systems. It has been developed by <A HREF="http://www.easysw.com">Easy
|
||||
Software Products</A> to promote a standard printing solution for all
|
||||
UNIX vendors and users. CUPS provides the System V and Berkeley
|
||||
<P>The Common UNIX Printing System provides a portable printing layer
|
||||
for UNIX® operating systems. It has been developed by <A HREF="http://www.easysw.com">
|
||||
Easy Software Products</A> to promote a standard printing solution for
|
||||
all UNIX vendors and users. CUPS provides the System V and Berkeley
|
||||
command-line interfaces. </P>
|
||||
<P>CUPS uses the Internet Printing Protocol ("IPP") as the basis for
|
||||
managing print jobs and queues. The Line Printer Daemon ("LPD") Server
|
||||
Message Block ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are
|
||||
also supported with reduced functionality. CUPS adds network printer
|
||||
browsing and PostScript Printer Description ("PPD") based printing
|
||||
options to support real-world printing under UNIX. </P>
|
||||
<P>CUPS also includes a customized version of GNU Ghostscript
|
||||
(currently based off GNU Ghostscript 5.50) and an image file RIP that
|
||||
are used to support non-PostScript printers. Sample drivers for HP and
|
||||
EPSON printers are included that use these filters. </P>
|
||||
<P>CUPS uses the Internet Printing Protocol (IETF-IPP) as the basis for
|
||||
managing print jobs and queues. The Line Printer Daemon (LPD, RFC1179),
|
||||
Server Message Block (SMB), and AppSocket protocols are also supported
|
||||
with reduced functionality. </P>
|
||||
<P>CUPS adds network printer browsing and PostScript Printer
|
||||
Description ("PPD")-based printing options to support real world
|
||||
applications under UNIX. </P>
|
||||
<P>CUPS also includes a customized version of GNU GhostScript
|
||||
(currently based off GNU GhostScript 5.50) and an image file RIP that
|
||||
is used to support non-PostScript printers. </P>
|
||||
<H2><A NAME="1_3">1.3 Document Overview</A></H2>
|
||||
This software design description document is organized into the
|
||||
following sections:
|
||||
@@ -175,7 +155,7 @@ EPSON printers are included that use these filters. </P>
|
||||
<LI>CUPS-IPP-1.1: CUPS Implmentation of IPP </LI>
|
||||
<LI>CUPS-SAM-1.1.x: CUPS Software Administrators Manual </LI>
|
||||
<LI>CUPS-SDD-1.1: CUPS Software Design Description </LI>
|
||||
<LI>CUPS-SPM-1.1.x: CUPS Software Programming Manual </LI>
|
||||
<LI>CUPS-SPM-1.1: CUPS Software Programming Manual </LI>
|
||||
<LI>CUPS-SSR-1.1: CUPS Software Security Report </LI>
|
||||
<LI>CUPS-STP-1.1: CUPS Software Test Plan </LI>
|
||||
<LI>CUPS-SUM-1.1.x: CUPS Software Users Manual </LI>
|
||||
@@ -184,39 +164,30 @@ EPSON printers are included that use these filters. </P>
|
||||
<H2><A NAME="2_2">2.2 Other Documents</A></H2>
|
||||
<P>The following non-CUPS documents are referenced by this document: </P>
|
||||
<UL>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/5003.PPD_Spec_v4.3.pdf">
|
||||
Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3.</A></LI>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/PLRM.pdf">
|
||||
Adobe PostScript Language Reference, Third Edition.</A></LI>
|
||||
<LI>Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3. </LI>
|
||||
<LI>Adobe PostScript Language Reference, Third Edition. </LI>
|
||||
<LI>IPP: Job and Printer Set Operations </LI>
|
||||
<LI>IPP/1.1: Encoding and Transport </LI>
|
||||
<LI>IPP/1.1: Implementers Guide </LI>
|
||||
<LI>IPP/1.1: Model and Semantics </LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc1179.txt">RFC 1179, Line
|
||||
Printer Daemon Protocol</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2567.txt">RFC 2567, Design
|
||||
Goals for an Internet Printing Protocol</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2568.txt">RFC 2568, Rationale
|
||||
for the Structure of the Model and Protocol</A> for the Internet
|
||||
Printing Protocol</LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2569.txt">RFC 2569, Mapping
|
||||
between LPD and IPP Protocols</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616, Hypertext
|
||||
Transfer Protocol -- HTTP/1.1</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2617.txt">RFC 2617, HTTP
|
||||
Authentication: Basic and Digest Access</A> Authentication </LI>
|
||||
<LI>RFC 1179, Line Printer Daemon Protocol </LI>
|
||||
<LI>RFC 2567, Design Goals for an Internet Printing Protocol </LI>
|
||||
<LI>RFC 2568, Rationale for the Structure of the Model and Protocol
|
||||
for the Internet Printing Protocol </LI>
|
||||
<LI>RFC 2569, Mapping between LPD and IPP Protocols </LI>
|
||||
<LI>RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1 </LI>
|
||||
<LI>RFC 2617, HTTP Authentication: Basic and Digest Access
|
||||
Authentication </LI>
|
||||
</UL>
|
||||
<H1><A NAME="3">3 Design Overview</A></H1>
|
||||
CUPS is composed of 9 software sub-systems that operate together to
|
||||
CUPS is composed of 7 software sub-systems that operate together to
|
||||
perform common printing tasks:
|
||||
<UL>
|
||||
<LI>Backends </LI>
|
||||
<LI>Berkeley Commands </LI>
|
||||
<LI>CGI </LI>
|
||||
<LI>CUPS Application Programmers Interface </LI>
|
||||
<LI>CUPS Imaging Library </LI>
|
||||
<LI>Daemons </LI>
|
||||
<LI>CUPS Interface Library </LI>
|
||||
<LI>Filters </LI>
|
||||
<LI>Scheduler </LI>
|
||||
<LI>System V Commands </LI>
|
||||
@@ -226,7 +197,7 @@ Authentication: Basic and Digest Access</A> Authentication </LI>
|
||||
interfaces. All backends are called with a common set of arguments:
|
||||
<UL>
|
||||
<LI>Device URI - the Uniform Resource Identifier for the output device
|
||||
(e.g. <CODE>parallel:/dev/plp</CODE>, <CODE> ipp://hostname/resource</CODE>
|
||||
(e.g. <CODE>parallel:/dev/plp</CODE>, <CODE>ipp://hostname/resource</CODE>
|
||||
). </LI>
|
||||
<LI>Job Identifier - the job identifier for this job (integer). </LI>
|
||||
<LI>User Name - the user associated with this job (name string). </LI>
|
||||
@@ -238,31 +209,31 @@ interfaces. All backends are called with a common set of arguments:
|
||||
specified, the backend must read the print file from the standard
|
||||
input. </LI>
|
||||
</UL>
|
||||
<P>Backends are named using the scheme of the URI, so a URI of
|
||||
"ipp://hostname/resource" would be processed by the "ipp" backend. </P>
|
||||
Backends are named using the method of the URI, so a URI of
|
||||
"ipp://hostname/resource" would be processed by the "ipp" backend.
|
||||
<H3><A NAME="3_1_1">3.1.1 ipp</A></H3>
|
||||
<P>The ipp backend sends the specified job to a network printer or host
|
||||
The ipp backend sends the specified job to a network printer or host
|
||||
using the Internet Printing Protocol. The URI is as specified by the <CODE>
|
||||
printer-uri-supported</CODE> attribute from the printer or host. </P>
|
||||
printer-uri-supported</CODE> attribute from the printer or host.
|
||||
<H3><A NAME="3_1_2">3.1.2 lpd</A></H3>
|
||||
<P>The lpd backend sends the specified job to a network printer or host
|
||||
using the Line Printer Daemon protocol. The URI is of the form: </P>
|
||||
The lpd backend sends the specified job to a network printer or host
|
||||
using the Line Printer Daemon protocol. The URI is of the form:
|
||||
<UL>
|
||||
<PRE>lpd://hostname/queue
|
||||
</PRE>
|
||||
</UL>
|
||||
<H3><A NAME="3_1_3">3.1.3 parallel</A></H3>
|
||||
<P>The parallel backend sends the specified job to a local printer
|
||||
The parallel backend sends the specified job to a local printer
|
||||
connected via the specified parallel port device. The URI is of the
|
||||
form: </P>
|
||||
form:
|
||||
<UL>
|
||||
<PRE>parallel:/dev/file
|
||||
</PRE>
|
||||
</UL>
|
||||
<H3><A NAME="3_1_4">3.1.4 serial</A></H3>
|
||||
<P>The serial backend sends the specified job to a local printer
|
||||
The serial backend sends the specified job to a local printer
|
||||
connected via the specified serial port device. The URI is of the
|
||||
form: </P>
|
||||
form:
|
||||
<UL>
|
||||
<PRE>serial:/dev/file?option[+option+...]
|
||||
</PRE>
|
||||
@@ -276,25 +247,18 @@ form: </P>
|
||||
<LI><CODE>parity=<I>none</I></CODE> - Turns parity checking off. </LI>
|
||||
</UL>
|
||||
<H3><A NAME="3_1_5">3.1.5 socket</A></H3>
|
||||
<P>The socket backend sends the specified job to a network host using
|
||||
the AppSocket protocol commonly used by Hewlett-Packard and Tektronix
|
||||
printers. The URI is of the form: </P>
|
||||
The socket backend sends the specified job to a network host using the
|
||||
AppSocket protocol commonly used by Hewlett-Packard and Tektronix
|
||||
printers. The URI is of the form:
|
||||
<UL>
|
||||
<PRE>socket://hostname[:port]
|
||||
</PRE>
|
||||
</UL>
|
||||
The default port number is 9100.
|
||||
<H3><A NAME="3_1_6">3.1.6 usb</A></H3>
|
||||
<P>The usb backend sends the specified job to a local printer connected
|
||||
via the specified usb port device. The URI is of the form: </P>
|
||||
<UL>
|
||||
<PRE>usb:/dev/file
|
||||
</PRE>
|
||||
</UL>
|
||||
<H2><A NAME="3_2">3.2 Berkeley Commands</A></H2>
|
||||
<P>The Berkeley commands provide a simple command-line interface to
|
||||
CUPS to submit and control print jobs. It is provided for compatibility
|
||||
with existing software that is hardcoded to use the Berkeley commands. </P>
|
||||
The Berkeley commands provide a simple command-line interface to CUPS
|
||||
to submit and control print jobs. It is provided for compatibility with
|
||||
existing software that is hard coded to use the Berkeley commands.
|
||||
<H3><A NAME="3_2_1">3.2.1 lpc</A></H3>
|
||||
The lpc command allows users and administrators to check the status
|
||||
and control print queues. The version provided with CUPS supports the
|
||||
@@ -303,95 +267,59 @@ following commands:
|
||||
<LI>quit - Quits the lpc command. </LI>
|
||||
<LI>status - Shows the status of printers and jobs in the queue. </LI>
|
||||
</UL>
|
||||
<H3><A NAME="3_2_2">3.2.2 lpq</A></H3>
|
||||
<P>The lpq command shows the current queue status. </P>
|
||||
<H3><A NAME="3_2_3">3.2.3 lpr</A></H3>
|
||||
<P>The lpr command submits a job for printing. The CUPS version of lpr
|
||||
silently ignores the "i", "t", "m", "h", and "s" options. </P>
|
||||
<H3><A NAME="3_2_4">3.2.4 lprm</A></H3>
|
||||
<P>The lprm removes one or more print jobs. </P>
|
||||
<H3><A NAME="3_2_2">3.2.2 lpr</A></H3>
|
||||
The lpr command submits a job for printing. The CUPS version of lpr
|
||||
silently ignores the "i", "t", "m", "h", and "s" options.
|
||||
<H3><A NAME="3_2_3">3.2.3 lprm</A></H3>
|
||||
The lprm removes one or more print jobs.
|
||||
<H2><A NAME="3_3">3.3 CGI</A></H2>
|
||||
<P>The Common Gateway Interface (CGI) programs provide a web-based
|
||||
status interface to monitor the status of printers, classes, and jobs.
|
||||
Each of the CGIs utilize HTML template files that can be customized to
|
||||
provide alternate appearances. </P>
|
||||
<H3><A NAME="3_3_1">3.3.1 admin.cgi</A></H3>
|
||||
<P>The admin CGI provides administration interfaces for printers and
|
||||
classes. The user can add, modify, delete, start, stop, and configure
|
||||
printers and classes using "wizard" interfaces. </P>
|
||||
<H3><A NAME="3_3_2">3.3.2 classes.cgi</A></H3>
|
||||
<P>The classes CGI lists the available printer classes and any pending
|
||||
The Common Gateway Interface (CGI) programs provide a web-based status
|
||||
interface to monitor the status of printers, classes, and jobs.
|
||||
<H3><A NAME="3_3_1">3.3.1 classes.cgi</A></H3>
|
||||
The classes CGI lists the available printer classes and any pending
|
||||
jobs for the class. The user can click on individual classes to limit
|
||||
the display and click on jobs to see the job status. </P>
|
||||
<H3><A NAME="3_3_3">3.3.3 jobs.cgi</A></H3>
|
||||
<P>The jobs CGI lists the queued print jobs in order of priority. The
|
||||
list can be limited by printer or job. </P>
|
||||
<H3><A NAME="3_3_4">3.3.4 printers.cgi</A></H3>
|
||||
<P>The printers CGI lists the available printer queues and any pending
|
||||
the display and click on jobs to see the job status.
|
||||
<H3><A NAME="3_3_2">3.3.2 jobs.cgi</A></H3>
|
||||
The jobs CGI lists the queued print jobs in order of priority. The
|
||||
list can be limited by printer or job. When the user displays the
|
||||
status of an individual print job all job options are displayed.
|
||||
<H3><A NAME="3_3_3">3.3.3 printers.cgi</A></H3>
|
||||
The printers CGI lists the available printer queues and any pending
|
||||
jobs for the printer. The user can click on individual printers to
|
||||
limit the display and click on jobs to see the job status. </P>
|
||||
<H2><A NAME="3_4">3.4 CUPS Application Programmers Interface</A></H2>
|
||||
<P>The CUPS Application Programmers Interface ("API") provides common
|
||||
convenience, HTTP, IPP, language, and PPD functions used by the CUPS
|
||||
software. </P>
|
||||
limit the display and click on jobs to see the job status.
|
||||
<H2><A NAME="3_4">3.4 CUPS Interface Library</A></H2>
|
||||
The CUPS interface library provides common convenience, HTTP, IPP,
|
||||
language, MIME, PPD, and raster functions used by the CUPS software.
|
||||
<H3><A NAME="3_4_1">3.4.1 Convenience Functions</A></H3>
|
||||
<P>Convenience functions are provided to submit an IPP request, send a
|
||||
Convenience functions are provided to submit an IPP request, send a
|
||||
print file, cancel a job, get a list of available printers, get a list
|
||||
of available classes, get the default printer or class, get the default
|
||||
server name, get the local username, and get a password string. </P>
|
||||
server name, get the local username, and get a password string.
|
||||
<H3><A NAME="3_4_2">3.4.2 HTTP Functions</A></H3>
|
||||
<P>The HTTP functions provide functions to connect to HTTP servers,
|
||||
issue requests, read data from a server, and write data to a server. </P>
|
||||
The HTTP functions provide functions to connect to HTTP servers, issue
|
||||
requests, read data from a server, and write data to a server.
|
||||
<H3><A NAME="3_4_3">3.4.3 IPP Functions</A></H3>
|
||||
<P>The IPP function provide functions to manage IPP request data and
|
||||
The IPP function provide functions to manage IPP request data and
|
||||
attributes, read IPP responses from a server, and write IPP requests to
|
||||
a server. </P>
|
||||
a server.
|
||||
<H3><A NAME="3_4_4">3.4.4 Language Functions</A></H3>
|
||||
<P>The language functions provide a standard interface for retrieving
|
||||
The language functions provide a standard interface for retrieving
|
||||
common textual messages for a particular locale and determining the
|
||||
correct encoding (e.g. US ASCII, UTF-8, ISO-8859-1, etc.) </P>
|
||||
<H3><A NAME="3_4_5">3.4.5 PPD Functions</A></H3>
|
||||
<P>The PostScript Printer Description functions manage PPD files,
|
||||
select options, check for option conflicts, and emit selected options
|
||||
in the correct order. </P>
|
||||
<H2><A NAME="3_5">3.5 CUPS Imaging Library</A></H2>
|
||||
<P>The CUPS imaging library provides colorspace conversion, color
|
||||
management, image management, scaling, image file, and raster functions
|
||||
used by the CUPS raster filters. </P>
|
||||
<H3><A NAME="3_5_1">3.5.1 Colorspace Conversion Functions</A></H3>
|
||||
<P>The colorspace conversion functions handle conversion of grayscale
|
||||
and RGB colors to grayscale, RGB, K, CMY, CMYK, and CMYKcm colorspaces. </P>
|
||||
<H3><A NAME="3_5_2">3.5.2 Color Management Functions</A></H3>
|
||||
<P>The color management functions handle gamut mapping and density
|
||||
correction. These are integrated with the colorspace conversion
|
||||
functions so that colorspace conversion and color management are
|
||||
processed in a single step. </P>
|
||||
<H3><A NAME="3_5_3">3.5.3 Image Management Functions</A></H3>
|
||||
<P>The image management functions manage a tiled image database that is
|
||||
swapped to/from disk as needed. </P>
|
||||
<H3><A NAME="3_5_4">3.5.4 Scaling Functions</A></H3>
|
||||
<P>The scaling functions provide image scaling services using
|
||||
nearest-neighbor sampling and bilinear interpolation as appropriate. </P>
|
||||
<H3><A NAME="3_5_5">3.5.5 Image File Functions</A></H3>
|
||||
<P>The image file functions handle loading of all image file formats. </P>
|
||||
<H3><A NAME="3_5_6">3.5.6 Raster Functions</A></H3>
|
||||
<P>The raster functions manage streams of CUPS raster data (described
|
||||
in the Interface Design Document) used by non-PostScript printer
|
||||
drivers and raster filters. </P>
|
||||
<H2><A NAME="3_6">3.6 Daemons</A></H2>
|
||||
<P>The daemons provide additional network functions for the scheduler.
|
||||
Currently only two daemons are provided with CUPS. </P>
|
||||
<H3><A NAME="3_6_1">3.6.1 Line Printer Daemon</A></H3>
|
||||
<P>The line printer daemon provides remote LPD client support and is
|
||||
run by the <CODE>inetd(8)</CODE> daemon as needed. </P>
|
||||
<H3><A NAME="3_6_2">3.6.2 Polling Daemon</A></H3>
|
||||
<P>The polling daemon is used to poll a remote server for a list of
|
||||
available printers and provide it to the scheduler for addition. A
|
||||
separate polling daemon is run by the scheduler for every remote system
|
||||
listed for polling in the scheduler configuration file. </P>
|
||||
<H2><A NAME="3_7">3.7 Filters</A></H2>
|
||||
<P>The filters implement file conversion services for CUPS. All filters
|
||||
are called with a common set of arguments: </P>
|
||||
correct encoding (e.g. US ASCII, ISO-8859-1, etc.)
|
||||
<H3><A NAME="3_4_5">3.4.5 MIME Functions</A></H3>
|
||||
The Multimedia Internet Mail Exchange functions manage a MIME type and
|
||||
conversion database that supports file typing by extension and content,
|
||||
and least-cost file filtering from a source to a destination file type.
|
||||
<H3><A NAME="3_4_6">3.4.6 PPD Functions</A></H3>
|
||||
The PostScript Printer Description functions manage PPD files, select
|
||||
options, check for option conflicts, and emit selected options in the
|
||||
correct order.
|
||||
<H3><A NAME="3_4_7">3.4.7 Raster Functions</A></H3>
|
||||
The raster functions manage streams of CUPS raster data (described in
|
||||
the Interface Design Document) used by non-PostScript printer drivers.
|
||||
<H2><A NAME="3_5">3.5 Filters</A></H2>
|
||||
The filters implement file conversion services for CUPS. All filters
|
||||
are called with a common set of arguments:
|
||||
<UL>
|
||||
<LI>Printer name - the name of the destination printer (name string). </LI>
|
||||
<LI>Job Identifier - the job identifier for this job (integer). </LI>
|
||||
@@ -404,138 +332,115 @@ are called with a common set of arguments: </P>
|
||||
specified, the filter must read the input file from the standard
|
||||
input. </LI>
|
||||
</UL>
|
||||
<P>Filters are added to the MIME conversion data file and implement all
|
||||
necessary conversions from one file type to another. </P>
|
||||
<H3><A NAME="3_7_1">3.7.1 hpgltops</A></H3>
|
||||
<P>The hpgltops filter converts HP-GL/2 files into PostScript. </P>
|
||||
<H3><A NAME="3_7_2">3.7.2 imagetops</A></H3>
|
||||
<P>The imagetops filter converts image files into PostScript. </P>
|
||||
<H3><A NAME="3_7_3">3.7.3 imagetoraster</A></H3>
|
||||
<P>The imagetoraster filter converts image files into CUPS raster data. </P>
|
||||
<H3><A NAME="3_7_4">3.7.4 pdftops</A></H3>
|
||||
<P>The pdftops filter converts PDF files into PostScript. </P>
|
||||
<H3><A NAME="3_7_5">3.7.5 pstops</A></H3>
|
||||
<P>The pstops filter inserts printer-specific commands from PPD files
|
||||
and performs page filtering as requested by the user. </P>
|
||||
<H3><A NAME="3_7_6">3.7.6 pstoraster</A></H3>
|
||||
<P>The pstoraster filter converts PostScript program data into CUPS
|
||||
raster data. </P>
|
||||
<H3><A NAME="3_7_7">3.7.7 rastertoepson</A></H3>
|
||||
<P>The rastertoepson filter handles converting CUPS raster data to
|
||||
ESC/P and supports both color and black-and-white printers. </P>
|
||||
<H3><A NAME="3_7_8">3.7.8 rastertohp</A></H3>
|
||||
<P>The rastertohp filter handles converting CUPS raster data to HP-PCL
|
||||
and supports both color and black-and-white printers. </P>
|
||||
<H3><A NAME="3_7_9">3.7.9 texttops</A></H3>
|
||||
<P>The texttops filter converts text files into PostScript. </P>
|
||||
<H2><A NAME="3_8">3.8 Scheduler</A></H2>
|
||||
<P>The scheduler is a fully-functional HTTP/1.1 and IPP/1.1 server that
|
||||
Filters are added to the MIME conversion data file and implement all
|
||||
necessary conversions from one file type to another.
|
||||
<H3><A NAME="3_5_1">3.5.1 hpgltops</A></H3>
|
||||
The hpgltops filter converts HP-GL/2 files into PostScript.
|
||||
<H3><A NAME="3_5_2">3.5.2 imagetops</A></H3>
|
||||
The imagetops filter converts image files into PostScript.
|
||||
<H3><A NAME="3_5_3">3.5.3 imagetoraster</A></H3>
|
||||
The imagetoraster filter converts image files into CUPS raster data.
|
||||
<H3><A NAME="3_5_4">3.5.4 pstops</A></H3>
|
||||
The pstops filter inserts printer-specific commands from PPD files and
|
||||
performs page filtering as requested by the user.
|
||||
<H3><A NAME="3_5_5">3.5.5 pstoraster</A></H3>
|
||||
The pstoraster filter converts PostScript program data into CUPS
|
||||
raster data.
|
||||
<H3><A NAME="3_5_6">3.5.6 rastertohp</A></H3>
|
||||
The rastertohp filter handles converting CUPS raster data to HP PCL
|
||||
and supports both color and black-and-white printers.
|
||||
<H3><A NAME="3_5_7">3.5.7 texttops</A></H3>
|
||||
The texttops filter converts text files into PostScript.
|
||||
<H2><A NAME="3_6">3.6 Scheduler</A></H2>
|
||||
The scheduler is a fully-functional HTTP/1.1 and IPP/1.1 server that
|
||||
manages the printers, classes, and jobs in the system. It also handles
|
||||
a simple broadcast-based directory service so that remote print queues
|
||||
and classes can be accessed transparently from the local system. </P>
|
||||
<H3><A NAME="3_8_1">3.8.1 Authorization</A></H3>
|
||||
<P>The authorization module is responsible for performing access
|
||||
control and authentication for all HTTP and IPP requests entering the
|
||||
system. </P>
|
||||
<H3><A NAME="3_8_2">3.8.2 Classes</A></H3>
|
||||
<P>The classes module is responsible for managing printer classes in
|
||||
the system. Each class is a collection of local and/or remote printers.
|
||||
and classes can be accessed transparently from the local system.
|
||||
<H3><A NAME="3_6_1">3.6.1 Authorization</A></H3>
|
||||
The authorization module is responsible for performing access control
|
||||
and authentication for all HTTP and IPP requests entering the system.
|
||||
<H3><A NAME="3_6_2">3.6.2 Classes</A></H3>
|
||||
The classes module is responsible for managing printer classes in the
|
||||
system. Each class is a collection of local and/or remote printers.
|
||||
The classes module also reads and writes the classes configuration
|
||||
file. </P>
|
||||
<H3><A NAME="3_8_3">3.8.3 Client</A></H3>
|
||||
<P>The client module is responsible for all HTTP client communications.
|
||||
file.
|
||||
<H3><A NAME="3_6_3">3.6.3 Client</A></H3>
|
||||
The client module is responsible for all HTTP client communications.
|
||||
It handles listening on selected interfaces, accepting connections
|
||||
from prospective clients, processing incoming HTTP requests, and
|
||||
sending HTTP responses to those requests. The client module also is
|
||||
responsible for executing the external CGI programs as needed to
|
||||
support web-based printer, class, and job status monitoring and
|
||||
administration. </P>
|
||||
support web-based printer, class, and job status monitoring.
|
||||
<P>Once authorized, all IPP requests are sent to the IPP module. </P>
|
||||
<H3><A NAME="3_8_4">3.8.4 Configuration</A></H3>
|
||||
<P>The configuration module is responsible for reading the CUPS
|
||||
<H3><A NAME="3_6_4">3.6.4 Configuration</A></H3>
|
||||
The configuration module is responsible for reading the CUPS
|
||||
configuration file and initializing the appropriate data structures and
|
||||
values. The configuration module also stops CUPS services before
|
||||
reading the configuration file and restarts them after the
|
||||
configuration file has been read. </P>
|
||||
<H3><A NAME="3_8_5">3.8.5 Devices</A></H3>
|
||||
<P>The devices module is responsible for managing the list of available
|
||||
devices for the CUPS-Get-Devices operation. </P>
|
||||
<H3><A NAME="3_8_6">3.8.6 Directory Services</A></H3>
|
||||
<P>The directory services module sends and recieves printer state
|
||||
configuration file has been read.
|
||||
<H3><A NAME="3_6_5">3.6.5 Directory Services</A></H3>
|
||||
The directory services module sends and recieves printer state
|
||||
information over a broadcast socket. Remote printers and classes are
|
||||
automatically added to or removed from the local printer and class
|
||||
lists as needed. </P>
|
||||
lists as needed.
|
||||
<P>The directory services module can only recieve printer state
|
||||
information over a single UDP port, however it can broadcast to
|
||||
multiple addresses and ports as needed. </P>
|
||||
<H3><A NAME="3_8_7">3.8.7 IPP</A></H3>
|
||||
<P>The IPP module handles IPP requests and acts accordingly. URI
|
||||
<H3><A NAME="3_6_6">3.6.6 IPP</A></H3>
|
||||
The IPP module handles IPP requests and acts accordingly. URI
|
||||
validation is also performed here, as a client can post IPP data to any
|
||||
URI on the server which might sidestep the access control or
|
||||
authentication of the HTTP server. </P>
|
||||
<H3><A NAME="3_8_8">3.8.8 Jobs</A></H3>
|
||||
<P>The jobs module manages print jobs, starts filter and backend
|
||||
authentication of the HTTP server.
|
||||
<H3><A NAME="3_6_7">3.6.7 Jobs</A></H3>
|
||||
The jobs module manages print jobs, starts filter and backend
|
||||
processes for jobs to be printed, and monitors status messages from
|
||||
those filters and backends. </P>
|
||||
<H3><A NAME="3_8_9">3.8.9 Logging</A></H3>
|
||||
<P>The logging module manages the access, error, and page log files
|
||||
that are generated by the scheduler. </P>
|
||||
<H3><A NAME="3_8_10">3.8.10 Main</A></H3>
|
||||
<P>The main module is responsible for timing out and dispatching input
|
||||
those filters and backends.
|
||||
<H3><A NAME="3_6_8">3.6.8 Logging</A></H3>
|
||||
The logging module manages the access, error, and page log files that
|
||||
are generated by the scheduler.
|
||||
<H3><A NAME="3_6_9">3.6.9 Main</A></H3>
|
||||
The main module is responsible for timing out and dispatching input
|
||||
and output for client connections. It also watches for incoming <CODE>
|
||||
SIGHUP</CODE> and <CODE>SIGCHLD</CODE> signals, reloads the server
|
||||
configuration files as needed, and handles child process errors and
|
||||
exits. </P>
|
||||
<H3><A NAME="3_8_11">3.8.11 MIME</A></H3>
|
||||
<P>The Multimedia Internet Mail Exchange module manages a MIME type and
|
||||
conversion database that supports file typing by extension and content
|
||||
and least-cost file filtering from a source to a destination file type. </P>
|
||||
<H3><A NAME="3_8_12">3.8.12 PPDs</A></H3>
|
||||
<P>The PPDs module is responsible for managing the list of available
|
||||
PPD files for the CUPS-Get-PPDs operation. </P>
|
||||
<H3><A NAME="3_8_13">3.8.13 Printers</A></H3>
|
||||
<P>The printers module is responsible for managing printers and PPD
|
||||
files in the system. The printers module also reads and writes the
|
||||
printers configuration file. </P>
|
||||
<H2><A NAME="3_9">3.9 System V Commands</A></H2>
|
||||
<P>The System V commands provide a robust command-line interface to
|
||||
CUPS to submit and control printers and jobs. </P>
|
||||
<H3><A NAME="3_9_1">3.9.1 accept</A></H3>
|
||||
<P>The accept command tells the scheduler to accept new jobs for
|
||||
specific printers. </P>
|
||||
<H3><A NAME="3_9_2">3.9.2 cancel</A></H3>
|
||||
<P>The cancel command tells the scheduler to cancel one or more jobs
|
||||
that are queued for printing. </P>
|
||||
<H3><A NAME="3_9_3">3.9.3 disable</A></H3>
|
||||
<P>The disable command tells the scheduler to stop printing jobs on the
|
||||
specified printers. </P>
|
||||
<H3><A NAME="3_9_4">3.9.4 enable</A></H3>
|
||||
<P>The enable command tells the scheduler to start printing jobs on the
|
||||
specified printers. </P>
|
||||
<H3><A NAME="3_9_5">3.9.5 lp</A></H3>
|
||||
<P>The lp command submits submits files for printing. Unlike the
|
||||
exits.
|
||||
<H3><A NAME="3_6_10">3.6.10 Printers</A></H3>
|
||||
The printers module is responsible for managing printers and PPD files
|
||||
in the system. The printers module also reads and writes the printers
|
||||
configuration file.
|
||||
<H2><A NAME="3_7">3.7 System V Commands</A></H2>
|
||||
The System V commands provide a robust command-line interface to CUPS
|
||||
to submit and control printers and jobs.
|
||||
<H3><A NAME="3_7_1">3.7.1 accept</A></H3>
|
||||
The accept command tells the scheduler to accept new jobs for specific
|
||||
printers.
|
||||
<H3><A NAME="3_7_2">3.7.2 cancel</A></H3>
|
||||
The cancel command tells the scheduler to cancel one or more jobs that
|
||||
are queued for printing.
|
||||
<H3><A NAME="3_7_3">3.7.3 disable</A></H3>
|
||||
The disable command tells the scheduler to stop printing jobs on the
|
||||
specified printers.
|
||||
<H3><A NAME="3_7_4">3.7.4 enable</A></H3>
|
||||
The enable command tells the scheduler to start printing jobs on the
|
||||
specified printers.
|
||||
<H3><A NAME="3_7_5">3.7.5 lp</A></H3>
|
||||
The lp command submits submits files for printing. Unlike the
|
||||
standard System V lp command, a single CUPS lp command will generate a
|
||||
separate job ID for each file that is printed. Also, the Solaris "f",
|
||||
"H", "P", "S", and "y" options are silently ignored. </P>
|
||||
<H3><A NAME="3_9_6">3.9.6 lpadmin</A></H3>
|
||||
<P>The lpadmin command manages printer queues and classes. The Solaris
|
||||
"H", "P", "S", and "y" options are silently ignored.
|
||||
<H3><A NAME="3_7_6">3.7.6 lpadmin</A></H3>
|
||||
The lpadmin command manages printer queues and classes. The Solaris
|
||||
"A", "F", "I", "M", "P", "Q", "S", "T", "U", "W", "f", "l", "m", "o",
|
||||
"s", "t", and "u" options are not supported, and new options "P" (PPD
|
||||
file) and "E" (enable and accept) are provided to configure
|
||||
CUPS-specific features. </P>
|
||||
<H3><A NAME="3_9_7">3.9.7 lpinfo</A></H3>
|
||||
<P>The lpinfo command lists the available PPD files or devices as
|
||||
selected by the user. </P>
|
||||
<H3><A NAME="3_9_8">3.9.8 lpmove</A></H3>
|
||||
<P>The lpmove command moves a print job to a new destination. </P>
|
||||
<H3><A NAME="3_9_9">3.9.9 lpoptions</A></H3>
|
||||
<P>The lpoptions command manages user-defined printers and options. </P>
|
||||
<H3><A NAME="3_9_10">3.9.10 lpstat</A></H3>
|
||||
<P>The lpstat command lists printers, classes, and jobs as requested by
|
||||
the user. </P>
|
||||
<H3><A NAME="3_9_11">3.9.11 reject</A></H3>
|
||||
<P>The reject command tells the scheduler not to accept new jobs for
|
||||
specific printers. </P>
|
||||
file), "F" (filter), and "E" (enable and accept) are provided to
|
||||
configure CUPS-specific features such as PPD file and conversion
|
||||
filters.
|
||||
<H3><A NAME="3_7_7">3.7.7 lpstat</A></H3>
|
||||
The lpstat command lists printers, classes, and jobs as requested by
|
||||
the user.
|
||||
<H3><A NAME="3_7_8">3.7.8 reject</A></H3>
|
||||
The reject command tells the scheduler not to accept new jobs for
|
||||
specific printers.
|
||||
<H1 TYPE="A" VALUE="1"><A NAME="4">A Glossary</A></H1>
|
||||
<H2><A NAME="4_1">A.1 Terms</A></H2>
|
||||
<DL>
|
||||
@@ -563,7 +468,7 @@ specific printers. </P>
|
||||
<DT>HP-GL </DT>
|
||||
<DD>Hewlett-Packard Graphics Language </DD>
|
||||
<DT>HP-PCL </DT>
|
||||
<DD>Hewlett-Packard Page Control Language </DD>
|
||||
<DD>Hewlett-Packard Printer Control Language </DD>
|
||||
<DT>HP-PJL </DT>
|
||||
<DD>Hewlett-Packard Printer Job Language </DD>
|
||||
<DT>IETF </DT>
|
||||
@@ -576,6 +481,8 @@ specific printers. </P>
|
||||
<DD>Line Printer Daemon </DD>
|
||||
<DT>MIME </DT>
|
||||
<DD>Multimedia Internet Mail Exchange </DD>
|
||||
<DT>PCL </DT>
|
||||
<DD>Page Control Language </DD>
|
||||
<DT>PPD </DT>
|
||||
<DD>PostScript Printer Description </DD>
|
||||
<DT>SMB </DT>
|
||||
|
||||
+636
-864
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+103
-218
@@ -11,7 +11,7 @@
|
||||
|
||||
<H2>Identification</H2>
|
||||
|
||||
This software design description document provides general information
|
||||
This software design description document provides detailed information
|
||||
on the architecture and coding of the Common UNIX Printing System
|
||||
("CUPS") Version 1.1.
|
||||
|
||||
@@ -38,7 +38,7 @@ following sections:
|
||||
|
||||
<H1>Design Overview</H1>
|
||||
|
||||
CUPS is composed of 9 software sub-systems that operate together to
|
||||
CUPS is composed of 7 software sub-systems that operate together to
|
||||
perform common printing tasks:
|
||||
|
||||
<UL>
|
||||
@@ -49,11 +49,7 @@ perform common printing tasks:
|
||||
|
||||
<LI>CGI
|
||||
|
||||
<LI>CUPS Application Programmers Interface
|
||||
|
||||
<LI>CUPS Imaging Library
|
||||
|
||||
<LI>Daemons
|
||||
<LI>CUPS Interface Library
|
||||
|
||||
<LI>Filters
|
||||
|
||||
@@ -91,18 +87,18 @@ All backends are called with a common set of arguments:
|
||||
|
||||
</UL>
|
||||
|
||||
<P>Backends are named using the scheme of the URI, so a URI of
|
||||
Backends are named using the method of the URI, so a URI of
|
||||
"ipp://hostname/resource" would be processed by the "ipp" backend.
|
||||
|
||||
<H3>ipp</H3>
|
||||
|
||||
<P>The ipp backend sends the specified job to a network printer or host using
|
||||
The ipp backend sends the specified job to a network printer or host using
|
||||
the Internet Printing Protocol. The URI is as specified by the
|
||||
<CODE>printer-uri-supported</CODE> attribute from the printer or host.
|
||||
|
||||
<H3>lpd</H3>
|
||||
|
||||
<P>The lpd backend sends the specified job to a network printer or host using
|
||||
The lpd backend sends the specified job to a network printer or host using
|
||||
the Line Printer Daemon protocol. The URI is of the form:
|
||||
|
||||
<UL><PRE>lpd://hostname/queue
|
||||
@@ -110,7 +106,7 @@ the Line Printer Daemon protocol. The URI is of the form:
|
||||
|
||||
<H3>parallel</H3>
|
||||
|
||||
<P>The parallel backend sends the specified job to a local printer connected
|
||||
The parallel backend sends the specified job to a local printer connected
|
||||
via the specified parallel port device. The URI is of the form:
|
||||
|
||||
<UL><PRE>parallel:/dev/file
|
||||
@@ -118,7 +114,7 @@ via the specified parallel port device. The URI is of the form:
|
||||
|
||||
<H3>serial</H3>
|
||||
|
||||
<P>The serial backend sends the specified job to a local printer connected
|
||||
The serial backend sends the specified job to a local printer connected
|
||||
via the specified serial port device. The URI is of the form:
|
||||
|
||||
<UL><PRE>serial:/dev/file?option[+option+...]
|
||||
@@ -142,7 +138,7 @@ The options can be any combination of the following:
|
||||
|
||||
<H3>socket</H3>
|
||||
|
||||
<P>The socket backend sends the specified job to a network host using the
|
||||
The socket backend sends the specified job to a network host using the
|
||||
AppSocket protocol commonly used by Hewlett-Packard and Tektronix
|
||||
printers. The URI is of the form:
|
||||
|
||||
@@ -151,19 +147,11 @@ printers. The URI is of the form:
|
||||
|
||||
The default port number is 9100.
|
||||
|
||||
<H3>usb</H3>
|
||||
|
||||
<P>The usb backend sends the specified job to a local printer connected
|
||||
via the specified usb port device. The URI is of the form:
|
||||
|
||||
<UL><PRE>usb:/dev/file
|
||||
</PRE></UL>
|
||||
|
||||
<H2>Berkeley Commands</H2>
|
||||
|
||||
<P>The Berkeley commands provide a simple command-line interface to CUPS
|
||||
The Berkeley commands provide a simple command-line interface to CUPS
|
||||
to submit and control print jobs. It is provided for compatibility with
|
||||
existing software that is hardcoded to use the Berkeley commands.
|
||||
existing software that is hard coded to use the Berkeley commands.
|
||||
|
||||
<H3>lpc</H3>
|
||||
|
||||
@@ -179,143 +167,85 @@ commands:
|
||||
|
||||
</UL>
|
||||
|
||||
<H3>lpq</H3>
|
||||
|
||||
<P>The lpq command shows the current queue status.
|
||||
|
||||
<H3>lpr</H3>
|
||||
|
||||
<P>The lpr command submits a job for printing. The CUPS version of lpr silently
|
||||
The lpr command submits a job for printing. The CUPS version of lpr silently
|
||||
ignores the "i", "t", "m", "h", and "s" options.
|
||||
|
||||
<H3>lprm</H3>
|
||||
|
||||
<P>The lprm removes one or more print jobs.
|
||||
The lprm removes one or more print jobs.
|
||||
|
||||
<H2>CGI</H2>
|
||||
|
||||
<P>The Common Gateway Interface (CGI) programs provide a web-based
|
||||
status interface to monitor the status of printers, classes, and jobs.
|
||||
Each of the CGIs utilize HTML template files that can be customized to
|
||||
provide alternate appearances.
|
||||
|
||||
<H3>admin.cgi</H3>
|
||||
|
||||
<P>The admin CGI provides administration interfaces for printers and
|
||||
classes. The user can add, modify, delete, start, stop, and configure
|
||||
printers and classes using "wizard" interfaces.
|
||||
The Common Gateway Interface (CGI) programs provide a web-based status interface
|
||||
to monitor the status of printers, classes, and jobs.
|
||||
|
||||
<H3>classes.cgi</H3>
|
||||
|
||||
<P>The classes CGI lists the available printer classes and any pending
|
||||
jobs for the class. The user can click on individual classes to limit
|
||||
the display and click on jobs to see the job status.
|
||||
The classes CGI lists the available printer classes and any pending jobs for
|
||||
the class. The user can click on individual classes to limit the display and
|
||||
click on jobs to see the job status.
|
||||
|
||||
<H3>jobs.cgi</H3>
|
||||
|
||||
<P>The jobs CGI lists the queued print jobs in order of priority. The
|
||||
list can be limited by printer or job.
|
||||
The jobs CGI lists the queued print jobs in order of priority. The list can
|
||||
be limited by printer or job. When the user displays the status of an
|
||||
individual print job all job options are displayed.
|
||||
|
||||
<H3>printers.cgi</H3>
|
||||
|
||||
<P>The printers CGI lists the available printer queues and any pending
|
||||
jobs for the printer. The user can click on individual printers to
|
||||
limit the display and click on jobs to see the job status.
|
||||
The printers CGI lists the available printer queues and any pending jobs for
|
||||
the printer. The user can click on individual printers to limit the display and
|
||||
click on jobs to see the job status.
|
||||
|
||||
<H2>CUPS Application Programmers Interface</H2>
|
||||
<H2>CUPS Interface Library</H2>
|
||||
|
||||
<P>The CUPS Application Programmers Interface ("API") provides common
|
||||
convenience, HTTP, IPP, language, and PPD functions used by the CUPS
|
||||
software.
|
||||
The CUPS interface library provides common convenience, HTTP, IPP,
|
||||
language, MIME, PPD, and raster functions used by the CUPS software.
|
||||
|
||||
<H3>Convenience Functions</H3>
|
||||
|
||||
<P>Convenience functions are provided to submit an IPP request, send a
|
||||
print file, cancel a job, get a list of available printers, get a list
|
||||
of available classes, get the default printer or class, get the default
|
||||
server name, get the local username, and get a password string.
|
||||
Convenience functions are provided to submit an IPP request, send a print file,
|
||||
cancel a job, get a list of available printers, get a list of available
|
||||
classes, get the default printer or class, get the default server name, get
|
||||
the local username, and get a password string.
|
||||
|
||||
<H3>HTTP Functions</H3>
|
||||
|
||||
<P>The HTTP functions provide functions to connect to HTTP servers,
|
||||
issue requests, read data from a server, and write data to a server.
|
||||
The HTTP functions provide functions to connect to HTTP servers, issue requests,
|
||||
read data from a server, and write data to a server.
|
||||
|
||||
<H3>IPP Functions</H3>
|
||||
|
||||
<P>The IPP function provide functions to manage IPP request data and
|
||||
attributes, read IPP responses from a server, and write IPP requests to
|
||||
a server.
|
||||
The IPP function provide functions to manage IPP request data and attributes,
|
||||
read IPP responses from a server, and write IPP requests to a server.
|
||||
|
||||
<H3>Language Functions</H3>
|
||||
|
||||
<P>The language functions provide a standard interface for retrieving
|
||||
common textual messages for a particular locale and determining the
|
||||
correct encoding (e.g. US ASCII, UTF-8, ISO-8859-1, etc.)
|
||||
The language functions provide a standard interface for retrieving common
|
||||
textual messages for a particular locale and determining the correct encoding
|
||||
(e.g. US ASCII, ISO-8859-1, etc.)
|
||||
|
||||
<H3>MIME Functions</H3>
|
||||
|
||||
The Multimedia Internet Mail Exchange functions manage a MIME type and
|
||||
conversion database that supports file typing by extension and content, and
|
||||
least-cost file filtering from a source to a destination file type.
|
||||
|
||||
<H3>PPD Functions</H3>
|
||||
|
||||
<P>The PostScript Printer Description functions manage PPD files,
|
||||
select options, check for option conflicts, and emit selected options
|
||||
in the correct order.
|
||||
|
||||
<H2>CUPS Imaging Library</H2>
|
||||
|
||||
<P>The CUPS imaging library provides colorspace conversion, color
|
||||
management, image management, scaling, image file, and raster functions
|
||||
used by the CUPS raster filters.
|
||||
|
||||
<H3>Colorspace Conversion Functions</H3>
|
||||
|
||||
<P>The colorspace conversion functions handle conversion of grayscale
|
||||
and RGB colors to grayscale, RGB, K, CMY, CMYK, and CMYKcm colorspaces.
|
||||
|
||||
<H3>Color Management Functions</H3>
|
||||
|
||||
<P>The color management functions handle gamut mapping and density
|
||||
correction. These are integrated with the colorspace conversion
|
||||
functions so that colorspace conversion and color management are
|
||||
processed in a single step.
|
||||
|
||||
<H3>Image Management Functions</H3>
|
||||
|
||||
<P>The image management functions manage a tiled image database that is
|
||||
swapped to/from disk as needed.
|
||||
|
||||
<H3>Scaling Functions</H3>
|
||||
|
||||
<P>The scaling functions provide image scaling services using
|
||||
nearest-neighbor sampling and bilinear interpolation as appropriate.
|
||||
|
||||
<H3>Image File Functions</H3>
|
||||
|
||||
<P>The image file functions handle loading of all image file formats.
|
||||
The PostScript Printer Description functions manage PPD files, select options,
|
||||
check for option conflicts, and emit selected options in the correct order.
|
||||
|
||||
<H3>Raster Functions</H3>
|
||||
|
||||
<P>The raster functions manage streams of CUPS raster data (described
|
||||
in the Interface Design Document) used by non-PostScript printer
|
||||
drivers and raster filters.
|
||||
|
||||
<H2>Daemons</H2>
|
||||
|
||||
<P>The daemons provide additional network functions for the scheduler.
|
||||
Currently only two daemons are provided with CUPS.
|
||||
|
||||
<H3>Line Printer Daemon</H3>
|
||||
|
||||
<P>The line printer daemon provides remote LPD client support and is
|
||||
run by the <CODE>inetd(8)</CODE> daemon as needed.
|
||||
|
||||
<H3>Polling Daemon</H3>
|
||||
|
||||
<P>The polling daemon is used to poll a remote server for a list of
|
||||
available printers and provide it to the scheduler for addition. A
|
||||
separate polling daemon is run by the scheduler for every remote
|
||||
system listed for polling in the scheduler configuration file.
|
||||
The raster functions manage streams of CUPS raster data (described in the
|
||||
Interface Design Document) used by non-PostScript printer drivers.
|
||||
|
||||
<H2>Filters</H2>
|
||||
|
||||
<P>The filters implement file conversion services for CUPS. All filters
|
||||
The filters implement file conversion services for CUPS. All filters
|
||||
are called with a common set of arguments:
|
||||
|
||||
<UL>
|
||||
@@ -339,100 +269,80 @@ are called with a common set of arguments:
|
||||
|
||||
</UL>
|
||||
|
||||
<P>Filters are added to the MIME conversion data file and implement all
|
||||
necessary conversions from one file type to another.
|
||||
Filters are added to the MIME conversion data file and implement all necessary
|
||||
conversions from one file type to another.
|
||||
|
||||
<H3>hpgltops</H3>
|
||||
|
||||
<P>The hpgltops filter converts HP-GL/2 files into PostScript.
|
||||
The hpgltops filter converts HP-GL/2 files into PostScript.
|
||||
|
||||
<H3>imagetops</H3>
|
||||
|
||||
<P>The imagetops filter converts image files into PostScript.
|
||||
The imagetops filter converts image files into PostScript.
|
||||
|
||||
<H3>imagetoraster</H3>
|
||||
|
||||
<P>The imagetoraster filter converts image files into CUPS raster data.
|
||||
|
||||
<H3>pdftops</H3>
|
||||
|
||||
<P>The pdftops filter converts PDF files into PostScript.
|
||||
The imagetoraster filter converts image files into CUPS raster data.
|
||||
|
||||
<H3>pstops</H3>
|
||||
|
||||
<P>The pstops filter inserts printer-specific commands from PPD files and
|
||||
The pstops filter inserts printer-specific commands from PPD files and
|
||||
performs page filtering as requested by the user.
|
||||
|
||||
<H3>pstoraster</H3>
|
||||
|
||||
<P>The pstoraster filter converts PostScript program data into CUPS
|
||||
raster data.
|
||||
|
||||
<H3>rastertoepson</H3>
|
||||
|
||||
<P>The rastertoepson filter handles converting CUPS raster data to
|
||||
ESC/P and supports both color and black-and-white printers.
|
||||
The pstoraster filter converts PostScript program data into CUPS raster data.
|
||||
|
||||
<H3>rastertohp</H3>
|
||||
|
||||
<P>The rastertohp filter handles converting CUPS raster data to HP-PCL
|
||||
and supports both color and black-and-white printers.
|
||||
The rastertohp filter handles converting CUPS raster data to HP PCL and
|
||||
supports both color and black-and-white printers.
|
||||
|
||||
<H3>texttops</H3>
|
||||
|
||||
<P>The texttops filter converts text files into PostScript.
|
||||
The texttops filter converts text files into PostScript.
|
||||
|
||||
<H2>Scheduler</H2>
|
||||
|
||||
<P>The scheduler is a fully-functional HTTP/1.1 and IPP/1.1 server that
|
||||
The scheduler is a fully-functional HTTP/1.1 and IPP/1.1 server that
|
||||
manages the printers, classes, and jobs in the system. It also handles
|
||||
a simple broadcast-based directory service so that remote print queues
|
||||
and classes can be accessed transparently from the local system.
|
||||
|
||||
<H3>Authorization</H3>
|
||||
|
||||
<P>The authorization module is responsible for performing access
|
||||
control and authentication for all HTTP and IPP requests entering the
|
||||
system.
|
||||
The authorization module is responsible for performing access control and
|
||||
authentication for all HTTP and IPP requests entering the system.
|
||||
|
||||
<H3>Classes</H3>
|
||||
|
||||
<P>The classes module is responsible for managing printer classes in
|
||||
the system. Each class is a collection of local and/or remote
|
||||
printers. The classes module also reads and writes the classes
|
||||
configuration file.
|
||||
The classes module is responsible for managing printer classes in the system.
|
||||
Each class is a collection of local and/or remote printers. The classes module
|
||||
also reads and writes the classes configuration file.
|
||||
|
||||
<H3>Client</H3>
|
||||
|
||||
<P>The client module is responsible for all HTTP client
|
||||
communications. It handles listening on selected interfaces, accepting
|
||||
connections from prospective clients, processing incoming HTTP
|
||||
requests, and sending HTTP responses to those requests. The client
|
||||
module also is responsible for executing the external CGI programs as
|
||||
needed to support web-based printer, class, and job status monitoring
|
||||
and administration.
|
||||
The client module is responsible for all HTTP client communications. It handles
|
||||
listening on selected interfaces, accepting connections from prospective
|
||||
clients, processing incoming HTTP requests, and sending HTTP responses to
|
||||
those requests. The client module also is responsible for executing the
|
||||
external CGI programs as needed to support web-based printer, class, and job
|
||||
status monitoring.
|
||||
|
||||
<P>Once authorized, all IPP requests are sent to the IPP module.
|
||||
|
||||
<H3>Configuration</H3>
|
||||
|
||||
<P>The configuration module is responsible for reading the CUPS
|
||||
configuration file and initializing the appropriate data structures and
|
||||
values. The configuration module also stops CUPS services before
|
||||
reading the configuration file and restarts them after the
|
||||
configuration file has been read.
|
||||
|
||||
<H3>Devices</H3>
|
||||
|
||||
<P>The devices module is responsible for managing the list of available
|
||||
devices for the CUPS-Get-Devices operation.
|
||||
The configuration module is responsible for reading the CUPS configuration file
|
||||
and initializing the appropriate data structures and values. The configuration
|
||||
module also stops CUPS services before reading the configuration file and
|
||||
restarts them after the configuration file has been read.
|
||||
|
||||
<H3>Directory Services</H3>
|
||||
|
||||
<P>The directory services module sends and recieves printer state
|
||||
information over a broadcast socket. Remote printers and classes are
|
||||
automatically added to or removed from the local printer and class
|
||||
lists as needed.
|
||||
The directory services module sends and recieves printer state information over
|
||||
a broadcast socket. Remote printers and classes are automatically added to or
|
||||
removed from the local printer and class lists as needed.
|
||||
|
||||
<P>The directory services module can only recieve printer state information
|
||||
over a single UDP port, however it can broadcast to multiple addresses and
|
||||
@@ -440,108 +350,83 @@ ports as needed.
|
||||
|
||||
<H3>IPP</H3>
|
||||
|
||||
<P>The IPP module handles IPP requests and acts accordingly. URI
|
||||
The IPP module handles IPP requests and acts accordingly. URI
|
||||
validation is also performed here, as a client can post IPP data to any
|
||||
URI on the server which might sidestep the access control or
|
||||
authentication of the HTTP server.
|
||||
|
||||
<H3>Jobs</H3>
|
||||
|
||||
<P>The jobs module manages print jobs, starts filter and backend
|
||||
processes for jobs to be printed, and monitors status messages from
|
||||
those filters and backends.
|
||||
The jobs module manages print jobs, starts filter and backend processes
|
||||
for jobs to be printed, and monitors status messages from those filters
|
||||
and backends.
|
||||
|
||||
<H3>Logging</H3>
|
||||
|
||||
<P>The logging module manages the access, error, and page log files
|
||||
that are generated by the scheduler.
|
||||
The logging module manages the access, error, and page log files that are
|
||||
generated by the scheduler.
|
||||
|
||||
<H3>Main</H3>
|
||||
|
||||
<P>The main module is responsible for timing out and dispatching input
|
||||
and output for client connections. It also watches for incoming
|
||||
<CODE>SIGHUP</CODE> and <CODE>SIGCHLD</CODE> signals, reloads the
|
||||
server configuration files as needed, and handles child process errors
|
||||
and exits.
|
||||
|
||||
<H3>MIME</H3>
|
||||
|
||||
<P>The Multimedia Internet Mail Exchange module manages a MIME type and
|
||||
conversion database that supports file typing by extension and content
|
||||
and least-cost file filtering from a source to a destination file type.
|
||||
|
||||
<H3>PPDs</H3>
|
||||
|
||||
<P>The PPDs module is responsible for managing the list of available
|
||||
PPD files for the CUPS-Get-PPDs operation.
|
||||
The main module is responsible for timing out and dispatching input and output
|
||||
for client connections. It also watches for incoming <CODE>SIGHUP</CODE>
|
||||
and <CODE>SIGCHLD</CODE> signals, reloads the server configuration files as
|
||||
needed, and handles child process errors and exits.
|
||||
|
||||
<H3>Printers</H3>
|
||||
|
||||
<P>The printers module is responsible for managing printers and PPD
|
||||
files in the system. The printers module also reads and writes the
|
||||
printers configuration file.
|
||||
The printers module is responsible for managing printers and PPD files
|
||||
in the system. The printers module also reads and writes the printers
|
||||
configuration file.
|
||||
|
||||
<H2>System V Commands</H2>
|
||||
|
||||
<P>The System V commands provide a robust command-line interface to
|
||||
CUPS to submit and control printers and jobs.
|
||||
The System V commands provide a robust command-line interface to CUPS
|
||||
to submit and control printers and jobs.
|
||||
|
||||
<H3>accept</H3>
|
||||
|
||||
<P>The accept command tells the scheduler to accept new jobs for specific
|
||||
The accept command tells the scheduler to accept new jobs for specific
|
||||
printers.
|
||||
|
||||
<H3>cancel</H3>
|
||||
|
||||
<P>The cancel command tells the scheduler to cancel one or more jobs that are
|
||||
The cancel command tells the scheduler to cancel one or more jobs that are
|
||||
queued for printing.
|
||||
|
||||
<H3>disable</H3>
|
||||
|
||||
<P>The disable command tells the scheduler to stop printing jobs on the
|
||||
The disable command tells the scheduler to stop printing jobs on the
|
||||
specified printers.
|
||||
|
||||
<H3>enable</H3>
|
||||
|
||||
<P>The enable command tells the scheduler to start printing jobs on the
|
||||
The enable command tells the scheduler to start printing jobs on the
|
||||
specified printers.
|
||||
|
||||
<H3>lp</H3>
|
||||
|
||||
<P>The lp command submits submits files for printing. Unlike the standard
|
||||
The lp command submits submits files for printing. Unlike the standard
|
||||
System V lp command, a single CUPS lp command will generate a separate
|
||||
job ID for each file that is printed. Also, the Solaris "f", "H", "P", "S",
|
||||
and "y" options are silently ignored.
|
||||
|
||||
<H3>lpadmin</H3>
|
||||
|
||||
<P>The lpadmin command manages printer queues and classes. The Solaris
|
||||
The lpadmin command manages printer queues and classes. The Solaris
|
||||
"A", "F", "I", "M", "P", "Q", "S", "T", "U", "W", "f", "l", "m", "o",
|
||||
"s", "t", and "u" options are not supported, and new options "P" (PPD
|
||||
file) and "E" (enable and accept) are provided to configure
|
||||
CUPS-specific features.
|
||||
|
||||
<H3>lpinfo</H3>
|
||||
|
||||
<P>The lpinfo command lists the available PPD files or devices as selected
|
||||
by the user.
|
||||
|
||||
<H3>lpmove</H3>
|
||||
|
||||
<P>The lpmove command moves a print job to a new destination.
|
||||
|
||||
<H3>lpoptions</H3>
|
||||
|
||||
<P>The lpoptions command manages user-defined printers and options.
|
||||
file), "F" (filter), and "E" (enable and accept) are provided to configure
|
||||
CUPS-specific features such as PPD file and conversion filters.
|
||||
|
||||
<H3>lpstat</H3>
|
||||
|
||||
<P>The lpstat command lists printers, classes, and jobs as requested by the
|
||||
The lpstat command lists printers, classes, and jobs as requested by the
|
||||
user.
|
||||
|
||||
<H3>reject</H3>
|
||||
|
||||
<P>The reject command tells the scheduler not to accept new jobs for specific
|
||||
The reject command tells the scheduler not to accept new jobs for specific
|
||||
printers.
|
||||
|
||||
<EMBED SRC="glossary.shtml">
|
||||
|
||||
+3139
-4961
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+7441
-8620
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
+302
-2846
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+54
-122
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> CUPS Software Security Report</TITLE>
|
||||
<TITLE>CUPS Software Security Report</TITLE>
|
||||
<META NAME="AUTHOR" CONTENT="Easy Software Products">
|
||||
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
|
||||
<META NAME="DOCNUMBER" CONTENT="CUPS-SSR-1.1">
|
||||
@@ -17,11 +17,14 @@ H6 { font-family: sans-serif; font-size: 8.0pt }
|
||||
SUB { font-size: 8.0pt }
|
||||
SUP { font-size: 8.0pt }
|
||||
PRE { font-size: 9.0pt }
|
||||
A:link { text-decoration: underline }
|
||||
A:visited { text-decoration: underline }
|
||||
A:active { text-decoration: underline }
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0" WIDTH="100%"><BR>
|
||||
<H1> CUPS Software Security Report</H1></A><BR>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0"><BR>
|
||||
<H1>CUPS Software Security Report</H1></A><BR>
|
||||
CUPS-SSR-1.1<BR>
|
||||
Easy Software Products<BR>
|
||||
Copyright 1997-2000, All Rights Reserved<BR>
|
||||
@@ -49,33 +52,28 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
<LI><A HREF="#4_1">4.1 Denial of Service Attacks</A></LI>
|
||||
<LI><A HREF="#4_2">4.2 Security Breaches</A></LI>
|
||||
</UL>
|
||||
<B><A HREF="#5">A Glossary</A></B>
|
||||
<UL>
|
||||
<LI><A HREF="#5_1">A.1 Terms</A></LI>
|
||||
<LI><A HREF="#5_2">A.2 Acronyms</A></LI>
|
||||
</UL>
|
||||
<HR>
|
||||
<H1><A NAME="1">1 Scope</A></H1>
|
||||
<H2><A NAME="1_1">1.1 Identification</A></H2>
|
||||
<P>This software security report provides an analysis of possible
|
||||
This software security report provides an analysis of possible
|
||||
security concerns for the Common UNIX Printing System ("CUPS") Version
|
||||
1.1.</P>
|
||||
1.1.
|
||||
<H2><A NAME="1_2">1.2 System Overview</A></H2>
|
||||
<P>CUPS provides a portable printing layer for UNIX®-based operating
|
||||
systems. It has been developed by <A HREF="http://www.easysw.com">Easy
|
||||
Software Products</A> to promote a standard printing solution for all
|
||||
UNIX vendors and users. CUPS provides the System V and Berkeley
|
||||
<P>The Common UNIX Printing System provides a portable printing layer
|
||||
for UNIX® operating systems. It has been developed by <A HREF="http://www.easysw.com">
|
||||
Easy Software Products</A> to promote a standard printing solution for
|
||||
all UNIX vendors and users. CUPS provides the System V and Berkeley
|
||||
command-line interfaces. </P>
|
||||
<P>CUPS uses the Internet Printing Protocol ("IPP") as the basis for
|
||||
managing print jobs and queues. The Line Printer Daemon ("LPD") Server
|
||||
Message Block ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are
|
||||
also supported with reduced functionality. CUPS adds network printer
|
||||
browsing and PostScript Printer Description ("PPD") based printing
|
||||
options to support real-world printing under UNIX. </P>
|
||||
<P>CUPS also includes a customized version of GNU Ghostscript
|
||||
(currently based off GNU Ghostscript 5.50) and an image file RIP that
|
||||
are used to support non-PostScript printers. Sample drivers for HP and
|
||||
EPSON printers are included that use these filters. </P>
|
||||
<P>CUPS uses the Internet Printing Protocol (IETF-IPP) as the basis for
|
||||
managing print jobs and queues. The Line Printer Daemon (LPD, RFC1179),
|
||||
Server Message Block (SMB), and AppSocket protocols are also supported
|
||||
with reduced functionality. </P>
|
||||
<P>CUPS adds network printer browsing and PostScript Printer
|
||||
Description ("PPD")-based printing options to support real world
|
||||
applications under UNIX. </P>
|
||||
<P>CUPS also includes a customized version of GNU GhostScript
|
||||
(currently based off GNU GhostScript 5.50) and an image file RIP that
|
||||
is used to support non-PostScript printers. </P>
|
||||
<H2><A NAME="1_3">1.3 Document Overview</A></H2>
|
||||
<P>This software security report is organized into the following
|
||||
sections:</P>
|
||||
@@ -95,7 +93,7 @@ sections:</P>
|
||||
<LI>CUPS-IPP-1.1: CUPS Implmentation of IPP </LI>
|
||||
<LI>CUPS-SAM-1.1.x: CUPS Software Administrators Manual </LI>
|
||||
<LI>CUPS-SDD-1.1: CUPS Software Design Description </LI>
|
||||
<LI>CUPS-SPM-1.1.x: CUPS Software Programming Manual </LI>
|
||||
<LI>CUPS-SPM-1.1: CUPS Software Programming Manual </LI>
|
||||
<LI>CUPS-SSR-1.1: CUPS Software Security Report </LI>
|
||||
<LI>CUPS-STP-1.1: CUPS Software Test Plan </LI>
|
||||
<LI>CUPS-SUM-1.1.x: CUPS Software Users Manual </LI>
|
||||
@@ -104,28 +102,21 @@ sections:</P>
|
||||
<H2><A NAME="2_2">2.2 Other Documents</A></H2>
|
||||
<P>The following non-CUPS documents are referenced by this document: </P>
|
||||
<UL>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/5003.PPD_Spec_v4.3.pdf">
|
||||
Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3.</A></LI>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/PLRM.pdf">
|
||||
Adobe PostScript Language Reference, Third Edition.</A></LI>
|
||||
<LI>Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3. </LI>
|
||||
<LI>Adobe PostScript Language Reference, Third Edition. </LI>
|
||||
<LI>IPP: Job and Printer Set Operations </LI>
|
||||
<LI>IPP/1.1: Encoding and Transport </LI>
|
||||
<LI>IPP/1.1: Implementers Guide </LI>
|
||||
<LI>IPP/1.1: Model and Semantics </LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc1179.txt">RFC 1179, Line
|
||||
Printer Daemon Protocol</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2567.txt">RFC 2567, Design
|
||||
Goals for an Internet Printing Protocol</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2568.txt">RFC 2568, Rationale
|
||||
for the Structure of the Model and Protocol</A> for the Internet
|
||||
Printing Protocol</LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2569.txt">RFC 2569, Mapping
|
||||
between LPD and IPP Protocols</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616, Hypertext
|
||||
Transfer Protocol -- HTTP/1.1</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2617.txt">RFC 2617, HTTP
|
||||
Authentication: Basic and Digest Access</A> Authentication </LI>
|
||||
<LI>RFC 1179, Line Printer Daemon Protocol </LI>
|
||||
<LI>RFC 2567, Design Goals for an Internet Printing Protocol </LI>
|
||||
<LI>RFC 2568, Rationale for the Structure of the Model and Protocol
|
||||
for the Internet Printing Protocol </LI>
|
||||
<LI>RFC 2569, Mapping between LPD and IPP Protocols </LI>
|
||||
<LI>RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1 </LI>
|
||||
<LI>RFC 2617, HTTP Authentication: Basic and Digest Access
|
||||
Authentication </LI>
|
||||
</UL>
|
||||
<H1><A NAME="3">3 Local Access Risks</A></H1>
|
||||
<P>Local access risks are those that can be exploited only with a local
|
||||
@@ -133,8 +124,13 @@ user account. This section does not address issues related to
|
||||
dissemination of the root password or other security issues associated
|
||||
with the UNIX operating system. </P>
|
||||
<H2><A NAME="3_1">3.1 Security Breaches</A></H2>
|
||||
<P>There is one known security vulnerability with local access: </P>
|
||||
<P>There are two known security vulnerabilities with local access: </P>
|
||||
<OL>
|
||||
<LI>Since the default installation creates a world-readable request
|
||||
directory, it is possible for local users to read the contents of
|
||||
print files before they are printed. </LI>
|
||||
<P>This problem can be alleviated by making the request directory
|
||||
readable only by the user specified in the CUPS configuration file. </P>
|
||||
<LI>Device URIs are passed to backend filters in argv[0] and in an
|
||||
environment variable. Since device URIs can contain usernames and
|
||||
passwords it may be possible for a local user to gain access to a
|
||||
@@ -159,7 +155,7 @@ of service attacks, including: </P>
|
||||
<P>This cannot be protected against by the current software. It is
|
||||
possible that future versions of the CUPS software could be configured
|
||||
to limit the number of connections allowed from a single host, however
|
||||
that still would not prevent a distributed attack. </P>
|
||||
that still would not prevent a determined attack. </P>
|
||||
<LI>Repeatedly opening and closing connections to the server as fast
|
||||
as possible. </LI>
|
||||
<P>There is no easy way of protecting against this in the CUPS
|
||||
@@ -188,83 +184,19 @@ large attribute values. </P>
|
||||
user-level access control as needed for expensive printers. </P>
|
||||
</OL>
|
||||
<H2><A NAME="4_2">4.2 Security Breaches</A></H2>
|
||||
<P>The current CUPS server supports Basic, Digest, and local
|
||||
certificate authentication: </P>
|
||||
<OL>
|
||||
<LI>Basic authentication essentially places the clear text of the
|
||||
username and password on the network. Since CUPS uses the UNIX
|
||||
username and password account information, the authentication
|
||||
information could be used to gain access to accounts (possibly
|
||||
priviledged accounts) on the server. </LI>
|
||||
<LI>Digest authentication uses an MD5 checksum of the username,
|
||||
password, and domain ("CUPS"), so the original username and password
|
||||
is not sent over the network. However, the current implementation does
|
||||
not authenticate the entire message and uses the client's IP address
|
||||
for the nonce value, making it possible to launch "man in the middle"
|
||||
and replay attacks from the same client. The next minor release of
|
||||
CUPS will support Digest authentication of the entire message body,
|
||||
effectively stopping these methods of attack. </LI>
|
||||
<LI>Local certificate authentication passes 128-bit "certificates"
|
||||
that identify an authenticated user. Certificates are created
|
||||
on-the-fly from random data and stored in files under <CODE>
|
||||
/etc/cups/certs</CODE>. They have restricted read permissions: root +
|
||||
system for the root certificate, and lp + system for CGI certificates.
|
||||
Because certificates are only available on the local system, the CUPS
|
||||
server does not accept local authentication unless the client is
|
||||
connected to the localhost address (127.0.0.1.) </LI>
|
||||
</OL>
|
||||
<P>The current CUPS server only supports Basic authentication with
|
||||
usernames and passwords. This essentially places the clear text of the
|
||||
username and password on the network. Since CUPS uses the UNIX username
|
||||
and password account information, the authentication information could
|
||||
be used to gain access to accounts (possibly priviledged accounts) on
|
||||
the server. </P>
|
||||
<P>The default CUPS configuration disables remote administration. We do
|
||||
not recommend that remote administration be enabled for all hosts.
|
||||
However, if you have a trusted network or subnet, access can be
|
||||
restricted accordingly. Also, we highly recommend using Digest
|
||||
authentication when possible. Unfortunately, most web browsers do not
|
||||
support Digest authentication at this time. </P>
|
||||
<H1 TYPE="A" VALUE="1"><A NAME="5">A Glossary</A></H1>
|
||||
<H2><A NAME="5_1">A.1 Terms</A></H2>
|
||||
<DL>
|
||||
<DT>C </DT>
|
||||
<DD>A computer language. </DD>
|
||||
<DT>parallel </DT>
|
||||
<DD>Sending or receiving data more than 1 bit at a time. </DD>
|
||||
<DT>pipe </DT>
|
||||
<DD>A one-way communications channel between two programs. </DD>
|
||||
<DT>serial </DT>
|
||||
<DD>Sending or receiving data 1 bit at a time. </DD>
|
||||
<DT>socket </DT>
|
||||
<DD>A two-way network communications channel. </DD>
|
||||
</DL>
|
||||
<H2><A NAME="5_2">A.2 Acronyms</A></H2>
|
||||
<DL>
|
||||
<DT>ASCII </DT>
|
||||
<DD>American Standard Code for Information Interchange </DD>
|
||||
<DT>CUPS </DT>
|
||||
<DD>Common UNIX Printing System </DD>
|
||||
<DT>ESC/P </DT>
|
||||
<DD>EPSON Standard Code for Printers </DD>
|
||||
<DT>FTP </DT>
|
||||
<DD>File Transfer Protocol </DD>
|
||||
<DT>HP-GL </DT>
|
||||
<DD>Hewlett-Packard Graphics Language </DD>
|
||||
<DT>HP-PCL </DT>
|
||||
<DD>Hewlett-Packard Page Control Language </DD>
|
||||
<DT>HP-PJL </DT>
|
||||
<DD>Hewlett-Packard Printer Job Language </DD>
|
||||
<DT>IETF </DT>
|
||||
<DD>Internet Engineering Task Force </DD>
|
||||
<DT>IPP </DT>
|
||||
<DD>Internet Printing Protocol </DD>
|
||||
<DT>ISO </DT>
|
||||
<DD>International Standards Organization </DD>
|
||||
<DT>LPD </DT>
|
||||
<DD>Line Printer Daemon </DD>
|
||||
<DT>MIME </DT>
|
||||
<DD>Multimedia Internet Mail Exchange </DD>
|
||||
<DT>PPD </DT>
|
||||
<DD>PostScript Printer Description </DD>
|
||||
<DT>SMB </DT>
|
||||
<DD>Server Message Block </DD>
|
||||
<DT>TFTP </DT>
|
||||
<DD>Trivial File Transfer Protocol </DD>
|
||||
</DL>
|
||||
not recommend that remote administration be enabled for all hosts,
|
||||
however if you have a trusted network or subnet access can be
|
||||
restricted accordingly. </P>
|
||||
<P>The next minor release of CUPS will support Digest authentication of
|
||||
the entire message body using separate MD5-based username and password
|
||||
files. This will protect password information and prevent unauthorized
|
||||
access due to compromised account passwords. </P>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
Arquivo binário não exibido.
+8
-10
@@ -11,7 +11,7 @@
|
||||
|
||||
<H2>Identification</H2>
|
||||
|
||||
<P>This software security report provides an analysis of possible security
|
||||
This software security report provides an analysis of possible security
|
||||
concerns for the Common UNIX Printing System ("CUPS") Version 1.1.</P>
|
||||
|
||||
<EMBED SRC="system-overview.shtml">
|
||||
@@ -39,7 +39,7 @@ system.
|
||||
|
||||
<H2>Security Breaches</H2>
|
||||
|
||||
<P>There is one known security vulnerability with local access:
|
||||
<P>There is one known security vulnerabilities with local access:
|
||||
|
||||
<OL>
|
||||
|
||||
@@ -77,7 +77,7 @@ service attacks, including:
|
||||
<P>This cannot be protected against by the current software. It
|
||||
is possible that future versions of the CUPS software could be
|
||||
configured to limit the number of connections allowed from a
|
||||
single host, however that still would not prevent a distributed
|
||||
single host, however that still would not prevent a determined
|
||||
attack.
|
||||
|
||||
<LI>Repeatedly opening and closing connections to the server as fast
|
||||
@@ -153,13 +153,11 @@ authentication:
|
||||
</OL>
|
||||
|
||||
<P>The default CUPS configuration disables remote administration. We do
|
||||
not recommend that remote administration be enabled for all hosts.
|
||||
However, if you have a trusted network or subnet, access can be
|
||||
restricted accordingly.
|
||||
|
||||
Also, we highly recommend using Digest authentication when possible.
|
||||
Unfortunately, most web browsers do not support Digest authentication
|
||||
at this time.
|
||||
not recommend that remote administration be enabled for all hosts,
|
||||
however if you have a trusted network or subnet access can be
|
||||
restricted accordingly. Also, we highly recommend using Digest
|
||||
authentication when possible; unfortunately, most web browsers do not
|
||||
support Digest authentication at this time.
|
||||
|
||||
<EMBED SRC="glossary.shtml">
|
||||
|
||||
|
||||
+38
-40
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> DRAFT - CUPS Software Test Plan</TITLE>
|
||||
<TITLE>DRAFT - CUPS Software Test Plan</TITLE>
|
||||
<META NAME="AUTHOR" CONTENT="Easy Software Products">
|
||||
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
|
||||
<META NAME="DOCNUMBER" CONTENT="CUPS-STP-1.1">
|
||||
@@ -17,11 +17,14 @@ H6 { font-family: sans-serif; font-size: 8.0pt }
|
||||
SUB { font-size: 8.0pt }
|
||||
SUP { font-size: 8.0pt }
|
||||
PRE { font-size: 9.0pt }
|
||||
A:link { text-decoration: underline }
|
||||
A:visited { text-decoration: underline }
|
||||
A:active { text-decoration: underline }
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0" WIDTH="100%"><BR>
|
||||
<H1> DRAFT - CUPS Software Test Plan</H1></A><BR>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0"><BR>
|
||||
<H1>DRAFT - CUPS Software Test Plan</H1></A><BR>
|
||||
CUPS-STP-1.1<BR>
|
||||
Easy Software Products<BR>
|
||||
Copyright 1997-2000, All Rights Reserved<BR>
|
||||
@@ -52,27 +55,27 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
<HR>
|
||||
<H1><A NAME="1">1 Scope</A></H1>
|
||||
<H2><A NAME="1_1">1.1 Identification</A></H2>
|
||||
<P>This software test plan provides detailed tests that are used to
|
||||
This software test plan provides detailed tests that are used to
|
||||
evaluate the stability of the Common UNIX Printing System ("CUPS")
|
||||
Version 1.1. </P>
|
||||
Version 1.1.
|
||||
<H2><A NAME="1_2">1.2 System Overview</A></H2>
|
||||
<P>CUPS provides a portable printing layer for UNIX®-based operating
|
||||
systems. It has been developed by <A HREF="http://www.easysw.com">Easy
|
||||
Software Products</A> to promote a standard printing solution for all
|
||||
UNIX vendors and users. CUPS provides the System V and Berkeley
|
||||
<P>The Common UNIX Printing System provides a portable printing layer
|
||||
for UNIX® operating systems. It has been developed by <A HREF="http://www.easysw.com">
|
||||
Easy Software Products</A> to promote a standard printing solution for
|
||||
all UNIX vendors and users. CUPS provides the System V and Berkeley
|
||||
command-line interfaces. </P>
|
||||
<P>CUPS uses the Internet Printing Protocol ("IPP") as the basis for
|
||||
managing print jobs and queues. The Line Printer Daemon ("LPD") Server
|
||||
Message Block ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are
|
||||
also supported with reduced functionality. CUPS adds network printer
|
||||
browsing and PostScript Printer Description ("PPD") based printing
|
||||
options to support real-world printing under UNIX. </P>
|
||||
<P>CUPS also includes a customized version of GNU Ghostscript
|
||||
(currently based off GNU Ghostscript 5.50) and an image file RIP that
|
||||
are used to support non-PostScript printers. Sample drivers for HP and
|
||||
EPSON printers are included that use these filters. </P>
|
||||
<P>CUPS uses the Internet Printing Protocol (IETF-IPP) as the basis for
|
||||
managing print jobs and queues. The Line Printer Daemon (LPD, RFC1179),
|
||||
Server Message Block (SMB), and AppSocket protocols are also supported
|
||||
with reduced functionality. </P>
|
||||
<P>CUPS adds network printer browsing and PostScript Printer
|
||||
Description ("PPD")-based printing options to support real world
|
||||
applications under UNIX. </P>
|
||||
<P>CUPS also includes a customized version of GNU GhostScript
|
||||
(currently based off GNU GhostScript 5.50) and an image file RIP that
|
||||
is used to support non-PostScript printers. </P>
|
||||
<H2><A NAME="1_3">1.3 Document Overview</A></H2>
|
||||
<P>This software test plan is organized into the following sections: </P>
|
||||
This software test plan is organized into the following sections:
|
||||
<UL>
|
||||
<LI>1 - Scope</LI>
|
||||
<LI>2 - References</LI>
|
||||
@@ -89,7 +92,7 @@ EPSON printers are included that use these filters. </P>
|
||||
<LI>CUPS-IPP-1.1: CUPS Implmentation of IPP </LI>
|
||||
<LI>CUPS-SAM-1.1.x: CUPS Software Administrators Manual </LI>
|
||||
<LI>CUPS-SDD-1.1: CUPS Software Design Description </LI>
|
||||
<LI>CUPS-SPM-1.1.x: CUPS Software Programming Manual </LI>
|
||||
<LI>CUPS-SPM-1.1: CUPS Software Programming Manual </LI>
|
||||
<LI>CUPS-SSR-1.1: CUPS Software Security Report </LI>
|
||||
<LI>CUPS-STP-1.1: CUPS Software Test Plan </LI>
|
||||
<LI>CUPS-SUM-1.1.x: CUPS Software Users Manual </LI>
|
||||
@@ -98,28 +101,21 @@ EPSON printers are included that use these filters. </P>
|
||||
<H2><A NAME="2_2">2.2 Other Documents</A></H2>
|
||||
<P>The following non-CUPS documents are referenced by this document: </P>
|
||||
<UL>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/5003.PPD_Spec_v4.3.pdf">
|
||||
Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3.</A></LI>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/PLRM.pdf">
|
||||
Adobe PostScript Language Reference, Third Edition.</A></LI>
|
||||
<LI>Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3. </LI>
|
||||
<LI>Adobe PostScript Language Reference, Third Edition. </LI>
|
||||
<LI>IPP: Job and Printer Set Operations </LI>
|
||||
<LI>IPP/1.1: Encoding and Transport </LI>
|
||||
<LI>IPP/1.1: Implementers Guide </LI>
|
||||
<LI>IPP/1.1: Model and Semantics </LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc1179.txt">RFC 1179, Line
|
||||
Printer Daemon Protocol</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2567.txt">RFC 2567, Design
|
||||
Goals for an Internet Printing Protocol</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2568.txt">RFC 2568, Rationale
|
||||
for the Structure of the Model and Protocol</A> for the Internet
|
||||
Printing Protocol</LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2569.txt">RFC 2569, Mapping
|
||||
between LPD and IPP Protocols</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616, Hypertext
|
||||
Transfer Protocol -- HTTP/1.1</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2617.txt">RFC 2617, HTTP
|
||||
Authentication: Basic and Digest Access</A> Authentication </LI>
|
||||
<LI>RFC 1179, Line Printer Daemon Protocol </LI>
|
||||
<LI>RFC 2567, Design Goals for an Internet Printing Protocol </LI>
|
||||
<LI>RFC 2568, Rationale for the Structure of the Model and Protocol
|
||||
for the Internet Printing Protocol </LI>
|
||||
<LI>RFC 2569, Mapping between LPD and IPP Protocols </LI>
|
||||
<LI>RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1 </LI>
|
||||
<LI>RFC 2617, HTTP Authentication: Basic and Digest Access
|
||||
Authentication </LI>
|
||||
</UL>
|
||||
<H1><A NAME="3">3 Local Tests</A></H1>
|
||||
<H1><A NAME="4">4 Remote Tests</A></H1>
|
||||
@@ -150,7 +146,7 @@ Authentication: Basic and Digest Access</A> Authentication </LI>
|
||||
<DT>HP-GL </DT>
|
||||
<DD>Hewlett-Packard Graphics Language </DD>
|
||||
<DT>HP-PCL </DT>
|
||||
<DD>Hewlett-Packard Page Control Language </DD>
|
||||
<DD>Hewlett-Packard Printer Control Language </DD>
|
||||
<DT>HP-PJL </DT>
|
||||
<DD>Hewlett-Packard Printer Job Language </DD>
|
||||
<DT>IETF </DT>
|
||||
@@ -163,6 +159,8 @@ Authentication: Basic and Digest Access</A> Authentication </LI>
|
||||
<DD>Line Printer Daemon </DD>
|
||||
<DT>MIME </DT>
|
||||
<DD>Multimedia Internet Mail Exchange </DD>
|
||||
<DT>PCL </DT>
|
||||
<DD>Page Control Language </DD>
|
||||
<DT>PPD </DT>
|
||||
<DD>PostScript Printer Description </DD>
|
||||
<DT>SMB </DT>
|
||||
|
||||
Arquivo binário não exibido.
+2
-2
@@ -12,14 +12,14 @@
|
||||
|
||||
<H2>Identification</H2>
|
||||
|
||||
<P>This software test plan provides detailed tests that are used to evaluate
|
||||
This software test plan provides detailed tests that are used to evaluate
|
||||
the stability of the Common UNIX Printing System ("CUPS") Version 1.1.
|
||||
|
||||
<EMBED SRC="system-overview.shtml">
|
||||
|
||||
<H2>Document Overview</H2>
|
||||
|
||||
<P>This software test plan is organized into the following sections:
|
||||
This software test plan is organized into the following sections:
|
||||
|
||||
<UL>
|
||||
<LI>1 - Scope</LI>
|
||||
|
||||
+27
-56
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> CUPS Software Users Manual</TITLE>
|
||||
<TITLE>CUPS Software Users Manual</TITLE>
|
||||
<META NAME="AUTHOR" CONTENT="Easy Software Products">
|
||||
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
|
||||
<META NAME="DOCNUMBER" CONTENT="CUPS-SUM-1.1">
|
||||
@@ -20,8 +20,8 @@ PRE { font-size: 9.0pt }
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#ffffff">
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0" WIDTH="100%"><BR>
|
||||
<H1> CUPS Software Users Manual</H1></A><BR>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0"><BR>
|
||||
<H1>CUPS Software Users Manual</H1></A><BR>
|
||||
CUPS-SUM-1.1<BR>
|
||||
Easy Software Products<BR>
|
||||
Copyright 1997-2000, All Rights Reserved<BR>
|
||||
@@ -88,10 +88,9 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
</UL>
|
||||
<LI><A HREF="#4_5">Image Options</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#4_5_1">Positioning the Image</A></LI>
|
||||
<LI><A HREF="#4_5_2">Scaling the Image</A></LI>
|
||||
<LI><A HREF="#4_5_3">Adjusting the Hue (Tint) of an Image</A></LI>
|
||||
<LI><A HREF="#4_5_4">Adjusting the Saturation (Color) of an Image</A></LI>
|
||||
<LI><A HREF="#4_5_1">Scaling the Image</A></LI>
|
||||
<LI><A HREF="#4_5_2">Adjusting the Hue (Tint) of an Image</A></LI>
|
||||
<LI><A HREF="#4_5_3">Adjusting the Saturation (Color) of an Image</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#4_6">HP-GL/2 Options</A></LI>
|
||||
<UL>
|
||||
@@ -162,12 +161,12 @@ and their meanings and uses are explained below:
|
||||
<TR><TH>Example</TH><TD> </TD><TH>Description</TH></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR VALIGN="TOP"><TD><CODE>lpstat</CODE>
|
||||
<BR><CODE> lpstat(1)</CODE></TD><TD> </TD><TD>The names of commands;
|
||||
<BR><CODE>lpstat(1)</CODE></TD><TD> </TD><TD>The names of commands;
|
||||
the first mention of a command or function in a chapter is followed by
|
||||
a manual page section number.</TD></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR VALIGN="TOP"><TD><VAR>/var</VAR>
|
||||
<BR><VAR> /usr/share/cups/data/testprint.ps</VAR></TD><TD> </TD><TD>
|
||||
<BR><VAR>/usr/share/cups/data/testprint.ps</VAR></TD><TD> </TD><TD>
|
||||
File and directory names.</TD></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR VALIGN="TOP"><TD NOWRAP><TT>Request ID is Printer-123</TT></TD><TD>
|
||||
@@ -675,27 +674,7 @@ are italicized: </P>
|
||||
</UL>
|
||||
<H2><A NAME="4_5">Image Options</A></H2>
|
||||
<P>The following options apply when printing image files. </P>
|
||||
<H3><A NAME="4_5_1">Positioning the Image</A></H3>
|
||||
<P>The <CODE>-o position=name</CODE> option specifies the position of
|
||||
the image on the page: </P>
|
||||
<UL>
|
||||
<LI><CODE>center</CODE> - Center the image on the page (default) </LI>
|
||||
<LI><CODE>top</CODE> - Print the image centered at the top of the page </LI>
|
||||
<LI><CODE>left</CODE> - Print the image centered on the left of page </LI>
|
||||
<LI><CODE>right</CODE> - Print the image centered on the right of the
|
||||
page </LI>
|
||||
<LI><CODE>top-left</CODE> - Print the image at the top left corner of
|
||||
the page </LI>
|
||||
<LI><CODE>top-right</CODE> - Print the image at the top right corner of
|
||||
the page </LI>
|
||||
<LI><CODE>bottom</CODE> - Print the image centered at the bottom of
|
||||
the page </LI>
|
||||
<LI><CODE>bottom-left</CODE> - Print the image at the bottom left
|
||||
corner of the page </LI>
|
||||
<LI><CODE>bottom-right</CODE> - Print the image at the bottom right
|
||||
corner of the page </LI>
|
||||
</UL>
|
||||
<H3><A NAME="4_5_2">Scaling the Image</A></H3>
|
||||
<H3><A NAME="4_5_1">Scaling the Image</A></H3>
|
||||
<P>The <CODE>-o scaling=percent</CODE> and <CODE>-o ppi=value</CODE>
|
||||
options change the size of a printed image: </P>
|
||||
<UL>
|
||||
@@ -714,7 +693,7 @@ resolution of the image in pixels per inch. An image that is 3000x2400
|
||||
pixels will print 10x8 inches at 300 pixels per inch, for example. If
|
||||
the specified resolution makes the image larger than the page, multiple
|
||||
pages will be printed to satisfy the request. </P>
|
||||
<H3><A NAME="4_5_3">Adjusting the Hue (Tint) of an Image</A></H3>
|
||||
<H3><A NAME="4_5_2">Adjusting the Hue (Tint) of an Image</A></H3>
|
||||
<P>The <CODE>-o hue=value</CODE> option will adjust the hue of the
|
||||
printed image, much like the tint control on your television: </P>
|
||||
<UL>
|
||||
@@ -741,7 +720,7 @@ change you'll see with different colors:
|
||||
</CENTER>
|
||||
</P>
|
||||
<P>The default hue adjustment is 0. </P>
|
||||
<H3><A NAME="4_5_4">Adjusting the Saturation (Color) of an Image</A></H3>
|
||||
<H3><A NAME="4_5_3">Adjusting the Saturation (Color) of an Image</A></H3>
|
||||
<P>The <CODE>-o saturation=percent</CODE> option adjusts the saturation
|
||||
of the colors in an image, much like the color knob on your television: </P>
|
||||
<UL>
|
||||
@@ -754,7 +733,7 @@ of the colors in an image, much like the color knob on your television: </P>
|
||||
from 0 to 200. A color saturation of 0 produces a black-and-white
|
||||
print, while a value of 200 will make the colors extremely intense. </P>
|
||||
<P>The default saturation is 100.
|
||||
<!-- NEED 4in ---->
|
||||
<!-- NEED 2in ---->
|
||||
</P>
|
||||
<H2><A NAME="4_6">HP-GL/2 Options</A></H2>
|
||||
<P>The following options apply to HP-GL/2 files. </P>
|
||||
@@ -783,7 +762,7 @@ scaled to fit on the page: </P>
|
||||
file.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>This feature depends upon an accurate plot size (<CODE>PS</CODE>)
|
||||
command in the HP-GL/2 file. If no plot size is given in the file
|
||||
than the HP-GL/2 filter assumes the plot is ANSI E size. </P>
|
||||
@@ -806,7 +785,7 @@ millimeter in width. Specifying a pen width of 0 produces lines that
|
||||
are exactly 1 pixel wide.
|
||||
<CENTER>
|
||||
<TABLE BGCOLOR="#cccccc" BORDER="1" CELLPADDING="5" WIDTH="80%">
|
||||
<TR><TD><B> NOTE:</B>
|
||||
<TR><TD><B>NOTE:</B>
|
||||
<P>This option is ignored when the pen widths are set in the plot
|
||||
file. </P>
|
||||
</TD></TR>
|
||||
@@ -926,17 +905,17 @@ Agreement</A></H2>
|
||||
<BR> Email: <A HREF="mailto:cups-info@cups.org">cups-info@cups.org</A>
|
||||
<BR> WWW: <A HREF="http://www.cups.org">http://www.cups.org</A></P>
|
||||
<H3><A NAME="6_1_1">Introduction</A></H3>
|
||||
<P>The Common UNIX Printing System<SUP>TM</SUP>, ("CUPS<SUP>TM</SUP>"),
|
||||
<P>The Common UNIX Printing System<SUP>TM</SUP>, or CUPS<SUP>TM</SUP>,
|
||||
is provided under the GNU General Public License ("GPL") and GNU
|
||||
Library General Public License ("LGPL"), Version 2. A copy of these
|
||||
licenses follow this introduction. </P>
|
||||
<P>The GNU LGPL applies to the CUPS API library, located in the "cups"
|
||||
subdirectory of the CUPS source distribution and in the
|
||||
"/usr/include/cups" directory and "libcups.a", "libcups.sl", or
|
||||
"libcups.so" files in the binary distributions. </P>
|
||||
"/usr/include/cups" directory and "/usr/lib/libcups.so" or
|
||||
"/usr/lib32/libcups.so" files in the binary distributions. </P>
|
||||
<P>The GNU GPL applies to the remainder of the CUPS distribution,
|
||||
including the "pstoraster" filter which is based upon GNU Ghostscript
|
||||
5.50 and the "pdftops" filter which is based upon Xpdf 0.90. </P>
|
||||
5.50. </P>
|
||||
<P>For those not familiar with the GNU GPL, the license basically
|
||||
allows you to: </P>
|
||||
<UL>
|
||||
@@ -945,14 +924,13 @@ allows you to: </P>
|
||||
form. </LI>
|
||||
<LI>Sell verbatim copies of the software for a media fee, or sell
|
||||
support for the software. </LI>
|
||||
<LI>Distribute or sell printer drivers and filters that use CUPS so
|
||||
long as source code is made available under the GPL. </LI>
|
||||
<LI>Distribute or sell printer drivers and filters that use the CUPS
|
||||
API so long as source code is made available under the GPL. </LI>
|
||||
</UL>
|
||||
<P>What this license <B>does not</B> allow you to do is make changes or
|
||||
add features to CUPS and then sell a binary distribution without source
|
||||
code. You must provide source for any new drivers, changes, or
|
||||
additions to the software, and all code must be provided under the GPL
|
||||
or LGPL as appropriate. </P>
|
||||
additions to the software, and all code must be provided under the GPL. </P>
|
||||
<P>The GNU LGPL relaxes the "link-to" restriction, allowing you to
|
||||
develop applications that use the CUPS API library under other licenses
|
||||
and/or conditions as appropriate for your application. </P>
|
||||
@@ -968,26 +946,19 @@ standards as the original. </P>
|
||||
<P>Easy Software Products also sells rights to the CUPS source code
|
||||
under a binary distribution license for vendors that are unable to
|
||||
release source code for their drivers, additions, and modifications to
|
||||
CUPS under the GNU GPL and LGPL. For information please contact us at
|
||||
the address shown above. </P>
|
||||
CUPS under the GNU GPL and LGPL. For pricing information please contact
|
||||
us at the address shown above. </P>
|
||||
<P>The Common UNIX Printing System provides a "pstoraster" filter that
|
||||
utilizes the GNU GhostScript 5.50 core to convert PostScript files into
|
||||
a stream of raster images. For binary distribution licensing of this
|
||||
software, please contact: <BLOCKQUOTE> Miles Jones
|
||||
utilizes GNU GhostScript 5.50 to convert PostScript files into a stream
|
||||
of raster images. For binary distribution licensing of this software,
|
||||
please contact: <BLOCKQUOTE>Miles Jones
|
||||
<BR> Director of Marketing
|
||||
<BR> Artifex Software Inc.
|
||||
<BR> 454 Las Gallinas Ave., Suite 108
|
||||
<BR> San Rafael, CA 94903 USA
|
||||
<BR> Voice: +1.415.492.9861
|
||||
<BR> Fax: +1.415.492.9862
|
||||
<BR> EMail: <A HREF="mailto:info@arsoft.com">info@arsoft.com</A></BLOCKQUOTE>
|
||||
</P>
|
||||
<P>The "pdftops" filter is based on the Xpdf 0.90 software. For binary
|
||||
distribution licensing of this software, please contact: <BLOCKQUOTE>
|
||||
Derek B. Noonburg
|
||||
<BR> Email: <A HREF="mailto:derekn@foolabs.com">derekn@foolabs.com</A>
|
||||
<BR> WWW: <A HREF="http://www.foolabs.com/xpdf/">
|
||||
http://www.foolabs.com/xpdf/</A></BLOCKQUOTE></P>
|
||||
<BR> EMail: info@arsoft.com </BLOCKQUOTE></P>
|
||||
<H3><A NAME="6_1_4">Support</A></H3>
|
||||
<P>Easy Software Products sells software support for CUPS as well as a
|
||||
commercial printing product based on CUPS called ESP Print Pro. You can
|
||||
|
||||
+905
-983
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+1
-33
@@ -558,38 +558,6 @@ keywords are highlighted, and comment lines are italicized:
|
||||
|
||||
<P>The following options apply when printing image files.
|
||||
|
||||
<H3>Positioning the Image</H3>
|
||||
|
||||
<P>The <CODE>-o position=name</CODE> option specifies the position of the
|
||||
image on the page:
|
||||
|
||||
<UL>
|
||||
|
||||
<LI><CODE>center</CODE> - Center the image on the page (default)
|
||||
|
||||
<LI><CODE>top</CODE> - Print the image centered at the top of the page
|
||||
|
||||
<LI><CODE>left</CODE> - Print the image centered on the left of page
|
||||
|
||||
<LI><CODE>right</CODE> - Print the image centered on the right of the page
|
||||
|
||||
<LI><CODE>top-left</CODE> - Print the image at the top left corner of
|
||||
the page
|
||||
|
||||
<LI><CODE>top-right</CODE> - Print the image at the top right corner of
|
||||
the page
|
||||
|
||||
<LI><CODE>bottom</CODE> - Print the image centered at the bottom of
|
||||
the page
|
||||
|
||||
<LI><CODE>bottom-left</CODE> - Print the image at the bottom left
|
||||
corner of the page
|
||||
|
||||
<LI><CODE>bottom-right</CODE> - Print the image at the bottom right
|
||||
corner of the page
|
||||
|
||||
</UL>
|
||||
|
||||
<H3>Scaling the Image</H3>
|
||||
|
||||
<P>The <CODE>-o scaling=percent</CODE> and <CODE>-o ppi=value</CODE>
|
||||
@@ -684,7 +652,7 @@ print, while a value of 200 will make the colors extremely intense.
|
||||
|
||||
<P>The default saturation is 100.
|
||||
|
||||
<!-- NEED 4in -->
|
||||
<!-- NEED 2in -->
|
||||
<H2>HP-GL/2 Options</H2>
|
||||
|
||||
<P>The following options apply to HP-GL/2 files.
|
||||
|
||||
+33
-89
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> CUPS Software Version Description</TITLE>
|
||||
<TITLE>CUPS Software Version Description</TITLE>
|
||||
<META NAME="AUTHOR" CONTENT="Easy Software Products">
|
||||
<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2000, All Rights Reserved">
|
||||
<META NAME="DOCNUMBER" CONTENT="CUPS-SVD-1.1">
|
||||
@@ -20,8 +20,8 @@ PRE { font-size: 9.0pt }
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0" WIDTH="100%"><BR>
|
||||
<H1> CUPS Software Version Description</H1></A><BR>
|
||||
<CENTER><A HREF="#CONTENTS"><IMG SRC="images/cups-large.gif" BORDER="0"><BR>
|
||||
<H1>CUPS Software Version Description</H1></A><BR>
|
||||
CUPS-SVD-1.1<BR>
|
||||
Easy Software Products<BR>
|
||||
Copyright 1997-2000, All Rights Reserved<BR>
|
||||
@@ -45,23 +45,9 @@ Copyright 1997-2000, All Rights Reserved<BR>
|
||||
<LI><A HREF="#3_1">3.1 Filters</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_1_1">3.1.1 imagetoraster, imagetops</A></LI>
|
||||
<LI><A HREF="#3_1_2">3.1.2 pdftops</A></LI>
|
||||
<LI><A HREF="#3_1_3">3.1.3 pstoraster</A></LI>
|
||||
<LI><A HREF="#3_1_4">3.1.4 rastertoepson</A></LI>
|
||||
<LI><A HREF="#3_1_2">3.1.2 pstoraster</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_2">3.2 User-Defined Printers and Options</A></LI>
|
||||
<LI><A HREF="#3_3">3.3 Daemons</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_3_1">3.3.1 cups-lpd</A></LI>
|
||||
<LI><A HREF="#3_3_2">3.3.2 cups-polld</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_4">3.4 Commands</A></LI>
|
||||
<UL>
|
||||
<LI><A HREF="#3_4_1">3.4.1 lpoptions</A></LI>
|
||||
<LI><A HREF="#3_4_2">3.4.2 lpmove</A></LI>
|
||||
<LI><A HREF="#3_4_3">3.4.3 lpinfo</A></LI>
|
||||
</UL>
|
||||
<LI><A HREF="#3_5">3.5 IPP Implementation</A></LI>
|
||||
</UL>
|
||||
<B><A HREF="#4">4 Changes</A></B>
|
||||
<UL>
|
||||
@@ -113,7 +99,7 @@ following sections:</P>
|
||||
<LI>CUPS-IPP-1.1: CUPS Implmentation of IPP </LI>
|
||||
<LI>CUPS-SAM-1.1.x: CUPS Software Administrators Manual </LI>
|
||||
<LI>CUPS-SDD-1.1: CUPS Software Design Description </LI>
|
||||
<LI>CUPS-SPM-1.1.x: CUPS Software Programming Manual </LI>
|
||||
<LI>CUPS-SPM-1.1: CUPS Software Programming Manual </LI>
|
||||
<LI>CUPS-SSR-1.1: CUPS Software Security Report </LI>
|
||||
<LI>CUPS-STP-1.1: CUPS Software Test Plan </LI>
|
||||
<LI>CUPS-SUM-1.1.x: CUPS Software Users Manual </LI>
|
||||
@@ -122,49 +108,34 @@ following sections:</P>
|
||||
<H2><A NAME="2_2">2.2 Other Documents</A></H2>
|
||||
<P>The following non-CUPS documents are referenced by this document: </P>
|
||||
<UL>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/5003.PPD_Spec_v4.3.pdf">
|
||||
Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3.</A></LI>
|
||||
<LI><A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/PLRM.pdf">
|
||||
Adobe PostScript Language Reference, Third Edition.</A></LI>
|
||||
<LI>Adobe PostScript Printer Description File Format Specification,
|
||||
Version 4.3. </LI>
|
||||
<LI>Adobe PostScript Language Reference, Third Edition. </LI>
|
||||
<LI>IPP: Job and Printer Set Operations </LI>
|
||||
<LI>IPP/1.1: Encoding and Transport </LI>
|
||||
<LI>IPP/1.1: Implementers Guide </LI>
|
||||
<LI>IPP/1.1: Model and Semantics </LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc1179.txt">RFC 1179, Line
|
||||
Printer Daemon Protocol</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2567.txt">RFC 2567, Design
|
||||
Goals for an Internet Printing Protocol</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2568.txt">RFC 2568, Rationale
|
||||
for the Structure of the Model and Protocol</A> for the Internet
|
||||
Printing Protocol</LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2569.txt">RFC 2569, Mapping
|
||||
between LPD and IPP Protocols</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616, Hypertext
|
||||
Transfer Protocol -- HTTP/1.1</A></LI>
|
||||
<LI><A HREF="http://www.ietf.org/rfc/rfc2617.txt">RFC 2617, HTTP
|
||||
Authentication: Basic and Digest Access</A> Authentication </LI>
|
||||
<LI>RFC 1179, Line Printer Daemon Protocol </LI>
|
||||
<LI>RFC 2567, Design Goals for an Internet Printing Protocol </LI>
|
||||
<LI>RFC 2568, Rationale for the Structure of the Model and Protocol
|
||||
for the Internet Printing Protocol </LI>
|
||||
<LI>RFC 2569, Mapping between LPD and IPP Protocols </LI>
|
||||
<LI>RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1 </LI>
|
||||
<LI>RFC 2617, HTTP Authentication: Basic and Digest Access
|
||||
Authentication </LI>
|
||||
</UL>
|
||||
<H1><A NAME="3">3 Additions</A></H1>
|
||||
<P>CUPS 1.1 includes many new features from the 1.0.x releases. </P>
|
||||
CUPS 1.1 includes many new features from the 1.0.x releases.
|
||||
<H2><A NAME="3_1">3.1 Filters</A></H2>
|
||||
<H3><A NAME="3_1_1">3.1.1 <CODE>imagetoraster</CODE>, <CODE>imagetops</CODE>
|
||||
</A></H3>
|
||||
<P>The image file filters have been upgraded to support conversion of
|
||||
Microsoft Bitmap ("BMP") and Alias PIX files. </P>
|
||||
<H3><A NAME="3_1_2">3.1.2 pdftops</A></H3>
|
||||
<P>A new pdftops filter has been developed that is based on the
|
||||
excellent Xpdf 0.90 software from Derek B. Noonburg. The new filter is
|
||||
faster, smaller, and considerably more reliable than the
|
||||
Ghostscript-based filter in CUPS 1.0. </P>
|
||||
<H3><A NAME="3_1_3">3.1.3 pstoraster</A></H3>
|
||||
The image file filters have been upgraded to support conversion of
|
||||
Microsoft Bitmap ("BMP") files.
|
||||
<H3><A NAME="3_1_2">3.1.2 pstoraster</A></H3>
|
||||
<P>The <CODE>pstoraster</CODE> filter has been integrated with GNU
|
||||
GhostScript 5.50. The new RIP supports most Level 3 PostScript language
|
||||
features. </P>
|
||||
<H3><A NAME="3_1_4">3.1.4 rastertoepson</A></H3>
|
||||
<P>The new <CODE>rastertoepson</CODE> filter supports EPSON printers
|
||||
using the ESC/P or ESC/P2 command sets. PPDs are supplied for 9-pin,
|
||||
24-pin, Stylus Color, and Stylus Photo printers. </P>
|
||||
features and much better color management for the sample printer
|
||||
drivers. </P>
|
||||
<H2><A NAME="3_2">3.2 User-Defined Printers and Options</A></H2>
|
||||
<P>The new <CODE>lpoptions</CODE> command allows users to configure
|
||||
default document options and create additional "instances" of existing
|
||||
@@ -172,42 +143,15 @@ printers, each with unique options. </P>
|
||||
<P>The <CODE>lp</CODE>, <CODE>lpr</CODE>, and <CODE>lpstat</CODE>
|
||||
commands have been upgraded to use this option and printer instance
|
||||
information automatically. </P>
|
||||
<H2><A NAME="3_3">3.3 Daemons</A></H2>
|
||||
<P>CUPS 1.1 includes two new daemons that provide enhanced network
|
||||
printing support. </P>
|
||||
<H3><A NAME="3_3_1">3.3.1 cups-lpd</A></H3>
|
||||
<P>The <CODE>cups-lpd</CODE> daemon provides support for clients using
|
||||
the Line Printer Daemon protocol. </P>
|
||||
<H3><A NAME="3_3_2">3.3.2 cups-polld</A></H3>
|
||||
<P>The <CODE>cups-polld</CODE> daemon provides remote polling services
|
||||
for the scheduler. </P>
|
||||
<H2><A NAME="3_4">3.4 Commands</A></H2>
|
||||
<P>CUPS 1.1 includes several new printing commands. </P>
|
||||
<H3><A NAME="3_4_1">3.4.1 lpoptions</A></H3>
|
||||
<P>The <CODE>lpoptions</CODE> command provides user-defined printers
|
||||
and options. </P>
|
||||
<H3><A NAME="3_4_2">3.4.2 lpmove</A></H3>
|
||||
<P>The <CODE>lpmove</CODE> command moves a print job to a new
|
||||
destination. </P>
|
||||
<H3><A NAME="3_4_3">3.4.3 lpinfo</A></H3>
|
||||
<P>The <CODE>lpinfo</CODE> command lists the available PPD files or
|
||||
devices. </P>
|
||||
<H2><A NAME="3_5">3.5 IPP Implementation</A></H2>
|
||||
<P>CUPS 1.1 adds support for the <CODE>set-job-attributes</CODE>
|
||||
extension operation as well as two new CUPS-specific extension
|
||||
operations to determine which devices and printer drivers are available
|
||||
on the system. </P>
|
||||
<P>Further information on the CUPS implementation of IPP can be found
|
||||
in CUPS-IPP-1.1. </P>
|
||||
<H1><A NAME="4">4 Changes</A></H1>
|
||||
<P>CUPS 1.1 includes many changes from the 1.0.x releases. </P>
|
||||
CUPS 1.1 includes many changes from the 1.0.x releases.
|
||||
<H2><A NAME="4_1">4.1 Directory Structure</A></H2>
|
||||
<P>The directory structure in CUPS 1.1 has been modified to conform to
|
||||
The directory structure in CUPS 1.1 has been modified to conform to
|
||||
the Filesystem Hierarchy Standard, 2.0. The following table describes
|
||||
the new file locations.
|
||||
<CENTER>
|
||||
<TABLE BORDER WIDTH="80%"><CAPTION> Table 1: Directory structure
|
||||
changes from CUPS 1.0.x to 1.1.x.</CAPTION>
|
||||
<TABLE BORDER WIDTH="80%"><CAPTION>Table N: Directory structure changes
|
||||
from CUPS 1.0.x to 1.1.x.</CAPTION>
|
||||
<TR><TH>Description</TH><TH>CUPS 1.0.x</TH><TH>CUPS 1.1.x</TH></TR>
|
||||
<TR><TD>Backends</TD><TD>/var/cups/backend</TD><TD>/usr/lib/cups/backend</TD>
|
||||
</TR>
|
||||
@@ -229,13 +173,11 @@ changes from CUPS 1.0.x to 1.1.x.</CAPTION>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</CENTER>
|
||||
</P>
|
||||
<H2><A NAME="4_2">4.2 IPP Implementation</A></H2>
|
||||
<P>CUPS 1.1 is based on version 1.1 of the Internet Printing Protocol. </P>
|
||||
<P>The new scheduler supports the <CODE>create-job</CODE> and <CODE>
|
||||
send-document</CODE> operations. In addition, the <CODE>job-sheets</CODE>
|
||||
, <CODE>job-sheets-default</CODE>, and <CODE>job-sheets-supported</CODE>
|
||||
attributes are now supported for banner pages. </P>
|
||||
<P>CUPS 1.1 is based on version 1.1 of the Internet Printing Protocol,
|
||||
and implements the <CODE>set-job-attributes</CODE> extension operation. </P>
|
||||
<P>Two new CUPS-specific extension operations are provided to determine
|
||||
which devices and printer drivers are available on the system. </P>
|
||||
<P>The <CODE>CUPS-get-printers</CODE> and <CODE>CUPS-get-classes</CODE>
|
||||
operations have been upgraded to support limited filtering based upon
|
||||
the <CODE>printer-type</CODE>, <CODE>printer-location</CODE>, <CODE>
|
||||
@@ -273,7 +215,7 @@ in CUPS-IPP-1.1. </P>
|
||||
<DT>HP-GL </DT>
|
||||
<DD>Hewlett-Packard Graphics Language </DD>
|
||||
<DT>HP-PCL </DT>
|
||||
<DD>Hewlett-Packard Page Control Language </DD>
|
||||
<DD>Hewlett-Packard Printer Control Language </DD>
|
||||
<DT>HP-PJL </DT>
|
||||
<DD>Hewlett-Packard Printer Job Language </DD>
|
||||
<DT>IETF </DT>
|
||||
@@ -286,6 +228,8 @@ in CUPS-IPP-1.1. </P>
|
||||
<DD>Line Printer Daemon </DD>
|
||||
<DT>MIME </DT>
|
||||
<DD>Multimedia Internet Mail Exchange </DD>
|
||||
<DT>PCL </DT>
|
||||
<DD>Page Control Language </DD>
|
||||
<DT>PPD </DT>
|
||||
<DD>PostScript Printer Description </DD>
|
||||
<DT>SMB </DT>
|
||||
|
||||
Arquivo binário não exibido.
+15
-71
@@ -33,33 +33,20 @@ sections:</P>
|
||||
|
||||
<H1>Additions</H1>
|
||||
|
||||
<P>CUPS 1.1 includes many new features from the 1.0.x releases.
|
||||
CUPS 1.1 includes many new features from the 1.0.x releases.
|
||||
|
||||
<H2>Filters</H2>
|
||||
|
||||
<H3><CODE>imagetoraster</CODE>, <CODE>imagetops</CODE></H3>
|
||||
|
||||
<P>The image file filters have been upgraded to support conversion of
|
||||
Microsoft Bitmap ("BMP") and Alias PIX files.
|
||||
|
||||
<H3>pdftops</H3>
|
||||
|
||||
<P>A new pdftops filter has been developed that is based on the
|
||||
excellent Xpdf 0.90 software from Derek B. Noonburg. The new filter is
|
||||
faster, smaller, and considerably more reliable than the
|
||||
Ghostscript-based filter in CUPS 1.0.
|
||||
The image file filters have been upgraded to support conversion of Microsoft
|
||||
Bitmap ("BMP") files.
|
||||
|
||||
<H3>pstoraster</H3>
|
||||
|
||||
<P>The <CODE>pstoraster</CODE> filter has been integrated with GNU
|
||||
GhostScript 5.50. The new RIP supports most Level 3 PostScript language
|
||||
features.
|
||||
|
||||
<H3>rastertoepson</H3>
|
||||
|
||||
<P>The new <CODE>rastertoepson</CODE> filter supports EPSON printers
|
||||
using the ESC/P or ESC/P2 command sets. PPDs are supplied for 9-pin,
|
||||
24-pin, Stylus Color, and Stylus Photo printers.
|
||||
<P>The <CODE>pstoraster</CODE> filter has been integrated with GNU GhostScript 5.50. The
|
||||
new RIP supports most Level 3 PostScript language features and much better
|
||||
color management for the sample printer drivers.
|
||||
|
||||
<H2>User-Defined Printers and Options</H2>
|
||||
|
||||
@@ -71,61 +58,20 @@ each with unique options.
|
||||
have been upgraded to use this option and printer instance information
|
||||
automatically.
|
||||
|
||||
<H2>Daemons</H2>
|
||||
|
||||
<P>CUPS 1.1 includes two new daemons that provide enhanced network printing
|
||||
support.
|
||||
|
||||
<H3>cups-lpd</H3>
|
||||
|
||||
<P>The <CODE>cups-lpd</CODE> daemon provides support for clients using the
|
||||
Line Printer Daemon protocol.
|
||||
|
||||
<H3>cups-polld</H3>
|
||||
|
||||
<P>The <CODE>cups-polld</CODE> daemon provides remote polling services for
|
||||
the scheduler.
|
||||
|
||||
<H2>Commands</H2>
|
||||
|
||||
<P>CUPS 1.1 includes several new printing commands.
|
||||
|
||||
<H3>lpoptions</H3>
|
||||
|
||||
<P>The <CODE>lpoptions</CODE> command provides user-defined printers and
|
||||
options.
|
||||
|
||||
<H3>lpmove</H3>
|
||||
|
||||
<P>The <CODE>lpmove</CODE> command moves a print job to a new destination.
|
||||
|
||||
<H3>lpinfo</H3>
|
||||
|
||||
<P>The <CODE>lpinfo</CODE> command lists the available PPD files or devices.
|
||||
|
||||
<H2>IPP Implementation</H2>
|
||||
|
||||
<P>CUPS 1.1 adds support for the <CODE>set-job-attributes</CODE>
|
||||
extension operation as well as two new CUPS-specific extension
|
||||
operations to determine which devices and printer drivers are available
|
||||
on the system.
|
||||
|
||||
<P>Further information on the CUPS implementation of IPP can be found
|
||||
in CUPS-IPP-1.1.
|
||||
|
||||
|
||||
<H1>Changes</H1>
|
||||
|
||||
<P>CUPS 1.1 includes many changes from the 1.0.x releases.
|
||||
CUPS 1.1 includes many changes from the 1.0.x releases.
|
||||
|
||||
<H2>Directory Structure</H2>
|
||||
|
||||
<P>The directory structure in CUPS 1.1 has been modified to conform to the
|
||||
The directory structure in CUPS 1.1 has been modified to conform to the
|
||||
Filesystem Hierarchy Standard, 2.0. The following table describes the
|
||||
new file locations.
|
||||
|
||||
<CENTER><TABLE WIDTH="80%" BORDER>
|
||||
<CAPTION>Table 1: Directory structure changes from CUPS 1.0.x to 1.1.x.</CAPTION>
|
||||
<CAPTION>Table N: Directory structure changes from CUPS 1.0.x to 1.1.x.</CAPTION>
|
||||
<TR>
|
||||
<TH>Description</TH>
|
||||
<TH>CUPS 1.0.x</TH>
|
||||
@@ -185,13 +131,11 @@ new file locations.
|
||||
|
||||
<H2>IPP Implementation</H2>
|
||||
|
||||
<P>CUPS 1.1 is based on version 1.1 of the Internet Printing Protocol.
|
||||
<P>CUPS 1.1 is based on version 1.1 of the Internet Printing Protocol,
|
||||
and implements the <CODE>set-job-attributes</CODE> extension operation.
|
||||
|
||||
<P>The new scheduler supports the <CODE>create-job</CODE> and
|
||||
<CODE>send-document</CODE> operations. In addition, the
|
||||
<CODE>job-sheets</CODE>, <CODE>job-sheets-default</CODE>, and
|
||||
<CODE>job-sheets-supported</CODE> attributes are now supported for
|
||||
banner pages.
|
||||
<P>Two new CUPS-specific extension operations are provided to determine
|
||||
which devices and printer drivers are available on the system.
|
||||
|
||||
<P>The <CODE>CUPS-get-printers</CODE> and <CODE>CUPS-get-classes</CODE>
|
||||
operations have been upgraded to support limited filtering based upon
|
||||
@@ -200,8 +144,8 @@ the <CODE>printer-type</CODE>, <CODE>printer-location</CODE>,
|
||||
attributes.
|
||||
|
||||
<P>The <CODE>CUPS-add-printer</CODE> operation now supports the
|
||||
<CODE>ppd-name</CODE> attribute to specify a locally-available PPD file
|
||||
rather than sending the PPD file from the client with the request.
|
||||
<CODE>ppd-name</CODE> attribute to specify a locally-available PPD
|
||||
file rather than sending the PPD file from the client with the request.
|
||||
|
||||
<P>Further information on the CUPS implementation of IPP can be found
|
||||
in CUPS-IPP-1.1.
|
||||
|
||||
@@ -60,15 +60,10 @@ clean:
|
||||
|
||||
install:
|
||||
-$(MKDIR) $(SERVERBIN)/filter
|
||||
$(CHMOD) ugo+rx $(SERVERBIN)
|
||||
$(CHMOD) ugo+rx $(SERVERBIN)/filter
|
||||
$(INSTALL_BIN) $(TARGETS) $(SERVERBIN)/filter
|
||||
-$(MKDIR) $(INCLUDEDIR)/cups
|
||||
$(CHMOD) ugo+rx $(INCLUDEDIR)
|
||||
$(CHMOD) ugo+rx $(INCLUDEDIR)/cups
|
||||
$(INSTALL_DATA) raster.h $(INCLUDEDIR)/cups
|
||||
-$(MKDIR) $(LIBDIR)
|
||||
$(CHMOD) ugo+rx $(LIBDIR)
|
||||
$(INSTALL_DATA) $(LIBCUPSIMAGE) $(LIBDIR)
|
||||
-if test $(LIBCUPSIMAGE) != "libcupsimage.a" -a $(LIBCUPSIMAGE) != "libcupsimage.la"; then \
|
||||
$(RM) `basename $(LIBCUPSIMAGE) .2`; \
|
||||
|
||||
@@ -71,7 +71,6 @@ CR_color_range(int num_params, /* I - Number of parameters */
|
||||
/*
|
||||
* Set the range based on the parameters...
|
||||
*/
|
||||
|
||||
ColorRange[0][0] = params[0].value.number;
|
||||
ColorRange[0][1] = params[1].value.number - params[0].value.number;
|
||||
ColorRange[1][0] = params[2].value.number;
|
||||
@@ -270,12 +269,9 @@ PC_pen_color(int num_params, /* I - Number of parameters */
|
||||
}
|
||||
else
|
||||
{
|
||||
Pens[i].rgb[0] = (params[1].value.number - ColorRange[0][0]) /
|
||||
(ColorRange[0][1] - ColorRange[0][0]);
|
||||
Pens[i].rgb[1] = (params[2].value.number - ColorRange[1][0]) /
|
||||
(ColorRange[1][1] - ColorRange[1][0]);
|
||||
Pens[i].rgb[2] = (params[3].value.number - ColorRange[2][0]) /
|
||||
(ColorRange[2][1] - ColorRange[2][0]);
|
||||
Pens[i].rgb[0] = params[1].value.number;
|
||||
Pens[i].rgb[1] = params[2].value.number;
|
||||
Pens[i].rgb[2] = params[3].value.number;
|
||||
}
|
||||
|
||||
if (PageDirty && i == PenNumber)
|
||||
|
||||
@@ -361,10 +361,10 @@ IP_input_absolute(int num_params, /* I - Number of parameters */
|
||||
P2[1] = params[3].value.number;
|
||||
}
|
||||
|
||||
IW1[0] = 0.0;
|
||||
IW1[1] = 0.0;
|
||||
IW2[0] = 0.0;
|
||||
IW2[1] = 0.0;
|
||||
IW1[0] = P1[0];
|
||||
IW1[1] = P1[1];
|
||||
IW2[0] = P2[0];
|
||||
IW2[1] = P2[1];
|
||||
|
||||
if (ScalingType < 0)
|
||||
{
|
||||
@@ -410,10 +410,10 @@ IR_input_relative(int num_params, /* I - Number of parameters */
|
||||
P2[1] = params[3].value.number * PlotSize[1] / 72.0f * 1016.0f / 100.0f;
|
||||
}
|
||||
|
||||
IW1[0] = 0.0;
|
||||
IW1[1] = 0.0;
|
||||
IW2[0] = 0.0;
|
||||
IW2[1] = 0.0;
|
||||
IW1[0] = P1[0];
|
||||
IW1[1] = P1[1];
|
||||
IW2[0] = P2[0];
|
||||
IW2[1] = P2[1];
|
||||
|
||||
if (ScalingType < 0)
|
||||
{
|
||||
|
||||
+83
-115
@@ -48,8 +48,6 @@ OutputProlog(char *title, /* I - Job title */
|
||||
{
|
||||
FILE *prolog; /* Prolog file */
|
||||
char line[255]; /* Line from prolog file */
|
||||
const char *datadir; /* CUPS_DATADIR environment variable */
|
||||
char filename[1024]; /* Name of prolog file */
|
||||
time_t curtime; /* Current time */
|
||||
struct tm *curtm; /* Current date */
|
||||
|
||||
@@ -81,15 +79,9 @@ OutputProlog(char *title, /* I - Job title */
|
||||
else if (!ColorDevice) /* Greyscale */
|
||||
puts("/setrgbcolor { 0.08 mul exch 0.61 mul add exch 0.31 mul add setgray } bind def\n");
|
||||
|
||||
if ((datadir = getenv("CUPS_DATADIR")) == NULL)
|
||||
datadir = CUPS_DATADIR;
|
||||
|
||||
snprintf(filename, sizeof(filename), "%s/data/HPGLprolog", datadir);
|
||||
|
||||
if ((prolog = fopen(filename, "r")) == NULL)
|
||||
if ((prolog = fopen(CUPS_DATADIR "/data/HPGLprolog", "r")) == NULL)
|
||||
{
|
||||
fprintf(stderr, "ERROR: Unable to open HPGL prolog \"%s\" for reading - %s\n",
|
||||
filename, strerror(errno));
|
||||
perror("ERROR: Unable to open HPGL prolog \"" CUPS_DATADIR "/data/HPGLprolog\" for reading");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -149,11 +141,7 @@ Outputf(const char *format, /* I - Printf-style string */
|
||||
PageDirty = 1;
|
||||
PageCount ++;
|
||||
|
||||
printf("%%%%Page: %d %d\n", PageCount, PageCount);
|
||||
|
||||
landscape = 0;
|
||||
|
||||
if (!FitPlot)
|
||||
if (PPD != NULL && !FitPlot)
|
||||
{
|
||||
/*
|
||||
* Set the page size for this page...
|
||||
@@ -170,130 +158,110 @@ Outputf(const char *format, /* I - Printf-style string */
|
||||
length = PlotSize[0];
|
||||
}
|
||||
|
||||
fprintf(stderr, "DEBUG: hpgltops setting page size (%.0f x %.0f)\n",
|
||||
width, length);
|
||||
landscape = 0;
|
||||
|
||||
if (PPD != NULL)
|
||||
/*
|
||||
* Lookup the closest PageSize and set it...
|
||||
*/
|
||||
|
||||
for (i = PPD->num_sizes, size = PPD->sizes; i > 0; i --, size ++)
|
||||
if ((fabs(length - size->length) < 36.0 && size->width >= width) ||
|
||||
(fabs(length - size->width) < 36.0 && size->length >= width))
|
||||
break;
|
||||
|
||||
if (i == 0 && PPD->variable_sizes)
|
||||
{
|
||||
for (i = PPD->num_sizes, size = PPD->sizes; i > 0; i --, size ++)
|
||||
if (strcasecmp(size->name, "custom") == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
if (i > 0)
|
||||
{
|
||||
fputs("DEBUG: hpgltops has a PPD file!\n", stderr);
|
||||
|
||||
/*
|
||||
* Lookup the closest PageSize and set it...
|
||||
* Found a matching size...
|
||||
*/
|
||||
|
||||
for (i = PPD->num_sizes, size = PPD->sizes; i > 0; i --, size ++)
|
||||
if ((fabs(length - size->length) < 36.0 && size->width >= width) ||
|
||||
(fabs(length - size->width) < 36.0 && size->length >= width))
|
||||
break;
|
||||
option = ppdFindOption(PPD, "PageSize");
|
||||
choice = ppdFindChoice(option, size->name);
|
||||
|
||||
if (i == 0 && PPD->variable_sizes)
|
||||
puts("%%BeginSetup");
|
||||
printf("%%%%BeginFeature: PageSize %s\n", size->name);
|
||||
|
||||
if (strcasecmp(size->name, "custom") == 0)
|
||||
{
|
||||
for (i = PPD->num_sizes, size = PPD->sizes; i > 0; i --, size ++)
|
||||
if (strcasecmp(size->name, "custom") == 0)
|
||||
break;
|
||||
}
|
||||
PageLeft = PPD->custom_margins[0];
|
||||
PageRight = width - PPD->custom_margins[2];
|
||||
PageWidth = width;
|
||||
PageBottom = PPD->custom_margins[1];
|
||||
PageTop = length - PPD->custom_margins[3];
|
||||
PageLength = length;
|
||||
|
||||
if (i > 0)
|
||||
{
|
||||
/*
|
||||
* Found a matching size...
|
||||
*/
|
||||
printf("%.0f %.0f 0 0 0\n", width, length);
|
||||
|
||||
option = ppdFindOption(PPD, "PageSize");
|
||||
choice = ppdFindChoice(option, size->name);
|
||||
|
||||
puts("%%BeginPageSetup");
|
||||
printf("%%%%BeginFeature: PageSize %s\n", size->name);
|
||||
|
||||
if (strcasecmp(size->name, "custom") == 0)
|
||||
if (choice->code == NULL)
|
||||
{
|
||||
PageLeft = PPD->custom_margins[0];
|
||||
PageRight = width - PPD->custom_margins[2];
|
||||
PageWidth = width;
|
||||
PageBottom = PPD->custom_margins[1];
|
||||
PageTop = length - PPD->custom_margins[3];
|
||||
PageLength = length;
|
||||
/*
|
||||
* This can happen with certain buggy PPD files that don't include
|
||||
* a CustomPageSize command sequence... We just use a generic
|
||||
* Level 2 command sequence...
|
||||
*/
|
||||
|
||||
printf("%.0f %.0f 0 0 0\n", width, length);
|
||||
puts("pop pop pop");
|
||||
puts("<</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Use the vendor-supplied command...
|
||||
*/
|
||||
|
||||
if (choice->code == NULL)
|
||||
{
|
||||
/*
|
||||
* This can happen with certain buggy PPD files that don't include
|
||||
* a CustomPageSize command sequence... We just use a generic
|
||||
* Level 2 command sequence...
|
||||
*/
|
||||
printf("%s\n", choice->code);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (choice->code)
|
||||
printf("%s\n", choice->code);
|
||||
|
||||
puts("pop pop pop");
|
||||
puts("<</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Use the vendor-supplied command...
|
||||
*/
|
||||
if (fabs(length - size->width) < 36.0)
|
||||
{
|
||||
/*
|
||||
* Do landscape orientation...
|
||||
*/
|
||||
|
||||
printf("%s\n", choice->code);
|
||||
}
|
||||
PageLeft = size->bottom;
|
||||
PageRight = size->top;
|
||||
PageWidth = size->length;
|
||||
PageBottom = size->left;
|
||||
PageTop = size->right;
|
||||
PageLength = size->width;
|
||||
|
||||
landscape = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (choice->code)
|
||||
printf("%s\n", choice->code);
|
||||
/*
|
||||
* Do portrait orientation...
|
||||
*/
|
||||
|
||||
if (fabs(length - size->width) < 36.0)
|
||||
{
|
||||
/*
|
||||
* Do landscape orientation...
|
||||
*/
|
||||
|
||||
PageLeft = size->bottom;
|
||||
PageRight = size->top;
|
||||
PageWidth = size->length;
|
||||
PageBottom = size->left;
|
||||
PageTop = size->right;
|
||||
PageLength = size->width;
|
||||
|
||||
landscape = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Do portrait orientation...
|
||||
*/
|
||||
|
||||
PageLeft = size->left;
|
||||
PageRight = size->right;
|
||||
PageWidth = size->width;
|
||||
PageBottom = size->bottom;
|
||||
PageTop = size->top;
|
||||
PageLength = size->length;
|
||||
}
|
||||
PageLeft = size->left;
|
||||
PageRight = size->right;
|
||||
PageWidth = size->width;
|
||||
PageBottom = size->bottom;
|
||||
PageTop = size->top;
|
||||
PageLength = size->length;
|
||||
}
|
||||
|
||||
puts("%%EndFeature");
|
||||
puts("%%EndPageSetup");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fputs("DEBUG: hpgltops does not have a PPD file!\n", stderr);
|
||||
|
||||
puts("%%BeginPageSetup");
|
||||
printf("%%%%BeginFeature: PageSize w%.0fh%.0f\n", width, length);
|
||||
printf("<</PageSize[%.0f %.0f]/ImageBBox null>>setpagedevice\n",
|
||||
width, length);
|
||||
puts("%%EndFeature");
|
||||
puts("%%EndPageSetup");
|
||||
|
||||
PageLeft = 0.0;
|
||||
PageRight = width;
|
||||
PageWidth = width;
|
||||
PageBottom = 0.0;
|
||||
PageTop = length;
|
||||
PageLength = length;
|
||||
puts("%%EndSetup");
|
||||
}
|
||||
}
|
||||
else
|
||||
landscape = 0;
|
||||
|
||||
printf("%%%%Page: %d %d\n", PageCount, PageCount);
|
||||
|
||||
printf("/SA {\n"
|
||||
" /%s%s%s%s findfont\n"
|
||||
|
||||
@@ -377,10 +377,6 @@ PE_polyline_encoded(int num_params, /* I - Number of parameters */
|
||||
case '7' :
|
||||
s ++;
|
||||
base_bits = 5;
|
||||
|
||||
#ifdef DEBUG
|
||||
fputs("DEBUG: 7-bit\n", stderr);
|
||||
#endif /* DEBUG */
|
||||
break;
|
||||
case ':' : /* Select pen */
|
||||
s ++;
|
||||
@@ -389,35 +385,19 @@ PE_polyline_encoded(int num_params, /* I - Number of parameters */
|
||||
printf("%.3f %.3f %.3f %.2f SP\n", Pens[PenNumber].rgb[0],
|
||||
Pens[PenNumber].rgb[PenNumber], Pens[PenNumber].rgb[2],
|
||||
Pens[PenNumber].width * PenScaling);
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "DEBUG: set pen #%d\n", PenNumber);
|
||||
#endif /* DEBUG */
|
||||
break;
|
||||
case '<' : /* Next coords are a move-to */
|
||||
draw = 0;
|
||||
s ++;
|
||||
|
||||
#ifdef DEBUG
|
||||
fputs("DEBUG: moveto\n", stderr);
|
||||
#endif /* DEBUG */
|
||||
break;
|
||||
case '>' : /* Set fractional bits */
|
||||
s ++;
|
||||
temp = (int)decode_number(&s, base_bits, 1.0);
|
||||
frac_bits = 1.0 / (1 << temp);
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "DEBUG: set fractional bits %d\n", temp);
|
||||
#endif /* DEBUG */
|
||||
break;
|
||||
case '=' : /* Next coords are absolute */
|
||||
s ++;
|
||||
abscoords = 1;
|
||||
|
||||
#ifdef DEBUG
|
||||
fputs("DEBUG: absolute\n", stderr);
|
||||
#endif /* DEBUG */
|
||||
break;
|
||||
default :
|
||||
if (*s >= 63)
|
||||
@@ -429,10 +409,6 @@ PE_polyline_encoded(int num_params, /* I - Number of parameters */
|
||||
x = decode_number(&s, base_bits, frac_bits);
|
||||
y = decode_number(&s, base_bits, frac_bits);
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "DEBUG: coords %.3f %.3f\n", x, y);
|
||||
#endif /* DEBUG */
|
||||
|
||||
if (abscoords)
|
||||
{
|
||||
tx = Transform[0][0] * x + Transform[0][1] * y +
|
||||
|
||||
+1
-80
@@ -42,8 +42,6 @@
|
||||
*/
|
||||
|
||||
int Flip = 0, /* Flip/mirror pages */
|
||||
XPosition = 0, /* Horizontal position on page */
|
||||
YPosition = 0, /* Vertical position on page */
|
||||
Collate = 0, /* Collate copies? */
|
||||
Copies = 1; /* Number of copies */
|
||||
|
||||
@@ -96,7 +94,6 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
int ppi; /* Pixels-per-inch */
|
||||
int hue, sat; /* Hue and saturation adjustment */
|
||||
int realcopies; /* Real copies being printed */
|
||||
float left, top; /* Left and top of image */
|
||||
|
||||
|
||||
if (argc != 7)
|
||||
@@ -153,55 +150,6 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
if ((val = cupsGetOption("ppi", num_options, options)) != NULL)
|
||||
ppi = atoi(val);
|
||||
|
||||
if ((val = cupsGetOption("position", num_options, options)) != NULL)
|
||||
{
|
||||
if (strcasecmp(val, "center") == 0)
|
||||
{
|
||||
XPosition = 0;
|
||||
YPosition = 0;
|
||||
}
|
||||
else if (strcasecmp(val, "top") == 0)
|
||||
{
|
||||
XPosition = 0;
|
||||
YPosition = 1;
|
||||
}
|
||||
else if (strcasecmp(val, "left") == 0)
|
||||
{
|
||||
XPosition = -1;
|
||||
YPosition = 0;
|
||||
}
|
||||
else if (strcasecmp(val, "right") == 0)
|
||||
{
|
||||
XPosition = 1;
|
||||
YPosition = 0;
|
||||
}
|
||||
else if (strcasecmp(val, "top-left") == 0)
|
||||
{
|
||||
XPosition = -1;
|
||||
YPosition = 1;
|
||||
}
|
||||
else if (strcasecmp(val, "top-right") == 0)
|
||||
{
|
||||
XPosition = 1;
|
||||
YPosition = 1;
|
||||
}
|
||||
else if (strcasecmp(val, "bottom") == 0)
|
||||
{
|
||||
XPosition = 0;
|
||||
YPosition = -1;
|
||||
}
|
||||
else if (strcasecmp(val, "bottom-left") == 0)
|
||||
{
|
||||
XPosition = -1;
|
||||
YPosition = -1;
|
||||
}
|
||||
else if (strcasecmp(val, "bottom-right") == 0)
|
||||
{
|
||||
XPosition = 1;
|
||||
YPosition = -1;
|
||||
}
|
||||
}
|
||||
|
||||
if ((val = cupsGetOption("saturation", num_options, options)) != NULL)
|
||||
sat = atoi(val);
|
||||
|
||||
@@ -427,34 +375,7 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
y0 = img->ysize * ypage / ypages;
|
||||
y1 = img->ysize * (ypage + 1) / ypages - 1;
|
||||
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
left = PageLeft;
|
||||
break;
|
||||
case 0 :
|
||||
left = (PageWidth - xprint * 72.0) * 0.5;
|
||||
break;
|
||||
case 1 :
|
||||
left = PageRight - xprint * 72.0;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (YPosition)
|
||||
{
|
||||
case -1 :
|
||||
top = PageBottom + 72.0 * yprint;
|
||||
break;
|
||||
case 0 :
|
||||
top = (PageLength + yprint * 72.0) * 0.5;
|
||||
break;
|
||||
case 1 :
|
||||
top = PageTop;
|
||||
break;
|
||||
}
|
||||
|
||||
printf("%.1f %.1f translate\n", left, top);
|
||||
|
||||
printf("%.1f %.1f translate\n", PageLeft, PageBottom + 72.0 * yprint);
|
||||
printf("%.3f %.3f scale\n\n",
|
||||
xprint * 72.0 / (x1 - x0 + 1),
|
||||
yprint * 72.0 / (y1 - y0 + 1));
|
||||
|
||||
+57
-299
@@ -55,8 +55,6 @@
|
||||
*/
|
||||
|
||||
int Flip = 0, /* Flip/mirror pages */
|
||||
XPosition = 0, /* Horizontal position on page */
|
||||
YPosition = 0, /* Vertical position on page */
|
||||
Collate = 0, /* Collate copies? */
|
||||
Copies = 1; /* Number of copies */
|
||||
int Floyd16x16[16][16] = /* Traditional Floyd ordered dither */
|
||||
@@ -256,55 +254,6 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
if ((val = cupsGetOption("ppi", num_options, options)) != NULL)
|
||||
ppi = atoi(val);
|
||||
|
||||
if ((val = cupsGetOption("position", num_options, options)) != NULL)
|
||||
{
|
||||
if (strcasecmp(val, "center") == 0)
|
||||
{
|
||||
XPosition = 0;
|
||||
YPosition = 0;
|
||||
}
|
||||
else if (strcasecmp(val, "top") == 0)
|
||||
{
|
||||
XPosition = 0;
|
||||
YPosition = 1;
|
||||
}
|
||||
else if (strcasecmp(val, "left") == 0)
|
||||
{
|
||||
XPosition = -1;
|
||||
YPosition = 0;
|
||||
}
|
||||
else if (strcasecmp(val, "right") == 0)
|
||||
{
|
||||
XPosition = 1;
|
||||
YPosition = 0;
|
||||
}
|
||||
else if (strcasecmp(val, "top-left") == 0)
|
||||
{
|
||||
XPosition = -1;
|
||||
YPosition = 1;
|
||||
}
|
||||
else if (strcasecmp(val, "top-right") == 0)
|
||||
{
|
||||
XPosition = 1;
|
||||
YPosition = 1;
|
||||
}
|
||||
else if (strcasecmp(val, "bottom") == 0)
|
||||
{
|
||||
XPosition = 0;
|
||||
YPosition = -1;
|
||||
}
|
||||
else if (strcasecmp(val, "bottom-left") == 0)
|
||||
{
|
||||
XPosition = -1;
|
||||
YPosition = -1;
|
||||
}
|
||||
else if (strcasecmp(val, "bottom-right") == 0)
|
||||
{
|
||||
XPosition = 1;
|
||||
YPosition = -1;
|
||||
}
|
||||
}
|
||||
|
||||
if ((val = cupsGetOption("saturation", num_options, options)) != NULL)
|
||||
sat = atoi(val);
|
||||
|
||||
@@ -663,139 +612,28 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
switch (Orientation)
|
||||
{
|
||||
case 0 :
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
header.ImagingBoundingBox[0] = PageLeft;
|
||||
header.ImagingBoundingBox[2] = PageLeft + xprint * 72;
|
||||
break;
|
||||
case 0 :
|
||||
header.ImagingBoundingBox[0] = (PageRight + PageLeft - xprint * 72) / 2;
|
||||
header.ImagingBoundingBox[2] = (PageRight + PageLeft + xprint * 72) / 2;
|
||||
break;
|
||||
case 1 :
|
||||
header.ImagingBoundingBox[0] = PageRight - xprint * 72;
|
||||
header.ImagingBoundingBox[2] = PageRight;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (YPosition)
|
||||
{
|
||||
case -1 :
|
||||
header.ImagingBoundingBox[1] = PageBottom;
|
||||
header.ImagingBoundingBox[3] = PageBottom + yprint * 72;
|
||||
break;
|
||||
case 0 :
|
||||
header.ImagingBoundingBox[1] = (PageTop + PageBottom - yprint * 72) / 2;
|
||||
header.ImagingBoundingBox[3] = (PageTop + PageBottom + yprint * 72) / 2;
|
||||
break;
|
||||
case 1 :
|
||||
header.ImagingBoundingBox[1] = PageTop - yprint * 72;
|
||||
header.ImagingBoundingBox[3] = PageTop;
|
||||
break;
|
||||
}
|
||||
header.ImagingBoundingBox[0] = PageLeft;
|
||||
header.ImagingBoundingBox[1] = PageBottom;
|
||||
header.ImagingBoundingBox[2] = PageLeft + xprint * 72;
|
||||
header.ImagingBoundingBox[3] = PageBottom + yprint * 72;
|
||||
break;
|
||||
|
||||
case 1 :
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
header.ImagingBoundingBox[0] = PageBottom;
|
||||
header.ImagingBoundingBox[2] = PageBottom + yprint * 72;
|
||||
break;
|
||||
case 0 :
|
||||
header.ImagingBoundingBox[0] = (PageTop + PageBottom - yprint * 72) / 2;
|
||||
header.ImagingBoundingBox[2] = (PageTop + PageBottom + yprint * 72) / 2;
|
||||
break;
|
||||
case 1 :
|
||||
header.ImagingBoundingBox[0] = PageTop - yprint * 72;
|
||||
header.ImagingBoundingBox[2] = PageTop;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (YPosition)
|
||||
{
|
||||
case -1 :
|
||||
header.ImagingBoundingBox[1] = PageLeft;
|
||||
header.ImagingBoundingBox[3] = PageLeft + xprint * 72;
|
||||
break;
|
||||
case 0 :
|
||||
header.ImagingBoundingBox[1] = (PageRight + PageLeft - xprint * 72) / 2;
|
||||
header.ImagingBoundingBox[3] = (PageRight + PageLeft + xprint * 72) / 2;
|
||||
break;
|
||||
case 1 :
|
||||
header.ImagingBoundingBox[1] = PageRight - xprint * 72;
|
||||
header.ImagingBoundingBox[3] = PageRight;
|
||||
break;
|
||||
}
|
||||
header.ImagingBoundingBox[0] = PageRight - yprint * 72;
|
||||
header.ImagingBoundingBox[1] = PageBottom;
|
||||
header.ImagingBoundingBox[2] = PageRight;
|
||||
header.ImagingBoundingBox[3] = PageBottom + xprint * 72;
|
||||
break;
|
||||
|
||||
case 2 :
|
||||
switch (XPosition)
|
||||
{
|
||||
case 1 :
|
||||
header.ImagingBoundingBox[0] = PageLeft;
|
||||
header.ImagingBoundingBox[2] = PageLeft + xprint * 72;
|
||||
break;
|
||||
case 0 :
|
||||
header.ImagingBoundingBox[0] = (PageRight + PageLeft - xprint * 72) / 2;
|
||||
header.ImagingBoundingBox[2] = (PageRight + PageLeft + xprint * 72) / 2;
|
||||
break;
|
||||
case -1 :
|
||||
header.ImagingBoundingBox[0] = PageRight - xprint * 72;
|
||||
header.ImagingBoundingBox[2] = PageRight;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (YPosition)
|
||||
{
|
||||
case 1 :
|
||||
header.ImagingBoundingBox[1] = PageBottom;
|
||||
header.ImagingBoundingBox[3] = PageBottom + yprint * 72;
|
||||
break;
|
||||
case 0 :
|
||||
header.ImagingBoundingBox[1] = (PageTop + PageBottom - yprint * 72) / 2;
|
||||
header.ImagingBoundingBox[3] = (PageTop + PageBottom + yprint * 72) / 2;
|
||||
break;
|
||||
case -1 :
|
||||
header.ImagingBoundingBox[1] = PageTop - yprint * 72;
|
||||
header.ImagingBoundingBox[3] = PageTop;
|
||||
break;
|
||||
}
|
||||
header.ImagingBoundingBox[0] = PageRight - xprint * 72;
|
||||
header.ImagingBoundingBox[1] = PageTop - yprint * 72;
|
||||
header.ImagingBoundingBox[2] = PageRight;
|
||||
header.ImagingBoundingBox[3] = PageTop;
|
||||
break;
|
||||
|
||||
case 3 :
|
||||
switch (XPosition)
|
||||
{
|
||||
case 1 :
|
||||
header.ImagingBoundingBox[0] = PageBottom;
|
||||
header.ImagingBoundingBox[2] = PageBottom + yprint * 72;
|
||||
break;
|
||||
case 0 :
|
||||
header.ImagingBoundingBox[0] = (PageTop + PageBottom - yprint * 72) / 2;
|
||||
header.ImagingBoundingBox[2] = (PageTop + PageBottom + yprint * 72) / 2;
|
||||
break;
|
||||
case -1 :
|
||||
header.ImagingBoundingBox[0] = PageTop - yprint * 72;
|
||||
header.ImagingBoundingBox[2] = PageTop;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (YPosition)
|
||||
{
|
||||
case 1 :
|
||||
header.ImagingBoundingBox[1] = PageLeft;
|
||||
header.ImagingBoundingBox[3] = PageLeft + xprint * 72;
|
||||
break;
|
||||
case 0 :
|
||||
header.ImagingBoundingBox[1] = (PageRight + PageLeft - xprint * 72) / 2;
|
||||
header.ImagingBoundingBox[3] = (PageRight + PageLeft + xprint * 72) / 2;
|
||||
break;
|
||||
case -1 :
|
||||
header.ImagingBoundingBox[1] = PageRight - xprint * 72;
|
||||
header.ImagingBoundingBox[3] = PageRight;
|
||||
break;
|
||||
}
|
||||
header.ImagingBoundingBox[0] = PageLeft;
|
||||
header.ImagingBoundingBox[1] = PageTop - xprint * 72;
|
||||
header.ImagingBoundingBox[2] = PageLeft + yprint * 72 + 0.5f;
|
||||
header.ImagingBoundingBox[3] = PageTop;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -936,15 +774,11 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
* Write leading blank space as needed...
|
||||
*/
|
||||
|
||||
if (header.cupsHeight > z->ysize && YPosition <= 0)
|
||||
if (header.cupsHeight > z->ysize && Orientation < 2)
|
||||
{
|
||||
memset(row, blank, header.cupsBytesPerLine);
|
||||
|
||||
y = header.cupsHeight - z->ysize;
|
||||
if (YPosition == 0)
|
||||
y /= 2;
|
||||
|
||||
for (; y > 0; y --)
|
||||
for (y = header.cupsHeight - z->ysize; y > 0; y --)
|
||||
{
|
||||
if (cupsRasterWritePixels(ras, row, header.cupsBytesPerLine) <
|
||||
header.cupsBytesPerLine)
|
||||
@@ -1052,7 +886,7 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
*/
|
||||
|
||||
if (cupsRasterWritePixels(ras, row, header.cupsBytesPerLine) <
|
||||
header.cupsBytesPerLine)
|
||||
header.cupsBytesPerLine)
|
||||
{
|
||||
fputs("ERROR: Unable to write raster data to driver!\n", stderr);
|
||||
ImageClose(img);
|
||||
@@ -1078,15 +912,11 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
* Write trailing blank space as needed...
|
||||
*/
|
||||
|
||||
if (header.cupsHeight > z->ysize && YPosition >= 0)
|
||||
if (header.cupsHeight > z->ysize && Orientation >= 2)
|
||||
{
|
||||
memset(row, blank, header.cupsBytesPerLine);
|
||||
|
||||
y = header.cupsHeight - z->ysize;
|
||||
if (YPosition == 0)
|
||||
y = y - y / 2;
|
||||
|
||||
for (; y > 0; y --)
|
||||
for (y = header.cupsHeight - z->ysize; y > 0; y --)
|
||||
{
|
||||
if (cupsRasterWritePixels(ras, row, header.cupsBytesPerLine) <
|
||||
header.cupsBytesPerLine)
|
||||
@@ -1277,18 +1107,10 @@ format_CMY(cups_page_header_t *header, /* I - Page header */
|
||||
*dither; /* Pointer into dither array */
|
||||
|
||||
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
bitoffset = 0;
|
||||
break;
|
||||
case 0 :
|
||||
bitoffset = header->cupsBitsPerPixel * ((header->cupsWidth - xsize) / 2);
|
||||
break;
|
||||
case 1 :
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
break;
|
||||
}
|
||||
if (Orientation == 1 || Orientation == 2)
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
else
|
||||
bitoffset = 0;
|
||||
|
||||
ptr = row + bitoffset / 8;
|
||||
bandwidth = header->cupsBytesPerLine / 3;
|
||||
@@ -1652,18 +1474,10 @@ format_CMYK(cups_page_header_t *header, /* I - Page header */
|
||||
*dither; /* Pointer into dither array */
|
||||
|
||||
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
bitoffset = 0;
|
||||
break;
|
||||
case 0 :
|
||||
bitoffset = header->cupsBitsPerPixel * ((header->cupsWidth - xsize) / 2);
|
||||
break;
|
||||
case 1 :
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
break;
|
||||
}
|
||||
if (Orientation == 1 || Orientation == 2)
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
else
|
||||
bitoffset = 0;
|
||||
|
||||
ptr = row + bitoffset / 8;
|
||||
bandwidth = header->cupsBytesPerLine / 4;
|
||||
@@ -2021,18 +1835,10 @@ format_K(cups_page_header_t *header, /* I - Page header */
|
||||
*dither; /* Pointer into dither array */
|
||||
|
||||
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
bitoffset = 0;
|
||||
break;
|
||||
case 0 :
|
||||
bitoffset = header->cupsBitsPerPixel * ((header->cupsWidth - xsize) / 2);
|
||||
break;
|
||||
case 1 :
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
break;
|
||||
}
|
||||
if (Orientation == 1 || Orientation == 2)
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
else
|
||||
bitoffset = 0;
|
||||
|
||||
ptr = row + bitoffset / 8;
|
||||
|
||||
@@ -2142,18 +1948,10 @@ format_KCMY(cups_page_header_t *header, /* I - Page header */
|
||||
*dither; /* Pointer into dither array */
|
||||
|
||||
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
bitoffset = 0;
|
||||
break;
|
||||
case 0 :
|
||||
bitoffset = header->cupsBitsPerPixel * ((header->cupsWidth - xsize) / 2);
|
||||
break;
|
||||
case 1 :
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
break;
|
||||
}
|
||||
if (Orientation == 1 || Orientation == 2)
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
else
|
||||
bitoffset = 0;
|
||||
|
||||
ptr = row + bitoffset / 8;
|
||||
bandwidth = header->cupsBytesPerLine / 4;
|
||||
@@ -2553,18 +2351,10 @@ format_KCMYcm(cups_page_header_t *header,/* I - Page header */
|
||||
*dither; /* Pointer into dither array */
|
||||
|
||||
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
bitoffset = 0;
|
||||
break;
|
||||
case 0 :
|
||||
bitoffset = header->cupsBitsPerPixel * ((header->cupsWidth - xsize) / 2);
|
||||
break;
|
||||
case 1 :
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
break;
|
||||
}
|
||||
if (Orientation == 1 || Orientation == 2)
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
else
|
||||
bitoffset = 0;
|
||||
|
||||
ptr = row + bitoffset / 8;
|
||||
if (header->cupsBitsPerColor == 1)
|
||||
@@ -2886,18 +2676,10 @@ format_RGBA(cups_page_header_t *header, /* I - Page header */
|
||||
*dither; /* Pointer into dither array */
|
||||
|
||||
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
bitoffset = 0;
|
||||
break;
|
||||
case 0 :
|
||||
bitoffset = header->cupsBitsPerPixel * ((header->cupsWidth - xsize) / 2);
|
||||
break;
|
||||
case 1 :
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
break;
|
||||
}
|
||||
if (Orientation == 1 || Orientation == 2)
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
else
|
||||
bitoffset = 0;
|
||||
|
||||
ptr = row + bitoffset / 8;
|
||||
bandwidth = header->cupsBytesPerLine / 4;
|
||||
@@ -3285,18 +3067,10 @@ format_W(cups_page_header_t *header, /* I - Page header */
|
||||
*dither; /* Pointer into dither array */
|
||||
|
||||
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
bitoffset = 0;
|
||||
break;
|
||||
case 0 :
|
||||
bitoffset = header->cupsBitsPerPixel * ((header->cupsWidth - xsize) / 2);
|
||||
break;
|
||||
case 1 :
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
break;
|
||||
}
|
||||
if (Orientation == 1 || Orientation == 2)
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
else
|
||||
bitoffset = 0;
|
||||
|
||||
ptr = row + bitoffset / 8;
|
||||
|
||||
@@ -3405,18 +3179,10 @@ format_YMC(cups_page_header_t *header, /* I - Page header */
|
||||
*dither; /* Pointer into dither array */
|
||||
|
||||
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
bitoffset = 0;
|
||||
break;
|
||||
case 0 :
|
||||
bitoffset = header->cupsBitsPerPixel * ((header->cupsWidth - xsize) / 2);
|
||||
break;
|
||||
case 1 :
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
break;
|
||||
}
|
||||
if (Orientation == 1 || Orientation == 2)
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
else
|
||||
bitoffset = 0;
|
||||
|
||||
ptr = row + bitoffset / 8;
|
||||
bandwidth = header->cupsBytesPerLine / 3;
|
||||
@@ -3795,18 +3561,10 @@ format_YMCK(cups_page_header_t *header, /* I - Page header */
|
||||
*dither; /* Pointer into dither array */
|
||||
|
||||
|
||||
switch (XPosition)
|
||||
{
|
||||
case -1 :
|
||||
bitoffset = 0;
|
||||
break;
|
||||
case 0 :
|
||||
bitoffset = header->cupsBitsPerPixel * ((header->cupsWidth - xsize) / 2);
|
||||
break;
|
||||
case 1 :
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
break;
|
||||
}
|
||||
if (Orientation == 1 || Orientation == 2)
|
||||
bitoffset = header->cupsBitsPerPixel * (header->cupsWidth - xsize);
|
||||
else
|
||||
bitoffset = 0;
|
||||
|
||||
ptr = row + bitoffset / 8;
|
||||
bandwidth = header->cupsBytesPerLine / 4;
|
||||
|
||||
@@ -145,10 +145,12 @@ StartPage(cups_page_header_t *header) /* I - Page header */
|
||||
case 1224 : /* Tabloid */
|
||||
printf("\033&l6A"); /* Set page size */
|
||||
break;
|
||||
}
|
||||
|
||||
printf("\033&l%dP", header->PageSize[1] / 12);/* Set page length */
|
||||
printf("\033&l3E"); /* Set top margin to 1/2 inch */
|
||||
default :
|
||||
printf("\033&l%dP", /* Set page length */
|
||||
header->PageSize[1] / 12);
|
||||
break;
|
||||
}
|
||||
|
||||
printf("\033&l%dX", header->NumCopies); /* Set number copies */
|
||||
|
||||
@@ -174,13 +176,8 @@ StartPage(cups_page_header_t *header) /* I - Page header */
|
||||
NumPlanes = 4;
|
||||
printf("\033*r-4U"); /* Set KCMY graphics */
|
||||
}
|
||||
else if (header->cupsColorSpace == CUPS_CSPACE_CMY)
|
||||
{
|
||||
NumPlanes = 3;
|
||||
printf("\033*r-3U"); /* Set CMY graphics */
|
||||
}
|
||||
else
|
||||
NumPlanes = 1; /* Black&white graphics */
|
||||
NumPlanes = 1;
|
||||
|
||||
printf("\033*t%dR", header->HWResolution[0]); /* Set resolution */
|
||||
printf("\033*r%dS", header->cupsWidth); /* Set width */
|
||||
|
||||
@@ -204,7 +204,8 @@ TextMain(char *name, /* I - Name of filter */
|
||||
LinesPerInch = 8;
|
||||
}
|
||||
|
||||
ppd = SetCommonOptions(num_options, options, 1);
|
||||
if ((ppd = SetCommonOptions(num_options, options, 1)) != NULL)
|
||||
ppdClose(ppd);
|
||||
|
||||
WrapLines = cupsGetOption("nowrap", num_options, options) == NULL;
|
||||
|
||||
@@ -649,9 +650,6 @@ TextMain(char *name, /* I - Name of filter */
|
||||
|
||||
WriteEpilogue();
|
||||
|
||||
if (ppd != NULL)
|
||||
ppdClose(ppd);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
+6
-75
@@ -129,7 +129,6 @@ WriteProlog(char *title, /* I - Title of job */
|
||||
char *charset; /* Character set string */
|
||||
char filename[1024]; /* Glyph filenames */
|
||||
FILE *fp; /* Glyph files */
|
||||
const char *datadir; /* CUPS_DATADIR environment variable */
|
||||
char line[1024], /* Line from file */
|
||||
*lineptr, /* Pointer into line */
|
||||
*valptr; /* Pointer to value in line */
|
||||
@@ -149,13 +148,6 @@ WriteProlog(char *title, /* I - Title of job */
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Get the data directory...
|
||||
*/
|
||||
|
||||
if ((datadir = getenv("CUPS_DATADIR")) == NULL)
|
||||
datadir = CUPS_DATADIR;
|
||||
|
||||
/*
|
||||
* Allocate memory for the page...
|
||||
*/
|
||||
@@ -194,6 +186,7 @@ WriteProlog(char *title, /* I - Title of job */
|
||||
printf("%%%%CreationDate: %s\n", curdate);
|
||||
printf("%%%%Title: %s\n", title);
|
||||
printf("%%%%For: %s\n", user);
|
||||
puts("%%DocumentSuppliedResources: procset texttops 1.1 0");
|
||||
puts("%%Pages: (atend)");
|
||||
|
||||
/*
|
||||
@@ -211,9 +204,7 @@ WriteProlog(char *title, /* I - Title of job */
|
||||
* set definition...
|
||||
*/
|
||||
|
||||
snprintf(filename, sizeof(filename), "%s/data/psglyphs", datadir);
|
||||
|
||||
if ((fp = fopen(filename, "r")) != NULL)
|
||||
if ((fp = fopen(CUPS_DATADIR "/data/psglyphs", "r")) != NULL)
|
||||
{
|
||||
while (fscanf(fp, "%x%63s", &unicode, glyph) == 2)
|
||||
Glyphs[unicode] = strdup(glyph);
|
||||
@@ -222,8 +213,7 @@ WriteProlog(char *title, /* I - Title of job */
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "ERROR: Unable to open \"%s\" - %s\n", filename,
|
||||
strerror(errno));
|
||||
perror("ERROR: Unable to open " CUPS_DATADIR "/data/psglyphs");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -234,7 +224,7 @@ WriteProlog(char *title, /* I - Title of job */
|
||||
charset = getenv("CHARSET");
|
||||
if (charset != NULL && strcmp(charset, "us-ascii") != 0)
|
||||
{
|
||||
snprintf(filename, sizeof(filename), "%s/charsets/%s", datadir, charset);
|
||||
snprintf(filename, sizeof(filename), CUPS_DATADIR "/charsets/%s", charset);
|
||||
|
||||
if ((fp = fopen(filename, "r")) == NULL)
|
||||
{
|
||||
@@ -660,73 +650,14 @@ WriteProlog(char *title, /* I - Title of job */
|
||||
|
||||
for (i = 0; i < num_fonts; i ++)
|
||||
if (i == 0)
|
||||
printf("%%%%DocumentNeededResources: font %s\n", fonts[i]);
|
||||
printf("%%DocumentNeededResources: font %s\n", fonts[i]);
|
||||
else
|
||||
printf("%%%%+ font %s\n", fonts[i]);
|
||||
|
||||
puts("%%DocumentSuppliedResources: procset texttops 1.1 0");
|
||||
|
||||
for (i = 0; i < num_fonts; i ++)
|
||||
{
|
||||
if (ppd != NULL)
|
||||
{
|
||||
fprintf(stderr, "DEBUG: ppd->num_fonts = %d\n", ppd->num_fonts);
|
||||
|
||||
for (j = 0; j < ppd->num_fonts; j ++)
|
||||
{
|
||||
fprintf(stderr, "DEBUG: ppd->fonts[%d] = %s\n", j, ppd->fonts[j]);
|
||||
|
||||
if (strcmp(fonts[i], ppd->fonts[j]) == 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (ppd == NULL || j >= ppd->num_fonts)
|
||||
{
|
||||
/*
|
||||
* Need to embed this font...
|
||||
*/
|
||||
|
||||
printf("%%%%+ font %s\n", fonts[i]);
|
||||
}
|
||||
}
|
||||
printf("%%+ font %s\n", fonts[i]);
|
||||
|
||||
puts("%%EndComments");
|
||||
|
||||
puts("%%BeginProlog");
|
||||
|
||||
/*
|
||||
* Download any missing fonts...
|
||||
*/
|
||||
|
||||
for (i = 0; i < num_fonts; i ++)
|
||||
{
|
||||
if (ppd != NULL)
|
||||
for (j = 0; j < ppd->num_fonts; j ++)
|
||||
if (strcmp(fonts[i], ppd->fonts[j]) == 0)
|
||||
break;
|
||||
|
||||
if (ppd == NULL || j >= ppd->num_fonts)
|
||||
{
|
||||
/*
|
||||
* Need to embed this font...
|
||||
*/
|
||||
|
||||
printf("%%%%BeginResource: font %s\n", fonts[i]);
|
||||
|
||||
snprintf(filename, sizeof(filename), "%s/fonts/%s", datadir, fonts[i]);
|
||||
if ((fp = fopen(filename, "rb")) != NULL)
|
||||
{
|
||||
while (fgets(line, sizeof(line), fp) != NULL)
|
||||
fputs(line, stdout);
|
||||
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
puts("%%EndResource");
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Write the encoding array(s)...
|
||||
*/
|
||||
|
||||
@@ -65,8 +65,6 @@ clean:
|
||||
|
||||
install:
|
||||
-$(MKDIR) $(DATADIR)/fonts
|
||||
$(CHMOD) ugo+rx $(DATADIR)
|
||||
$(CHMOD) ugo+rx $(DATADIR)/fonts
|
||||
$(INSTALL_DATA) $(FONTS) $(DATADIR)/fonts
|
||||
|
||||
|
||||
|
||||
@@ -51,11 +51,9 @@ clean:
|
||||
|
||||
install:
|
||||
-$(MKDIR) $(LOCALEDIR)
|
||||
$(CHMOD) ugo+rx $(LOCALEDIR)
|
||||
for dir in $(LOCALES) ; do \
|
||||
if test ! -d $(LOCALEDIR)/$$dir ; then \
|
||||
$(MKDIR) $(LOCALEDIR)/$$dir ; \
|
||||
$(CHMOD) ugo+rx $(LOCALEDIR)/$$dir ; \
|
||||
fi ; \
|
||||
$(INSTALL_DATA) $$dir/cups_$$dir $(LOCALEDIR)/$$dir ; \
|
||||
done
|
||||
|
||||
+39
-23
@@ -28,16 +28,15 @@ include ../Makedefs
|
||||
# Man pages...
|
||||
#
|
||||
|
||||
MAN1 = backend.man filter.man lp.man lpoptions.man lpq.man lprm.man \
|
||||
lpr.man lpstat.man
|
||||
MAN5 = classes.conf.man cupsd.conf.man mime.convs.man mime.types.man \
|
||||
printers.conf.man
|
||||
MAN8 = accept.man cups-lpd.man cups-polld.man cupsd.man enable.man \
|
||||
lpadmin.man lpinfo.man lpmove.man lpc.man
|
||||
CAT1 = backend.1 filter.1 lp.1 lpoptions.1 lpq.1 lprm.1 lpr.1 lpstat.1
|
||||
CAT5 = classes.conf.5 cupsd.conf.5 mime.convs.5 mime.types.5 \
|
||||
printers.conf.5
|
||||
CAT8 = accept.8 cups-lpd.8 cups-polld.8 cupsd.8 enable.8 \
|
||||
lpadmin.8 lpinfo.8 lpmove.8 lpc.8
|
||||
|
||||
CAT1 = $(MAN1:.man=.$(CAT1EXT))
|
||||
CAT5 = $(MAN5:.man=.$(CAT1EXT))
|
||||
CAT8 = $(MAN8:.man=.$(CAT1EXT))
|
||||
MAN1 = $(CAT1:.1=.man)
|
||||
MAN5 = $(CAT5:.5=.man)
|
||||
MAN8 = $(CAT8:.8=.man)
|
||||
|
||||
|
||||
#
|
||||
@@ -58,22 +57,20 @@ clean:
|
||||
# Install files...
|
||||
#
|
||||
|
||||
install:
|
||||
install: install-man $(INSTALL_CAT)
|
||||
|
||||
install-man:
|
||||
-$(MKDIR) $(MANDIR)/man1
|
||||
-$(CHMOD) ugo+rx $(MANDIR)
|
||||
-$(CHMOD) ugo+rx $(MANDIR)/man1
|
||||
for file in $(MAN1); do \
|
||||
$(INSTALL_MAN) $$file $(MANDIR)/man1/`basename $$file man`1; \
|
||||
done
|
||||
$(RM) $(MANDIR)/man1/cancel.1
|
||||
$(LN) lp.1 $(MANDIR)/man1/cancel.1
|
||||
-$(MKDIR) $(MANDIR)/man5
|
||||
-$(CHMOD) ugo+rx $(MANDIR)/man5
|
||||
for file in $(MAN5); do \
|
||||
$(INSTALL_MAN) $$file $(MANDIR)/man5/`basename $$file man`5; \
|
||||
done
|
||||
-$(MKDIR) $(MANDIR)/man8
|
||||
-$(CHMOD) ugo+rx $(MANDIR)/man8
|
||||
for file in $(MAN8); do \
|
||||
$(INSTALL_MAN) $$file $(MANDIR)/man8/`basename $$file man`8; \
|
||||
done
|
||||
@@ -81,21 +78,40 @@ install:
|
||||
$(LN) accept.8 $(MANDIR)/man8/reject.8
|
||||
$(RM) $(MANDIR)/man8/disable.8
|
||||
$(LN) enable.8 $(MANDIR)/man8/disable.8
|
||||
|
||||
install-cat:
|
||||
-$(MKDIR) $(MANDIR)/cat1
|
||||
-$(CHMOD) ugo+rx $(MANDIR)/cat1
|
||||
$(INSTALL_MAN) $(CAT1) $(MANDIR)/cat1
|
||||
$(RM) $(MANDIR)/cat1/cancel.$(CAT1EXT)
|
||||
$(LN) lp.$(CAT1EXT) $(MANDIR)/cat1/cancel.$(CAT1EXT)
|
||||
$(RM) $(MANDIR)/cat1/cancel.1
|
||||
$(LN) lp.1 $(MANDIR)/cat1/cancel.1
|
||||
-$(MKDIR) $(MANDIR)/cat5
|
||||
-$(CHMOD) ugo+rx $(MANDIR)/cat5
|
||||
$(INSTALL_MAN) $(CAT5) $(MANDIR)/cat5
|
||||
-$(MKDIR) $(MANDIR)/cat8
|
||||
-$(CHMOD) ugo+rx $(MANDIR)/cat8
|
||||
$(INSTALL_MAN) $(CAT8) $(MANDIR)/cat8
|
||||
$(RM) $(MANDIR)/cat8/reject.$(CAT1EXT)
|
||||
$(LN) accept.$(CAT1EXT) $(MANDIR)/cat8/reject.$(CAT1EXT)
|
||||
$(RM) $(MANDIR)/cat8/disable.$(CAT1EXT)
|
||||
$(LN) enable.$(CAT1EXT) $(MANDIR)/cat8/disable.$(CAT1EXT)
|
||||
$(RM) $(MANDIR)/cat8/reject.8
|
||||
$(LN) accept.8 $(MANDIR)/cat8/reject.8
|
||||
$(RM) $(MANDIR)/cat8/disable.8
|
||||
$(LN) enable.8 $(MANDIR)/cat8/disable.8
|
||||
|
||||
install-bsdcat:
|
||||
-$(MKDIR) $(MANDIR)/cat1
|
||||
for file in $(CAT1); do \
|
||||
$(INSTALL_MAN) $$file $(MANDIR)/cat1/`basename $$file 1`0; \
|
||||
done
|
||||
$(RM) $(MANDIR)/cat1/cancel.0
|
||||
$(LN) lp.0 $(MANDIR)/cat1/cancel.0
|
||||
-$(MKDIR) $(MANDIR)/cat5
|
||||
for file in $(CAT5); do \
|
||||
$(INSTALL_MAN) $$file $(MANDIR)/cat5/`basename $$file 5`0; \
|
||||
done
|
||||
-$(MKDIR) $(MANDIR)/cat8
|
||||
for file in $(CAT8); do \
|
||||
$(INSTALL_MAN) $$file $(MANDIR)/cat8/`basename $$file 8`0; \
|
||||
done
|
||||
$(RM) $(MANDIR)/cat8/reject.0
|
||||
$(LN) accept.0 $(MANDIR)/cat8/reject.0
|
||||
$(RM) $(MANDIR)/cat8/disable.0
|
||||
$(LN) enable.0 $(MANDIR)/cat8/disable.0
|
||||
|
||||
|
||||
#
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
|
||||
accept(8) Easy Software Products accept(8)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
accept/reject - accept/reject jobs sent to a destination
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
aacccceepptt destination(s)
|
||||
rreejjeecctt [ -h _s_e_r_v_e_r ] [ -r [ _r_e_a_s_o_n ] ] destination(s)
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
_a_c_c_e_p_t instructs the printing system to accept print jobs
|
||||
to the specified destinations.
|
||||
|
||||
_r_e_j_e_c_t instructs the printing system to reject print jobs
|
||||
to the specified destinations. The _-_r option sets the rea-
|
||||
son for rejecting print jobs. If not specified the reason
|
||||
defaults to "Reason Unknown".
|
||||
|
||||
CCOOMMPPAATTIIBBIILLIITTYY
|
||||
The CUPS versions of _a_c_c_e_p_t and _r_e_j_e_c_t may ask the user
|
||||
for an access password depending on the printing system
|
||||
configuration. This differs from the System V versions
|
||||
which require the root user to execute these commands.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
cancel(1), disable(8), enable(8), lp(1), lpadmin(8),
|
||||
lpstat(1), CUPS Software Administrators Manual
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 1
|
||||
|
||||
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
|
||||
|
||||
|
||||
backend(1) Easy Software Products backend(1)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
backend - backend transmission interfaces
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
bbaacckkeenndd job user title num-copies options _[ _f_i_l_e_n_a_m_e _]
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
The CUPS backend interface provides a standard method for
|
||||
sending document files to different physical interfaces.
|
||||
|
||||
Backends must be capable of reading from a filename on the
|
||||
command-line or from the standard input, copying stdin to
|
||||
a temporary if required by the physical interface.
|
||||
|
||||
The command name (argv[0]) is set to the device URI of the
|
||||
destination printer.
|
||||
|
||||
EENNVVIIRROONNMMEENNTT VVAARRIIAABBLLEESS
|
||||
The following environment variables are defined by the
|
||||
CUPS server when executing the backend:
|
||||
|
||||
CHARSET
|
||||
The default text character set (typically us-ascii or
|
||||
iso-8859-1).
|
||||
|
||||
CONTENT_TYPE
|
||||
The MIME type associated with the file (e.g. applica-
|
||||
tion/postscript).
|
||||
|
||||
DEVICE_URI
|
||||
The device-uri associated with the printer; this is
|
||||
provided for shell scripts which may not be able to
|
||||
get the passed argv[0] string.
|
||||
|
||||
LANG
|
||||
The default language locale (typically C or en).
|
||||
|
||||
PATH
|
||||
The standard execution path for external programs
|
||||
that may be run by the backend.
|
||||
|
||||
PPD
|
||||
The full pathname of the PostScript Printer Descrip-
|
||||
tion (PPD) file for this printer.
|
||||
|
||||
PRINTER
|
||||
The name of the printer.
|
||||
|
||||
RIP_CACHE
|
||||
The recommended amount of memory to use for Raster
|
||||
Image Processors (RIPs).
|
||||
|
||||
SERVER_ROOT
|
||||
The root directory of the server.
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
backend(1) Easy Software Products backend(1)
|
||||
|
||||
|
||||
SOFTWARE
|
||||
The name and version number of the server (typically
|
||||
CUPS/1.0).
|
||||
|
||||
TZ
|
||||
The timezone of the server.
|
||||
|
||||
USER
|
||||
The user executing the backend (typically lp).
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
cupsd(8), filter(1) CUPS Software Administrators Manual,
|
||||
CUPS Interface Design Description
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 2
|
||||
|
||||
|
||||
+14
-20
@@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" "$Id: backend.man 1180 2000-06-28 16:50:04Z mike $"
|
||||
.\" "$Id: backend.man 911 2000-02-23 03:17:06Z mike $"
|
||||
.\"
|
||||
.\" backend man page for the Common UNIX Printing System (CUPS).
|
||||
.\"
|
||||
@@ -21,21 +21,20 @@
|
||||
.\" EMail: cups-info@cups.org
|
||||
.\" WWW: http://www.cups.org
|
||||
.\"
|
||||
.TH backend 1 "Common UNIX Printing System" "22 June 2000" "Easy Software Products"
|
||||
.TH backend 1 "Common UNIX Printing System" "22 September 1999" "Easy Software Products"
|
||||
.SH NAME
|
||||
backend \- cups backend transmission interfaces
|
||||
backend \- backend transmission interfaces
|
||||
.SH SYNOPSIS
|
||||
.B backend
|
||||
job user title num-copies options [
|
||||
.I filename
|
||||
]
|
||||
job user title num-copies options
|
||||
.I [ filename ]
|
||||
.SH DESCRIPTION
|
||||
The CUPS backend interface provides a standard method for sending document
|
||||
files to different physical interfaces.
|
||||
.LP
|
||||
Backends must be capable of reading from a filename on the command-line
|
||||
or from the standard input, copying the standard input to a temporary file
|
||||
if required by the physical interface.
|
||||
or from the standard input, copying stdin to a temporary if required by
|
||||
the physical interface.
|
||||
.LP
|
||||
The command name (argv[0]) is set to the device URI of the destination printer.
|
||||
.SH ENVIRONMENT VARIABLES
|
||||
@@ -50,14 +49,6 @@ CONTENT_TYPE
|
||||
.br
|
||||
The MIME type associated with the file (e.g. application/postscript).
|
||||
.TP 5
|
||||
CUPS_DATADIR
|
||||
.br
|
||||
The directory where data files can be found.
|
||||
.TP 5
|
||||
CUPS_SERVERROOT
|
||||
.br
|
||||
The root directory of the server.
|
||||
.TP 5
|
||||
DEVICE_URI
|
||||
.br
|
||||
The device-uri associated with the printer; this is provided for shell
|
||||
@@ -85,9 +76,13 @@ RIP_CACHE
|
||||
.br
|
||||
The recommended amount of memory to use for Raster Image Processors (RIPs).
|
||||
.TP 5
|
||||
SERVER_ROOT
|
||||
.br
|
||||
The root directory of the server.
|
||||
.TP 5
|
||||
SOFTWARE
|
||||
.br
|
||||
The name and version number of the server (typically CUPS/1.1).
|
||||
The name and version number of the server (typically CUPS/1.0).
|
||||
.TP 5
|
||||
TZ
|
||||
.br
|
||||
@@ -98,11 +93,10 @@ USER
|
||||
The user executing the backend (typically lp).
|
||||
.SH SEE ALSO
|
||||
cupsd(8), filter(1)
|
||||
CUPS Interface Design Description,
|
||||
CUPS Software Administrators Manual,
|
||||
CUPS Software Programmers Manual
|
||||
CUPS Interface Design Description
|
||||
.SH COPYRIGHT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights Reserved.
|
||||
.\"
|
||||
.\" End of "$Id: backend.man 1180 2000-06-28 16:50:04Z mike $".
|
||||
.\" End of "$Id: backend.man 911 2000-02-23 03:17:06Z mike $".
|
||||
.\"
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
|
||||
classes.conf(5) Easy Software Products classes.conf(5)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
classes.conf - class configuration file for cups
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
The _c_l_a_s_s_e_s_._c_o_n_f file defines the local printer classes
|
||||
that are available. It is normally generated by the
|
||||
_c_u_p_s_d_(_8_) program when printer classes are added or
|
||||
deleted.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
cupsd(8), cupsd.conf(5), mime.convs(5), mime.types(5),
|
||||
printers.conf(5), CUPS Software Administrators Manual,
|
||||
CUPS Interface Design Description
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 1
|
||||
|
||||
|
||||
+7
-39
@@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" "$Id: classes.conf.man 1151 2000-06-22 18:21:40Z mike $"
|
||||
.\" "$Id: classes.conf.man 911 2000-02-23 03:17:06Z mike $"
|
||||
.\"
|
||||
.\" classes.conf man page for the Common UNIX Printing System (CUPS).
|
||||
.\"
|
||||
@@ -21,51 +21,19 @@
|
||||
.\" EMail: cups-info@cups.org
|
||||
.\" WWW: http://www.cups.org
|
||||
.\"
|
||||
.TH classes.conf 5 "Common UNIX Printing System" "22 June 2000" "Easy Software Products"
|
||||
.TH classes.conf 5 "Common UNIX Printing System" "22 September 1999" "Easy Software Products"
|
||||
.SH NAME
|
||||
classes.conf \- class configuration file for cups
|
||||
.SH DESCRIPTION
|
||||
The \fIclasses.conf\fR file defines the local printer classes that are
|
||||
available. It is normally located in the \fI/etc/cups\fR directory and
|
||||
is generated automatically by the \fIcupsd(8)\fR program when printer
|
||||
classes are added or deleted.
|
||||
.LP
|
||||
Each line in the file can be a configuration directive, a blank line,
|
||||
or a comment. Comment lines start with the # character.
|
||||
.SH DIRECTIVES
|
||||
.TP 5
|
||||
<Class name> ... </Class>
|
||||
.br
|
||||
Defines a specific printer class.
|
||||
.TP 5
|
||||
Accepting
|
||||
.br
|
||||
Specifies whether or not the printer class is accepting new jobs.
|
||||
.TP 5
|
||||
Info
|
||||
.br
|
||||
Specifies human-readable text describing the printer class.
|
||||
.TP 5
|
||||
Location
|
||||
.br
|
||||
Specifies human-readable text describing the location of the printer class.
|
||||
.TP 5
|
||||
Printer
|
||||
.br
|
||||
Specifies a printer that is a member of the printer class.
|
||||
.TP 5
|
||||
State
|
||||
.br
|
||||
Specifies the initial state of the printer class (Idle or Stopped)
|
||||
.TP 5
|
||||
StateMessage
|
||||
.br
|
||||
Specifies the message associated with the state.
|
||||
available. It is normally generated by the \fIcupsd(8)\fR program when
|
||||
printer classes are added or deleted.
|
||||
.SH SEE ALSO
|
||||
cupsd(8), cupsd.conf(5), mime.convs(5), mime.types(5), printers.conf(5),
|
||||
CUPS Software Administrators Manual
|
||||
CUPS Software Administrators Manual,
|
||||
CUPS Interface Design Description
|
||||
.SH COPYRIGHT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights Reserved.
|
||||
.\"
|
||||
.\" End of "$Id: classes.conf.man 1151 2000-06-22 18:21:40Z mike $".
|
||||
.\" End of "$Id: classes.conf.man 911 2000-02-23 03:17:06Z mike $".
|
||||
.\"
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
|
||||
cups-lpd(8) Easy Software Products cups-lpd(8)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
cups-lpd - receive print jobs and report printer status to
|
||||
lpd clients
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
ccuuppss--llppdd
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
ccuuppss--llppdd is the CUPS Line Printer Daemon ("LPD") mini-
|
||||
server that supports legacy client systems that use the
|
||||
LPD protocol. ccuuppss--llppdd does not act as a standalone net-
|
||||
work daemon but instead operates using the Internet
|
||||
"super-server" iinneettdd((88)). Add the following line to the
|
||||
iinneettdd..ccoonnff file to enable the ccuuppss--llppdd daemon:
|
||||
|
||||
printer stream tcp nowait lp /usr/lib/cups/daemon/cups-lpd cups-lpd
|
||||
|
||||
CCOOMMPPAATTIIBBIILLIITTYY
|
||||
ccuuppss--llppdd does not enforce the restricted source port num-
|
||||
ber specified in RFC 1179, as using restricted ports does
|
||||
not prevent determined users from submitting print jobs.
|
||||
While this behavior is different than standard Berkeley
|
||||
LPD implementations, it should not affect normal client
|
||||
operations.
|
||||
|
||||
The output of the status requests follows RFC 2569, Map-
|
||||
ping between LPD and IPP Protocols. Since many LPD imple-
|
||||
mentations stray from this definition, remote status
|
||||
reporting to LPD clients may be unreliable.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
inetd(8), CUPS Software Administrators Manual
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
10 May 2000 Common UNIX Printing System 1
|
||||
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
|
||||
cups-polld(8) Easy Software Products cups-polld(8)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
cups-polld - cups printer polling daemon
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
ccuuppss--ppoolllldd _a_d_d_r_e_s_s _i_p_p_-_p_o_r_t _i_n_t_e_r_v_a_l _b_r_o_w_s_e_-_p_o_r_t
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
ccuuppss--ppoolllldd polls remote servers for a list of available
|
||||
printers and printer classes every _i_n_t_e_r_v_a_l seconds.
|
||||
Printer and class information is then broadcast to the
|
||||
localhost interface (127.0.0.1) for reception by ccuuppssdd((88)).
|
||||
|
||||
This program is started automatically by ccuuppssdd for each
|
||||
BrowsePoll directive found in the ccuuppssdd..ccoonnff file.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
cupsd.conf(5), CUPS Software Administrators Manual
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
10 May 2000 Common UNIX Printing System 1
|
||||
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
|
||||
cupsd(8) Easy Software Products cupsd(8)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
cupsd - common unix printing system daemon
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
ccuuppssdd _[ _-_c _c_o_n_f_i_g_-_f_i_l_e _]
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
_c_u_p_s_d is the scheduler for the Common UNIX Printing Sys-
|
||||
tem. It implements a printing system based upon the Inter-
|
||||
net Printing Protocol, version 1.0. If no options are
|
||||
specified on the command-line then the default configura-
|
||||
tion file (usually _/_v_a_r_/_c_u_p_s_/_c_o_n_f_/_c_u_p_s_d_._c_o_n_f) will be
|
||||
used.
|
||||
|
||||
CCOOMMPPAATTIIBBIILLIITTYY
|
||||
_c_u_p_s_d implements all of the required IPP/1.0 attributes
|
||||
and operations. It also implements optional operation set
|
||||
1 and several CUPS-specific administation operations.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
backend(1), classes.conf(5), cupsd.conf(5), filter(1),
|
||||
mime.convs(5), mime.types(5), printers.conf(5), CUPS Soft-
|
||||
ware Administrators Manual, CUPS Interface Design Descrip-
|
||||
tion
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 1
|
||||
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
|
||||
cupsd.conf(5) Easy Software Products cupsd.conf(5)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
cupsd.conf - server configuration file for cups
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
The _c_u_p_s_d_._c_o_n_f file configures the CUPS scheduler,
|
||||
_c_u_p_s_d_(_8_).
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
classes.conf(5), cupsd(8), mime.convs(5), mime.types(5),
|
||||
printers.conf(5), CUPS Software Administrators Manual,
|
||||
CUPS Interface Design Description
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 1
|
||||
|
||||
|
||||
+6
-214
@@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" "$Id: cupsd.conf.man 1170 2000-06-27 21:11:16Z mike $"
|
||||
.\" "$Id: cupsd.conf.man 911 2000-02-23 03:17:06Z mike $"
|
||||
.\"
|
||||
.\" cupsd.conf man page for the Common UNIX Printing System (CUPS).
|
||||
.\"
|
||||
@@ -21,225 +21,17 @@
|
||||
.\" EMail: cups-info@cups.org
|
||||
.\" WWW: http://www.cups.org
|
||||
.\"
|
||||
.TH cupsd.conf 5 "Common UNIX Printing System" "22 June 2000" "Easy Software Products"
|
||||
.TH cupsd.conf 5 "Common UNIX Printing System" "22 September 1999" "Easy Software Products"
|
||||
.SH NAME
|
||||
cupsd.conf \- server configuration file for cups
|
||||
.SH DESCRIPTION
|
||||
The \fIcupsd.conf\fR file configures the CUPS scheduler, \fIcupsd(8)\fR. It
|
||||
is normally located in the \fI/etc/cups\fR directory.
|
||||
.LP
|
||||
Each line in the file can be a configuration directive, a blank line,
|
||||
or a comment. Comment lines start with the # character. The
|
||||
configuration directives are intentionally similar to those used by the
|
||||
popular Apache web server software and are described below.
|
||||
.SH DIRECTIVES
|
||||
The following directives are understood by \fIcupsd\fR. Consult the CUPS
|
||||
Software Administrators Manual for a detailed description:
|
||||
.TP 5
|
||||
AccessLog
|
||||
.br
|
||||
Defines the access log filename.
|
||||
.TP 5
|
||||
Allow
|
||||
.br
|
||||
Allows access from the named hosts or addresses.
|
||||
.TP 5
|
||||
AuthClass
|
||||
.br
|
||||
Specifies the authentication class (User, Group, System)
|
||||
.TP 5
|
||||
AuthType
|
||||
.br
|
||||
Specifies the authentication type (None, Basic, Digest)
|
||||
.TP 5
|
||||
BrowseAddress
|
||||
.br
|
||||
Specifies a broadcast address for outgoing printer information packets.
|
||||
.TP 5
|
||||
BrowseAllow
|
||||
.br
|
||||
Allows incoming printer information packets from the named host or address.
|
||||
.TP 5
|
||||
BrowseDeny
|
||||
.br
|
||||
Denies incoming printer information packets from the named host or address.
|
||||
.TP 5
|
||||
BrowseInterval
|
||||
.br
|
||||
Specifies the maximum interval between printer information broadcasts.
|
||||
.TP 5
|
||||
BrowseOrder
|
||||
.br
|
||||
Specifies the order of printer information access control (allow,deny or deny,allow)
|
||||
.TP 5
|
||||
BrowsePoll
|
||||
.br
|
||||
Specifies a server to poll for printer information.
|
||||
.TP 5
|
||||
BrowsePort
|
||||
.br
|
||||
Specifies the port to listen to for printer information packets.
|
||||
.TP 5
|
||||
BrowseRelay
|
||||
.br
|
||||
Specifies that printer information packets should be relayed from one host or
|
||||
network to another.
|
||||
.TP 5
|
||||
BrowseShortNames
|
||||
.br
|
||||
Specifies whether remote printers will use short names ("printer") or not
|
||||
("printer@server"). This option is ignored if more than one remote printer
|
||||
exists with the same name.
|
||||
.TP 5
|
||||
BrowseTimeout
|
||||
.br
|
||||
Specifies the maximum interval between printer information updates before
|
||||
remote printers will be removed from the list of available printers.
|
||||
.TP 5
|
||||
Browsing
|
||||
.br
|
||||
Specifies whether or not remote printer browsing should be enabled.
|
||||
.TP 5
|
||||
DataDir
|
||||
.br
|
||||
Specified the directory where data files can be found.
|
||||
.TP 5
|
||||
DefaultCharset
|
||||
.br
|
||||
Specifies the default character set to use for text.
|
||||
.TP 5
|
||||
DefaultLanguage
|
||||
.br
|
||||
Specifies the default language to use for text and web content.
|
||||
.TP 5
|
||||
Deny
|
||||
.br
|
||||
Denies access to the named host or address.
|
||||
.TP 5
|
||||
DocumentRoot
|
||||
.br
|
||||
Specifies the root directory for the internal web server documents.
|
||||
.TP 5
|
||||
ErrorLog
|
||||
.br
|
||||
Specifies the error log filename.
|
||||
.TP 5
|
||||
Group
|
||||
.br
|
||||
Specifies the group name or ID that will be used when executing
|
||||
external programs.
|
||||
.TP 5
|
||||
HostNameLookups
|
||||
.br
|
||||
Specifies whether or not to do reverse lookups on client addresses.
|
||||
.TP 5
|
||||
ImplicitClasses
|
||||
.br
|
||||
Specifies whether or not to create implicit classes from identical
|
||||
remote printers.
|
||||
.TP 5
|
||||
KeepAlive
|
||||
.br
|
||||
Specifies whether or not to support HTTP Keep-Alive.
|
||||
.TP 5
|
||||
KeepAliveTimeout
|
||||
.br
|
||||
Specifies the connection timeout for HTTP Keep-Alive.
|
||||
.TP 5
|
||||
<Location /path> ... </Location>
|
||||
.br
|
||||
Specifies access control for the named location.
|
||||
.TP 5
|
||||
LogLevel
|
||||
.br
|
||||
Specifies the logging level (none, warn, error, info, or debug)
|
||||
.TP 5
|
||||
MaxClients
|
||||
.br
|
||||
Specifies the maximum number of simultaneous clients to support.
|
||||
.TP 5
|
||||
MaxLogSize
|
||||
.br
|
||||
Specifies the maximum size of the log files before they are
|
||||
rotated (0 to disable rotation)
|
||||
.TP 5
|
||||
MaxRequestSize
|
||||
.br
|
||||
Specifies the maximum request/file size in bytes (0 for no limit)
|
||||
.TP 5
|
||||
Order
|
||||
.br
|
||||
Specifies the order of HTTP access control (allow,deny or deny,allow)
|
||||
.TP 5
|
||||
PageLog
|
||||
.br
|
||||
Specifies the page log filename.
|
||||
.TP 5
|
||||
Port
|
||||
.br
|
||||
Specifies a port number to listen to for HTTP requests.
|
||||
.TP 5
|
||||
PreserveJobFiles
|
||||
.br
|
||||
Specifies whether or not to preserve job files after they are printed.
|
||||
.TP 5
|
||||
PreserveJobHistory
|
||||
.br
|
||||
Specifies whether or not to preserve the job history after they are
|
||||
printed.
|
||||
.TP 5
|
||||
Printcap
|
||||
.br
|
||||
Specifies the filename for a printcap file that is updated automatically
|
||||
with a list of available printers (needed for legacy applications)
|
||||
.TP 5
|
||||
RIPCache
|
||||
.br
|
||||
Specifies the maximum amount of memory to use when converting images
|
||||
and PostScript files to bitmaps for a printer.
|
||||
.TP 5
|
||||
RequestRoot
|
||||
.br
|
||||
Specifies the directory to store print jobs and other HTTP request
|
||||
data.
|
||||
.TP 5
|
||||
ServerAdmin
|
||||
.br
|
||||
Specifies the email address of the server administrator.
|
||||
.TP 5
|
||||
ServerBin
|
||||
.br
|
||||
Specifies the directory where backends, CGIs, daemons, and filters may
|
||||
be found.
|
||||
.TP 5
|
||||
ServerName
|
||||
.br
|
||||
Specifies the fully-qualified hostname of the server.
|
||||
.TP 5
|
||||
ServerRoot
|
||||
.br
|
||||
Specifies the directory where the server configuration files can be found.
|
||||
.TP 5
|
||||
SystemGroup
|
||||
.br
|
||||
Specifies the group to use for System class authentication.
|
||||
.TP 5
|
||||
TempDir
|
||||
.br
|
||||
Specifies the directory where temporary files are stored.
|
||||
.TP 5
|
||||
Timeout
|
||||
.br
|
||||
Specifies the HTTP request timeout in seconds.
|
||||
.TP 5
|
||||
User
|
||||
.br
|
||||
Specifies the user name or ID that is used when running external programs.
|
||||
The \fIcupsd.conf\fR file configures the CUPS scheduler, \fIcupsd(8)\fR.
|
||||
.SH SEE ALSO
|
||||
classes.conf(5), cupsd(8), mime.convs(5), mime.types(5), printers.conf(5),
|
||||
CUPS Software Administrators Manual
|
||||
CUPS Software Administrators Manual,
|
||||
CUPS Interface Design Description
|
||||
.SH COPYRIGHT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights Reserved.
|
||||
.\"
|
||||
.\" End of "$Id: cupsd.conf.man 1170 2000-06-27 21:11:16Z mike $".
|
||||
.\" End of "$Id: cupsd.conf.man 911 2000-02-23 03:17:06Z mike $".
|
||||
.\"
|
||||
|
||||
+12
-14
@@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" "$Id: cupsd.man 1151 2000-06-22 18:21:40Z mike $"
|
||||
.\" "$Id: cupsd.man 911 2000-02-23 03:17:06Z mike $"
|
||||
.\"
|
||||
.\" cupsd man page for the Common UNIX Printing System (CUPS).
|
||||
.\"
|
||||
@@ -21,30 +21,28 @@
|
||||
.\" EMail: cups-info@cups.org
|
||||
.\" WWW: http://www.cups.org
|
||||
.\"
|
||||
.TH cupsd 8 "Common UNIX Printing System" "22 June 2000" "Easy Software Products"
|
||||
.TH cupsd 8 "Common UNIX Printing System" "22 September 1999" "Easy Software Products"
|
||||
.SH NAME
|
||||
cupsd \- common unix printing system daemon
|
||||
.SH SYNOPSIS
|
||||
.B cupsd
|
||||
.I [ \-c config-file ]
|
||||
.SH DESCRIPTION
|
||||
\fIcupsd\fR is the scheduler for the Common UNIX Printing System. It
|
||||
implements a printing system based upon the Internet Printing Protocol,
|
||||
version 1.1. If no options are specified on the command-line then the
|
||||
default configuration file (usually \fI/etc/cups/cupsd.conf\fR) will be
|
||||
used.
|
||||
\fIcupsd\fR is the scheduler for the Common UNIX Printing System. It implements
|
||||
a printing system based upon the Internet Printing Protocol, version 1.0. If
|
||||
no options are specified on the command-line then the default configuration file
|
||||
(usually \fI/var/cups/conf/cupsd.conf\fR) will be used.
|
||||
.SH COMPATIBILITY
|
||||
\fIcupsd\fR implements all of the required IPP/1.1 attributes and
|
||||
operations. It also implements several CUPS-specific administation
|
||||
operations.
|
||||
\fIcupsd\fR implements all of the required IPP/1.0 attributes and operations.
|
||||
It also implements optional operation set 1 and several CUPS-specific
|
||||
administation operations.
|
||||
.SH SEE ALSO
|
||||
backend(1), classes.conf(5), cupsd.conf(5), filter(1), mime.convs(5),
|
||||
mime.types(5), printers.conf(5),
|
||||
CUPS Implementation of IPP,
|
||||
CUPS Interface Design Description,
|
||||
CUPS Software Administrators Manual
|
||||
CUPS Software Administrators Manual,
|
||||
CUPS Interface Design Description
|
||||
.SH COPYRIGHT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights Reserved.
|
||||
.\"
|
||||
.\" End of "$Id: cupsd.man 1151 2000-06-22 18:21:40Z mike $".
|
||||
.\" End of "$Id: cupsd.man 911 2000-02-23 03:17:06Z mike $".
|
||||
.\"
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
|
||||
enable(8) Easy Software Products enable(8)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
disable, enable - stop/start printers and classes
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
ddiissaabbllee [ -c ] [ -h _s_e_r_v_e_r ] [ -r [ _r_e_a_s_o_n ] ] destina-
|
||||
tion(s)
|
||||
eennaabbllee destination(s)
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
_e_n_a_b_l_e starts the named printers or classes.
|
||||
|
||||
_d_i_s_a_b_l_e stops the named printers or classes. The follow-
|
||||
ing options may be used:
|
||||
|
||||
-c
|
||||
Cancels all jobs on the named destination.
|
||||
|
||||
-r [ _r_e_a_s_o_n ]
|
||||
Sets the message associated with the stopped state.
|
||||
If no reason is specified then the message is set to
|
||||
"Reason Unknown".
|
||||
|
||||
CCOOMMPPAATTIIBBIILLIITTYY
|
||||
The CUPS versions of _d_i_s_a_b_l_e and _e_n_a_b_l_e may ask the user
|
||||
for an access password depending on the printing system
|
||||
configuration. This differs from the System V versions
|
||||
which require the root user to execute these commands.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
accept(8), cancel(1), lp(1), lpadmin(8), lpstat(1),
|
||||
reject(8), CUPS Software Administrators Manual
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 1
|
||||
|
||||
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
|
||||
|
||||
|
||||
filter(1) Easy Software Products filter(1)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
filter - file conversion filter interfaces
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
ffiilltteerr job user title num-copies options _[ _f_i_l_e_n_a_m_e _]
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
The CUPS filter interface provides a standard method for
|
||||
adding support for new document types to CUPS. Each filter
|
||||
is capable of converting from one or more input formats to
|
||||
another format that can either be printed directly or
|
||||
piped into another filter to get it to a printable format.
|
||||
|
||||
Filters must be capable of reading from a filename on the
|
||||
command-line or from the standard input, copying stdin to
|
||||
a temporary if required by the file format.
|
||||
|
||||
The command name (argv[0]) is set to the name of the des-
|
||||
tination printer.
|
||||
|
||||
EENNVVIIRROONNMMEENNTT VVAARRIIAABBLLEESS
|
||||
The following environment variables are defined by the
|
||||
CUPS server when executing each filter:
|
||||
|
||||
CHARSET
|
||||
The default text character set (typically us-ascii or
|
||||
iso-8859-1).
|
||||
|
||||
CONTENT_TYPE
|
||||
The MIME type associated with the file (e.g. applica-
|
||||
tion/postscript).
|
||||
|
||||
DEVICE_URI
|
||||
The device-uri associated with the printer.
|
||||
|
||||
LANG
|
||||
The default language locale (typically C or en).
|
||||
|
||||
PATH
|
||||
The standard execution path for external programs
|
||||
that may be run by the filter.
|
||||
|
||||
PPD
|
||||
The full pathname of the PostScript Printer Descrip-
|
||||
tion (PPD) file for this printer.
|
||||
|
||||
PRINTER
|
||||
The name of the printer; this is provided for shell
|
||||
scripts which may not be able to get the passed
|
||||
argv[0] string.
|
||||
|
||||
RIP_CACHE
|
||||
The recommended amount of memory to use for Raster
|
||||
Image Processors (RIPs).
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
filter(1) Easy Software Products filter(1)
|
||||
|
||||
|
||||
SERVER_ROOT
|
||||
The root directory of the server.
|
||||
|
||||
SOFTWARE
|
||||
The name and version number of the server (typically
|
||||
CUPS/1.0).
|
||||
|
||||
TZ
|
||||
The timezone of the server.
|
||||
|
||||
USER
|
||||
The user executing the filter (typically lp).
|
||||
|
||||
CCOOMMPPAATTIIBBIILLIITTYY
|
||||
While the filter interface is compatible with System V
|
||||
interface scripts, it will only work with the System V
|
||||
interface script as the only filter. Typically the inter-
|
||||
face script will be provided via the llppaaddmmiinn((88)) command
|
||||
using the _-_i option.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
backend(1), cupsd(8), CUPS Software Administrators Manual,
|
||||
CUPS Interface Design Description
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 2
|
||||
|
||||
|
||||
+15
-22
@@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" "$Id: filter.man 1180 2000-06-28 16:50:04Z mike $"
|
||||
.\" "$Id: filter.man 911 2000-02-23 03:17:06Z mike $"
|
||||
.\"
|
||||
.\" filter man page for the Common UNIX Printing System (CUPS).
|
||||
.\"
|
||||
@@ -21,24 +21,22 @@
|
||||
.\" EMail: cups-info@cups.org
|
||||
.\" WWW: http://www.cups.org
|
||||
.\"
|
||||
.TH filter 1 "Common UNIX Printing System" "22 June 2000" "Easy Software Products"
|
||||
.TH filter 1 "Common UNIX Printing System" "22 September 1999" "Easy Software Products"
|
||||
.SH NAME
|
||||
filter \- cups file conversion filter interfaces
|
||||
filter \- file conversion filter interfaces
|
||||
.SH SYNOPSIS
|
||||
.B filter
|
||||
job user title num-copies options [
|
||||
.I filename
|
||||
]
|
||||
job user title num-copies options
|
||||
.I [ filename ]
|
||||
.SH DESCRIPTION
|
||||
The CUPS filter interface provides a standard method for adding support for
|
||||
new document types to CUPS. Each filter is capable of converting from one
|
||||
or more input formats to another format that can either be printed directly
|
||||
or piped into another filter to get it to a printable format.
|
||||
.LP
|
||||
Filters must be capable of reading from a filename on the command-line
|
||||
or from the standard input, copying the standard input to a temporary
|
||||
file as required by the file format. All output must be sent to the
|
||||
standard output.
|
||||
Filters must be capable of reading from a filename on the command-line or from
|
||||
the standard input, copying stdin to a temporary if required by the file
|
||||
format.
|
||||
.LP
|
||||
The command name (argv[0]) is set to the name of the destination printer.
|
||||
.SH ENVIRONMENT VARIABLES
|
||||
@@ -53,14 +51,6 @@ CONTENT_TYPE
|
||||
.br
|
||||
The MIME type associated with the file (e.g. application/postscript).
|
||||
.TP 5
|
||||
CUPS_DATADIR
|
||||
.br
|
||||
The directory where data files can be found.
|
||||
.TP 5
|
||||
CUPS_SERVERROOT
|
||||
.br
|
||||
The root directory of the server.
|
||||
.TP 5
|
||||
DEVICE_URI
|
||||
.br
|
||||
The device-uri associated with the printer.
|
||||
@@ -87,9 +77,13 @@ RIP_CACHE
|
||||
.br
|
||||
The recommended amount of memory to use for Raster Image Processors (RIPs).
|
||||
.TP 5
|
||||
SERVER_ROOT
|
||||
.br
|
||||
The root directory of the server.
|
||||
.TP 5
|
||||
SOFTWARE
|
||||
.br
|
||||
The name and version number of the server (typically CUPS/1.1).
|
||||
The name and version number of the server (typically CUPS/1.0).
|
||||
.TP 5
|
||||
TZ
|
||||
.br
|
||||
@@ -105,11 +99,10 @@ only filter. Typically the interface script will be provided via the
|
||||
\fBlpadmin(8)\fR command using the \fI-i\fR option.
|
||||
.SH SEE ALSO
|
||||
backend(1), cupsd(8),
|
||||
CUPS Interface Design Description,
|
||||
CUPS Software Administrators Manual,
|
||||
CUPS Software Programmers Manual
|
||||
CUPS Interface Design Description
|
||||
.SH COPYRIGHT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights Reserved.
|
||||
.\"
|
||||
.\" End of "$Id: filter.man 1180 2000-06-28 16:50:04Z mike $".
|
||||
.\" End of "$Id: filter.man 911 2000-02-23 03:17:06Z mike $".
|
||||
.\"
|
||||
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
|
||||
|
||||
|
||||
lp(1) Easy Software Products lp(1)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
lp - print files
|
||||
cancel - cancel jobs
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
llpp [ -c ] [ -d _d_e_s_t_i_n_a_t_i_o_n ] [ -h _s_e_r_v_e_r ] [ -m ] [ -n
|
||||
_n_u_m_-_c_o_p_i_e_s [ -o _o_p_t_i_o_n ] [ -p/q _p_r_i_o_r_i_t_y ] [ -s ] [ -t
|
||||
_t_i_t_l_e ] [ _f_i_l_e_(_s_) ]
|
||||
ccaanncceell [ -a ] [ -h _s_e_r_v_e_r ] [ _i_d ] [ _d_e_s_t_i_n_a_t_i_o_n ] [ _d_e_s_-
|
||||
_t_i_n_a_t_i_o_n_-_i_d ]
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
llpp submits files for printing.
|
||||
|
||||
ccaanncceell cancels existing print jobs. The _-_a option will
|
||||
remove all jobs from the specified destination.
|
||||
|
||||
OOPPTTIIOONNSS
|
||||
The following options are recognized by llpp:
|
||||
|
||||
-d _d_e_s_t_i_n_a_t_i_o_n
|
||||
Prints files to the named printer.
|
||||
|
||||
-h _h_o_s_t_n_a_m_e
|
||||
Specifies the print server hostname. The default is
|
||||
"localhost" or the value of the CUPS_SERVER environ-
|
||||
ment variable.
|
||||
|
||||
-m
|
||||
Send email when the job is completed (ignored in CUPS
|
||||
1.0.)
|
||||
|
||||
-n _c_o_p_i_e_s
|
||||
Sets the number of copies to print from 1 to 100.
|
||||
|
||||
-o _o_p_t_i_o_n
|
||||
Sets a job option.
|
||||
|
||||
-p/q _p_r_i_o_r_i_t_y
|
||||
Sets the job priority from 1 (lowest) to 100 (high-
|
||||
est). The default priority is 50.
|
||||
|
||||
-s
|
||||
Do not report the resulting job IDs (silent mode.)
|
||||
|
||||
-t _n_a_m_e
|
||||
Sets the job name.
|
||||
|
||||
CCOOMMPPAATTIIBBIILLIITTYY
|
||||
Unlike the System V printing system, CUPS allows printer
|
||||
names to contain any printable character except SPACE and
|
||||
TAB. Also, printer and class names are nnoott case-sensitive.
|
||||
|
||||
The "m" option is not functional in CUPS 1.0.
|
||||
|
||||
|
||||
|
||||
9 September 1999 Common UNIX Printing System 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
lp(1) Easy Software Products lp(1)
|
||||
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
lpstat(1), CUPS Software Users Manual
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
9 September 1999 Common UNIX Printing System 2
|
||||
|
||||
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
|
||||
|
||||
|
||||
lpadmin(8) Easy Software Products lpadmin(8)
|
||||
|
||||
|
||||
NNAAMMEE
|
||||
lpadmin - configure cups printers and classes
|
||||
|
||||
SSYYNNOOPPSSIISS
|
||||
llppaaddmmiinn [ -h _s_e_r_v_e_r ] -d _d_e_s_t_i_n_a_t_i_o_n
|
||||
llppaaddmmiinn [ -h _s_e_r_v_e_r ] -p _p_r_i_n_t_e_r _o_p_t_i_o_n_(_s_)
|
||||
llppaaddmmiinn [ -h _s_e_r_v_e_r ] -x _d_e_s_t_i_n_a_t_i_o_n
|
||||
|
||||
DDEESSCCRRIIPPTTIIOONN
|
||||
_l_p_a_d_m_i_n configures printer and class queues provided by
|
||||
CUPS. It can also be used to set the system default
|
||||
printer or class.
|
||||
|
||||
The first form of the command sets the default printer or
|
||||
class to _d_e_s_t_i_n_a_t_i_o_n. Subsequent print jobs submitted via
|
||||
the _l_p_(_1_) or _l_p_r_(_1_) commands will use this destination
|
||||
unless the user specifies otherwise.
|
||||
|
||||
The second form of the command configures the named
|
||||
printer. The additional options are described below.
|
||||
|
||||
The third form of the command deletes the printer or class
|
||||
_d_e_s_t_i_n_a_t_i_o_n. Any jobs that are pending for the destina-
|
||||
tion will be removed and any job that is currently printed
|
||||
will be aborted.
|
||||
|
||||
CCOONNFFIIGGUURRAATTIIOONN OOPPTTIIOONNSS
|
||||
The following options are recognized when configuring a
|
||||
printer queue:
|
||||
|
||||
-c _c_l_a_s_s
|
||||
Adds the named _p_r_i_n_t_e_r to _c_l_a_s_s. If _c_l_a_s_s does not
|
||||
exist it is created automatically.
|
||||
|
||||
-i _i_n_t_e_r_f_a_c_e
|
||||
Sets a System V style interface script for the
|
||||
printer. This option cannot be specified with the _-_P
|
||||
option (PPD file) and is intended for providing sup-
|
||||
port for legacy printer drivers.
|
||||
|
||||
-m _m_o_d_e_l
|
||||
Sets a standard System V interface script or PPD file
|
||||
from the model directory.
|
||||
|
||||
-r _c_l_a_s_s
|
||||
Removes the named _p_r_i_n_t_e_r from _c_l_a_s_s. If the result-
|
||||
ing class becomes empty it is removed.
|
||||
|
||||
-v _d_e_v_i_c_e_-_u_r_i
|
||||
Sets the _d_e_v_i_c_e_-_u_r_i attribute of the printer queue.
|
||||
If _d_e_v_i_c_e_-_u_r_i is a filename it is automatically con-
|
||||
verted to the form ffiillee:://ffiillee//nnaammee.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
lpadmin(8) Easy Software Products lpadmin(8)
|
||||
|
||||
|
||||
-D _i_n_f_o
|
||||
Provides a textual description of the printer.
|
||||
|
||||
-E
|
||||
Enables the printer and accepts jobs; this is the
|
||||
same as running the _a_c_c_e_p_t_(_8_) and _e_n_a_b_l_e_(_8_) programs
|
||||
on the printer.
|
||||
|
||||
-L _l_o_c_a_t_i_o_n
|
||||
Provides a textual location of the printer.
|
||||
|
||||
-P _p_p_d_-_f_i_l_e
|
||||
Specifies a PostScript Printer Description file to
|
||||
use with the printer. If specified, this option over-
|
||||
rides the _-_i option (interface script).
|
||||
|
||||
CCOOMMPPAATTIIBBIILLIITTYY
|
||||
Unlike the System V printing system, CUPS allows printer
|
||||
names to contain any printable character except SPACE and
|
||||
TAB. Also, printer and class names are nnoott case-sensitive.
|
||||
Finally, the CUPS version of _l_p_a_d_m_i_n may ask the user for
|
||||
an access password depending on the printing system con-
|
||||
figuration. This differs from the System V version which
|
||||
requires the root user to execute this command.
|
||||
|
||||
LLIIMMIITTAATTIIOONNSS
|
||||
The CUPS version of _l_p_a_d_m_i_n does not support all of the
|
||||
System V or Solaris printing system configuration options.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
accept(8), cancel(1), disable(8), enable(8), lp(1),
|
||||
lpstat(1), reject(8), CUPS Software Administrators Manual
|
||||
|
||||
CCOOPPYYRRIIGGHHTT
|
||||
Copyright 1993-2000 by Easy Software Products, All Rights
|
||||
Reserved.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
22 September 1999 Common UNIX Printing System 2
|
||||
|
||||
|
||||
Alguns arquivos não foram exibidos porque demasiados arquivos foram alterados neste diff Mostrar Mais
Referência em uma Nova Issue
Bloquear um usuário