the Fink project is an effort to port
popular Unix programs to Mac OS X
Info4: <<
Package: cyrus-sasl2%type_pkg[-64bit]
Version: 2.1.25
Revision: 1
Type: -64bit (boolean)
Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = -64bit ) i386
Distribution: 10.6
Maintainer: Daniel Johnson
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
BuildDepends: system-openssl-dev, db53-aes%type_pkg[-64bit], fink (>= 0.26.2), libtool2
Conflicts: cyrus-sasl2, cyrus-sasl2-64bit
Replaces: cyrus-sasl2, cyrus-sasl2-64bit
Source: mirror:custom:cyrus-sasl-%v.tar.gz
CustomMirror: <<
Primary: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
Secondary: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/
<<
Source-MD5: 341cffe829a4d71f2a6503d669d5a946
PatchFile: %{ni}.patch
PatchFile-MD5: 6117bb8fb8d4c9017a8231ebc7fe2944
PatchScript: <<
#!/bin/bash -ev
%{default_script}
#Use db53
perl -pi -e 's/db-4.4/db-5.3/g' configure
#This is only needed for the -64bit variant
perl -pi -e 's,lib/sasl2,%lib/sasl2,g' Makefile.in plugins/Makefile.in
#Fix bug in configure on 10.6
perl -pi -e 's,HAVE_SECURITY_PAM_H,HAVE_SECURITY_PAM_APPL_H,' configure
#Make sure saslauthd can find pam on < 10.6
let version=`uname -r | cut -f 1 -d .`
if [ $version -lt 10 ]; then
perl -pi -e 's,security/pam_appl.h,pam/pam_appl.h,g' saslauthd/configure
fi
<<
NoSetLDFLAGS: True
UseMaxBuildJobs: False
SetLibs: -L%p/%lib
ConfigureParams: <<
--disable-macos-framework \
--disable-static \
--enable-login \
--enable-ntlm \
--infodir=%p/share/info \
--libdir=%p/%lib \
--libexecdir=%p/%lib \
--mandir=%p/share/man \
--with-authdaemond \
--with-bdb-incdir=%p/include/db5 \
--with-bdb-libdir=%p/%lib \
--with-dblib=berkeley \
--with-dbpath=%p/etc/sasldb2 \
--with-openssl=%p/lib/system-openssl \
--with-pam \
--with-plugindir=%p/%lib/sasl2 \
--with-saslauthd=%p/var/saslauthd
<<
SetCPPFLAGS: -I%p/lib/system-openssl/include
SetCFLAGS: -shared
CompileScript: <<
#!/bin/bash -ev
if [ "%type_raw[-64bit]" == "-64bit" ]; then
export CC="gcc -m64"
fi
./configure %c --host=%m-apple-darwin`uname -r`
make SASL_DB_LIB="-L%p/lib -ldb-5.3" LIBTOOL=glibtool
<<
InstallScript: <<
mkdir -p %i/share/man/man8
mkdir -p %i/var/saslauthd
make install DESTDIR=%d LIBTOOL=glibtool
cd utils; cp sasldblistusers2.8 saslpasswd2.8 %i/share/man/man8
<<
DocFiles: AUTHORS COPYING NEWS README ChangeLog doc/TODO doc/*.html doc/*.txt
SplitOff: <<
Package: %N-shlibs
Depends: db53-aes%type_pkg[-64bit]-shlibs, ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Replaces: %N-dev (<< 2.1.21-14)
Files: %lib/*.*.dylib %lib/sasl2/*.*.so %lib/sasl2/*.la
Shlibs: %p/%lib/libsasl2.2.dylib 3.0.0 %n (>= 2.1.13-12) %type_num[-64bit]
DocFiles: COPYING README
<<
SplitOff2: <<
Package: %N-dev
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Conflicts: %N (<= 2.1.10-2), cyrus-sasl2-dev, cyrus-sasl2-64bit-dev
Replaces: %N (<< 2.1.21-14), cyrus-sasl2-dev, cyrus-sasl2-64bit-dev
Files: include/sasl %lib/*.dylib %lib/*.la %lib/sasl2/*.so
BuildDependsOnly: True
DocFiles: COPYING README
<<
SplitOff3: <<
Package: %N-doc
Depends: ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Conflicts: cyrus-sasl (<= 1.5.27-15), cyrus-sasl-doc, cyrus-sasl2-doc, cyrus-sasl2-64bit-doc
Replaces: cyrus-sasl (<= 1.5.27-15), cyrus-sasl-doc, cyrus-sasl2-doc, cyrus-sasl2-64bit-doc
Files: share/man
DocFiles: COPYING README
<<
Description: Cyrus Simple Auth. and Security Layer Library
DescDetail: <<
SASL is the Simple Authentication and Security Layer, a method for adding
authentication support to connection-based protocols. To use SASL, a
protocol includes a command for identifying and authenticating a user to a
server and for optionally negotiating protection of subsequent protocol
interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.
<<
DescPort: <<
Patch to stop the creation and installing of a framework and look for PAM
headers in /usr/include/pam instead of /usr/include/security. KERBEROS IV
support has been disabled for Darwin by the upstream developers.
<<
DescPackaging: <<
Moved the manual pages to there own splitoff so cyrus-sasl and cyrus-sasl2
can co-exist happliy.
Now uses system's OpenSSL (via system-openssl-dev) and removed from crypto
tree. Yay!
Previous versions maintained by Matt Stephenson
Borrowed a patch from redhat to build on new gcc.
Added patches from Debian package.
2.1.23 fixes buffer overflow in sasl_encode64().
Packages depending on cyrus-sasl2 no longer need to depend on its dependencies,
just Depend on cyrus-sasl2-shlibs and BuildDepend on cyrus-sasl2-dev.
<<
License: OSI-Approved
Homepage: http://asg.web.cmu.edu/sasl
<<
diff -ru cyrus-sasl-2.1.25.orig/lib/Makefile.in cyrus-sasl-2.1.25/lib/Makefile.in
--- cyrus-sasl-2.1.25.orig/lib/Makefile.in 2011-09-07 09:29:23.000000000 -0400
+++ cyrus-sasl-2.1.25/lib/Makefile.in 2012-01-18 10:04:42.000000000 -0500
@@ -676,7 +676,7 @@
libsasl2.a: libsasl2.la $(SASL_STATIC_OBJS)
@echo adding static plugins and dependencies
- $(AR) cru .libs/$@ $(SASL_STATIC_OBJS)
+ $(AR) cru $@ $(SASL_STATIC_OBJS)
@for i in ./libsasl2.la ../sasldb/libsasldb.la ../plugins/lib*.la; do \
if test ! -f $$i; then continue; fi; . $$i; \
for j in $$dependency_libs foo; do \
diff -ru cyrus-sasl-2.1.25.orig/sasldb/Makefile.in cyrus-sasl-2.1.25/sasldb/Makefile.in
--- cyrus-sasl-2.1.25.orig/sasldb/Makefile.in 2011-09-07 09:29:24.000000000 -0400
+++ cyrus-sasl-2.1.25/sasldb/Makefile.in 2012-01-18 10:05:33.000000000 -0500
@@ -592,7 +592,7 @@
libsasldb.a: libsasldb.la $(SASL_DB_BACKEND_STATIC)
- $(AR) cru .libs/$@ $(SASL_DB_BACKEND_STATIC)
+ $(AR) cru $@ $(SASL_DB_BACKEND_STATIC)
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
diff -ru cyrus-sasl-2.1.25.orig/sasldb/db_berkeley.c cyrus-sasl-2.1.25/sasldb/db_berkeley.c
--- cyrus-sasl-2.1.25.orig/sasldb/db_berkeley.c 2011-09-02 08:58:02.000000000 -0400
+++ cyrus-sasl-2.1.25/sasldb/db_berkeley.c 2012-01-18 10:06:22.000000000 -0500
@@ -101,7 +101,7 @@
ret = db_create(mbdb, NULL, 0);
if (ret == 0 && *mbdb != NULL)
{
-#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1
+#if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
ret = (*mbdb)->open(*mbdb, NULL, path, NULL, DB_HASH, flags, 0660);
#else
ret = (*mbdb)->open(*mbdb, path, NULL, DB_HASH, flags, 0660);
diff -ru cyrus-sasl-2.1.25.orig/utils/dbconverter-2.c cyrus-sasl-2.1.25/utils/dbconverter-2.c
--- cyrus-sasl-2.1.25.orig/utils/dbconverter-2.c 2003-02-13 14:56:17.000000000 -0500
+++ cyrus-sasl-2.1.25/utils/dbconverter-2.c 2012-01-18 10:07:04.000000000 -0500
@@ -214,7 +214,7 @@
ret = db_create(mbdb, NULL, 0);
if (ret == 0 && *mbdb != NULL)
{
-#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1
+#if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
ret = (*mbdb)->open(*mbdb, NULL, path, NULL, DB_HASH, DB_CREATE, 0664);
#else
ret = (*mbdb)->open(*mbdb, path, NULL, DB_HASH, DB_CREATE, 0664);