diff options
author | 2011-06-19 18:50:43 +0000 | |
---|---|---|
committer | 2011-06-19 18:50:43 +0000 | |
commit | 3eefd006983403d2bf7745186ea0994375894677 (patch) | |
tree | c7d0c07e97cf3b656d2ed23f429f6096d448ebf9 /dev-db/pgpool2/pgpool2-3.0.4.ebuild | |
parent | Pull in makedev again #368597. (diff) | |
download | gentoo-2-3eefd006983403d2bf7745186ea0994375894677.tar.gz gentoo-2-3eefd006983403d2bf7745186ea0994375894677.tar.bz2 gentoo-2-3eefd006983403d2bf7745186ea0994375894677.zip |
Sync live and release ebuild. Bump to 3.0.4. Remove older.
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/pgpool2/pgpool2-3.0.4.ebuild')
-rw-r--r-- | dev-db/pgpool2/pgpool2-3.0.4.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/dev-db/pgpool2/pgpool2-3.0.4.ebuild b/dev-db/pgpool2/pgpool2-3.0.4.ebuild new file mode 100644 index 000000000000..e177bbebc1b6 --- /dev/null +++ b/dev-db/pgpool2/pgpool2-3.0.4.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/pgpool2-3.0.4.ebuild,v 1.1 2011/06/19 18:50:43 scarabeus Exp $ + +EAPI=4 + +[[ ${PV} == 9999 ]] && MY_P=${PN/2/-II} || MY_P="${PN/2/-II}-${PV}" + +ECVS_SERVER="cvs.pgfoundry.org:/cvsroot/pgpool" +ECVS_MODULE="pgpool-II" +[[ ${PV} == 9999 ]] && SCM_ECLASS="cvs" +inherit base autotools ${SCM_ECLASS} +unset SCM_ECLASS + +DESCRIPTION="Connection pool server for PostgreSQL" +HOMEPAGE="http://pgpool.projects.postgresql.org/" +[[ ${PV} == 9999 ]] || SRC_URI="http://pgfoundry.org/frs/download.php/3076/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +[[ ${PV} == 9999 ]] || KEYWORDS="~amd64 ~x86" +IUSE="pam ssl static-libs" + +RDEPEND=" + dev-db/postgresql-base + pam? ( sys-auth/pambase ) + ssl? ( dev-libs/openssl ) +" +DEPEND="${DEPEND} + sys-devel/bison + !!dev-db/pgpool +" + +AUTOTOOLS_IN_SOURCE_BUILD="1" + +DOCS=( + "NEWS" + "doc/where_to_send_queries.pdf" +) +HTML_DOCS=( + "doc/pgpool-en.html" + "doc/pgpool.css" + "doc/tutorial-en.html" +) + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e 's:/tmp/:/var/run/postgresql:g' \ + pgpool.conf.sample pool.h || die + sed -i \ + -e '/ACLOCAL_AMFLAGS/ d' \ + Makefile.am || die + base_src_prepare + eautoreconf +} + +src_configure() { + econf \ + --sysconfdir=${EROOT}/etc/${PN} \ + --disable-rpath \ + $(use_enable static-libs static) \ + $(use_with ssl openssl) \ + $(use_with pam) +} + +src_install() { + base_src_install + find "${ED}" -name '*.la' -exec rm -f {} + + # move misc data to proper folder + mv "${ED}/usr/share/${PN/2/-II}" "${ED}/usr/share/${PN}" || die + + newinitd "${FILESDIR}/${PN}.initd" ${PN} +} |