mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Add pgbouncer 1.0.8, lightweight connection pooler for PostgreSQL.
This commit is contained in:
parent
59b7cdd252
commit
784419accc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196066
@ -334,6 +334,7 @@
|
||||
SUBDIR += pgadmin3
|
||||
SUBDIR += pgadmin3-12
|
||||
SUBDIR += pgbash
|
||||
SUBDIR += pgbouncer
|
||||
SUBDIR += pgcluster
|
||||
SUBDIR += pgpool
|
||||
SUBDIR += pgpool-II
|
||||
|
32
databases/pgbouncer/Makefile
Normal file
32
databases/pgbouncer/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# Ports collection makefile for: pgbouncer
|
||||
# Date created: 19 July 2007
|
||||
# Whom: Sergey Skvortsov <skv@protey.ru>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pgbouncer
|
||||
PORTVERSION= 1.0.8
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://pgfoundry.org/frs/download.php/1399/
|
||||
|
||||
MAINTAINER= skv@FreeBSD.org
|
||||
COMMENT= Lightweight connection pooler for PostgreSQL
|
||||
|
||||
LIB_DEPENDS= event:${PORTSDIR}/devel/libevent
|
||||
|
||||
USE_RC_SUBR= pgbouncer.sh
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
|
||||
CONFIGURE_ARGS= --with-libevent=${LOCALBASE}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/pgbouncer ${PREFIX}/bin/
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/pgbouncer.ini ${EXAMPLESDIR}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
3
databases/pgbouncer/distinfo
Normal file
3
databases/pgbouncer/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (pgbouncer-1.0.8.tar.gz) = 6f4227e4f86f0d4959f9cb122501777b
|
||||
SHA256 (pgbouncer-1.0.8.tar.gz) = e3b611baa66af5fd653b9272da9aabbab8c622e2ed5d281e7bd83986dd2ab522
|
||||
SIZE (pgbouncer-1.0.8.tar.gz) = 93636
|
13
databases/pgbouncer/files/patch-etc...pgbouncer.ini
Normal file
13
databases/pgbouncer/files/patch-etc...pgbouncer.ini
Normal file
@ -0,0 +1,13 @@
|
||||
--- etc/pgbouncer.ini.orig Thu Jul 19 11:50:45 2007
|
||||
+++ etc/pgbouncer.ini Thu Jul 19 11:51:00 2007
|
||||
@@ -17,8 +17,8 @@
|
||||
;;; Administrative settings
|
||||
;;;
|
||||
|
||||
-logfile = pgbouncer.log
|
||||
-pidfile = pgbouncer.pid
|
||||
+logfile = /var/log/pgbouncer.log
|
||||
+pidfile = /var/run/pgbouncer.pid
|
||||
|
||||
;;;
|
||||
;;; Where to wait for clients
|
32
databases/pgbouncer/files/pgbouncer.sh.in
Normal file
32
databases/pgbouncer/files/pgbouncer.sh.in
Normal file
@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: pgbouncer
|
||||
# REQUIRE: LOGIN
|
||||
# BEFORE: securelevel
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# Add the following line to /etc/rc.conf to enable `pgbouncer':
|
||||
#
|
||||
#pgbouncer_enable="YES"
|
||||
#
|
||||
|
||||
. "%%RC_SUBR%%"
|
||||
|
||||
name="pgbouncer"
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
command="%%PREFIX%%/bin/pgbouncer"
|
||||
config_file="%%PREFIX%%/etc/$name.ini"
|
||||
command_args="-d ${config_file}"
|
||||
pidfile="/var/run/$name.pid"
|
||||
required_files="${config_file}"
|
||||
|
||||
# read configuration and set defaults
|
||||
load_rc_config "$name"
|
||||
: ${pgbouncer_enable="NO"}
|
||||
: ${pgbouncer_flags=""}
|
||||
|
||||
run_rc_command "$1"
|
10
databases/pgbouncer/files/pkg-message.in
Normal file
10
databases/pgbouncer/files/pkg-message.in
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
===> CONFIGURATION NOTE:
|
||||
|
||||
To setup pgbouncer, you need to copy
|
||||
%%EXAMPLESDIR%%/pgbouncer.ini
|
||||
to %%PREFIX%%/etc/pgbouncer.ini and edit appropriately.
|
||||
|
||||
To run pgbouncer from startup, add pgbouncer_enable="YES"
|
||||
in your /etc/rc.conf.
|
||||
|
3
databases/pgbouncer/pkg-descr
Normal file
3
databases/pgbouncer/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
Lightweight connection pooler for PostgreSQL.
|
||||
|
||||
WWW: https://developer.skype.com/SkypeGarage/DbProjects/PgBouncer
|
3
databases/pgbouncer/pkg-plist
Normal file
3
databases/pgbouncer/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
bin/pgbouncer
|
||||
%%EXAMPLESDIR%%/pgbouncer.ini
|
||||
@dirrm %%EXAMPLESDIR%%
|
Loading…
Reference in New Issue
Block a user