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