ports/182628: New port: print/cups-lexmark-cs310 CUPS/foomatic driver for Lexmark CS310 series printers
Kalten
kalten at gmx.at
Fri Oct 4 09:20:00 UTC 2013
>Number: 182628
>Category: ports
>Synopsis: New port: print/cups-lexmark-cs310 CUPS/foomatic driver for Lexmark CS310 series printers
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 04 09:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Kalten
>Release: 9.1-RELEASE-p* amd64
>Organization:
>Environment:
FreeBSD freeHugin.Walhalla.Leben 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:34:37 UTC 2013 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
This is for the ``Lexmark CS310 Series'' of colour laser printers.
The port fetches the driver files from Lexmark, and installs them (a little bit
adjusted) into the CUPS and foomatic directories.
I am not sure how to handle the License-Information:
*) It is displayed in the pre-install target but the user is not prompted to
accept it.
*) ${LICENSE} is not set (I do not know what to choose).
*) ${LICENSE_FILE} is set to that in the original archive---on installation it
is copied to ${DOCSDIR} together with some read me file.
About ${PKGMESSAGE}: do we really have to cat it in the post-install target or
did I miss something there?
I hope, the rest is OK.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# cups-lexmark-cs310
# cups-lexmark-cs310/Makefile
# cups-lexmark-cs310/distinfo
# cups-lexmark-cs310/pkg-descr
# cups-lexmark-cs310/files
# cups-lexmark-cs310/files/patch-GlobalPPD_1.4_fax-pnh-filter
# cups-lexmark-cs310/files/patch-GlobalPPD_1.4_Lexmark_CS310_Series.ppd
# cups-lexmark-cs310/pkg-message
#
echo c - cups-lexmark-cs310
mkdir -p cups-lexmark-cs310 > /dev/null 2>&1
echo x - cups-lexmark-cs310/Makefile
sed 's/^X//' >cups-lexmark-cs310/Makefile << '698c9e1c5a3f57a74b1ffdcbfe21f2ad'
X# Created by: Kalten <kalten at gmx.at>
X# $FreeBSD$
X
XPORTNAME= cups-lexmark-cs310
XPORTVERSION= 1.4
XCATEGORIES= print
XMASTER_SITES= http://downloads.lexmark.com/downloads/pssd/
XDISTNAME= PPD-Files-LMADX
XEXTRACT_SUFX= .tar.Z
X
XMAINTAINER= kalten at gmx.at
XCOMMENT= CUPS/foomatic driver for Lexmark CS310 series
X
XRUN_DEPENDS= ${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base
X
X#LICENSE=Lexmark
XLICENSE_FILE=${WRKSRC}/License.txt
X
XWRKSRC= ${WRKDIR}/ppd_files
X
XOPTIONS_DEFINE= FOOMATIC
XOPTIONS_DEFAULT= FOOMATIC
XFOOMATIC_DESC= Install foomatic files
X.include <bsd.port.options.mk>
X
XPLIST_FILES= libexec/cups/filter/fax-pnh-filter \
X share/foomatic/db/source/PPD/Lexmark/Lexmark_CS310_Series.ppd \
X ${DOCSDIR}/License.txt \
X ${DOCSDIR}/Readme-CUPS.txt
X
XPLIST_DIRSTRY= libexec/cups/filter \
X share/foomatic/db/source/PPD/Lexmark \
X ${DOCSDIR}
X
X.if ${PORT_OPTIONS:MFOOMATIC}
XPLIST_FILES+= share/foomatic/db/source/driver/Lexmark_PPD.xml \
X share/foomatic/db/source/printer/Lexmark_CS310_Series_en.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-Duplex.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-Trays.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-OptDuplex.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-Resolution.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-MediaColor.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-BLW.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-ColorSaver.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-TonerDarkness.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-InputSlot.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-PageSize.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-MediaType.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-Collate.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-SepPages.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-SepSource.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-CyanBalance.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-MagentaBalance.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-YellowBalance.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-BlackBalance.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-ManualRGBImage.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-ManualRGBText.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-ManualRGBGraphics.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-ManualCMYK.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-LexBlankPage.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-LexLineDetail.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-LexBrightness.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-LexContrast.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-LexSaturation.xml \
X share/foomatic/db/source/opt/ppd-Lexmark_CS310_Series_en-LexMirror.xml
XPLIST_DIRSTRY+= share/foomatic/db/source
X.endif
X
XNO_BUILD= yes
XNO_INSTALL= yes
XNO_STAGE= yes
X
Xpre-install:
X @${CAT} ${LICENSE_FILE}
X# ToDo: what else to do about the license?
X
Xdo-install:
X ${MKDIR} ${DOCSDIR}
X ${INSTALL_DATA} ${LICENSE_FILE} ${DOCSDIR}/
X ${INSTALL_DATA} ${WRKSRC}/Readme-CUPS.txt ${DOCSDIR}/
X ${MKDIR} ${PREFIX}/libexec/cups/filter
X ${INSTALL_SCRIPT} -o root -g wheel -m 0755 ${WRKSRC}/GlobalPPD_1.4/fax-pnh-filter \
X ${PREFIX}/libexec/cups/filter
X ${MKDIR} ${PREFIX}/share/foomatic/db/source/PPD/Lexmark
X ${INSTALL_DATA} -o root -g wheel ${WRKSRC}/GlobalPPD_1.4/Lexmark_CS310_Series.ppd \
X ${PREFIX}/share/foomatic/db/source/PPD/Lexmark
X.if ${PORT_OPTIONS:MFOOMATIC}
X ${MKDIR} ${PREFIX}/share/foomatic/db/source
X cd ${PREFIX}/share/foomatic/db/source && \
X /usr/bin/tar xvf ${WRKSRC}/foomatic/UTF-8/foomatic.tar
X.endif
X
Xpost-install:
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
698c9e1c5a3f57a74b1ffdcbfe21f2ad
echo x - cups-lexmark-cs310/distinfo
sed 's/^X//' >cups-lexmark-cs310/distinfo << '4d6ee8a8505e354a09e48a0df6af6a0a'
XSHA256 (PPD-Files-LMADX.tar.Z) = 54a79f2f1451b860e475a96b901acdf27941cb5e3fdf5cfb99629234d6396678
XSIZE (PPD-Files-LMADX.tar.Z) = 94961
4d6ee8a8505e354a09e48a0df6af6a0a
echo x - cups-lexmark-cs310/pkg-descr
sed 's/^X//' >cups-lexmark-cs310/pkg-descr << '268a74bb8ce64eb2870b611080290090'
XCUPS/foomatic driver for Lexmark CS310 series printers.
X
XAuthor: Lexmark Software Ltd.
XWWW: http://support.lexmark.com/index?productCode=LEXMARK_CS310&page=product&focusedTab=DOWNLOADS
268a74bb8ce64eb2870b611080290090
echo c - cups-lexmark-cs310/files
mkdir -p cups-lexmark-cs310/files > /dev/null 2>&1
echo x - cups-lexmark-cs310/files/patch-GlobalPPD_1.4_fax-pnh-filter
sed 's/^X//' >cups-lexmark-cs310/files/patch-GlobalPPD_1.4_fax-pnh-filter << 'd4a390e536ba2ca4c4eef3b3e963747c'
X--- GlobalPPD_1.4/fax-pnh-filter.orig 2012-04-11 10:08:38.000000000 +0200
X+++ GlobalPPD_1.4/fax-pnh-filter 2013-10-02 21:29:12.000000000 +0200
X@@ -14,7 +14,7 @@
X #-- BEGIN: System Commands
X #-------------------------
X PRINT_CMD="/bin/echo"
X-SED_CMD="/bin/sed"
X+if [ -x "/bin/sed" ];then SED_CMD="/bin/sed"; else SED_CMD="/usr/bin/sed" ; fi
X HOSTNAME="/bin/hostname"
X if [ -x "/bin/awk" ];then AWK_CMD="/bin/awk" ; else AWK_CMD="/usr/bin/awk" ; fi
X
d4a390e536ba2ca4c4eef3b3e963747c
echo x - cups-lexmark-cs310/files/patch-GlobalPPD_1.4_Lexmark_CS310_Series.ppd
sed 's/^X//' >cups-lexmark-cs310/files/patch-GlobalPPD_1.4_Lexmark_CS310_Series.ppd << 'f22a04ecfaf19fee7ea8c47d9e3b9008'
X--- GlobalPPD_1.4/Lexmark_CS310_Series.ppd.orig 2012-04-11 10:08:37.000000000 +0200
X+++ GlobalPPD_1.4/Lexmark_CS310_Series.ppd 2013-10-02 21:13:10.000000000 +0200
X@@ -204,7 +204,7 @@
X *cupsVersion: 1.4
X *cupsModelNumber: 0
X *cupsManualCopies: False
X-*cupsFilter: "application/vnd.cups-postscript 0 /usr/lib/cups/filter/fax-pnh-filter"
X+*cupsFilter: "application/vnd.cups-postscript 0 /usr/local/libexec/cups/filter/fax-pnh-filter"
X *cupsLanguages: "fr de it es ko ja ru pl pt zh_TW zh_CN"
X *UIConstraints: *Trays Tray1 *InputSlot Tray2
X *UIConstraints: *InputSlot Tray2 *Trays Tray1
f22a04ecfaf19fee7ea8c47d9e3b9008
echo x - cups-lexmark-cs310/pkg-message
sed 's/^X//' >cups-lexmark-cs310/pkg-message << '0a76f8ed35755fde1a3ade949e4f2b06'
X======================================================================
X
XTo set ``Port Monitor'' in the PPD options to ``tbcp'' (``none'' by
Xdefault) seems to result in problems with CUPS.
X
X======================================================================
0a76f8ed35755fde1a3ade949e4f2b06
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list