diff options
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/pgpool-II-36/Makefile | 45 | ||||
-rw-r--r-- | databases/pgpool-II-36/distinfo | 3 | ||||
-rw-r--r-- | databases/pgpool-II-36/files/pgpool.in | 36 | ||||
-rw-r--r-- | databases/pgpool-II-36/pkg-descr | 8 | ||||
-rw-r--r-- | databases/pgpool-II-36/pkg-message | 9 | ||||
-rw-r--r-- | databases/pgpool-II-36/pkg-plist | 32 |
7 files changed, 134 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 2eaec00fa0da..1576f399fe11 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -580,6 +580,7 @@ SUBDIR += pgpool-II-30 SUBDIR += pgpool-II-33 SUBDIR += pgpool-II-35 + SUBDIR += pgpool-II-36 SUBDIR += pgpoolAdmin SUBDIR += pgreplay SUBDIR += pgrouting diff --git a/databases/pgpool-II-36/Makefile b/databases/pgpool-II-36/Makefile new file mode 100644 index 000000000000..cd8757e87b3a --- /dev/null +++ b/databases/pgpool-II-36/Makefile @@ -0,0 +1,45 @@ +# $FreeBSD$ + +PORTNAME= pgpool +PORTVERSION= 3.6.4 +CATEGORIES= databases +MASTER_SITES= http://www.pgpool.net/mediawiki/images/ +DISTNAME= ${PORTNAME}-II-${PORTVERSION} + +MAINTAINER= tz@FreeBSD.org +COMMENT= Connection pool server for PostgreSQL + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +PORTSCOUT= limit:^3.6.[0-9]* + +USES= gmake libtool pgsql:9.3+ +GNU_CONFIGURE= yes +USE_LDCONFIG= yes + +DATADIR= ${PREFIX}/share/${PORTNAME}-II + +USE_RC_SUBR= pgpool +CONFLICTS= pgpool-II-[0-9]* + +PORTDOCS= * + +OPTIONS_DEFINE= DOCS SSL +OPTIONS_DEFAULT= SSL + +SSL_CONFIGURE_WITH= openssl +SSL_USES= ssl + +post-install: + @${MKDIR} ${STAGEDIR}/var/run/pgpool + ${INSTALL_LIB} ${WRKSRC}/src/libs/pcp/.libs/libpcp.so.1.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 <bsd.port.mk> diff --git a/databases/pgpool-II-36/distinfo b/databases/pgpool-II-36/distinfo new file mode 100644 index 000000000000..517708ea05ee --- /dev/null +++ b/databases/pgpool-II-36/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1494930033 +SHA256 (pgpool-II-3.6.4.tar.gz) = 6ad78b9878d126e8da1e03e8edf3c8d56bb0754fe6432f633e81f6faaf8e6dbf +SIZE (pgpool-II-3.6.4.tar.gz) = 2623625 diff --git a/databases/pgpool-II-36/files/pgpool.in b/databases/pgpool-II-36/files/pgpool.in new file mode 100644 index 000000000000..5d39db2f108d --- /dev/null +++ b/databases/pgpool-II-36/files/pgpool.in @@ -0,0 +1,36 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# 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_user (uid): User ID to run as (default nobody) +# + +. /etc/rc.subr + +name=pgpool +rcvar=pgpool_enable + +load_rc_config $name + +: ${pgpool_enable="NO"} +: ${pgpool_conf="%%PREFIX%%/etc/pgpool.conf"} +: ${pgpool_user="nobody"} + +command="%%PREFIX%%/bin/pgpool" +command_args="-f ${pgpool_conf}" +stop_cmd="${command} ${command_args} stop" + +required_files="${pgpool_conf}" + +run_rc_command "$1" diff --git a/databases/pgpool-II-36/pkg-descr b/databases/pgpool-II-36/pkg-descr new file mode 100644 index 000000000000..6aa062adf911 --- /dev/null +++ b/databases/pgpool-II-36/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: http://pgpool.net/ diff --git a/databases/pgpool-II-36/pkg-message b/databases/pgpool-II-36/pkg-message new file mode 100644 index 000000000000..b1a7385436a6 --- /dev/null +++ b/databases/pgpool-II-36/pkg-message @@ -0,0 +1,9 @@ +In order to start pgpool you need some more configuration: + +# sysrc -f /etc/rc.conf pgpool_enable="YES" +# sysrc -f /etc/rc.conf pgpool_user="root" + +Please consider the usage of another user. The user is +required to have read/write access to /var/run/pgpool. + +Using the root user is - as always - an security issue. diff --git a/databases/pgpool-II-36/pkg-plist b/databases/pgpool-II-36/pkg-plist new file mode 100644 index 000000000000..b8c12002d758 --- /dev/null +++ b/databases/pgpool-II-36/pkg-plist @@ -0,0 +1,32 @@ +bin/pcp_attach_node +bin/pcp_detach_node +bin/pcp_node_count +bin/pcp_node_info +bin/pcp_pool_status +bin/pcp_proc_count +bin/pcp_proc_info +bin/pcp_promote_node +bin/pcp_recovery_node +bin/pcp_stop_pgpool +bin/pcp_watchdog_info +bin/pg_md5 +bin/pgpool +bin/pgpool_setup +bin/watchdog_setup +@sample etc/pcp.conf.sample +@sample etc/pgpool.conf.sample +etc/pgpool.conf.sample-master-slave +etc/pgpool.conf.sample-replication +etc/pgpool.conf.sample-stream +@sample etc/pool_hba.conf.sample +include/libpcp_ext.h +include/pcp.h +include/pool_process_reporting.h +include/pool_type.h +lib/libpcp.a +lib/libpcp.so +lib/libpcp.so.1 +lib/libpcp.so.1.0.0 +%%DATADIR%%/insert_lock.sql +%%DATADIR%%/pgpool.pam +@dir /var/run/pgpool |