Ticket #17158: cyrus-sasl2-2.1.22.diff
File cyrus-sasl2-2.1.22.diff, 8.9 KB (added by nox@…, 16 years ago) |
---|
-
files/patch-Makefile.in
1 --- Makefile.in.orig 2005-05-15 14:58:33.000000000 +09002 +++ Makefile.in 2005-08-29 14:59:13.000000000 +09003 @@ -239,7 +239,7 @@4 @JAVA_TRUE@JAV = java5 @JAVA_FALSE@JAV =6 @MACOSX_FALSE@INSTALLOSX =7 -@MACOSX_TRUE@INSTALLOSX = install-exec-local-osx8 +#@MACOSX_TRUE@INSTALLOSX = install-exec-local-osx9 10 SUBDIRS = include sasldb plugins lib utils doc man $(PWC) $(SAM) $(JAV) $(SAD)11 EXTRA_DIST = config cmulocal win32 mac dlcompat-20010505 NTMakefile12 @@ -678,13 +678,7 @@13 echo "* the library should use."; \14 echo "********************************************************"; \15 fi16 -install-exec-local-osx:17 - $(mkinstalldirs) $(framedir)/Versions/A/Headers18 - $(mkinstalldirs) $(framedir)/Versions/A/Resources19 - cd $(framedir)/Versions ; ln -fs A Current20 - cd $(framedir) ; ln -fs Versions/A/Headers .21 - cd $(framedir) ; ln -fs Versions/A/Resources .22 - $(INSTALL_DATA) $(srcdir)/config/Info.plist $(framedir)/Versions/A/Resources23 +24 # Tell versions [3.59,3.63) of GNU make to not export all variables.25 # Otherwise a system limit (for SysV at least) may be exceeded.26 .NOEXPORT: -
files/patch-plugins-srp.c
1 --- plugins/srp.c.orig 2005-08-29 14:54:37.000000000 +09002 +++ plugins/srp.c 2005-08-29 14:54:42.000000000 +09003 @@ -87,6 +87,7 @@4 /* for digest and cipher support */5 #include <openssl/evp.h>6 #include <openssl/hmac.h>7 +#include <openssl/md5.h>8 9 #include <sasl.h>10 #define MD5_H /* suppress internal MD5 */ -
files/patch-include_Makefile.in
1 --- include/Makefile.in.orig 2005-05-15 14:58:34.000000000 +09002 +++ include/Makefile.in 2005-08-29 15:06:26.000000000 +09003 @@ -242,9 +242,9 @@4 EXTRA_DIST = NTMakefile5 DISTCLEANFILES = md5global.h6 7 -@MACOSX_TRUE@framedir = /Library/Frameworks/SASL2.framework8 -@MACOSX_TRUE@frameheaderdir = $(framedir)/Versions/A/Headers9 -@MACOSX_TRUE@frameheader_DATA = $(saslinclude_HEADERS)10 +#@MACOSX_TRUE@framedir = /Library/Frameworks/SASL2.framework11 +#@MACOSX_TRUE@frameheaderdir = $(framedir)/Versions/A/Headers12 +#@MACOSX_TRUE@frameheader_DATA = $(saslinclude_HEADERS)13 subdir = include14 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs15 CONFIG_HEADER = $(top_builddir)/config.h -
files/patch-lib_client.c
1 --- lib/client.c 2003-11-11 08:26:06.000000000 -08002 +++ lib/client.c.new 2005-03-26 13:32:11.000000000 -08003 @@ -61,7 +61,6 @@4 5 static cmech_list_t *cmechlist; /* global var which holds the list */6 7 -static sasl_global_callbacks_t global_callbacks;8 9 static int _sasl_client_active = 0;10 -
files/patch-lib_Makefile.in
1 --- lib/Makefile.in.orig 2005-05-15 14:58:38.000000000 +09002 +++ lib/Makefile.in 2005-08-29 15:04:37.000000000 +09003 @@ -249,7 +249,7 @@4 libsasl2_la_DEPENDENCIES = $(LTLIBOBJS)5 libsasl2_la_LIBADD = $(LTLIBOBJS) $(SASL_DL_LIB) $(LIB_SOCKET) $(LIB_DOOR)6 7 -@MACOSX_TRUE@framedir = /Library/Frameworks/SASL2.framework8 +#@MACOSX_TRUE@framedir = /Library/Frameworks/SASL2.framework9 subdir = lib10 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs11 CONFIG_HEADER = $(top_builddir)/config.h12 @@ -621,10 +621,10 @@13 uninstall-libLTLIBRARIES14 15 @MACOSX_TRUE@install-exec-hook:16 -@MACOSX_TRUE@ $(mkinstalldirs) $(framedir)/Versions/A17 -@MACOSX_TRUE@ ln -fs $(libdir)/libsasl2.dylib $(framedir)/Versions/A/SASL218 -@MACOSX_TRUE@ cd $(framedir) ; ln -fs Versions/A/SASL2 .19 -@MACOSX_FALSE@install-exec-hook:20 +#@MACOSX_TRUE@ $(mkinstalldirs) $(framedir)/Versions/A21 +#@MACOSX_TRUE@ ln -fs $(libdir)/libsasl2.dylib $(framedir)/Versions/A/SASL222 +#@MACOSX_TRUE@ cd $(framedir) ; ln -fs Versions/A/SASL2 .23 +#@MACOSX_FALSE@install-exec-hook:24 25 libsasl2.a: libsasl2.la $(SASL_STATIC_OBJS)26 @echo adding static plugins and dependencies -
files/patch-plugins-ntlm.c
1 --- plugins/ntlm.c.orig 2005-08-29 14:55:01.000000000 +09002 +++ plugins/ntlm.c 2005-08-29 14:55:03.000000000 +09003 @@ -77,6 +77,7 @@4 #include <openssl/hmac.h>5 #include <openssl/des.h>6 #include <openssl/opensslv.h>7 +#include <openssl/md5.h>8 #if (OPENSSL_VERSION_NUMBER >= 0x0090700f) && \9 !defined(OPENSSL_ENABLE_OLD_DES_SUPPORT)10 # define des_cblock DES_cblock -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name cyrus-sasl2 6 version 2.1.2 16 version 2.1.22 7 7 categories security net 8 8 maintainers jmpp landonf@macports.org 9 9 description SASL is an authentication library. … … 19 19 homepage http://asg.web.cmu.edu/sasl/ 20 20 master_sites ftp://ftp.andrew.cmu.edu/pub/cyrus-mail 21 21 distname cyrus-sasl-${version} 22 checksums md5 dde02db234dea892bee298390890502e \23 sha1 6449f730c963d29d43600a95373a6e2db52d6d66 \24 rmd160 93e0e1868453c5781602b5cce23e746b8823a26b25 22 23 checksums md5 45dde9d19193ae9dd388eb68b2027bc9 \ 24 sha1 d23454ab12054714ab97d229c86cb934ce63fbb1 \ 25 rmd160 086e20d01588cb86decad001244b72a37223354c 26 26 27 depends_lib port:openssl \ 27 lib:libz:zlib28 port:zlib 28 29 29 patchfiles patch-Makefile.in \30 patch-include_Makefile.in \31 patch-lib_client.c \32 patch-lib_Makefile.in \33 patch-plugins-ntlm.c \34 patch-plugins-srp.c35 36 30 default_variants +kerberos 37 31 38 configure.args --sysconfdir=${prefix}/etc\32 configure.args \ 39 33 --mandir=${prefix}/share/man \ 40 --libexecdir=${prefix}/lib \41 --includedir=${prefix}/include \42 34 --with-openssl=${prefix} \ 43 35 --with-dbpath=${prefix}/etc/sasldb2 \ 44 36 --with-plugindir=${prefix}/lib/sasl2 \ 45 37 --with-saslauthd=${prefix}/var/state/saslauthd \ 46 38 --with-pwcheck=${prefix}/var/pwcheck \ 47 --enable-checkapop \ 48 --enable-cram \ 49 --enable-digest \ 50 --enable-otp \ 39 --disable-macos-framework \ 51 40 --enable-srp \ 52 41 --enable-srp-setpass \ 53 --enable-plain \54 --enable-anon \55 42 --enable-login \ 56 --enable-auth-sasldb \57 43 --enable-ntlm \ 58 44 --with-rc4=openssl 59 45 60 post-configure { 61 # On darwin, -L/usr/lib pulls in Apple's own non-suitable sasl libraries 62 reinplace s|-L/usr/lib||g ${worksrcpath}/utils/Makefile 46 use_parallel_build yes 47 48 pre-build { 49 if {[file exists $prefix/lib/libsasl2.dylib]} { 50 ui_error "cyrus-sasl2 must be deactivated before upgrade." 51 error "Please run `sudo port deactivate cyrus-sasl2` and try again." 52 } 63 53 } 64 54 55 destroot.keepdirs \ 56 ${destroot}${prefix}/var/state/saslauthd \ 57 ${destroot}${prefix}/var/pwcheck 58 65 59 post-destroot { 66 xinstall -d -m 755 ${destroot}${prefix}/share/doc 67 file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} 68 xinstall -d -m 755 ${destroot}${prefix}/var/state/saslauthd 69 xinstall -d -m 755${destroot}${prefix}/var/pwcheck70 destroot.keepdirs ${destroot}${prefix}/var/state/saslauthd \ 71 ${destroot}${prefix}/var/pwcheck 60 xinstall -d \ 61 ${destroot}${prefix}/share/doc \ 62 ${destroot}${prefix}/var/state/saslauthd \ 63 ${destroot}${prefix}/var/pwcheck 64 65 file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} 72 66 } 73 67 74 68 platform darwin {} 75 69 platform freebsd {} 76 variant kerberos { 70 variant kerberos description "Enable Kerberos support (default)" { 71 configure.args-append --enable-gssapi \ 72 --enable-keep-db-open 73 77 74 if {[variant_isset darwin]} { 78 configure.args-append -- enable-gssapi --with-gss_impl=mit75 configure.args-append --with-gss_impl=mit 79 76 } 80 77 if {[variant_isset freebsd]} { 81 configure.args-append -- enable-gssapi --with-gss_impl=heimdal78 configure.args-append --with-gss_impl=heimdal 82 79 } 83 80 } 84 81 85 variant sql 82 variant sql description "Enable SQL support" { configure.args-append --enable-sql } 86 83 87 variant static 84 variant static description "Build static library" { configure.args-append --enable-static } 88 85 89 86 livecheck.check regex 90 87 livecheck.url http://ftp.andrew.cmu.edu/pub/cyrus-mail/