Prints envelopes in Postscript using configuration files. Works with Ghostscript, too, according to author. Fix: ==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<== ==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==--NDCHp0d3dJt7wCt9HfZnMccQNadCB0fIopeTWpqioXxD1HmG Content-Type: text/plain; name="file.shar" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.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: # # print/envelope # print/envelope/distinfo # print/envelope/Makefile # print/envelope/pkg-comment # print/envelope/pkg-descr # print/envelope/pkg-plist # print/envelope/pkg-message # print/envelope/files # print/envelope/files/patch-samplerc # echo c - print/envelope mkdir -p print/envelope > /dev/null 2>&1 echo x - print/envelope/distinfo sed 's/^X//' >print/envelope/distinfo << 'END-of-print/envelope/distinfo' XMD5 (envelope_1.0.0.tgz) = f02702b7958db2035beeb42a8f2b155e END-of-print/envelope/distinfo echo x - print/envelope/Makefile sed 's/^X//' >print/envelope/Makefile << 'END-of-print/envelope/Makefile' X# ex:ts=8 X# X# New ports collection makefile for: envelope X# Date created: 2002/03/24 X# Whom: Alan Eldridge ports@geeksrus.net X# X# $FreeBSD$ X# X XPORTNAME= envelope XPORTVERSION= 1.0.0 XCATEGORIES= print XMASTER_SITES= http://freefall.homeip.net/code/envelope/ XDISTNAME= ${PORTNAME}_${PORTVERSION} XEXTRACT_SUFX= .tgz X XMAINTAINER= ports@geeksrus.net X XNO_BUILD= yes XUSE_PERL5= yes XNO_WRKSUBDIR= yes X XPLIST_SUB+= DOCSDIR=${DOCSDIR:S@^${PREFIX}/@@} XPLIST_SUB+= EXAMPLESDIR=${EXAMPLESDIR:S@^${PREFIX}/@@} X Xpost-patch: X @${PERL} -pi -e 's@/usr/bin/perl@${PERL}@' ${WRKDIR}/envelope X Xdo-install: X @${INSTALL_SCRIPT} ${WRKDIR}/envelope ${PREFIX}/bin X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} ${EXAMPLESDIR}/config X @cd ${WRKDIR}; ${INSTALL_DATA} samplerc INSTALL ReadMe ${DOCSDIR} X @cd ${WRKDIR}/examples; \ X ${INSTALL_DATA} normal returnaddress shipping_label \ X simple with_config with_font_info with_options \ X ${EXAMPLESDIR} X @cd ${WRKDIR}/examples; ${INSTALL_DATA} config/* ${EXAMPLESDIR}/config X.endif X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> X X#EOF END-of-print/envelope/Makefile echo x - print/envelope/pkg-comment sed 's/^X//' >print/envelope/pkg-comment << 'END-of-print/envelope/pkg-comment' XCommand-line Postscript envelope printer END-of-print/envelope/pkg-comment echo x - print/envelope/pkg-descr sed 's/^X//' >print/envelope/pkg-descr << 'END-of-print/envelope/pkg-descr' XConfigurable command-line envelope printer which outputs Postscript. END-of-print/envelope/pkg-descr echo x - print/envelope/pkg-plist sed 's/^X//' >print/envelope/pkg-plist << 'END-of-print/envelope/pkg-plist' Xbin/envelope X%%PORTDOCS%%%%DOCSDIR%%/INSTALL X%%PORTDOCS%%%%DOCSDIR%%/ReadMe X%%PORTDOCS%%%%DOCSDIR%%/samplerc X%%PORTDOCS%%%%EXAMPLESDIR%%/config/8.625 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/datacard X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number10 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number10.5 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number11 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number12 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number14 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number5 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number6 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number6.25 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number6.75 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number7 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number7.5 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number7.75 X%%PORTDOCS%%%%EXAMPLESDIR%%/config/number9 X%%PORTDOCS%%%%EXAMPLESDIR%%/normal X%%PORTDOCS%%%%EXAMPLESDIR%%/returnaddress X%%PORTDOCS%%%%EXAMPLESDIR%%/shipping_label X%%PORTDOCS%%%%EXAMPLESDIR%%/simple X%%PORTDOCS%%%%EXAMPLESDIR%%/with_config X%%PORTDOCS%%%%EXAMPLESDIR%%/with_font_info X%%PORTDOCS%%%%EXAMPLESDIR%%/with_options X@comment dirs X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/config X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% X%%PORTDOCS%%@dirrm %%DOCSDIR%% X END-of-print/envelope/pkg-plist echo x - print/envelope/pkg-message sed 's/^X//' >print/envelope/pkg-message << 'END-of-print/envelope/pkg-message' X====================================================================== XNOTE: In order to use this program, you will need to copy the Xfile /usr/local/share/doc/envelope/samplerc to ~/.enveloperc. X XYou may then modify ~/.enveloperc according to the instructions in Xthe file. X XAdditional configuration examples can be found in the directory X/usr/local/share/examples/envelope. X====================================================================== END-of-print/envelope/pkg-message echo c - print/envelope/files mkdir -p print/envelope/files > /dev/null 2>&1 echo x - print/envelope/files/patch-samplerc sed 's/^X//' >print/envelope/files/patch-samplerc << 'END-of-print/envelope/files/patch-samplerc' X--- samplerc.orig Mon Jan 29 22:20:06 2001 X+++ samplerc Sat May 18 00:33:08 2002 X@@ -25,6 +25,9 @@ X $feedcenter = $normalwidth/2 - $eheight/2 X X $leftmargin = 0.25 X+# if you use a program (like kprinter) that tells the printer X+# to expect an envelope of the correct size, do not add the $feed* X+# offset to $topmargin. X $topmargin = 0.30 + $feedcenter X X END-of-print/envelope/files/patch-samplerc exit
State Changed From-To: open->closed Committed with a couple of portlint-related changes.