Update to foomatic-db-engine-4.0.3.

Add a link from foomatic-ppdfile  to the CUPS driver directory so that
PPDs file will be created on demand (no need to hunt for them on
openprinting.org).

Merge MESSAGE from foomatic-db-gutenprint to be more coherent.

Rework dependencies:
foomatic-db{gutenprint,hpijs}->foomatic-db->foomatic-db-engine
This commit is contained in:
ajacoutot 2009-12-10 10:57:59 +00:00
parent 9f0b30e126
commit 09adbe6dc8
6 changed files with 95 additions and 44 deletions

View File

@ -1,42 +1,41 @@
# $OpenBSD: Makefile,v 1.5 2008/12/20 21:15:56 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.6 2009/12/10 10:57:59 ajacoutot Exp $
COMMENT= Foomatic PPD generator
V= 20070919
DISTNAME= foomatic-db-engine-3.0-${V}
PKGNAME= foomatic-db-engine-3.0.${V}p0
DISTNAME= foomatic-db-engine-4.0.3
CATEGORIES= print
HOMEPAGE= http://www.linux-foundation.org/en/OpenPrinting/Database/Foomatic
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPL
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
# tarballs are only available for a 24 hour period
#MASTER_SITES= http://www.linuxprinting.org/download/foomatic/
MASTER_SITES= http://jakemsr.trancell.org/distfiles/ \
http://openbsd.dead-parrot.de/distfiles/ \
http://www.bsdfrog.org/OpenBSD/distfiles/
MASTER_SITES= http://www.linuxprinting.org/download/foomatic/ \
http://www.openprinting.org/download/foomatic/ \
http://www.linuxprinting.org/download/foomatic/oldstuff/ \
http://www.openprinting.org/download/foomatic/oldstuff/
MODULES= converters/libiconv
LIB_DEPENDS= xml2.>=8::textproc/libxml
BUILD_DEPENDS= ::print/foomatic-filters
RUN_DEPENDS= ::print/foomatic-filters \
::print/foomatic-db
WANTLIB= c iconv m z
:curl-*|wget-*:net/curl
WANTLIB= c m z
USE_GMAKE= Yes
NO_REGRESS= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --without-ppr \
--disable-gscheck
CONFIGURE_ARGS= --disable-gscheck
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libxml2" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBDIR="${LOCALBASE}/share/foomatic" \
FOOMATIC_RIP="${LOCALBASE}/bin/foomatic-rip" \
GS="${LOCALBASE}/bin/gs" \
A2PS="${LOCALBASE}/bin/a2ps" \
GS="${LOCALBASE}/bin/gs" \
@ -72,12 +71,21 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libxml2"
CUPS_REJECT="${LOCALBASE}/sbin/reject" \
CUPS_LPMOVE="${LOCALBASE}/sbin/lpmove" \
CUPS_LPOPTIONS="${LOCALBASE}/bin/lpoptions" \
CUPS_LPINFO="${LOCALBASE}/sbin/lpinfo"
NO_REGRESS= Yes
CUPS_LPINFO="${LOCALBASE}/sbin/lpinfo" \
CUPS_PCONF="${SYSCONFDIR}/cups/printers.conf" \
PRINTCAP="/etc/printcap"
pre-configure:
@perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g' \
${WRKSRC}/foomatic-combo-xml.c
${SUBST_CMD} ${WRKSRC}/foomatic-combo-xml.c \
${WRKSRC}/Makefile.in
perl -pi -e 's,!!SYSCONFDIR!!,${SYSCONFDIR},g;' \
-e 's,!!LOCALBASE!!,${LOCALBASE},g' \
${WRKSRC}/configure
# make CUPS generate Foomatic PPDs on demand
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/libexec/cups/driver
ln -sf ${TRUEPREFIX}/bin/foomatic-ppdfile \
${WRKINST}/${LOCALBASE}/libexec/cups/driver/foomatic
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
MD5 (foomatic-db-engine-3.0-20070919.tar.gz) = kysz8+eHyJUiAPKKUcLYoA==
RMD160 (foomatic-db-engine-3.0-20070919.tar.gz) = 2LrJ0lNULHscxacV9cUsJPJuO8M=
SHA1 (foomatic-db-engine-3.0-20070919.tar.gz) = XJ5XttExr8/cY9vl+I2a66wbNeY=
SHA256 (foomatic-db-engine-3.0-20070919.tar.gz) = e9VBKLC578ABoRmjHX4X0WONdGKaPcumNbQVuUuMtvk=
SIZE (foomatic-db-engine-3.0-20070919.tar.gz) = 331480
MD5 (foomatic-db-engine-4.0.3.tar.gz) = /bAhdcyFf2O7BrJaw7Fliw==
RMD160 (foomatic-db-engine-4.0.3.tar.gz) = s3/2IXPBXq2UJD8AiyfZEmnjDxA=
SHA1 (foomatic-db-engine-4.0.3.tar.gz) = jc1ux4fwqefhi6HjuBoEXLeHb6s=
SHA256 (foomatic-db-engine-4.0.3.tar.gz) = jiEWUnwbRWiB4/oC7iEIICxcHokysqH8hZN0z3dRUic=
SIZE (foomatic-db-engine-4.0.3.tar.gz) = 343161

View File

@ -1,7 +1,32 @@
$OpenBSD: patch-configure,v 1.2 2007/09/26 08:25:34 ajacoutot Exp $
--- configure.orig Wed Sep 19 21:49:51 2007
+++ configure Tue Sep 25 12:29:50 2007
@@ -3860,13 +3860,13 @@ else
$OpenBSD: patch-configure,v 1.3 2009/12/10 10:57:59 ajacoutot Exp $
--- configure.orig Wed Aug 19 20:09:16 2009
+++ configure Mon Dec 7 18:30:23 2009
@@ -3921,15 +3921,15 @@ done
-SPOOLSEARCHPATH=/var/spool:/usr/spool/:/usr/local/spool:/usr/local/var/spool:/var/local/spool:/var/local
-LOGSEARCHPATH=/var/log:/usr/log:/usr/local/log:/usr/local/var/log:/var/local/log:/var/local
-SYSCONFSEARCHPATH=/etc:/usr/etc:/usr/local/etc:/var/etc
-SBINSEARCHPATH=/usr/sbin:/sbin:/usr/local/sbin:/etc/sbin
-BINSEARCHPATH=/usr/bin:/bin:/usr/local/bin
-DATASEARCHPATH=/usr/share:/usr/local/share:/usr/lib:/usr/local/lib:/opt
-LIBSEARCHPATH=/usr/lib:/lib:/usr/local/lib:/usr/local/libexec:/opt
-PTALPIPESSEARCHPATH=/var/run:/var:/var/ptal:/usr/var/run:/usr/var:/usr/var/ptal:/usr/local/var/run:/usr/local/var:/usr/local/var/ptal:/dev:/dev/ptal
-MTINKPIPESSEARCHPATH=/var:/var/run:/usr/var/:/usr/var/run:/usr/local/var:/usr/local/var/run:/dev
+SPOOLSEARCHPATH=/var/spool
+LOGSEARCHPATH=/var/log
+SYSCONFSEARCHPATH=!!SYSCONFDIR!!
+SBINSEARCHPATH=/usr/sbin:/sbin:!!LOCALBASE!!/sbin:/etc/sbin
+BINSEARCHPATH=/usr/bin:/bin:!!LOCALBASE!!/bin
+DATASEARCHPATH=/usr/share:!!LOCALBASE!!/share:/usr/lib:!!LOCALBASE!!/lib
+LIBSEARCHPATH=/usr/lib:/lib:!!LOCALBASE!!/lib:!!LOCALBASE!!/libexec:
+PTALPIPESSEARCHPATH=/var/run
+MTINKPIPESSEARCHPATH=/var/run
# There is a bug in some versions of autoconf that causes
# bad expansion of paths in the AC_PATH_* macros. This is very annoying
@@ -4394,13 +4394,13 @@ else
PREFIX=$prefix
fi
echo -n Checking whether Perl will find libraries installed under $PREFIX...
@ -17,7 +42,16 @@ $OpenBSD: patch-configure,v 1.2 2007/09/26 08:25:34 ajacoutot Exp $
PERLPREFIX=/usr/local
echo " yes"
echo Installing the Perl libraries with prefix /usr/local.
@@ -5313,7 +5313,7 @@ fi
@@ -4417,7 +4417,7 @@ fi
PERL_INSTALLDIRS=site
-for ac_prog in bash sh
+for ac_prog in sh
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -5873,7 +5873,7 @@ fi
done
test -n "$CUPS_LPINFO" || CUPS_LPINFO="/usr/sbin/lpinfo"
@ -26,7 +60,7 @@ $OpenBSD: patch-configure,v 1.2 2007/09/26 08:25:34 ajacoutot Exp $
for ac_dir in pdq
do
# Extract the first word of "$ac_dir", so it can be a program name with args.
@@ -5446,8 +5446,9 @@ fi
@@ -6008,8 +6008,9 @@ fi
test -n "$PDQ_PRINT" && break
done
test -n "$PDQ_PRINT" || PDQ_PRINT="/usr/bin/pdq"
@ -37,7 +71,7 @@ $OpenBSD: patch-configure,v 1.2 2007/09/26 08:25:34 ajacoutot Exp $
for ac_prog in ppr/bin/pprd
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -5756,7 +5757,7 @@ fi
@@ -6322,7 +6323,7 @@ fi
test -n "$PPR_PPOP" && break
done
test -n "$PPR_PPOP" || PPR_PPOP="/usr/bin/ppop"

View File

@ -1,12 +1,12 @@
$OpenBSD: patch-foomatic-combo-xml_c,v 1.1 2007/09/26 08:25:34 ajacoutot Exp $
--- foomatic-combo-xml.c.orig Tue Sep 25 12:38:18 2007
+++ foomatic-combo-xml.c Tue Sep 25 12:38:49 2007
@@ -1930,7 +1930,7 @@ main(int argc, /* I - Number of command-line argu
$OpenBSD: patch-foomatic-combo-xml_c,v 1.2 2009/12/10 10:57:59 ajacoutot Exp $
--- foomatic-combo-xml.c.orig Wed Aug 19 20:09:13 2009
+++ foomatic-combo-xml.c Mon Dec 7 14:30:53 2009
@@ -2087,7 +2087,7 @@ main(int argc, /* I - Number of command-line argu
/* Set libdir to the default if empty */
if (libdir == NULL)
- libdir = "/usr/share/foomatic";
+ libdir = "!!LOCALBASE!!/share/foomatic";
+ libdir = "${LOCALBASE}/share/foomatic";
/* Load translation table for old printer IDs */
sprintf(oldidfilename, "%s/db/oldprinterids",

View File

@ -1,5 +1,11 @@
If you use CUPS and want it to generate Foomatic PPDs on demand, create
a symlink from foomatic-ppdfile(1) to the CUPS PPD generator directory:
PPD files can be generated using foomatic-ppdfile(1) as in the following
example for an Epson Stylus C64:
# ln -sf ${PREFIX}/bin/foomatic-ppdfile \
${LOCALBASE}/libexec/cups/driver/foomatic
$ foomatic-ppdfile -P C64
Epson Stylus C64 Id='Epson-Stylus_C64' Driver='gutenprint' CompatibleDrivers='gimp-print gutenprint gutenprint-ijs-simplified.5.2 gutenprint-ijs.5.2 '
$ foomatic-ppdfile -p 'Epson-Stylus_C64' -d 'gutenprint-ijs.5.2' > C64.ppd
C64.ppd can then be used with CUPS or with lpd(8) and foomatic-rip(1) as
the input filter.
Drivers availability depends on what db you have installed on your system
(i.e. foomatic-db, foomatic-db-gutenprint, foomatic-db-hpijs...).

View File

@ -1,10 +1,11 @@
@comment $OpenBSD: PLIST,v 1.2 2007/09/26 08:25:34 ajacoutot Exp $
bin/foomatic-combo-xml
@comment $OpenBSD: PLIST,v 1.3 2009/12/10 10:57:59 ajacoutot Exp $
@bin bin/foomatic-combo-xml
bin/foomatic-compiledb
bin/foomatic-configure
bin/foomatic-datafile
bin/foomatic-perl-data
@bin bin/foomatic-perl-data
bin/foomatic-ppd-options
bin/foomatic-ppd-to-xml
bin/foomatic-ppdfile
bin/foomatic-printjob
bin/foomatic-searchprinter
@ -13,6 +14,8 @@ libdata/perl5/site_perl/Foomatic/DB.pm
libdata/perl5/site_perl/Foomatic/Defaults.pm
libdata/perl5/site_perl/Foomatic/PPD.pm
libdata/perl5/site_perl/Foomatic/UIElem.pm
libexec/cups/driver/
libexec/cups/driver/foomatic
@man man/man1/foomatic-combo-xml.1
@man man/man1/foomatic-compiledb.1
@man man/man1/foomatic-configure.1