unbound: this patch adds unbound to meta-networking
PATCH 1/1 unbound: this patch adds unbound to meta-networking
Unbound is a validating, recursive, and caching DNS resolver
--- .../recipes-support/unbound/unbound_1.6.1.bb | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 meta-networking/recipes-support/unbound/unbound_1.6.1.bb
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +57 -0
@@ -0,0 +1,57 @@ +SUMMARY = "Unbound is a validating, recursive, and caching DNS resolver" +DESCRIPTION = "\ Unbound is designed as a set of modular components, so that \ + also DNSSEC (secure DNS) validation and stub-resolvers \ + (that do not run as a server, but are linked into an applica \ + tion) are easily possible." + +HOMEPAGE = "https://www.unbound.net/" +SECTION = "net" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06" +DEPENDS = "openssl libtool libevent" +RDEPENDS_${PN} += "bash" +inherit autotools pkgconfig +PR = "r0" + +SRC_URI = "https://www.unbound.net/downloads/${BP}.tar.gz" +SRC_URI[md5sum] = "aa808f33d94a36c9312d1b8ad8805e14" +SRC_URI[sha256sum] = "42df63f743c0fe8424aeafcf003ad4b880b46c14149d696057313f5c1ef51400" + +S = "${WORKDIR}/unbound-${PV}" + +EXTRA_OECONF = " \ + --host=${TARGET_SYS} \ + --sysconfdir=/etc/ \ + --localstatedir=/var \ + --sbindir=/usr/bin \ + --with-conf-file=/etc/unbound/unbound.conf \ + --with-pidfile=/run/unbound.pid \ + --with-rootkey-file=/etc/trusted-key.key \ +" + +do_configure () { + ${S}/configure ${EXTRA_OECONF} +} + +do_compile () { + oe_runmake +} + +do_install () { + install -d ${D}${bindir} + install -d ${D}${libdir} + install -d ${D}${sysconfdir} + install -m 644 -D ${S}/libunbound/unbound.h ${D}${includedir}/unbound.h + install -m 644 -D ${S}/doc/example.conf.in ${D}${sysconfdir}/unbound/unbound.conf + install -m 644 -D ${S}/contrib/unbound.service.in ${D}${libdir}/systemd/unbound.service + install -m 755 unbound ${D}${bindir} + install -m 755 unbound-anchor ${D}${bindir} + install -m 755 unbound-checkconf ${D}${bindir} + install -m 755 unbound ${D}${bindir} + install -m 755 unbound-control-setup ${D}${bindir} + install -m 755 unbound-host ${D}${bindir} + install -m 755 ${WORKDIR}/build/.libs/libunbound.so* ${D}${libdir} +} + +FILES_${PN} ="${sysconfdir}/unbound/unbound.conf ${bindir}/unbound* ${libdir}/systemd/unbound.service ${includedir}/unbound.h ${libdir}/libunbound.so*" +FILES_${PN}-dev = "${includedir}/*"
Signature · 1 line
1.9.1
Quoted 14 lines · Oliver Graute
Unbound is a validating, recursive, and caching DNS resolver
Signed-off-by Oliver Graute <[email protected]>--- .../recipes-support/unbound/unbound_1.6.1.bb | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 meta-networking/recipes-support/unbound/unbound_1.6.1.bbmeta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +0
-0
meta-networking/recipes-support/unbound/unbound_1.6.1.bb line 9
Quoted 9 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +9
-0@@ -0,0 +1,57 @@ +SUMMARY = "Unbound is a validating, recursive, and caching DNS resolver" +DESCRIPTION = "\ Unbound is designed as a set of modular components, so that \ + also DNSSEC (secure DNS) validation and stub-resolvers \ + (that do not run as a server, but are linked into an applica \ + tion) are easily possible." + +HOMEPAGE = "https://www.unbound.net/" +SECTION = "net" +LICENSE = "BSD"
Can you see which clause it is ? it will make it more clear
meta-networking/recipes-support/unbound/unbound_1.6.1.bb line 14
Quoted 5 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +5
-0+LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06" +DEPENDS = "openssl libtool libevent" +RDEPENDS_${PN} += "bash" +inherit autotools pkgconfig +PR = "r0"
drop it
meta-networking/recipes-support/unbound/unbound_1.6.1.bb line 26
Quoted 12 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +12
-0+ +SRC_URI = "https://www.unbound.net/downloads/${BP}.tar.gz" +SRC_URI[md5sum] = "aa808f33d94a36c9312d1b8ad8805e14" +SRC_URI[sha256sum] = "42df63f743c0fe8424aeafcf003ad4b880b46c14149d696057313f5c1ef51400" + +S = "${WORKDIR}/unbound-${PV}" + +EXTRA_OECONF = " \ + --host=${TARGET_SYS} \ + --sysconfdir=/etc/ \ + --localstatedir=/var \ + --sbindir=/usr/bin \
these look redundant.
meta-networking/recipes-support/unbound/unbound_1.6.1.bb line 34
Quoted 8 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +8
-0+ --with-conf-file=/etc/unbound/unbound.conf \ + --with-pidfile=/run/unbound.pid \ + --with-rootkey-file=/etc/trusted-key.key \ +" + +do_configure () { + ${S}/configure ${EXTRA_OECONF} +}
do we really need it? can't be reconfigure ?
meta-networking/recipes-support/unbound/unbound_1.6.1.bb line 38
Quoted 4 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +4
-0+ +do_compile () { + oe_runmake +}
redundant remove this function
Quoted 6 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +6
-0+ +do_install () { + install -d ${D}${bindir} + install -d ${D}${libdir} + install -d ${D}${sysconfdir} + install -m 644 -D ${S}/libunbound/unbound.h ${D}${includedir}/unbound.h
meta-networking/recipes-support/unbound/unbound_1.6.1.bb line 54
Quoted 10 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +10
-0+ install -m 644 -D ${S}/doc/example.conf.in ${D}${sysconfdir}/unbound/unbound.conf + install -m 644 -D ${S}/contrib/unbound.service.in ${D}${libdir}/systemd/unbound.service + install -m 755 unbound ${D}${bindir} + install -m 755 unbound-anchor ${D}${bindir} + install -m 755 unbound-checkconf ${D}${bindir} + install -m 755 unbound ${D}${bindir} + install -m 755 unbound-control-setup ${D}${bindir} + install -m 755 unbound-host ${D}${bindir} + install -m 755 ${WORKDIR}/build/.libs/libunbound.so* ${D}${libdir} +}
do this in a do_install_append()
Quoted 11 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +3
-1+ +FILES_${PN} ="${sysconfdir}/unbound/unbound.conf ${bindir}/unbound* ${libdir}/systemd/unbound.service ${includedir}/unbound.h ${libdir}/libunbound.so*" +FILES_${PN}-dev = "${includedir}/*" --1.9.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 6 lines · Khem Raj
meta-networking/recipes-support/unbound/unbound_1.6.1.bb line 9
Quoted 3 lines · Oliver Graute
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +3
-0+HOMEPAGE = "https://www.unbound.net/" +SECTION = "net" +LICENSE = "BSD"Can you see which clause it is ? it will make it more clear
is this BSD-4-Clause?
https://unbound.nlnetlabs.nl/svn/trunk/LICENSE
Quoted 9 lines
Quoted 9 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +9
-0+do_install () { + install -d ${D}${bindir} + install -d ${D}${libdir} + install -d ${D}${sysconfdir} + install -m 644 -D ${S}/libunbound/unbound.h ${D}${includedir}/unbound.h + install -m 644 -D ${S}/doc/example.conf.in ${D}${sysconfdir}/unbound/unbound.conf + install -m 644 -D ${S}/contrib/unbound.service.in ${D}${libdir}/systemd/unbound.service + install -m 755 unbound ${D}${bindir} + install -m 755 unbound-anchor ${D}${bindir}
Quoted 8 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb line 54
Quoted 6 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +6
-0+ install -m 755 unbound-checkconf ${D}${bindir} + install -m 755 unbound ${D}${bindir} + install -m 755 unbound-control-setup ${D}${bindir} + install -m 755 unbound-host ${D}${bindir} + install -m 755 ${WORKDIR}/build/.libs/libunbound.so* ${D}${libdir} +}do this in a
do_install_append()
this breaks my packaging. /usr/local/share and /usr/local/lib are not my desired dirs. I prefer /usr/share and /usr/lib. I also don't need the man pages. How do I put them into extra packacke?
Some clue to fix this the righty way?
ERROR: QA Issue: unbound: Files/directories were installed but not shipped in any package:
/usr/local
/usr/local/share
/usr/local/lib
/usr/local/include
/usr/local/share/man
/usr/local/share/man/man8
/usr/local/share/man/man3
/usr/local/share/man/man5
/usr/local/share/man/man1
/usr/local/share/man/man8/unbound-control-setup.8
/usr/local/share/man/man8/unbound-checkconf.8
/usr/local/share/man/man8/unbound-control.8
/usr/local/share/man/man8/unbound-anchor.8
/usr/local/share/man/man8/unbound.8
/usr/local/share/man/man3/ub_strerror.3
/usr/local/share/man/man3/ub_ctx_set_fwd.3
/usr/local/share/man/man3/ub_wait.3
/usr/local/share/man/man3/ub_result.3
/usr/local/share/man/man3/ub_resolve.3
/usr/local/share/man/man3/ub_ctx_create.3
/usr/local/share/man/man3/ub_ctx_hosts.3
/usr/local/share/man/man3/ub_ctx_data_add.3
/usr/local/share/man/man3/ub_ctx_add_ta.3
/usr/local/share/man/man3/ub_poll.3
/usr/local/share/man/man3/ub_ctx_async.3
/usr/local/share/man/man3/ub_ctx_debugout.3
/usr/local/share/man/man3/ub_ctx.3
/usr/local/share/man/man3/ub_resolve_free.3
/usr/local/share/man/man3/ub_ctx_set_option.3
/usr/local/share/man/man3/libunbound.3
/usr/local/share/man/man3/ub_ctx_add_ta_file.3
/usr/local/share/man/man3/ub_ctx_get_option.3
/usr/local/share/man/man3/ub_resolve_async.3
/usr/local/share/man/man3/ub_ctx_zone_remove.3
/usr/local/share/man/man3/ub_ctx_print_local_zones.3
/usr/local/share/man/man3/ub_ctx_zone_add.3
/usr/local/share/man/man3/ub_ctx_resolvconf.3
/usr/local/share/man/man3/ub_ctx_config.3
/usr/local/share/man/man3/ub_cancel.3
/usr/local/share/man/man3/ub_ctx_delete.3
/usr/local/share/man/man3/ub_ctx_debuglevel.3
/usr/local/share/man/man3/ub_ctx_data_remove.3
/usr/local/share/man/man3/ub_fd.3
/usr/local/share/man/man3/ub_ctx_trustedkeys.3
/usr/local/share/man/man3/ub_process.3
/usr/local/share/man/man5/unbound.conf.5
/usr/local/share/man/man1/unbound-host.1
/usr/local/lib/libunbound.la
/usr/local/lib/libunbound.a
/usr/local/lib/libunbound.so
/usr/local/lib/libunbound.so.2
/usr/local/lib/libunbound.so.2.4.4
/usr/local/lib/.debug
/usr/local/lib/.debug/libunbound.so.2.4.4
/usr/local/include/unbound.h
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
unbound: 55 installed and not shipped files. [installed-vs-shipped]
Best regards,
Oliver
Quoted 10 lines · Oliver Graute
Quoted 6 lines · Khem Raj
meta-networking/recipes-support/unbound/unbound_1.6.1.bb line 9
Quoted 3 lines · Oliver Graute
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +3
-0+HOMEPAGE = "https://www.unbound.net/" +SECTION = "net" +LICENSE = "BSD"Can you see which clause it is ? it will make it more clear
is this BSD-4-Clause?
https://unbound.nlnetlabs.nl/svn/trunk/LICENSE
looks like 2-Clause
Quoted 92 lines
Quoted 10 lines
Quoted 10 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +9
-0+do_install () { + install -d ${D}${bindir} + install -d ${D}${libdir} + install -d ${D}${sysconfdir} + install -m 644 -D ${S}/libunbound/unbound.h ${D}${includedir}/unbound.h + install -m 644 -D ${S}/doc/example.conf.in ${D}${sysconfdir}/unbound/unbound.conf + install -m 644 -D ${S}/contrib/unbound.service.in ${D}${libdir}/systemd/unbound.service + install -m 755 unbound ${D}${bindir} + install -m 755 unbound-anchor ${D}${bindir}Quoted 8 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb line 54
Quoted 6 lines
meta-networking/recipes-support/unbound/unbound_1.6.1.bb new file +6
-0+ install -m 755 unbound-checkconf ${D}${bindir} + install -m 755 unbound ${D}${bindir} + install -m 755 unbound-control-setup ${D}${bindir} + install -m 755 unbound-host ${D}${bindir} + install -m 755 ${WORKDIR}/build/.libs/libunbound.so* ${D}${libdir} +}do this in a
do_install_append()this breaks my packaging.
/usr/local/shareand/usr/local/libare not my desired dirs. I prefer/usr/shareand/usr/lib. I also don't need the man pages. How do I put them into extra packacke?
Some clue to fix this the righty way?ERROR: QA Issue: unbound: Files/directories were installed but not shipped in any package:
/usr/local
/usr/local/share
/usr/local/lib
/usr/local/include
/usr/local/share/man
/usr/local/share/man/man8
/usr/local/share/man/man3
/usr/local/share/man/man5
/usr/local/share/man/man1
/usr/local/share/man/man8/unbound-control-setup.8
/usr/local/share/man/man8/unbound-checkconf.8
/usr/local/share/man/man8/unbound-control.8
/usr/local/share/man/man8/unbound-anchor.8
/usr/local/share/man/man8/unbound.8
/usr/local/share/man/man3/ub_strerror.3
/usr/local/share/man/man3/ub_ctx_set_fwd.3
/usr/local/share/man/man3/ub_wait.3
/usr/local/share/man/man3/ub_result.3
/usr/local/share/man/man3/ub_resolve.3
/usr/local/share/man/man3/ub_ctx_create.3
/usr/local/share/man/man3/ub_ctx_hosts.3
/usr/local/share/man/man3/ub_ctx_data_add.3
/usr/local/share/man/man3/ub_ctx_add_ta.3
/usr/local/share/man/man3/ub_poll.3
/usr/local/share/man/man3/ub_ctx_async.3
/usr/local/share/man/man3/ub_ctx_debugout.3
/usr/local/share/man/man3/ub_ctx.3
/usr/local/share/man/man3/ub_resolve_free.3
/usr/local/share/man/man3/ub_ctx_set_option.3
/usr/local/share/man/man3/libunbound.3
/usr/local/share/man/man3/ub_ctx_add_ta_file.3
/usr/local/share/man/man3/ub_ctx_get_option.3
/usr/local/share/man/man3/ub_resolve_async.3
/usr/local/share/man/man3/ub_ctx_zone_remove.3
/usr/local/share/man/man3/ub_ctx_print_local_zones.3
/usr/local/share/man/man3/ub_ctx_zone_add.3
/usr/local/share/man/man3/ub_ctx_resolvconf.3
/usr/local/share/man/man3/ub_ctx_config.3
/usr/local/share/man/man3/ub_cancel.3
/usr/local/share/man/man3/ub_ctx_delete.3
/usr/local/share/man/man3/ub_ctx_debuglevel.3
/usr/local/share/man/man3/ub_ctx_data_remove.3
/usr/local/share/man/man3/ub_fd.3
/usr/local/share/man/man3/ub_ctx_trustedkeys.3
/usr/local/share/man/man3/ub_process.3
/usr/local/share/man/man5/unbound.conf.5
/usr/local/share/man/man1/unbound-host.1
/usr/local/lib/libunbound.la
/usr/local/lib/libunbound.a
/usr/local/lib/libunbound.so
/usr/local/lib/libunbound.so.2
/usr/local/lib/libunbound.so.2.4.4
/usr/local/lib/.debug
/usr/local/lib/.debug/libunbound.so.2.4.4
/usr/local/include/unbound.h
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them withindo_install.
unbound: 55 installed and not shipped files. [installed-vs-shipped]Best regards,
Oliver
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel