summaryrefslogtreecommitdiff
path: root/print/cups/patches/patch-af
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-12-21 14:59:37 +0000
committerjlam <jlam@pkgsrc.org>2000-12-21 14:59:37 +0000
commit5c6edcdd6322dbfad79135fd79aac814e63d96b0 (patch)
tree27ad5daeff21beb3691b902b5776e70dcb7e3d7c /print/cups/patches/patch-af
parent12b759bb928f771df580908d85da4df4aad86fe1 (diff)
downloadpkgsrc-5c6edcdd6322dbfad79135fd79aac814e63d96b0.tar.gz
Update cups to 1.1.5. Relevant changes since version 1.1.4 include lots of
bug and security fixes, improvements to the efficiency of the server and utilities, improvements to the documentation, plus the following: * Security updates - new default configuration does not broadcast printer information and only allows access from the local system. * EXPERIMENTAL encryption support - CUPS now optionally supports TLS/SSL encryption via the OpenSSL library. * Updated PDF filter to Xpdf 0.91. * Added PPD files for 9-pin and 24-pin OKIDATA printers. * Changed all sprintf's that use string formats to snprintf's, even if the destination buffer is larger than the source string(s); this protects against buffer overflows caused outside of CUPS... * Changed all strcpy's to strncpy's between local and global variables, even if the destination buffer is larger than the source string; this protects against buffer overflows caused outside of CUPS... * Added new mime.types rules to allow automatic raw printing of PCL and ESC/P files; PJL headers are parsed to differentiate between PostScript and PCL job files. This should eliminate a lot of the reports of SAMBA printing problems due to the missing "-oraw" or "-l" options. * Jobs are now assigned to printers in a class round-robin style. This should prevent the first server in the class from bearing the brunt of the jobs. * The serial backend didn't support the higher baud rates with the old termios interface. It now supports 57600 and 115200 baud. * The serial backend now supports different types of flow control; previously it ignored the flow=XYZ option in the device URI. * The serial backend now supports DTR/DSR flow control, which is popular on dot-matrix printers (access with "flow=dtrdsr" in the device URI) * Added new job-originating-host-name attribute for jobs. The new attribute provides the hostname or IP address of the machine that submitted the job. * Added quota and allow/deny user support for printers and classes.
Diffstat (limited to 'print/cups/patches/patch-af')
-rw-r--r--print/cups/patches/patch-af155
1 files changed, 155 insertions, 0 deletions
diff --git a/print/cups/patches/patch-af b/print/cups/patches/patch-af
new file mode 100644
index 00000000000..f7ce9ee4136
--- /dev/null
+++ b/print/cups/patches/patch-af
@@ -0,0 +1,155 @@
+$NetBSD: patch-af,v 1.3 2000/12/21 14:59:38 jlam Exp $
+
+--- configure.in.orig Wed Dec 20 13:46:14 2000
++++ 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
+@@ -197,8 +205,25 @@
+
+ if test "$enable_ssl" = "yes"; then
+- AC_CHECK_LIB(ssl,SSL_new,
+- SSLLIBS="-lssl -lcrypto"
+- AC_DEFINE(HAVE_LIBSSL)
+- )
++ #
++ # Some ELF systems can't resolve all the symbols in libcrypto
++ # if libcrypto was linked against RSAREF, and fail to link the
++ # test program correctly, even though a correct installation
++ # of OpenSSL exists. So we test the linking three times in
++ # case the RSAREF libraries are needed.
++ #
++ 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
+ fi
+
+@@ -250,4 +275,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.
+@@ -384,10 +410,6 @@
+
+ dnl Fix "datadir" variable if it hasn't been specified...
+-if test "$datadir" = "\${prefix}/share"; then
+- if test "$prefix" = "/"; then
+- datadir="/usr/share"
+- else
+- datadir="$prefix/share"
+- fi
++if test "$datadir" = "\${prefix}/share" -a "$prefix" = "/"; then
++ datadir="/usr/share"
+ fi
+
+@@ -398,19 +420,11 @@
+
+ dnl Fix "localstatedir" variable if it hasn't been specified...
+-if test "$localstatedir" = "\${prefix}/var"; then
+- if test "$prefix" = "/"; then
+- localstatedir="/var"
+- else
+- localstatedir="$prefix/var"
+- fi
++if test "$localstatedir" = "\${prefix}/var" -a "$prefix" = "/"; then
++ localstatedir="/var"
+ fi
+
+ dnl Fix "sysconfdir" variable if it hasn't been specified...
+-if test "$sysconfdir" = "\${prefix}/etc"; then
+- if test "$prefix" = "/"; then
+- sysconfdir="/etc"
+- else
+- sysconfdir="$prefix/etc"
+- fi
++if test "$sysconfdir" = "\${prefix}/etc" -a "$prefix" = "/"; then
++ sysconfdir="/etc"
+ fi
+
+@@ -422,14 +436,23 @@
+ 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
+
+ dnl Fix "fontpath" variable...
+ if test "x$fontpath" = "x"; then
+- fontpath="$datadir/cups/fonts"
++ fontpath="$exec_prefix/share/cups/fonts"
+ fi
+
+@@ -503,11 +526,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...
+@@ -560,6 +583,6 @@
+
+ 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='${exec_prefix}/share/doc/html/cups'
++AC_DEFINE_UNQUOTED(CUPS_DOCROOT, "$exec_prefix/share/doc/html/cups")
+ AC_SUBST(CUPS_DOCROOT)
+
+@@ -567,5 +590,5 @@
+ AC_DEFINE_UNQUOTED(CUPS_FONTPATH, "$fontpath")
+
+-AC_OUTPUT(Makedefs cups.sh)
++AC_OUTPUT(Makedefs cups.sh conf/cupsd.conf)
+
+ dnl