diff options
Diffstat (limited to 'databases/pgbouncer/Makefile')
-rw-r--r-- | databases/pgbouncer/Makefile | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/databases/pgbouncer/Makefile b/databases/pgbouncer/Makefile index 3f93989c4369..e61ea879ea40 100644 --- a/databases/pgbouncer/Makefile +++ b/databases/pgbouncer/Makefile @@ -1,60 +1,60 @@ -# Created by: Sergey Skvortsov <skv@protey.ru> - PORTNAME= pgbouncer -PORTVERSION= 1.14.0 -PORTREVISION= 1 +PORTVERSION= 1.22.1 CATEGORIES= databases -MASTER_SITES= https://pgbouncer.github.io/downloads/files/${PORTVERSION}/ \ - http://pgbouncer.github.io/downloads/files/${PORTVERSION}/ +MASTER_SITES= https://www.pgbouncer.org/downloads/files/${PORTVERSION}/ \ + http://www.pgbouncer.org/downloads/files/${PORTVERSION}/ -MAINTAINER= m.tsatsenko@gmail.com +MAINTAINER= dmitry.wagin@ya.ru COMMENT= Lightweight connection pooler for PostgreSQL +WWW= https://www.pgbouncer.org/ LICENSE= BSD2CLAUSE LIB_DEPENDS= libevent.so:devel/libevent -BUILD_DEPENDS+= ${LOCALBASE}/bin/gsed:textproc/gsed -USES= gmake ssl pkgconfig +USES= cpe gmake pkgconfig ssl +USE_RC_SUBR= pgbouncer + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-evdns \ + --with-libevent=${LOCALBASE} +CONFIGURE_ENV+= PTHREAD_LIBS="-lpthread" PORTSCOUT= site:https://pgbouncer.github.io/downloads/ +SUB_FILES= pkg-message +SUB_LIST+= PGBOUNCER_RUNDIR="${PGBOUNCER_RUNDIR}" -USERS= pgbouncer -GROUPS= pgbouncer +USERS= ${PGBOUNCER_USER} +GROUPS= ${PGBOUNCER_GROUP} -USE_RC_SUBR= pgbouncer -GNU_CONFIGURE= yes +PLIST_SUB+= PGBOUNCER_GROUP="${GROUPS}" \ + PGBOUNCER_LOGDIR="${PGBOUNCER_LOGDIR}" \ + PGBOUNCER_RUNDIR="${PGBOUNCER_RUNDIR}" \ + PGBOUNCER_USER="${USERS}" OPTIONS_DEFINE= CARES + CARES_LIB_DEPENDS= libcares.so:dns/c-ares CARES_CONFIGURE_WITH= cares -CONFIGURE_ARGS= --with-libevent=${LOCALBASE} --enable-evdns -CONFIGURE_ENV+= PTHREAD_LIBS="-lpthread" - -PGBOUNCER_USER?= pgbouncer PGBOUNCER_GROUP?= pgbouncer +PGBOUNCER_USER?= pgbouncer PGBOUNCER_RUNDIR?= /var/run/pgbouncer PGBOUNCER_LOGDIR?= /var/log/pgbouncer -PLIST_SUB+= PGBOUNCER_USER="${USERS}" \ - PGBOUNCER_GROUP="${GROUPS}" \ - PGBOUNCER_LOGDIR="${PGBOUNCER_LOGDIR}" \ - PGBOUNCER_RUNDIR="${PGBOUNCER_RUNDIR}" -SUB_LIST+= PGBOUNCER_RUNDIR="${PGBOUNCER_RUNDIR}" - post-patch: - @${REINPLACE_CMD} -e "s|= pgbouncer.log|= ${PGBOUNCER_LOGDIR}/pgbouncer.log|g" \ - -e "s|= pgbouncer.pid|= ${PGBOUNCER_RUNDIR}/pgbouncer.pid|g" \ + @${REINPLACE_CMD} -e "s|= /etc/pgbouncer/userlist.txt|= ${PREFIX}/etc/pgbouncer.users|g" \ + -e "s|= /var/log/pgbouncer/pgbouncer.log|= ${PGBOUNCER_LOGDIR}/pgbouncer.log|g" \ + -e "s|= /var/run/pgbouncer/pgbouncer.pid|= ${PGBOUNCER_RUNDIR}/pgbouncer.pid|g" \ + -e "s|= /etc/pgbouncer/resolv.conf|= ${PREFIX}/etc/pgbouncer-resolv.conf|g" \ + -e "s|include /etc/pgbouncer/pgbouncer-other.ini|include ${PREFIX}/etc/pgbouncer-other.ini|g" \ ${WRKSRC}/etc/pgbouncer.ini - @${REINPLACE_CMD} -e "s|sed -n|${LOCALBASE}/bin/gsed -n|g" \ - ${WRKSRC}/lib/find_modules.sh do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pgbouncer ${STAGEDIR}${PREFIX}/bin/ - ${INSTALL_MAN} ${WRKSRC}/doc/pgbouncer.1 ${STAGEDIR}${PREFIX}/man/man1/ - ${INSTALL_MAN} ${WRKSRC}/doc/pgbouncer.5 ${STAGEDIR}${PREFIX}/man/man5/ + ${INSTALL_MAN} ${WRKSRC}/doc/pgbouncer.1 ${STAGEDIR}${PREFIX}/share/man/man1/ + ${INSTALL_MAN} ${WRKSRC}/doc/pgbouncer.5 ${STAGEDIR}${PREFIX}/share/man/man5/ ${INSTALL_DATA} ${WRKSRC}/etc/pgbouncer.ini \ ${STAGEDIR}${PREFIX}/etc/pgbouncer.ini.sample ${INSTALL_DATA} ${WRKSRC}/etc/userlist.txt \ |