summaryrefslogtreecommitdiff
path: root/print/cups/patches
diff options
context:
space:
mode:
authorfredb <fredb>2003-03-20 17:30:17 +0000
committerfredb <fredb>2003-03-20 17:30:17 +0000
commit51c060ee07c00f5cc26231e8184457f601a11d56 (patch)
tree515c5ab5adaf52c0e00f68491520b801c7d621e9 /print/cups/patches
parent929a0cf42edccf80df538a4017b811ad60aaa14c (diff)
downloadpkgsrc-51c060ee07c00f5cc26231e8184457f601a11d56.tar.gz
Give authentication with blowfish hashes a fighting chance to work on
NetBSD, by linking in -lcrypt before -lcrypto in the shared library and scheduler. (cups_crypto() looks to fall-back to crypt(). Both of the shared libraries in question have crypt(), but only the one in -lcrypt supports blowfish hashes.) Not tested.
Diffstat (limited to 'print/cups/patches')
-rw-r--r--print/cups/patches/patch-aa15
-rw-r--r--print/cups/patches/patch-ae17
2 files changed, 32 insertions, 0 deletions
diff --git a/print/cups/patches/patch-aa b/print/cups/patches/patch-aa
new file mode 100644
index 00000000000..6de6539f2d2
--- /dev/null
+++ b/print/cups/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.15 2003/03/20 17:30:18 fredb Exp $
+
+--- Makedefs.in.orig Tue Dec 17 12:56:25 2002
++++ Makedefs.in
+@@ -28,8 +28,8 @@
+
+ AR = @AR@
+ AWK = @AWK@
+-CC = @LIBTOOL@ @CC@
+-CXX = @LIBTOOL@ @CXX@
++CC = @LIBTOOL@ --preserve-dup-deps @CC@
++CXX = @LIBTOOL@ --preserve-dup-deps @CXX@
+ DSO = @DSO@
+ HTMLDOC = @HTMLDOC@
+ INSTALL = @INSTALL@
diff --git a/print/cups/patches/patch-ae b/print/cups/patches/patch-ae
new file mode 100644
index 00000000000..ee29da5e634
--- /dev/null
+++ b/print/cups/patches/patch-ae
@@ -0,0 +1,17 @@
+$NetBSD: patch-ae,v 1.12 2003/03/20 17:30:18 fredb Exp $
+
+--- config-scripts/cups-openssl.m4.orig Tue Dec 17 12:56:39 2002
++++ config-scripts/cups-openssl.m4
+@@ -45,7 +45,12 @@ if test x$enable_ssl != xno; then
+ dnl of OpenSSL exists. So we test the linking three times in
+ dnl case the RSAREF libraries are needed.
+
++ dnl NetBSD 1.6 has a crypt() in both -lcrypt and -lcrypto, but only
++ dnl the one in -lcrypt supports blowfish and other password salts,
++ dnl so always link -lcrypt in first, if possible.
++
+ for libcrypto in \
++ "-lcrypt -lcrypto" \
+ "-lcrypto" \
+ "-lcrypto -lrsaref" \
+ "-lcrypto -lRSAglue -lrsaref"