Skip to contentSkip to conversation

dnssec-conf: move recipe from meta-networking

PATCH New Tim Orling 1 participant 2 messages Jan 28, 2020

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/2 dnssec-conf: move recipe from meta-networking

From: Andrey Zhizhikin <[email protected]>

dnssec-conf did not receive any updates since 2010 and relies heavily on python2 code base.

Move recipe to meta-python2 layer, since python2 support has been dropped in oe-core.

---
 .../dnssec-conf/dnssec-conf_2.02.bb           | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 recipes-support/dnssec-conf/dnssec-conf_2.02.bb
recipes-support/dnssec-conf/dnssec-conf_2.02.bb new file +35 -0
new file mode 100644
index 00000000..ca59bd21
@@ -0,0 +1,35 @@
+SUMMARY = "DNSSEC and DLV configuration and priming tool"
+DESCRIPTION = "\
+DNSSEC configuration and priming tool. Keys are required until the root \
+is signed, as well as for local unpublished DNSSEC keys to be preloaded \
+into the recursive nameserver. These DNSSEC configuration files can be \
+directly included in the bind or unbound nameserver configuration files. \
+dnssec-conf includes a commandline configuration client for Bind and \
+Unbound, known DNSSEC keys, URL's to official publication pages of keys, \
+and harvested keys, as well a script to harvest DNSKEY's from DNS. \
+See also: system-config-dnssec"
+HOMEPAGE = "https://github.com/xelerance/dnssec-conf"
+SECTION = "net"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0636e73ff0215e8d672dc4c32c317bb3"
+DEPENDS += "xmlto-native docbook-xml-dtd4-native \
+            docbook-xsl-stylesheets-native libxslt-native"
+
+SRC_URI = "git://github.com/xelerance/dnssec-conf.git"
+SRCREV = "8e799683736b4a7b5e5e78f98fba0a6f48393537"
+
+S = "${WORKDIR}/git"
+
+do_install () {
+    rm -rf ${D}
+    make PREFIX=${prefix} DESTDIR=${D} ETCDIR=${D}${sysconfdir} install
+    # We no longer ship trust anchors. Most of these are in the DLV Registry now.
+    # and it prevents the problem of shipping outdated trust anchors.
+    # For DLV, we ship the ISC DLV Registry key
+    rm -rf ${D}${sysconfdir}/pki/dnssec-keys/harvest/*
+    rm -rf ${D}${sysconfdir}/pki/dnssec-keys/production/reverse/*
+    install -d -m 0755 ${D}${sysconfdir}/sysconfig
+    install -m 0644 packaging/fedora/dnssec.sysconfig ${D}${sysconfdir}/sysconfig/dnssec
+}
+
+RDEPENDS_${PN} = "python"
Signature · 1 line
2.25.0
author
#1 lore raw

PATCH 2/2 dnssec-conf: add missing RDEPENDS

Fixes:
"dnssec-configure requires the pyparser package from
http://pyparsing.wikispaces.com
[...]
"

Fixes:
"dnskey-pull requires the python-dns package from
http://www.dnspython.org/
[...]
"

It has dependencies on the split packages from python manifest, but since it RDEPENDS on "python", all standard lib modules are pulled in. If someone requires a smaller image, the RDEPENDS could be paired down.

It also requires "curl" as shown in INSTALL and:
https://github.com/xelerance/dnssec-conf/blob/8e799683736b4a7b5e5e78f98fba0a6f48393537/dnskey-pull#L86

It also requires "host" (from bind-utils) as shown in:
https://github.com/xelerance/dnssec-conf/blob/8e799683736b4a7b5e5e78f98fba0a6f48393537/dnskey-pull#L299

It recommends "bind", but another nameserver can be used. That level of complexity is left up to someone that needs a different configuration.

---
 recipes-support/dnssec-conf/dnssec-conf_2.02.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
recipes-support/dnssec-conf/dnssec-conf_2.02.bb +7 -1
index ca59bd21..1b767a39 100644
@@ -32,4 +32,10 @@ do_install () {
     install -m 0644 packaging/fedora/dnssec.sysconfig ${D}${sysconfdir}/sysconfig/dnssec
 }
 
-RDEPENDS_${PN} = "python"
+RDEPENDS_${PN} = "\
+    bind-utils \
+    curl \
+    python \
+    python-dnspython \
+    python-pyparsing \
+"
Signature · 1 line
2.25.0