Show
Ignore:
Timestamp:
03/07/08 21:10:17 (17 years ago)
Author:
broder
Message:

Renamed macathena-lprng to lprng and created macathena-lprng-config

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/fink/main/finkinfo/lprng.patch

    r123 r124  
    286286 #   undef SPT_TYPE 
    287287 #   define SPT_TYPE    SPT_REUSEARGV 
    288 --- LPRng-3.8.28/get_hesiod_pcap        1969-12-31 19:00:00.000000000 -0500 
    289 +++ LPRng-3.8.28-broder/get_hesiod_pcap 2008-03-07 18:49:42.000000000 -0500 
    290 @@ -0,0 +1,45 @@ 
    291 +#!/bin/sh 
    292 +# $Id: get_hesiod_pcap.sh,v 1.3 1999/09/02 14:33:29 ghudson Exp $ 
    293 + 
    294 +# Support script used by LPRng to fetch Hesiod printcap entries 
    295 + 
    296 +PATH=$PATH:/sw/bin 
    297 + 
    298 +read printer 
    299 + 
    300 +case "$printer" in 
    301 +all) 
    302 +    # If printer is "all", it wants a list of all available printers, the 
    303 +    # first of which will be considered the default printer. We can't get 
    304 +    # all printers, so just give the default. 
    305 + 
    306 +    if [ -z "$PRINTER" ]; then 
    307 +       host=`hostname` 
    308 +       PRINTER=`hesinfo "$host" cluster 2>/dev/null | \ 
    309 +           awk '/^lpr / {print $2; exit;}'` 
    310 +       if [ -z "$PRINTER" ]; then 
    311 +           # We have no default.  Let LPRng come up with its own default. 
    312 +           exit 0 
    313 +       fi 
    314 +    fi 
    315 +    echo "all:all=$PRINTER" 
    316 +    ;; 
    317 + 
    318 +*) 
    319 +    # Otherwise just look up the printer it asked for 
    320 +    PCAP=`hesinfo "$printer" pcap 2>/dev/null` 
    321 + 
    322 +    # If the user has no tickets, and the printer supports, but does 
    323 +    # not require, Kerberos authentication, then don't attempt 
    324 +    # it. (andersk, following suggestion by jdreed) 
    325 +    if ! klist -s 2>/dev/null; then 
    326 +       PCAP=`echo "$PCAP" | sed '/ka#0/ s/:auth=kerberos5//g'` 
    327 +    fi 
    328 + 
    329 +    PCAP=`echo $PCAP | sed s/:auth=none//g` 
    330 + 
    331 +    echo "$PCAP" 
    332 +    ;; 
    333 +esac 
    334 + 
    335 +exit 0 
    336 --- LPRng-3.8.28/lpd.conf.macathena     1969-12-31 19:00:00.000000000 -0500 
    337 +++ LPRng-3.8.28-broder/lpd.conf.macathena      2008-03-07 18:49:04.000000000 -0500 
    338 @@ -0,0 +1,10 @@ 
    339 +# Debian-Athena lprng configuration 
    340 +force_localhost@ 
    341 +kerberos_service=daemon 
    342 +pass_env=KRB5CCNAME 
    343 +#printcap_path=/etc/printcap:|/usr/lib/get_hesiod_pcap 
    344 +printcap_path=|/usr/local/lprng/libexec/get_hesiod_pcap 
    345 +#printcap_path=|/usr/local/lprng/libexec/test_pcap 
    346 +reuse_addr 
    347 +use_date@ 
    348 +retry_econnrefused@ 
    349288--- LPRng-3.8.28/src/common/lpc.c       2008-03-07 19:44:31.000000000 -0500 
    350289+++ LPRng-3.8.28-broder/src/common/lpc.c        2008-03-07 19:44:18.000000000 -0500