Enable apr-util's cryptographic routines so that the apache2 package
can encrypt session data. Also add sqlite3 and ldap modules, disabled
by default.

Signed-off-by: Adam Chappell <adam.chapp...@ni.com>
Signed-off-by: Jacob Champion <jacob.champ...@ni.com>
Signed-off-by: Ioan-Adrian Ratiu <adrian.ra...@ni.com>
Acked-by: Ken Sharp <ken.sh...@ni.com>
---
 meta/recipes-support/apr/apr-util_1.5.4.bb | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-support/apr/apr-util_1.5.4.bb 
b/meta/recipes-support/apr/apr-util_1.5.4.bb
index 6856db9..eb920b9 100644
--- a/meta/recipes-support/apr/apr-util_1.5.4.bb
+++ b/meta/recipes-support/apr/apr-util_1.5.4.bb
@@ -24,7 +24,6 @@ EXTRA_OECONF = 
"--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \
                --with-dbm=gdbm \
                --with-gdbm=${STAGING_DIR_HOST}${prefix} \
                --without-sqlite2 \
-               --without-sqlite3 \
                --with-expat=${STAGING_DIR_HOST}${prefix}"
 
 
@@ -66,9 +65,16 @@ do_install_append_class-target() {
               -e 's,APU_BUILD_DIR=.*,APR_BUILD_DIR=,g' 
${D}${bindir}/apu-1-config
 }
 
-FILES_${PN}     += "${libdir}/apr-util-1/apr_dbm_gdbm-1.so"
-FILES_${PN}-dev += "${libdir}/aprutil.exp 
${libdir}/apr-util-1/apr_dbm_gdbm.so* ${libdir}/apr-util-1/apr_dbm_gdbm.la"
-FILES_${PN}-staticdev += "${libdir}/apr-util-1/apr_dbm_gdbm.a"
+PACKAGECONFIG ??= "crypto"
+PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
+PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto"
+PACKAGECONFIG[sqlite3] = 
"--with-sqlite3=${STAGING_DIR_HOST}${prefix},--without-sqlite3,sqlite3"
+
+FILES_${PN}     += "${libdir}/apr-util-1/apr*${SOLIBS}"
+FILES_${PN}-dev += "${libdir}/aprutil.exp \
+       ${libdir}/apr-util-1/apr*${SOLIBSDEV} \
+       ${libdir}/apr-util-1/*.la"
+FILES_${PN}-staticdev += "${libdir}/apr-util-1/*.a"
 
 inherit ptest
 
-- 
2.7.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to