diff --git a/dns/dnsdbq/Makefile b/dns/dnsdbq/Makefile index 49ca677b9360..42aa073874b0 100644 --- a/dns/dnsdbq/Makefile +++ b/dns/dnsdbq/Makefile @@ -1,28 +1,28 @@ PORTNAME= dnsdbq -PORTVERSION= 2.6.0 +PORTVERSION= 2.6.4 DISTVERSIONPREFIX= v CATEGORIES= dns MAINTAINER= truckman@FreeBSD.org COMMENT= DNSDB API Client, C Version WWW= https://github.com/dnsdb/dnsdbq LICENSE= APACHE20 LICENSE_FILE_APACHE20= ${WRKSRC}/Apache-2.0 LIB_DEPENDS= libjansson.so:devel/jansson \ libcurl.so:ftp/curl USES= compiler:c11 localbase USE_GITHUB= yes GH_ACCOUNT= dnsdb PORTSCOUT= limit:^[0-9]*\.[0-9]*\.[0-9]*$$ PLIST_FILES= bin/${PORTNAME} share/man/man1/${PORTNAME}.1.gz do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ ${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1/ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man ${STAGEDIR}${PREFIX}/share/man/man1/${PORTNAME}.1 .include diff --git a/dns/dnsdbq/distinfo b/dns/dnsdbq/distinfo index ef7f557a88e9..8713851b4875 100644 --- a/dns/dnsdbq/distinfo +++ b/dns/dnsdbq/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1637446719 -SHA256 (dnsdb-dnsdbq-v2.6.0_GH0.tar.gz) = 517f8cce434f4974a80838cd643eb84af7a0d0c4a3df4e18bf6b01a047e9e137 -SIZE (dnsdb-dnsdbq-v2.6.0_GH0.tar.gz) = 57394 +TIMESTAMP = 1663227292 +SHA256 (dnsdb-dnsdbq-v2.6.4_GH0.tar.gz) = e9ab9cdee298de948ef501c3213da4b1d208645302007ba132c8c6b6c5732f71 +SIZE (dnsdb-dnsdbq-v2.6.4_GH0.tar.gz) = 59241 diff --git a/dns/dnsdbq/files/patch-Makefile b/dns/dnsdbq/files/patch-Makefile index 2567f38f9ba1..22b2d985c996 100644 --- a/dns/dnsdbq/files/patch-Makefile +++ b/dns/dnsdbq/files/patch-Makefile @@ -1,43 +1,42 @@ ---- Makefile.orig 2021-02-18 00:40:10 UTC +--- Makefile.orig 2022-08-05 00:08:56 UTC +++ Makefile -@@ -15,10 +15,10 @@ +@@ -15,7 +15,7 @@ # - CURLINCL = `curl-config --cflags` --JANSINCL = -I/usr/local/include -+JANSINCL = -I$(LOCALBASE)/include + # Base directory for jansson header and libraries +-JANSBASE=/usr/local ++JANSBASE=$(LOCALBASE) + # For macOS on M1, use this instead of the above line: + #JANSBASE=/opt/homebrew - 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 +@@ -41,9 +41,9 @@ INCL= $(CURLINCL) $(JANSINCL) + 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) -lresolv + # For freebsd, it requires that -lresolv _not_ be used here, use this instead of the above line: +-#LIBS= $(CURLLIBS) $(JANSLIBS) +LIBS= $(CURLLIBS) $(JANSLIBS) - #LIBS= $(CURLLIBS) $(JANSLIBS) TOOL = dnsdbq -@@ -48,12 +48,12 @@ TOOL_SRC = $(TOOL).c ns_ttl.c netio.c \ + TOOL_OBJ = $(TOOL).o ns_ttl.o netio.o \ +@@ -58,12 +58,12 @@ install: all 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) diff --git a/dns/dnsdbq/files/patch-deduper.c b/dns/dnsdbq/files/patch-deduper.c deleted file mode 100644 index a7447683873f..000000000000 --- a/dns/dnsdbq/files/patch-deduper.c +++ /dev/null @@ -1,22 +0,0 @@ -commit cbe42ddcb4f4e2b55365cd1d9c13c589957ccb6e -Author: Sascha Steinbiss -Date: Tue Nov 2 19:18:31 2021 +0100 - - use 'zu' format string in deduper_dump() (#196) - - The use of 'lu' to format a size_t leads to build failures (via -Werror) - on many architectures. - -diff --git deduper.c.orig deduper.c -index 5300aea..a06b13e 100644 ---- deduper.c.orig -+++ deduper.c -@@ -87,7 +87,7 @@ void - deduper_dump(deduper_t me, FILE *out) { - for (size_t bucket = 0; bucket < me->buckets; bucket++) - if (me->chains[bucket] != NULL) { -- fprintf(out, "[%lu]", bucket); -+ fprintf(out, "[%zu]", bucket); - for (chainlink_t chainlink = me->chains[bucket]; - chainlink != NULL; - chainlink = chainlink->next)