summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2011-01-06 12:31:37 +0000
committerPatrick Lauer <patrick@gentoo.org>2011-01-06 12:31:37 +0000
commitccfe0aa8f8a64100d0ab493b93f8577f83fddfb1 (patch)
tree84907703c067aa825e0577c280a8cd7c6b9d720c
parentBump 8.1 too (diff)
downloadhistorical-ccfe0aa8f8a64100d0ab493b93f8577f83fddfb1.tar.gz
historical-ccfe0aa8f8a64100d0ab493b93f8577f83fddfb1.tar.bz2
historical-ccfe0aa8f8a64100d0ab493b93f8577f83fddfb1.zip
Bump 8.1 too
Package-Manager: portage-2.2.0_alpha13/cvs/Linux x86_64
-rw-r--r--dev-db/postgresql-server/ChangeLog8
-rw-r--r--dev-db/postgresql-server/Manifest4
-rw-r--r--dev-db/postgresql-server/postgresql-server-8.1.23.ebuild263
3 files changed, 273 insertions, 2 deletions
diff --git a/dev-db/postgresql-server/ChangeLog b/dev-db/postgresql-server/ChangeLog
index 07ae56b2e0b0..d9661904ad72 100644
--- a/dev-db/postgresql-server/ChangeLog
+++ b/dev-db/postgresql-server/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-db/postgresql-server
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/ChangeLog,v 1.93 2011/01/04 19:24:14 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/ChangeLog,v 1.94 2011/01/06 12:31:37 patrick Exp $
+
+*postgresql-server-8.1.23 (06 Jan 2011)
+
+ 06 Jan 2011; Patrick Lauer <patrick@gentoo.org>
+ +postgresql-server-8.1.23.ebuild:
+ Bump 8.1 too
*postgresql-server-9.0.2 (04 Jan 2011)
*postgresql-server-8.4.6 (04 Jan 2011)
diff --git a/dev-db/postgresql-server/Manifest b/dev-db/postgresql-server/Manifest
index 79665dc889fb..5ccdb4b9675a 100644
--- a/dev-db/postgresql-server/Manifest
+++ b/dev-db/postgresql-server/Manifest
@@ -35,6 +35,7 @@ AUX postgresql.init-9.0 3033 RMD160 90063475bdb11926ecb22b649eb4ed9b594e8da8 SHA
AUX postgresql.init-9.0-r1 3861 RMD160 f8c9a1d874e81932e6df6dcb0c68287dad68d44f SHA1 ac761e2b0d95e5d87422f8552427987363fd8894 SHA256 707a65b4fe1b5f379a7fc865c81e9ba083b4dab0dab8652c2fbe1174a1fc7c46
DIST postgresql-8.1.21.tar.bz2 11907115 RMD160 f0629ed67a877832074cf389e9cd0119eb3a02ad SHA1 8fa8d9c53c26e7e7ffc962f9cf4f4537c1090cfd SHA256 192fdbe7e703c3ad9bf767997c62717f0f00192b884ae7ced0d6741795c15679
DIST postgresql-8.1.22.tar.bz2 11905401 RMD160 d3429d35d63933b9ec052c4e4ef94cc898de77d8 SHA1 019602660b4184402f77004e03ab178a8de99745 SHA256 a01e6baa2ee08868f5318cdaec592d8ca68b5a8ef956b8304a07b3a1c208fefc
+DIST postgresql-8.1.23.tar.bz2 11920401 RMD160 cb2c9572ecefe49303e49f458116d51d3f1e6c36 SHA1 418b8c2e5a076e2e3c3e28455ee16b6550210352 SHA256 5a79eb814b4933f95deb704dfbbd6e1966b520ec12b8f4b48bcea9c3266c10ea
DIST postgresql-8.2.17.tar.bz2 12714721 RMD160 0e78ae8015c61c9538b7de45703a2b050d99bb50 SHA1 6387d14cc875b9217d89d52d842a1fbdd61ca66d SHA256 3eaebfd2ba8256a168a32b0950b5129f999ae06115e482b1f5a2bdf66aa91985
DIST postgresql-8.2.18.tar.bz2 12723850 RMD160 b1aa60338c3f6dc886caedc60e924128d64971dd SHA1 ec6bd4cd830b5df50c3d6038186cf1af03b609ff SHA256 9dd6d9a11ee8725d921a57af11bc3b83c7496e1b1324b39e09ab1b6eb547b0ca
DIST postgresql-8.2.19.tar.bz2 12749881 RMD160 a2b0782cad74ba03a9c003d81943e5d2ad12e8c2 SHA1 f43da20065ca97edc00f10c9db635c6c4279e520 SHA256 9ae639ec9320830c60c7e6b2151ed744c51564d0664d6b5c896b9ed7b4285f5e
@@ -49,6 +50,7 @@ DIST postgresql-9.0.1.tar.bz2 13773951 RMD160 5e4b31d9ff075099671ced015ac0272ae1
DIST postgresql-9.0.2.tar.bz2 14024244 RMD160 3313b4bafe3af6282f68f198da7d50af4d5c01c4 SHA1 42a9518a2f11fa1d09a23bc628b00e992d3bcf4a SHA256 ffb58195850aa0ec9b7b3dcdac51a6dee0c76ea3387b76c805e1c4d186fe2af5
EBUILD postgresql-server-8.1.21-r1.ebuild 9850 RMD160 b1097327b08269999e8a0654a8ec96ac66596ac3 SHA1 28915692629aeb5682a80f87426bcf85055566bd SHA256 eb84ce70da176e6335f10cb0ad277399b5db068df7b6cd1b711105922bd2673e
EBUILD postgresql-server-8.1.22.ebuild 9857 RMD160 f9e56ac0cb6f5e47e04d033d844dad19214d2464 SHA1 3a891f5658fb734514f7b068ce5137a8f6803c28 SHA256 a6f16ecdf80e569ea1eefeeecf55b1dd27af03adea56d942a374eaecba700981
+EBUILD postgresql-server-8.1.23.ebuild 9861 RMD160 86adb2336748f36ef86bf70b989f3717d7f8173e SHA1 01969efc2aeb124f19140dfb1c5ff45406258487 SHA256 a3fa2c5316447a548b2736a51ee9ea9c9efe1d94cc7c9b723000e830c90fbf7a
EBUILD postgresql-server-8.2.17-r1.ebuild 10148 RMD160 a6c3722265d8522301fa3644af0eab8cffefc381 SHA1 2295e1d45a3d23fe41aa36c6de2fcbffcd1f780a SHA256 c03315c8c87bdaf9a922bc3f2407aa3de67bf4b917831f972f3ba50fac262596
EBUILD postgresql-server-8.2.18.ebuild 10152 RMD160 648a1cc4728ffb780bc13e759aa7763ddd4b0312 SHA1 501fbe9edb0d22a2e24465f284f8aea71e24950f SHA256 9f9c862e3ce23af9ebc25b93a243aae5f9fbf113f709ba60769bca6b6eb338eb
EBUILD postgresql-server-8.2.19.ebuild 10156 RMD160 3b6c3ec4ff02999ca6d2e59f4966efe8120e4f3e SHA1 eda937fbafcf0772740e448051478249092635d1 SHA256 6f6032f54bca4dc1dc942ea89d1ff3d0f9f4487b09722fb734b80730a00eae87
@@ -61,5 +63,5 @@ EBUILD postgresql-server-8.4.6.ebuild 10353 RMD160 2780cca97d3a96e3b84367e097305
EBUILD postgresql-server-9.0.0.ebuild 10185 RMD160 4d637632e5b82f9bab5e50d779a97788ad45edef SHA1 436cd85f5047d57bc1404425efe5259a1a22da68 SHA256 be066743bbe1b99b72ee75e241fe2955f59fee24d2f4c04aa78bed90ca57d7e2
EBUILD postgresql-server-9.0.1.ebuild 10183 RMD160 5f255d1dfea7a0f9552dcad297120a4c3033bbe4 SHA1 a6b66a74c613e8f51fb31fb1f7dfff20bd6c68f7 SHA256 48896f6c81687bb650bffb309dd4502f7a005b380a34e2277b9ff330d528cc25
EBUILD postgresql-server-9.0.2.ebuild 10183 RMD160 a689f44bb8d4e14a43605b6774775d86b8fcc254 SHA1 2006f9f68db8b39dd7e4969e7a021cc4713eb8dd SHA256 415f2ca5433850e7a8d9e0c35b5f8991ba78981cc7fc6699e4736e1a20681ecc
-MISC ChangeLog 32878 RMD160 995d1cb3e6abacba3787d5f97af01bc783a15edc SHA1 1590915748f657014b739775839471649c441f49 SHA256 a6d805cdda09c4f04df1b66198792fed77b2f783a92f2690485c05dcc25222c4
+MISC ChangeLog 33021 RMD160 8205d7410f2bdd87c942c17e1e2f42c3a33a6f50 SHA1 684cdbcfdcfe63771f1d29068e71b69da773f256 SHA256 1f3070939ac12217423203431aa525be45247e8e9d727fddb76596458a7af4ab
MISC metadata.xml 420 RMD160 789f5a0ce45d05125098fd7e74a816cf08f4c39b SHA1 d308d7434a37f12cd320f74ed85e1d3ca7dabc75 SHA256 ac37a5084450a782d02510149d030bd0d4a63164f2ffb7bdda3ddf344606ca62
diff --git a/dev-db/postgresql-server/postgresql-server-8.1.23.ebuild b/dev-db/postgresql-server/postgresql-server-8.1.23.ebuild
new file mode 100644
index 000000000000..83095fd3fe0b
--- /dev/null
+++ b/dev-db/postgresql-server/postgresql-server-8.1.23.ebuild
@@ -0,0 +1,263 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.1.23.ebuild,v 1.1 2011/01/06 12:31:37 patrick Exp $
+
+EAPI="2"
+
+WANT_AUTOMAKE="none"
+inherit eutils multilib versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
+
+DESCRIPTION="PostgreSQL server"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE_LINGUAS="
+ linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
+ linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
+ linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
+ linguas_tr linguas_zh_CN linguas_zh_TW"
+IUSE="doc perl python selinux tcl xml nls kernel_linux ${IUSE_LINGUAS}"
+
+wanted_languages() {
+ for u in ${IUSE_LINGUAS} ; do
+ use $u && echo -n "${u#linguas_} "
+ done
+}
+
+RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}
+ perl? ( >=dev-lang/perl-5.6.1-r2 )
+ python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base )
+ selinux? ( sec-policy/selinux-postgresql )
+ tcl? ( >=dev-lang/tcl-8 )
+ xml? ( dev-libs/libxml2 dev-libs/libxslt )"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ xml? ( dev-util/pkgconfig )"
+PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+pkg_setup() {
+ enewgroup postgres 70
+ enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
+}
+
+src_prepare() {
+
+ epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
+ "${FILESDIR}/postgresql-${SLOT}-server.patch"
+
+ if use test; then
+ sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source
+ fi
+
+ eautoconf
+}
+
+src_configure() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+
+ # eval is needed to get along with pg_config quotation of space-rich entities.
+ eval econf "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ $(use_with perl) \
+ $(use_with python) \
+ $(use_with tcl) \
+ --with-includes="/usr/include/postgresql-${SLOT}/" \
+ "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" \
+ || die "configure failed"
+}
+
+src_compile() {
+ for bd in . contrib $(use xml && echo contrib/xml2) ; do
+ PATH="/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd -j1 \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+ if use perl ; then
+ mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
+ sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
+ "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
+ fi
+
+ for bd in . contrib $(use xml && echo contrib/xml2) ; do
+ PATH="/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \
+ emake install -C $bd -j1 DESTDIR="${D}" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake install in $bd failed"
+ done
+
+ rm -rf "${D}/usr/share/postgresql-${SLOT}/man/man7/" "${D}/usr/share/doc/${PF}/html"
+ rm "${D}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1
+
+ dodoc README HISTORY doc/{README.*,TODO,bug.template}
+
+ dodir /etc/eselect/postgresql/slots/${SLOT}
+ cat >"${D}/etc/eselect/postgresql/slots/${SLOT}/service" <<-__EOF__
+ postgres_ebuilds="\${postgres_ebuilds} ${PF}"
+ postgres_service="postgresql-${SLOT}"
+ __EOF__
+
+ newinitd "${FILESDIR}/postgresql.init-${SLOT}-r1" postgresql-${SLOT} || die "Inserting init.d-file failed"
+ newconfd "${FILESDIR}/postgresql.conf-${SLOT}-r1" postgresql-${SLOT} || die "Inserting conf.d-file failed"
+
+ keepdir /var/run/postgresql
+ fperms 0770 /var/run/postgresql
+ fowners postgres:postgres /var/run/postgresql
+}
+
+pkg_postinst() {
+ eselect postgresql update
+ [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
+ [[ "$(eselect postgresql show-service)" = "(none)" ]] && eselect postgresql set-service ${SLOT}
+
+ ewarn "Please note that the standard location of the socket has changed from /tmp to"
+ ewarn "/var/run/postgresql and you have to be in the 'postgres' group to access the"
+ ewarn "socket. This can break applications which have the standard location"
+ ewarn "hard-coded. If such an application links against the libpq, please reemerge"
+ ewarn "it. If that doesn't help or the application accesses the socket without using"
+ ewarn "libpq, please file a bug-report."
+ ewarn
+ ewarn "You can set PGOPTS='-k /tmp' in /etc/conf.d/postgresql-${SLOT} to restore the original location."
+ ewarn
+
+ elog "Before initializing the database, you may want to edit PG_INITDB_OPTS so that it"
+ elog "contains your preferred locale in:"
+ elog
+ elog " /etc/conf.d/postgresql-${SLOT}"
+ elog
+ elog "Then, execute the following command to setup the initial database environment:"
+ elog
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog
+ elog "The autovacuum function, which was in contrib, has been moved to the main"
+ elog "PostgreSQL functions starting with 8.1. You can enable it in the clusters"
+ elog "postgresql.conf."
+}
+
+pkg_postrm() {
+ eselect postgresql update
+}
+
+pkg_config() {
+ [[ -f /etc/conf.d/postgresql-${SLOT} ]] && source /etc/conf.d/postgresql-${SLOT}
+ [[ -z "${PGDATA}" ]] && PGDATA="/var/lib/postgresql/${SLOT}/data"
+
+ # environment.bz2 may not contain the same locale as the current system
+ # locale. Unset and source from the current system locale.
+ if [ -f /etc/env.d/02locale ]; then
+ unset LANG
+ unset LC_CTYPE
+ unset LC_NUMERIC
+ unset LC_TIME
+ unset LC_COLLATE
+ unset LC_MONETARY
+ unset LC_MESSAGES
+ unset LC_ALL
+ source /etc/env.d/02locale
+ [ -n "${LANG}" ] && export LANG
+ [ -n "${LC_CTYPE}" ] && export LC_CTYPE
+ [ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
+ [ -n "${LC_TIME}" ] && export LC_TIME
+ [ -n "${LC_COLLATE}" ] && export LC_COLLATE
+ [ -n "${LC_MONETARY}" ] && export LC_MONETARY
+ [ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
+ [ -n "${LC_ALL}" ] && export LC_ALL
+ fi
+
+ einfo "You can pass options to initdb by setting the PG_INITDB_OPTS variable."
+ einfo "More information can be found here:"
+ einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
+ einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
+ einfo "Simply add the options you would have added to initdb to the PG_INITDB_OPTS"
+ einfo "variable."
+ einfo
+ einfo "You can change the directory where the database cluster is being created by"
+ einfo "setting the PGDATA variable."
+ einfo
+ einfo "PG_INITDB_OPTS is currently set to:"
+ einfo " \"${PG_INITDB_OPTS}\""
+ einfo "and the database cluster will be created in:"
+ einfo " \"${PGDATA}\""
+ einfo "Are you ready to continue? (Y/n)"
+ read answer
+ [ -z $answer ] && answer=Y
+ [ "$answer" == "Y" ] || [ "$answer" == "y" ] || die "aborted"
+
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ eerror "The given directory \"${PGDATA}\" already contains a database cluster."
+ die "cluster already exists"
+ fi
+
+ [ -z "${PG_MAX_CONNECTIONS}" ] && PG_MAX_CONNECTIONS="128"
+ einfo "Checking system parameters..."
+
+ if ! use kernel_linux ; then
+ SKIP_SYSTEM_TESTS=yes
+ einfo " Tests not supported on this OS (yet)"
+ fi
+
+ if [ -z ${SKIP_SYSTEM_TESTS} ] ; then
+ einfo "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections..."
+
+ local SEMMSL=$(sysctl -n kernel.sem | cut -f1)
+ local SEMMNS=$(sysctl -n kernel.sem | cut -f2)
+ local SEMMNI=$(sysctl -n kernel.sem | cut -f4)
+ local SHMMAX=$(sysctl -n kernel.shmmax)
+
+ local SEMMSL_MIN=17
+ local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 ))
+ local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 ))
+ local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) ))
+
+ for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do
+ if [ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ] ; then
+ eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)"
+ eerror "You have now several options:"
+ eerror " - Change the mentioned system parameter"
+ eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to a value lower than ${PG_MAX_CONNECTIONS}"
+ eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely"
+ eerror "More information can be found here:"
+ eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html"
+ die "System test failed."
+ fi
+ done
+ einfo "Passed."
+ else
+ einfo "Skipped."
+ fi
+
+ einfo "Creating the data directory ..."
+ mkdir -p "${PGDATA}"
+ chown -Rf postgres:postgres "${PGDATA}"
+ chmod 0700 "${PGDATA}"
+
+ einfo "Initializing the database ..."
+
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata \"${PGDATA}\" ${PG_INITDB_OPTS}"
+
+ einfo
+ einfo "You can use the '${ROOT}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
+ einfo "instead of 'pg_ctl'."
+ einfo
+}
+
+src_test() {
+ einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
+ PATH="/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \
+ emake -j1 check \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} || die "Make check failed. See above for details."
+
+ einfo "Yes, there are other tests which could be run."
+ einfo "... and no, we don't plan to add/support them."
+ einfo "For now, the main regressions tests will suffice. If you think other tests are"
+ einfo "necessary, please submit a bug including a patch for this ebuild to enable them."
+}