- Add OPTION for stubby

- Bump PORTREVISION

PR:		223710
Submitted by:	Ollivier Robert
This commit is contained in:
Ryan Steinmetz 2017-11-16 17:20:09 +00:00
parent 96025cafd3
commit fb4fe3485b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=454319
2 changed files with 15 additions and 2 deletions

View file

@ -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>

View file

@ -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