Bug 11377

Summary: adding ATALK support to rhs-printfilters
Product: [Retired] Red Hat Linux Reporter: Roland Roberts <roland>
Component: rhs-printfiltersAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-05-12 04:53:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Roland Roberts 2000-05-12 04:53:01 UTC
Back in 5.x, I made a small change to the filter script to allow printing
to an AppleTalk printer hanging off my wife's Mac.  This requires you
install the appletalk bridge system extension on the mac (available from
Apple's FTP site).

Here's the unified diff against 6.1's master-filter.  You will also note
the reference to the .paprc file in the lpd directory.  That file merely
contains the name of the printer; in my case it is "OL610e/PS:LaserWriter"
but anyone using this can get if from nbplkup.


682 root> diff -u /usr/lib/rhs/rhs-printfilters/master-filter filter
--- /usr/lib/rhs/rhs-printfilters/master-filter Tue Sep 14 17:40:26 1999
+++ filter      Mon Jan  5 22:35:15 1998
@@ -355,9 +355,10 @@
 #   any post-filter to run (like smbclient?)
 #
     if [ "$PRINTER_TYPE" = "SMB" ]; then
-       bestpath="$bestpath | ${FPIDIR}/smbprint ${SPOOLDIR}/acct"
-    elif [ "$PRINTER_TYPE" = "NCP" ]; then
-       bestpath="$bestpath | ${FPIDIR}/ncpprint ${SPOOLDIR}/acct"
+      bestpath="$bestpath | ${FPIDIR}/smbprint ${SPOOLDIR}/acct"
+    elif [ "$PRINTER_TYPE" = "ATALK" ]; then
+      PNAME="`cat ${SPOOLDIR}/.paprc`"
+      bestpath="$bestpath | /usr/bin/pap -p $PNAME"
     fi

     if [ "$DEBUG_FILTER" != "" ]; then
@@ -367,7 +368,7 @@
 #
 # run the command!
 #
-    eval $bestpath 2>/dev/null
+    eval $bestpath

 #
 #

Comment 1 Bernhard Rosenkraenzer 2000-06-23 11:47:19 UTC
Thanks, I've added something similar to the current CVS. Your patch in its
original form is broken because it breaks NCP printing.