Port of ldns and drill

Drill is a DNS utility inspired by dig.

https://www.nlnetlabs.nl/projects/ldns/

Fix #99
This commit is contained in:
Emery Hemingway
2018-02-22 13:38:53 +01:00
committed by Norman Feske
parent 995be00f3f
commit cdc389ef3d
8 changed files with 417 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
LDNS_PORT_DIR := $(call select_from_ports,ldns)
INC_DIR += $(LDNS_PORT_DIR)/include
CC_DEF += -DLDNS_TRUST_ANCHOR_FILE=\"/etc/unbound/root.key\"

13
lib/mk/ldns.mk Normal file
View File

@@ -0,0 +1,13 @@
include $(REP_DIR)/lib/import/import-ldns.mk
LDNS_SRC_DIR := $(LDNS_PORT_DIR)/src/lib/ldns
LIBS += libc libssl
SRC_LDNS_C := $(notdir $(wildcard $(LDNS_SRC_DIR)/*.c))
SRC_C += $(filter-out linktest.c,$(SRC_LDNS_C))
SRC_C += $(notdir $(wildcard $(LDNS_SRC_DIR)/compat/b64*.c))
SRC_CC += getproto.cc
vpath %.c $(LDNS_SRC_DIR) $(LDNS_SRC_DIR)/compat
vpath %.cc $(REP_DIR)/src/lib/ldns