Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (bd6bcb538e40bf24380979611b672fc2836ca63e)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (bd6bcb538e40bf24380979611b672fc2836ca63e)
  • Date: Mon, 5 Oct 2015 14:36:34 +0000

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 2 ++
database/pgbouncer/BUILD | 7 +++++++
database/pgbouncer/CONFIGURE | 3 +++
database/pgbouncer/DEPENDS | 11 +++++++++++
database/pgbouncer/DETAILS | 14 ++++++++++++++
database/pgbouncer/HISTORY | 3 +++
database/pgbouncer/INSTALL | 10 ++++++++++
database/pgbouncer/init.d/pgbouncer | 16 ++++++++++++++++
8 files changed, 66 insertions(+)

New commits:
commit bd6bcb538e40bf24380979611b672fc2836ca63e
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

pgbouncer: new spell, lightweight connection pooler for PostgreSQL

diff --git a/ChangeLog b/ChangeLog
index 7a49e97..7b180b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
2015-10-05 Vlad Glagolev <stealth AT sourcemage.org>
* devel/git-lfs: new spell, open source Git extension for versioning
large files
+ * database/pgbouncer: new spell, lightweight connection pooler for
+ PostgreSQL

2015-10-04 Treeve Jelbert <treeve AT sourcemage.org>
* accounts-sso/accounts-qml-module: added
diff --git a/database/pgbouncer/BUILD b/database/pgbouncer/BUILD
new file mode 100755
index 0000000..6098fbf
--- /dev/null
+++ b/database/pgbouncer/BUILD
@@ -0,0 +1,7 @@
+create_account postgres &&
+
+OPTS="${PGBOUNCER_OPTS} ${OPTS}" &&
+
+make_single &&
+default_build &&
+make_normal
diff --git a/database/pgbouncer/CONFIGURE b/database/pgbouncer/CONFIGURE
new file mode 100755
index 0000000..96b55af
--- /dev/null
+++ b/database/pgbouncer/CONFIGURE
@@ -0,0 +1,3 @@
+config_query_option PGBOUNCER_OPTS "Use libevent for DNS lookups?" y \
+ "--enable-evdns" \
+ "--disable-evdns"
diff --git a/database/pgbouncer/DEPENDS b/database/pgbouncer/DEPENDS
new file mode 100755
index 0000000..7713766
--- /dev/null
+++ b/database/pgbouncer/DEPENDS
@@ -0,0 +1,11 @@
+depends libevent &&
+
+optional_depends c-ares \
+ "--with-cares" \
+ "--without-cares" \
+ "to use c-ares for DNS lookups" &&
+
+optional_depends udns \
+ "--with-udns" \
+ "--without-udns" \
+ "to use UDNS for name resolution"
diff --git a/database/pgbouncer/DETAILS b/database/pgbouncer/DETAILS
new file mode 100755
index 0000000..489a6ff
--- /dev/null
+++ b/database/pgbouncer/DETAILS
@@ -0,0 +1,14 @@
+ SPELL=pgbouncer
+ VERSION=1.6.1
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+
SOURCE_URL[0]=http://pgbouncer.github.io/downloads/files/${VERSION}/${SOURCE}
+
SOURCE_HASH=sha512:cf1cd28b04531bce879f3f9f50b54754253e0d9882c7f122c99d1c0c39fb01264c1ba20f5fd7b42ce7f5356f413b05caf48bbb633693d866271e129426923529
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ LICENSE[0]=ISC
+ WEB_SITE=http://pgbouncer.github.io/
+ ENTERED=20151005
+ KEYWORDS="sql database"
+ SHORT="lightweight connection pooler for PostgreSQL"
+cat << EOF
+PgBouncer is a lightweight connection pooler for PostgreSQL.
+EOF
diff --git a/database/pgbouncer/HISTORY b/database/pgbouncer/HISTORY
new file mode 100644
index 0000000..4fc4b2a
--- /dev/null
+++ b/database/pgbouncer/HISTORY
@@ -0,0 +1,3 @@
+2015-10-05 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, DEPENDS, INSTALL, BUILD, CONFIGURE, init.d/pgbouncer:
+ created spell, version 1.6.1
diff --git a/database/pgbouncer/INSTALL b/database/pgbouncer/INSTALL
new file mode 100755
index 0000000..1f6a8b8
--- /dev/null
+++ b/database/pgbouncer/INSTALL
@@ -0,0 +1,10 @@
+make_single &&
+default_install &&
+make_normal &&
+
+if [[ $INIT_INSTALLED ]]; then
+ install_config_file "${SOURCE_DIRECTORY}/etc/pgbouncer.ini" \
+ "$INSTALL_ROOT/etc/" &&
+
+ install -d -o postgres -g postgres -vm 755
"${INSTALL_ROOT}/var/run/pgbouncer"
+fi
diff --git a/database/pgbouncer/init.d/pgbouncer
b/database/pgbouncer/init.d/pgbouncer
new file mode 100755
index 0000000..7a84921
--- /dev/null
+++ b/database/pgbouncer/init.d/pgbouncer
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+PROGRAM=/usr/bin/pgbouncer
+PIDFILE=/var/run/pgbouncer/pgbouncer.pid
+ARGS="-d -u postgres /etc/pgbouncer.ini"
+RUNLEVEL=3
+NEEDS="+network"
+
+restart() {
+ echo "Re-starting $NAME..."
+
+ $PROGRAM $ARGS -R
+ evaluate_retval
+}
+
+. /etc/init.d/smgl_init



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (bd6bcb538e40bf24380979611b672fc2836ca63e), Vlad Glagolev, 10/05/2015

Archive powered by MHonArc 2.6.24.

Top of Page