diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-09-04 10:57:21 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-09-05 08:04:23 -0700 |
commit | 277bd39c439b40bee606d5ff286d34ae6e40129e (patch) | |
tree | 1169b56393101cd7ecef6b4f45385b7af2deebeb /meta-networking | |
parent | 45d78539aeedc80c4ebe91015b81b3fa1e9f5ca5 (diff) | |
download | meta-openembedded-277bd39c439b40bee606d5ff286d34ae6e40129e.tar.gz |
cyrus-sasl: Update to 2.1.27-rc7
This update also fixes build failures with openSSL 1.1.x
Drop patches which are not required anymore
Backport a proposed patch to fix build on musl
Readjust configure options since some of the options are not available
anymore
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/0004-configure.ac-fix-condition-for-suppliment-snprintf-i.patch | 28 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/Fix-hardcoded-libdir.patch | 21 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/avoid-to-call-AC_TRY_RUN.patch | 31 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0009_sasldb_al.diff | 14 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0014_avoid_pic_overwrite.diff | 27 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/sasl.h-include-stddef.h-for-size_t-on-NetBSD.patch | 31 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb (renamed from meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.26.bb) | 42 |
7 files changed, 89 insertions, 105 deletions
diff --git a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/0004-configure.ac-fix-condition-for-suppliment-snprintf-i.patch b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/0004-configure.ac-fix-condition-for-suppliment-snprintf-i.patch new file mode 100644 index 000000000..68d09c385 --- /dev/null +++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/0004-configure.ac-fix-condition-for-suppliment-snprintf-i.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 98082f81da1b49876081ff1ab340e952755f985a Mon Sep 17 00:00:00 2001 | ||
2 | From: OBATA Akio <obache@users.noreply.github.com> | ||
3 | Date: Fri, 11 May 2018 18:36:26 +0900 | ||
4 | Subject: [PATCH] configure.ac: fix condition for suppliment snprintf | ||
5 | implementation | ||
6 | |||
7 | $sasl_cv_snprintf means requremnt of suppliment snprintf | ||
8 | implementation, not existence of system snprintf implementation, | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/cyrusimap/cyrus-sasl/pull/512] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | configure.ac | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/configure.ac b/configure.ac | ||
17 | index ac59f14..9804e98 100644 | ||
18 | --- a/configure.ac | ||
19 | +++ b/configure.ac | ||
20 | @@ -1264,7 +1264,7 @@ SNPRINTFOBJS="" | ||
21 | LTSNPRINTFOBJS="" | ||
22 | AC_CHECK_FUNC(snprintf, [AC_DEFINE(HAVE_SNPRINTF,[],[Does the system have snprintf()?])], [sasl_cv_snprintf=yes]) | ||
23 | AC_CHECK_FUNC(vsnprintf, [AC_DEFINE(HAVE_VSNPRINTF,[],[Does the system have vsnprintf()?])], [sasl_cv_snprintf=yes]) | ||
24 | -if test $sasl_cv_snprintf = no; then | ||
25 | +if test $sasl_cv_snprintf = yes; then | ||
26 | AC_LIBOBJ(snprintf) | ||
27 | SNPRINTFOBJS="snprintf.o" | ||
28 | LTSNPRINTFOBJS="snprintf.lo" | ||
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 index 3fa8431c3..f172362f4 100644 --- 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 | |||
@@ -1,25 +1,26 @@ | |||
1 | Fix hardcoded libdir. | 1 | From 188ad4497947259811ad32faeee95c20f9a44046 Mon Sep 17 00:00:00 2001 |
2 | From: "Roy.Li" <rongqing.li@windriver.com> | ||
3 | Date: Fri, 19 Jul 2013 14:29:31 +0800 | ||
4 | Subject: [PATCH] Fix hardcoded libdir. | ||
2 | 5 | ||
3 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
4 | 7 | ||
5 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | 8 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> |
9 | |||
6 | --- | 10 | --- |
7 | plugins/Makefile.am | 2 +- | 11 | plugins/Makefile.am | 2 +- |
8 | 1 files changed, 1 insertions(+), 1 deletions(-) | 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
9 | 13 | ||
10 | diff --git a/plugins/Makefile.am b/plugins/Makefile.am | 14 | diff --git a/plugins/Makefile.am b/plugins/Makefile.am |
11 | index b00915f..25262a1 100644 | 15 | index 2b02a52..929f6a4 100644 |
12 | --- a/plugins/Makefile.am | 16 | --- a/plugins/Makefile.am |
13 | +++ b/plugins/Makefile.am | 17 | +++ b/plugins/Makefile.am |
14 | @@ -62,7 +62,7 @@ plugindir = @plugindir@ | 18 | @@ -65,7 +65,7 @@ LIB_MYSQL = @LIB_MYSQL@ |
15 | 19 | ||
16 | common_sources = plugin_common.c plugin_common.h | 20 | plugindir = @plugindir@ |
17 | 21 | ||
18 | -sasldir = $(prefix)/lib/sasl2 | 22 | -sasldir = $(prefix)/lib/sasl2 |
19 | +sasldir = $(libdir)/sasl2 | 23 | +sasldir = $(libdir)/sasl2 |
20 | sasl_LTLIBRARIES = @SASL_MECHS@ | 24 | sasl_LTLIBRARIES = @SASL_MECHS@ |
21 | EXTRA_LTLIBRARIES = libplain.la libanonymous.la libkerberos4.la libcrammd5.la \ | 25 | EXTRA_LTLIBRARIES = libplain.la libanonymous.la libkerberos4.la libcrammd5.la \ |
22 | libgs2.la libgssapiv2.la libdigestmd5.la liblogin.la libsrp.la libotp.la \ | 26 | libgs2.la libgssapiv2.la libdigestmd5.la liblogin.la libsrp.la libotp.la \ |
23 | -- | ||
24 | 1.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 index 6407721ae..aa271b8fb 100644 --- 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 | |||
@@ -1,4 +1,7 @@ | |||
1 | Avoid to call AC_TRY_RUN | 1 | From 288430d3c2d3f36a4c9d40c4fffa85288f44549a Mon Sep 17 00:00:00 2001 |
2 | From: "Roy.Li" <rongqing.li@windriver.com> | ||
3 | Date: Tue, 25 Jun 2013 09:22:59 +0800 | ||
4 | Subject: [PATCH] Avoid to call AC_TRY_RUN | ||
2 | 5 | ||
3 | Upstream-Status: Inappropriate [configuration] | 6 | Upstream-Status: Inappropriate [configuration] |
4 | 7 | ||
@@ -6,18 +9,20 @@ Avoid to call AC_TRY_RUN to check if GSSAPI libraries support SPNEGO | |||
6 | on cross-compile environment by definition AC_ARG_ENABLE enable-spnego | 9 | on cross-compile environment by definition AC_ARG_ENABLE enable-spnego |
7 | 10 | ||
8 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | 11 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> |
12 | |||
9 | --- | 13 | --- |
10 | cmulocal/sasl2.m4 | 13 ++++++++++++- | 14 | m4/sasl2.m4 | 15 +++++++++++++-- |
11 | 1 file changed, 12 insertions(+), 1 deletion(-) | 15 | 1 file changed, 13 insertions(+), 2 deletions(-) |
12 | 16 | ||
13 | diff --git a/cmulocal/sasl2.m4 b/cmulocal/sasl2.m4 | 17 | diff --git a/m4/sasl2.m4 b/m4/sasl2.m4 |
14 | index 3c2841a..a5ecf81 100644 | 18 | index 56e0504..cf62607 100644 |
15 | --- a/cmulocal/sasl2.m4 | 19 | --- a/m4/sasl2.m4 |
16 | +++ b/cmulocal/sasl2.m4 | 20 | +++ b/m4/sasl2.m4 |
17 | @@ -281,6 +281,17 @@ if test "$gssapi" != no; then | 21 | @@ -314,7 +314,18 @@ if test "$gssapi" != no; then |
18 | |||
19 | cmu_save_LIBS="$LIBS" | 22 | cmu_save_LIBS="$LIBS" |
20 | LIBS="$LIBS $GSSAPIBASE_LIBS" | 23 | LIBS="$LIBS $GSSAPIBASE_LIBS" |
24 | |||
25 | - AC_MSG_CHECKING([for SPNEGO support in GSSAPI libraries]) | ||
21 | + AC_ARG_ENABLE([spnego], | 26 | + AC_ARG_ENABLE([spnego], |
22 | + [AC_HELP_STRING([--enable-spnego=<DIR>], | 27 | + [AC_HELP_STRING([--enable-spnego=<DIR>], |
23 | + [enable SPNEGO support in GSSAPI libraries [no]])], | 28 | + [enable SPNEGO support in GSSAPI libraries [no]])], |
@@ -29,10 +34,11 @@ index 3c2841a..a5ecf81 100644 | |||
29 | + elif test "$spnego" = yes; then | 34 | + elif test "$spnego" = yes; then |
30 | + AC_DEFINE(HAVE_GSS_SPNEGO,,[Define if your GSSAPI implementation supports SPNEGO]) | 35 | + AC_DEFINE(HAVE_GSS_SPNEGO,,[Define if your GSSAPI implementation supports SPNEGO]) |
31 | + else | 36 | + else |
32 | AC_MSG_CHECKING([for SPNEGO support in GSSAPI libraries]) | 37 | + AC_MSG_CHECKING([for SPNEGO support in GSSAPI libraries]) |
33 | AC_TRY_RUN([ | 38 | AC_TRY_RUN([ |
34 | #ifdef HAVE_GSSAPI_H | 39 | #ifdef HAVE_GSSAPI_H |
35 | @@ -308,7 +319,7 @@ int main(void) | 40 | #include <gssapi.h> |
41 | @@ -341,7 +352,7 @@ int main(void) | ||
36 | AC_MSG_RESULT(yes) ], | 42 | AC_MSG_RESULT(yes) ], |
37 | AC_MSG_RESULT(no)) | 43 | AC_MSG_RESULT(no)) |
38 | LIBS="$cmu_save_LIBS" | 44 | LIBS="$cmu_save_LIBS" |
@@ -41,6 +47,3 @@ index 3c2841a..a5ecf81 100644 | |||
41 | else | 47 | else |
42 | AC_MSG_RESULT([disabled]) | 48 | AC_MSG_RESULT([disabled]) |
43 | fi | 49 | fi |
44 | -- | ||
45 | 1.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 deleted file mode 100644 index 8eff5a8bd..000000000 --- a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/debian_patches_0009_sasldb_al.diff +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | Author: Fabian Fagerholm <fabbe@debian.org> | ||
2 | Description: Fix linking with libsasldb.a when saslauthd is built with sasldb | ||
3 | support. | ||
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 index 2e5b1750d..0479acfb0 100644 --- 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 | |||
@@ -1,27 +1,28 @@ | |||
1 | Author: Fabian Fagerholm <fabbe@debian.org> | 1 | From 1a5f3004e9081eab6263a29cd5be792f06441e36 Mon Sep 17 00:00:00 2001 |
2 | From: Fabian Fagerholm <fabbe@debian.org> | ||
3 | Date: Wed, 24 Jul 2013 11:38:25 -0400 | ||
4 | Subject: [PATCH] cyrus-sasl: Add patches from Debian to fix linking | ||
5 | |||
2 | Description: This patch makes sure the non-PIC version of libsasldb.a, which | 6 | Description: This patch makes sure the non-PIC version of libsasldb.a, which |
3 | is created out of non-PIC objects, is not going to overwrite the PIC version, | 7 | is created out of non-PIC objects, is not going to overwrite the PIC version, |
4 | which is created out of PIC objects. The PIC version is placed in .libs, and | 8 | which is created out of PIC objects. The PIC version is placed in .libs, and |
5 | the non-PIC version in the current directory. This ensures that both non-PIC | 9 | the non-PIC version in the current directory. This ensures that both non-PIC |
6 | and PIC versions are available in the correct locations. | 10 | and PIC versions are available in the correct locations. |
11 | |||
12 | --- | ||
13 | lib/Makefile.am | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/lib/Makefile.am b/lib/Makefile.am | ||
17 | index a158ca3..3137e19 100644 | ||
7 | --- a/lib/Makefile.am | 18 | --- a/lib/Makefile.am |
8 | +++ b/lib/Makefile.am | 19 | +++ b/lib/Makefile.am |
9 | @@ -78,7 +78,7 @@ endif | 20 | @@ -99,7 +99,7 @@ endif |
10 | 21 | ||
11 | libsasl2.a: libsasl2.la $(SASL_STATIC_OBJS) | 22 | libsasl2.a: libsasl2.la $(SASL_STATIC_OBJS) |
12 | @echo adding static plugins and dependencies | 23 | @echo adding static plugins and dependencies |
13 | - $(AR) cru .libs/$@ $(SASL_STATIC_OBJS) | 24 | - $(AR) cru .libs/$@ $(SASL_STATIC_OBJS) |
14 | + $(AR) cru $@ $(SASL_STATIC_OBJS) | 25 | + $(AR) cru $@ $(SASL_STATIC_OBJS) |
15 | @for i in ./libsasl2.la ../sasldb/libsasldb.la ../plugins/lib*.la; do \ | 26 | @for i in ./libsasl2.la ../common/libplugin_common.la ../sasldb/libsasldb.la ../plugins/lib*.la; do \ |
16 | if test ! -f $$i; then continue; fi; . $$i; \ | 27 | if test ! -f $$i; then continue; fi; . $$i; \ |
17 | for j in $$dependency_libs foo; do \ | 28 | 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 deleted file mode 100644 index ecbab845d..000000000 --- a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/sasl.h-include-stddef.h-for-size_t-on-NetBSD.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 92d72789c811b0d55f624a8bac5ccc4412f5996e Mon Sep 17 00:00:00 2001 | ||
2 | From: Ken Murchison <murch@andrew.cmu.edu> | ||
3 | Date: Thu, 20 Dec 2012 18:14:50 -0500 | ||
4 | Subject: [PATCH] sasl.h: #include <stddef.h> for size_t on NetBSD | ||
5 | |||
6 | This patch was imported from git://git.cyrusimap.org/cyrus-sasl | ||
7 | commit 67a188693796a14e3a76ac603104807fbbfddfc4 | ||
8 | |||
9 | Upstream-Status: Backport | ||
10 | |||
11 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
12 | --- | ||
13 | include/sasl.h | 2 ++ | ||
14 | 1 file changed, 2 insertions(+) | ||
15 | |||
16 | diff --git a/include/sasl.h b/include/sasl.h | ||
17 | index 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 | -- | ||
30 | 1.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.27.bb index 3391da0ff..86928294b 100644 --- a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.26.bb +++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb | |||
@@ -1,59 +1,55 @@ | |||
1 | SUMMARY = "Generic client/server library for SASL authentication" | 1 | SUMMARY = "Generic client/server library for SASL authentication" |
2 | SECTION = "libs" | 2 | SECTION = "libs" |
3 | HOMEPAGE = "http://asg.web.cmu.edu/sasl/" | 3 | HOMEPAGE = "http://asg.web.cmu.edu/sasl/" |
4 | DEPENDS = "openssl db" | 4 | DEPENDS = "openssl db groff-native" |
5 | LICENSE = "BSD" | 5 | LICENSE = "BSD" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=3f55e0974e3d6db00ca6f57f2d206396" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=3f55e0974e3d6db00ca6f57f2d206396" |
7 | 7 | ||
8 | SRC_URI = "ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-${PV}.tar.gz \ | 8 | SRCREV = "e41cfb986c1b1935770de554872247453fdbb079" |
9 | file://avoid-to-call-AC_TRY_RUN.patch \ | 9 | |
10 | file://Fix-hardcoded-libdir.patch \ | 10 | SRC_URI = "git://github.com/cyrusimap/cyrus-sasl;protocol=https \ |
11 | file://debian_patches_0009_sasldb_al.diff \ | 11 | file://avoid-to-call-AC_TRY_RUN.patch \ |
12 | file://debian_patches_0014_avoid_pic_overwrite.diff \ | 12 | file://Fix-hardcoded-libdir.patch \ |
13 | file://sasl.h-include-stddef.h-for-size_t-on-NetBSD.patch \ | 13 | file://debian_patches_0014_avoid_pic_overwrite.diff \ |
14 | file://saslauthd.service \ | 14 | file://saslauthd.service \ |
15 | file://saslauthd.conf \ | 15 | file://saslauthd.conf \ |
16 | " | 16 | file://0004-configure.ac-fix-condition-for-suppliment-snprintf-i.patch \ |
17 | " | ||
17 | 18 | ||
18 | UPSTREAM_CHECK_REGEX = "cyrus-sasl-(?P<pver>(\d+(\.\d+)+))\.tar" | 19 | UPSTREAM_CHECK_URI = "https://github.com/cyrusimap/cyrus-sasl/archives" |
19 | 20 | ||
20 | inherit autotools-brokensep pkgconfig useradd systemd | 21 | S = "${WORKDIR}/git" |
21 | 22 | ||
22 | CLEANBROKEN = "1" | 23 | CLEANBROKEN = "1" |
24 | inherit autotools pkgconfig useradd systemd | ||
23 | 25 | ||
24 | EXTRA_OECONF += "--with-dblib=berkeley \ | 26 | EXTRA_OECONF += "--with-dblib=berkeley \ |
25 | --with-bdb-libdir=${STAGING_LIBDIR} \ | 27 | --with-plugindir='${libdir}/sasl2' \ |
26 | --with-bdb-incdir=${STAGING_INCDIR} \ | ||
27 | --with-bdb=db-5.3 \ | ||
28 | --with-plugindir="${libdir}/sasl2" \ | ||
29 | andrew_cv_runpath_switch=none" | 28 | andrew_cv_runpath_switch=none" |
30 | 29 | ||
31 | PACKAGECONFIG ??= "ntlm \ | 30 | PACKAGECONFIG ??= "ntlm \ |
32 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 ldap pam', d)} \ | 31 | ${@bb.utils.filter('DISTRO_FEATURES', 'ldap pam', d)} \ |
33 | " | 32 | " |
34 | PACKAGECONFIG[gssapi] = "--enable-gssapi=yes,--enable-gssapi=no,krb5," | 33 | PACKAGECONFIG[gssapi] = "--enable-gssapi=yes,--enable-gssapi=no,krb5," |
35 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," | 34 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," |
36 | PACKAGECONFIG[opie] = "--with-opie,--without-opie,opie," | 35 | PACKAGECONFIG[opie] = "--with-opie,--without-opie,opie," |
37 | PACKAGECONFIG[des] = "--with-des,--without-des,," | 36 | PACKAGECONFIG[des] = "--with-des,--without-des,," |
38 | PACKAGECONFIG[ldap] = "--with-ldap=${STAGING_LIBDIR} --enable-ldapdb,--without-ldap --disable-ldapdb,openldap," | 37 | PACKAGECONFIG[ldap] = "--with-ldap=${STAGING_LIBDIR} --enable-ldapdb,--without-ldap --disable-ldapdb,openldap," |
39 | PACKAGECONFIG[ntlm] = "--with-ntlm,--without-ntlm,," | 38 | PACKAGECONFIG[ntlm] = "--enable-ntlm=yes,--enable-ntlm=no,," |
40 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | ||
41 | 39 | ||
42 | CFLAGS += "-fPIC" | 40 | CFLAGS += "-fPIC" |
43 | 41 | ||
44 | do_configure_prepend () { | 42 | do_configure_prepend () { |
45 | rm -f acinclude.m4 config/libtool.m4 | ||
46 | |||
47 | # make it be able to work with db 5.0 version | 43 | # make it be able to work with db 5.0 version |
48 | local sed_files="sasldb/db_berkeley.c utils/dbconverter-2.c" | 44 | local sed_files="sasldb/db_berkeley.c utils/dbconverter-2.c" |
49 | for sed_file in $sed_files; do | 45 | for sed_file in $sed_files; do |
50 | sed -i 's#DB_VERSION_MAJOR == 4.*#(&) || DB_VERSION_MAJOR == 5#' $sed_file | 46 | sed -i 's#DB_VERSION_MAJOR == 4.*#(&) || DB_VERSION_MAJOR == 5#' ${S}/$sed_file |
51 | done | 47 | done |
52 | } | 48 | } |
53 | 49 | ||
54 | do_compile_prepend () { | 50 | do_compile_prepend () { |
55 | cd include | 51 | cd include |
56 | ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} makemd5.c -o makemd5 | 52 | ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} ${S}/include/makemd5.c -o makemd5 |
57 | touch makemd5.o makemd5.lo makemd5 | 53 | touch makemd5.o makemd5.lo makemd5 |
58 | cd .. | 54 | cd .. |
59 | } | 55 | } |