From owner-dev-commits-ports-all@freebsd.org Fri Jun 4 21:20:40 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AD6096550EF; Fri, 4 Jun 2021 21:20:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FxbK44W5Qz4srv; Fri, 4 Jun 2021 21:20:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8336624366; Fri, 4 Jun 2021 21:20:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 154LKePE080457; Fri, 4 Jun 2021 21:20:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 154LKeWb080456; Fri, 4 Jun 2021 21:20:40 GMT (envelope-from git) Date: Fri, 4 Jun 2021 21:20:40 GMT Message-Id: <202106042120.154LKeWb080456@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Torsten Zuehlsdorff Subject: git: c167b0329e65 - main - databases/pgpool-II-42: New port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c167b0329e65dd5bd69f4ae4e46eab05160b0661 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2021 21:20:40 -0000 The branch main has been updated by tz: URL: https://cgit.FreeBSD.org/ports/commit/?id=c167b0329e65dd5bd69f4ae4e46eab05160b0661 commit c167b0329e65dd5bd69f4ae4e46eab05160b0661 Author: Torsten Zuehlsdorff AuthorDate: 2021-06-04 21:19:06 +0000 Commit: Torsten Zuehlsdorff CommitDate: 2021-06-04 21:19:06 +0000 databases/pgpool-II-42: New port pgpool is a connection pool server for PostgreSQL. pgpool runs between PostgreSQL's clients(front ends) and servers(back ends). A PostgreSQL client can connect to pgpool as if it were a standard PostgreSQL server. pgpool caches the connection to PostgreSQL server to reduce the overhead to establish the connection to it. WWW: https://pgpool.net/ PR: 256128 Submitted by: Mike Jakubik --- databases/Makefile | 1 + databases/pgpool-II-42/Makefile | 51 ++++++++++++++++++++++++++++++++++ databases/pgpool-II-42/distinfo | 3 ++ databases/pgpool-II-42/files/pgpool.in | 48 ++++++++++++++++++++++++++++++++ databases/pgpool-II-42/pkg-descr | 8 ++++++ databases/pgpool-II-42/pkg-message | 15 ++++++++++ databases/pgpool-II-42/pkg-plist | 46 ++++++++++++++++++++++++++++++ 7 files changed, 172 insertions(+) diff --git a/databases/Makefile b/databases/Makefile index 4cafbc2bd14a..8d19611241b2 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -591,6 +591,7 @@ SUBDIR += pgpool-II-37 SUBDIR += pgpool-II-40 SUBDIR += pgpool-II-41 + SUBDIR += pgpool-II-42 SUBDIR += pgreplay SUBDIR += pgroonga SUBDIR += pgrouting diff --git a/databases/pgpool-II-42/Makefile b/databases/pgpool-II-42/Makefile new file mode 100644 index 000000000000..dbdd86f33c2c --- /dev/null +++ b/databases/pgpool-II-42/Makefile @@ -0,0 +1,51 @@ +PORTNAME= pgpool-II +PORTVERSION= 4.2.3 +CATEGORIES= databases +MASTER_SITES= http://www.pgpool.net/mediawiki/images/ +PKGNAMESUFFIX= 42 + +MAINTAINER= mike.jakubik@swiftsmsgateway.com +COMMENT= Connection pool server for PostgreSQL + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +PORTSCOUT= limit:^4.2.[0-9]* + +USES= gmake libtool pgsql:9.6+ +USE_LDCONFIG= yes +USE_RC_SUBR= pgpool + +GNU_CONFIGURE= yes + +CONFLICTS= pgpool-II-[0-9]* + +PORTDOCS= * + +PAM_DESC= Build with PAM support +SSL_DESC= Build with OpenSSL support +MEMCACHED_DESC= Use memcached for in memory query cache + +OPTIONS_DEFINE= DOCS SSL PAM MEMCACHED +OPTIONS_DEFAULT= SSL + +MEMCACHED_CONFIGURE_ON= --with-memcached=${LOCALBASE}/include +MEMCACHED_LIB_DEPENDS= libmemcached.so:databases/libmemcached + +PAM_CONFIGURE_ON= --with-pam + +SSL_CONFIGURE_WITH= openssl +SSL_USES= ssl + +post-install: + @${MKDIR} ${STAGEDIR}/var/run/pgpool + ${INSTALL_LIB} ${WRKSRC}/src/libs/pcp/.libs/libpcp.so.2.0.0 ${STAGEDIR}${PREFIX}/lib + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR} "-not -name Makefile.\*" +.for f in AUTHORS ChangeLog NEWS TODO + ${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} +.endfor + +.include diff --git a/databases/pgpool-II-42/distinfo b/databases/pgpool-II-42/distinfo new file mode 100644 index 000000000000..f113343ee9ba --- /dev/null +++ b/databases/pgpool-II-42/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1621536839 +SHA256 (pgpool-II-4.2.3.tar.gz) = 1cd3a9100aab6711050b291e94e4805287182054ce7811a697bc05723150d6cc +SIZE (pgpool-II-4.2.3.tar.gz) = 4751944 diff --git a/databases/pgpool-II-42/files/pgpool.in b/databases/pgpool-II-42/files/pgpool.in new file mode 100644 index 000000000000..cb76557e2e57 --- /dev/null +++ b/databases/pgpool-II-42/files/pgpool.in @@ -0,0 +1,48 @@ +#!/bin/sh + +# PROVIDE: pgpool +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# pgpool_enable (bool): Set to NO by default. +# Set it to YES to enable pgpool. +# pgpool_conf (file): Set location of your config. +# Default is "%%PREFIX%%/etc/pgpool.conf" +# pgpool_hba (file): Set location of your pool hba file. +# Default is "%%PREFIX%%/etc/pool_hba.conf" +# pgpool_pcp (file): Set location of your pcp conf file. +# Default is "%%PREFIX%%/etc/pcp.conf" +# pgpool_user (uid): User ID to run as (default nobody) +# pgpool_stop_mode (string): Shutdown mode +# Default is "smart" +# Possibilities are "smart", "fast", or "immediate" +# + +. /etc/rc.subr + +name=pgpool +rcvar=pgpool_enable + +load_rc_config $name + +: ${pgpool_enable="NO"} +: ${pgpool_conf="%%PREFIX%%/etc/pgpool.conf"} +: ${pgpool_hba="%%PREFIX%%/etc/pool_hba.conf"} +: ${pgpool_pcp="%%PREFIX%%/etc/pcp.conf"} +: ${pgpool_user="nobody"} +: ${pgpool_stop_mode="smart"} + +command="%%PREFIX%%/bin/pgpool" +command_args="-f ${pgpool_conf} -a ${pgpool_hba} -F ${pgpool_pcp}" +stop_cmd="${command} -m ${pgpool_stop_mode} ${command_args} stop" +reload_cmd="${command} ${command_args} reload" +extra_commands="reload" + +required_files="${pgpool_conf}" + + +run_rc_command "$1" + diff --git a/databases/pgpool-II-42/pkg-descr b/databases/pgpool-II-42/pkg-descr new file mode 100644 index 000000000000..474bcbe9a30e --- /dev/null +++ b/databases/pgpool-II-42/pkg-descr @@ -0,0 +1,8 @@ +pgpool is a connection pool server for PostgreSQL. pgpool runs between +PostgreSQL's clients(front ends) and servers(back ends). A PostgreSQL client can +connect to pgpool as if it were a standard PostgreSQL server. + +pgpool caches the connection to PostgreSQL server to reduce the overhead to +establish the connection to it. + +WWW: https://pgpool.net/ diff --git a/databases/pgpool-II-42/pkg-message b/databases/pgpool-II-42/pkg-message new file mode 100644 index 000000000000..1df287cd433a --- /dev/null +++ b/databases/pgpool-II-42/pkg-message @@ -0,0 +1,15 @@ +[ +{ type: install + message: <