1 |
patrick 09/09/09 22:57:31 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postgresql-base-8.0.22.ebuild |
5 |
Log: |
6 |
Bump to 8.0.22 |
7 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.23 dev-db/postgresql-base/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.23&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.23&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.22&r2=1.23 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v |
19 |
retrieving revision 1.22 |
20 |
retrieving revision 1.23 |
21 |
diff -u -r1.22 -r1.23 |
22 |
--- ChangeLog 9 Sep 2009 22:33:47 -0000 1.22 |
23 |
+++ ChangeLog 9 Sep 2009 22:57:31 -0000 1.23 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-db/postgresql-base |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.22 2009/09/09 22:33:47 patrick Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.23 2009/09/09 22:57:31 patrick Exp $ |
29 |
+ |
30 |
+*postgresql-base-8.0.22 (09 Sep 2009) |
31 |
+ |
32 |
+ 09 Sep 2009; Patrick Lauer <patrick@g.o> |
33 |
+ +postgresql-base-8.0.22.ebuild: |
34 |
+ Bump to 8.0.22 |
35 |
|
36 |
*postgresql-base-8.2.14 (09 Sep 2009) |
37 |
*postgresql-base-8.1.18 (09 Sep 2009) |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-db/postgresql-base/postgresql-base-8.0.22.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.0.22.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.0.22.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: postgresql-base-8.0.22.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.0.22.ebuild,v 1.1 2009/09/09 22:57:31 patrick Exp $ |
51 |
|
52 |
EAPI="1" |
53 |
|
54 |
WANT_AUTOCONF="latest" |
55 |
WANT_AUTOMAKE="none" |
56 |
|
57 |
inherit eutils multilib toolchain-funcs versionator autotools |
58 |
|
59 |
KEYWORDS="~amd64 ~x86" |
60 |
|
61 |
DESCRIPTION="PostgreSQL libraries and clients" |
62 |
HOMEPAGE="http://www.postgresql.org/" |
63 |
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" |
64 |
LICENSE="POSTGRESQL" |
65 |
SLOT="$(get_version_component_range 1-2)" |
66 |
IUSE_LINGUAS=" |
67 |
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr |
68 |
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl |
69 |
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv |
70 |
linguas_tr linguas_zh_CN linguas_zh_TW" |
71 |
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}" |
72 |
RESTRICT="test" |
73 |
|
74 |
wanted_languages() { |
75 |
for u in ${IUSE_LINGUAS} ; do |
76 |
use $u && echo -n "${u#linguas_} " |
77 |
done |
78 |
} |
79 |
|
80 |
RDEPEND="kerberos? ( virtual/krb5 ) |
81 |
pam? ( virtual/pam ) |
82 |
readline? ( >=sys-libs/readline-4.1 ) |
83 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
84 |
zlib? ( >=sys-libs/zlib-1.1.3 ) |
85 |
>=app-admin/eselect-postgresql-0.3 |
86 |
!dev-db/postgresql-libs |
87 |
!dev-db/postgresql-client |
88 |
!dev-db/libpq |
89 |
!dev-db/postgresql" |
90 |
DEPEND="${RDEPEND} |
91 |
sys-devel/flex |
92 |
>=sys-devel/bison-1.875 |
93 |
nls? ( sys-devel/gettext )" |
94 |
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )" |
95 |
|
96 |
S="${WORKDIR}/postgresql-${PV}" |
97 |
|
98 |
src_unpack() { |
99 |
unpack ${A} |
100 |
cd "${S}" |
101 |
|
102 |
epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \ |
103 |
"${FILESDIR}/postgresql-${SLOT}-base.patch" \ |
104 |
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch" |
105 |
|
106 |
# to avoid collision - it only should be installed by server |
107 |
rm "${S}/src/backend/nls.mk" |
108 |
|
109 |
# because psql/help.c includes the file |
110 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" |
111 |
|
112 |
eautoconf |
113 |
} |
114 |
|
115 |
src_compile() { |
116 |
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ |
117 |
--datadir=/usr/share/postgresql-${SLOT} \ |
118 |
--sysconfdir=/etc/postgresql-${SLOT} \ |
119 |
--includedir=/usr/include/postgresql-${SLOT} \ |
120 |
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \ |
121 |
--mandir=/usr/share/postgresql-${SLOT}/man \ |
122 |
--without-docdir \ |
123 |
--without-tcl \ |
124 |
--without-perl \ |
125 |
--without-python \ |
126 |
$(use_with kerberos krb5) \ |
127 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
128 |
$(use_with pam) \ |
129 |
$(use_enable pg-intdatetime integer-datetimes ) \ |
130 |
$(use_with readline) \ |
131 |
$(use_with ssl openssl) \ |
132 |
$(use_enable threads thread-safety) \ |
133 |
$(use_enable threads thread-safety-force) \ |
134 |
$(use_with zlib) \ |
135 |
|| die "configure failed" |
136 |
|
137 |
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" |
138 |
|
139 |
cd "${S}/contrib" |
140 |
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" |
141 |
} |
142 |
|
143 |
src_install() { |
144 |
emake DESTDIR="${D}" install || die "emake install failed" |
145 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
146 |
doins "${S}"/src/include/postmaster/*.h |
147 |
dodir /usr/share/postgresql-${SLOT}/man/man1 |
148 |
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 |
149 |
|
150 |
rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 |
151 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
152 |
|
153 |
cd "${S}/contrib" |
154 |
emake DESTDIR="${D}" install || die "emake install failed" |
155 |
cd "${S}" |
156 |
|
157 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
158 |
|
159 |
IDIR="/usr/include/postgresql-${SLOT}" |
160 |
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__ |
161 |
postgres_ebuilds="\${postgres_ebuilds} ${PF}" |
162 |
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} |
163 |
postgres_datadir=/usr/share/postgresql-${SLOT} |
164 |
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin |
165 |
postgres_symlinks=( |
166 |
${IDIR} /usr/include/postgresql |
167 |
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h |
168 |
${IDIR}/libpq /usr/include/libpq |
169 |
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h |
170 |
) |
171 |
__EOF__ |
172 |
|
173 |
cat >"${T}/50postgresql-97-${SLOT}" <<-__EOF__ |
174 |
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
175 |
MANPATH=/usr/share/postgresql-${SLOT}/man |
176 |
__EOF__ |
177 |
doenvd "${T}/50postgresql-97-${SLOT}" |
178 |
|
179 |
keepdir /etc/postgresql-${SLOT} |
180 |
} |
181 |
|
182 |
pkg_postinst() { |
183 |
eselect postgresql update |
184 |
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT} |
185 |
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'." |
186 |
} |
187 |
|
188 |
pkg_postrm() { |
189 |
eselect postgresql update |
190 |
} |