Skip to contentSkip to conversation

package/libldns: new package

PATCH Superseded Bernd Kuhls 2 participants 2 messages Aug 29, 2015

v2 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/libldns: new package

Needed by freeswitch.

---
v2: - added locally computed sha256 hash (Thomas)
- fixed compilation with OpenSSL disabled (Thomas)
- fixed license type (Thomas)

 package/Config.in                                  |  1 +
 ...-double-free-for-answers-bigger-than-4096.patch | 25 ++++++++++++
 ...0002-fix-whitespace-bug-in-ldns-read-zone.patch | 45 ++++++++++++++++++++++
 package/libldns/Config.in                          |  9 +++++
 package/libldns/libldns.hash                       |  4 ++
 package/libldns/libldns.mk                         | 36 +++++++++++++++++
 6 files changed, 120 insertions(+)
 create mode 100644 package/libldns/0001-fix-double-free-for-answers-bigger-than-4096.patch
 create mode 100644 package/libldns/0002-fix-whitespace-bug-in-ldns-read-zone.patch
 create mode 100644 package/libldns/Config.in
 create mode 100644 package/libldns/libldns.hash
 create mode 100644 package/libldns/libldns.mk
package/Config.in +1 -0
index eb4215d..93b69b2 100644
@@ -987,6 +987,7 @@ menu "Networking"
 	source "package/libhttpparser/Config.in"
 	source "package/libidn/Config.in"
 	source "package/libiscsi/Config.in"
+	source "package/libldns/Config.in"
 	source "package/libmbus/Config.in"
 	source "package/libmemcached/Config.in"
 	source "package/libmicrohttpd/Config.in"
package/libldns/0001-fix-double-free-for-answers-bigger-than-4096.patch new file +25 -0
new file mode 100644
index 0000000..36bc875
@@ -0,0 +1,25 @@
+Downloaded from
+http://anonscm.debian.org/cgit/pkg-nlnetlabs/ldns.git/plain/debian/patches/fix-double-free-for-answers-bigger-than-4096.patch
+
+which is a backport from upstream
+http://git.nlnetlabs.nl/ldns/commit/?h=develop&id=2853eb352b4461e98f2926ace4ea3810cedf4167
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+From 2853eb352b4461e98f2926ace4ea3810cedf4167 Mon Sep 17 00:00:00 2001
+From: Willem Toorop <[email protected]>
+Date: Tue, 28 Jan 2014 11:06:38 +0100
+Subject: bugfix #548: Double free for answers > 4096
+
+in ldns_resolver_send_pkt.  Thank you sunthought at gmail.com
+---
+--- ldns.orig/resolver.c
++++ ldns/resolver.c
+@@ -1117,6 +1117,7 @@ ldns_resolver_send_pkt(ldns_pkt **answer
+ 					ldns_pkt_set_edns_udp_size(query_pkt
+ 							, 4096);
+ 					ldns_pkt_free(answer_pkt);
++					answer_pkt = NULL;
+ 					/* Nameservers should not become 
+ 					 * unreachable because fragments are
+ 					 * dropped (network error). We might
package/libldns/0002-fix-whitespace-bug-in-ldns-read-zone.patch new file +45 -0

45 lines not on this page · raw message

package/libldns/Config.in new file +9 -0
new file mode 100644
index 0000000..12065ae
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBLDNS
+	bool "libldns"
+	help
+	  The goal of ldns is to simplify DNS programming, it supports
+	  recent RFCs like the DNSSEC documents, and allows developers
+	  to easily create software conforming to current RFCs, and
+	  experimental software for current Internet Drafts.
+
+	  http://www.nlnetlabs.nl/projects/ldns
package/libldns/libldns.hash new file +4 -0
new file mode 100644
index 0000000..3565c58
@@ -0,0 +1,4 @@
+# From http://www.nlnetlabs.nl/downloads/ldns/ldns-1.6.17.tar.gz.sha1
+sha1	4218897b3c002aadfc7280b3f40cda829e05c9a4	ldns-1.6.17.tar.gz
+# Locally calculated
+sha256	8b88e059452118e8949a2752a55ce59bc71fa5bc414103e17f5b6b06f9bcc8cd	ldns-1.6.17.tar.gz
package/libldns/libldns.mk new file +36 -0
new file mode 100644
index 0000000..9a28404
@@ -0,0 +1,36 @@
+################################################################################
+#
+# libldns
+#
+################################################################################
+
+LIBLDNS_VERSION = 1.6.17
+LIBLDNS_SOURCE = ldns-$(LIBLDNS_VERSION).tar.gz
+LIBLDNS_SITE = http://www.nlnetlabs.nl/downloads/ldns
+LIBLDNS_LICENSE = BSD-3c
+LIBLDNS_LICENSE_FILES = LICENSE
+LIBLDNS_INSTALL_STAGING = YES
+LIBLDNS_CONF_OPTS = \
+	--without-examples \
+	--without-p5-dns-ldns \
+	--without-pyldns \
+	--without-pyldnsx
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+LIBLDNS_DEPENDENCIES += host-pkgconf openssl
+LIBLDNS_CONF_OPTS += \
+	--with-ssl=$(STAGING_DIR)/usr \
+	--enable-dane \
+	--enable-ecdsa \
+	--enable-gost \
+	--enable-sha2
+else
+LIBLDNS_CONF_OPTS += \
+	--without-ssl \
+	--disable-dane \
+	--disable-ecdsa \
+	--disable-gost \
+	--disable-sha2
+endif
+
+$(eval $(autotools-package))
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 1/1 package/libldns: new package

Dear Bernd Kuhls,

Quoted 7 lines · Bernd Kuhls

Needed by freeswitch.

---
v2: - added locally computed sha256 hash (Thomas)
- fixed compilation with OpenSSL disabled (Thomas)
- fixed license type (Thomas)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com