summaryrefslogtreecommitdiff
path: root/print/cups/patches
diff options
context:
space:
mode:
authorjlam <jlam>2001-01-11 19:00:42 +0000
committerjlam <jlam>2001-01-11 19:00:42 +0000
commit9aca250c39b7121cbd76cde85843fa90e1901b92 (patch)
treef7f9363a66b548418ffad09731f7f0068ea7ff32 /print/cups/patches
parent481d8c361263d81f9cb7a1329ee5bdb8afc0231e (diff)
downloadpkgsrc-9aca250c39b7121cbd76cde85843fa90e1901b92.tar.gz
Update cups to 1.1.5.2. No functional changes from 1.1.5.1, but NetBSD
changes were folded back into the main source tree.
Diffstat (limited to 'print/cups/patches')
-rw-r--r--print/cups/patches/patch-aa16
-rw-r--r--print/cups/patches/patch-ab13
-rw-r--r--print/cups/patches/patch-ac81
-rw-r--r--print/cups/patches/patch-ae17
-rw-r--r--print/cups/patches/patch-af118
-rw-r--r--print/cups/patches/patch-ah16
-rw-r--r--print/cups/patches/patch-ai32
-rw-r--r--print/cups/patches/patch-aj14
-rw-r--r--print/cups/patches/patch-ak17
9 files changed, 18 insertions, 306 deletions
diff --git a/print/cups/patches/patch-aa b/print/cups/patches/patch-aa
index 61f7c97445a..f1ca461a884 100644
--- a/print/cups/patches/patch-aa
+++ b/print/cups/patches/patch-aa
@@ -1,18 +1,8 @@
-$NetBSD: patch-aa,v 1.5 2000/12/21 14:59:38 jlam Exp $
+$NetBSD: patch-aa,v 1.6 2001/01/11 19:00:43 jlam Exp $
---- Makedefs.in.orig Mon Oct 16 19:02:08 2000
+--- Makedefs.in.orig Wed Jan 3 12:44:39 2001
+++ Makedefs.in
-@@ -46,14 +46,21 @@
- SHELL = /bin/sh
-
- #
-+# CUPS administrator user and group...
-+#
-+
-+CUPS_USER = @CUPS_USER@
-+CUPS_GROUP = @CUPS_GROUP@
-+
-+#
+@@ -48,11 +48,11 @@
# Installation programs...
#
diff --git a/print/cups/patches/patch-ab b/print/cups/patches/patch-ab
index ed0cd005e16..1cdbc6fcba7 100644
--- a/print/cups/patches/patch-ab
+++ b/print/cups/patches/patch-ab
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.6 2000/12/21 16:59:32 jlam Exp $
+$NetBSD: patch-ab,v 1.7 2001/01/11 19:00:43 jlam Exp $
---- Makefile.orig Thu Dec 21 08:45:21 2000
+--- Makefile.orig Wed Jan 3 12:44:40 2001
+++ Makefile
@@ -60,8 +60,8 @@
echo Installing in $$dir... ;\
@@ -13,12 +13,3 @@ $NetBSD: patch-ab,v 1.6 2000/12/21 16:59:32 jlam Exp $
echo Installing in data...
(cd data; $(MAKE) $(MFLAGS) install)
echo Installing in doc...
-@@ -75,7 +75,7 @@
- echo Installing in templates...
- (cd templates; $(MAKE) $(MFLAGS) install)
- echo Installing startup script...
-- if test "x$INITDIR" != "x"; then \
-+ if test "x$(INITDIR)" != "x"; then \
- $(MKDIR) $(prefix)/$(INITDIR)/init.d; \
- $(RM) $(prefix)/$(INITDIR)/init.d/cups; \
- $(INSTALL_SCRIPT) cups.sh $(prefix)/$(INITDIR)/init.d/cups; \
diff --git a/print/cups/patches/patch-ac b/print/cups/patches/patch-ac
index b68e6cb0123..8f0a41adfe8 100644
--- a/print/cups/patches/patch-ac
+++ b/print/cups/patches/patch-ac
@@ -1,82 +1,13 @@
-$NetBSD: patch-ac,v 1.5 2000/12/21 16:59:32 jlam Exp $
+$NetBSD: patch-ac,v 1.6 2001/01/11 19:00:43 jlam Exp $
---- backend/serial.c.orig Thu Dec 21 08:45:21 2000
+--- backend/serial.c.orig Wed Jan 3 12:44:40 2001
+++ backend/serial.c
-@@ -48,9 +48,9 @@
- # include <unistd.h>
- # include <fcntl.h>
- # include <termios.h>
--# ifdef __linux
-+# ifdef HAVE_SYS_IOCTL_H
- # include <sys/ioctl.h>
--# endif /* __linux */
-+# endif /* HAVE_SYS_IOCTL_H */
- #endif /* WIN32 || __EMX__ */
-
- #ifdef __sgi
-@@ -484,10 +484,10 @@
- void
- list_devices(void)
- {
--#if defined(__hpux) || defined(__sgi) || defined(__sun) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
-+#if defined(__hpux) || defined(__sgi) || defined(__sun) || defined(__FreeBSD__) || defined(__OpenBSD__)
- static char *funky_hex = "0123456789abcdefghijklmnopqrstuvwxyz";
- /* Funky hex numbering used for some devices */
--#endif /* __hpux || __sgi || __sun || __FreeBSD__ || __NetBSD__ || __OpenBSD__ */
-+#endif /* __hpux || __sgi || __sun || __FreeBSD__ || __OpenBSD__ */
-
- #ifdef __linux
- int i; /* Looping var */
-@@ -718,7 +718,7 @@
- printf("serial serial:%s?baud=38400 \"Unknown\" \"Serial Port #%d\"\n",
+@@ -800,7 +800,7 @@
device, i + 1);
+ }
}
--#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
-+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+-+#elif defined(__NetBSD__)
++#elif defined(__NetBSD__)
int i, j; /* Looping vars */
int fd; /* File descriptor */
char device[255]; /* Device filename */
-@@ -800,6 +800,43 @@
- device, i + 1);
- }
- }
-++#elif defined(__NetBSD__)
-+ int i, j; /* Looping vars */
-+ int fd; /* File descriptor */
-+ char device[255]; /* Device filename */
-+
-+
-+ /*
-+ * Standard serial ports...
-+ */
-+
-+ for (i = 0; i < 4; i ++)
-+ {
-+ sprintf(device, "/dev/tty%02d", i);
-+ if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0)
-+ {
-+ close(fd);
-+ printf("serial serial:%s?baud=115200 \"Unknown\" \"Serial Port #%d\"\n",
-+ device, i + 1);
-+ }
-+ }
-+
-+ /*
-+ * Cyclades-Z ports...
-+ */
-+
-+ for (i = 0; i < 16; i ++) /* Should be up to 65536 boards... */
-+ for (j = 0; j < 64; j ++)
-+ {
-+ sprintf(device, "/dev/ttyCZ%02d%02d", i, j);
-+ if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0)
-+ {
-+ close(fd);
-+ printf("serial serial:%s?baud=115200 \"Unknown\" \"Cyclades #%d Serial Prt #%d\"\n",
-+ device, i, j + 1);
-+ }
-+ }
-+
- #endif
- }
-
diff --git a/print/cups/patches/patch-ae b/print/cups/patches/patch-ae
deleted file mode 100644
index 2015a2f7496..00000000000
--- a/print/cups/patches/patch-ae
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-ae,v 1.4 2000/12/21 14:59:38 jlam Exp $
-
---- config.h.in.orig Mon Oct 16 19:02:08 2000
-+++ config.h.in
-@@ -89,6 +89,12 @@
- #undef HAVE_CRYPT_H
-
- /*
-+ * Do we have <sys/ioctl.h>?
-+ */
-+
-+#undef HAVE_SYS_IOCTL_H
-+
-+/*
- * Do we have the strXXX() functions?
- */
-
diff --git a/print/cups/patches/patch-af b/print/cups/patches/patch-af
index 8b528e51482..f84596f30af 100644
--- a/print/cups/patches/patch-af
+++ b/print/cups/patches/patch-af
@@ -1,119 +1,15 @@
-$NetBSD: patch-af,v 1.4 2000/12/21 16:59:32 jlam Exp $
+$NetBSD: patch-af,v 1.5 2001/01/11 19:00:43 jlam Exp $
---- configure.in.orig Thu Dec 21 08:45:21 2000
+--- configure.in.orig Wed Jan 3 12:44:40 2001
+++ configure.in
-@@ -117,4 +117,12 @@
- AC_ARG_WITH(fontpath, [ --with-fontpath set font path for pstoraster],fontpath="$withval",fontpath="")
-
-+AC_ARG_WITH(cups-user, [ --with-cups-user=USERID
-+ use USERID as cups userid [default=lp]], CUPS_USER="$withval", CUPS_USER="lp")
-+AC_ARG_WITH(cups-group, [ --with-cups-group=GROUPID
-+ use GROUPID as cups group [default=sys]], CUPS_GROUP="$withval", CUPS_GROUP="sys")
-+
-+AC_SUBST(CUPS_USER)
-+AC_SUBST(CUPS_GROUP)
-+
- dnl Checks for programs...
- AC_PROG_AWK
-@@ -201,9 +209,24 @@
- SAVELIBS="$LIBS"
-
-- LIBS="-lcrypto $LIBS"
-- AC_CHECK_LIB(ssl,SSL_new,
-- SSLLIBS="-lssl -lcrypto"
-- AC_DEFINE(HAVE_LIBSSL)
-- )
-+ dnl Some ELF systems can't resolve all the symbols in libcrypto
-+ dnl if libcrypto was linked against RSAREF, and fail to link the
-+ dnl test program correctly, even though a correct installation
-+ dnl of OpenSSL exists. So we test the linking three times in
-+ dnl case the RSAREF libraries are needed.
-+ dnl
-+ for libcrypto in \
-+ "-lcrypto" \
-+ "-lcrypto -lrsaref" \
-+ "-lcrypto -lRSAglue -lrsaref"
-+ do
-+ AC_CHECK_LIB(ssl,SSL_new,
-+ [SSLLIBS="-lssl $libcrypto"
-+ AC_DEFINE(HAVE_LIBSSL)],,
-+ $libcrypto
-+ )
-+ if test "x${SSLLIBS}" != "x"; then
-+ break
-+ fi
-+ done
-
- LIBS="$SAVELIBS"
-@@ -257,4 +280,5 @@
- AC_CHECK_HEADER(stddef.h,AC_DEFINE(HAVE_STDDEF_H))
- AC_CHECK_HEADER(stdlib.h,AC_DEFINE(HAVE_STDLIB_H))
-+AC_CHECK_HEADER(sys/ioctl.h,AC_DEFINE(HAVE_SYS_IOCTL_H))
-
- dnl Checks for string functions.
-@@ -396,5 +420,5 @@
- else
- datadir="$prefix/share"
-- fi
-+ fi
- fi
-
-@@ -429,9 +453,18 @@
- dnl Fix "mandir" variable...
- if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
-- if test "$uname" = "IRIX"; then
-- mandir="/usr/share/catman"
-- else
-- mandir="/usr/man"
-- fi
-+ case "$uname" in
-+ FreeBSD* | NetBSD* | OpenBSD*)
-+ # *BSD
-+ mandir="/usr/share/man"
-+ ;;
-+ IRIX*)
-+ # SGI IRIX
-+ mandir="/usr/share/catman"
-+ ;;
-+ *)
-+ # All others
-+ mandir="/usr/man"
-+ ;;
-+ esac
- fi
-
-@@ -510,11 +543,11 @@
-
- dnl Setup default locations...
--CUPS_SERVERROOT='${prefix}/etc/cups'
--CUPS_LOGDIR='${prefix}/var/log/cups'
--CUPS_REQUESTS='${prefix}/var/spool/cups'
--
--AC_DEFINE_UNQUOTED(CUPS_SERVERROOT, "$prefix/etc/cups")
--AC_DEFINE_UNQUOTED(CUPS_LOGDIR, "$prefix/var/log/cups")
--AC_DEFINE_UNQUOTED(CUPS_REQUESTS, "$prefix/var/spool/cups")
-+CUPS_SERVERROOT='${sysconfdir}/cups'
-+CUPS_LOGDIR='${localstatedir}/log/cups'
-+CUPS_REQUESTS='${localstatedir}/spool/cups'
-+
-+AC_DEFINE_UNQUOTED(CUPS_SERVERROOT, "$sysconfdir/cups")
-+AC_DEFINE_UNQUOTED(CUPS_LOGDIR, "$localstatedir/log/cups")
-+AC_DEFINE_UNQUOTED(CUPS_REQUESTS, "$localstatedir/spool/cups")
-
- dnl See what directory to put server executables...
-@@ -567,6 +600,6 @@
+@@ -591,8 +591,8 @@
+ AC_SUBST(CUPS_DATADIR)
dnl Set the CUPS_DOCROOT directory...
--CUPS_DOCROOT='${exec_prefix}/share/doc/cups'
--AC_DEFINE_UNQUOTED(CUPS_DOCROOT, "$exec_prefix/share/doc/cups")
+-CUPS_DOCROOT='${datadir}/doc/cups'
+-AC_DEFINE_UNQUOTED(CUPS_DOCROOT, "$datadir/doc/cups")
+CUPS_DOCROOT='${datadir}/doc/html/cups'
+AC_DEFINE_UNQUOTED(CUPS_DOCROOT, "$datadir/doc/html/cups")
AC_SUBST(CUPS_DOCROOT)
-@@ -574,5 +607,5 @@
- AC_DEFINE_UNQUOTED(CUPS_FONTPATH, "$fontpath")
-
--AC_OUTPUT(Makedefs cups.sh)
-+AC_OUTPUT(Makedefs cups.sh conf/cupsd.conf)
-
- dnl
+ dnl Set the CUPS_FONTPATH directory...
diff --git a/print/cups/patches/patch-ah b/print/cups/patches/patch-ah
deleted file mode 100644
index 034a7cdbb9d..00000000000
--- a/print/cups/patches/patch-ah
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-ah,v 1.3 2000/12/21 14:59:38 jlam Exp $
-
---- doc/sam.shtml.orig Wed Dec 20 12:56:33 2000
-+++ doc/sam.shtml
-@@ -243,6 +243,11 @@
- <!-- NEED 4in -->
- <H3><A NAME="INSTALLING">Installing the Software</A></H3>
-
-+<P>Before you install, you'll need to ensure that the CUPS administrator
-+user (lp) and group (sys) already exist on your system. If not, then please
-+refer to your system documentation for the procedure to add new users and
-+groups.
-+
- <P>Use the "install" target to install the software:
-
- <UL><PRE>
diff --git a/print/cups/patches/patch-ai b/print/cups/patches/patch-ai
deleted file mode 100644
index 8414350ec61..00000000000
--- a/print/cups/patches/patch-ai
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-ai,v 1.3 2000/12/21 14:59:39 jlam Exp $
-
---- filter/Makefile.orig Fri Sep 29 13:42:54 2000
-+++ filter/Makefile
-@@ -59,6 +59,13 @@
- #
-
- install:
-+ -$(MKDIR) $(LIBDIR)
-+ $(CHMOD) ugo+rx $(LIBDIR)
-+ $(INSTALL_LIB) $(LIBCUPSIMAGE) $(LIBDIR)
-+ -if test $(LIBCUPSIMAGE) != "libcupsimage.a" -a $(LIBCUPSIMAGE) != "libcupsimage.la"; then \
-+ $(RM) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
-+ $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
-+ fi
- -$(MKDIR) $(SERVERBIN)/filter
- $(CHMOD) ugo+rx $(SERVERBIN)
- $(CHMOD) ugo+rx $(SERVERBIN)/filter
-@@ -67,13 +74,6 @@
- $(CHMOD) ugo+rx $(INCLUDEDIR)
- $(CHMOD) ugo+rx $(INCLUDEDIR)/cups
- $(INSTALL_DATA) raster.h $(INCLUDEDIR)/cups
-- -$(MKDIR) $(LIBDIR)
-- $(CHMOD) ugo+rx $(LIBDIR)
-- $(INSTALL_LIB) $(LIBCUPSIMAGE) $(LIBDIR)
-- -if test $(LIBCUPSIMAGE) != "libcupsimage.a" -a $(LIBCUPSIMAGE) != "libcupsimage.la"; then \
-- $(RM) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
-- $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
-- fi
-
-
- #
diff --git a/print/cups/patches/patch-aj b/print/cups/patches/patch-aj
deleted file mode 100644
index 1899c9ae64f..00000000000
--- a/print/cups/patches/patch-aj
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-aj,v 1.3 2000/12/21 14:59:39 jlam Exp $
-
---- pdftops/Makefile.orig Thu Oct 12 22:05:10 2000
-+++ pdftops/Makefile
-@@ -18,8 +18,7 @@
- Array.o Catalog.o Dict.o Error.o FontEncoding.o \
- FontFile.o FormWidget.o Gfx.o GfxFont.o GfxState.o \
- Lexer.o Link.o Object.o OutputDev.o Page.o Params.o \
-- Parser.o PDFDoc.o PSOutputDev.o SFont.o Stream.o \
-- T1Font.o TTFont.o XRef.o
-+ Parser.o PDFDoc.o PSOutputDev.o Stream.o XRef.o
- OBJS = pdftops.o $(LIBOBJS)
-
- #
diff --git a/print/cups/patches/patch-ak b/print/cups/patches/patch-ak
deleted file mode 100644
index 0f2fdaf18d1..00000000000
--- a/print/cups/patches/patch-ak
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-ak,v 1.3 2000/12/21 14:59:39 jlam Exp $
-
---- scheduler/Makefile.orig Mon Dec 18 16:38:58 2000
-+++ scheduler/Makefile
-@@ -69,10 +69,10 @@
- $(CHMOD) ugo+rx $(LOGDIR)
- -$(MKDIR) $(REQUESTS)
- $(CHMOD) u+rwx,go-rwx $(REQUESTS)
-- $(CHOWN) lp $(REQUESTS)
-+ $(CHOWN) $(CUPS_USER) $(REQUESTS)
- -$(MKDIR) $(REQUESTS)/tmp
- $(CHMOD) u+rwx,go-rwx,+t $(REQUESTS)/tmp
-- $(CHOWN) lp $(REQUESTS)/tmp
-+ $(CHOWN) $(CUPS_USER) $(REQUESTS)/tmp
-
-
- #