Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Oct 1998 22:29:12 -0500 (CDT)
From:      Glenn Johnson <gljohns@bellsouth.net>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/8439: Patches to apsfilter port for uniprint driver
Message-ID:  <199810250329.WAA00759@gforce.johnson.home>

next in thread | raw e-mail | index | archive | help

>Number:         8439
>Category:       ports
>Synopsis:       Patches to apsfilter port for uniprint driver
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 24 20:40:00 PDT 1998
>Last-Modified:
>Originator:     Glenn Johnson<gljohns@bellsouth.net>
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	

>Description:

	The current installation of apsfilter allows a user to select
	"uniprint" as the print driver but does not set up the uniprint
	profile to use. These patches provide descriptions of the printers
	that use the uniprint driver and allow their setup at the installation
	of apsfilter.

>How-To-Repeat:

	

>Fix:
	
	Add the following patches to the patches directory of the apsfilter
	port and then install apsfilter.

patch-aa:

*** SETUP.orig	Sun Jul  5 16:05:22 1998
--- SETUP	Sat Oct 24 17:37:13 1998
***************
*** 537,543 ****
  		9)	PRINTER=t4693d4		;;
  		0)	PRINTER=t4693d8		;;
  		a)	PRINTER=tek4696		;;
! 		b)	PRINTER=uniprint	;;
  		c)	PRINTER=xes		;;
  		d)	PRINTER=pxlmono		;;
  		e)	PRINTER=pxlcolor	;;
--- 537,704 ----
  		9)	PRINTER=t4693d4		;;
  		0)	PRINTER=t4693d8		;;
  		a)	PRINTER=tek4696		;;
! 		b)	PRINTER=uniprint	
! clear
! cat << !EOM
! ------------------------------------------------------------------------------
! List of uniprint printer models
! ------------------------------------------------------------------------------
! 		(1) Canon BJC 610
! 		(2) HP Deskjet 550c, 300x300DpI, Gamma
! 		(3) NEC Prinwriter 2X
! 		(4) SUN rasterfile
! 		(5) Epson Stylus Color (I, II, IIs, PRO, 500, 600, 800)
! ------------------------------------------------------------------------------
! !EOM
!         echo "Please enter the uniprint printer model of your choice"
!         echo "or type <RETURN> to choose another category/driver:"
!         echo $n "Your choice ? $c"; read answer
!         case $answer in
! 		1) 
! clear
! cat << !EOM
! -----------------------------------------------------------------------------
! List of uniprint profiles for Canon BJC 610
! -----------------------------------------------------------------------------
! (a) bjc610a0  Canon BJC 610, 360x360DpI, plain paper high speed, color, rendered
! (b) bjc610a1  Canon BJC 610, 360x360DpI, plain paper, color, rendered
! (c) bjc610a2  Canon BJC 610, 360x360DpI, coated paper, color, rendered
! (d) bjc610a3  Canon BJC 610, 360x360DpI, transparency film, color, rendered
! (e) bjc610a4  Canon BJC 610, 360x360DpI, back print film, color, rendered
! (f) bjc610a5  Canon BJC 610, 360x360DpI, fabric sheet, color, rendered
! (g) bjc610a6  Canon BJC 610, 360x360DpI, glossy paper, color, rendered
! (h) bjc610a7  Canon BJC 610, 360x360DpI, high gloss film, color, rendered
! (i) bjc610a8  Canon BJC 610, 360x360DpI, high resolution paper, color, rendered
! (j) bjc610b1  Canon BJC 610, 720x720DpI, plain paper, color, rendered
! (k) bjc610b2  Canon BJC 610, 720x720DpI, coated paper, color, rendered
! (l) bjc610b3  Canon BJC 610, 720x720DpI, transparency film, color, rendered
! (m) bjc610b4  Canon BJC 610, 720x720DpI, back print film, color, rendered
! (n) bjc610b6  Canon BJC 610, 720x720DpI, glossy paper, color, rendered
! (o) bjc610b7  Canon BJC 610, 720x720DpI, high gloss paper, color, rendered
! (p) bjc610b8  Canon BJC 610, 720x720DpI, high resolution paper, color, rendered
! -----------------------------------------------------------------------------
! !EOM
!         echo "Please enter the uniprint profile of your choice"
!         echo "or type <RETURN> to choose another category/driver:"
!         echo $n "Your choice ? $c"; read answer
!         case $answer in
! 
! 		a)	UP_PROFILE=bjc610a0.upp	;;
! 		b)	UP_PROFILE=bjc610a1.upp	;;
! 		c)	UP_PROFILE=bjc610a2.upp	;;
! 		d)	UP_PROFILE=bjc610a3.upp	;;
! 		e)	UP_PROFILE=bjc610a4.upp	;;
! 		f)	UP_PROFILE=bjc610a5.upp	;;
! 		g)	UP_PROFILE=bjc610a6.upp	;;
! 		h)	UP_PROFILE=bjc610a7.upp	;;
! 		i)	UP_PROFILE=bjc610a8.upp	;;
! 		j)	UP_PROFILE=bjc610b1.upp	;;
! 		k)	UP_PROFILE=bjc610b2.upp	;;
! 		l)	UP_PROFILE=bjc610b3.upp	;;
! 		m)	UP_PROFILE=bjc610b4.upp	;;
! 		n)	UP_PROFILE=bjc610b6.upp	;;
! 		o)	UP_PROFILE=bjc610b7.upp	;;
! 		p)	UP_PROFILE=bjc610b8.upp	;;
! 		*)	UP_PROFILE=""		;;
! 	esac
! 	;;
! 		2)	UP_PROFILE=cdj550.upp	;;
! 		3)
! clear
! cat << !EOM
! -----------------------------------------------------------------------------
! List of NEC printers
! -----------------------------------------------------------------------------
! (1) necp2x    NEC Prinwriter 2X, 360x360DpI, Plain Paper
! (2) necp2x6   NEC Prinwriter 2X, 360x360DpI, Plain Paper
! -----------------------------------------------------------------------------
! !EOM
!         echo "Please enter the uniprint profile of your choice"
!         echo "or type <RETURN> to choose another category/driver:"
!         echo $n "Your choice ? $c"; read answer
!         case $answer in
! 		1) UP_PROFILE=necp2x.upp   ;;
! 		2) UP_PROFILE=necp2x6.upp  ;;
! 		*) UP_PROFILE=""	   ;;
! 	esac
! 	;;
! 		4)
! clear
! cat << !EOM
! -----------------------------------------------------------------------------
! List of SUN raster profiles
! -----------------------------------------------------------------------------
! (1) ras1      SUN rasterfile, 1 Bit, 2 Colors (Ghostscript-Rendering)
! (2) ras24     SUN rasterfile, 24 Bit, 7 Colors (RGB-Error-Diffusion)
! (3) ras3      SUN rasterfile, 3 Bit, 7 Colors (RGB-Ghostscript)
! (4) ras32     SUN rasterfile, 32 Bit, 6+1 Colors (CMYK-Error-Diffusion)
! (5) ras4      SUN rasterfile, 4 Bit, 6+1 Colors (CMYK-Ghostscript)
! (6) ras8m     SUN rasterfile, 8 Bit, 2 Colors (Error-Diffusion)
! -----------------------------------------------------------------------------
! !EOM
!         echo "Please enter the uniprint profile of your choice"
!         echo "or type <RETURN> to choose another category/driver:"
!         echo $n "Your choice ? $c"; read answer
!         case $answer in
! 		1)	UP_PROFILE=ras1.upp     ;;
!                 2)      UP_PROFILE=ras24.upp    ;;
!                 3)      UP_PROFILE=ras3.upp     ;;
!                 4)      UP_PROFILE=ras32.upp    ;;
!                 5)      UP_PROFILE=ras4.upp     ;;
!                 6)      UP_PROFILE=ras8m.upp    ;;
! 		*)	UP_PROFILE=""		;;
! 	esac
! 	;;
! 		5)
! clear
! cat << !EOM 
! -----------------------------------------------------------------------------
! List of Epson printers
! -----------------------------------------------------------------------------
! (a) stc       Epson Stylus Color I (and PRO Series), 360x360DpI, Plain Paper
! (b) stc1520h  Epson Stylus Color 1520, 1440x720DpI, Inkjet Paper
! (c) stc2      Epson Stylus Color II / IIs, 360x360DpI, Plain Paper
! (d) stc2_h    Epson Stylus Color II, 720x720DpI, Special Paper
! (e) stc2s_h   Epson Stylus Color IIs, 720x720DpI, Special Paper
! (f) stc500p   Epson Stylus Color 500, 360x360DpI, not Weaved, Plain Paper
! (g) stc500ph  Epson Stylus Color 500, 720x720DpI, not Weaved, Plain Paper
! (h) stc600ih  Epson Stylus Color 600, 1440x720DpI, Inkjet Paper
! (i) stc600p   Epson Stylus Color 600, 720x720DpI, Plain Paper
! (j) stc600pl  Epson Stylus Color 600, 360x360DpI, Plain Paper
! (k) stc800ih  Epson Stylus Color 800, 1440x720DpI, Inkjet Paper
! (l) stc800p   Epson Stylus Color 800, 720x720DpI, Plain Paper
! (m) stc800pl  Epson Stylus Color 800, 360x360DpI, Plain Paper
! (n) stc_h     Epson Stylus Color I (and PRO Series), 720x720DpI, Special Paper
! (o) stc_l     Epson Stylus Color I (and PRO Series), 360x360DpI, noWeave
! (p) stcany    Any Epson Stylus Color, 360x360DpI
! ------------------------------------------------------------------------------
! !EOM
!         echo "Please enter the uniprinter driver profile of your choice"
!         echo "or type <RETURN> to choose another category/driver:"
!         echo $n "Your choice ? $c"; read answer
!         case $answer in
! 		a)	UP_PROFILE=stc.upp	;;
! 		b)	UP_PROFILE=stc1520h.upp	;;
! 		c)	UP_PROFILE=stc2.upp	;;
! 		d)	UP_PROFILE=stc2_h.upp	;;
! 		e)	UP_PROFILE=stc2s_h.upp	;;
! 		f)	UP_PROFILE=stc500p.upp	;;
! 		g)	UP_PROFILE=stc500ph.upp	;;
! 		h)	UP_PROFILE=stc600ih.upp	;;
! 		i)	UP_PROFILE=stc600p.upp	;;
! 		j)	UP_PROFILE=stc600pl.upp	;;
! 		k)	UP_PROFILE=stc800ih.upp	;;
! 		l)	UP_PROFILE=stc800p.upp	;;
! 		m)	UP_PROFILE=stc800pl.upp	;;
! 		n)	UP_PROFILE=stc_h.upp	;;
! 		o)	UP_PROFILE=stc_l.upp	;;
! 		p)	UP_PROFILE=stcany.upp	;;
! 		*)	UP_PROFILE=""		;;
! 	esac
! 	;;
! 		*)	UP_PROFILE=""		;;
! esac
! ;;
  		c)	PRINTER=xes		;;
  		d)	PRINTER=pxlmono		;;
  		e)	PRINTER=pxlcolor	;;
***************
*** 1163,1168 ****
--- 1324,1339 ----
  			else
  				BITSPERPIXEL=""
  			fi
+ 			if [ $PRINTER = "uniprint" ]
+ 			then
+ 			CREATE_TESTPAGE_COMMAND="		\
+ 				cat $APS_BASEDIR/setup/tiger.ps \
+ 				| gs				\
+ 				-q				\
+ 				@${UP_PROFILE}			\
+ 				-sOutputFile=/tmp/tiger.out	\
+ 				-"
+ 			else
  
  			CREATE_TESTPAGE_COMMAND="		\
  				cat $APS_BASEDIR/setup/tiger.ps	\
***************
*** 1177,1182 ****
--- 1348,1354 ----
  				-sOutputFile=/tmp/tiger.out	\
  				$PS_INIT			\
  				-"
+ 			fi
  
  			# Tell the magic command ...
  			echo $n "Printing Test page using: $c"
***************
*** 1788,1793 ****
--- 1960,1970 ----
  if [ ! -z $PS_INIT ]; then
  	echo "Saving additional gs init file in /etc/apsfilterrc !"
  	echo "PS_INIT=${PS_INIT}" >> /etc/apsfilterrc
+ fi
+ 
+ if [ ! -z $UP_PROFILE ]; then
+ 	echo "Saving uniprint profile in /etc/apsfilterrc !"
+ 	echo "UP_PROFILE=${UP_PROFILE}" >> /etc/apsfilterrc
  fi
  
  #

patch-ab:

*** bin/apsfilter.orig	Mon Jul  6 21:34:29 1998
--- bin/apsfilter	Mon Jul  6 21:34:38 1998
***************
*** 330,335 ****
--- 330,343 ----
  		# our printer is a PS printer...	
  		PRINT_PS="cat -" ;;
  
+ 	uniprint)
+ 			PRINT_PS="	gs				\
+ 					-q				\
+ 					@${UP_PROFILE}			\
+ 					-sOutputFile=-			\
+ 					-				"
+ 	;;
+ 
  	*)	# we have a nice non ps printer
  		if [ -z "$GS_RESOL" ]
  		then
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810250329.WAA00759>