aboutsummaryrefslogtreecommitdiff
path: root/databases/pgbouncer
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2007-07-22 19:02:40 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2007-07-22 19:02:40 +0000
commit784419acccd42fdeeb8e92b44a3af17b92a327fc (patch)
tree93ac3695bd1c10b9cdad30bd77eb7f181ba25258 /databases/pgbouncer
parent59b7cdd25217444f8e7fdecb80655a4004ebcbf0 (diff)
downloadports-784419acccd42fdeeb8e92b44a3af17b92a327fc.tar.gz
ports-784419acccd42fdeeb8e92b44a3af17b92a327fc.zip
Notes
Diffstat (limited to 'databases/pgbouncer')
-rw-r--r--databases/pgbouncer/Makefile32
-rw-r--r--databases/pgbouncer/distinfo3
-rw-r--r--databases/pgbouncer/files/patch-etc...pgbouncer.ini13
-rw-r--r--databases/pgbouncer/files/pgbouncer.sh.in32
-rw-r--r--databases/pgbouncer/files/pkg-message.in10
-rw-r--r--databases/pgbouncer/pkg-descr3
-rw-r--r--databases/pgbouncer/pkg-plist3
7 files changed, 96 insertions, 0 deletions
diff --git a/databases/pgbouncer/Makefile b/databases/pgbouncer/Makefile
new file mode 100644
index 000000000000..8cbb4db94ec3
--- /dev/null
+++ b/databases/pgbouncer/Makefile
@@ -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>
diff --git a/databases/pgbouncer/distinfo b/databases/pgbouncer/distinfo
new file mode 100644
index 000000000000..33f3817a3826
--- /dev/null
+++ b/databases/pgbouncer/distinfo
@@ -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
diff --git a/databases/pgbouncer/files/patch-etc...pgbouncer.ini b/databases/pgbouncer/files/patch-etc...pgbouncer.ini
new file mode 100644
index 000000000000..8cb9973a6a41
--- /dev/null
+++ b/databases/pgbouncer/files/patch-etc...pgbouncer.ini
@@ -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
diff --git a/databases/pgbouncer/files/pgbouncer.sh.in b/databases/pgbouncer/files/pgbouncer.sh.in
new file mode 100644
index 000000000000..a4b80b25ef85
--- /dev/null
+++ b/databases/pgbouncer/files/pgbouncer.sh.in
@@ -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"
diff --git a/databases/pgbouncer/files/pkg-message.in b/databases/pgbouncer/files/pkg-message.in
new file mode 100644
index 000000000000..6f781aab9913
--- /dev/null
+++ b/databases/pgbouncer/files/pkg-message.in
@@ -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.
+
diff --git a/databases/pgbouncer/pkg-descr b/databases/pgbouncer/pkg-descr
new file mode 100644
index 000000000000..ef1d0fc95bf9
--- /dev/null
+++ b/databases/pgbouncer/pkg-descr
@@ -0,0 +1,3 @@
+Lightweight connection pooler for PostgreSQL.
+
+WWW: https://developer.skype.com/SkypeGarage/DbProjects/PgBouncer
diff --git a/databases/pgbouncer/pkg-plist b/databases/pgbouncer/pkg-plist
new file mode 100644
index 000000000000..b9470859ec4c
--- /dev/null
+++ b/databases/pgbouncer/pkg-plist
@@ -0,0 +1,3 @@
+bin/pgbouncer
+%%EXAMPLESDIR%%/pgbouncer.ini
+@dirrm %%EXAMPLESDIR%%