foomatic-filters: revert 4.0.17 update.

This is incompatible with foomatic-ppd and breaks bulk builds.

Requested by wiz@
This commit is contained in:
bsiegert 2023-07-24 19:25:36 +00:00
parent ee30d5c216
commit 71cf40b701
13 changed files with 73 additions and 119 deletions

View File

@ -1,10 +1,11 @@
# $NetBSD: Makefile,v 1.18 2023/07/23 10:17:23 bsiegert Exp $
# $NetBSD: Makefile,v 1.19 2023/07/24 19:25:36 bsiegert Exp $
META_PACKAGE= yes
.include "../../print/foomatic-filters/Makefile.common"
DISTNAME= foomatic-filters-cups-${FOOMATIC_FILTERS_VERSION}
PKGREVISION= 4
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Foomatic support for CUPS

View File

@ -1,8 +1,9 @@
# $NetBSD: Makefile,v 1.42 2023/07/23 10:17:23 bsiegert Exp $
# $NetBSD: Makefile,v 1.43 2023/07/24 19:25:36 bsiegert Exp $
.include "Makefile.common"
DISTNAME= foomatic-filters-${FOOMATIC_FILTERS_VERSION}
PKGREVISION= 20
MASTER_SITES= http://www.openprinting.org/download/foomatic/oldstuff/
MAINTAINER= pkgsrc-users@NetBSD.org
@ -11,13 +12,13 @@ LICENSE= gnu-gpl-v2
CONFLICTS+= foomatic-gswrapper-[0-9]*
USE_TOOLS+= gmake gs:run perl:run pkg-config autoconf automake autoreconf
USE_TOOLS+= gmake gs:run perl:run
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --disable-file-converter-check
CUPS_FILTERDIR= ${PREFIX}/libexec/cups/filter
CUPS_FILTERDIR= ${LOCALBASE}/libexec/cups/filter
CONFIGURE_ENV+= CUPS_FILTERS=${CUPS_FILTERDIR}
FILES_SUBST+= CUPS_FILTERDIR=${CUPS_FILTERDIR}
@ -58,11 +59,7 @@ CONF_FILES= ${EGDIR}/filter.conf ${CONFDIR}/filter.conf
INSTALLATION_DIRS+= ${EGDIR}
pre-configure:
cd ${WRKSRC} && ${TOOLS_PATH.autoreconf} -vi
post-install:
${INSTALL_DATA} ${WRKSRC}/filter.conf ${DESTDIR}${EGDIR}
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -1,8 +1,8 @@
# $NetBSD: Makefile.common,v 1.3 2023/07/23 10:17:23 bsiegert Exp $
# $NetBSD: Makefile.common,v 1.4 2023/07/24 19:25:36 bsiegert Exp $
#
# used by print/foomatic-filters/Makefile
# used by print/foomatic-filters-cups/Makefile
FOOMATIC_FILTERS_VERSION= 4.0.17
FOOMATIC_FILTERS_VERSION= 3.0.2
CATEGORIES= print
HOMEPAGE= http://www.linuxprinting.org/foomatic.html

View File

@ -1,6 +1,6 @@
@comment $NetBSD: PLIST,v 1.3 2023/07/23 10:17:23 bsiegert Exp $
@comment $NetBSD: PLIST,v 1.4 2023/07/24 19:25:36 bsiegert Exp $
bin/foomatic-gswrapper
bin/foomatic-rip
man/man1/foomatic-gswrapper.1
man/man1/foomatic-rip.1
share/examples/foomatic/filter.conf
share/examples/foomatic/filter.conf.sample
@pkgdir share/examples/foomatic/direct

View File

@ -1,10 +1,8 @@
$NetBSD: distinfo,v 1.10 2023/07/23 10:17:23 bsiegert Exp $
$NetBSD: distinfo,v 1.11 2023/07/24 19:25:36 bsiegert Exp $
BLAKE2s (foomatic-filters-4.0.17.tar.gz) = 918beef56eeed1c796cd9defc1d60c69840e068d2f6fd5392feb98fdd5b14875
SHA512 (foomatic-filters-4.0.17.tar.gz) = f07d2ac64a28e9353418deb9dd2009f5ef7676ab268af211edfcd012c231c9081516dae450f2b7910b687f75f7e53c8198fda2508f3fd527120940b4905292dd
Size (foomatic-filters-4.0.17.tar.gz) = 266276 bytes
SHA1 (patch-Makefile.am) = fa8b549d58171299fe8921fe31b5c27ddaa11538
SHA1 (patch-configure.ac) = 9cefd7a9f3fb1ff07c247e69a0bf3c678c1f1841
SHA1 (patch-process.c) = 6eb16c17153b1435a26d8b3c56677f06eacb809f
SHA1 (patch-util.c) = de0732672e510cb13432f89aebd4bcd74a92c84e
SHA1 (patch-util.h) = ca0bdade982b07eb0302bb1647304775cc0e912a
BLAKE2s (foomatic-filters-3.0.2.tar.gz) = 214ff6154f1a162ba5bfc3da653839f1fa8e7bf316657952f4f1c730b5f65aa4
SHA512 (foomatic-filters-3.0.2.tar.gz) = 6159531f004e18e5f8ec822befc5c6c26a98103ede4fd18a661fdeeb0054700dae2aabec57de43e275c18718d8e3a3ed3abd5dd8a9e809a5ee1453b69de7f0c2
Size (foomatic-filters-3.0.2.tar.gz) = 125875 bytes
SHA1 (patch-aa) = 4b471d5fec7147d82eba47512bf851ed0b9d97a3
SHA1 (patch-foomatic-gswrapper.in) = 7622c2e1e6e21b996207d74414d29c36012e2867
SHA1 (patch-makeMan.in) = 2e317a37ae0f605f57a15555003b09dcc4b53f79

View File

@ -1,15 +0,0 @@
$NetBSD: patch-Makefile.am,v 1.1 2023/07/23 10:17:23 bsiegert Exp $
Install config files to EGDIR.
--- Makefile.am.orig 2012-07-02 14:50:46.000000000 +0000
+++ Makefile.am
@@ -14,7 +14,7 @@ SRC=@srcdir@
BINDIR=$(bindir)
SBINDIR=$(sbindir)
MANDIR=$(mandir)
-ETCDIR=$(sysconfdir)/foomatic
+ETCDIR=$(prefix)/share/examples/foomatic
INSTALL=@INSTALL@
# Paths for CUPS

View File

@ -0,0 +1,22 @@
$NetBSD: patch-aa,v 1.6 2023/07/24 19:25:36 bsiegert Exp $
--- foomatic-rip.in.orig 2004-08-26 15:53:35.000000000 -0500
+++ foomatic-rip.in 2006-10-02 19:23:18.000000000 -0500
@@ -47,7 +47,7 @@
my $execpath = "@prefix@/bin:/usr/local/bin:/usr/bin:/bin";
# CUPS raster drivers are searched here
-my $cupsfilterpath = "@prefix@/lib/cups/filter:/usr/local/lib/cups/filter:/usr/local/libexec/cups/filter:/opt/cups/filter:/usr/lib/cups/filter";
+my $cupsfilterpath = "@CUPS_FILTERS@:@prefix@/lib/cups/filter";
# Location of the configuration file "filter.conf", this file can be
# used to change the settings of foomatic-rip without editing
@@ -5919,7 +5919,7 @@
" # Custom page size settings\n",
" # We aren't really checking for " .
"legal vals.\n",
- " if [ \"x\${$varn}\" == 'x$val' ]; " .
+ " if [ \"x\${$varn}\" = 'x$val' ]; " .
"then\n",
" $varn=\"\${$varn}.\${PageWidth}" .
"x\${PageHeight}\${PageSizeUnit}\"\n",

View File

@ -1,15 +0,0 @@
$NetBSD: patch-configure.ac,v 1.1 2023/07/23 10:17:23 bsiegert Exp $
Add check for strlcpy and strlcat.
--- configure.ac.orig 2012-07-02 14:50:46.000000000 +0000
+++ configure.ac
@@ -43,7 +43,7 @@ AC_TYPE_SIGNAL
AC_FUNC_STRTOD
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([dup2 getcwd gethostname regcomp setenv strcasecmp strchr strcspn strdup strncasecmp strndup strrchr strstr strcasestr strtol])
-
+AC_CHECK_FUNCS([strlcpy strlcat])
ETCSEARCHPATH=${prefix}/etc:/usr/etc:/usr/local/etc
LIBSEARCHPATH=${libdir}:/usr/lib:/usr/lib64:/usr/local/lib:${prefix}/libexec:/usr/libexec:/usr/local/libexec

View File

@ -0,0 +1,17 @@
$NetBSD: patch-foomatic-gswrapper.in,v 1.3 2023/07/24 19:25:36 bsiegert Exp $
--- foomatic-gswrapper.in.orig 2004-01-22 03:42:35.000000000 +0000
+++ foomatic-gswrapper.in
@@ -19,10 +19,10 @@ my $configpath = "@sysconfdir@/foomatic"
# Set GhostScript path
my $gspath = "gs";
-$gspath = $conf{gspath} if defined(%conf) and defined $conf{gspath};
+$gspath = $conf{gspath} if %conf and defined $conf{gspath};
my $execpath = "@prefix@/bin:/usr/local/bin:/usr/bin:/bin";
# Get execution path from config file
-$execpath = $conf{execpath} if defined(%conf) and defined $conf{execpath};
+$execpath = $conf{execpath} if %conf and defined $conf{execpath};
$ENV{'PATH'} = $execpath;
grep (m!\-sOutputFile=\-!

View File

@ -0,0 +1,16 @@
$NetBSD: patch-makeMan.in,v 1.3 2023/07/24 19:25:36 bsiegert Exp $
* some platfoms does not have `file' utilty, others does not recognize such
files as `roff'.
--- makeMan.in.orig 2004-01-22 03:42:35.000000000 +0000
+++ makeMan.in
@@ -29,8 +29,6 @@ foreach my $file (@files)
next unless -f $file and $file =~ /^(.*\.[1-9])\.in$/;
my ($man) = $1;
$man =~ s,.*/,,;
- next unless ((`file $file` =~ m/\b[ntg]roff\b/) or
- (`file $file` =~ m/\[nt\]roff/));
print STDERR "MATCHED\n" if $VERBOSE;
$append = '';
open IN, "<$file" or (warn "Can't read input file $file!" and next FILE);

View File

@ -1,14 +0,0 @@
$NetBSD: patch-process.c,v 1.1 2023/07/23 10:17:23 bsiegert Exp $
signal.h is required to use the kill function.
--- process.c.orig 2012-07-02 14:50:46.000000000 +0000
+++ process.c
@@ -28,6 +28,7 @@
#include <sys/wait.h>
#include <errno.h>
#include <stdlib.h>
+#include <signal.h>
int kidgeneration = 0;

View File

@ -1,34 +0,0 @@
$NetBSD: patch-util.c,v 1.1 2023/07/23 10:17:23 bsiegert Exp $
Use HAVE_STRLCPY and HAVE_STRLCAT.
--- util.c.orig 2012-07-02 14:50:46.000000000 +0000
+++ util.c
@@ -163,7 +163,7 @@ strcasestr (const char *haystack, const
}
#endif
-#ifndef __OpenBSD__
+#ifndef HAVE_STRLCPY
size_t strlcpy(char *dest, const char *src, size_t size)
{
char *pdest = dest;
@@ -182,7 +182,9 @@ size_t strlcpy(char *dest, const char *s
while (*psrc++);
return (psrc - src -1);
}
+#endif /* ! HAVE_STRLCPY */
+#ifndef HAVE_STRLCAT
size_t strlcat(char *dest, const char *src, size_t size)
{
char *pdest = dest;
@@ -203,7 +205,7 @@ size_t strlcat(char *dest, const char *s
return len + (psrc - src);
}
-#endif /* ! __OpenBSD__ */
+#endif /* ! HAVE_STRLCAT */
void strrepl(char *str, const char *chars, char repl)
{

View File

@ -1,19 +0,0 @@
$NetBSD: patch-util.h,v 1.1 2023/07/23 10:17:23 bsiegert Exp $
Use HAVE_STRLCPY and HAVE_STRLCAT.
--- util.h.orig 2012-07-02 14:50:46.000000000 +0000
+++ util.h
@@ -70,8 +70,12 @@ char * strcasestr (const char *haystack,
/* Copy at most size-1 characters from src to dest
dest will always be \0 terminated (unless size == 0)
returns strlen(src) */
+#ifndef HAVE_STRLCPY
size_t strlcpy(char *dest, const char *src, size_t size);
+#endif
+#ifndef HAVE_STRLCAT
size_t strlcat(char *dest, const char *src, size_t size);
+#endif
/* Replace all occurences of each of the characters in 'chars' by 'repl' */
void strrepl(char *str, const char *chars, char repl);