summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Kretov <firegurafiku@gmail.com>2017-08-12 02:32:43 +0300
committerMichał Górny <mgorny@gentoo.org>2017-09-06 12:58:31 +0200
commit8aa2232c76f14cc548f443c5a85baa771630d957 (patch)
tree62849bd1baab2a018da78843d2b8c62b6ed35ba8 /net-print/kyocera-1x2x-mfp-driver/files
parentnet-irc/atheme-services: Revbump to 7.2.9-r1 (diff)
downloadgentoo-8aa2232c76f14cc548f443c5a85baa771630d957.tar.gz
gentoo-8aa2232c76f14cc548f443c5a85baa771630d957.tar.bz2
gentoo-8aa2232c76f14cc548f443c5a85baa771630d957.zip
net-print/kyocera-1x2x-mfp-driver: New ebuild
This ebuild installs proprietary PPDs and filter program which make CUPS work with old Kyocera printers of 1x2x MFP family: - Kyocera FS-1020MFP - Kyocera FS-1025MFP - Kyocera FS-1040 - Kyocera FS-1060DN - Kyocera FS-1120MFP - Kyocera FS-1125MFP Closes: https://bugs.gentoo.org/627802 Closes: https://github.com/gentoo/gentoo/pull/5416 Signed-off-by: Pavel Kretov <firegurafiku@gmail.com>
Diffstat (limited to 'net-print/kyocera-1x2x-mfp-driver/files')
-rw-r--r--net-print/kyocera-1x2x-mfp-driver/files/rastertokpsl-fix.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/net-print/kyocera-1x2x-mfp-driver/files/rastertokpsl-fix.sh b/net-print/kyocera-1x2x-mfp-driver/files/rastertokpsl-fix.sh
new file mode 100644
index 000000000000..af898459f65f
--- /dev/null
+++ b/net-print/kyocera-1x2x-mfp-driver/files/rastertokpsl-fix.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+# This file is a slightly modified version of 'rastertokpsl_wrapper' script
+# by Maxim Norin. See https://github.com/mnorin/kyocera-ppd-installer for
+# the original version.
+# Distributed under the terms of the GNU General Public License v2.
+jobname="$(echo "$3" | grep -Eo "[[:alnum:]]" | tr -d "\n" | tail -c 20)"
+/usr/libexec/cups/filter/rastertokpsl "$1" "$2" "${jobname}" "$4" "$5"