Changeset 124

Show
Ignore:
Timestamp:
03/07/08 21:10:17 (16 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.info

    r123 r124  
    1 Package: macathena-lprng 
     1Package: lprng 
    22Version: 3.8.28 
    3 Revision: 1 
     3Revision: 2 
    44Source: http://www.lprng.com/DISTRIB/LPRng/LPRng-%v.tgz 
    55Maintainer: SIPB MacAthena Project <sipb-macathena@mit.edu> 
     
    1313BuildDepends: fink (>= 0.24.12) 
    1414PatchFile: %n.patch 
    15 PatchFile-MD5: 1eaa5ded276757cb6491f8791d044907 
     15PatchFile-MD5: 1861c8f6b59fee58d20581dfbee3bf95 
    1616ConfigureParams: --disable-rpath --disable-setuid --disable-werror --enable-kerberos_checks --enable-kerberos 
    1717InstallScript: << 
     
    3838         
    3939        mkdir -p %i/etc/lpd/ 
    40         cp %b/lpd.conf.macathena %i/etc/lpd/lpd.conf 
     40        cp %b/lpd.conf %i/etc/lpd/lpd.conf 
     41        cp %b/lpd.perms %i/etc/lpd/lpd.perms 
    4142        cp %b/printcap %i/etc/printcap 
    42         cp %b/get_hesiod_pcap %i/libexec/get_hesiod_pcap 
     43         
     44        mkdir -p %i/share 
     45        mv %i/libexec %i/share/lprng 
    4346         
    4447        mv %i/man %i/share 
  • 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 
  • trunk/locker-bin/macathenaDist.py

    r120 r124  
    127127        'config-common': ['trunk/source/config-common', False, 'https://macathena.mit.edu/svn'], 
    128128        'hes': ['trunk/source/hes', False, 'https://macathena.mit.edu/svn'], 
     129        'lprng-config': ['trunk/source/lprng-config', False, 'https://macathena.mit.edu/svn'], 
    129130        'pyhesiodfs': ['trunk/source/pyhesiodfs', False, 'https://macathena.mit.edu/svn'], 
    130131        'update': ['trunk/source/update', False, 'https://macathena.mit.edu/svn'],