From nobody Tue Dec 28 01:29:10 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 443071923009; Tue, 28 Dec 2021 01:29:11 +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 4JNH4k6M53z3jhb; Tue, 28 Dec 2021 01:29:10 +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 B9C604DF; Tue, 28 Dec 2021 01:29:10 +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 1BS1TAAA032106; Tue, 28 Dec 2021 01:29:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BS1TAv0032105; Tue, 28 Dec 2021 01:29:10 GMT (envelope-from git) Date: Tue, 28 Dec 2021 01:29:10 GMT Message-Id: <202112280129.1BS1TAv0032105@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 9afad415443b - main - databases/pgpool-II-43: New Port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9afad415443b91904c5499a0acebc94e9d1116d3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640654950; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RXca1GGZmg4OKcS2Rxs+WhROD+I5m0alt1Sw2fYGQpw=; b=DKiy+Fiix9qT+l0z7ZhClW1/szV+rtKrxabOlIX+6X+WObPDahPyCRAeJ8Q8LVBmjcLfA3 ai2iDuZfzZqM0O6FNG69MqbytQ9T0DOlhZEtcm5f8vQUjW+1TKAhRlQiqEQHvY6PRlTIB9 9aVDey9/RTRrTHDJ5pqyHBfsY5sU7F9Hqi2kvg+uQx9QmKUs1eyHbvzG2zF3hth30IXRCx FHlDbbh/rn7225BmWvpgkMUbvau3GDGydINadU9NL7dxqRqI2XxWDCGdSg2+yNt8RKjRdH BIsIGtER3f4xxccgUZSa32lWOoQNlxmSPBE+4JKpPP1VBgPIlm/9Se8E2gmciw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640654950; a=rsa-sha256; cv=none; b=R3mfX4RRDUCcxT86oPwixkzTL/Ctba5EM1I/uggN/GM+Zbtd0ZAlKlYwMAsAgXoeDBSHnq EnOCkqoH71/KEFPG9e0T2RzTf3nFvGhgb2qlK/fYRnozz2rlkTT4HcvHCsBLIufIoVtJSk 9tzYy6q/ie9fywGzUCAS0eVMiBPlQ96DgW8fW9x44zhLDpQ7q+9qsU8ybt5eftSKAvXMRl d2txAnkuhw+MkuYmjF7E5KcgeEIhW6JsYLpKa2X3WVjp10jwS9lH0hzlcGzUb0esGi51kt lTEmEn8quvG3d+NO62ns+4GivkHeevdp/m2ewUxcwjo7NmfbGz1/MbMvVzY0Jg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=9afad415443b91904c5499a0acebc94e9d1116d3 commit 9afad415443b91904c5499a0acebc94e9d1116d3 Author: Muhammad Moinur Rahman AuthorDate: 2021-12-28 01:27:04 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2021-12-28 01:27:04 +0000 databases/pgpool-II-43: New Port Connection pool server for PostgreSQL (4.3.X branch) 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/ Relnotes: https://www.pgpool.net/docs/43/en/html/release-4-3-0.html Sponsored by: Bounce Experts --- databases/Makefile | 1 + databases/pgpool-II-43/Makefile | 49 ++++++++++++++++++++++++++++++++++ databases/pgpool-II-43/distinfo | 3 +++ databases/pgpool-II-43/files/pgpool.in | 48 +++++++++++++++++++++++++++++++++ databases/pgpool-II-43/pkg-descr | 8 ++++++ databases/pgpool-II-43/pkg-message | 15 +++++++++++ databases/pgpool-II-43/pkg-plist | 41 ++++++++++++++++++++++++++++ 7 files changed, 165 insertions(+) diff --git a/databases/Makefile b/databases/Makefile index b854b262223b..a2f7c0fb2374 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -599,6 +599,7 @@ SUBDIR += pgpool-II-40 SUBDIR += pgpool-II-41 SUBDIR += pgpool-II-42 + SUBDIR += pgpool-II-43 SUBDIR += pgreplay SUBDIR += pgroonga SUBDIR += pgrouting diff --git a/databases/pgpool-II-43/Makefile b/databases/pgpool-II-43/Makefile new file mode 100644 index 000000000000..32dd9b160856 --- /dev/null +++ b/databases/pgpool-II-43/Makefile @@ -0,0 +1,49 @@ +PORTNAME= pgpool-II +PORTVERSION= 4.3.0 +CATEGORIES= databases +MASTER_SITES= http://www.pgpool.net/mediawiki/images/ +PKGNAMESUFFIX= -43 + +MAINTAINER= bofh@FreeBSD.org +COMMENT= Connection pool server for PostgreSQL (4.3.X branch) + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= gmake libtool pgsql:9.6+ +USE_LDCONFIG= yes +USE_RC_SUBR= pgpool + +GNU_CONFIGURE= yes + +CONFLICTS= pgpool-II + +PORTSCOUT= limit:^4.3.[0-9]* + +PORTDOCS= * + +OPTIONS_DEFINE= DOCS MEMCACHED PAM SSL +OPTIONS_DEFAULT= SSL + +MEMCACHED_DESC= Use memcached for in memory query cache +PAM_DESC= Build with PAM support +SSL_DESC= Build with OpenSSL support + +MEMCACHED_LIB_DEPENDS= libmemcached.so:databases/libmemcached +MEMCACHED_CONFIGURE_ON= --with-memcached=${LOCALBASE}/include +PAM_CONFIGURE_ON= --with-pam +SSL_USES= ssl +SSL_CONFIGURE_WITH= openssl + +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-43/distinfo b/databases/pgpool-II-43/distinfo new file mode 100644 index 000000000000..2d3782f33c5c --- /dev/null +++ b/databases/pgpool-II-43/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1640294175 +SHA256 (pgpool-II-4.3.0.tar.gz) = 1650cb7db960c83386dade17372f2306c427d05f42e2a94559abc183576dd213 +SIZE (pgpool-II-4.3.0.tar.gz) = 5995138 diff --git a/databases/pgpool-II-43/files/pgpool.in b/databases/pgpool-II-43/files/pgpool.in new file mode 100644 index 000000000000..cb76557e2e57 --- /dev/null +++ b/databases/pgpool-II-43/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-43/pkg-descr b/databases/pgpool-II-43/pkg-descr new file mode 100644 index 000000000000..474bcbe9a30e --- /dev/null +++ b/databases/pgpool-II-43/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-43/pkg-message b/databases/pgpool-II-43/pkg-message new file mode 100644 index 000000000000..1df287cd433a --- /dev/null +++ b/databases/pgpool-II-43/pkg-message @@ -0,0 +1,15 @@ +[ +{ type: install + message: <