ports/182628: New port: print/cups-lexmark-cs310 CUPS/foomatic driver for Lexmark CS310 series printers
Kalten
kalten at gmx.at
Sat Oct 5 15:10:03 UTC 2013
The following reply was made to PR ports/182628; it has been noted by GNATS.
From: Kalten <kalten at gmx.at>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/182628: New port: print/cups-lexmark-cs310 CUPS/foomatic driver for Lexmark CS310 series printers
Date: Sat, 05 Oct 2013 17:03:27 +0200
--=-=-=
Content-Type: text/plain
And as nobody has taken it yet, another change: I had used
``${DOCSDIR}'' instead of ``%%PORTDOCS%%%%DOCSDIR%%'' for PLIST_* and
forgotten to try to remove some directories :-(
New shar (v3) in attachment.
Thanks to the one taking care of this ;-)
Kalten
PS: yes, I am a mess ;-)
--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=cups-lexmark-cs310_v3.shar
Content-Description: cups-lexmark-cs310_v3.shar
# 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 %%PORTDOCS%%%%DOCSDIR%%/License.txt \
X %%PORTDOCS%%%%DOCSDIR%%/Readme-CUPS.txt
X
XPLIST_DIRSTRY= libexec/cups/filter \
X share/foomatic/db/source/PPD/Lexmark \
X %%PORTDOCS%%%%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/driver \
X share/foomatic/db/source/printer \
X share/foomatic/db/source/opt \
X 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-05 00:04:59.000000000 +0200
X@@ -14,17 +14,24 @@
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+#if [ -x "/bin/awk" ];then AWK_CMD="/bin/awk" ; else AWK_CMD="/usr/bin/awk" ; fi
X+TR_CMD="/usr/bin/tr"
X
X-myhost=`${HOSTNAME}`
X-myuser=$2
X-myjob=$3
X-mycopies=$4
X+# "->' and |->.
X+clearParam()
X+{
X+ echo -n "$*" | ${TR_CMD} '|' '.' | ${TR_CMD} '"' "'"
X+}
X+
X+myhost=$(clearParam `${HOSTNAME}`)
X+myuser=$(clearParam $2)
X+myjob=$(clearParam $3)
X+mycopies=$(clearParam $4)
X
X #-- Uncomment line below for debugging purposes. If fax-pnh-filter.debug is created in /tmp,
X #-- then that means that this fax-pnh-filter was successfully called.
X #${PRINT_CMD} user=$myuser job=$myjob >> /tmp/fax-pnh-filter.debug
X
X-${SED_CMD} -e "s/STATIONID = GETMYHOST/STATIONID = \"${myhost}\"/g" -e "s/PJL SET USERNAME = GEYMYUSERNAME/PJL SET USERNAME = \"${myuser}\"/g" -e "s/PJL SET JOBNAME = GETMYJOBNAME/PJL SET JOBNAME = \"${myjob}\"/g" -e "s/PJL SET QTY = GETMYCOPIES/PJL SET QTY = ${mycopies}/g"
X+${SED_CMD} -e "s|STATIONID = GETMYHOST|STATIONID = \"${myhost}\"|g" -e "s|PJL SET USERNAME = GETMYUSERNAME|PJL SET USERNAME = \"${myuser}\"|g" -e "s|PJL SET JOBNAME = GETMYJOBNAME|PJL SET JOBNAME = \"${myjob}\"|g" -e "s|PJL SET QTY = GETMYCOPIES|PJL SET QTY = ${mycopies}|g"
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
--=-=-=
Content-Type: text/plain
--
--=-=-=--
More information about the freebsd-ports-bugs
mailing list