]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
gnutls: add PACKAGECONFIG for DANE
authorRoss Burton <ross.burton@arm.com>
Mon, 15 May 2023 13:29:48 +0000 (14:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 May 2023 09:53:44 +0000 (10:53 +0100)
DANE (DNS-based Authentication of Named Entities) allows certificates to
be bound to DNS entries.

This requires unbound which is not part of oe-core.  Add a PACKAGECONFIG
but disable by default.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-support/gnutls/gnutls_3.8.0.bb

index 7ddd2420bd5302de62066bacb2413e798031a2b5..e6b9a527a6d7f8f486adc53136e9911b86c0245a 100644 (file)
@@ -40,10 +40,10 @@ PACKAGECONFIG[libtasn1] = "--with-included-libtasn1=no,--with-included-libtasn1,
 PACKAGECONFIG[p11-kit] = "--with-p11-kit,--without-p11-kit,p11-kit"
 PACKAGECONFIG[tpm] = "--with-tpm,--without-tpm,trousers"
 PACKAGECONFIG[fips] = "--enable-fips140-mode --with-libdl-prefix=${STAGING_BASELIBDIR}"
+PACKAGECONFIG[dane] = "--enable-libdane,--disable-libdane,unbound"
 
 EXTRA_OECONF = " \
     --enable-doc \
-    --disable-libdane \
     --disable-rpath \
     --enable-openssl-compatibility \
     --with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \
@@ -73,9 +73,11 @@ do_compile:append() {
         oe_runmake ${PARALLEL_MAKE} -C tests buildtest-TESTS
 }
 
-PACKAGES =+ "${PN}-openssl ${PN}-xx ${PN}-fips"
+PACKAGES =+ "${PN}-dane ${PN}-openssl ${PN}-xx ${PN}-fips"
 
 FILES:${PN}-dev += "${bindir}/gnutls-cli-debug"
+
+FILES:${PN}-dane = "${libdir}/libgnutls-dane.so.*"
 FILES:${PN}-openssl = "${libdir}/libgnutls-openssl.so.*"
 FILES:${PN}-xx = "${libdir}/libgnutlsxx.so.*"
 FILES:${PN}-fips = "${bindir}/fipshmac"