mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
5.2 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/mnemoc/openldap/sasl2.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -urN openldap-2.1.28/build/openldap.m4 openldap-2.1.28-jsaw/build/openldap.m4
  20. --- openldap-2.1.28/build/openldap.m4 2003-12-02 19:05:49.000000000 +0100
  21. +++ openldap-2.1.28-jsaw/build/openldap.m4 2004-03-29 00:57:32.000000000 +0200
  22. @@ -1204,7 +1204,7 @@
  23. [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
  24. AC_EGREP_CPP(__sasl_compat,[
  25. #ifdef HAVE_SASL_SASL_H
  26. -#include <sasl/sasl.h>
  27. +#include <sasl2/sasl.h>
  28. #else
  29. #include <sasl.h>
  30. #endif
  31. diff -urN openldap-2.1.28/configure openldap-2.1.28-jsaw/configure
  32. --- openldap-2.1.28/configure 2004-01-18 22:25:00.000000000 +0100
  33. +++ openldap-2.1.28-jsaw/configure 2004-03-29 00:57:32.000000000 +0200
  34. @@ -20834,7 +20834,7 @@
  35. ol_link_sasl=no
  36. ol_link_spasswd=no
  37. if test $ol_with_cyrus_sasl != no ; then
  38. - for ac_hdr in sasl/sasl.h sasl.h
  39. + for ac_hdr in sasl2/sasl.h sasl.h
  40. do
  41. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  42. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  43. @@ -20980,7 +20980,7 @@
  44. #include "confdefs.h"
  45. #ifdef HAVE_SASL_SASL_H
  46. -#include <sasl/sasl.h>
  47. +#include <sasl2/sasl.h>
  48. #else
  49. #include <sasl.h>
  50. #endif
  51. diff -urN openldap-2.1.28/configure.in openldap-2.1.28-jsaw/configure.in
  52. --- openldap-2.1.28/configure.in 2004-01-18 22:25:26.000000000 +0100
  53. +++ openldap-2.1.28-jsaw/configure.in 2004-03-29 00:57:32.000000000 +0200
  54. @@ -2129,7 +2129,7 @@
  55. ol_link_sasl=no
  56. ol_link_spasswd=no
  57. if test $ol_with_cyrus_sasl != no ; then
  58. - AC_CHECK_HEADERS(sasl/sasl.h sasl.h)
  59. + AC_CHECK_HEADERS(sasl2/sasl.h sasl.h)
  60. if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
  61. AC_CHECK_LIB(sasl2, sasl_client_init,
  62. diff -urN openldap-2.1.28/include/portable.h.in openldap-2.1.28-jsaw/include/portable.h.in
  63. --- openldap-2.1.28/include/portable.h.in 2003-03-10 03:36:10.000000000 +0100
  64. +++ openldap-2.1.28-jsaw/include/portable.h.in 2004-03-29 00:57:32.000000000 +0200
  65. @@ -476,7 +476,7 @@
  66. /* Define if you have the <sasl.h> header file. */
  67. #undef HAVE_SASL_H
  68. -/* Define if you have the <sasl/sasl.h> header file. */
  69. +/* Define if you have the <sasl2/sasl.h> header file. */
  70. #undef HAVE_SASL_SASL_H
  71. /* Define if you have the <sched.h> header file. */
  72. diff -urN openldap-2.1.28/libraries/libldap/cyrus.c openldap-2.1.28-jsaw/libraries/libldap/cyrus.c
  73. --- openldap-2.1.28/libraries/libldap/cyrus.c 2004-02-12 03:41:19.000000000 +0100
  74. +++ openldap-2.1.28-jsaw/libraries/libldap/cyrus.c 2004-03-29 00:57:32.000000000 +0200
  75. @@ -24,7 +24,7 @@
  76. #endif
  77. #ifdef HAVE_SASL_SASL_H
  78. -#include <sasl/sasl.h>
  79. +#include <sasl2/sasl.h>
  80. #else
  81. #include <sasl.h>
  82. #endif
  83. diff -urN openldap-2.1.28/libraries/libldap/ldap-int.h openldap-2.1.28-jsaw/libraries/libldap/ldap-int.h
  84. --- openldap-2.1.28/libraries/libldap/ldap-int.h 2003-04-29 01:41:55.000000000 +0200
  85. +++ openldap-2.1.28-jsaw/libraries/libldap/ldap-int.h 2004-03-29 00:57:32.000000000 +0200
  86. @@ -25,7 +25,7 @@
  87. #ifdef HAVE_CYRUS_SASL
  88. /* the need for this should be removed */
  89. #ifdef HAVE_SASL_SASL_H
  90. -#include <sasl/sasl.h>
  91. +#include <sasl2/sasl.h>
  92. #else
  93. #include <sasl.h>
  94. #endif
  95. diff -urN openldap-2.1.28/libraries/liblutil/passwd.c openldap-2.1.28-jsaw/libraries/liblutil/passwd.c
  96. --- openldap-2.1.28/libraries/liblutil/passwd.c 2003-12-18 03:36:40.000000000 +0100
  97. +++ openldap-2.1.28-jsaw/libraries/liblutil/passwd.c 2004-03-29 00:57:32.000000000 +0200
  98. @@ -35,7 +35,7 @@
  99. #ifdef SLAPD_SPASSWD
  100. # ifdef HAVE_SASL_SASL_H
  101. -# include <sasl/sasl.h>
  102. +# include <sasl2/sasl.h>
  103. # else
  104. # include <sasl.h>
  105. # endif
  106. diff -urN openldap-2.1.28/libraries/liblutil/sasl.c openldap-2.1.28-jsaw/libraries/liblutil/sasl.c
  107. --- openldap-2.1.28/libraries/liblutil/sasl.c 2003-04-26 16:56:37.000000000 +0200
  108. +++ openldap-2.1.28-jsaw/libraries/liblutil/sasl.c 2004-03-29 00:57:32.000000000 +0200
  109. @@ -14,7 +14,7 @@
  110. #include <ac/unistd.h>
  111. #ifdef HAVE_SASL_SASL_H
  112. -#include <sasl/sasl.h>
  113. +#include <sasl2/sasl.h>
  114. #else
  115. #include <sasl.h>
  116. #endif
  117. diff -urN openldap-2.1.28/servers/slapd/sasl.c openldap-2.1.28-jsaw/servers/slapd/sasl.c
  118. --- openldap-2.1.28/servers/slapd/sasl.c 2004-01-21 08:56:34.000000000 +0100
  119. +++ openldap-2.1.28-jsaw/servers/slapd/sasl.c 2004-03-29 00:57:33.000000000 +0200
  120. @@ -19,14 +19,14 @@
  121. #ifdef HAVE_CYRUS_SASL
  122. # ifdef HAVE_SASL_SASL_H
  123. -# include <sasl/sasl.h>
  124. +# include <sasl2/sasl.h>
  125. # else
  126. # include <sasl.h>
  127. # endif
  128. # if SASL_VERSION_MAJOR >= 2
  129. # ifdef HAVE_SASL_SASL_H
  130. -# include <sasl/saslplug.h>
  131. +# include <sasl2/saslplug.h>
  132. # else
  133. # include <saslplug.h>
  134. # endif