diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2004-11-20 18:28:15 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2004-11-20 18:28:15 +0000 |
commit | 26bf317c7f0e0494a51e3ae3c0d6dcf90252f767 (patch) | |
tree | b66a4f6a21cde5cc84d387dae4b51fed593d8c08 | |
parent | Version bump, closes bug #71663. (diff) | |
download | historical-26bf317c7f0e0494a51e3ae3c0d6dcf90252f767.tar.gz historical-26bf317c7f0e0494a51e3ae3c0d6dcf90252f767.tar.bz2 historical-26bf317c7f0e0494a51e3ae3c0d6dcf90252f767.zip |
Adding foo2zjs, thanks to Robert Führicht <the_master_of_disaster@gmx.at> in bug 65156
-rw-r--r-- | net-print/foo2zjs/ChangeLog | 12 | ||||
-rw-r--r-- | net-print/foo2zjs/Manifest | 6 | ||||
-rw-r--r-- | net-print/foo2zjs/files/digest-foo2zjs-20041030 | 6 | ||||
-rw-r--r-- | net-print/foo2zjs/files/foo2zjs-Makefile.patch | 116 | ||||
-rw-r--r-- | net-print/foo2zjs/files/hp-printer-udev.patch | 27 | ||||
-rw-r--r-- | net-print/foo2zjs/foo2zjs-20041030.ebuild | 61 | ||||
-rw-r--r-- | net-print/foo2zjs/metadata.xml | 9 |
7 files changed, 237 insertions, 0 deletions
diff --git a/net-print/foo2zjs/ChangeLog b/net-print/foo2zjs/ChangeLog new file mode 100644 index 000000000000..d31c768fc736 --- /dev/null +++ b/net-print/foo2zjs/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for net-print/foo2zjs +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/foo2zjs/ChangeLog,v 1.1 2004/11/20 18:28:15 genstef Exp $ + +*foo2zjs-20041030 (20 Nov 2004) + + 20 Nov 2004; Stefan Schweizer <genstef@gentoo.org> + +files/foo2zjs-Makefile.patch, +files/hp-printer-udev.patch, + +foo2zjs-20041030.ebuild: + Adding foo2zjs, thanks to Robert Führicht <the_master_of_disaster@gmx.at> in + bug 65156 + diff --git a/net-print/foo2zjs/Manifest b/net-print/foo2zjs/Manifest new file mode 100644 index 000000000000..07918f333cf7 --- /dev/null +++ b/net-print/foo2zjs/Manifest @@ -0,0 +1,6 @@ +MD5 a51a8fe691ff2e54645b9e99fe606d6c foo2zjs-20041030.ebuild 1666 +MD5 ba7297cf933b52a72b77fdce1fe0631d ChangeLog 477 +MD5 6062bcaf60fde68c2418376f4cd91f3e metadata.xml 266 +MD5 1992ccc4c1cd2c3886e8f2eab0984ad9 files/digest-foo2zjs-20041030 365 +MD5 e5f349ce9616aa37a291ae69beefc357 files/foo2zjs-Makefile.patch 3324 +MD5 379e40f8651bfdf8764f4afbc9594b41 files/hp-printer-udev.patch 767 diff --git a/net-print/foo2zjs/files/digest-foo2zjs-20041030 b/net-print/foo2zjs/files/digest-foo2zjs-20041030 new file mode 100644 index 000000000000..df7ef7211768 --- /dev/null +++ b/net-print/foo2zjs/files/digest-foo2zjs-20041030 @@ -0,0 +1,6 @@ +MD5 31fe018b4c5e258aff60cbd320a42f02 foo2zjs-20041030.tar.gz 867707 +MD5 d680f447a416c5f9041f27c0a1df57a0 m23dlicc.exe 170496 +MD5 3b78a08aa968b4c1ed591947721d3e47 m22dlicc.exe 634368 +MD5 cae0d20d3c1d57cd3953d9b335014294 cpplxp.exe 4799488 +MD5 428274e8060e830aeaf1acf06f10a398 lj1005hostbased-en.exe 3014659 +MD5 70bc3dce0cfca0e85d2bb618c9075103 lj1488en.exe 12447260 diff --git a/net-print/foo2zjs/files/foo2zjs-Makefile.patch b/net-print/foo2zjs/files/foo2zjs-Makefile.patch new file mode 100644 index 000000000000..4575b2d50db7 --- /dev/null +++ b/net-print/foo2zjs/files/foo2zjs-Makefile.patch @@ -0,0 +1,116 @@ +diff -Naur foo2zjs.orig/hplj.usermap foo2zjs/hplj.usermap +--- foo2zjs.orig/hplj.usermap 1970-01-01 01:00:00.000000000 +0100 ++++ foo2zjs/hplj.usermap 2004-11-17 13:17:17.897613136 +0100 +@@ -0,0 +1,2 @@ ++hplj1000 0x0003 0x03f0 0x0517 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 ++hplj1005 0x0003 0x03f0 0x1317 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 +diff -Naur foo2zjs.orig/Makefile foo2zjs/Makefile +--- foo2zjs.orig/Makefile 2004-09-24 18:41:29.000664696 +0200 ++++ foo2zjs/Makefile 2004-09-24 18:43:35.552425904 +0200 +@@ -6,8 +6,8 @@ + VERSION=0.0 + + # Installation prefix... +-PREFIX=/usr/local +-PREFIX=/usr ++PREFIX=$(DESTDIR)/usr/local ++PREFIX=$(DESTDIR)/usr + + # Pathnames for this package... + BIN=$(PREFIX)/bin +@@ -17,7 +17,7 @@ + DOCDIR=$(PREFIX)/share/doc/foo2zjs/ + + # Pathnames for referenced packages... +-FOODB=/usr/share/foomatic/db/source ++FOODB=$(PREFIX)/share/foomatic/db/source + + # User ID's + LPuid=-olp +@@ -113,9 +113,6 @@ + endif + endif + +-# Compiler flags +-CFLAGS += -O2 -Wall +- + # + # Rules to create test documents + # +@@ -210,6 +207,7 @@ + # On Suse 9.0, run "yast" + + install-prog: ++ [ -d $(BIN) ] || install -d -m 755 $(BIN)/ + # + # Install driver, wrapper, and development tools + # +@@ -237,6 +235,7 @@ + # + @if [ -d $(FOODB) ]; then \ + for dir in driver printer opt; do \ ++ [ -d $(FOODB)/$$dir/ ] || install -d -m 755 $(FOODB)/$$dir/; \ + echo install -m 644 foomatic-db/$$dir/*.xml $(FOODB)/$$dir/; \ + install -c -m 644 foomatic-db/$$dir/*.xml $(FOODB)/$$dir/; \ + done \ +@@ -254,9 +253,9 @@ + # + # Clear foomatic cache and rebuild database if needed + # +- rm -rf /var/cache/foomatic/*/* +- if [ -d /var/cache/foomatic/compiled ]; then \ +- cd /var/cache/foomatic/compiled; \ ++ rm -rf $(DESTDIR)/var/cache/foomatic/*/* ++ if [ -d $(DESTDIR)/var/cache/foomatic/compiled ]; then \ ++ cd $(DESTDIR)/var/cache/foomatic/compiled; \ + foomatic-combo-xml -O >overview.xml; \ + fi + +@@ -303,13 +302,12 @@ + # foo2oak ICM files (if any) + install $(LPuid) $(LPgid) -m 775 -d $(SHAREOAK)/icm/ + +-USBDIR=/etc/hotplug/usb ++USBDIR=$(DESTDIR)/etc/hotplug/usb + install-hotplug: + [ -d $(USBDIR) ] || install -d -m 755 $(USBDIR)/ + install -c -m 755 hplj1000 $(USBDIR)/ + ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hplj1005 +- $(USBDIR)/hplj1000 install-usermap +- $(USBDIR)/hplj1005 install-usermap ++ install -c -m 755 hplj.usermap $(USBDIR)/ + + clean: + -rm -f foo2zjs zjsdecode +@@ -461,7 +459,7 @@ + ppd: + ./getweb ppd + +-MODEL=/usr/share/cups/model ++MODEL=$(PREFIX)/share/cups/model + install-ppd: + # + # Install PPD files for CUPS +@@ -518,7 +516,6 @@ + install -c -m 644 README $(DOCDIR) + install -c -m 644 ChangeLog $(DOCDIR) + +-GROFF=/usr/local/test/bin/groff + GROFF=groff + manual.pdf: $(MANPAGES) + -$(GROFF) -t -man $(MANPAGES) | ps2pdf - $@ +diff -Naur foo2zjs.org/icc2ps/Makefile foo2zjs/icc2ps/Makefile +--- foo2zjs.org/icc2ps/Makefile 2004-09-23 23:24:36.592184368 +0200 ++++ foo2zjs/icc2ps/Makefile 2004-09-23 22:54:18.264612176 +0200 +@@ -1,10 +1,9 @@ +-PREFIX= /usr ++PREFIX= $(DESTDIR)/usr + BIN= $(PREFIX)/bin + SRC= icc2ps.c xgetopt.c + LIB= cmscam97.c cmscnvrt.c cmserr.c cmsgamma.c cmsgmt.c cmsintrp.c cmsio1.c \ + cmslut.c cmsmatsh.c cmsmtrx.c cmsnamed.c cmspack.c cmspcs.c cmsps2.c \ + cmssamp.c cmswtpnt.c cmsxform.c +-CFLAGS= -O3 + + all: foo2zjs-icc2ps + diff --git a/net-print/foo2zjs/files/hp-printer-udev.patch b/net-print/foo2zjs/files/hp-printer-udev.patch new file mode 100644 index 000000000000..3387620bbf85 --- /dev/null +++ b/net-print/foo2zjs/files/hp-printer-udev.patch @@ -0,0 +1,27 @@ +--- foo2zjs/hplj1000.org 2004-04-11 02:35:04.000000000 +0200 ++++ foo2zjs/hplj1000 2004-09-28 14:18:46.511318136 +0200 +@@ -133,6 +133,24 @@ + # + # Sniff around for printers that need a firmware download + # ++ if [ -e /dev/.udev ]; then ++ log "Udev detected, waiting for udev to create device nodes" ++ ++ HPDEV="/dev/usb/lp0" ++ COUNT=0 ++ while [ ! -c ${HPDEV} -a ${COUNT} -lt 20 ]; ++ do ++ sleep 1 ++ COUNT=`expr ${COUNT} + 1` ++ done ++ ++ if [ ! -c ${HPDEV} ]; ++ then ++ log "Udev failed to initialise device ${HPDEV}" ++ else ++ log "Udev created ${HPDEV} node after ${COUNT} seconds" ++ fi ++ fi + usblps=`find /dev/usb -name lp*`" "`find /dev -name usblp*` + for dev in $usblps; do + status=`$USBID $dev 2>/dev/null | grep "hp LaserJet $MODEL"` diff --git a/net-print/foo2zjs/foo2zjs-20041030.ebuild b/net-print/foo2zjs/foo2zjs-20041030.ebuild new file mode 100644 index 000000000000..be42929a09c6 --- /dev/null +++ b/net-print/foo2zjs/foo2zjs-20041030.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/foo2zjs/foo2zjs-20041030.ebuild,v 1.1 2004/11/20 18:28:15 genstef Exp $ + +inherit eutils flag-o-matic + +DESCRIPTION="Support for printing to ZjStream-based printers" +HOMEPAGE="http://foo2zjs.rkkda.com/" +SRC_URI="mirror://gentoo/${P}.tar.gz + ftp://ftp.minolta-qms.com/pub/crc/out_going/win/m23dlicc.exe + ftp://ftp.minolta-qms.com/pub/crc/out_going/win2000/m22dlicc.exe + ftp://ftp.minolta-qms.com/pub/crc/out_going/windows/cpplxp.exe + ftp://192.151.53.86/pub/softlib/software2/COL2222/lj-10067-2/lj1005hostbased-en.exe + ftp://ftp.hp.com/pub/softlib/software1/lj1488/lj-1145-2/lj1488en.exe" +RESTRICT="nomirror" +LICENSE="GPL-2" +SLOT="0" +IUSE="cups foomaticdb usb" +DEPEND="cups? ( net-print/cups ) + foomaticdb? ( net-print/foomatic ) + usb? ( sys-apps/hotplug )" +KEYWORDS="~x86 ~amd64" +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${P}.tar.gz + + epatch ${FILESDIR}/${PN}-Makefile.patch + epatch ${FILESDIR}/hp-printer-udev.patch + + # link getweb files in ${S} to get unpacked + for i in ${A} + do + ln -s ${DISTDIR}/${i} ${S} + done + + cd ${S} +} + +src_compile() { + emake getweb || die "Failed building getweb script" + + # remove wget as we got the firmware with portage + sed -si "s/.*wget.*//" getweb + # unpack files + ./getweb all + + emake || die "emake failed" +} + +src_install() { + use foomaticdb && dodir /usr/share/foomatic/db/source + + use cups && dodir /usr/share/cups/model + + make DESTDIR=${D} install \ + || die "make install failed" + + use usb && make DESTDIR=${D} install-hotplug \ + || die "make install-hotplug failed" +} diff --git a/net-print/foo2zjs/metadata.xml b/net-print/foo2zjs/metadata.xml new file mode 100644 index 000000000000..349b49ba2a90 --- /dev/null +++ b/net-print/foo2zjs/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>printing</herd> + <maintainer> + <email>genstef@gentoo.org</email> + <name>Stefan Schweizer</name> + </maintainer> +</pkgmetadata> |