Upgrade dns/dnsdbq to version 2.4.0:

* Requires using an updated DNSDB API server. (2.3.0)

* To use the new features, add the following line the ~/.dnsdb-query.conf
  file: (2.3.0)
    DNSDBQ_SYSTEM=dnsdb2
  or add the command-line option
    -u dnsdb2

  If you leave out that line, that command-line option, or use
    DNSDBQ_SYSTEM=dnsdb
  then dnsdbq will function as it previously did with DNSDB API version 1.

* change DEFAULT_SYS from dnsdb to dnsdb2; adapt rest of system to cope
  (2.4.0)

* add support to probe what pDNS systems the endpoint supports (2.4.0)

* normalize DNSDB APIv2; rename encap_bare to encap_cof; incorporate encap
  into pdns_system; remove all encap inequality tests (2.4.0)

Sponsored by:	Farsight Security, Inc.
This commit is contained in:
Don Lewis 2021-02-21 07:13:48 +00:00
parent b981acf08a
commit 5228f8b8f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=566207
3 changed files with 47 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= dnsdbq
PORTVERSION= 2.2.1
PORTVERSION= 2.4.0
DISTVERSIONPREFIX= v
CATEGORIES= dns

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1595548089
SHA256 (dnsdb-dnsdbq-v2.2.1_GH0.tar.gz) = 70ab1ac3c1446ce359fcd5279170f3678cd2008e197ca0dc411768e5424147ee
SIZE (dnsdb-dnsdbq-v2.2.1_GH0.tar.gz) = 41905
TIMESTAMP = 1613866169
SHA256 (dnsdb-dnsdbq-v2.4.0_GH0.tar.gz) = 576ec8eb4fb4b55fad556cdf70e69e753397e6fb0377d20112ae8c796a1a638d
SIZE (dnsdb-dnsdbq-v2.4.0_GH0.tar.gz) = 51147

View File

@ -0,0 +1,43 @@
--- Makefile.orig 2021-02-18 00:40:10 UTC
+++ Makefile
@@ -15,10 +15,10 @@
#
CURLINCL = `curl-config --cflags`
-JANSINCL = -I/usr/local/include
+JANSINCL = -I$(LOCALBASE)/include
CURLLIBS = `[ ! -z "$$(curl-config --libs)" ] && curl-config --libs || curl-config --static-libs`
-JANSLIBS = -L/usr/local/lib -ljansson
+JANSLIBS = -L$(LOCALBASE)/lib -ljansson
CWARN =-W -Wall -Wextra -Wcast-qual -Wpointer-arith -Wwrite-strings \
-Wmissing-prototypes -Wbad-function-cast -Wnested-externs \
@@ -34,7 +34,7 @@ CDEBUG = -g -O3
CFLAGS += $(CGPROF) $(CDEBUG) $(CWARN) $(CDEFS)
INCL= $(CURLINCL) $(JANSINCL)
# freebsd requires that -lresolv _not_ be used here
-LIBS= $(CURLLIBS) $(JANSLIBS) -lresolv
+LIBS= $(CURLLIBS) $(JANSLIBS)
#LIBS= $(CURLLIBS) $(JANSLIBS)
TOOL = dnsdbq
@@ -48,12 +48,12 @@ TOOL_SRC = $(TOOL).c ns_ttl.c netio.c \
all: $(TOOL)
install: all
- rm -f /usr/local/bin/$(TOOL)
- mkdir -p /usr/local/bin
- cp $(TOOL) /usr/local/bin/$(TOOL)
- rm -f /usr/local/share/man/man1/$(TOOL).1
- mkdir -p /usr/local/share/man/man1
- cp $(TOOL).man /usr/local/share/man/man1/$(TOOL).1
+ rm -f $(PREFIX)/bin/$(TOOL)
+ mkdir -p $(PREFIX)/bin
+ cp $(TOOL) $(PREFIX)/bin/$(TOOL)
+ rm -f $(PREFIX)/share/man/man1/$(TOOL).1
+ mkdir -p $(PREFIX)/share/man/man1
+ cp $(TOOL).man $(PREFIX)/share/man/man1/$(TOOL).1
clean:
rm -f $(TOOL)