summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/cyrus-sasl
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-daemons/cyrus-sasl
downloadmeta-openembedded-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-daemons/cyrus-sasl')
-rw-r--r--meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/Fix-hardcoded-libdir.patch25
-rw-r--r--meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/avoid-to-call-AC_TRY_RUN.patch46
-rw-r--r--meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0009_sasldb_al.diff14
-rw-r--r--meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0014_avoid_pic_overwrite.diff27
-rw-r--r--meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/sasl.h-include-stddef.h-for-size_t-on-NetBSD.patch31
-rw-r--r--meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.26.bb69
6 files changed, 212 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/Fix-hardcoded-libdir.patch b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/Fix-hardcoded-libdir.patch
new file mode 100644
index 0000000000..3fa8431c34
--- /dev/null
+++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/Fix-hardcoded-libdir.patch
@@ -0,0 +1,25 @@
1Fix hardcoded libdir.
2
3Upstream-Status: Pending
4
5Signed-off-by: Roy.Li <rongqing.li@windriver.com>
6---
7 plugins/Makefile.am | 2 +-
8 1 files changed, 1 insertions(+), 1 deletions(-)
9
10diff --git a/plugins/Makefile.am b/plugins/Makefile.am
11index b00915f..25262a1 100644
12--- a/plugins/Makefile.am
13+++ b/plugins/Makefile.am
14@@ -62,7 +62,7 @@ plugindir = @plugindir@
15
16 common_sources = plugin_common.c plugin_common.h
17
18-sasldir = $(prefix)/lib/sasl2
19+sasldir = $(libdir)/sasl2
20 sasl_LTLIBRARIES = @SASL_MECHS@
21 EXTRA_LTLIBRARIES = libplain.la libanonymous.la libkerberos4.la libcrammd5.la \
22 libgs2.la libgssapiv2.la libdigestmd5.la liblogin.la libsrp.la libotp.la \
23--
241.7.4.1
25
diff --git a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/avoid-to-call-AC_TRY_RUN.patch b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/avoid-to-call-AC_TRY_RUN.patch
new file mode 100644
index 0000000000..6407721ae3
--- /dev/null
+++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/avoid-to-call-AC_TRY_RUN.patch
@@ -0,0 +1,46 @@
1Avoid to call AC_TRY_RUN
2
3Upstream-Status: Inappropriate [configuration]
4
5Avoid to call AC_TRY_RUN to check if GSSAPI libraries support SPNEGO
6on cross-compile environment by definition AC_ARG_ENABLE enable-spnego
7
8Signed-off-by: Roy.Li <rongqing.li@windriver.com>
9---
10 cmulocal/sasl2.m4 | 13 ++++++++++++-
11 1 file changed, 12 insertions(+), 1 deletion(-)
12
13diff --git a/cmulocal/sasl2.m4 b/cmulocal/sasl2.m4
14index 3c2841a..a5ecf81 100644
15--- a/cmulocal/sasl2.m4
16+++ b/cmulocal/sasl2.m4
17@@ -281,6 +281,17 @@ if test "$gssapi" != no; then
18
19 cmu_save_LIBS="$LIBS"
20 LIBS="$LIBS $GSSAPIBASE_LIBS"
21+ AC_ARG_ENABLE([spnego],
22+ [AC_HELP_STRING([--enable-spnego=<DIR>],
23+ [enable SPNEGO support in GSSAPI libraries [no]])],
24+ [spnego=$enableval],
25+ [spnego=no])
26+
27+ if test "$spnego" = no; then
28+ echo "no"
29+ elif test "$spnego" = yes; then
30+ AC_DEFINE(HAVE_GSS_SPNEGO,,[Define if your GSSAPI implementation supports SPNEGO])
31+ else
32 AC_MSG_CHECKING([for SPNEGO support in GSSAPI libraries])
33 AC_TRY_RUN([
34 #ifdef HAVE_GSSAPI_H
35@@ -308,7 +319,7 @@ int main(void)
36 AC_MSG_RESULT(yes) ],
37 AC_MSG_RESULT(no))
38 LIBS="$cmu_save_LIBS"
39-
40+ fi
41 else
42 AC_MSG_RESULT([disabled])
43 fi
44--
451.7.10.4
46
diff --git a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0009_sasldb_al.diff b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0009_sasldb_al.diff
new file mode 100644
index 0000000000..8eff5a8bdd
--- /dev/null
+++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0009_sasldb_al.diff
@@ -0,0 +1,14 @@
1Author: Fabian Fagerholm <fabbe@debian.org>
2Description: Fix linking with libsasldb.a when saslauthd is built with sasldb
3support.
4--- a/saslauthd/configure.in
5+++ b/saslauthd/configure.in
6@@ -77,7 +77,7 @@ if test "$authsasldb" != no; then
7 AC_DEFINE(AUTH_SASLDB,[],[Include SASLdb Support])
8 SASL_DB_PATH_CHECK()
9 SASL_DB_CHECK()
10- SASL_DB_LIB="$SASL_DB_LIB ../sasldb/.libs/libsasldb.al"
11+ SASL_DB_LIB="$SASL_DB_LIB ../sasldb/.libs/libsasldb.a"
12 fi
13
14 AC_ARG_ENABLE(httpform, [ --enable-httpform enable HTTP form authentication [[no]] ],
diff --git a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0014_avoid_pic_overwrite.diff b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0014_avoid_pic_overwrite.diff
new file mode 100644
index 0000000000..2e5b1750d0
--- /dev/null
+++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0014_avoid_pic_overwrite.diff
@@ -0,0 +1,27 @@
1Author: Fabian Fagerholm <fabbe@debian.org>
2Description: This patch makes sure the non-PIC version of libsasldb.a, which
3is created out of non-PIC objects, is not going to overwrite the PIC version,
4which is created out of PIC objects. The PIC version is placed in .libs, and
5the non-PIC version in the current directory. This ensures that both non-PIC
6and PIC versions are available in the correct locations.
7--- a/lib/Makefile.am
8+++ b/lib/Makefile.am
9@@ -78,7 +78,7 @@ endif
10
11 libsasl2.a: libsasl2.la $(SASL_STATIC_OBJS)
12 @echo adding static plugins and dependencies
13- $(AR) cru .libs/$@ $(SASL_STATIC_OBJS)
14+ $(AR) cru $@ $(SASL_STATIC_OBJS)
15 @for i in ./libsasl2.la ../sasldb/libsasldb.la ../plugins/lib*.la; do \
16 if test ! -f $$i; then continue; fi; . $$i; \
17 for j in $$dependency_libs foo; do \
18--- a/sasldb/Makefile.am
19+++ b/sasldb/Makefile.am
20@@ -63,6 +63,6 @@ libsasldb_a_SOURCES =
21 EXTRA_libsasldb_a_SOURCES =
22
23 libsasldb.a: libsasldb.la $(SASL_DB_BACKEND_STATIC)
24- $(AR) cru .libs/$@ $(SASL_DB_BACKEND_STATIC)
25+ $(AR) cru $@ $(SASL_DB_BACKEND_STATIC)
26
27
diff --git a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/sasl.h-include-stddef.h-for-size_t-on-NetBSD.patch b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/sasl.h-include-stddef.h-for-size_t-on-NetBSD.patch
new file mode 100644
index 0000000000..ecbab845d0
--- /dev/null
+++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/sasl.h-include-stddef.h-for-size_t-on-NetBSD.patch
@@ -0,0 +1,31 @@
1From 92d72789c811b0d55f624a8bac5ccc4412f5996e Mon Sep 17 00:00:00 2001
2From: Ken Murchison <murch@andrew.cmu.edu>
3Date: Thu, 20 Dec 2012 18:14:50 -0500
4Subject: [PATCH] sasl.h: #include <stddef.h> for size_t on NetBSD
5
6This patch was imported from git://git.cyrusimap.org/cyrus-sasl
7commit 67a188693796a14e3a76ac603104807fbbfddfc4
8
9Upstream-Status: Backport
10
11Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
12---
13 include/sasl.h | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/include/sasl.h b/include/sasl.h
17index fef4d51..8b8a63f 100755
18--- a/include/sasl.h
19+++ b/include/sasl.h
20@@ -121,6 +121,8 @@
21 #ifndef SASL_H
22 #define SASL_H 1
23
24+#include <stddef.h> /* For size_t */
25+
26 /* Keep in sync with win32/common.mak */
27 #define SASL_VERSION_MAJOR 2
28 #define SASL_VERSION_MINOR 1
29--
301.8.3.2
31
diff --git a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.26.bb b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.26.bb
new file mode 100644
index 0000000000..e3ff56d821
--- /dev/null
+++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.26.bb
@@ -0,0 +1,69 @@
1SUMMARY = "Generic client/server library for SASL authentication"
2SECTION = "console/network"
3DEPENDS = "openssl virtual/db"
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://COPYING;md5=3f55e0974e3d6db00ca6f57f2d206396"
6
7SRC_URI = "ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-${PV}.tar.gz \
8 file://avoid-to-call-AC_TRY_RUN.patch \
9 file://Fix-hardcoded-libdir.patch \
10 file://debian_patches_0009_sasldb_al.diff \
11 file://debian_patches_0014_avoid_pic_overwrite.diff \
12 file://sasl.h-include-stddef.h-for-size_t-on-NetBSD.patch \
13 "
14
15inherit autotools pkgconfig useradd
16
17EXTRA_OECONF += "--with-dblib=berkeley \
18 --with-bdb-libdir=${STAGING_LIBDIR} \
19 --with-bdb-incdir=${STAGING_INCDIR} \
20 --with-bdb=db-5.3 \
21 --with-plugindir="${libdir}/sasl2/" \
22 andrew_cv_runpath_switch=none"
23
24PACKAGECONFIG ??= "ntlm \
25 ${@base_contains('DISTRO_FEATURES', 'ldap', 'ldap', '', d)} \
26 ${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \
27 "
28PACKAGECONFIG[gssapi] = "--enable-gssapi=yes,--enable-gssapi=no,krb5,"
29PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam,"
30PACKAGECONFIG[opie] = "--with-opie,--without-opie,opie,"
31PACKAGECONFIG[des] = "--with-des,--without-des,,"
32PACKAGECONFIG[ldap] = "--with-ldap=${STAGING_LIBDIR} --enable-ldapdb,--without-ldap --disable-ldapdb,openldap,"
33PACKAGECONFIG[ntlm] = "--with-ntlm,--without-ntlm,,"
34
35CFLAGS += "-fPIC"
36
37do_configure_prepend () {
38 rm -f acinclude.m4 config/libtool.m4
39
40 # make it be able to work with db 5.0 version
41 local sed_files="sasldb/db_berkeley.c utils/dbconverter-2.c"
42 for sed_file in $sed_files; do
43 sed -i 's#DB_VERSION_MAJOR == 4.*#(&) || DB_VERSION_MAJOR == 5#' $sed_file
44 done
45}
46
47do_compile_prepend () {
48 cd include
49 ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} makemd5.c -o makemd5
50 touch makemd5.o makemd5.lo makemd5
51 cd ..
52}
53
54USERADD_PACKAGES = "${PN}-bin"
55GROUPADD_PARAM_${PN}-bin = "--system mail"
56USERADD_PARAM_${PN}-bin = "--system --home=/var/spool/mail -g mail cyrus"
57
58SRC_URI[md5sum] = "a7f4e5e559a0e37b3ffc438c9456e425"
59SRC_URI[sha256sum] = "8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3"
60
61PACKAGES =+ "${PN}-bin"
62
63FILES_${PN} += "${libdir}/sasl2/*.so*"
64FILES_${PN}-bin += "${bindir}"
65FILES_${PN}-dev += "${libdir}/sasl2/*.la"
66FILES_${PN}-dbg += "${libdir}/sasl2/.debug"
67FILES_${PN}-staticdev += "${libdir}/sasl2/*.a"
68
69INSANE_SKIP_${PN} += "dev-so"