[oe-commits] Martin Jansa : snort: add openssl PACKAGECONFIG

git at git.openembedded.org git at git.openembedded.org
Thu Jul 24 14:01:11 UTC 2014


Module: meta-openembedded.git
Branch: master
Commit: 26279f3350204d7ca820383c56351d52f81adf61
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=26279f3350204d7ca820383c56351d52f81adf61

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Tue Jul 22 17:22:38 2014 +0200

snort: add openssl PACKAGECONFIG

* otherwise the result isn't deterministic
  WARN: packages/armv5te-oe-linux-gnueabi/snort/snort/latest lost dependency on  libcrypto

* enable it by default, disabling currently doesn't work, because there are --with flags for
  openssl, but then configure.in still checks for sha.h header with
  AC_CHECK_HEADERS([openssl/sha.h],, SHA_H="no")
  and autodetects it, I'll leave patching configure to someone who
  is actually using snort (this issue was reported many times and
  nobody seems to care).

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb
index ecbbf44..9c55e9c 100644
--- a/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb
+++ b/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb
@@ -32,6 +32,12 @@ EXTRA_OECONF = " \
 	--with-dnet-libraries=${STAGING_LIBDIR} \
 	"
 
+# if you want to disable it, you need to patch configure.in first
+# AC_CHECK_HEADERS([openssl/sha.h],, SHA_H="no")
+# is called even with --without-openssl-includes
+PACKAGECONFIG ?= "openssl"
+PACKAGECONFIG[openssl] = "--with-openssl-includes=${STAGING_INCDIR} --with-openssl-libraries=${STAGING_LIBDIR}, --without-openssl-includes --without-openssl-libraries, openssl,"
+
 do_install_append() {
     install -d ${D}/${sysconfdir}/snort/rules
     install -d ${D}/${sysconfdir}/snort/preproc_rules



More information about the Openembedded-commits mailing list