Skip to contentSkip to conversation

unbound: new package

PATCH Superseded Stefan Ott 2 participants 3 messages Mar 29, 2020 – Apr 5, 2020

lore
Share & tools
lore

Stefan Ott

author
#0 lore raw

PATCH v2 1/1 unbound: new package

Unbound: validating, recursive & caching DNS resolver with DNSSEC, QNAME minimisation, DNSCrypt and DNS-over-TLS support.

---
Changes v1 -> v2:
- Fix intentation in Config.in
- Fix spelling in Config.in sub-option
- Remodel init script based on busybox/S01syslogd
- Fix syntax in unbound.mk
- Remove explicit --enable-relro-now, --with-pic and --enable-pie options
- Exclude package from systems with static libraries (it won't compile there)
- Only enable threads on systems with support for NPTL

 DEVELOPERS                   |  3 ++
 package/Config.in            |  1 +
 package/unbound/Config.in    | 35 ++++++++++++++++++++++++
 package/unbound/S70unbound   | 52 +++++++++++++++++++++++++++++++++++
 package/unbound/unbound.hash |  3 ++
 package/unbound/unbound.mk   | 53 ++++++++++++++++++++++++++++++++++++
 6 files changed, 147 insertions(+)
 create mode 100644 package/unbound/Config.in
 create mode 100644 package/unbound/S70unbound
 create mode 100644 package/unbound/unbound.hash
 create mode 100644 package/unbound/unbound.mk
DEVELOPERS +3 -0
index 4a43ca420d..f81ef07456 100644
@@ -2354,6 +2354,9 @@ F:	package/libvpx/
 F:	package/mesa3d-demos/
 F:	package/ti-gfx/
 
+N:	Stefan Ott <[email protected]>
+F:	package/unbound/
+
 N:	Stefan S?rensen <[email protected]>
 F:	package/cracklib/
 F:	package/libpwquality/
package/Config.in +1 -0
index 7b73198d50..8eb71ec5c3 100644
@@ -2195,6 +2195,7 @@ endif
 	source "package/uftp/Config.in"
 	source "package/uhttpd/Config.in"
 	source "package/ulogd/Config.in"
+	source "package/unbound/Config.in"
 	source "package/ushare/Config.in"
 	source "package/ussp-push/Config.in"
 	source "package/vde2/Config.in"
package/unbound/Config.in new file +35 -0
new file mode 100644
index 0000000000..2d4ebed257
@@ -0,0 +1,35 @@
+config BR2_PACKAGE_UNBOUND
+	bool "unbound"
+	select BR2_PACKAGE_EXPAT
+	select BR2_PACKAGE_LIBEVENT
+	select BR2_PACKAGE_OPENSSL
+	depends on !BR2_STATIC_LIBS
+	help
+	  Unbound is a validating, recursive, and caching DNS resolver.
+	  It supports DNSSEC, QNAME minimisation, DNS-over-TLS and
+	  DNSCrypt.
+
+	  https://www.unbound.net
+
+if BR2_PACKAGE_UNBOUND
+config BR2_PACKAGE_UNBOUND_DNSCRYPT
+	bool "enable DNSCrypt"
+	select BR2_PACKAGE_LIBSODIUM
+	help
+	  DNSCrypt wraps unmodified DNS queries between a client and
+	  a DNS resolver. Default port used is 443 and like with
+	  normal unencrypted DNS, it uses UDP first and falling back
+	  to TCP if response too large.
+
+	  There is also DNS-over-TLS, a TCP only version
+	  of proposed standard for DNS encryption (RFC 7858).
+	  Default port for DNS-over-TLS is 853 and Unbound has
+	  built-in support for it.
+
+	  https://tools.ietf.org/html/rfc7858
+
+	  Note: Neither DNSCrypt or DNS-over-TLS encrypt the SNI.
+	  Here is some suggestions how to handle SNI encryption:
+
+	  https://tools.ietf.org/html/draft-ietf-tls-sni-encryption-00
+endif
package/unbound/S70unbound new file +52 -0

52 lines not on this page · raw message

package/unbound/unbound.hash new file +3 -0
new file mode 100644
index 0000000000..11626d0b6f
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 152f486578242fe5c36e89995d0440b78d64c05123990aae16246b7f776ce955  unbound-1.10.0.tar.gz
+sha256 8eb9a16cbfb8703090bbfa3a2028fd46bb351509a2f90dc1001e51fbe6fd45db  LICENSE
package/unbound/unbound.mk new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.26.0
#1 lore raw

PATCH v2 1/1 unbound: new package

Quoted 4 lines · On Sun, 29 Mar 2020 20:00:16 +0200 Stefan Ott <[email protected]> wrote:

Unbound: validating, recursive & caching DNS resolver with DNSSEC, QNAME minimisation, DNSCrypt and DNS-over-TLS support.

Thanks, I've applied, after doing two small changes. See below.

package/unbound/Config.in line 6

Quoted 12 lines
package/unbound/Config.in new file +6 -0
new file mode 100644
index 0000000000..2d4ebed257
@@ -0,0 +1,35 @@
+config BR2_PACKAGE_UNBOUND
+	bool "unbound"
+	select BR2_PACKAGE_EXPAT
+	select BR2_PACKAGE_LIBEVENT
+	select BR2_PACKAGE_OPENSSL
+	depends on !BR2_STATIC_LIBS

By convention, we like to have "depends on" before "select". This type of coding style convention is verified by "make check-package".

Also, when there is a dependency on a toolchain feature like this, we add a Config.in comment:

comment "unbound needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS

I've fixed both small issues and applied.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#2 lore raw

PATCH v2 1/1 unbound: new package

Quoted 11 lines · Thomas Petazzoni

By convention, we like to have "depends on" before "select". This type of coding style convention is verified by "make check-package".

Also, when there is a dependency on a toolchain feature like this, we add a Config.in comment:

comment "unbound needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS

I've fixed both small issues and applied.

Thank you.

Signature · 2 lines
Stefan Ott
https://www.ott.net/