diff -urN pgbouncer.orig/Makefile pgbouncer/Makefile --- pgbouncer.orig/Makefile 2017-03-15 17:45:30.000000000 +0300 +++ pgbouncer/Makefile 2017-04-09 05:07:17.264064000 +0300 @@ -3,7 +3,7 @@ PORTNAME= pgbouncer PORTVERSION= 1.7.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= databases MASTER_SITES= https://pgbouncer.github.io/downloads/files/${PORTVERSION}/ \ http://pgbouncer.github.io/downloads/files/${PORTVERSION}/ @@ -26,6 +26,11 @@ GNU_CONFIGURE= yes USES= gmake ssl +OPTIONS_DEFINE= C-ARES +C-ARES_DESC= Use c-ares as Asynchronous DNS resolver +C-ARES_LIB_DEPENDS= libcares.so:dns/c-ares +C-ARES_CONFIGURE_WITHOUT= cares + CONFIGURE_ARGS= --with-libevent=${LOCALBASE} --enable-evdns CONFIGURE_ENV+= PTHREAD_LIBS="-lpthread"