summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2012-04-18 20:02:44 +0000
committerAaron W. Swenson <titanofold@gentoo.org>2012-04-18 20:02:44 +0000
commitf643b36d7125f7a477c3096f280eac1fc32370c5 (patch)
treef011fc67372b28dc062aa05f5d1e4de2e609eca2 /dev-db
parentx86 stable, bug #409403 (diff)
downloadgentoo-2-f643b36d7125f7a477c3096f280eac1fc32370c5.tar.gz
gentoo-2-f643b36d7125f7a477c3096f280eac1fc32370c5.tar.bz2
gentoo-2-f643b36d7125f7a477c3096f280eac1fc32370c5.zip
Version Bump
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/pgbouncer/ChangeLog8
-rw-r--r--dev-db/pgbouncer/pgbouncer-1.5.1.ebuild71
2 files changed, 78 insertions, 1 deletions
diff --git a/dev-db/pgbouncer/ChangeLog b/dev-db/pgbouncer/ChangeLog
index 1a61e8424d0a..a6cd4543fe5b 100644
--- a/dev-db/pgbouncer/ChangeLog
+++ b/dev-db/pgbouncer/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-db/pgbouncer
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/pgbouncer/ChangeLog,v 1.2 2012/03/29 02:16:04 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgbouncer/ChangeLog,v 1.3 2012/04/18 20:02:44 titanofold Exp $
+
+*pgbouncer-1.5.1 (18 Apr 2012)
+
+ 18 Apr 2012; Aaron W. Swenson <titanofold@gentoo.org>
+ +pgbouncer-1.5.1.ebuild:
+ Version Bump
*pgbouncer-1.5 (29 Mar 2012)
diff --git a/dev-db/pgbouncer/pgbouncer-1.5.1.ebuild b/dev-db/pgbouncer/pgbouncer-1.5.1.ebuild
new file mode 100644
index 000000000000..de7218cbfbc0
--- /dev/null
+++ b/dev-db/pgbouncer/pgbouncer-1.5.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgbouncer/pgbouncer-1.5.1.ebuild,v 1.1 2012/04/18 20:02:44 titanofold Exp $
+
+EAPI="4"
+
+inherit eutils
+
+RESTRICT="test"
+
+DESCRIPTION="Lightweight connection pooler for PostgreSQL"
+HOMEPAGE="http://pgfoundry.org/projects/pgbouncer/"
+SRC_URI="mirror://postgresql/projects/pgFoundry/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND="dev-libs/libevent"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup pgbouncer
+ enewuser pgbouncer -1 -1 -1 pgbouncer
+}
+
+src_prepare() {
+ local rundir=""
+ [[ ! -d /run ]] && rundir="/var"
+
+ sed -i -e "s,${PN}.log,/var/log/${PN}/${PN}.log," \
+ -e "s,${PN}.pid,/var/run/${PN}/${PN}.pid," \
+ -e "s,etc/userlist.txt,/etc/userlist.txt," \
+ -e "s,;unix_socket_dir = /tmp,unix_socket_dir = ${rundir}/run/${PN}.sock," \
+ "${S}"/etc/pgbouncer.ini || die
+}
+
+src_configure() {
+ # --enable-debug is only used to disable stripping
+ econf \
+ --enable-debug \
+ $(use_enable debug cassert) \
+ --docdir=/usr/share/doc/${PF}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ insinto /etc
+ newins etc/pgbouncer.ini pgbouncer.conf
+ newinitd "${FILESDIR}"/pgbouncer.initd "${PN}"
+
+ dodoc README NEWS AUTHORS
+ dodoc doc/*.txt
+
+ dodir /var/log/pgbouncer/
+ fowners pgbouncer:pgbouncer /var/log/pgbouncer/
+}
+
+pkg_postinst() {
+ einfo "Please read the config.txt for Configuration Directives"
+ einfo
+ einfo "For Administration Commands, see:"
+ einfo " man pgbouncer"
+ einfo
+ einfo "By default, PgBouncer does not have access to any database."
+ einfo "GRANT the permissions needed for your application and make sure that it"
+ einfo "exists in PgBouncer's auth_file."
+
+}