aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2017-11-17 01:20:09 +0800
committerzi <zi@FreeBSD.org>2017-11-17 01:20:09 +0800
commitb8523624138e45dec91024c68a0d345e9f72becf (patch)
tree829c52efab73eb9dad1c5487526c161312a0271a /dns
parentcd97f33aa97a95012f51b510c8544df94d9ff13b (diff)
downloadfreebsd-ports-gnome-b8523624138e45dec91024c68a0d345e9f72becf.tar.gz
freebsd-ports-gnome-b8523624138e45dec91024c68a0d345e9f72becf.tar.zst
freebsd-ports-gnome-b8523624138e45dec91024c68a0d345e9f72becf.zip
- Add OPTION for stubby
- Bump PORTREVISION PR: 223710 Submitted by: Ollivier Robert
Diffstat (limited to 'dns')
-rw-r--r--dns/getdns/Makefile15
-rw-r--r--dns/getdns/pkg-plist2
2 files changed, 15 insertions, 2 deletions
diff --git a/dns/getdns/Makefile b/dns/getdns/Makefile
index fa3efdb27c10..0144666a0a5d 100644
--- a/dns/getdns/Makefile
+++ b/dns/getdns/Makefile
@@ -3,10 +3,11 @@
PORTNAME= getdns
PORTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= dns ipv6
MASTER_SITES= https://getdnsapi.net/dist/ \
ZI \
- http://getdnsapi.net/dist/ \
+ http://getdnsapi.net/dist/
MAINTAINER= zi@FreeBSD.org
COMMENT= Modern asynchronous DNS API
@@ -32,11 +33,12 @@ PLIST_SUB+= SOVERSION="${SOVERSION}" SOMAJVER="${SOMAJVER}"
SUB_FILES+= pkg-message
OPTIONS_SUB= yes
-OPTIONS_DEFINE= DOCS LIBEV LIBEVENT LIBUV
+OPTIONS_DEFINE= DOCS LIBEV LIBEVENT LIBUV STUBBY
LIBEV_DESC= Build with libev extension
LIBEVENT_DESC= Build with libevent extension
LIBUV_DESC= Build with libuv extension
+STUBBY_DESC= Build with Stubby DNS/TLS resolver
LIBEV_LIB_DEPENDS= libev.so:devel/libev
LIBEV_CONFIGURE_WITH= libev
@@ -44,6 +46,8 @@ LIBEVENT_LIB_DEPENDS= libevent_core.so:devel/libevent
LIBEVENT_CONFIGURE_WITH=libevent
LIBUV_LIB_DEPENDS= libuv.so:devel/libuv
LIBUV_CONFIGURE_WITH= libuv
+STUBBY_LIB_DEPENDS= libyaml.so:textproc/libyaml
+STUBBY_CONFIGURE_WITH= stubby
post-patch:
${REINPLACE_CMD} -Ee 's,^(sharedoc = ).*,\1${WRKDIR}/doc,' \
@@ -53,4 +57,11 @@ post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgetdns*.so.*
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getdns_query
+post-stage-STUBBY-on:
+ ${MV} ${STAGEDIR}${PREFIX}/etc/stubby/stubby.yml \
+ ${STAGEDIR}${PREFIX}/etc/stubby/stubby.yml.sample
+
+post-install-STUBBY-on:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/stubby
+
.include <bsd.port.mk>
diff --git a/dns/getdns/pkg-plist b/dns/getdns/pkg-plist
index 04ce5db4229f..6cae93d7a4d5 100644
--- a/dns/getdns/pkg-plist
+++ b/dns/getdns/pkg-plist
@@ -1,4 +1,6 @@
bin/getdns_query
+%%STUBBY%%bin/stubby
+%%STUBBY%%@sample etc/stubby/stubby.yml.sample
include/getdns/getdns.h
include/getdns/getdns_extra.h
%%LIBEV%%include/getdns/getdns_ext_libev.h