foomatic-db-engine: update to 4.0.12

Add patch that removes the reference to bash (via FreeBSD).
This commit is contained in:
Alessio Sergi 2015-02-16 00:32:12 +01:00
parent b309d267d5
commit d4758c3968
2 changed files with 36 additions and 3 deletions

View file

@ -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

View file

@ -1,15 +1,15 @@
# Template file for 'foomatic-db-engine' # Template file for 'foomatic-db-engine'
pkgname=foomatic-db-engine pkgname=foomatic-db-engine
version=4.0.11 version=4.0.12
revision=1 revision=1
build_style=gnu-configure build_style=gnu-configure
configure_args="--libdir=/usr/lib" configure_args="--libdir=/usr/lib"
hostmakedepends="wget perl foomatic-db foomatic-filters ghostscript cups libxml2-devel" hostmakedepends="wget perl foomatic-db foomatic-filters ghostscript cups libxml2-devel"
makedepends="libxml2-devel cups-devel" makedepends="libxml2-devel cups-devel"
depends="${hostmakedepends}" depends="${hostmakedepends/libxml2-devel/}"
short_desc="OpenPrinting printer support - programs" short_desc="OpenPrinting printer support - programs"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2" license="GPL-2"
homepage="https://www.openprinting.org/" homepage="https://www.openprinting.org/"
distfiles="https://www.openprinting.org/download/foomatic/$pkgname-$version.tar.gz" distfiles="https://www.openprinting.org/download/foomatic/$pkgname-$version.tar.gz"
checksum=aa90df28f6dd94d3b590a789009c6a1792696c5cebb1e0dd6037d7dcaa09ffdf checksum=66143b76ed5b325b7025e261ad917b543de534c6d0a6e495d5489a20cace7c21