ports/80255: New Port : print/lpr-wrapper A user level printer frontend

Eric Masson e-masson at kisoft-services.com
Fri Apr 22 16:10:24 UTC 2005


>Number:         80255
>Category:       ports
>Synopsis:       New Port : print/lpr-wrapper A user level printer frontend
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 22 16:10:23 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Eric Masson
>Release:        FreeBSD 5.4-RC3 i386
>Organization:
Kisoft Services
>Environment:
System: FreeBSD srvbsdnanssv.interne.kisoft-services.com 5.4-RC3 FreeBSD 5.4-RC3 #0: Sun Apr 17 16:28:05 CEST 2005 emss at srvbsdnanssv.interne.kisoft-services.com:/vol0/build/usr/src/sys/KV8AMD64 i386


	
>Description:
	New port for lpr-wrapper, a user level printer frontend
	Contains required ports print/libppd & print/psdim
	
>How-To-Repeat:
	
>Fix:

# 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:
#
#	lpr-wrapper
#	lpr-wrapper/files
#	lpr-wrapper/files/patch-aa
#	lpr-wrapper/Makefile
#	lpr-wrapper/distinfo
#	lpr-wrapper/pkg-plist
#	lpr-wrapper/pkg-descr
#
echo c - lpr-wrapper
mkdir -p lpr-wrapper > /dev/null 2>&1
echo c - lpr-wrapper/files
mkdir -p lpr-wrapper/files > /dev/null 2>&1
echo x - lpr-wrapper/files/patch-aa
sed 's/^X//' >lpr-wrapper/files/patch-aa << 'END-of-lpr-wrapper/files/patch-aa'
X--- lpr-wrapper.in.orig	Fri Apr 22 12:01:13 2005
X+++ lpr-wrapper.in	Fri Apr 22 12:16:22 2005
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X 
X # lpr-wrapper --- a wrapper around the lpr command, which can handle
X # any-to-postscript conversion, options for duplex and n-up printing,
X@@ -103,7 +103,7 @@
X PPDDIR=@datadir@/@PACKAGE@
X 
X # global options file
X-SYST_CONFIG=/etc/lprrc
X+SYST_CONFIG=@prefix@/etc/lprrc
X 
X # user's options file
X USER_CONFIG=.lprrc
X@@ -488,17 +488,17 @@
X OPTSTRING=o:P:#:K:C:J:T:U:i:1:2:3:4:w:cdfghlnmprstv
X LONGOPTS=help,version,verbose,test,ppd:,tmpdir:
X 
X-if [ "$HAVE[getopt]" ]; then
X-    OPTIONS=`getopt -n $NAME -s bash -l $LONGOPTS -o $OPTSTRING -- $XOPTS "$@"`
X-    if [ $? != 0 ]; then
X-	echo "Try --help for more information" > /dev/stderr
X-	exit 1
X-    fi
X-    eval set -- "$OPTIONS"
X-    dopts "$@"
X-else
X+#if [ "$HAVE[getopt]" ]; then
X+#    OPTIONS=`getopt -n $NAME -s bash -l $LONGOPTS -o $OPTSTRING -- $XOPTS "$@"`
X+#    if [ $? != 0 ]; then
X+#	echo "Try --help for more information" > /dev/stderr
X+#	exit 1
X+#    fi
X+#    eval set -- "$OPTIONS"
X+#    dopts "$@"
X+#else
X     dopts $XOPTS "$@"
X-fi
X+#fi
X 
X #if no printer given (as option or through environment), use default
X if [ x"$PRINTER" == x ]; then
END-of-lpr-wrapper/files/patch-aa
echo x - lpr-wrapper/Makefile
sed 's/^X//' >lpr-wrapper/Makefile << 'END-of-lpr-wrapper/Makefile'
X# New ports collection makefile for:    lpr-wrapper
X# Date created:         22 Apr 2005 17:00:00 CEST
X# Whom:                 e-masson at kisoft-services.com
X#
X# $FreeBSD$
X#
X
XPORTNAME=	lpr-wrapper
XPORTVERSION=	0.6
XCATEGORIES=	print
XMASTER_SITES=	http://quasar.mathstat.uottawa.ca/~selinger/lpr-wrapper/download/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	e-masson at kisoft-services.com
XCOMMENT=	A user level printer frontend \
X		http://quasar.mathstat.uottawa.ca/~selinger/lpr-wrapper/
X
X#
X# define WITH_GHOSTSCRIPT_AFPL=yes for AFPL Postscript interpreter
X# instead of GNU one
X#
XUSE_GHOSTSCRIPT_RUN=	yes
X
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS=	--prefix=${PREFIX}
X
XRUN_DEPENDS+=	bash:${PORTSDIR}/shells/bash
XRUN_DEPENDS+=	ppdfilt:${PORTSDIR}/print/libppd
XRUN_DEPENDS+=	psdim:${PORTSDIR}/print/psdim
XRUN_DEPENDS+=	mpage:${PORTSDIR}/print/mpage
X.if defined(A4)
XRUN_DEPENDS+=	pstops:${PORTSDIR}/print/psutils-a4
X.else
XRUN_DEPENDS+=	pstops:${PORTSDIR}/print/psutils-letter
X.endif
X
X.include <bsd.port.mk>
END-of-lpr-wrapper/Makefile
echo x - lpr-wrapper/distinfo
sed 's/^X//' >lpr-wrapper/distinfo << 'END-of-lpr-wrapper/distinfo'
XMD5 (lpr-wrapper-0.6.tar.gz) = 338173bf53b2f1eb7685023f265e269d
XSIZE (lpr-wrapper-0.6.tar.gz) = 46394
END-of-lpr-wrapper/distinfo
echo x - lpr-wrapper/pkg-plist
sed 's/^X//' >lpr-wrapper/pkg-plist << 'END-of-lpr-wrapper/pkg-plist'
Xbin/lpr-wrapper
Xshare/lpr-wrapper/default.ppd
X at dirrm share/lpr-wrapper
END-of-lpr-wrapper/pkg-plist
echo x - lpr-wrapper/pkg-descr
sed 's/^X//' >lpr-wrapper/pkg-descr << 'END-of-lpr-wrapper/pkg-descr'
XA user level printer frontend
END-of-lpr-wrapper/pkg-descr
exit

# 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:
#
#	libppd
#	libppd/Makefile
#	libppd/distinfo
#	libppd/files
#	libppd/files/patch-aa
#	libppd/pkg-plist
#	libppd/pkg-descr
#
echo c - libppd
mkdir -p libppd > /dev/null 2>&1
echo x - libppd/Makefile
sed 's/^X//' >libppd/Makefile << 'END-of-libppd/Makefile'
X# New ports collection makefile for:    libppd
X# Date created:         22 Apr 2005 17:00:00 CEST
X# Whom:                 e-masson at kisoft-services.com
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libppd
XPORTVERSION=	0.10
XCATEGORIES=	print
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	lpr
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	e-masson at kisoft-services.com
XCOMMENT=	A library providing routines for ppd files
X
XUSE_LIBTOOL_VER=15
XINSTALLS_SHLIB=	Yes
XUSE_GETOPT_LONG=Yes
X
XMAN1=	ppdfilt.1
XMAN3=	ppd_check_option_is_marked.3 ppd_emit_to_file.3 ppd_file_free.3 \
X	ppd_file_new.3 ppd_find_choice.3 ppd_get_num_conflicts.3 \
X	ppd_get_page_length.3
X
X.include <bsd.port.mk>
END-of-libppd/Makefile
echo x - libppd/distinfo
sed 's/^X//' >libppd/distinfo << 'END-of-libppd/distinfo'
XMD5 (libppd-0.10.tar.gz) = c50f2d2841edf50eb968689e3a49f0f9
XSIZE (libppd-0.10.tar.gz) = 200507
END-of-libppd/distinfo
echo c - libppd/files
mkdir -p libppd/files > /dev/null 2>&1
echo x - libppd/files/patch-aa
sed 's/^X//' >libppd/files/patch-aa << 'END-of-libppd/files/patch-aa'
X--- src/Makefile.in.orig	Thu Apr 21 17:53:57 2005
X+++ src/Makefile.in	Thu Apr 21 17:54:30 2005
X@@ -87,7 +87,7 @@
X INCLUDES = $(GLIB_CFLAGS) -DG_LOG_DOMAIN=\"LibPPD\"
X bin_PROGRAMS = ppdfilt
X lib_LTLIBRARIES = libppd.la
X-LDFLAGS = $(GLIB_LIBS)
X+LDFLAGS = @LDFLAGS@ $(GLIB_LIBS)
X include_HEADERS = ppd.h ppdenums.h ppdmacros.h
X 
X libppd_la_SOURCES = emit.c options.c page.c mark.c ppd.c init.c debug.h ppdfilt.h
END-of-libppd/files/patch-aa
echo x - libppd/pkg-plist
sed 's/^X//' >libppd/pkg-plist << 'END-of-libppd/pkg-plist'
Xbin/ppdfilt
Xinclude/ppd.h
Xinclude/ppdenums.h
Xinclude/ppdmacros.h
Xlib/libppd.a
Xlib/libppd.so
Xlib/libppd.so.1
Xshare/postscript/ppd/generic-printer.ppd
X at dirrm share/postscript/ppd
X at dirrm share/postscript
END-of-libppd/pkg-plist
echo x - libppd/pkg-descr
sed 's/^X//' >libppd/pkg-descr << 'END-of-libppd/pkg-descr'
XA library providing routines for ppd files
END-of-libppd/pkg-descr
exit

# 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:
#
#	psdim
#	psdim/Makefile
#	psdim/distinfo
#	psdim/pkg-plist
#	psdim/pkg-descr
#
echo c - psdim
mkdir -p psdim > /dev/null 2>&1
echo x - psdim/Makefile
sed 's/^X//' >psdim/Makefile << 'END-of-psdim/Makefile'
X# New ports collection makefile for:    psdim
X# Date created:         22 Apr 2005 17:00:00 CEST
X# Whom:                 e-masson at kisoft-services.com
X#
X# $FreeBSD$
X#
X
XPORTNAME=	psdim
XPORTVERSION=	1.4
XCATEGORIES=	print
XMASTER_SITES=	http://quasar.mathstat.uottawa.ca/~selinger/psdim/download/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	e-masson at kisoft-services.com
XCOMMENT=	Utility that calculates the optimal placement of the pages for n-up printing \
X		http://quasar.mathstat.uottawa.ca/~selinger/psdim/
X
X#
X# define WITH_GHOSTSCRIPT_AFPL=yes for AFPL Postscript interpreter
X# instead of GNU one
X#
XUSE_GHOSTSCRIPT_RUN=	yes
X
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS=	--prefix=${PREFIX}
X
XMAN1=	psdim.1
X
X.include <bsd.port.mk>
END-of-psdim/Makefile
echo x - psdim/distinfo
sed 's/^X//' >psdim/distinfo << 'END-of-psdim/distinfo'
XMD5 (psdim-1.4.tar.gz) = 1e953d81876b5423a535583188196584
XSIZE (psdim-1.4.tar.gz) = 99679
END-of-psdim/distinfo
echo x - psdim/pkg-plist
sed 's/^X//' >psdim/pkg-plist << 'END-of-psdim/pkg-plist'
Xbin/psdim
END-of-psdim/pkg-plist
echo x - psdim/pkg-descr
sed 's/^X//' >psdim/pkg-descr << 'END-of-psdim/pkg-descr'
XUtility that calculates the optimal placement of the pages for n-up printing
END-of-psdim/pkg-descr
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list