ba5204a8ea
Update home page & master site, clean up. PgBouncer 1.6.1. - Security fix for CVE-2015-6817. - Per-pool pooling mode vs. reset query. Details: http://pgbouncer.github.io/2015/09/pgbouncer-1-6-1/ PgBouncer 1.6.0 Main new features: - Load user password hash from postgres database. - Pooling mode can be configured both per-database and per-user. - Per-database and per-user connection limits: max_db_connections and max_user_connections. - Add DISABLE/ENABLE commands to prevent new connections. - New preferred DNS backend: c-ares. - Config files have %include FILENAME directive to allow configuration to be split into several files. Details: http://pgbouncer.github.io/2015/08/pgbouncer-1-6/ PgBouncer 1.5.5 - Fix remote crash - invalid packet order causes lookup of NULL pointer. Not exploitable, just DoS.
67 lines
2.1 KiB
Makefile
67 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2015/10/23 16:40:38 fhajny Exp $
|
|
#
|
|
|
|
DISTNAME= pgbouncer-1.6.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"
|
|
|
|
PGUSER?= pgsql
|
|
PGGROUP?= pgsql
|
|
PKG_GROUPS= ${PGGROUP}
|
|
PKG_USERS= ${PGUSER}:${PGGROUP}
|
|
PKG_GECOS.${PGUSER}= PostgreSQL database administrator
|
|
PKG_HOME.${PGUSER}= ${PGHOME}
|
|
|
|
BUILD_DEFS+= PGUSER PGGROUP PGHOME VARBASE
|
|
FILES_SUBST+= PGUSER=${PGUSER}
|
|
FILES_SUBST+= PGGROUP=${PGGROUP}
|
|
FILES_SUBST+= PGHOME=${PGHOME}
|
|
|
|
PGB_LOG_DIR?= ${VARBASE}/log/pgbouncer
|
|
PGB_RUN_DIR?= ${VARBASE}/run
|
|
|
|
OWN_DIRS_PERMS+= ${PGB_LOG_DIR} ${PGUSER} ${PGGROUP} 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 "../../mk/bsd.pkg.mk"
|