From nobody Thu Feb 29 19:53:04 2024 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 4Tm22T0gc0z5Cp2L; Thu, 29 Feb 2024 19:53:05 +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 4Tm22S5M8Hz4cRh; Thu, 29 Feb 2024 19:53:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709236384; 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=GPJPRZYR4fx6C8Zy2VktUAkwKzl2qrY9kCVesGNfPJo=; b=vL8CAo+ZRA6++RtvbToBYEF/hWgx8XeRn2a48JjGtT0LGmOYdDWjUpCSsW2926nHXvLMar 5lMHNuJW+L+206ImIb9BcJxgx+Wjh5F65h74qTGPGBTRVDhZ6Ewj8+QMB+GIVbaSzt5FqE MCRNWiCz05GPGbromNsWhb5+nVk8RfDfUdz8JwodCJ7x7kxy6FsxBbFtmHhIVT5hAaBaFc cDjnk9OGeYnAxq31+78lR0xpQ0nlAADebm/LHuf8ARatSRM3SWwodKAxzHshijtuqL1nyP n8tgHBdTngv4XXcwTSnOCA1I8I96yoim6n0XYh8jlUrbd5Z1TYuq+4//N8KlpQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709236384; a=rsa-sha256; cv=none; b=YoPw3XmW2q6BO/sQsIyGxLDmEV+1mcYcYGVqjWaMTQe6n+6CpqNGdcmrthYiOPjsYGaYoC PWhU/Wwl3JPak1z6X7DZgcvQvlioPe2dsVaDo89pjwKjG3/zuQKJb1EwaJZkOGxI4WDIhz Y3FytJii91jedZUxY7dZ0fEgdvDvIBqLAB+bnkeT4P1VE5eQOj27ZaSNqvrw/z09i5Q6SR Ybq7dd/xnYKsW4sNEWNiYbtdV4DjvXuzrdtb8O3dbkUFzwhDzKNT0iqMWMtQp+B/Nd3oXX u2p3Nl0SGqi4Q/IU74JuUeaCH65KLDMH/yAFXKjl9z1pRaOcG7vNOoWdQMYJIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709236384; 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=GPJPRZYR4fx6C8Zy2VktUAkwKzl2qrY9kCVesGNfPJo=; b=o6GoiV9F2NPZbJ49DXUvm1wIyiHiYH2dJ+Rgt/o0Iw9ggtFjfqQ+NpurQuD9N/gV7RwiXh Qlra/oAUdR8Yb9+X04m9hH2Ie+IQcAKV2Cz7PwCZ32frGy5daTPuXJjL2QZHgIM22hJoeP Y3q6eP2Gh+i3L0ksUOH8I+47uzIs/7CVe9f2Yuw1w71pfaXd0jjkkhNi6ubZgrTh7koD48 UvZt93E9r7lelSacNeGgfJGmaQUe6BRcv1lXZQlaMbHpj8/nNLWjnc/XXB3NA7WA15jEkz X/Iz0Gpk7qcveIAOffcfZl2OmyR/W/QLW6ipuXcAmOye1SOz2sGP4M0IAV7xwA== 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 4Tm22S4yqYzwDq; Thu, 29 Feb 2024 19:53:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41TJr4MT079503; Thu, 29 Feb 2024 19:53:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41TJr4MM079500; Thu, 29 Feb 2024 19:53:04 GMT (envelope-from git) Date: Thu, 29 Feb 2024 19:53:04 GMT Message-Id: <202402291953.41TJr4MM079500@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: 6741435a4889 - main - databases/pgpool-II-45: 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: 6741435a48892bb8a4dcbab2bf8ce66fdb327911 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=6741435a48892bb8a4dcbab2bf8ce66fdb327911 commit 6741435a48892bb8a4dcbab2bf8ce66fdb327911 Author: Muhammad Moinur Rahman AuthorDate: 2024-02-29 17:09:14 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2024-02-29 19:52:20 +0000 databases/pgpool-II-45: 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. This is the 4.5.X series of the port. WWW: https://pgpool.net --- databases/Makefile | 1 + databases/pgpool-II-45/Makefile | 50 ++++++++++++++++++++++++++++++++++ databases/pgpool-II-45/distinfo | 3 ++ databases/pgpool-II-45/files/pgpool.in | 48 ++++++++++++++++++++++++++++++++ databases/pgpool-II-45/pkg-descr | 6 ++++ databases/pgpool-II-45/pkg-message | 15 ++++++++++ databases/pgpool-II-45/pkg-plist | 43 +++++++++++++++++++++++++++++ 7 files changed, 166 insertions(+) diff --git a/databases/Makefile b/databases/Makefile index fa3aae96d0d4..65bee2e0b2e6 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -564,6 +564,7 @@ SUBDIR += pgpool-II-42 SUBDIR += pgpool-II-43 SUBDIR += pgpool-II-44 + SUBDIR += pgpool-II-45 SUBDIR += pgreplay SUBDIR += pgroonga SUBDIR += pgrouting diff --git a/databases/pgpool-II-45/Makefile b/databases/pgpool-II-45/Makefile new file mode 100644 index 000000000000..ca282f2ef646 --- /dev/null +++ b/databases/pgpool-II-45/Makefile @@ -0,0 +1,50 @@ +PORTNAME= pgpool-II +PORTVERSION= 4.5.0 +CATEGORIES= databases +MASTER_SITES= http://www.pgpool.net/mediawiki/images/ +PKGNAMESUFFIX= -45 + +MAINTAINER= bofh@FreeBSD.org +COMMENT= Connection pool server for PostgreSQL (4.4.X branch) +WWW= https://pgpool.net/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= gmake libtool pgsql:12+ +USE_LDCONFIG= yes +USE_RC_SUBR= pgpool + +GNU_CONFIGURE= yes + +CONFLICTS_INSTALL= pgpool-II-[0-9][0-9] pgpool-II[0-9][0-9] # etc/escalation.sh.sample etc/failover.sh.sample etc/pcp.conf.sample + +PORTSCOUT= limit:^4.4.[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-45/distinfo b/databases/pgpool-II-45/distinfo new file mode 100644 index 000000000000..c2c9106a1322 --- /dev/null +++ b/databases/pgpool-II-45/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1709226440 +SHA256 (pgpool-II-4.5.0.tar.gz) = 5984aecdf2520872900356aced0c9aa6e96537c2e82297c6593ed9019118451a +SIZE (pgpool-II-4.5.0.tar.gz) = 5138556 diff --git a/databases/pgpool-II-45/files/pgpool.in b/databases/pgpool-II-45/files/pgpool.in new file mode 100644 index 000000000000..cb76557e2e57 --- /dev/null +++ b/databases/pgpool-II-45/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-45/pkg-descr b/databases/pgpool-II-45/pkg-descr new file mode 100644 index 000000000000..59d385596b8e --- /dev/null +++ b/databases/pgpool-II-45/pkg-descr @@ -0,0 +1,6 @@ +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. diff --git a/databases/pgpool-II-45/pkg-message b/databases/pgpool-II-45/pkg-message new file mode 100644 index 000000000000..1df287cd433a --- /dev/null +++ b/databases/pgpool-II-45/pkg-message @@ -0,0 +1,15 @@ +[ +{ type: install + message: <