diff options
author | 2013-09-03 16:28:21 +0200 | |
---|---|---|
committer | 2013-09-03 16:28:21 +0200 | |
commit | 95523bf3db3a5bdc50187fbb8cd497ea770e3a71 (patch) | |
tree | 499d9b197c8c154a5fde75abac9d869648fc31dc /net-print | |
parent | bedup-0.9.0_p20130806 - new snapshot (diff) | |
download | eroen-95523bf3db3a5bdc50187fbb8cd497ea770e3a71.tar.gz eroen-95523bf3db3a5bdc50187fbb8cd497ea770e3a71.tar.bz2 eroen-95523bf3db3a5bdc50187fbb8cd497ea770e3a71.zip |
foo2zjs from gentoo
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/foo2zjs/Manifest | 27 | ||||
-rw-r--r-- | net-print/foo2zjs/files/foo2zjs-udev.patch | 12 | ||||
-rw-r--r-- | net-print/foo2zjs/files/foo2zjs-usbbackend.patch | 12 | ||||
-rw-r--r-- | net-print/foo2zjs/foo2zjs-99999999.ebuild | 72 | ||||
-rw-r--r-- | net-print/foo2zjs/metadata.xml | 5 |
5 files changed, 128 insertions, 0 deletions
diff --git a/net-print/foo2zjs/Manifest b/net-print/foo2zjs/Manifest new file mode 100644 index 0000000..af7254e --- /dev/null +++ b/net-print/foo2zjs/Manifest @@ -0,0 +1,27 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX foo2zjs-udev.patch 379 SHA256 8961b787e37daaec84d90a9e65a20782177f4483b80669f86e427de967035dfb SHA512 91810416934e0d92ca7717262bfed26fbf275b6193bc236566f2b7b6f34a1a38ab98f0b1a3e074b16f8e3822d67e3d4bf8b8e4562f3e6155090ae1dc82abb8f9 WHIRLPOOL 821d64bbe78ca0de790db03066e84fccf4a659d68e439a984d9446276b56d28802054b23d9132b5cb9d289809af88814a1fcedf50a52a9e4d906f7abb08ee6e9 +AUX foo2zjs-usbbackend.patch 479 SHA256 8cea95f51d82d7dde5883081b37014565a749074ef87c61ed8a446b916ca1297 SHA512 a37b3bc193a619992a2a0c24f947d96185919cab6f2cb61c0dcc76d942274ea2eb7c325bc960e05cf9ee8969ef17361ab45053a6932d601fe0f68ee19808395c WHIRLPOOL b7413e63bca2041bc233d202563f3a152c6be37a078a0444f4eb23a1c9e57a8db70da153171121a91c9f769c30570863418934a8aab2a26f04945cf1bcddec4e +EBUILD foo2zjs-99999999.ebuild 1571 SHA256 08905c3988412a212ff48b5a9d476c2be3e5446c5c391b8cabb88cf7fe0531b1 SHA512 1e95cb1c2fc17aaa6690138452cd26fab7938609c376e6dac8309f7352fb8f970cb4fdef8bae3b6613e2663b8e42a8816ac82c7ce40965e478a3d3c8eda11a2e WHIRLPOOL 6e556f244cdfe8b34b5c8b821ff47b2867ed3e3548e8cb08e8a901e5b926a95d7a7ed812c46d41d69e2e687a94f40d14221c685cb7da348c61a1c7057d609f4f +MISC ChangeLog 10913 SHA256 d8c2d2e74ad0d05b0c6f64adafb1afdb8d125c438ac3db434cfce985cf254676 SHA512 d48784da3ae8d88f9d70dc3100e241b55bd32794a5427236123cb117dd7628e82dc39aa2f649507dd883b2851f90555dc4402875d67b20d0cc3565cfcd4ffedb WHIRLPOOL 66c2f0de932326adbe9e9508999c48b69d18dc7390fd6991d087d55a268b64df5fdb1deb5d222147a8684ed335dd3dadb31a2079d2555b456bcc8c92590f56dc +MISC metadata.xml 163 SHA256 594509291d2b412ff651880da503140d0e9a954ecf778878edabb1875682b6b8 SHA512 f030437b07f068562e24595f95b79790c2cedb00630e1364c21591bc4334acdec79d8d00ce3e8208ef60bea8685454bb8994c6c3d9f7f6c1687d2c20fbefd437 WHIRLPOOL 4c265ff911c6d2361c5d5303c3322bcabd8c87fa4f39ad36db069bfe176c34a11ecef1c01c6a3907daf724c7c79796bcb831fed06f4ee0feae145fb716e130e3 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQJ8BAEBCABmBQJRT1k/XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwNzlCRDk4QzA4RENBRkYzQUEwRjQzMDlF +QkU2QTMzNkJFMTkwMzlDAAoJEOvmoza+GQOcVdAP/2L2/pZ+lxnZHiExMTlC8DwF +x6JbRjxykrxkiUYLBVTXnCAyvOfAYP73PzzFgD8zYpgvvUUfyiYN2NF7pnuhPlTm +tw+G6awrHaAiOQeoajFaGJpcNfKpjq+VDUN7fgz3aoipyLgRVteEWpuIKtiLcyoo +NfZamjgBB6JVlbXAGxAa/ERLsPyOTypK8bu1gXa0VydzHSO/l2W3+h6/Zz3AMG4c +pyCXvVEdXyzUpKyiqnP25wbXuMnMxbxr24YSz39nlq4TiGotQQgapxUBkgf/qils +iqyLQlkCe19wL1hOafVIrel57bqb//AlFgmyTS2qtUwd3mHrj4yv2JhlWOQsUC6I +yRNPxy6UHqHWsDwDYWSOQlMNrX8BrL7Ho0wpSaIbd5hr4UhW0mvUsiKVEm1jiPoi +KC/kjJBh8BC2mU1npsWk0+IHuFWMw4s2J1AagwIoUzNGNL9/mJCCRxLlWCP0NToB +LfHS0V1ZDaLkvHK4sC4Y48ERA/xJ2THsu2zkLZ+5pYZnTFc1mMmk0jBqyS1CN4Q5 +MYlnubGRJs7Ow3QjJdigLUUo3YsiUq2inGgAYvnukRF7FBqJDpeJs/vg3H4cpxNQ +/R0CrdrLy0cPdnRgzurs8G0GK5pD7+yxOgHaAvjGWqd8Rq2ApPXjWZttSTUcsojb +/xDjeHgyrd62BZ2e3qPi +=8B02 +-----END PGP SIGNATURE----- diff --git a/net-print/foo2zjs/files/foo2zjs-udev.patch b/net-print/foo2zjs/files/foo2zjs-udev.patch new file mode 100644 index 0000000..0703839 --- /dev/null +++ b/net-print/foo2zjs/files/foo2zjs-udev.patch @@ -0,0 +1,12 @@ +diff -ruN foo2zjs/Makefile foo2zjs.orig/Makefile +--- foo2zjs/Makefile 2012-01-18 21:53:45.834944820 +0100 ++++ foo2zjs.orig/Makefile 2012-01-18 21:51:18.872936603 +0100 +@@ -933,7 +933,7 @@ + echo " *** OR (generic linux)"; \ + echo " *** # rm -f $(LIBUDEVDIR)/*-printers.rules"; \ + echo " ***"; \ +- exit 1; \ ++ # exit 1; \ + fi + # ... OK! + # diff --git a/net-print/foo2zjs/files/foo2zjs-usbbackend.patch b/net-print/foo2zjs/files/foo2zjs-usbbackend.patch new file mode 100644 index 0000000..b73c79b --- /dev/null +++ b/net-print/foo2zjs/files/foo2zjs-usbbackend.patch @@ -0,0 +1,12 @@ +diff -ruN foo2zjs.orig/hplj1000 foo2zjs/hplj1000 +--- foo2zjs.orig/hplj1000 2013-01-11 17:20:04.000000000 +0100 ++++ foo2zjs/hplj1000 2013-03-24 20:49:16.150065578 +0100 +@@ -42,7 +42,7 @@ + # Path to the USB CUPS backend. We use this backend to upload the firmware + # into the printer when we are on a CUPS/libusb-based system. + # +-USB_BACKEND=/usr/lib/cups/backend/usb ++USB_BACKEND=/usr/libexec/cups/backend/usb + + # + # Directory to find downloadable HP firmware files sihpMMMM.dl diff --git a/net-print/foo2zjs/foo2zjs-99999999.ebuild b/net-print/foo2zjs/foo2zjs-99999999.ebuild new file mode 100644 index 0000000..7b021eb --- /dev/null +++ b/net-print/foo2zjs/foo2zjs-99999999.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/foo2zjs/foo2zjs-99999999.ebuild,v 1.10 2013/03/24 19:50:36 dilfridge Exp $ + +EAPI="4" + +inherit eutils + +DESCRIPTION="Support for printing to ZjStream-based printers" +HOMEPAGE="http://foo2zjs.rkkda.com/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="test" + +RESTRICT="bindist" + +RDEPEND="net-print/cups + net-print/foomatic-db-engine + net-print/foomatic-filters + virtual/udev" +DEPEND="${RDEPEND} + app-arch/unzip + app-editors/vim + net-misc/wget + sys-apps/ed + sys-devel/bc + test? ( sys-process/time )" + +S="${WORKDIR}/${PN}" + +src_unpack() { + einfo "Fetching ${PN} tarball" + wget "http://foo2zjs.rkkda.com/${PN}.tar.gz" + tar zxf "${WORKDIR}/${PN}.tar.gz" + + epatch "${FILESDIR}/${PN}-udev.patch" + epatch "${FILESDIR}/${PN}-usbbackend.patch" + + cd "${S}" + + einfo "Fetching additional files (firmware, etc)" + emake getweb + + # Display wget output, downloading takes some time. + sed -e '/^WGETOPTS/s/-q//g' -i getweb + + ./getweb all +} + +src_prepare() { + # Prevent an access violation. + sed -e "s~/etc~${D}/etc~g" -i Makefile + sed -e "s~/etc~${D}/etc~g" -i hplj1000 + + # Prevent an access violation, do not create symlinks on live file system + # during installation. + sed -e 's/ install-filter / /g' -i Makefile +} + +src_compile() { + MAKEOPTS=-j1 default +} + +src_install() { + # ppd files are installed automagically. We have to create a directory + # for them. + mkdir -p "${D}/usr/share/ppd" + + emake DESTDIR="${D}" -j1 install install-hotplug +} diff --git a/net-print/foo2zjs/metadata.xml b/net-print/foo2zjs/metadata.xml new file mode 100644 index 0000000..447cad3 --- /dev/null +++ b/net-print/foo2zjs/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>printing</herd> +</pkgmetadata> |