Changeset 644 for tea4cups

Show
Ignore:
Timestamp:
06/12/05 22:58:48 (19 years ago)
Author:
jerome
Message:

Removed all references to 'tees' from the sample configuration file
and documentation.
Updated the license because of the Free Software Foundation's new
snail mail address.
Reworded Peter's contributions in the CREDITS file.
Added missing copyright messages.

Location:
tea4cups/trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/COPYING

    r595 r644  
    33 
    44 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 
    5                           59 Temple Place, Suite 330 
    6                           Boston, MA 02111-1307, USA. 
     5                          51 Franklin Street, Fifth Floor 
     6                          Boston, MA 02110-1301, USA. 
    77 Everyone is permitted to copy and distribute verbatim copies 
    88 of this license document, but changing it is not allowed. 
     
    307307    You should have received a copy of the GNU General Public License 
    308308    along with this program; if not, write to the Free Software 
    309     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     309    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    310310 
    311311Also add information on how to contact you by electronic and paper mail. 
  • tea4cups/trunk/CREDITS

    r637 r644  
    44 
    55(c) 2005 Jerome Alet <alet@librelogiciel.com> 
     6(c) 2005 Peter Stuge <stuge-tea4cups@cdy.org> 
    67This program is free software; you can redistribute it and/or modify 
    78it under the terms of the GNU General Public License as published by 
     
    1617You should have received a copy of the GNU General Public License 
    1718along with this program; if not, write to the Free Software 
    18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     19Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    1920 
    2021============================================================ 
     
    3334  The following people contributed to the Tea4CUPS project : 
    3435   
    35   - Peter Stuge : allowed pre and post hooks to communicate through 
    36                   a pipe. 
     36  - Peter Stuge : rewrote most of the subprocess management stuff. 
    3737 
    3838============================================================== 
  • tea4cups/trunk/NEWS

    r631 r644  
    1616You should have received a copy of the GNU General Public License 
    1717along with this program; if not, write to the Free Software 
    18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     18Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    1919 
    2020============================================================================= 
  • tea4cups/trunk/README

    r642 r644  
    1717You should have received a copy of the GNU General Public License 
    1818along with this program; if not, write to the Free Software 
    19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     19Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    2020 
    2121============================================================================= 
    2222 
    23 Tea4CUPS is the equivalent of the *nix command 'tee', but as a CUPS 
    24 backend. 
     23Tea4CUPS resembles the *nix command 'tee', but is a CUPS backend. 
    2524 
    2625Tea4CUPS behaves just like any other CUPS backend, but allows you to 
     
    3534message, all of this by printing it a single time. 
    3635 
    37 Tea4CUPS provides three ways to launch commands : 
     36Tea4CUPS allows this by permitting you to easily plug your own  
     37commands into the very last stage of CUPS' filtering chain.  
     38 
     39Tea4CUPS provides two ways to launch commands : 
    3840 
    3941        - prehooks : these are guaranteed to be launched before the  
     
    4244                     print job. 
    4345                      
    44         - tees : these are launched at the same time the job is being              
    45                  sent to the real printer, unless the job was  
    46                  previously cancelled by a prehook. 
    47                   
    4846        - posthooks : these are guaranteed to be launched after the 
    4947                      print job has been sent to the real printer, 
     
    9795        $ cp tea4cups /usr/lib/cups/backend 
    9896         
    99   2 - Restart CUPS in order for this new backend to be detected.         
     97  2 - Restart CUPS in order for this new backend to be detected. 
     98      NB : For this to work you need CUPS 1.1.15 or higher. 
     99      You can use Tea4CUPS with older versions if you want, but 
     100      without autodetection. 
    100101   
    101102  3 - Either from CUPS' web interface, add new printers with  
     
    104105      Or by directly modifying CUPS' printers.conf file, prepend     
    105106      each DeviceURI value with 'tea4cups://', and restart CUPS. 
     107      (Use this last method if autodetection doesn't work because 
     108      the version of CUPS you use is too old) 
    106109       
    107110  4 - Copy tea4cups.conf into CUPS' configuration directory (where     
  • tea4cups/trunk/tea4cups

    r643 r644  
    1818# You should have received a copy of the GNU General Public License 
    1919# along with this program; if not, write to the Free Software 
    20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    2121# 
    2222# $Id$ 
  • tea4cups/trunk/tea4cups.conf

    r620 r644  
    44# 
    55# (c) 2005 Jerome Alet <alet@librelogiciel.com> 
     6# (c) 2005 Peter Stuge <stuge-tea4cups@cdy.org> 
    67# This program is free software; you can redistribute it and/or modify 
    78# it under the terms of the GNU General Public License as published by 
     
    1617# You should have received a copy of the GNU General Public License 
    1718# along with this program; if not, write to the Free Software 
    18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     19# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    1920#  
    2021# 
     
    3536directory : /var/spool/cups/ 
    3637 
    37 # Should Tea4CUPS keep the files it creates once all tees have ended ? 
     38# Should Tea4CUPS keep the files it creates once all hooks have ended ? 
    3839# Defaults to No if unset, meaning that files are automatically deleted 
    39 # once all tees have ended. 
     40# once all hooks have ended. 
    4041# Can be set either in the [global] section or any print queue section. 
    4142# The value defined in a print queue section takes precedence over the 
     
    4445# keepfiles : yes 
    4546 
    46 # Should we serialize the launch of all tees : launch one tee after 
     47# Should we serialize the launch of all hooks : launch one after 
    4748# the other to save some system resources. 
    48 # Defaults to No if unset, meaning that all tees (or hooks) are launched in 
     49# Defaults to No if unset, meaning that all hooks are launched in 
    4950# parallel. 
    5051# 
    51 # NB : in any case, hooks or tees names are sorted alphabetically and  
     52# NB : in any case, hooks' names are sorted alphabetically and  
    5253# are launched in this sort order (obviously when launched in parallel 
    5354# this is unnoticeable). 
     
    5657# The value defined in a print queue section takes precedence over the 
    5758# value defined in the [global] section. 
    58 # This value also applies to prehooks and posthooks (see below) 
    5959# serialize : yes 
    6060 
    61 # When executing the contents of a tee, prehook or posthook directive,  
     61# When executing the contents of a prehook or posthook directive,  
    6262# tea4cups makes the following environment variables available to your 
    6363# own commands : 
     
    8383# since the first one may be empty depending on your printer driver. 
    8484         
    85 # Now defines some default tees which will always be launched 
    86 # at the same time that the job's datas are being sent to the  
    87 # printer. 
    88 # The tee names are completely free BUT THEY MUST BEGIN WITH 'tee_' 
    89 # 
    90 # These are just some stupid examples. 
    91 #tee_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn 
    92 #tee_pdf : cat $TEADATAFILE | su -c "lp -dPDFGenerator" $TEAUSERNAME 
    93  
    9485# Some hooks : prehooks and posthooks 
    9586# 
    96 # Contrary to tees, prehooks are guaranteed to be launched  
     87# Prehooks are guaranteed to be launched  
    9788# BEFORE the job's datas are sent to the printer, and  
    9889# posthooks are guaranteed to be launched AFTER the job's 
     
    114105# NB : as a special feature, any prehook which exits with a -1 status (255)  
    115106# causes the job to NOT be sent to the real backend, effectively cancelling it. 
    116 # None of the tees and posthooks gets executed in this case, but all  
     107# None of the posthooks gets executed in this case, but all  
    117108# remaining prehooks are still executed. 
    118109#  
     110#prehook_pdf : cat $TEADATAFILE | su -c "lp -dPDFGenerator" $TEAUSERNAME 
     111#posthook_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn 
    119112 
    120113 
     
    124117#[HP2100] 
    125118# 
    126 # By using a same tee name as in the [global] section, the new 
     119# By using a same hook name as in the [global] section, the new 
    127120# value takes precedence 
    128 #tee_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn 
     121#posthook_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn 
    129122 
    130123# An empty value deletes a value defined in the [global] section 
    131 # so this particular tee doesn't get executed. 
    132 #tee_pdf :  
     124# so this particular hook doesn't get executed on this printer. 
     125#prehook_pdf :  
    133126 
    134127# A reflector which produces 4 copies each time : 
    135 #tee_4copies : lp -dotherprinter -n4 $CUPSDATAFILE  
     128#posthook_4copies : lp -dotherprinter -n4 $CUPSDATAFILE  
    136129 
    137130# A simple accounting mechanism  
    138 #tee_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log 
     131#prehook_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log 
    139132 
    140133# Some additionnal hooks to forbid duplicate jobs :