Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/pgpool2: pgpool2-3.2.1.ebuild ChangeLog
Date: Thu, 01 Nov 2012 06:01:45
Message-Id: 20121101060126.35FDE21600@flycatcher.gentoo.org
1 patrick 12/11/01 06:01:25
2
3 Modified: ChangeLog
4 Added: pgpool2-3.2.1.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.12 dev-db/pgpool2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgpool2/ChangeLog?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgpool2/ChangeLog?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgpool2/ChangeLog?r1=1.11&r2=1.12
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/pgpool2/ChangeLog,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- ChangeLog 14 Aug 2012 19:50:17 -0000 1.11
24 +++ ChangeLog 1 Nov 2012 06:01:25 -0000 1.12
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-db/pgpool2
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/ChangeLog,v 1.11 2012/08/14 19:50:17 titanofold Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/ChangeLog,v 1.12 2012/11/01 06:01:25 patrick Exp $
30 +
31 +*pgpool2-3.2.1 (01 Nov 2012)
32 +
33 + 01 Nov 2012; Patrick Lauer <patrick@g.o> +pgpool2-3.2.1.ebuild:
34 + Bump
35
36 *pgpool2-3.2.0-r1 (14 Aug 2012)
37
38 @@ -66,4 +71,3 @@
39 +files/3.0.1-fix_md5_malloc.patch, +files/pgpool2-tmpdir.patch,
40 +pgpool2-3.0.1.ebuild, +files/pgpool2.initd, +metadata.xml:
41 Initial commit. Fixes bug #196300. Ebuild made thanks to ccss.cz.
42 -
43
44
45
46 1.1 dev-db/pgpool2/pgpool2-3.2.1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgpool2/pgpool2-3.2.1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgpool2/pgpool2-3.2.1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: pgpool2-3.2.1.ebuild
52 ===================================================================
53 # Copyright 1999-2012 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/pgpool2-3.2.1.ebuild,v 1.1 2012/11/01 06:01:25 patrick Exp $
56
57 EAPI=4
58
59 [[ ${PV} == 9999 ]] && MY_P=${PN/2/-II} || MY_P="${PN/2/-II}-${PV}"
60
61 ECVS_SERVER="cvs.pgfoundry.org:/cvsroot/pgpool"
62 ECVS_MODULE="pgpool-II"
63 [[ ${PV} == 9999 ]] && SCM_ECLASS="cvs"
64 inherit base autotools ${SCM_ECLASS}
65 unset SCM_ECLASS
66
67 DESCRIPTION="Connection pool server for PostgreSQL"
68 HOMEPAGE="http://www.pgpool.net/"
69 [[ ${PV} == 9999 ]] || SRC_URI="http://www.pgpool.net/download.php?f=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
70 LICENSE="BSD"
71 SLOT="0"
72 [[ ${PV} == 9999 ]] || KEYWORDS="~amd64 ~x86"
73 IUSE="memcached pam ssl static-libs"
74
75 RDEPEND="
76 dev-db/postgresql-base
77 memcached? ( dev-libs/libmemcached )
78 pam? ( sys-auth/pambase )
79 ssl? ( dev-libs/openssl )
80 "
81 DEPEND="${RDEPEND}
82 sys-devel/bison
83 !!dev-db/pgpool
84 "
85
86 AUTOTOOLS_IN_SOURCE_BUILD="1"
87
88 S=${WORKDIR}/${MY_P}
89
90 pkg_setup() {
91 enewgroup postgres 70
92 enewuser pgpool -1 -1 -1 postgres
93
94 # We need the postgres user as well so we can set the proper
95 # permissions on the sockets without getting into fights with
96 # PostgreSQL's initialization scripts.
97 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
98 }
99
100 src_prepare() {
101 epatch "${FILESDIR}/pgpool_run_paths.patch"
102
103 local pg_config_manual="$(pg_config --includedir)/pg_config_manual.h"
104 local pgsql_socket_dir=$(grep DEFAULT_PGSOCKET_DIR "${pg_config_manual}" | \
105 sed 's|.*\"\(.*\)\"|\1|g')
106 local pgpool_socket_dir="$(dirname $pgsql_socket_dir)/pgpool"
107
108 sed "s|@PGSQL_SOCKETDIR@|${pgsql_socket_dir}|g" \
109 -i *.conf.sample* pool.h || die
110
111 sed "s|@PGPOOL_SOCKETDIR@|${pgpool_socket_dir}|g" \
112 -i *.conf.sample* pool.h || die
113 }
114
115 src_configure() {
116 local myconf
117 use memcached && \
118 myconf="--with-memcached=\"${EROOT%/}/usr/include/libmemcached\""
119
120 econf \
121 --disable-rpath \
122 --sysconfdir="${EROOT%/}/etc/${PN}" \
123 $(use_with pam) \
124 $(use_with ssl openssl) \
125 $(use_enable static-libs static) \
126 ${myconf}
127 }
128
129 src_compile() {
130 emake
131
132 cd sql
133 emake
134 }
135
136 src_install() {
137 emake DESTDIR="${D}" install
138
139 cd sql
140 emake DESTDIR="${D}" install
141 cd "${S}"
142
143 # `contrib' moved to `extension' with PostgreSQL 9.1
144 local pgslot=$(postgresql-config show)
145 if [[ ${pgslot//.} > 90 ]] ; then
146 cd "${ED%/}$(pg_config --sharedir)"
147 mv contrib extension || die
148 cd "${S}"
149 fi
150
151 newinitd "${FILESDIR}/${PN}.initd" ${PN}
152 newconfd "${FILESDIR}/${PN}.confd" ${PN}
153
154 # Documentation
155 dodoc NEWS TODO doc/where_to_send_queries.{pdf,odg}
156 dohtml -r doc
157
158 # Examples and extras
159 insinto "/usr/share/${PN}"
160 doins doc/{pgpool_remote_start,basebackup.sh,recovery.conf.sample}
161 mv "${ED%/}/usr/share/${PN/2/-II}" "${ED%/}/usr/share/${PN}" || die
162
163 # One more thing: Evil la files!
164 find "${ED}" -name '*.la' -exec rm -f {} +
165 }