Changeset 1345 for pykota

Show
Ignore:
Timestamp:
02/12/04 23:43:58 (21 years ago)
Author:
jalet
Message:

Better integration in Debian and more LSB compliance, thanks to
Peter Hawkins.

Location:
pykota/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/conf/pykota.conf.sample

    r1337 r1345  
    241241# or more simply : 
    242242# 
    243 #       mailto: external(/usr/bin/mailandpopup.sh %(username)s %(printername)s "%(email)s" "%(message)s" 2>&1 >/dev/null) 
     243#       mailto: external(/usr/share/pykota/mailandpopup.sh %(username)s %(printername)s "%(email)s" "%(message)s" 2>&1 >/dev/null) 
    244244# 
    245245#   NB : The mailandpopup.sh shell script is now included in PyKota 
     
    327327# pagecount.ps file from untested/netatalk into /etc or any  
    328328# appropriate location) 
    329 #     requester: external(/usr/bin/papwaitprinter.sh "MyPrinter:LaserWriter@*" && /usr/bin/pap -p "MyPrinter:LaserWriter@*" /etc/pagecount.ps  2>/dev/null | grep -v status | grep -v Connect | tail -1) 
     329#     requester: external(/usr/share/pykota/papwaitprinter.sh "MyPrinter:LaserWriter@*" && /usr/bin/pap -p "MyPrinter:LaserWriter@*" /usr/share/pykota/pagecount.ps  2>/dev/null | /bin/grep -v status | /bin/grep -v Connect | /usr/bin/tail -1) 
    330330# 
    331331# An example for parallel printers like the HP Laserjet 5MP : 
    332332# 
    333 #     requester: external(/bin/cat /usr/share/pykota/untested/pjl/pagecount.pjl >/dev/lp0 && /usr/bin/head -2 </dev/lp0 | /usr/bin/tail -1) 
     333#     requester: external(/bin/cat /usr/share/pykota/pagecount.pjl >/dev/lp0 && /usr/bin/head -2 </dev/lp0 | /usr/bin/tail -1) 
    334334#  
    335335#  
     
    360360# server on port 9100 : 
    361361# 
    362 # requester: external(/bin/nc -w 2 %(printer)s 9100 <pagecount.pjl | /usr/bin/tail -2) 
     362# requester: external(/bin/nc -w 2 %(printer)s 9100 </usr/share/pykota/pagecount.pjl | /usr/bin/tail -2) 
    363363# 
    364364# 
     
    366366# the same as above, but should work on more printers :  
    367367# 
    368 # requester: external(/usr/bin/pagecount.pl %(printer)s 9100) 
     368# requester: external(/usr/share/pykota/pagecount.pl %(printer)s 9100) 
    369369# 
    370370# 
     
    376376# not yet finished (not all pages are printed, but the complete job is in  
    377377# the printer) 
    378 requester: external(/usr/bin/waitprinter.sh %(printer)s && /usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 
     378requester: external(/usr/share/pykota/waitprinter.sh %(printer)s && /usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 
    379379 
    380380# Default policy for inexistant users (e.g. root) 
  • pykota/trunk/NEWS

    r1338 r1345  
    2424    - 1.18alpha4 : 
    2525     
     26        - Applied some of the modifications suggested by 
     27          Peter Hawkins, for better Debian integration. 
     28          Most notably cupspykota, pykota, and the shell 
     29          scripts are now installed into /usr/share/pykota 
     30          instead of into /usr/bin 
     31          BEWARE : double check that your symbolic link 
     32          to cupspykota is correct, and that your pykota.conf 
     33          file use correct path for the shell scripts like 
     34          waitprinter.sh and al. 
     35           
    2636        - pkhint command added, to help in configuring correct 
    2737          accounting method for PyKota. 
  • pykota/trunk/README

    r1299 r1345  
    305305         
    306306          $ cd /usr/lib/cups/backend 
    307           $ ln -s /usr/bin/cupspykota cupspykota 
     307          $ ln -s /usr/share/pykota/cupspykota cupspykota 
    308308           
    309309        Restart CUPS so that the new backend can be detected. 
     
    344344        line to remove is of the form : 
    345345         
    346           *cupsFilter: "application/vnd.cups-postscript 0 /usr/bin/pykota" 
     346          *cupsFilter: "application/vnd.cups-postscript 0 /usr/share/pykota/pykota" 
     347         
     348        This means that each time the pstops filter will be executed, it will 
     349        pass the job's data through the pykota filter which is present in  
     350        /usr/share/pykota 
    347351         
    348352        Don't touch anything else, especially any other *cupsFilter line. 
     
    359363     
    360364            DeviceURI cupspykota:socket://myprinter.domain.com:9100 
     365             
     366        or :     
     367         
     368            DeviceURI cupspykota://socket://myprinter.domain.com:9100 
    361369         
    362370        Save the file and restart CUPS. 
     
    367375     
    368376    :achk=true 
    369     :as=|/usr/bin/pykota 
     377    :as=|/usr/share/pykota/pykota 
    370378     
    371379    For each printer on which you want to use print accounting. 
     
    379387   
    380388Add printers and users to the quota system and set their quota values :  
     389 
     390Starting from version 1.18alpha2, the preferred command to manage 
     391printers is named pkprinters 
     392 
     393    $ pkprinters --help 
     394     
     395    will tell you how to create, manage or delete printers and 
     396    printers groups. 
    381397 
    382398    $ edpykota --add -P hp2100 -S 40 -H 50 user1 ... userN 
     
    427443     
    428444Quota reports are also available remotely by using the CGI script 
    429 printquota.cgi provided in the cgi-bin/ subdirectory. 
     445printquota.cgi provided in the cgi-bin/ subdirectory. You can  
     446also use the CSS stylesheet present in the stylesheets/ subdirectory 
     447and put it at your web server's DocumentRoot. 
    430448 
    431449For different security concerns, please give a look at the SECURITY 
  • pykota/trunk/setup.py

    r1338 r1345  
    2424# 
    2525# $Log$ 
     26# Revision 1.35  2004/02/12 22:43:58  jalet 
     27# Better integration in Debian and more LSB compliance, thanks to 
     28# Peter Hawkins. 
     29# 
    2630# Revision 1.34  2004/02/07 13:45:51  jalet 
    2731# Preliminary work on the pkhint command 
     
    379383data_files.append((directory, manpages)) 
    380384 
     385directory = os.sep.join(["share", "pykota"]) 
     386data_files.append((directory, ["bin/cupspykota", "bin/pykota", "bin/waitprinter.sh", "bin/papwaitprinter.sh", "bin/mailandpopup.sh", "contributed/pagecount.pl", "untested/pjl/pagecount.pjl", "untested/pjl/status.pjl", "untested/netatalk/netatalk.sh", "untested/netatalk/pagecount.ps"])) 
     387 
    381388setup(name = "pykota", version = __version__, 
    382389      license = "GNU GPL", 
     
    386393      url = "http://www.librelogiciel.com/software/", 
    387394      packages = [ "pykota", "pykota.storages", "pykota.requesters", "pykota.loggers", "pykota.accounters", "pykota.reporters" ], 
    388       scripts = [ "bin/cupspykota", "bin/pykota", "bin/edpykota", "bin/repykota", "bin/warnpykota", "bin/pykotme", "bin/pkprinters", "bin/pkhint", "bin/waitprinter.sh", "bin/papwaitprinter.sh", "bin/mailandpopup.sh", "contributed/pagecount.pl" ], 
     395      scripts = [ "bin/edpykota", "bin/repykota", "bin/warnpykota", "bin/pykotme", "bin/pkprinters", "bin/pkhint" ], 
    389396      data_files = data_files) 
    390397