Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2005 16:26:48 GMT
From:      Jonathan Weiss <tomonage2@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/76249: New port:[print/foomatic-filters]
Message-ID:  <200501141626.j0EGQmZP044135@www.freebsd.org>
Resent-Message-ID: <200501141630.j0EGUIxg008763@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         76249
>Category:       ports
>Synopsis:       New port:[print/foomatic-filters]
>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 Jan 14 16:30:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Weiss
>Release:        5_3
>Organization:
>Environment:
>Description:
This is foomatic-filters from http://www.linuxprinting.org/foomatic.html.

Foomatic is a database-driven system for integrating free software printer drivers with common spoolers under Unix. It supports CUPS, LPRng, LPD, GNUlpr, PPR, PDQ, CPS, and direct printing with every free software printer driver known to us and every printer known to work with these drivers.

Foomatic-db and -db-engine are already part of the freebsd-ports-collection and this port completes the foomatic-applications.
>How-To-Repeat:
Install the sharfile from http://bsd.grp.tu-berlin.de/foomatic-filters.shar


>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:
#
#	foomatic-filters
#	foomatic-filters/Makefile
#	foomatic-filters/distinfo
#	foomatic-filters/pkg-descr
#	foomatic-filters/pkg-deinstall
#	foomatic-filters/pkg-message
#
echo c - foomatic-filters
mkdir -p foomatic-filters > /dev/null 2>&1
echo x - foomatic-filters/Makefile
sed 's/^X//' >foomatic-filters/Makefile << 'END-of-foomatic-filters/Makefile'
X# New ports collection makefile for:	foomatic-filters
X# Date created:				4 January 2005
X# Whom:					Jonathan Weiss <tomonage2@gmx.de
X#
X# $FreeBSD$
X#
X
XPORTNAME=	foomatic-filters
XPORTVERSION=	3.0.2
XCATEGORIES=	print
XMASTER_SITES=	http://www.linuxprinting.org/download/foomatic/
X
XMAINTAINER=	tomonage2@gmx.de
XCOMMENT=	A system for integrating printer drivers with common spoolers
X
X
XMAN1=		foomatic-rip.1 foomatic-gswrapper.1
XPLIST_FILES=	bin/foomatic-rip etc/filter.conf.example bin/foomatic-gswrapper
X
XGNU_CONFIGURE=		yes
XUSE_PERL5=		yes
X
XCONFIGURE_ARGS+=        --prefix=${PREFIX} \
X			--sysconfdir=${PREFIX}/etc
X
X
X.include <bsd.port.pre.mk>
X
X.if exists( ${LOCALBASE}/libexec/cups)
XPLIST_FILES+=	libexec/cups/filter/foomatic-rip
XWITH_CUPS=	yes
X.endif
X
X.if exists( ${LOCALBASE}/bin/mpage)
XWITH_MAPGE=	yes
X.endif
X
X.if exists( ${LOCALBASE}/bin/enscript)
XWITH_ENSCRIPT=	yes
X.endif
X
X.if exists( ${LOCALBASE}bin/a2ps)
XWITH_A2PS=	yes
X.endif
X
X# default DEPEND 
X.if !defined(WITH_CUPS) && !defined(WITH_MPAGE) && !defined(WITH_ENSCRIPT) && !defined(WITH_A2PS)
XWITH_CUPS=yes
X.endif
X
X.if defined(WITH_CUPS)
XBUILD_DEPENDS+= ${LOCALBASE}/libexec/cups/filter/texttops:${PORTSDIR}/print/cups-base
XRUN_DEPENDS+=  ${LOCALBASE}/libexec/cups/filter/texttops:${PORTSDIR}/print/cups-base
X.elif defined(WITH_MPAGE)
XBUILD_DEPENDS+= ${LOCALBASE}/bin/mapge:${PORTSDIR}/print/mpage
XRUN_DEPENDS+= ${LOCALBASE}/bin/mapge:${PORTSDIR}/print/mpage
X.elif defined(WITH_ENSCRIPT)
XBUILD_DEPENDS+= ${LOCALBASE}/bin/enscript:${PORTSDIR}/print/enscript-letter
XRUN_DEPENDS+= ${LOCALBASE}/bin/enscript:${PORTSDIR}/print/enscript-letter
X.elif defined(WITH_A2PS)
XBUILD_DEPENDS+= ${LOCALBASE}/bin/a2ps:${PORTSDIR}/print/a2ps-letter
XRUN_DEPENDS+= ${LOCALBASE}/bin/a2ps:${PORTSDIR}/print/a2ps-letter
X.endif
X
Xpre-install:
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "####################################"
X	@${ECHO_MSG} "foomatic-filters depends on a postscript-filter."
X	@${ECHO_MSG} "It will check for CUPS, mapge, enscript and a2ps"
X	@${ECHO_MSG} "and use the ones it founds. If none are found, "
X	@${ECHO_MSG} "the default dependecy is CUPS. If you want other"
X	@${ECHO_MSG} "or additional dependecies, use:"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "WITH_CUPS"
X	@${ECHO_MSG} "WITH_MPAGE"
X	@${ECHO_MSG} "WITH_ENSCRIPT"
X	@${ECHO_MSG} "WITH_A2PSs"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "If CUPS is installed, foomatic-filters will "
X	@${ECHO_MSG} "register istself as a CUPS-filter"
X	@${ECHO_MSG} "####################################"
X	@sleep 5
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/foomatic-rip ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/foomatic-gswrapper ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/filter.conf ${PREFIX}/etc/filter.conf.example
X	${INSTALL_MAN} ${WRKSRC}/foomatic-rip.1 ${PREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/foomatic-gswrapper.1 ${PREFIX}/man/man1
X	@if [ -d ${LOCALBASE}/libexec/cups ]; then                            \
X                ${ECHO} "########################################" ;  \
X                ${ECHO} "CUPS detected!" ;  \
X                ${ECHO} "Installing foomatic-rip as a cups-filter" ;  \
X                ${ECHO} "########################################" ;  \
X                /bin/ln -s ${PREFIX}/bin/foomatic-rip ${LOCALBASE}/libexec/cups/filter/foomatic-rip ;  \
X        fi
X
X
Xpost-install:
X	/bin/cat pkg-message
X	
X.include <bsd.port.post.mk>
END-of-foomatic-filters/Makefile
echo x - foomatic-filters/distinfo
sed 's/^X//' >foomatic-filters/distinfo << 'END-of-foomatic-filters/distinfo'
XMD5 (foomatic-filters-3.0.2.tar.gz) = f0f4c90fa0ae346f53bf19a165e071a6
XSIZE (foomatic-filters-3.0.2.tar.gz) = 125875
END-of-foomatic-filters/distinfo
echo x - foomatic-filters/pkg-descr
sed 's/^X//' >foomatic-filters/pkg-descr << 'END-of-foomatic-filters/pkg-descr'
XFoomatic is a database-driven system for integrating free software 
Xprinter drivers with common spoolers under Unix. 
X
XIt supports CUPS, LPRng, LPD, GNUlpr, PPR, PDQ, CPS, 
Xand direct printing with every free software printer driver 
Xknown to us and every printer known to work with these drivers.
X
XWWW: http://www.linuxprinting.org/foomatic.html
X
X- Jonathan Weiss
Xtomonage2@gmx.de
END-of-foomatic-filters/pkg-descr
echo x - foomatic-filters/pkg-deinstall
sed 's/^X//' >foomatic-filters/pkg-deinstall << 'END-of-foomatic-filters/pkg-deinstall'
X#!/bin/sh
X
Xif [ "$2" != "POST-DEINSTALL" ]; then
X    exit 0
Xfi
X
Xif [ -h ${PKG_PREFIX}/libexec/cups/filter/foomatic-rip ]; then	\
X	echo "#########################################" ; \
X	echo "Deleting foomatic-rip as a cups-filter..." ; \
X	echo "#########################################" ; \
X	/bin/rm ${PKG_PREFIX}/libexec/cups/filter/foomatic-rip ; \
X	exit 0; \ 
Xfi
END-of-foomatic-filters/pkg-deinstall
echo x - foomatic-filters/pkg-message
sed 's/^X//' >foomatic-filters/pkg-message << 'END-of-foomatic-filters/pkg-message'
X########################################
X#
X# foomatic-filter needs the fdescfs
X# filesystem mounted in order to work 
X# properly.
X#
X# To do this, add something like this
X# to your startup script, e.g. /etc/rc.local 
X#
X# /sbin/mount_fdescfs fdescfs /dev/fd
X#
X########################################
END-of-foomatic-filters/pkg-message
exit


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501141626.j0EGQmZP044135>