Index: head/dns/getdns/Makefile =================================================================== --- head/dns/getdns/Makefile (revision 454318) +++ head/dns/getdns/Makefile (revision 454319) @@ -1,56 +1,67 @@ # Created by: Ryan Steinmetz # $FreeBSD$ 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 LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libexpat.so:textproc/expat2 \ libidn.so:dns/libidn \ libldns.so:dns/ldns \ libunbound.so:dns/unbound USES= libtool pathfix ssl USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-libidn=${LOCALBASE} --docdir=${DOCSDIR} \ --with-trust-anchor=${LOCALBASE}/etc/unbound/root.key SOMAJVER= 6 SOVERSION= ${SOMAJVER}.${PORTVERSION:C/[0-9].([0-9].[0-9])/\1/1} MAKE_JOBS_UNSAFE=yes 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 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,' \ -e '/echo .\*\*\*/d' ${WRKSRC}/Makefile.in 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 Index: head/dns/getdns/pkg-plist =================================================================== --- head/dns/getdns/pkg-plist (revision 454318) +++ head/dns/getdns/pkg-plist (revision 454319) @@ -1,102 +1,104 @@ 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 %%LIBEVENT%%include/getdns/getdns_ext_libevent.h %%LIBUV%%include/getdns/getdns_ext_libuv.h lib/libgetdns.so lib/libgetdns.so.%%SOMAJVER%% lib/libgetdns.so.%%SOVERSION%% lib/libgetdns.a libdata/pkgconfig/getdns.pc libdata/pkgconfig/getdns_ext_event.pc %%LIBEV%%lib/libgetdns_ext_ev.so.%%SOMAJVER%% %%LIBEV%%lib/libgetdns_ext_ev.so.%%SOVERSION%% %%LIBEV%%lib/libgetdns_ext_ev.a %%LIBEV%%lib/libgetdns_ext_ev.so %%LIBEVENT%%lib/libgetdns_ext_event.so.%%SOMAJVER%% %%LIBEVENT%%lib/libgetdns_ext_event.so.%%SOVERSION%% %%LIBEVENT%%lib/libgetdns_ext_event.a %%LIBEVENT%%lib/libgetdns_ext_event.so %%LIBUV%%lib/libgetdns_ext_uv.so.%%SOMAJVER%% %%LIBUV%%lib/libgetdns_ext_uv.so.%%SOVERSION%% %%LIBUV%%lib/libgetdns_ext_uv.a %%LIBUV%%lib/libgetdns_ext_uv.so man/man3/getdns_address.3.gz man/man3/getdns_address_sync.3.gz man/man3/getdns_cancel_callback.3.gz man/man3/getdns_context.3.gz man/man3/getdns_context_create.3.gz man/man3/getdns_context_create_with_extended_memory_functions.3.gz man/man3/getdns_context_create_with_memory_functions.3.gz man/man3/getdns_context_destroy.3.gz man/man3/getdns_context_get_api_information.3.gz man/man3/getdns_context_set.3.gz man/man3/getdns_context_set_append_name.3.gz man/man3/getdns_context_set_context_update_callback.3.gz man/man3/getdns_context_set_dns_root_servers.3.gz man/man3/getdns_context_set_dns_transport.3.gz man/man3/getdns_context_set_dnssec_allowed_skew.3.gz man/man3/getdns_context_set_dnssec_trust_anchors.3.gz man/man3/getdns_context_set_follow_redirects.3.gz man/man3/getdns_context_set_limit_outstanding_queries.3.gz man/man3/getdns_context_set_namespaces.3.gz man/man3/getdns_context_set_resolution_type.3.gz man/man3/getdns_context_set_suffix.3.gz man/man3/getdns_context_set_timeout.3.gz man/man3/getdns_convert.3.gz man/man3/getdns_convert_dns_name_to_fqdn.3.gz man/man3/getdns_convert_fqdn_to_dns_name.3.gz man/man3/getdns_dict.3.gz man/man3/getdns_dict_create.3.gz man/man3/getdns_dict_create_with_extended_memory_functions.3.gz man/man3/getdns_dict_create_with_memory_functions.3.gz man/man3/getdns_dict_destroy.3.gz man/man3/getdns_dict_get.3.gz man/man3/getdns_dict_get_bindata.3.gz man/man3/getdns_dict_get_data_type.3.gz man/man3/getdns_dict_get_dict.3.gz man/man3/getdns_dict_get_int.3.gz man/man3/getdns_dict_get_list.3.gz man/man3/getdns_dict_get_names.3.gz man/man3/getdns_dict_set.3.gz man/man3/getdns_dict_set_bindata.3.gz man/man3/getdns_dict_set_dict.3.gz man/man3/getdns_dict_set_int.3.gz man/man3/getdns_dict_set_list.3.gz man/man3/getdns_display_ip_address.3.gz man/man3/getdns_general.3.gz man/man3/getdns_general_sync.3.gz man/man3/getdns_hostname.3.gz man/man3/getdns_hostname_sync.3.gz man/man3/getdns_list.3.gz man/man3/getdns_list_create.3.gz man/man3/getdns_list_create_with_extended_memory_functions.3.gz man/man3/getdns_list_create_with_memory_functions.3.gz man/man3/getdns_list_destroy.3.gz man/man3/getdns_list_get.3.gz man/man3/getdns_list_get_bindata.3.gz man/man3/getdns_list_get_data_type.3.gz man/man3/getdns_list_get_dict.3.gz man/man3/getdns_list_get_int.3.gz man/man3/getdns_list_get_length.3.gz man/man3/getdns_list_get_list.3.gz man/man3/getdns_list_set.3.gz man/man3/getdns_list_set_bindata.3.gz man/man3/getdns_list_set_dict.3.gz man/man3/getdns_list_set_int.3.gz man/man3/getdns_list_set_list.3.gz man/man3/getdns_pretty_print_dict.3.gz man/man3/getdns_root_trust_anchor.3.gz man/man3/getdns_service.3.gz man/man3/getdns_service_sync.3.gz man/man3/getdns_validate_dnssec.3.gz man/man3/libgetdns.3.gz %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/COPYING %%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/INSTALL %%PORTDOCS%%%%DOCSDIR%%/LICENSE %%PORTDOCS%%%%DOCSDIR%%/NEWS %%PORTDOCS%%%%DOCSDIR%%/README.md %%PORTDOCS%%%%DOCSDIR%%/spec/index.html