diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2013-01-14 17:29:29 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2013-01-14 17:29:29 +0000 |
commit | beba2f0e6678e6497f7d38d2de93941382a1396b (patch) | |
tree | bcd4687fab30f2bf6b1389f7d00b89d6402572e9 /dev-db | |
parent | Keyworded amd64-linux and x86-linux (diff) | |
download | gentoo-2-beba2f0e6678e6497f7d38d2de93941382a1396b.tar.gz gentoo-2-beba2f0e6678e6497f7d38d2de93941382a1396b.tar.bz2 gentoo-2-beba2f0e6678e6497f7d38d2de93941382a1396b.zip |
Revision bump for reflect latest change
(Portage version: 2.2.0_alpha151/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/pgbouncer/ChangeLog | 7 | ||||
-rw-r--r-- | dev-db/pgbouncer/pgbouncer-1.5.3-r1.ebuild | 70 |
2 files changed, 76 insertions, 1 deletions
diff --git a/dev-db/pgbouncer/ChangeLog b/dev-db/pgbouncer/ChangeLog index df39b93caeae..e15b1f9d0be8 100644 --- a/dev-db/pgbouncer/ChangeLog +++ b/dev-db/pgbouncer/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-db/pgbouncer # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/pgbouncer/ChangeLog,v 1.7 2013/01/14 17:26:12 pinkbyte Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/pgbouncer/ChangeLog,v 1.8 2013/01/14 17:29:29 pinkbyte Exp $ + +*pgbouncer-1.5.3-r1 (14 Jan 2013) + + 14 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> +pgbouncer-1.5.3-r1.ebuild: + Revision bump for reflect latest change 14 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> files/pgbouncer.initd: Update initscript, fix bugs #410645 and #410647, thanks to Johan Bergström diff --git a/dev-db/pgbouncer/pgbouncer-1.5.3-r1.ebuild b/dev-db/pgbouncer/pgbouncer-1.5.3-r1.ebuild new file mode 100644 index 000000000000..a4fb2c5afbb5 --- /dev/null +++ b/dev-db/pgbouncer/pgbouncer-1.5.3-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/pgbouncer/pgbouncer-1.5.3-r1.ebuild,v 1.1 2013/01/14 17:29:29 pinkbyte Exp $ + +EAPI="4" + +inherit eutils user + +RESTRICT="test" + +DESCRIPTION="Lightweight connection pooler for PostgreSQL" +HOMEPAGE="http://pgfoundry.org/projects/pgbouncer/" +SRC_URI="http://pgfoundry.org/frs/download.php/3369/${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." +} |