pkgsrc/databases/pgbouncer/Makefile
fhajny 6acf848729 Update databases/pgbouncer to 1.8.1.
PgBouncer 1.8.1
===============

Fixes

- Include file `include/pam.h` into distribution tarball. This
  prevented the 1.8 tarball from building at all.


PgBouncer 1.8
===============

Features

- Support PAM authentication.  (Enable with `--with-pam`.)
- Add `paused` and `disabled` fields to `SHOW DATABASES` output.
- Add `maxwait_us` field to `SHOW POOLS` output.
- Add `wait` and `wait_us` fields to `SHOW` commands output.
- Add new commands `SHOW STATS_TOTALS` and `SHOW STATS_AVERAGES`.
- Track queries and transactions separately in `SHOW STATS`. The
  fields `total_query_time`, `avg_query`, `avg_query`, and `avg_query`
  have been replaced by new fields.
- Add `wait_time` to `SHOW STATS`.

Fixes

- Updated libusual supports OpenSSL 1.1.
- Do not attempt to use TLS on Unix sockets.
- When parsing `pg_hba.conf`, keep parsing after erroneous lines
  instead of rejecting the whole file.
- Several other hba parsing fixes.
- Fix race condition when canceling query.

Cleanups

- `auth_user` setting is now also allowed globally, not only per
  database.
- Set console client and server encoding to `UTF8`.
2017-12-20 20:45:58 +00:00

67 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2017/12/20 20:45:58 fhajny Exp $
#
DISTNAME= pgbouncer-1.8.1
CATEGORIES= databases
MASTER_SITES= http://pgbouncer.github.io/downloads/files/${PKGVERSION_NOREV}/
MAINTAINER= pkgsrc@NetBSD.org
HOMEPAGE= http://pgbouncer.github.io/
COMMENT= Lightweight connection pooler for PostgreSQL
LICENSE= original-bsd
USE_LANGUAGES= c
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
.include "../../mk/bsd.prefs.mk"
PGB_USER?= pgbounce
PGB_GROUP?= pgbounce
PGB_LOG_DIR?= ${VARBASE}/log/pgbouncer
PGB_RUN_DIR?= ${VARBASE}/run
PKG_GROUPS= ${PGB_GROUP}
PKG_USERS= ${PGB_USER}:${PGB_GROUP}
PKG_GECOS.${PGB_USER}= PgBouncer daemon user
PKG_HOME.${PGB_USER}= ${PGB_LOG_DIR}
BUILD_DEFS+= PGB_USER PGB_GROUP VARBASE
FILES_SUBST+= PGB_USER=${PGB_USER}
FILES_SUBST+= PGB_GROUP=${PGB_GROUP}
OWN_DIRS_PERMS+= ${PGB_LOG_DIR} ${PGB_USER} ${PGB_GROUP} 0755
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/pgbouncer.ini ${PKG_SYSCONFDIR}/pgbouncer.ini \
${EGDIR}/userlist.txt ${PKG_SYSCONFDIR}/pgbouncer.userlist
RCD_SCRIPTS+= pgbouncer
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-configure
SUBST_MESSAGE.path= Fixing default paths
SUBST_FILES.path= etc/pgbouncer.ini
SUBST_SED.path= -e 's|/var/log/pgbouncer|${PGB_LOG_DIR}|g'
SUBST_SED.path+= -e 's|/var/run/pgbouncer|${PGB_RUN_DIR}|g'
SUBST_SED.path+= -e 's|/etc/pgbouncer|${PKG_SYSCONFDIR}|g'
SUBST_SED.path+= -e 's|userlist.txt|pgbouncer.userlist|g'
CONFIGURE_ARGS+= --with-cares=${BUILDLINK_PREFIX.libcares}
CONFIGURE_ARGS+= --with-libevent=${BUILDLINK_PREFIX.libevent}
CPPFLAGS.SunOS+= -D_STRUCTURED_PROC=1
# Avoid unwanted asciidoc/xmlto matches, get on without the html doc files.
# Bundled install-sh script unreliable. Install sample config files.
INSTALL_MAKE_FLAGS+= ASCIIDOC=
INSTALL_MAKE_FLAGS+= MKDIR_P=${INSTALL_DATA_DIR:Q}
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 ${EGDIR}
BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0
.include "../../devel/libevent/buildlink3.mk"
.include "../../net/libcares/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"