Paul Cunningham wrote: > FYI .... > > Original subject: > Re: [printing-discuss] Re: Printing to Windows printers > > Norm Jacobs wrote: > >> The HP LaserJet 1000 consumes a ZjS data stream, which requires the >> foo2zjs driver. Unfortunately, we don't ship this driver on Solaris. I >> have a Minolta QMS Magicolor 2300DL which also needs this driver. I >> have made it work by downloading foo2zjs from >> http://foo2zjs.rkkda.com/foo2zjs.tar.gz, building, and installing it >> within foomatic-rip's search path. > > > > Attached is a pkgbuild spec file CCDfoo2zjs.spec (+ patch file) to build > foo2zjs on Solaris.
REMINDER though .... Norm Jacobs wrote: > The README for foo2zjs says that it's possible to use a portion > of it in a manner that might infringe on patents held by AT&T > and IBM. Because of this, It's not likely that Sun will be > shipping the foo2zjs driver any time soon. Paul > > It builds, packages and runs okay, on sparc, but I am unable to test the > package against a physical printer. Package installs into /opt/sfw + > /opt/sfw/cups. > > If you find anything wrong with it let me know (so I can fix it in my > copy). > > > > ------------------------------------------------------------------------ > > # > # Copyright 2006, all rights reserved > # > # License: Common Development and Distribution License (CDDL) > # > # Filename: CCDfoo2zjs.spec > # > # Description: Solaris "spec" file for the Solaris Companion CD (CCD) version > # of the printer driver for printers that use the "Zenographics > # ZjStream wire protocol" (ZjS). This spec creates a Solaris > # package that installs the foo2zjs filters > # > > %include SolarisCCD.inc > > Summary: foo2zjs - Zenographics ZjStream wire protocol printer driver > Name: SFWfoo2zjs > # package currently has no version id > Version: 0.0 > Release: 1 > License: GPL > Group: Applications/Publishing > Source: http://foo2zjs.rkkda.com/foo2zjs.tar.gz > Patch: foo2zjs.patch > Packager: anonymous > Vendor: http://foo2zjs.rkkda.com > > > # Use buildroot so as not to disturb the version already installed > SUNW_BaseDir: %{_basedir} > BuildRoot: %{_tmppath}/%{name}-build > %include default-depend.inc > BuildRequires: SUNWgccruntime > Requires: SUNWgccruntime > > %description > foo2zjs is an open source printer driver for printers that use the > Zenographics > ZjStream wire protocol for their print data. ZjStream printers are raster > printers which happen to use a very efficient wire protocol which was > developed > by Zenographics and licensed by most major printer manufacturers for at least > some of their product lines. ZjStream is just one of many wire protocols that > are in use today, such as Postscript, PCL, Epson, etc. > > %prep > %setup -q -n foo2zjs > %patch -p1 > > %build > > export CC="/usr/sfw/bin/gcc" > export MAKE="/usr/sfw/bin/gmake" > export > PATH="/opt/SUNWspro/bin:/opt/sfw/cups/bin:/opt/sfw/cups/sbin:/usr/sfw/bin:/usr/bin:/usr/openwin/bin:/usr/dt/bin:/opt/sfw/bin:/opt/SUNWspro/ParallelMake/bin:/bin:/usr/ucb:/usr/ccs/bin" > > export PREFIX="%{_ccdroot}" > ${MAKE} -e > > > %install > > export MAKE="/usr/sfw/bin/gmake" > export > PATH="/opt/SUNWspro/bin:/usr/sfw/bin:/usr/bin:/usr/openwin/bin:/usr/dt/bin:/opt/sfw/bin:/opt/SUNWspro/ParallelMake/bin:/bin:/usr/ucb:/usr/ccs/bin" > > rm -rf $RPM_BUILD_ROOT > > export PREFIX="$RPM_BUILD_ROOT%{_ccdroot}" > export FOODB=${PREFIX}/share/foomatic/db/source > ${MAKE} -e install > > > %clean > rm -rf $RPM_BUILD_ROOT > > %files > %defattr (-, root, bin) > %dir %attr (0755, root, sys) %{_ccdroot} > %dir %attr (0755, root, sys) %{_ccdroot}/share > %dir %attr (0755, root, bin) %{_cupsroot} > %{_ccdroot}/bin > %{_ccdroot}/share/* > %{_cupsroot}/* > > %changelog > * 30NOV2006 - Paul Cunningham (paulcun-AT-talk21-DOT-com) > - Initial spec for CCD > > > ------------------------------------------------------------------------ > > --- foo2zjs/Makefile.orig Fri Dec 1 09:40:48 2006 > +++ foo2zjs/Makefile Fri Dec 1 09:48:45 2006 > @@ -1,6 +1,6 @@ > UNAME := $(shell uname) > MACH := $(shell uname -m | sed 's/i.86/x86_32/') > -EUID := $(shell id -u) > +EUID := > > # No version number yet... > VERSION=0.0 > @@ -7,7 +7,6 @@ > > # Installation prefix... > PREFIX=/usr/local > -PREFIX=/usr > > # Pathnames for this package... > BIN=$(PREFIX)/bin > @@ -18,6 +17,7 @@ > SHARELAVA=$(PREFIX)/share/foo2lava > MANDIR=$(PREFIX)/share/man > DOCDIR=$(PREFIX)/share/doc/foo2zjs/ > +MODEL=$(PREFIX)/cups/share/cups/model > > # Pathnames for referenced packages... > FOODB=/usr/share/foomatic/db/source > @@ -40,7 +40,8 @@ > endif > > # Definition of modtime() > -MODTIME= date -d "1/1/1970 utc + `stat -t $$1 | cut -f14 -d' '` seconds" > "+%a %b %d %T %Y" > +#MODTIME= date -d "1/1/1970 utc + `stat -t $$1 | cut -f14 -d' '` seconds" > "+%a %b %d %T %Y" > +MODTIME= NOV2006 > ifeq ($(UNAME),FreeBSD) > MODTIME= stat -f "%Sm" -t "%a %b %d %T %Y" $$1 > endif > @@ -251,7 +252,7 @@ > # > # The usual build rules > # > -all: all-test $(PROGS) $(BINPROGS) $(SHELLS) getweb all-icc2ps man doc > +all: all-test $(PROGS) $(BINPROGS) $(SHELLS) getweb all-icc2ps man > > all-test: > # > @@ -337,7 +338,7 @@ > # Installation rules > # > install: all install-test install-prog install-icc2ps install-extra \ > - install-crd install-foo install-ppd install-man install-doc > + install-crd install-foo install-ppd install-man > # > # If you use CUPS, then restart the spooler: > # make cups > @@ -370,7 +371,13 @@ > # > # Install driver, wrapper, and development tools > # > - install -c $(PROGS) $(SHELLS) $(BIN)/ > + install -d $(BIN)/ > + for i in $(PROGS); do \ > + install -c $$i $(BIN)/; \ > + done > + for i in $(SHELLS); do \ > + install -c $$i $(BIN)/; \ > + done > if [ "$(BINPROGS)" != "" ]; then \ > install -c $(BINPROGS) /bin/; \ > fi > @@ -491,28 +498,17 @@ > fi; \ > done > > -MODEL=/usr/share/cups/model > -LOCALMODEL=/usr/local/share/cups/model > install-ppd: > # > # Install PPD files for CUPS > # > - if [ -d /usr/share/ppd/ ]; then \ > - find /usr/share/ppd/ -name '*foo2zjs*' | xargs rm -f; \ > - find /usr/share/ppd/ -name '*foo2hp*' | xargs rm -f; \ > - find /usr/share/ppd/ -name '*foo2xqx*' | xargs rm -f; \ > - find /usr/share/ppd/ -name '*foo2lava*' | xargs rm -f; \ > - fi > - if [ -d $(MODEL) ]; then \ > + install -d -m 755 $(MODEL) > + install -d -m 755 $(MODEL)/foo2zjs > + if [ -d $(MODEL)/foo2zjs ]; then \ > cd PPD; \ > for ppd in *.ppd; do \ > - gzip < $$ppd > $(MODEL)/$$ppd.gz; \ > + gzip < $$ppd > $(MODEL)/foo2zjs/$$ppd.gz; \ > done; \ > - elif [ -d $(LOCALMODEL) ]; then \ > - cd PPD; \ > - for ppd in *.ppd; do \ > - gzip < $$ppd > $(LOCALMODEL)/$$ppd.gz; \ > - done; \ > fi > > USBDIR=/etc/hotplug/usb > --- foo2zjs/foo2hp2600-wrapper.in.orig Fri Dec 1 11:08:48 2006 > +++ foo2zjs/foo2hp2600-wrapper.in Fri Dec 1 11:10:08 2006 > @@ -1,5 +1,7 @@ > -#!/bin/sh > +#!/bin/bash > > +export PATH=/opt/sfw/esp/bin:/usr/sfw/bin:/opt/sfw/bin:${PATH} > + > #* Copyright (C) 2005 Rick Richardson > #* > #* This program is free software; you can redistribute it and/or modify > --- foo2zjs/foo2lava-wrapper.in.orig Fri Dec 1 11:08:48 2006 > +++ foo2zjs/foo2lava-wrapper.in Fri Dec 1 11:10:38 2006 > @@ -1,6 +1,7 @@ > -#!/bin/sh > -PATH=$PATH:. > +#!/bin/bash > > +export PATH=/opt/sfw/esp/bin:/usr/sfw/bin:/opt/sfw/bin:${PATH}:. > + > #* Copyright (C) 2006 Rick Richardson > #* > #* This program is free software; you can redistribute it and/or modify > --- foo2zjs/foo2oak-wrapper.in.orig Fri Dec 1 11:08:48 2006 > +++ foo2zjs/foo2oak-wrapper.in Fri Dec 1 11:10:47 2006 > @@ -1,5 +1,7 @@ > -#!/bin/sh > +#!/bin/bash > > +export PATH=/opt/sfw/esp/bin:/usr/sfw/bin:/opt/sfw/bin:${PATH} > + > #* Copyright (C) 2003 Rick Richardson > #* > #* This program is free software; you can redistribute it and/or modify > --- foo2zjs/foo2xqx-wrapper.in.orig Fri Dec 1 11:08:48 2006 > +++ foo2zjs/foo2xqx-wrapper.in Fri Dec 1 11:11:09 2006 > @@ -1,6 +1,7 @@ > -#!/bin/sh > -PATH=$PATH:. > +#!/bin/bash > > +export PATH=/opt/sfw/esp/bin:/usr/sfw/bin:/opt/sfw/bin:${PATH}:. > + > #* Copyright (C) 2003 Rick Richardson > #* > #* This program is free software; you can redistribute it and/or modify > --- foo2zjs/foo2zjs-wrapper.in.orig Fri Dec 1 11:08:48 2006 > +++ foo2zjs/foo2zjs-wrapper.in Fri Dec 1 11:11:23 2006 > @@ -1,5 +1,7 @@ > -#!/bin/sh > +#!/bin/bash > > +export PATH=/opt/sfw/esp/bin:/usr/sfw/bin:/opt/sfw/bin:${PATH} > + > #* Copyright (C) 2003 Rick Richardson > #* > #* This program is free software; you can redistribute it and/or modify > > > ------------------------------------------------------------------------ > > _______________________________________________ > printing-discuss mailing list > printing-discuss at opensolaris.org
