Date: Sun, 8 Jul 2001 01:26:54 -0400 From: James Halstead <James_Bond_79@yahoo.com> To: Wayne M Barnes <stabilizer@klentaq.com>, freebsd-stable@freebsd.org Cc: kozak@etaq.com, Jason W Barnes <jbarnes@klentaq.com> Subject: Re: .jpg printing Message-ID: <01070801265400.92848@halstead007> In-Reply-To: <20010707195913.A99773@klentaq.com> References: <20010707195913.A99773@klentaq.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Use cups (ports/print/cups) it has "drivers" that will allow printing to hp
printers.
Attached is a patch that will update the port to version 1.1.8, apply using:
cd /usr/ports/print && patch < /path/to/cups.patch
James
On Saturday 07 July 2001 20:59, Wayne M Barnes wrote:
> Dear Folks,
>
> I'd like to be able to print a .jpg picture to my HP color
> printer. I don't mind calling most any program you
> can recommend to do this.
>
> Ideally, I would even like to hit the "print" button on Netscape,
> and get the printer to print.
>
> As an added complication, this printer is attached to a Window98
> system.
>
> I do have samba set up to print a plain ascii file, such
> as your answer to this email, but ... how to print a file.jpg,
> in color? [ The printer is an HP1175 ]
>
> I could pass the file to the printer with no filter or anything,
> so I don't suppose I have to ask for the samba business.
[-- Attachment #2 --]
diff -ru cups.orig/Makefile cups/Makefile
--- cups.orig/Makefile Sun Feb 25 23:48:34 2001
+++ cups/Makefile Wed Jul 4 12:15:01 2001
@@ -6,18 +6,17 @@
#
PORTNAME= cups
-PORTVERSION= ${VERSION}.${REVISION}
+PORTVERSION= ${VERSION}
CATEGORIES= print
MASTER_SITES= ftp://ftp.easysw.com/pub/cups/${VERSION}/ \
ftp://ftp2.easysw.com/pub/cups/${VERSION}/ \
ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${VERSION}/ \
ftp://ftp.mpg.goe.ni.schule.de/pub/internet/printing/cups/${VERSION}/
-DISTNAME= ${PORTNAME}-${VERSION}-${REVISION}-source
+DISTNAME= ${PORTNAME}-${VERSION}-source
MAINTAINER= greid@ukug.uk.freebsd.org
-VERSION= 1.1.6
-REVISION= 2
+VERSION= 1.1.8
USE_BZIP2= yes
INSTALLS_SHLIB= yes
@@ -25,6 +24,7 @@
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSION}
GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --localstatedir=/var
MAN1= backend.1 cancel.1 filter.1 lp.1 lpoptions.1 lpq.1 \
lpr.1 lprm.1 lpstat.1
diff -ru cups.orig/distinfo cups/distinfo
--- cups.orig/distinfo Sun Feb 25 23:48:35 2001
+++ cups/distinfo Wed Jul 4 12:15:01 2001
@@ -1 +1 @@
-MD5 (cups-1.1.6-2-source.tar.bz2) = 1cef7a1bc8b4995842d01516f4193dde
+MD5 (cups-1.1.8-source.tar.bz2) = cf25b260672671183f18f26b8f8d71f1
diff -ru cups.orig/files/patch-ab cups/files/patch-ab
--- cups.orig/files/patch-ab Sat Jan 6 19:52:07 2001
+++ cups/files/patch-ab Wed Jul 4 12:15:01 2001
@@ -1,9 +1,9 @@
---- man/Makefile.orig Fri Jan 5 15:56:34 2001
-+++ man/Makefile Fri Jan 5 15:59:31 2001
+--- man/Makefile.orig Sat Jun 16 18:06:56 2001
++++ man/Makefile Sat Jun 16 18:07:37 2001
@@ -82,21 +82,21 @@
- $(LN) accept.8 $(MANDIR)/man8/reject.8
- $(RM) $(MANDIR)/man8/disable.8
- $(LN) enable.8 $(MANDIR)/man8/disable.8
+ $(LN) accept.$(MAN8EXT) $(AMANDIR)/man$(MAN8EXT)/reject.$(MAN8EXT)
+ $(RM) $(AMANDIR)/man$(MAN8EXT)/disable.$(MAN8EXT)
+ $(LN) enable.$(MAN8EXT) $(AMANDIR)/man$(MAN8EXT)/disable.$(MAN8EXT)
- -$(MKDIR) $(MANDIR)/cat1
- -$(CHMOD) ugo+rx $(MANDIR)/cat1
- $(INSTALL_MAN) $(CAT1) $(MANDIR)/cat1
@@ -12,13 +12,13 @@
- -$(MKDIR) $(MANDIR)/cat5
- -$(CHMOD) ugo+rx $(MANDIR)/cat5
- $(INSTALL_MAN) $(CAT5) $(MANDIR)/cat5
-- -$(MKDIR) $(MANDIR)/cat8
-- -$(CHMOD) ugo+rx $(MANDIR)/cat8
-- $(INSTALL_MAN) $(CAT8) $(MANDIR)/cat8
-- $(RM) $(MANDIR)/cat8/reject.$(CAT1EXT)
-- $(LN) accept.$(CAT1EXT) $(MANDIR)/cat8/reject.$(CAT1EXT)
-- $(RM) $(MANDIR)/cat8/disable.$(CAT1EXT)
-- $(LN) enable.$(CAT1EXT) $(MANDIR)/cat8/disable.$(CAT1EXT)
+- -$(MKDIR) $(AMANDIR)/cat$(MAN8EXT)
+- -$(CHMOD) ugo+rx $(AMANDIR)/cat$(MAN8EXT)
+- $(INSTALL_MAN) $(CAT8) $(AMANDIR)/cat$(MAN8EXT)
+- $(RM) $(AMANDIR)/cat$(MAN8EXT)/reject.$(CAT8EXT)
+- $(LN) accept.$(CAT1EXT) $(AMANDIR)/cat$(MAN8EXT)/reject.$(CAT8EXT)
+- $(RM) $(AMANDIR)/cat$(MAN8EXT)/disable.$(CAT8EXT)
+- $(LN) enable.$(CAT1EXT) $(AMANDIR)/cat$(MAN8EXT)/disable.$(CAT8EXT)
+# -$(MKDIR) $(MANDIR)/cat1
+# -$(CHMOD) ugo+rx $(MANDIR)/cat1
+# $(INSTALL_MAN) $(CAT1) $(MANDIR)/cat1
@@ -27,13 +27,13 @@
+# -$(MKDIR) $(MANDIR)/cat5
+# -$(CHMOD) ugo+rx $(MANDIR)/cat5
+# $(INSTALL_MAN) $(CAT5) $(MANDIR)/cat5
-+# -$(MKDIR) $(MANDIR)/cat8
-+# -$(CHMOD) ugo+rx $(MANDIR)/cat8
-+# $(INSTALL_MAN) $(CAT8) $(MANDIR)/cat8
-+# $(RM) $(MANDIR)/cat8/reject.$(CAT1EXT)
-+# $(LN) accept.$(CAT1EXT) $(MANDIR)/cat8/reject.$(CAT1EXT)
-+# $(RM) $(MANDIR)/cat8/disable.$(CAT1EXT)
-+# $(LN) enable.$(CAT1EXT) $(MANDIR)/cat8/disable.$(CAT1EXT)
-
-
++# -$(MKDIR) $(AMANDIR)/cat$(MAN8EXT)
++# -$(CHMOD) ugo+rx $(AMANDIR)/cat$(MAN8EXT)
++# $(INSTALL_MAN) $(CAT8) $(AMANDIR)/cat$(MAN8EXT)
++# $(RM) $(AMANDIR)/cat$(MAN8EXT)/reject.$(CAT8EXT)
++# $(LN) accept.$(CAT1EXT) $(AMANDIR)/cat$(MAN8EXT)/reject.$(CAT8EXT)
++# $(RM) $(AMANDIR)/cat$(MAN8EXT)/disable.$(CAT8EXT)
++# $(LN) enable.$(CAT1EXT) $(AMANDIR)/cat$(MAN8EXT)/disable.$(CAT8EXT)
+
+
#
diff -ru cups.orig/files/patch-ac cups/files/patch-ac
--- cups.orig/files/patch-ac Sat Jan 6 19:52:07 2001
+++ cups/files/patch-ac Wed Jul 4 12:15:01 2001
@@ -1,10 +1,10 @@
---- data/Makefile.orig Fri Jan 5 17:03:23 2001
-+++ data/Makefile Fri Jan 5 17:03:53 2001
+--- data/Makefile.orig Sat Jun 16 18:08:11 2001
++++ data/Makefile Sat Jun 16 18:08:23 2001
@@ -91,15 +91,6 @@
-$(MKDIR) $(DATADIR)/data
$(CHMOD) ugo+rx $(DATADIR)/data
$(INSTALL_DATA) $(DATAFILES) $(DATADIR)/data
-- -if test "$(PAMDIR)" != ""; then \
+- -if test x$(PAMDIR) != x; then \
- $(MKDIR) $(PAMDIR); \
- $(CHMOD) ugo+rx $(PAMDIR); \
- if test -f /lib/security/pam_unix.so; then \
@@ -13,6 +13,6 @@
- $(INSTALL_DATA) cups.pam $(PAMDIR)/cups; \
- fi \
- fi
-
-
+
+
#
diff -ru cups.orig/pkg-message cups/pkg-message
--- cups.orig/pkg-message Fri Jan 26 06:54:21 2001
+++ cups/pkg-message Wed Jul 4 12:15:01 2001
@@ -4,3 +4,13 @@
Please read the documentation in %%PREFIX%%/share/doc/cups/ for information
on how to set up your printer to use CUPS. Basic template configuration files
have been installed in %%PREFIX%%/etc/cups/
+
+If you want to use cups as your default printing system, then make sure to
+edit the PATH variable of your users to have %%PREFIX%%/bin come _before_
+/usr/bin. This will override the default bsd lpr programs. Alternatively,
+you can remove the bsd lpr programs and man pages, then set "NO_LPR=true"
+in /etc/make.conf to prevent them from getting re-installed.
+
+You can execute the following two commands to remove the bsd printing system:
+rm /usr/bin/lp* /usr/sbin/lpc /usr/sbin/lpd /usr/share/man/cat*/lp*
+rm /usr/share/man/man1/lp.* /usr/share/man/man1/lp[a-s,u-z]*
diff -ru cups.orig/pkg-plist cups/pkg-plist
--- cups.orig/pkg-plist Wed Jan 10 12:07:59 2001
+++ cups/pkg-plist Wed Jul 4 12:15:01 2001
@@ -132,6 +132,7 @@
share/cups/fonts/ZapfChancery-MediumItalic
share/cups/fonts/ZapfDingbats
share/cups/model/deskjet.ppd
+share/cups/model/deskjet2.ppd
share/cups/model/epson24.ppd
share/cups/model/epson9.ppd
share/cups/model/laserjet.ppd
@@ -319,9 +320,6 @@
@dirrm share/locale/fr
@dirrm share/locale/it
@dirrm share/locale
-@dirrm var/log/cups
-@dirrm var/log
-@dirrm var/spool/cups/tmp
-@dirrm var/spool/cups
-@dirrm var/spool
-@dirrm var
+@unexec rmdir /var/spool/cups/tmp || true
+@unexec rmdir /var/spool/cups || true
+@unexec rmdir /var/log/cups || true
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01070801265400.92848>
