1 |
patrick 09/10/03 16:27:59 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postgresql-base-7.4.26.ebuild |
5 |
Log: |
6 |
Bump to 7.4.26 |
7 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.26 dev-db/postgresql-base/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.26&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.26&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.25&r2=1.26 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v |
19 |
retrieving revision 1.25 |
20 |
retrieving revision 1.26 |
21 |
diff -u -r1.25 -r1.26 |
22 |
--- ChangeLog 1 Oct 2009 20:48:40 -0000 1.25 |
23 |
+++ ChangeLog 3 Oct 2009 16:27:59 -0000 1.26 |
24 |
@@ -1,6 +1,13 @@ |
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.25 2009/10/01 20:48:40 klausman Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.26 2009/10/03 16:27:59 patrick Exp $ |
29 |
+ |
30 |
+*postgresql-base-7.4.26 (03 Oct 2009) |
31 |
+ |
32 |
+ 03 Oct 2009; Patrick Lauer <patrick@g.o> |
33 |
+ +postgresql-base-7.4.26.ebuild, +files/postgresql-7.4.26-autoconf.patch: |
34 |
+ Bump to 7.4.26, fixes half of #286700. Thanks to Aaron W. Swenson for |
35 |
+ testing and patching. |
36 |
|
37 |
01 Oct 2009; Tobias Klausmann <klausman@g.o> |
38 |
postgresql-base-8.4.1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-db/postgresql-base/postgresql-base-7.4.26.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.26.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.26.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: postgresql-base-7.4.26.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.26.ebuild,v 1.1 2009/10/03 16:27:59 patrick Exp $ |
52 |
|
53 |
EAPI="1" |
54 |
|
55 |
WANT_AUTOCONF="latest" |
56 |
WANT_AUTOMAKE="none" |
57 |
|
58 |
inherit eutils multilib toolchain-funcs versionator autotools |
59 |
|
60 |
KEYWORDS="~amd64 ~x86" |
61 |
|
62 |
DESCRIPTION="PostgreSQL libraries and clients" |
63 |
HOMEPAGE="http://www.postgresql.org/" |
64 |
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" |
65 |
LICENSE="POSTGRESQL" |
66 |
SLOT="$(get_version_component_range 1-2)" |
67 |
IUSE_LINGUAS=" |
68 |
linguas_cs linguas_de linguas_es linguas_fr linguas_hr linguas_hu |
69 |
linguas_it linguas_nb linguas_pt_BR linguas_ru 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-${PV}-autoconf.patch" \ |
103 |
"${FILESDIR}/postgresql-${SLOT}-hppa.patch" \ |
104 |
"${FILESDIR}/postgresql-${SLOT}-base.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 |
eautoreconf |
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 |
--host=${CHOST} \ |
123 |
--docdir=/usr/share/doc/${PF} \ |
124 |
--without-tcl \ |
125 |
--without-perl \ |
126 |
--without-python \ |
127 |
$(use_with kerberos krb5) \ |
128 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
129 |
$(use_with pam) \ |
130 |
$(use_enable pg-intdatetime integer-datetimes ) \ |
131 |
$(use_with readline) \ |
132 |
$(use_with ssl openssl) \ |
133 |
$(use_enable threads thread-safety ) \ |
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 |
|
148 |
# Install missing libpgport.a |
149 |
insinto /usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
150 |
doins "${S}/src/port/libpgport.a" |
151 |
|
152 |
dodir /usr/share/postgresql-${SLOT}/man/man1 |
153 |
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 |
154 |
|
155 |
rm -rf "${D}/usr/share/doc/${PF}/html" |
156 |
rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,initlocation,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 |
157 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
158 |
|
159 |
cd "${S}/contrib" |
160 |
emake DESTDIR="${D}" install || die "emake install failed" |
161 |
cd "${S}" |
162 |
|
163 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
164 |
|
165 |
IDIR="/usr/include/postgresql-${SLOT}" |
166 |
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__ |
167 |
postgres_ebuilds="\${postgres_ebuilds} ${PF}" |
168 |
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} |
169 |
postgres_datadir=/usr/share/postgresql-${SLOT} |
170 |
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin |
171 |
postgres_symlinks=( |
172 |
${IDIR} /usr/include/postgresql |
173 |
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h |
174 |
${IDIR}/libpq /usr/include/libpq |
175 |
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h |
176 |
) |
177 |
__EOF__ |
178 |
|
179 |
cat >"${T}/50postgresql-98-${SLOT}" <<-__EOF__ |
180 |
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
181 |
MANPATH=/usr/share/postgresql-${SLOT}/man |
182 |
__EOF__ |
183 |
doenvd "${T}/50postgresql-98-${SLOT}" |
184 |
|
185 |
keepdir /etc/postgresql-${SLOT} |
186 |
} |
187 |
|
188 |
pkg_postinst() { |
189 |
eselect postgresql update |
190 |
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT} |
191 |
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'." |
192 |
} |
193 |
|
194 |
pkg_postrm() { |
195 |
eselect postgresql update |
196 |
} |