diff --git a/srcpkgs/foomatic-db-engine/patches/patch-foomatic-getpjloptions.in b/srcpkgs/foomatic-db-engine/patches/patch-foomatic-getpjloptions.in new file mode 100644 index 00000000000..437fb9694e4 --- /dev/null +++ b/srcpkgs/foomatic-db-engine/patches/patch-foomatic-getpjloptions.in @@ -0,0 +1,33 @@ +--- foomatic-getpjloptions.in 2015-02-14 07:21:56.000000000 -0500 ++++ foomatic-getpjloptions.in 2015-02-15 07:36:23.000000000 -0500 +@@ -1,3 +1,3 @@ +-#!@SH@ ++#!/bin/sh + # + # Polls PJL options from local or network printers +@@ -23,6 +23,5 @@ + NC=@NC@ + CAT=@CAT@ +-PRINTF=@PRINTF@ +-PERL=@PERL@ ++PRINTF=printf # sh builtin + + usage(){ +@@ -63,12 +62,13 @@ +- # We have two arguments, do ethernet printer request ++ # We have two arguments, do network printer request + # Poll the printer's answer and filter out the newpage characters ++ # as well as the carriage-returns (\r or, in octal, 015) +- ${NC} -w 3 ${1} ${2} 2>/dev/null | ${PERL} -p -e "s/\014//" ++ $NC -w 3 $1 $2 2>/dev/null | tr -d "\015\014" + else + # We have one argument, do local printer request + # Send commands to printer port +- ${CAT} > ${1} ++ $CAT > $1 + # Wait ten seconds for the printer to process the request + sleep 10 + # Poll the printer's answer and filter out the newpage and CR characters +- ${CAT} < ${1} | ${PERL} -p -e "s/[\015\014]//" ++ exec tr -d "\015\014" < $1 + fi diff --git a/srcpkgs/foomatic-db-engine/template b/srcpkgs/foomatic-db-engine/template index 5e660b60112..c0a07c252cc 100644 --- a/srcpkgs/foomatic-db-engine/template +++ b/srcpkgs/foomatic-db-engine/template @@ -1,15 +1,15 @@ # Template file for 'foomatic-db-engine' pkgname=foomatic-db-engine -version=4.0.11 +version=4.0.12 revision=1 build_style=gnu-configure configure_args="--libdir=/usr/lib" hostmakedepends="wget perl foomatic-db foomatic-filters ghostscript cups libxml2-devel" makedepends="libxml2-devel cups-devel" -depends="${hostmakedepends}" +depends="${hostmakedepends/libxml2-devel/}" short_desc="OpenPrinting printer support - programs" maintainer="Juan RP " license="GPL-2" homepage="https://www.openprinting.org/" distfiles="https://www.openprinting.org/download/foomatic/$pkgname-$version.tar.gz" -checksum=aa90df28f6dd94d3b590a789009c6a1792696c5cebb1e0dd6037d7dcaa09ffdf +checksum=66143b76ed5b325b7025e261ad917b543de534c6d0a6e495d5489a20cace7c21