diff options
author | Aaron Swenson <titanofold@gentoo.org> | 2013-01-12 19:10:25 +0000 |
---|---|---|
committer | Aaron Swenson <titanofold@gentoo.org> | 2013-01-12 19:10:25 +0000 |
commit | aea64aae548dbf4ca372e832f6008189072852ad (patch) | |
tree | 899488a36300aebf97ece49c51dff04f40382d93 /dev-db | |
parent | Add bindist USE to disable ecdsa, bug#446226, thanks to Peter Stuge (diff) | |
download | historical-aea64aae548dbf4ca372e832f6008189072852ad.tar.gz historical-aea64aae548dbf4ca372e832f6008189072852ad.tar.bz2 historical-aea64aae548dbf4ca372e832f6008189072852ad.zip |
Fixes bug 444214
Package-Manager: portage-2.1.11.31/cvs/Linux x86_64
Manifest-Sign-Key: 0xD1BBFDA0
Diffstat (limited to 'dev-db')
17 files changed, 2653 insertions, 17 deletions
diff --git a/dev-db/postgresql-base/ChangeLog b/dev-db/postgresql-base/ChangeLog index e97d47356486..7211140be268 100644 --- a/dev-db/postgresql-base/ChangeLog +++ b/dev-db/postgresql-base/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for dev-db/postgresql-base -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.216 2012/12/10 06:01:02 patrick Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.217 2013/01/12 19:08:18 titanofold Exp $ + +*postgresql-base-9.2.2-r1 (12 Jan 2013) +*postgresql-base-9.1.7-r1 (12 Jan 2013) +*postgresql-base-9.0.11-r1 (12 Jan 2013) +*postgresql-base-8.4.15-r1 (12 Jan 2013) +*postgresql-base-8.3.22-r1 (12 Jan 2013) + + 12 Jan 2013; Aaron W. Swenson <titanofold@gentoo.org> + +postgresql-base-8.3.22-r1.ebuild, +postgresql-base-8.4.15-r1.ebuild, + +postgresql-base-9.0.11-r1.ebuild, +postgresql-base-9.1.7-r1.ebuild, + +postgresql-base-9.2.2-r1.ebuild, postgresql-base-9999.ebuild: + Fixes bug 444214 *postgresql-base-8.3.22 (10 Dec 2012) *postgresql-base-9.1.7 (10 Dec 2012) diff --git a/dev-db/postgresql-base/Manifest b/dev-db/postgresql-base/Manifest index 282570d7727b..09459da35067 100644 --- a/dev-db/postgresql-base/Manifest +++ b/dev-db/postgresql-base/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + DIST postgresql-8.3.20.tar.bz2 14624435 SHA256 922b6165dc21739356e22ba4d53e08f3b26cd38d8fb9569d5f8fa6d239611163 SHA512 e709632db165f543e510334adfa191ecff6fbe5ae6726578cbb5e4858de62fda53e67b19171c302492361c580bf6894af84dc97ee81e1146a04aec2984d4f91f WHIRLPOOL beee4643d4c2212d9d49390bf1f3ff279f54f2d3c90743610ee59d7e8b93a1e61136654a1f5abe5d49a7826afdea8166ae047f7f2eb2f461c543bf3111f294d5 DIST postgresql-8.3.21.tar.bz2 14626010 SHA256 a64b6de9f8067b803f2ed46a025bfd2a16a5ae270db60e440a698f2c07e234f8 SHA512 6da6fab655412fb2cc59ba6228596d6d3caff1a0c6bbd574b61c807bc18941b8d3db6824ffb7da1ad78d89c61d4407402bdb0904bf7b60c49959f40cb2bf3191 WHIRLPOOL 1bb3afefa2610537a35d148ccf2b65d6fe2915774aa61e92afeaadb3c6e923bf1771be7a5828c8ac67d2a0dac94f8bad3330cb38fa2f3b6993ebe493998f11a0 DIST postgresql-8.3.22.tar.bz2 14630723 SHA256 17b8f3709c0442e25329e41743f980b10a3149940cee921c28e0bb5b51fef0c6 SHA512 bdcde0659062f5045c6596cd5bb7e90e7e99cf6316896d211c5125ce11f52f2ffdc911aa960556ef06c5fb62a5f2e6efc3555eca060df7eb8bebcdc805d73bee WHIRLPOOL 093dceec2b2c25af70048e7fc49b1f3741115f362777c0f1687745a50fa3cdfd8ddd6b42be0c256b413188e17dfeb977c41aab56f0f91f3010d491278e9b36c9 @@ -20,18 +23,30 @@ DIST postgresql-patches-9.2beta2.tbz2 4466 SHA256 7033657bf66255fda3881ee6797ad0 DIST postgresql-patches-9.2beta3.tbz2 4466 SHA256 7033657bf66255fda3881ee6797ad0aa920e1910619228206b174065e5e348d2 SHA512 64150e055aabe04e1a298170a992c607313299d3990c05ac4146c05e6bb2a55e29999d45cf29d7111df5fda0f135980665c4c6c6c83d3f1df26c27334daf17bb WHIRLPOOL f67a99b39e99ab26e8d1125886493b53a3589908433618e7601281735dee4d2e54fdaed84e4608961264723cf27284e9ead798087f9b896a5ada8bdc70c51f9d EBUILD postgresql-base-8.3.20.ebuild 4195 SHA256 d420883590f3b4aa830add2e50c72d47493cca1b2f6d77246ceace6a1b01bfaa SHA512 4462bcf853095a983bf0ab6bb46b21a807b1f4b8c763faf52de11e7890404822da7e6b972328214e4c4e330032cb39bd94065f6a3e1370e859742e239d30a523 WHIRLPOOL 8c1c53df818d1c88a88f5e9909edb9089e1ea64ab50aa13e6567ed30b3cf7bccfda464def5202c991940fc8a120c6ed57835d2f2f56d53cb03d1654cddfb7734 EBUILD postgresql-base-8.3.21.ebuild 4194 SHA256 e090a4f3e0547fdcefa3316368b8b6fd9860f91134cc5813e73276c327b8d025 SHA512 87e692290a58e884778634857382975084c030d837649d007b0af38690412819570f6beb719b3bc13d21c22ee9fef18742622c46c5e05ed6fdcf80c675b19ac0 WHIRLPOOL 1a515936f987010c2f283481a30553dcc3de946a8737d8ae8447ea6f5fe035143f7af07d69e5e6dfcf01ea44889542395c62044015fc98af596670c5beed84e5 +EBUILD postgresql-base-8.3.22-r1.ebuild 4370 SHA256 68cc868489846b5d9a01496e6eb7b4290e9d340fc4f9391f1af83361d1ee88fe SHA512 5b678ee05bc2ddf45290ae373a005eb429e35e7e63d2fc6d41ed5a5318b635ab9e2646354d383cd0b4be602a5b046efe611b69b936f999a783aec77cd0c59508 WHIRLPOOL 7eeac301c00823628a3856f8d4132a07c34d7cac0e875566ed4abaae2323b80a563dfe4c5135faa849e2e81de63902c2ab0a7ff35f2f653e40ef4fb1832e25ef EBUILD postgresql-base-8.3.22.ebuild 4205 SHA256 94cd16986be459b8bf89997d21ad64f0c8282c0dd365df23dbf039523e6b1391 SHA512 ff8643ad1f60af4b0c737bdf0997c3895bc0f28d785776a78cb00a7dfac364cec62d372cd591aaaee8f53959e4dc9634027d32f0f12385a01ef0f939907cd09b WHIRLPOOL dc7dd20a8d26ccea94aa88ae8b3541718d4a6b7a4e237ff68eaeb8a548fdfb2cac73814af404eec6da586ec68f6c669277d349c13e9948b950f92750724ec6f2 EBUILD postgresql-base-8.4.13.ebuild 4199 SHA256 a1a0442e6042c090968f3fb99bf20973e19d4b61e597131160f996db651cb45b SHA512 c869bcc45a4c13684681d93a9353cde50ecc922060916083d7d95d2b8954a90b58beb0dbcb7a06e36aa20712d94f6e4b07f5a1b04137b84053a7db3dee941100 WHIRLPOOL fc187f8e32ac742d6041a0ed8a0bc2970ccd1505848d4468c001c9376957f5babf2c8edccb115cd591c0fa20f925eacabd5cee1b22ff750095ed6e97dfe49cfa EBUILD postgresql-base-8.4.14.ebuild 4198 SHA256 6f84572fc4493c352e0125f481596448f0217a9cc5a9e8c9cc437b190c238b51 SHA512 a15388dfd0404ad1b280a17f44654e90d20eb279a9ad22868308311940c5dfb10c8c74b21613d92a1fd3ffc01ae0e571cc3e7bc110a20ab46e4814d6c81a270f WHIRLPOOL df1ab3867326bb0f03698da8fd9c622c482659a19c66d0a2e1081ab06a990dbcdb5ce917d5740faaae5c9d7ff60c4461e8c24a52cdec28f2b1938c3a4c2cef67 +EBUILD postgresql-base-8.4.15-r1.ebuild 4369 SHA256 20626eb40f1609925a9f41e99d9582a07b16afd31e0c4825f6c083ef42be5d41 SHA512 2e65b5fa4721c6b5b2ced3f97f18d129f6bd88c0ad88897ef179aa4c4f97c4bc6c3d060f7a69d27174421ffe937b3aadec9b4c23d2a5ce2b698b21f91857c97c WHIRLPOOL 042c1eae23577b278888f619791c5b520228d68902ed02e92ceb8ab6b696b8f942eea1b4cfdc24c1670ffcdcdb9134d46b6a37f6ad87ed88aedf1ba8456ff1ca EBUILD postgresql-base-8.4.15.ebuild 4209 SHA256 50b1c5dbe757f6f27f09eda11e472489c8851859c91c12b7394e1e471e7358a6 SHA512 fb47f954050b54f15a73ce97aee406928e9ad02b71c6e9bc136f6d99708fea791a3f6baf0281d6fbb1c8406b14d3575545f546aab985c995fa2e4a4f78c89cfc WHIRLPOOL de774f6eb9524f74143eaf70aefd0f4219d5914fca900f3af244d894f67505ef7b12511a3a6b11fd46feca8174adc7386ea87a9712406f62588c55dee3b3d429 EBUILD postgresql-base-9.0.10.ebuild 4352 SHA256 da1fc2212aaf294d60a74ee0c4951e58e3f3b0bca025bf19821f4fa7c126884e SHA512 a97e3c59edd334d1f649a68439e7326bca528b783b7452719625520d8af30ebaf1d7b0be1487d54c59455b94caeb027a2033f035b2476db615ca4b45b05c3e5a WHIRLPOOL ba44e8cc393ad4a1f24a7d6d16c4c2dddd4f0b3bae1e7fdb2874675250a0ee08f264ea6131212912694f31e5b97dfee2f5a1424c18aaddeca9dc82d90c067d2c +EBUILD postgresql-base-9.0.11-r1.ebuild 4523 SHA256 75b2e763073852d6d1e162f4cfd9e72e3ad60f18fe01dbd1a1772d11281825e9 SHA512 20d94d7ef6deeba2c244802e1ff1b18b696e9d0ff149bcb3cceb9157f3837e4bb8c134f848ca7d3e2db4e42955d7daf2b3571d7fdbf6e5a1e7d809c6d21d3918 WHIRLPOOL 2129e922dcb68820212faa2ae260f442e8ec94fbf90b56ef31866c591ed94f134c59e77527531f800845cae1c5ee4b93c4f53dbb7630939bea6d8a7c38671361 EBUILD postgresql-base-9.0.11.ebuild 4363 SHA256 e79e819b04a36bd6a758d1492e85a79557ecbdce218c5b1582d26eb0a4831ca3 SHA512 8acb7b3b6f6d1515a9a9d30a3df1fc75bb1fbd180e5e2308873f84e8445a6ddb7683511782f2c6ff8b5b73f515d2d39c70f3fd9a4df83c7a3ae5d6812f6d0087 WHIRLPOOL 174d79eb1e0e2b0377862dea1269786ef0fbc428f96bc141077c5cd771d51395bf449da6e02cc333c4f931a3b5075a6192e69f4dc8b95ac3dbb4792c2b33cbea EBUILD postgresql-base-9.0.9.ebuild 4352 SHA256 521991ff8f7925c17b3103b41b3c380c03a1a60d8376bca3bdd218f8771746f6 SHA512 fa94c34d63098da2a5780c79aac9816f9065cde76a7917b69ffb1208bd480a79f73c55bf098d918917e1749638de3c8bebe3f434c6b8093b30d32c1e2311b91e WHIRLPOOL 4d18cda44379cc020eb547be6c48bf8ba75349803153b6f1323ceb7ba65bc50e2589103d1d52f933c96acd8e2f867cfebed77a6a4aa053f023d7356ea680b796 EBUILD postgresql-base-9.1.5.ebuild 4365 SHA256 9d13d6d744863e3c97479790918def76f8d2a2faa4f47f550cbc0452f2babda9 SHA512 4703bca4ba24074b2aeb2dfd68dbca3e61e73089af0ba13c5451badc2e8e2155ee197f4bd1ef29612bf2239ad2ae5278367a07c25d1f65f8da761373ab32d0e9 WHIRLPOOL 4254fe6e1d5df24803796ac378dce72b9917f85452dcc268879ed5530dcb3addee73f9aebb1f3aadfaab95e1a143c5bf2a5d72c440757d1935888957c448769b EBUILD postgresql-base-9.1.6.ebuild 4364 SHA256 1d998be84b7903c2134504668973b6377e6f52b8a3e10529be82746d6d98db94 SHA512 b3a4a41309bd147dc7bc4562e57b5cc0be4722b1d74ceb40ae69f1a6c8972824ea00ab7899e8ed81a35693b1df1b05318880220bd58011910e381465e68543f8 WHIRLPOOL b11037c3e9cfaf0a6272269327ff7f06158878b2f4ca21110a166933a08ce93f10eae8d90e5dfb90709c808e0f43446ab10091d7c2fd488b13c0da16a4e89459 +EBUILD postgresql-base-9.1.7-r1.ebuild 4536 SHA256 bf58f9ce080d8df4f0673b80c3553463674130e680eca15d19554d0e82f1ba8b SHA512 2df841e4c531b360d93d7a8e2a533b3473f46a9c99bfe1f992e7fb912f5a8fe7924e3c8a4761e1bc49c35c5f9c8fe92633055b53334fae8906e213ff6cbf90ac WHIRLPOOL 030cc904d923e42e6e6b7e2a48cb7fe45e77033d3faf0fbd9dae76b383489e47d95930465230ebbd21723ce4a5690bee1e6a989d839a365b141c06427002b8ed EBUILD postgresql-base-9.1.7.ebuild 4375 SHA256 afcf3959f531b574e6e39623126494020bd7c2587c06ae7fed838efcd34ecc1b SHA512 24b2c9dd4f22f610fe52afceee760703325006995704ae3da5ce0b3b843d2e05a13f703f103e4d945e91107d08c10f0b241525e70a5e912c291e83b35a752da4 WHIRLPOOL 5d35a37c378a6cc5af3b6cbe83480d48492b8a5c9f15f51cc6be10195c3a7f530b3cf6846ceb31fdb9816c65717d1ca64c3bb9c915fc783a409d4a519fa4c77c EBUILD postgresql-base-9.2.1.ebuild 4618 SHA256 040432239836a0264ce65c8674d0bf4acdb931fdd0d9471640a7e825100ad284 SHA512 915e71ed04ab8c91228a68c7152bf7f0b212668ba1387854e17e4ab45600ef92538db11e0205cdff8ad0b8591bb924d2245e1660bea70f718790ac52f5004c3b WHIRLPOOL 0e273677bf9410d5bd0a91db6b12068057e70c40979e8b337de169f4837ed39997e4dfba2a261310d877e723f87570eb164e8d6d131c10950da8e66e758bc480 +EBUILD postgresql-base-9.2.2-r1.ebuild 4790 SHA256 9f636ff4570200452281686af0821e29df8cdebec45b6589b5f7528ad62b065b SHA512 a2101e737bb66ad536066722cab133cc6e5b82f059e80bd5be7613fcd4cf33ea67152756b393bd72cc153f36f336a3249ad3c67625591153f38b5bfdd05a2e0a WHIRLPOOL e39eb62532bdbe48421b520f4306538c9b4284bc0b50745dcca8c28466ab2d789a0af0beaca787fe0b33c72fa50193cc385286f1ae9ee87c3d50613b4678d923 EBUILD postgresql-base-9.2.2.ebuild 4629 SHA256 6a73fea7ef3365a3bfddd5ff3a9d3dd6d78631c5ba6588c9e8512d0d8aeafd06 SHA512 6f355e60bc0f8762eeb6a9bc02b63032dd8a9a19639bd05f8c57ab3c02c945379e1dbf5459313347f8cdda04bd4eebff62e75cb356733bc0f29f73ad9d2a4933 WHIRLPOOL 74b3484c6ab725347f6e8f333e1e48014ddb2064ff7d15a7bd7f1f1029616edaf03b7bd7b981adabb8699940701bb2336e270a00d0d73407264aa1ed69a12894 -EBUILD postgresql-base-9999.ebuild 4789 SHA256 e5bd808dc3ac19bfa5024698dec0733593e5b2994772af8d6d674e1f6d0e037c SHA512 c855ace07c1f219c5407c5a431c30246abea393cfe339740d35c23ae3a05d99543c997358eda25e79a208bd2ac1736f5952d6cf6cbc55bd15b24bad2f2cfe25f WHIRLPOOL ed9e0b2d342dbbf857f2275823eeaea787a3102d1e789b2f56cb5b63de030798795aa314ead44b57d850a0be530fe8e6c9833c96e4cdf21af0a2fffaaec5dcd4 -MISC ChangeLog 55258 SHA256 3030dc3f7b4da61a2402392a4272512acb390d933121a53c9930cde79c55d843 SHA512 870b4d96c1cce9eaf79b83de763bbf6cb717829d5f1665e9d0270de55a2e508829c7fef68abfdbdad1c6129bc1175a41daa13c156d63dbd64c6827b8879c601f WHIRLPOOL c392b46a69f4575bccc30178eb90a480e1f91499c0fcbf80ca81a29d39e9911d233d1c25f7b0e246b919e5ee025295c02d213d589a40e3d1d338ad20e4785d35 +EBUILD postgresql-base-9999.ebuild 4966 SHA256 cdf58bbe1c08a3efeec62b8cef312494efadcb8b1b4648447b638f5cb740e0b1 SHA512 9014c8c6a6df4a0f583a9e737e48ed35d7d50d2d9f8b427a4f830d51feafeb9c26da005fc2e69f9ca28a1c9de671044feb8caeceacc67abaa810e957873a85ce WHIRLPOOL 5fa2e429ec3c6e80501a8e384c6629865ddee10d7e48ddab50b9a2a0684503208004f3624a1442875902e5bfad2f87a10cea180b273751243d03398b4685b5f6 +MISC ChangeLog 55749 SHA256 1af92ec46a58f44ad44947b22e352222c461b979938e5d482ecba0af14f8d7e2 SHA512 6ec64a83c3d0dde66552a641469c618cc71794deac4a190d1b043b3b4f1fe8acebc0156cd7a0a8697301ae9ca64d13a3d6fda99d2583bcbb663737a7b0ea9b4b WHIRLPOOL e407933b0f2fcd1b1c14d92e1db95262e639edc625d2744c376072c1e71448516cf2793e73de318de1cd719fb21b5e5b78ef2957285bd35d9db6d91177b03127 MISC metadata.xml 472 SHA256 ee20753f4083988318c4c30155901e99a800dc8fb19fd77c80f9947c72abbf4c SHA512 e2006ed7628e82b2f97543cf1fa3cc04707e9094dfcce5a7a28facc3f7b2712089cbbc00163aeed9d42a0703163db4bb5c7c4b032bfe4c83bfd83cff5cdc194c WHIRLPOOL 354ead8d64f98d69d74be1e69128bed50df6e0fd77d79a6e8c599f8bb12010014a43ee997cf9b9807a00b31463c1a71f620b261c1ef3b4d33cb915ffebb9a493 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iF4EAREIAAYFAlDxtKcACgkQVxOqA9G7/aDAqwD9GFJlvg8oDPutQxBekVJ1DHHV +BL/fqtwoOkNlLRWRa2YBAJPpO9imFvi2rjBTOGX+n24NQD1doF1HCt3v/jJOZ87k +=/Lg0 +-----END PGP SIGNATURE----- diff --git a/dev-db/postgresql-base/postgresql-base-8.3.22-r1.ebuild b/dev-db/postgresql-base/postgresql-base-8.3.22-r1.ebuild new file mode 100644 index 000000000000..1b9d78a40efc --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-8.3.22-r1.ebuild @@ -0,0 +1,157 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.22-r1.ebuild,v 1.1 2013/01/12 19:08:18 titanofold Exp $ + +EAPI="4" + +WANT_AUTOMAKE="none" + +inherit autotools eutils multilib prefix versionator + +SLOT="$(get_version_component_range 1-2)" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" + +DESCRIPTION="PostgreSQL libraries and clients" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2" +LICENSE="POSTGRESQL" + +S="${WORKDIR}/postgresql-${PV}" + +# No tests to be done for clients and libraries +RESTRICT="test" + +LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" +IUSE="doc kerberos ldap nls pam pg-intdatetime readline ssl threads zlib" + +for lingua in ${LINGUAS} ; do + IUSE+=" linguas_${lingua}" +done + +wanted_languages() { + local enable_langs + + for lingua in ${LINGUAS} ; do + use linguas_${lingua} && enable_langs+="${lingua} " + done + + echo -n ${enable_langs} +} + +RDEPEND=">=app-admin/eselect-postgresql-1.0.10 + virtual/libintl + !!dev-db/libpq + !!dev-db/postgresql + !!dev-db/postgresql-client + !!dev-db/postgresql-libs + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + pam? ( virtual/pam ) + readline? ( >=sys-libs/readline-4.1 ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + zlib? ( >=sys-libs/zlib-1.1.3 )" + +DEPEND="${RDEPEND} + !!<sys-apps/sandbox-2.0 + >=sys-devel/bison-1.875 + sys-devel/flex + nls? ( sys-devel/gettext )" + +PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" + +# Support /var/run or /run for the socket directory +[[ ! -d /run ]] && RUNDIR=/var + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ + "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ + "${WORKDIR}/relax_ssl_perms.patch" "${WORKDIR}/SuperH.patch" + + eprefixify src/include/pg_config_manual.h + + # to avoid collision - it only should be installed by server + rm "${S}/src/backend/nls.mk" + + # because psql/help.c includes the file + ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die + + sed -e "s|@RUNDIR@|${RUNDIR}|g" \ + -i src/include/pg_config_manual.h || \ + die "RUNDIR sed failed" + + eautoconf +} + +src_configure() { + export LDFLAGS_SL="${LDFLAGS}" + local PO="${EPREFIX%/}" + econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ + --datadir="${PO}/usr/share/postgresql-${SLOT}" \ + --includedir="${PO}/usr/include/postgresql-${SLOT}" \ + --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ + --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ + --without-docdir \ + --without-perl \ + --without-python \ + --without-tcl \ + $(use_with kerberos krb5) \ + $(use_with kerberos gssapi) \ + $(use_with ldap) \ + "$(use_enable nls nls "$(wanted_languages)")" \ + $(use_with pam) \ + $(use_enable pg-intdatetime integer-datetimes ) \ + $(use_with readline) \ + $(use_with ssl openssl) \ + $(use_enable threads thread-safety) \ + $(use_with zlib) +} + +src_compile() { + emake + + cd "${S}/contrib" + emake +} + +src_install() { + emake DESTDIR="${D}" install + insinto /usr/include/postgresql-${SLOT}/postmaster + doins "${S}"/src/include/postmaster/*.h + dodir /usr/share/postgresql-${SLOT}/man/man1 + + rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 + docompress /usr/share/postgresql-${SLOT}/man/man{1,7} + + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + insinto /usr/share/doc/postgresql-${SLOT} + doins README HISTORY doc/{FAQ*,README.*,TODO,bug.template} + + cd "${S}/contrib" + emake DESTDIR="${D}" install + cd "${S}" + + dodir /etc/eselect/postgresql/slots/${SLOT} + + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ + > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" + + keepdir /etc/postgresql-${SLOT} +} + +pkg_postinst() { + postgresql-config update + + elog "If you need a global psqlrc-file, you can place it in:" + elog " ${EROOT%/}/etc/postgresql-${SLOT}/" + einfo + einfo "If this is your first install of PostgreSQL, you 'll want to:" + einfo " source /etc/profile" + einfo "In your open terminal sessions." +} + +pkg_postrm() { + postgresql-config update +} diff --git a/dev-db/postgresql-base/postgresql-base-8.4.15-r1.ebuild b/dev-db/postgresql-base/postgresql-base-8.4.15-r1.ebuild new file mode 100644 index 000000000000..091aa6298f64 --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-8.4.15-r1.ebuild @@ -0,0 +1,157 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.15-r1.ebuild,v 1.1 2013/01/12 19:08:18 titanofold Exp $ + +EAPI="4" + +WANT_AUTOMAKE="none" + +inherit autotools eutils multilib prefix versionator + +SLOT="$(get_version_component_range 1-2)" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" + +DESCRIPTION="PostgreSQL libraries and clients" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2" +LICENSE="POSTGRESQL" + +S="${WORKDIR}/postgresql-${PV}" + +# No tests to be done for clients and libraries +RESTRICT="test" + +LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" +IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" + +for lingua in ${LINGUAS} ; do + IUSE+=" linguas_${lingua}" +done + +wanted_languages() { + local enable_langs + + for lingua in ${LINGUAS} ; do + use linguas_${lingua} && enable_langs+="${lingua} " + done + + echo -n ${enable_langs} +} + +RDEPEND=">=app-admin/eselect-postgresql-1.0.7 + virtual/libintl + !!dev-db/libpq + !!dev-db/postgresql + !!dev-db/postgresql-client + !!dev-db/postgresql-libs + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + pam? ( virtual/pam ) + readline? ( >=sys-libs/readline-4.1 ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + zlib? ( >=sys-libs/zlib-1.1.3 )" + +DEPEND="${RDEPEND} + !!<sys-apps/sandbox-2.0 + >=sys-devel/bison-1.875 + sys-devel/flex + nls? ( sys-devel/gettext )" + +PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" + +# Support /var/run or /run for the socket directory +[[ ! -d /run ]] && RUNDIR=/var + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ + "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ + "${WORKDIR}/SuperH.patch" + + eprefixify src/include/pg_config_manual.h + + # to avoid collision - it only should be installed by server + rm "${S}/src/backend/nls.mk" + + # because psql/help.c includes the file + ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die + + sed -e "s|@RUNDIR@|${RUNDIR}|g" \ + -i src/include/pg_config_manual.h || \ + die "RUNDIR sed failed" + + eautoconf +} + +src_configure() { + export LDFLAGS_SL="${LDFLAGS}" + local PO="${EPREFIX%/}" + econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ + --datadir="${PO}/usr/share/postgresql-${SLOT}" \ + --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ + --includedir="${PO}/usr/include/postgresql-${SLOT}" \ + --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ + --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ + --without-tcl \ + --without-perl \ + --without-python \ + $(use_with kerberos krb5) \ + $(use_with kerberos gssapi) \ + $(use_with ldap) \ + "$(use_enable nls nls "$(wanted_languages)")" \ + $(use_with pam) \ + $(use_enable !pg_legacytimestamp integer-datetimes ) \ + $(use_with readline) \ + $(use_with ssl openssl) \ + $(use_enable threads thread-safety) \ + $(use_with zlib) +} + +src_compile() { + emake + + cd "${S}/contrib" + emake +} + +src_install() { + emake DESTDIR="${D}" install + insinto /usr/include/postgresql-${SLOT}/postmaster + doins "${S}"/src/include/postmaster/*.h + + rm -r "${ED}/usr/share/doc/postgresql-${SLOT}/html" + rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 + docompress /usr/share/postgresql-${SLOT}/man/man{1,7} + + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + insinto /usr/share/doc/postgresql-${SLOT} + doins README HISTORY doc/{README.*,TODO,bug.template} + + cd "${S}/contrib" + emake DESTDIR="${D}" install + cd "${S}" + + dodir /etc/eselect/postgresql/slots/${SLOT} + + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ + > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" + + keepdir /etc/postgresql-${SLOT} +} + +pkg_postinst() { + postgresql-config update + + elog "If you need a global psqlrc-file, you can place it in:" + elog " ${EROOT%/}/etc/postgresql-${SLOT}/" + einfo + einfo "If this is your first install of PostgreSQL, you 'll want to:" + einfo " source /etc/profile" + einfo "In your open terminal sessions." +} + +pkg_postrm() { + postgresql-config update +} diff --git a/dev-db/postgresql-base/postgresql-base-9.0.11-r1.ebuild b/dev-db/postgresql-base/postgresql-base-9.0.11-r1.ebuild new file mode 100644 index 000000000000..46d29d6594e6 --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-9.0.11-r1.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.11-r1.ebuild,v 1.1 2013/01/12 19:08:18 titanofold Exp $ + +EAPI="4" + +WANT_AUTOMAKE="none" + +inherit autotools eutils flag-o-matic multilib prefix versionator + +SLOT="$(get_version_component_range 1-2)" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" + +DESCRIPTION="PostgreSQL libraries and clients" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2" +LICENSE="POSTGRESQL" + +S="${WORKDIR}/postgresql-${PV}" + +# No tests to be done for clients and libraries +RESTRICT="test" + +LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" +IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" + +for lingua in ${LINGUAS} ; do + IUSE+=" linguas_${lingua}" +done + +wanted_languages() { + local enable_langs + + for lingua in ${LINGUAS} ; do + use linguas_${lingua} && enable_langs+="${lingua} " + done + + echo -n ${enable_langs} +} + +RDEPEND=">=app-admin/eselect-postgresql-1.0.7 + virtual/libintl + !!dev-db/libpq + !!dev-db/postgresql + !!dev-db/postgresql-client + !!dev-db/postgresql-libs + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + pam? ( virtual/pam ) + readline? ( sys-libs/readline ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + zlib? ( sys-libs/zlib )" + +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + !!<sys-apps/sandbox-2.0 + nls? ( sys-devel/gettext )" + +PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" + +# Support /var/run or /run for the socket directory +[[ ! -d /run ]] && RUNDIR=/var + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ + "${WORKDIR}/bool.patch" + + eprefixify src/include/pg_config_manual.h + + # to avoid collision - it only should be installed by server + rm "${S}/src/backend/nls.mk" + + # because psql/help.c includes the file + ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die + + sed -e "s|@RUNDIR@|${RUNDIR}|g" \ + -i src/include/pg_config_manual.h || \ + die "RUNDIR sed failed" + + eautoconf +} + +src_configure() { + case ${CHOST} in + *-darwin*|*-solaris*) + use nls && append-libs intl + ;; + esac + export LDFLAGS_SL="${LDFLAGS}" + export LDFLAGS_EX="${LDFLAGS}" + local PO="${EPREFIX%/}" + econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ + --datadir="${PO}/usr/share/postgresql-${SLOT}" \ + --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ + --includedir="${PO}/usr/include/postgresql-${SLOT}" \ + --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ + --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ + --without-tcl \ + --without-perl \ + --without-python \ + $(use_with kerberos krb5) \ + $(use_with kerberos gssapi) \ + $(use_with ldap) \ + "$(use_enable nls nls "$(wanted_languages)")" \ + $(use_with pam) \ + $(use_enable !pg_legacytimestamp integer-datetimes) \ + $(use_with readline) \ + $(use_with ssl openssl) \ + $(use_enable threads thread-safety) \ + $(use_with zlib) +} + +src_compile() { + emake + + cd "${S}/contrib" + emake +} + +src_install() { + emake DESTDIR="${D}" install + insinto /usr/include/postgresql-${SLOT}/postmaster + doins "${S}"/src/include/postmaster/*.h + + dodir /usr/share/postgresql-${SLOT}/man/ + cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die + rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_controldata,pg_ctl,pg_resetxlog,postgres,postmaster}.1 + docompress /usr/share/postgresql-${SLOT}/man/man{1,7} + + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + insinto /usr/share/doc/postgresql-${SLOT} + doins README HISTORY doc/{README.*,TODO,bug.template} + + cd "${S}/contrib" + emake DESTDIR="${D}" install + cd "${S}" + + dodir /etc/eselect/postgresql/slots/${SLOT} + + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ + > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" + + keepdir /etc/postgresql-${SLOT} +} + +pkg_postinst() { + postgresql-config update + + elog "If you need a global psqlrc-file, you can place it in:" + elog " ${EROOT%/}/etc/postgresql-${SLOT}/" + einfo + einfo "If this is your first install of PostgreSQL, you 'll want to:" + einfo " source /etc/profile" + einfo "In your open terminal sessions." +} + +pkg_postrm() { + postgresql-config update +} diff --git a/dev-db/postgresql-base/postgresql-base-9.1.7-r1.ebuild b/dev-db/postgresql-base/postgresql-base-9.1.7-r1.ebuild new file mode 100644 index 000000000000..6d1ce7a778ac --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-9.1.7-r1.ebuild @@ -0,0 +1,168 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1.7-r1.ebuild,v 1.1 2013/01/12 19:08:18 titanofold Exp $ + +EAPI="4" + +WANT_AUTOMAKE="none" + +inherit autotools eutils flag-o-matic multilib prefix versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" + +SLOT="$(get_version_component_range 1-2)" +S="${WORKDIR}/postgresql-${PV}" + +DESCRIPTION="PostgreSQL libraries and clients" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2" +LICENSE="POSTGRESQL" + +# No tests to be done for clients and libraries +RESTRICT="test" + +LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" +IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" + +for lingua in ${LINGUAS} ; do + IUSE+=" linguas_${lingua}" +done + +wanted_languages() { + local enable_langs + + for lingua in ${LINGUAS} ; do + use linguas_${lingua} && enable_langs+="${lingua} " + done + + echo -n ${enable_langs} +} + +RDEPEND="!!dev-db/libpq + !!dev-db/postgresql + !!dev-db/postgresql-client + !!dev-db/postgresql-libs + >=app-admin/eselect-postgresql-1.0.10 + virtual/libintl + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + pam? ( virtual/pam ) + readline? ( sys-libs/readline ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + zlib? ( sys-libs/zlib ) +" + +DEPEND="${RDEPEND} + !!<sys-apps/sandbox-2.0 + sys-devel/bison + sys-devel/flex + nls? ( sys-devel/gettext ) +" + +PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" + +# Support /var/run or /run for the socket directory +[[ ! -d /run ]] && RUNDIR=/var + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" \ + "${WORKDIR}/base.patch" \ + "${WORKDIR}/bool.patch" + + eprefixify src/include/pg_config_manual.h + + # to avoid collision - it only should be installed by server + rm "${S}/src/backend/nls.mk" + + # because psql/help.c includes the file + ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die + + sed -e "s|@RUNDIR@|${RUNDIR}|g" \ + -i src/include/pg_config_manual.h || \ + die "RUNDIR sed failed" + + eautoconf +} + +src_configure() { + case ${CHOST} in + *-darwin*|*-solaris*) + use nls && append-libs intl + ;; + esac + + export LDFLAGS_SL="${LDFLAGS}" + export LDFLAGS_EX="${LDFLAGS}" + + local PO="${EPREFIX%/}" + + econf \ + --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ + --datadir="${PO}/usr/share/postgresql-${SLOT}" \ + --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ + --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ + --includedir="${PO}/usr/include/postgresql-${SLOT}" \ + --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ + --without-tcl \ + --without-perl \ + --without-python \ + $(use_with readline) \ + $(use_with kerberos krb5) \ + $(use_with kerberos gssapi) \ + "$(use_enable nls nls "$(wanted_languages)")" \ + $(use_with pam) \ + $(use_enable !pg_legacytimestamp integer-datetimes) \ + $(use_with ssl openssl) \ + $(use_enable threads thread-safety) \ + $(use_with zlib) \ + $(use_with ldap) +} + +src_compile() { + emake -j1 + + cd "${S}/contrib" + emake +} + +src_install() { + emake DESTDIR="${D}" install + insinto /usr/include/postgresql-${SLOT}/postmaster + doins "${S}"/src/include/postmaster/*.h + + dodir /usr/share/postgresql-${SLOT}/man/ + cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die + rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 + docompress /usr/share/postgresql-${SLOT}/man/man{1,7} + + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + insinto /usr/share/doc/postgresql-${SLOT} + doins README HISTORY doc/{TODO,bug.template} + + cd "${S}/contrib" + emake DESTDIR="${D}" install + cd "${S}" + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ + "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" + + keepdir /etc/postgresql-${SLOT} +} + +pkg_postinst() { + postgresql-config update + + elog "If you need a global psqlrc-file, you can place it in:" + elog " ${EROOT%/}/etc/postgresql-${SLOT}/" + einfo + einfo "If this is your first install of PostgreSQL, you 'll want to:" + einfo " source /etc/profile" + einfo "In your open terminal sessions." +} + +pkg_postrm() { + postgresql-config update +} diff --git a/dev-db/postgresql-base/postgresql-base-9.2.2-r1.ebuild b/dev-db/postgresql-base/postgresql-base-9.2.2-r1.ebuild new file mode 100644 index 000000000000..ab6ef1fcd258 --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-9.2.2-r1.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.2.2-r1.ebuild,v 1.1 2013/01/12 19:08:18 titanofold Exp $ + +EAPI="4" + +WANT_AUTOMAKE="none" + +inherit autotools eutils flag-o-matic multilib prefix versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" + +SLOT="$(get_version_component_range 1-2)" + +# Comment the following five lines when not a beta or rc. +#MY_PV="${PV//_}" +#MY_FILE_PV="${SLOT}$(get_version_component_range 4)" +#S="${WORKDIR}/postgresql-${MY_FILE_PV}" +SRC_URI="mirror://postgresql/source/v${MY_FILE_PV}/postgresql-${MY_FILE_PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2" + +# Comment the following three lines when a beta or rc. +S="${WORKDIR}/postgresql-${PV}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2" + +LICENSE="POSTGRESQL" +DESCRIPTION="PostgreSQL libraries and clients" +HOMEPAGE="http://www.postgresql.org/" + +# No tests to be done for clients and libraries +RESTRICT="test" + +LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" +IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" + +for lingua in ${LINGUAS} ; do + IUSE+=" linguas_${lingua}" +done + +wanted_languages() { + local enable_langs + + for lingua in ${LINGUAS} ; do + use linguas_${lingua} && enable_langs+="${lingua} " + done + + echo -n ${enable_langs} +} + +RDEPEND="!!dev-db/libpq + !!dev-db/postgresql + !!dev-db/postgresql-client + !!dev-db/postgresql-libs + sys-apps/less + >=app-admin/eselect-postgresql-1.0.10 + virtual/libintl + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + pam? ( virtual/pam ) + readline? ( sys-libs/readline ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + zlib? ( sys-libs/zlib ) +" + +DEPEND="${RDEPEND} + !!<sys-apps/sandbox-2.0 + sys-devel/bison + sys-devel/flex + nls? ( sys-devel/gettext ) +" + +PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" + +# Support /var/run or /run for the socket directory +[[ ! -d /run ]] && RUNDIR=/var + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" \ + "${WORKDIR}/base.patch" \ + "${WORKDIR}/bool.patch" + + eprefixify src/include/pg_config_manual.h + + # to avoid collision - it only should be installed by server + rm "${S}/src/backend/nls.mk" + + # because psql/help.c includes the file + ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die + + sed -e "s|@RUNDIR@|${RUNDIR}|g" \ + -i src/include/pg_config_manual.h || \ + die "RUNDIR sed failed" + + eautoconf +} + +src_configure() { + case ${CHOST} in + *-darwin*|*-solaris*) + use nls && append-libs intl + ;; + esac + + export LDFLAGS_SL="${LDFLAGS}" + export LDFLAGS_EX="${LDFLAGS}" + + local PO="${EPREFIX%/}" + + econf \ + --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ + --datadir="${PO}/usr/share/postgresql-${SLOT}" \ + --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ + --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ + --includedir="${PO}/usr/include/postgresql-${SLOT}" \ + --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ + --without-tcl \ + --without-perl \ + --without-python \ + $(use_with readline) \ + $(use_with kerberos krb5) \ + $(use_with kerberos gssapi) \ + "$(use_enable nls nls "$(wanted_languages)")" \ + $(use_with pam) \ + $(use_enable !pg_legacytimestamp integer-datetimes) \ + $(use_with ssl openssl) \ + $(use_enable threads thread-safety) \ + $(use_with zlib) \ + $(use_with ldap) +} + +src_compile() { + emake + + cd "${S}/contrib" + emake +} + +src_install() { + emake DESTDIR="${D}" install + insinto /usr/include/postgresql-${SLOT}/postmaster + doins "${S}"/src/include/postmaster/*.h + + dodir /usr/share/postgresql-${SLOT}/man/ + cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die + rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 + docompress /usr/share/postgresql-${SLOT}/man/man{1,7} + + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + insinto /usr/share/doc/postgresql-${SLOT} + doins README HISTORY doc/{TODO,bug.template} + + cd "${S}/contrib" + emake DESTDIR="${D}" install + cd "${S}" + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ + "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" + + keepdir /etc/postgresql-${SLOT} +} + +pkg_postinst() { + postgresql-config update + + elog "If you need a global psqlrc-file, you can place it in:" + elog " ${EROOT%/}/etc/postgresql-${SLOT}/" +} + +pkg_postrm() { + postgresql-config update +} diff --git a/dev-db/postgresql-base/postgresql-base-9999.ebuild b/dev-db/postgresql-base/postgresql-base-9999.ebuild index 12973327122f..9d2690377a37 100644 --- a/dev-db/postgresql-base/postgresql-base-9999.ebuild +++ b/dev-db/postgresql-base/postgresql-base-9999.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9999.ebuild,v 1.2 2012/06/28 09:39:05 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9999.ebuild,v 1.3 2013/01/12 19:08:18 titanofold Exp $ EAPI="4" @@ -146,7 +146,7 @@ src_compile() { } src_install() { - mkdir -p ${D}/usr/share/postgresql-${SLOT} + mkdir -p "${D}/usr/share/postgresql-${SLOT}" emake DESTDIR="${D}" install insinto /usr/include/postgresql-${SLOT}/postmaster doins "${S}"/src/include/postmaster/*.h @@ -156,7 +156,11 @@ src_install() { #cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die #rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 #docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - dodoc README doc/{TODO,bug.template} + + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + insinto /usr/share/doc/postgresql-${SLOT} + doins README HISTORY doc/{README.*,TODO,bug.template} cd "${S}/contrib" emake DESTDIR="${D}" install diff --git a/dev-db/postgresql-docs/Manifest b/dev-db/postgresql-docs/Manifest index f01357cbf52c..6ce6602efe68 100644 --- a/dev-db/postgresql-docs/Manifest +++ b/dev-db/postgresql-docs/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + DIST postgresql-8.3.20.tar.bz2 14624435 SHA256 922b6165dc21739356e22ba4d53e08f3b26cd38d8fb9569d5f8fa6d239611163 SHA512 e709632db165f543e510334adfa191ecff6fbe5ae6726578cbb5e4858de62fda53e67b19171c302492361c580bf6894af84dc97ee81e1146a04aec2984d4f91f WHIRLPOOL beee4643d4c2212d9d49390bf1f3ff279f54f2d3c90743610ee59d7e8b93a1e61136654a1f5abe5d49a7826afdea8166ae047f7f2eb2f461c543bf3111f294d5 DIST postgresql-8.3.21.tar.bz2 14626010 SHA256 a64b6de9f8067b803f2ed46a025bfd2a16a5ae270db60e440a698f2c07e234f8 SHA512 6da6fab655412fb2cc59ba6228596d6d3caff1a0c6bbd574b61c807bc18941b8d3db6824ffb7da1ad78d89c61d4407402bdb0904bf7b60c49959f40cb2bf3191 WHIRLPOOL 1bb3afefa2610537a35d148ccf2b65d6fe2915774aa61e92afeaadb3c6e923bf1771be7a5828c8ac67d2a0dac94f8bad3330cb38fa2f3b6993ebe493998f11a0 DIST postgresql-8.3.22.tar.bz2 14630723 SHA256 17b8f3709c0442e25329e41743f980b10a3149940cee921c28e0bb5b51fef0c6 SHA512 bdcde0659062f5045c6596cd5bb7e90e7e99cf6316896d211c5125ce11f52f2ffdc911aa960556ef06c5fb62a5f2e6efc3555eca060df7eb8bebcdc805d73bee WHIRLPOOL 093dceec2b2c25af70048e7fc49b1f3741115f362777c0f1687745a50fa3cdfd8ddd6b42be0c256b413188e17dfeb977c41aab56f0f91f3010d491278e9b36c9 @@ -14,17 +17,29 @@ DIST postgresql-9.2.1.tar.bz2 16113737 SHA256 db61d498105a7d5fe46185e67ac830c878 DIST postgresql-9.2.2.tar.bz2 16222148 SHA256 e1a7a854a98896cb7fcd1696a76fca6f3bcac94d75e68a6154ffe2b69184f7f3 SHA512 147690b168838b7d45cc805882cb6ef628cbf656ff115d32ab76c4ad38b06aa00223f728bf0e5befcdd27cc4e27a917493d857f1f29006952f0ff07da6615808 WHIRLPOOL f67b8ba8170f3a03ca5ee050286f6e830cbd086f6ee15095d5ec0e0cc48a342b9db263759451a63cdd9f669b0d55cbb3689ca781dd9f42f1cdb9e57c67ddb0c9 EBUILD postgresql-docs-8.3.20.ebuild 1268 SHA256 58cb1d24b9aef2b0e76e8eb3b1a46b705cd39ea8f5b04bd388a124265f09b8de SHA512 86dd3c6acc227dd3cac9488acb5bc0e408a0bed316a2d13b2fc54695d49ef29cd8e0e8936b4d88d4df11df5a69efa069df54024e9f00c70d7da73c3a2e8e576d WHIRLPOOL e10d1bdc2a8ccae42a3ec1f06d60dcf6d8139ea0c69237af065895c87975a6ed783148389155e836c01dcfb811facdf2462c8a1124da9c8a2a47349dcd522dde EBUILD postgresql-docs-8.3.21.ebuild 1267 SHA256 7e7494b4229dd34c5d794368e4a26048772f8f978747fc04236443c428e8a052 SHA512 ab9d2fb7cac0015a1557d31560ee19569895d5fd82f58a699e6586ab410b84c43de753e9863c28542d72054fbf8d92bcd53c5ad28e92536d79562a2e0566a4a5 WHIRLPOOL 57e35ba70e523f5b822f572a18103c895ee69869a49bec75275e7682ee1a1dd43b7b1c712d1a21fc95102b1fd79fc8d29eb2df507052658f32e78ba2950ab944 +EBUILD postgresql-docs-8.3.22-r1.ebuild 1421 SHA256 411f3dc5075476a53276575b9736f2e8858f450d1e306a180475107cc131a6bf SHA512 8668637e683bcf7ab4074cfe22cd11b5f0730468b1cdd8400e31293140f738b09862e08a1109c520ebdc0d897df1fccc242fd3318e2e27e8dd05f5e6405065bf WHIRLPOOL ae96475acf9f1c89b9600fc3d061e6fcb54bada65add2e22fde592a6e712b01ab5d317691d67483e67bd919ae300f77d53152adcc4145e7793a14a137a692608 EBUILD postgresql-docs-8.3.22.ebuild 1278 SHA256 8b099207c202beb813838fb16d9d21e85f433dab081073fe2a41e3031a2be08c SHA512 4a4a9c552699b97e98adab70156133150fc23867ad2d4d705b1dd08bb7c5bfaebdb54dcdc79a02063e82bb909aeb5944b9e4fee47a3def63f41d0511d1072a64 WHIRLPOOL 74ed6a6671fe887b470bf076f47671734a4d4211426507fab013adc3600a838124f51da4eb4d39b15e8da54d850a3891c3386b476ed89c3251b2156220057080 EBUILD postgresql-docs-8.4.13.ebuild 1211 SHA256 4e25ab2372a76f0a053edf380d0dd352d8f271aab22c56b5cdc5a3644037a430 SHA512 754031d020c77d2851618b803e1f706e6ffbfc93942f33597b38e10857da27deaf8612463e8e54fa735ad57810160438d13ba18c80e2e18853f347c584b03ca1 WHIRLPOOL 3a4b30aa1530b41debd3a9eb58620114aea34697ba6ef43f95a47cb8d112e7f07b7ad86156cfed73d26b0a53968be616a06643548ec06b24a900993cb5dfb116 EBUILD postgresql-docs-8.4.14.ebuild 1210 SHA256 efe0cea17f106af435de9359df2af08352ba27cbbde9ef6f75939388a3aaee3c SHA512 e6702c00bd32c550467f6c7f8c4302c715eec1247db4bc476b9059d69aab368519606a3ba185d444f87ef1906b033a660895e9979a0ad2d5c2c01164030dcd6e WHIRLPOOL 0fdbf3cdbbd4da2d2ba31e4cc5c835cb7b305194bce81c41154a09bc384714dc9a8ffe7f6d18bccf94bd03284d98a4dfebd56bf9465d04c461628e9f541d0d17 +EBUILD postgresql-docs-8.4.15-r1.ebuild 1322 SHA256 094bbae7b5f6ee79ff42723ccb751e04957d010b7d23dc82f1cab5c8726e5ef2 SHA512 f8a2d1b607c50d464d807561fd9804fea759c7722000e02c1d1dc29bdb289f55f2efbf987d517cfd74284946a7bac6b7fd3794f765555606474e80994f8d1350 WHIRLPOOL 781f783d1454a2315c89d04c811e327f087ab87df3e849b624380c8bc40085b1cce72f33448e54618399cb0fd8e75ff98a1ff9cde2832e523705d0334c5b3f5e EBUILD postgresql-docs-8.4.15.ebuild 1221 SHA256 6d74682d0802c36d5e85639b114b82351e5045398ac221882e984adc845562fd SHA512 488ac9372666113d0746775277936170208c604d94e0aad9b3b87d9bd82fd1ef383d3e97405148b5ed514c9bc47aa6a7f57b9c37d66b655959f715438f23891e WHIRLPOOL 83ff9ff9e0f65089b50abdd5a446180dd1863fa0d83c08109d2efd40df71dd6badc580fca2760ffe645e9739c2998acef045fe5439bd83464656ab7bebef986d EBUILD postgresql-docs-9.0.10.ebuild 1170 SHA256 b337df395f997a1a84adfe48b51525c95d3c19f5e2c60c16106dee1fe2ce62a9 SHA512 746933673d844137a9700467b9fa3c98a7d345ac34126681398ece979e4bb6703e535d50d804a24c8205849a7ca41a329710245d5d2a52a236dbd389b69c46fc WHIRLPOOL f9457735f4550a5603c5f394dac37bf87b3dbaaa829b3e1e5d0095b4b3c7c59ed7e2367d5073d2d0f8425a38f524f65c771776802a0a02b86c760b8cd0924dd3 +EBUILD postgresql-docs-9.0.11-r1.ebuild 1311 SHA256 7916e13a7399e34103301898c89d66f8a0061f11d1f0fcee4f6d544758c6a8aa SHA512 54b9f1e371b034bcc2937e1e86d2c4875a9f4d5d9b3efdc2294e6709e854367104eda3a3e995924f4ce79681bdc4320cfeaebf9b03ab6628c7c39264799bef06 WHIRLPOOL 3f6ed02412817d51794fff9a17808f1b86bccad6bb6dede21843a81e0b828e3db95763d7b4ab88a6d798faf5b9e90edb3745c5b0e3c3ed8d38004cfd5a7f76d9 EBUILD postgresql-docs-9.0.11.ebuild 1181 SHA256 67eb9fcc7d12b86810064146031c2d35d4d0e56a5fdb517f50de0f8f4f5a3648 SHA512 84f91c6c952fbac3dfd59985f1f1682af2fddfa3b2be9812b10bddaa731688fa56518430810be7b851b5aa41f21e0852921f5da2123be1950f9b5f2229f0a614 WHIRLPOOL c368aaf8a5dd84beb8cb67d120950118926cbf62893f2ce22a4083265867a4a2d980a8be4387216eb1933850ef35403a5d63e196b62a0b68037ac698449e6486 EBUILD postgresql-docs-9.0.9.ebuild 1170 SHA256 8905cb30bc296b09a91a1a5324cb8e11b9ae3c2af90a5a898b464d6f50ce2fb9 SHA512 611b524fe6ab873beb299a5a1af693fd2dc8066db612e3b4a5326a040c01488281edff8cb3ce8185617e1ce1f932215196b176206b36041706c5fee5ee51ee55 WHIRLPOOL 8a2ffa93631097b8f7d2f7885b9bb3089ac77eb70ea66e2590acbebd2fd95666a836cdf2ba0ef89394e198a0f847e159be0947442ac147812dac0a455679af6b EBUILD postgresql-docs-9.1.5.ebuild 1168 SHA256 32fe2348f23f5d39aff2709fa7fc601191ab8297daf76c2da92834e00b126e79 SHA512 fae761a987a57c8034b3d419db8c60b58affeceab8730954eecf77df5b1ac2c7a20bb6da1d8b5d410b2aad67cd9cab65f8afdca1e1d1c67677edd14ad57a5a86 WHIRLPOOL ea5c9fa765b25946a6ce43ffd630652d9e4df82f030390f404eaa442fa5ff53211b1505537ee9d13506e03db978e9975450cbdfacd2e7d6ea105b0825dcf9803 EBUILD postgresql-docs-9.1.6.ebuild 1167 SHA256 e25e0071783aec01699f93ebb375d6db9513be44aae78bd2a65b7f06cac27d36 SHA512 8dd320c8794f9a959d4cd4b103da2b20cc01e3713a2319b76d26d716688e3ab23f578f11e362f6253b1ad9119291e39545a66476fbf4b34719de478348b9381d WHIRLPOOL 4cbce2a63e5ea12b85c0845f01790a34ccfdd352f286853f4f8f027abff57858929075bcd2b3c4d7de1310446dbc31bf61e5584c3888c97b33a4974f2493a369 +EBUILD postgresql-docs-9.1.7-r1.ebuild 1324 SHA256 c83ec60a61af610c00d03e21830f9675e90e7dae71a67cc6ac3b21364864fe24 SHA512 54bd9473ff93ecbf92439c3e10ce2ba339473a87d8fb71a4d3160621d9817f9594da19182b5502f14962525a090c44543c79c6920700d5b237e8e81d9695e3a5 WHIRLPOOL fde5639dafb76c8001517205ca4a0a3cb71e1fe3122f8cfcaf5b4e1cfbebf09f6047d9e5666adf292f69950b09bd48032818cf5298c2b9a94b9ce364b0b895a8 EBUILD postgresql-docs-9.1.7.ebuild 1178 SHA256 454ac33b1dd8d2463b5660b7c9b9d3f2402c2f8327c3032c1887bc8e0faf8dc6 SHA512 6f7a2a3b8e2cf19863fd13e6cccf58c643bbff6670c8bbdc0b45c9371798e69a1fe8028bbb19605c2220a0d7564bb371f7e4fe493cf4ee7acd7c00447165651e WHIRLPOOL 923cef587f82b7be3125958eccb45b0767db99eb374494e0f1e82cc6f5d5795490ccd51553d118ab091727932a7269a9ab2d227b11bca3ac0e13fd40f9c7058c EBUILD postgresql-docs-9.2.1.ebuild 1479 SHA256 788b4d4b4bac98e9ac363e6f2c5cc4dad0bca403a33b508104c7f3598e1887cf SHA512 c118dd0f69ac9ba0c0519ea4613618567c0db660502a906b7414a6b9afd08aef1bb7bad1211709a864c195439a275ccc711ae2fdbc9a5186cd84a0871788566e WHIRLPOOL bfb5733bc5c28b71f485ebdd67747ad05e166d325715099831c1cb506155bfc04e22101c11a0b8a1674f232a2c69e6086a72639aaace44895bc775ef0acc1e90 +EBUILD postgresql-docs-9.2.2-r1.ebuild 1636 SHA256 b7779a58ac86d3b1fcb84f1ce5f47badf897aababe4a49aa787814f7f991c390 SHA512 541f2ea218779a055569c9bdae057db04fe389d28fe3ac3d448bd0f4ac463a522b6754d0dc966740d502d667c123f950ce8df8d75344eabfd84ae3905c6c8c34 WHIRLPOOL 5fbaf444f5b1f53196970ebb5144dc19788ea705d51fadb78170945bbf1631de6a1ba120835213c8e0300915b5408cd50a510f59ff89226fd339d0f53c572e3b EBUILD postgresql-docs-9.2.2.ebuild 1490 SHA256 2ebc9ec8d18d7a82c79e50684cb6b492a0e069bd1e131fcc01851f9e16ed3823 SHA512 33d496b9bea8a5596d72c01c033ccd920a343a706bf7c137008a650eaaf0ae254ef080e5f1301b0b69d08f49b08b0e8b20c00b4888f2df04fc1c547b32b8a2e1 WHIRLPOOL 85f4299f0b727ecb675879f0ebbbfd340c5a8f662ec0aa914907c71b5149dcfe9be3e6d552ed81597a9235f9e0a11b6aa038e453e8e1b6889aaae81ab3892862 -MISC ChangeLog 38862 SHA256 e920c2468fe241e8ad77737c78eaa939830de601b7b0c8e59c8a4dae13c9ffea SHA512 79f1c097c7a489f51149aaf335d1546d37d9bcead6b6283d9ec75ea06f9b26df5a44d9cccacd32d1c413374cfa09defde6d8386063225b84f9610c42745cab83 WHIRLPOOL 1f07e1d58d8eb084650c2aeda24ddada9fcc4a871c752ebf0d574587ff435b7a44bada9f55b98b03e74a847420cf483cf86de50913978780c8826e754a2c59ab +MISC ChangeLog 39324 SHA256 99fa6fe277afe5b830dfebc9033fad434198daab4afb2e9bbb157247604ed83d SHA512 5422dad616020bedf76517f3b9a26887e4989f21535523e58b32ddcb7d0730ce4a9b9177b63c8e64d943aab2def5f05b554d934383541ed8cf8f6c1fe1a6c5fb WHIRLPOOL 5b9713730cb06736b50d8089146d4a9d0c17ba113681587775a31fdce40d741ecaf64839e97388dc2ed25c23338f610eac0e7f61a36cd9b35d01febd1c1652b8 MISC metadata.xml 164 SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b SHA512 45b3f5ba6ebbeb2f990e5612b545bee41bb8c9f29e7f31de34021384760fcfc4694de0782fc0bdf556fe81ed3b334fc96c33563b0fddc2545484099a2cd76bb2 WHIRLPOOL 5fd1b0fc651f51ed3d1715cff87d86e7c0fe9c7825529069c7c3fed13641aee24bee1971b6e1057797b7b191ef0d50a1ea68c9f24588872d7d960787f9f02bfa +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iF4EAREIAAYFAlDxtD8ACgkQVxOqA9G7/aB5dAEAocasvOtcwK+406KGyfPWbnrJ +8t1/xlmg+BTxVTMkNFIA/0fwQknUHT++NDP+GKVybRt7oBNDmecwqN2G+o10e+qQ +=iXd9 +-----END PGP SIGNATURE----- diff --git a/dev-db/postgresql-server/ChangeLog b/dev-db/postgresql-server/ChangeLog index 0aa3d72b3c6b..c00c1fc987d1 100644 --- a/dev-db/postgresql-server/ChangeLog +++ b/dev-db/postgresql-server/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for dev-db/postgresql-server -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/ChangeLog,v 1.228 2012/12/10 06:05:22 patrick Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/ChangeLog,v 1.229 2013/01/12 19:10:13 titanofold Exp $ + +*postgresql-server-9.2.2-r1 (12 Jan 2013) +*postgresql-server-9.1.7-r1 (12 Jan 2013) +*postgresql-server-9.0.11-r1 (12 Jan 2013) +*postgresql-server-8.4.15-r1 (12 Jan 2013) +*postgresql-server-8.3.22-r1 (12 Jan 2013) + + 12 Jan 2013; Aaron W. Swenson <titanofold@gentoo.org> + +postgresql-server-8.3.22-r1.ebuild, +postgresql-server-8.4.15-r1.ebuild, + +postgresql-server-9.0.11-r1.ebuild, +postgresql-server-9.1.7-r1.ebuild, + +postgresql-server-9.2.2-r1.ebuild, postgresql-server-9999.ebuild: + Fixes bug 444214 *postgresql-server-8.4.15 (10 Dec 2012) *postgresql-server-9.2.2 (10 Dec 2012) diff --git a/dev-db/postgresql-server/Manifest b/dev-db/postgresql-server/Manifest index 1594333eaf50..f44a105f9f79 100644 --- a/dev-db/postgresql-server/Manifest +++ b/dev-db/postgresql-server/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + DIST postgresql-8.3.20.tar.bz2 14624435 SHA256 922b6165dc21739356e22ba4d53e08f3b26cd38d8fb9569d5f8fa6d239611163 SHA512 e709632db165f543e510334adfa191ecff6fbe5ae6726578cbb5e4858de62fda53e67b19171c302492361c580bf6894af84dc97ee81e1146a04aec2984d4f91f WHIRLPOOL beee4643d4c2212d9d49390bf1f3ff279f54f2d3c90743610ee59d7e8b93a1e61136654a1f5abe5d49a7826afdea8166ae047f7f2eb2f461c543bf3111f294d5 DIST postgresql-8.3.21.tar.bz2 14626010 SHA256 a64b6de9f8067b803f2ed46a025bfd2a16a5ae270db60e440a698f2c07e234f8 SHA512 6da6fab655412fb2cc59ba6228596d6d3caff1a0c6bbd574b61c807bc18941b8d3db6824ffb7da1ad78d89c61d4407402bdb0904bf7b60c49959f40cb2bf3191 WHIRLPOOL 1bb3afefa2610537a35d148ccf2b65d6fe2915774aa61e92afeaadb3c6e923bf1771be7a5828c8ac67d2a0dac94f8bad3330cb38fa2f3b6993ebe493998f11a0 DIST postgresql-8.3.22.tar.bz2 14630723 SHA256 17b8f3709c0442e25329e41743f980b10a3149940cee921c28e0bb5b51fef0c6 SHA512 bdcde0659062f5045c6596cd5bb7e90e7e99cf6316896d211c5125ce11f52f2ffdc911aa960556ef06c5fb62a5f2e6efc3555eca060df7eb8bebcdc805d73bee WHIRLPOOL 093dceec2b2c25af70048e7fc49b1f3741115f362777c0f1687745a50fa3cdfd8ddd6b42be0c256b413188e17dfeb977c41aab56f0f91f3010d491278e9b36c9 @@ -22,18 +25,30 @@ DIST postgresql-patches-9.2beta2.tbz2 4466 SHA256 7033657bf66255fda3881ee6797ad0 DIST postgresql-patches-9.2beta3.tbz2 4466 SHA256 7033657bf66255fda3881ee6797ad0aa920e1910619228206b174065e5e348d2 SHA512 64150e055aabe04e1a298170a992c607313299d3990c05ac4146c05e6bb2a55e29999d45cf29d7111df5fda0f135980665c4c6c6c83d3f1df26c27334daf17bb WHIRLPOOL f67a99b39e99ab26e8d1125886493b53a3589908433618e7601281735dee4d2e54fdaed84e4608961264723cf27284e9ead798087f9b896a5ada8bdc70c51f9d EBUILD postgresql-server-8.3.20.ebuild 11532 SHA256 474276253d356cecbc7ec413270180665755a905e8308bd84498ee77c7dd88f9 SHA512 779effa4e9451dc79aa108bca2922472452f98a3219107c5d1f8fc9b4a43cdbc3317d223bbb0a599f409993d5675d0e2090d0c3b7e07cca01e63cd435f528ca1 WHIRLPOOL 40f32112022f9ac4529ffdf770c540e0c746cd1b948ab4fc773f2f6606836fed9c97e3d4901f876c49020a7cde7c6574e20badde82434ddb6234b8b9ca74a99b EBUILD postgresql-server-8.3.21.ebuild 11531 SHA256 7392cd31b92878902d487c2077033d0583c05f583229fc48d867f5bfb6cbc0f5 SHA512 92be3f3231a6cd982b76d336eed0f4e794d974310e0931543d7d2f12dfa3e4c180d84ea2c20cf71c8fa0da8dc61e75777dd6f85dc169ff911b5eec0b30a70dd8 WHIRLPOOL 8fea89ff33ba87382c112f135d7a9ee31409360a87637d4f1631da4e9576991b56b4e5c4e9aa746e35b1065e38c0bd6d1e1cc61f3a946262dc1b27309359f7ba +EBUILD postgresql-server-8.3.22-r1.ebuild 11779 SHA256 8f8300ba17e24ff0a9113092db582c1c4d3ba569b3d9c6f49d8e51df53113527 SHA512 e575ebc09c3a8207c888410758be10e4a4eb9d6e8796a455388dc7a940b70a4c0fe9697bd5f523d3be3fe83264016660e343fd916968c7efba1ec5a4d5435c5f WHIRLPOOL 9832459faae09b269f72d838658eed0921cd89077741a9999aa4d1c2e2ebf6ae555cc2643b47acad58880c2e2ba8d756a7cb41e3170f4a008b9c86328bdbac36 EBUILD postgresql-server-8.3.22.ebuild 11542 SHA256 d8952b899d3a33e26f348245d66b23922bb5b84e29881ba1cc0199748161bc82 SHA512 c9f5d50fa8620588adcdefd2af2c502a23a29ff04089fa6fec365f3db4290918e80885e3acce70ab164c00381f16c5918155585d151e9c06ff0de1435d53807d WHIRLPOOL ed745d978e9cf04203041e28c91a58fc176d3ce5eee7ac04b5644710bbb4fb1d2477d4e3ae883f6f6d78303c00e1bc9afa3ae2c77bc96cf8c4048cb4c86389ea EBUILD postgresql-server-8.4.13.ebuild 11827 SHA256 258a524a034f10b1eefa7261652a89eecab08a500ff3cca2de0479ba2c1c8de7 SHA512 41e45ed282c52927188a437d5ea043d9a3a14af60f836a2d66d6d0eb7e96c6068dfe26329466f420e863b84c8b30de18ae46966a70b6cecda076105a67cb0f02 WHIRLPOOL 889c43408e8dd5d3897a25dca67db9950652a9a04d84760a819d21fb3c3d36d25401935309358aa2141d3e6c2079f7773a5ab159b41e84045d351737aff1df8b EBUILD postgresql-server-8.4.14.ebuild 11826 SHA256 6f900aee64e3740c4e2b3871f053afc80acad9c40d9d8b05534af75345fc3c96 SHA512 21632b971d06f8fd4de34723b7985ba3ef1d610baa02008beada44550c9e1079331df122d63364e01da7df73273461dcc4511a65fb8d5b921e1851b36c2b3f81 WHIRLPOOL 6cc616f48c3183847257475af1bdda9f72646b5ae5297ec65d7f5fad1cf2ad4a3288d7705fcfa8502797864a960a6d66e1c5e923726a8bba45e8041b9a0e2ada +EBUILD postgresql-server-8.4.15-r1.ebuild 11787 SHA256 24bc150caeb6f7fdf2ef0a8730730b1daebeb2a2941f71adef4add0c0e46a6b8 SHA512 3eb809f96da6da50663bec24aec73b1eb5535d05736b459f4f8ed00d4eaf1cac2f29b75504aec622b0310a9ae886552a52471368d4597aa3095c0793fc0a6aae WHIRLPOOL 27b1ee7b133027a2e373b1688cf72062902b4473812da70271b81f755ed152328c8fcb17d9a58a16c0e76fb5548f581e664caba6450b0adfa7881c9f289075c0 EBUILD postgresql-server-8.4.15.ebuild 11837 SHA256 f894f1fc1064351d6e28d65e79a4113d42817dcf5f6e5013cd3a65c2b9b8a335 SHA512 42406e1fc2fea1c5070fcdcd0c21a5ad70f6c7e48b543a651c1508bfb6732c227ec4773348fe3b2b257a5c9cab862b6dd1de3f875128952ef52aa1dc72613302 WHIRLPOOL ab1afb07fc17b59e2127b7d565e37ec41057b8c785c0ca2a70042e705f4a16be32480ef3feb2537376eeb25e3ba2fd0d8b3105aedae388802f2c9604a9dfcaa0 EBUILD postgresql-server-9.0.10.ebuild 11427 SHA256 1c90ac306729af85489afb1eaef05579119b14040c797eb37b1a53445fe2a3c0 SHA512 817c7b136fd5ebede24d128ea5436eb694d80c5cc96950ffe366ed22068287d56e2c07a6f94fe236caac86e43ad2815232421b8edc0c04bd1a6e56a38b83f63d WHIRLPOOL 688ccbd4d74c6a64b17932b9e0e1bbccf5c9af10bf6d97c7295c295def8624304aa620b9eddc61f06c59b5105c65e9d7b6da510c0512c67fe1b18a002387924a +EBUILD postgresql-server-9.0.11-r1.ebuild 11675 SHA256 21d50c089246b073b140725c27f546aa8a4df070343f02b617240f626f4e1956 SHA512 16ff7d5279bd65c6daf6725bda8122cc9c81363f7e8742edc06bd1b535b630a64300b051e5ab062ffda994f9f9a859b1687a3567527cff112d9dc0f0bdf02ba4 WHIRLPOOL 403db535a35b049af4aac52f1086e310c4c1b7851b381efb7088a2f6df65c3fc42d2d2b5aabfc117044056cfd549839241b8d67a6d8abb7747447d08c77568df EBUILD postgresql-server-9.0.11.ebuild 11438 SHA256 622916831f123bf99f4052106d8a441f892d20b90c9a78153987e5fb792c61d5 SHA512 bcdb33fd8dd36cc922d2127d29cde668c65c094e7f8c2a90978557f8070012f7439d7a99c948b5f627a4686d092914585664efd6caa0ac48ba8df2fa43911f41 WHIRLPOOL a924dd04c37036e14fc6c1e268130d1b678405838384a847c767c73f0091458afa21288814bcf1290c5e4d4c5a328b2a8789cd857766737d427b977d29b774fb EBUILD postgresql-server-9.0.9.ebuild 11427 SHA256 13713210db51f05bb9bcbe6cbfee9b6bb45e23664106273ea9c28b029237b071 SHA512 6260aee417ec01c40de85316e28b472d31c9a3fd7e344eef0ce0a45b7b0be35882cfd7a8660db49444439d758900c69dadd2d4545cdc00d43fdadc405514bd83 WHIRLPOOL d6d67db479c480cdd0dd9d59309ec16fab1a81beacbd0c7d0f67f9abaa7b9771b8a9a5711f87cd0b58fc69fa546f7805381f37060388c54c39f501ac4a125bfa EBUILD postgresql-server-9.1.5.ebuild 11456 SHA256 284b1ed957661d5115574e0722ad05171e4ffdbf4df12b135428ca191848ac0b SHA512 ffbc1174e8de5ba081dfc0d63cc2e7bc30e298dedb9c8edfa01e218f15d9987af9399a0ac3b7c6f10aa04f799faa433f84028dc69c92cdeb890aa4d89cde5a93 WHIRLPOOL 11b99e401a8844018cc46344143233fa7637dcb7ae72ec9c718fc826494e26698892a97fdd2ebaad93bdb4108bd378c5bd35ef6ec8052b494903eab46603492e EBUILD postgresql-server-9.1.6.ebuild 11455 SHA256 2fffc8acb31fc7d37f50946747abdd5ecd21013e861df25b8be61630cc4494ac SHA512 0d68c9eb82bf2fb6778618d6e386eddcf69169e5e567585619d7f397937e21fa4386bf328c57df21a24df3f2c7c22e1efda3f5dfcd59375ac340b48777aabaf1 WHIRLPOOL 572370f4a3ea3134565af9a942fc3f920081b1516b10e9a5c8bbac347e4648a279cbe24f7864169e1605c7b6fa8cc3b98b0e261a9dada0a0a308b99af600ba95 +EBUILD postgresql-server-9.1.7-r1.ebuild 11425 SHA256 8b71b6ba1028db2126f6b961ce78d11b87b8ece2c23e6e1f5bdd76b613a1ba2b SHA512 744e03db487feb9a4d5c8a4f55ae794a2115147f99edb0b8ba33bb2862c1ef4c01f937bdbfc6aa22460861db860edcf224b6e2696143be86d2d4ea9869e75178 WHIRLPOOL a7d10e803c5f3dcc0bb71dfa05cd6b8b6f0a9717d3542398702328daf42067921bfad6b526e10dc854811acde44b4f648e907a8b7073a2c7ba2989fdcca6af4f EBUILD postgresql-server-9.1.7.ebuild 11466 SHA256 a34ca06d5121bdcee6a29d3708166eb949c9536d6edea2c2afcc66423dcd8771 SHA512 18754da8e4d18f5fae1dd145b3c4cc8ce2b0782a6784480efdf5c4a1d875721f287395d4446881cfe7b96948f2c4dd0553299d4d0d7db7441b1e37bed9ed672b WHIRLPOOL eb4238462588edeb2a943e3ca7a954ce82d275e7b43b9e68bd026e44f642c660edb42c7d4ce0534f884e699f5608a85577a5a4044febec743eb396923c6d8fa5 EBUILD postgresql-server-9.2.1.ebuild 11871 SHA256 ea6a18aa17b463da03083e85d14eed82278e944e89a49bd90bd11bb3bd470f34 SHA512 7c04423f6454905dec67f9969c1e6c7d8c7d686d290fad1d4ef3029a8aefd9ceda7adba35228f8c80c7f21924d027d5267dcd6dc950b0a8a797f745929aa25e9 WHIRLPOOL 70d30b419e9f761c8757886d4a684c356cfb8386dc8fddf7f41d29bababc39828305e029a4d3ddf1abc5089ab5a3a79b2be55736886962c6267aa5c6bce7892c +EBUILD postgresql-server-9.2.2-r1.ebuild 11841 SHA256 f2d2cb696e1f6b9c93e6b0a4340ccb86c01da7238b48ff4a1ec80804ef5b465c SHA512 71e1b6c296d4206fd405b577c18c5dda4d74bd848aa465175f014d92506076db81d07b1ef798d536093f4272a17b8541277546eaf009429ef038f45b85815792 WHIRLPOOL 6a8b0d466fea60733db08491b47e3d923ecb705f1e849ec0643ec5a7634e0efaec9e3e2be39f9c72b47efb49e6c8c8584af6a3187df71b1508f8c117aa0532b5 EBUILD postgresql-server-9.2.2.ebuild 11882 SHA256 14ad7a3e8b6333341e9cc3218413f2d1f6e06f206c06da3dcd81e0858abc9f3d SHA512 8c5a75d11241e2fa16f557199f8fba077de9e6d8352f3714546f05763928b19a5192c048f21e4c4ef5cc600346d86f0ba2496a7ce95508ebd68008877f3d052c WHIRLPOOL 097da515a8987b6a318fa37dc0336d031b4e34b4d711e3a0b333746d609e7c4679c20c6ac924e51614b95fda9cbc7c6068f2672036895f057b5278606502af54 -EBUILD postgresql-server-9999.ebuild 11992 SHA256 cc87a091d8987d38c77f16301c79d0deacaf65e4c152bb08d24ff35af68923df SHA512 a2e2ae2c73c71540a840b17a2ad4e0c5a1a1a492736ce60e91d749cd951c2f0fc1cc5221c5ee195f9102374e3dc95760ba6939f2aaa97f0cd2b67a73f28b8165 WHIRLPOOL 36f4adf2a5cc1f2965983272a5beffcc2699c406956cb1514b78303520fbb94d457962e0ff6c9ae4e6fbade94281fbaa02ebcb6267654321901fd00db8bb6bbb -MISC ChangeLog 65804 SHA256 c742658ccc015170733aa0e5cda616b2b11d0cdf74c579a009c817931bcf3fbd SHA512 0bcf06996281e38b29a1fccbe5356dcbbf4f297f35c02ea1a9e5b6fb4a6b31ad55edff294d4799f245b0bb5194bd28c04c9bfbef6b2a9cc5325b3ceec399ecd4 WHIRLPOOL a207994ea5945f3a499b9c330ebca988ea568fa57cb737c1aef0540557a72200b44b1c0fe5487246afb831b8e2a6b36ca00c556724ced2fce88ef79090e83b83 +EBUILD postgresql-server-9999.ebuild 11953 SHA256 fcd96bc3ffba8594a16524e1c2344232bb612c6b1c88fe26a8081bd91c73e32c SHA512 1efd597795586f19eb2d27599b2f763d30f35a710675838b5294b72f5a98f5a3fd8aeaf36ad2e4fb14e7d71a6842b25730d429cabc8a0064710c7546a6b2f638 WHIRLPOOL 62a71ce4f11bd44daadebbf8acfe52e75f8fe5549316328a9c756694959f3bbe54941f3bcd4013a6553e14a6ec1b219024f93a6269b3e47da1e4ab0500a8a9ac +MISC ChangeLog 66317 SHA256 305b42db222656fde3a840c3fa7a4a75047a6c92099e835e84a9f820b18d8f2a SHA512 3609c89a5d44bfad2ee7162368005497cfcb31b005d92b12b39d3f5a2fb84ae500df47b40988cf7021be875f7feea5ff05a6fccc44471253a0c7697a87422866 WHIRLPOOL 1fe0b1cd5b19c82fc38e51a3714f4307b2d0783a02b3eb8ef0096881f30c76c6aae186003e3cc85b61a2a010256bf091ebbbc6bfc43fd898b694015dd978076e MISC metadata.xml 420 SHA256 ac37a5084450a782d02510149d030bd0d4a63164f2ffb7bdda3ddf344606ca62 SHA512 1731bced1ac398d90c6aca6ec209a9ea42deb0f7033d49952a6216349aeb992479c3e868b33cc1be2434cdead6185026503a58e779965455d0198edd87bf5b4c WHIRLPOOL 3bbd5598492cb7d90f4199fac80f27bcba281e1188f7f1d40ee3dd1561e530de13de109142f0add7221b49ec3a9c6a0bdb3add1446b1cc5a6cb3909fd193d19b +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iF4EAREIAAYFAlDxtRwACgkQVxOqA9G7/aBGzgD+Ob5BvHmPpXRnoG+Zp9hkVzHS +EIOfpCx+MsOALwQJkYgBAIGag/hJuQElugYfxKtHprS8Ol7LLTpDo4RshXBBeWTH +=r0b9 +-----END PGP SIGNATURE----- diff --git a/dev-db/postgresql-server/postgresql-server-8.3.22-r1.ebuild b/dev-db/postgresql-server/postgresql-server-8.3.22-r1.ebuild new file mode 100644 index 000000000000..ad6c9304b0dc --- /dev/null +++ b/dev-db/postgresql-server/postgresql-server-8.3.22-r1.ebuild @@ -0,0 +1,348 @@ +# Copyright 1999-2013 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.3.22-r1.ebuild,v 1.1 2013/01/12 19:10:13 titanofold Exp $ + +EAPI="4" + +WANT_AUTOMAKE="none" +inherit autotools eutils multilib pam prefix user versionator + +SLOT="$(get_version_component_range 1-2)" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" + +DESCRIPTION="PostgreSQL server" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2 + http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" +LICENSE="POSTGRESQL GPL-2" + +S="${WORKDIR}/postgresql-${PV}" + +LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" +IUSE="doc kernel_linux nls pam perl python selinux tcl uuid xml" + +for lingua in ${LINGUAS} ; do + IUSE+=" linguas_${lingua}" +done + +wanted_languages() { + local enable_langs + + for lingua in ${LINGUAS} ; do + use linguas_${lingua} && enable_langs+="${lingua} " + done + + echo -n ${enable_langs} +} + +RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,nls=] + perl? ( >=dev-lang/perl-5.8 ) + selinux? ( sec-policy/selinux-postgresql ) + tcl? ( >=dev-lang/tcl-8 ) + uuid? ( dev-libs/ossp-uuid ) + xml? ( dev-libs/libxml2 dev-libs/libxslt )" + +DEPEND="${RDEPEND} + sys-devel/flex + xml? ( virtual/pkgconfig )" + +PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" + +# Support /var/run or /run for the socket directory +[[ ! -d /run ]] && RUNDIR=/var + +pkg_setup() { + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres +} + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" \ + "${WORKDIR}/bool.patch" \ + "${WORKDIR}/darwin.patch" \ + "${WORKDIR}/pg_ctl-exit-status.patch" \ + "${WORKDIR}/server.patch" \ + "${WORKDIR}/SuperH.patch" + + eprefixify src/include/pg_config_manual.h + + if use test ; then + epatch "${WORKDIR}/regress.patch" + sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c + sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ + -i src/test/regress/{input,output}/tablespace.source + else + echo "all install:" > "${S}/src/test/regress/GNUmakefile" + fi + + sed -e "s|@RUNDIR@|${RUNDIR}|g" \ + -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ + die "RUNDIR sed failed" + sed -e "s|@SLOT@|${SLOT}|g" \ + -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ + die "SLOT sed failed" + + eautoconf +} + +src_configure() { + # eval is needed to get along with pg_config quotation of space-rich entities. + eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ + --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ + --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ + $(use_with perl) \ + $(use_with python) \ + $(use_with tcl) \ + $(use_with xml libxml) \ + $(use_with xml libxslt) \ + $(use_with uuid ossp-uuid) \ + "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" +} + +src_compile() { + local bd + for bd in . contrib $(use xml && echo contrib/xml2); do + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ + emake -C $bd -j1 \ + PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ + PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \ + NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF} + 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 + + local bd + for bd in . contrib $(use xml && echo contrib/xml2) ; do + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ + emake install -C $bd -j1 DESTDIR="${D}" \ + PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \ + PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ + NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF} + done + + rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" \ + "${ED}/usr/share/doc/${PF}/html" + rm "${ED}"/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 + docompress /usr/share/postgresql-${SLOT}/man/man1 + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ + > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" + + newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} + newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} + + use pam && pamd_mimic system-auth postgresql auth account session + + if use prefix ; then + keepdir ${RUNDIR}/run/postgresql + fperms 0770 ${RUNDIR}/run/postgresql + fi +} + +pkg_postinst() { + postgresql-config update + + elog "Gentoo specific documentation:" + elog "http://www.gentoo.org/doc/en/postgres-howto.xml" + elog + elog "Official documentation:" + elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" + elog + elog "The default location of the Unix-domain socket is:" + elog " ${EROOT%/}${RUNDIR}/run/postgresql/" + elog + elog "If you have users and/or services that you would like to utilize the" + elog "socket, you must add them to the 'postgres' system group:" + elog " usermod -a -G postgres <user>" + elog + elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" + elog "so that it contains your preferred locale in:" + elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + elog + elog "Then, execute the following command to setup the initial database" + elog "environment:" + elog " emerge --config =${CATEGORY}/${PF}" +} + +pkg_prerm() { + if [[ -z ${REPLACED_BY_VERSION} ]] ; then + ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" + ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" + + ebegin "Resuming removal 10 seconds. Control-C to cancel" + sleep 10 + eend 0 + fi +} + +pkg_postrm() { + postgresql-config update +} + +pkg_config() { + [[ -f ${EROOT%/}/etc/conf.d/postgresql-${SLOT} ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + [[ -z ${PGDATA} ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" + [[ -z ${DATA_DIR} ]] && DATA_DIR="${EROOT%/}/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 ${EROOT%/}/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 ${EROOT%/}/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 modify the paths and options passed to initdb by editing:" + einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + einfo + einfo "Information on options that can be passed to initdb are found at:" + einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" + einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" + einfo + einfo "PG_INITDB_OPTS is currently set to:" + if [[ -z ${PG_INITDB_OPTS} ]] ; then + einfo " (none)" + else + einfo " ${PG_INITDB_OPTS}" + fi + einfo + einfo "Configuration files will be installed to:" + einfo " ${PGDATA}" + einfo + einfo "The database cluster will be created in:" + einfo " ${DATA_DIR}" + einfo + while [[ $correct != "true" ]] ; do + einfo "Are you ready to continue? (y/n)" + read answer + if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then + correct="true" + elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then + die "Aborting initialization." + else + echo "Answer not recognized." + fi + done + + if [[ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ]] ; then + eerror "The given directory, '${DATA_DIR}', is not empty." + eerror "Modify DATA_DIR to point to an empty directory." + die "${DATA_DIR} is not empty." + fi + + [[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128 + einfo "Checking system parameters..." + + if ! use kernel_linux ; then + einfo "Skipped." + einfo "Tests not supported on this OS (yet)." + else + if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then + ebegin "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" + eerror " 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 + eend + else + ewarn "SKIP_SYSTEM_TESTS is set, so skipping." + fi + fi + + if [[ ${EUID} == 0 ]] ; then + einfo "Creating the data directory ..." + mkdir -p "${DATA_DIR}" + chown -Rf postgres:postgres "${DATA_DIR}" + chmod 0700 "${DATA_DIR}" + fi + + einfo "Initializing the database ..." + if [[ ${EUID} == 0 ]] ; then + su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" + else + "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} + fi + mv "${DATA_DIR%/}"/*.conf "${PGDATA}" + + einfo "The autovacuum function, which was in contrib, has been moved to the main" + einfo "PostgreSQL functions starting with 8.1. You can enable it in the clusters" + einfo "postgresql.conf." + einfo + if use prefix ; then + einfo "The location of the configuration files have moved to:" + einfo " ${PGDATA}" + einfo + einfo "To start the server:" + einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" + einfo + einfo "To stop:" + einfo " pg_ctl stop -D ${DATA_DIR}" + einfo + einfo "Or move the configuration files back:" + einfo " mv ${PGDATA}*.conf ${DATA_DIR}" + else + einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" + einfo "instead of 'pg_ctl'." + fi +} + +src_test() { + einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" + + if [[ ${UID} != 0 ]] ; then + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/:${PATH}" \ + emake check \ + PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ + NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} + + einfo "If you think other tests besides the regression tests are necessary, please" + einfo "submit a bug including a patch for this ebuild to enable them." + else + ewarn "Tests cannot be run as root. Skipping." + ewarn "HINT: FEATURES=\"userpriv\"" + fi +} diff --git a/dev-db/postgresql-server/postgresql-server-8.4.15-r1.ebuild b/dev-db/postgresql-server/postgresql-server-8.4.15-r1.ebuild new file mode 100644 index 000000000000..cc86ac56ece7 --- /dev/null +++ b/dev-db/postgresql-server/postgresql-server-8.4.15-r1.ebuild @@ -0,0 +1,346 @@ +# Copyright 1999-2013 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.4.15-r1.ebuild,v 1.1 2013/01/12 19:10:13 titanofold Exp $ + +EAPI="4" +PYTHON_DEPEND="python? 2" + +WANT_AUTOMAKE="none" +inherit autotools eutils multilib pam prefix python user versionator + +SLOT="$(get_version_component_range 1-2)" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" + +DESCRIPTION="PostgreSQL server" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2 + http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" +LICENSE="POSTGRESQL GPL-2" + +S="${WORKDIR}/postgresql-${PV}" + +LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" +IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" + +for lingua in ${LINGUAS} ; do + IUSE+=" linguas_${lingua}" +done + +wanted_languages() { + local enable_langs + + for lingua in ${LINGUAS} ; do + use linguas_${lingua} && enable_langs+="${lingua} " + done + + echo -n ${enable_langs} +} + +RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] + perl? ( >=dev-lang/perl-5.8 ) + selinux? ( sec-policy/selinux-postgresql ) + tcl? ( >=dev-lang/tcl-8 ) + uuid? ( dev-libs/ossp-uuid ) + xml? ( dev-libs/libxml2 dev-libs/libxslt )" + +DEPEND="${RDEPEND} + sys-devel/flex + xml? ( virtual/pkgconfig )" + +PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" + +# Support /var/run or /run for the socket directory +[[ ! -d /run ]] && RUNDIR=/var + +pkg_setup() { + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres + + use python && python_set_active_version 2 +} + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" \ + "${WORKDIR}/bool.patch" \ + "${WORKDIR}/darwin.patch" \ + "${WORKDIR}/ldflags.patch" \ + "${WORKDIR}/pg_ctl-exit-status.patch" \ + "${WORKDIR}/server.patch" \ + "${WORKDIR}/SuperH.patch" + + eprefixify src/include/pg_config_manual.h + + if use test ; then + epatch "${WORKDIR}/regress.patch" + sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c + sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ + -i src/test/regress/{input,output}/tablespace.source + else + echo "all install:" > "${S}/src/test/regress/GNUmakefile" + fi + + sed -e "s|@RUNDIR@|${RUNDIR}|g" \ + -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ + die "RUNDIR sed failed" + sed -e "s|@SLOT@|${SLOT}|g" \ + -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ + die "SLOT sed failed" + + eautoconf +} + +src_configure() { + # eval is needed to get along with pg_config quotation of space-rich entities. + eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ + --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ + --with-libraries="${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ + --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ + $(use_with perl) \ + $(use_with python) \ + $(use_with tcl) \ + $(use_with xml libxml) \ + $(use_with xml libxslt) \ + $(use_with uuid ossp-uuid) \ + "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" +} + +src_compile() { + local bd + for bd in . contrib $(use xml && echo contrib/xml2) ; do + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ + emake -C $bd -j1 || 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 + + local bd + for bd in . contrib $(use xml && echo contrib/xml2) ; do + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ + emake install -C $bd -j1 DESTDIR="${D}" \ + || die "emake install in $bd failed" + done + + rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" \ + "${ED}/usr/share/doc/postgresql-${SLOT}/html" + rm "${ED}"/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 + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ + > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" + + newconfd "${WORKDIR}"/postgresql.confd postgresql-${SLOT} \ + || die "Inserting conf.d file failed" + + newinitd "${WORKDIR}"/postgresql.init postgresql-${SLOT} \ + || die "Inserting init.d file failed" + + use pam && pamd_mimic system-auth postgresql auth account session + + if use prefix ; then + keepdir ${RUNDIR}/run/postgresql + fperms 0770 ${RUNDIR}/run/postgresql + fi +} + +pkg_postinst() { + postgresql-config update + + elog "The time stamp format is 64 bit integers now. If you upgrade from older" + elog "databases, this may force you to either do a dump and reload of enable" + elog "pg_legacytimestamp until you find time to do so. If the database can't start" + elog "please try enabling pg_legacytimestamp and rebuild." + elog + elog "Gentoo specific documentation:" + elog "http://www.gentoo.org/doc/en/postgres-howto.xml" + elog + elog "Official documentation:" + elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" + elog + elog "The default location of the Unix-domain socket is:" + elog " ${EROOT%/}${RUNDIR}/run/postgresql/" + elog + elog "If you have users and/or services that you would like to utilize the" + elog "socket, you must add them to the 'postgres' system group:" + elog " usermod -a -G postgres <user>" + elog + elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" + elog "so that it contains your preferred locale in:" + elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + elog + elog "Then, execute the following command to setup the initial database" + elog "environment:" + elog " emerge --config =${CATEGORY}/${PF}" +} + +pkg_postrm() { + postgresql-config update +} + +pkg_config() { + [[ -f ${EROOT%/}/etc/conf.d/postgresql-${SLOT} ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + [[ -z ${PGDATA} ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" + [[ -z ${DATA_DIR} ]] && DATA_DIR="${EROOT%/}/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 ${EROOT%/}/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 "${EROOT%/}/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 modify the paths and options passed to initdb by editing:" + einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + einfo + einfo "Information on options that can be passed to initdb are found at:" + einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" + einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" + einfo + einfo "PG_INITDB_OPTS is currently set to:" + if [[ -z ${PG_INITDB_OPTS} ]] ; then + einfo " (none)" + else + einfo " ${PG_INITDB_OPTS}" + fi + einfo + einfo "Configuration files will be installed to:" + einfo " ${PGDATA}" + einfo + einfo "The database cluster will be created in:" + einfo " ${DATA_DIR}" + einfo + while [[ $correct != "true" ]] ; do + einfo "Are you ready to continue? (y/n)" + read answer + if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then + correct="true" + elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then + die "Aborting initialization." + else + echo "Answer not recognized" + fi + done + + if [[ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ]] ; then + eerror "The given directory, '${DATA_DIR}', is not empty." + eerror "Modify DATA_DIR to point to an empty directory." + die "${DATA_DIR} is not empty." + fi + + [[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128 + einfo "Checking system parameters..." + + if ! use kernel_linux ; then + einfo "Skipped." + einfo " Tests not supported on this OS (yet)" + else + 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" + eerror " 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 + ewarn "SKIP_SYSTEM_TESTS set, so skipping." + fi + fi + + if [[ ${EUID} == 0 ]] ; then + einfo "Creating the data directory ..." + mkdir -p "${DATA_DIR}" + chown -Rf postgres:postgres "${DATA_DIR}" + chmod 0700 "${DATA_DIR}" + fi + + einfo "Initializing the database ..." + if [[ ${EUID} == 0 ]] ; then + su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" + else + "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} + fi + mv "${DATA_DIR%/}"/*.conf "${PGDATA}" + + einfo "The autovacuum function, which was in contrib, has been moved to the main" + einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled by" + einfo "default. You can disable it in the cluster's:" + einfo " ${PGDATA%/}/postgresql.conf" + einfo + einfo "The PostgreSQL server, by default, will log events to:" + einfo " ${DATA_DIR%/}/postmaster.log" + einfo + if use prefix ; then + einfo "The location of the configuration files have moved to:" + einfo " ${PGDATA}" + einfo + einfo "To start the server:" + einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" + einfo + einfo "To stop:" + einfo " pg_ctl stop -D ${DATA_DIR}" + einfo + einfo "Or move the configuration files back:" + einfo " mv ${PGDATA}*.conf ${DATA_DIR}" + else + einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" + einfo "instead of 'pg_ctl'." + fi +} + +src_test() { + einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" + + if [[ ${UID} != 0 ]] ; then + emake check || die "Make check failed. See above for details." + + einfo "If you think other tests besides the regression tests are necessary, please" + einfo "submit a bug including a patch for this ebuild to enable them." + else + ewarn "Tests cannot be run as root. Skipping." + ewarn "HINT: FEATURES=\"userpriv\"" + fi +} diff --git a/dev-db/postgresql-server/postgresql-server-9.0.11-r1.ebuild b/dev-db/postgresql-server/postgresql-server-9.0.11-r1.ebuild new file mode 100644 index 000000000000..99eb533c834c --- /dev/null +++ b/dev-db/postgresql-server/postgresql-server-9.0.11-r1.ebuild @@ -0,0 +1,351 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.0.11-r1.ebuild,v 1.1 2013/01/12 19:10:13 titanofold Exp $ + +EAPI="4" +PYTHON_DEPEND="python? 2" + +WANT_AUTOMAKE="none" +inherit autotools eutils multilib pam prefix python user versionator + +SLOT="$(get_version_component_range 1-2)" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~ppc-macos ~x86-solaris" + +DESCRIPTION="PostgreSQL server" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2 + http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" +LICENSE="POSTGRESQL GPL-2" + +S="${WORKDIR}/postgresql-${PV}" + +LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" +IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" + +for lingua in ${LINGUAS}; do + IUSE+=" linguas_${lingua}" +done + +wanted_languages() { + local enable_langs + + for lingua in ${LINGUAS} ; do + use linguas_${lingua} && enable_langs+="${lingua} " + done + + echo -n ${enable_langs} +} + +RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] + perl? ( >=dev-lang/perl-5.8 ) + selinux? ( sec-policy/selinux-postgresql ) + tcl? ( >=dev-lang/tcl-8 ) + uuid? ( dev-libs/ossp-uuid ) + xml? ( dev-libs/libxml2 dev-libs/libxslt )" + +DEPEND="${RDEPEND} + sys-devel/flex + xml? ( virtual/pkgconfig )" + +PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" + +# Support /var/run or /run for the socket directory +[[ ! -d /run ]] && RUNDIR=/var + +pkg_setup() { + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres + + use python && python_set_active_version 2 +} + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" \ + "${WORKDIR}/bool.patch" \ + "${WORKDIR}/pg_ctl-exit-status.patch" \ + "${WORKDIR}/server.patch" + + eprefixify src/include/pg_config_manual.h + + if use test ; then + epatch "${WORKDIR}/regress.patch" + sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c + sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ + -i src/test/regress/{input,output}/tablespace.source + else + echo "all install:" > "${S}/src/test/regress/GNUmakefile" + fi + + sed -e "s|@RUNDIR@|${RUNDIR}|g" \ + -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ + die "RUNDIR sed failed" + sed -e "s|@SLOT@|${SLOT}|g" \ + -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ + die "SLOT sed failed" + + eautoconf +} + +src_configure() { + # eval is needed to get along with pg_config quotation of space-rich entities. + eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ + --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ + --with-libraries="${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ + --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ + $(use_with perl) \ + $(use_with python) \ + $(use_with tcl) \ + $(use_with xml libxml) \ + $(use_with xml libxslt) \ + $(use_with uuid ossp-uuid) \ + "$(use_enable nls nls "$(wanted_languages)")" +} + +src_compile() { + local bd + for bd in . contrib $(use xml && echo contrib/xml2); do + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ + emake -C $bd -j1 || 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 + + local bd + for bd in . contrib $(use xml && echo contrib/xml2) ; do + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ + emake install -C $bd -j1 DESTDIR="${D}" || die "emake install in $bd failed" + done + + dodir /usr/share/postgresql-${SLOT}/man/man1/ + cp "${S}"/doc/src/sgml/man1/{initdb,pg_controldata,pg_ctl,pg_resetxlog,post{gres,master}}.1 \ + "${ED}"/usr/share/postgresql-${SLOT}/man/man1/ || die + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ + > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" + + newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} \ + || die "Inserting conf.d file failed" + + newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} \ + || die "Inserting init.d file failed" + + use pam && pamd_mimic system-auth postgresql auth account session + + if use prefix ; then + keepdir ${RUNDIR}/run/postgresql + fperms 0770 ${RUNDIR}/run/postgresql + fi +} + +pkg_postinst() { + postgresql-config update + + elog "Gentoo specific documentation:" + elog "http://www.gentoo.org/doc/en/postgres-howto.xml" + elog + elog "Official documentation:" + elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" + elog + elog "The default location of the Unix-domain socket is:" + elog " ${EROOT%/}${RUNDIR}/run/postgresql/" + elog + elog "If you have users and/or services that you would like to utilize the" + elog "socket, you must add them to the 'postgres' system group:" + elog " usermod -a -G postgres <user>" + elog + elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" + elog "so that it contains your preferred locale in:" + elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + elog + elog "Then, execute the following command to setup the initial database" + elog "environment:" + elog " emerge --config =${CATEGORY}/${PF}" +} + +pkg_prerm() { + if [[ -z ${REPLACED_BY_VERSION} ]] ; then + ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" + ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" + + ebegin "Resuming removal 10 seconds. Control-C to cancel" + sleep 10 + eend 0 + fi +} + +pkg_postrm() { + postgresql-config update +} + +pkg_config() { + [[ -f ${EROOT%/}/etc/conf.d/postgresql-${SLOT} ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + [[ -z ${PGDATA} ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" + [[ -z ${DATA_DIR} ]] && DATA_DIR="${EROOT%/}/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 ${EROOT%/}/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 "${EROOT%/}/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 modify the paths and options passed to initdb by editing:" + einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + einfo + einfo "Information on options that can be passed to initdb are found at:" + einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" + einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" + einfo + einfo "PG_INITDB_OPTS is currently set to:" + if [[ -z "${PG_INITDB_OPTS}" ]] ; then + einfo " (none)" + else + einfo " ${PG_INITDB_OPTS}" + fi + einfo + einfo "Configuration files will be installed to:" + einfo " ${PGDATA}" + einfo + einfo "The database cluster will be created in:" + einfo " ${DATA_DIR}" + einfo + while [[ $correct != "true" ]] ; do + einfo "Are you ready to continue? (y/n)" + read answer + if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then + correct="true" + elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then + die "Aborting initialization." + else + echo "Answer not recognized" + fi + done + + if [[ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ]] ; then + eerror "The given directory, '${DATA_DIR}', is not empty." + eerror "Modify DATA_DIR to point to an empty directory." + die "${DATA_DIR} is not empty." + fi + + [[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128 + einfo "Checking system parameters..." + + if ! use kernel_linux ; then + einfo "Skipped." + einfo " Tests not supported on this OS (yet)" + else + 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" + eerror " 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 + ewarn "SKIP_SYSTEM_TESTS set, so skipping." + fi + fi + + if [[ ${EUID} == 0 ]] ; then + einfo "Creating the data directory ..." + mkdir -p "${DATA_DIR}" + chown -Rf postgres:postgres "${DATA_DIR}" + chmod 0700 "${DATA_DIR}" + fi + + einfo "Initializing the database ..." + + if [[ ${EUID} == 0 ]] ; then + su postgres \ + -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D '${DATA_DIR}' -L '${EROOT%/}/usr/share/postgresql-${SLOT}/' ${PG_INITDB_OPTS}" + else + "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb \ + -U postgres -D "${DATA_DIR}" \ + -L "${EROOT%/}/usr/share/postgresql-${SLOT}/" ${PG_INITDB_OPTS} + fi + + mv "${DATA_DIR%/}"/*.conf "${PGDATA}" + + einfo "The autovacuum function, which was in contrib, has been moved to the main" + einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled" + einfo "by default. You can disable it in the cluster's:" + einfo " ${PGDATA%/}/postgresql.conf" + einfo + einfo "The PostgreSQL server, by default, will log events to:" + einfo " ${DATA_DIR%/}/postmaster.log" + einfo + if use prefix ; then + einfo "The location of the configuration files have moved to:" + einfo " ${PGDATA}" + einfo + einfo "To start the server:" + einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" + einfo + einfo "To stop:" + einfo " pg_ctl stop -D ${DATA_DIR}" + einfo + einfo "Or move the configuration files back:" + einfo " mv ${PGDATA}*.conf ${DATA_DIR}" + else + einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" + einfo "instead of 'pg_ctl'." + fi +} + +src_test() { + einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" + + if [[ ${UID} != 0 ]] ; then + emake check || die "Make check failed. See above for details." + + einfo "If you think other tests besides the regression tests are necessary, please" + einfo "submit a bug including a patch for this ebuild to enable them." + else + ewarn "Tests cannot be run as root. Skipping." + ewarn "HINT: FEATURES=\"userpriv\"" + fi +} diff --git a/dev-db/postgresql-server/postgresql-server-9.1.7-r1.ebuild b/dev-db/postgresql-server/postgresql-server-9.1.7-r1.ebuild new file mode 100644 index 000000000000..868d9bbb2d39 --- /dev/null +++ b/dev-db/postgresql-server/postgresql-server-9.1.7-r1.ebuild @@ -0,0 +1,346 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.1.7-r1.ebuild,v 1.1 2013/01/12 19:10:13 titanofold Exp $ + +EAPI="4" +PYTHON_DEPEND="python? 2" + +WANT_AUTOMAKE="none" +inherit autotools eutils flag-o-matic multilib pam prefix python user versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" + +SLOT="$(get_version_component_range 1-2)" +S="${WORKDIR}/postgresql-${PV}" + +DESCRIPTION="PostgreSQL server" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2 + http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" +LICENSE="POSTGRESQL GPL-2" + +LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" +IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" + +for lingua in ${LINGUAS}; do + IUSE+=" linguas_${lingua}" +done + +wanted_languages() { + local enable_langs + + for lingua in ${LINGUAS} ; do + use linguas_${lingua} && enable_langs+="${lingua} " + done + + echo -n ${enable_langs} +} + +RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] + perl? ( >=dev-lang/perl-5.8 ) + selinux? ( sec-policy/selinux-postgresql ) + tcl? ( >=dev-lang/tcl-8 ) + uuid? ( dev-libs/ossp-uuid ) + xml? ( dev-libs/libxml2 dev-libs/libxslt )" +DEPEND="${RDEPEND} + sys-devel/flex + xml? ( virtual/pkgconfig )" +PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" + +# Support /var/run or /run for the socket directory +[[ ! -d /run ]] && RUNDIR=/var + +pkg_setup() { + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres + + use python && python_set_active_version 2 +} + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" \ + "${WORKDIR}/bool.patch" \ + "${WORKDIR}/pg_ctl-exit-status.patch" \ + "${WORKDIR}/server.patch" + + eprefixify src/include/pg_config_manual.h + + if use test ; then + epatch "${WORKDIR}/regress.patch" + sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c + sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ + -i src/test/regress/{input,output}/tablespace.source + else + echo "all install:" > "${S}/src/test/regress/GNUmakefile" + fi + + sed -e "s|@RUNDIR@|${RUNDIR}|g" \ + -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ + die "RUNDIR sed failed" + sed -e "s|@SLOT@|${SLOT}|g" \ + -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ + die "SLOT sed failed" + + eautoconf +} + +src_configure() { + case ${CHOST} in + *-darwin*|*-solaris*) + use nls && append-libs intl + ;; + esac + + local PO="${EPREFIX%/}" + + # eval is needed to get along with pg_config quotation of space-rich entities. + eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ + $(use_with perl) \ + $(use_with python) \ + $(use_with tcl) \ + $(use_with xml libxml) \ + $(use_with xml libxslt) \ + $(use_with uuid ossp-uuid) \ + --with-system-tzdata="${PO}/usr/share/zoneinfo" \ + --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ + --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ + "$(use_enable nls nls "$(wanted_languages)")" +} + +src_compile() { + local bd + for bd in . contrib $(use xml && echo contrib/xml2); do + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ + emake -C $bd || 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 + + local bd + for bd in . contrib $(use xml && echo contrib/xml2) ; do + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ + emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" + done + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ + "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" + + newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} || \ + die "Inserting conf failed" + newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \ + die "Inserting conf failed" + + use pam && pamd_mimic system-auth postgresql auth account session + + if use prefix ; then + keepdir ${RUNDIR}/run/postgresql + fperms 0770 ${RUNDIR}/run/postgresql + fi +} + +pkg_postinst() { + postgresql-config update + + elog "Gentoo specific documentation:" + elog "http://www.gentoo.org/doc/en/postgres-howto.xml" + elog + elog "Official documentation:" + elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" + elog + elog "The default location of the Unix-domain socket is:" + elog " ${EROOT%/}${RUNDIR}/run/postgresql/" + elog + elog "If you have users and/or services that you would like to utilize the" + elog "socket, you must add them to the 'postgres' system group:" + elog " usermod -a -G postgres <user>" + elog + elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" + elog "so that it contains your preferred locale in:" + elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + elog + elog "Then, execute the following command to setup the initial database" + elog "environment:" + elog " emerge --config =${CATEGORY}/${PF}" +} + +pkg_prerm() { + if [[ -z ${REPLACED_BY_VERSION} ]] ; then + ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" + ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" + + ebegin "Resuming removal 10 seconds. Control-C to cancel" + sleep 10 + eend 0 + fi +} + +pkg_postrm() { + postgresql-config update +} + +pkg_config() { + [[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + [[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" + [[ -z "${DATA_DIR}" ]] && DATA_DIR="${EROOT%/}/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 "${EROOT%/}/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 "${EROOT%/}/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 modify the paths and options passed to initdb by editing:" + einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + einfo + einfo "Information on options that can be passed to initdb are found at:" + einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" + einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" + einfo + einfo "PG_INITDB_OPTS is currently set to:" + if [[ -z "${PG_INITDB_OPTS}" ]] ; then + einfo " (none)" + else + einfo " ${PG_INITDB_OPTS}" + fi + einfo + einfo "Configuration files will be installed to:" + einfo " ${PGDATA}" + einfo + einfo "The database cluster will be created in:" + einfo " ${DATA_DIR}" + einfo + while [ "$correct" != "true" ] ; do + einfo "Are you ready to continue? (y/n)" + read answer + if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then + correct="true" + elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then + die "Aborting initialization." + else + echo "Answer not recognized" + fi + done + + if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then + eerror "The given directory, '${DATA_DIR}', is not empty." + eerror "Modify DATA_DIR to point to an empty directory." + die "${DATA_DIR} is not empty." + fi + + [ -z "${PG_MAX_CONNECTIONS}" ] && PG_MAX_CONNECTIONS="128" + einfo "Checking system parameters..." + + if ! use kernel_linux ; then + einfo "Skipped." + einfo " Tests not supported on this OS (yet)" + else + 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" + eerror " 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 + ewarn "SKIP_SYSTEM_TESTS set, so skipping." + fi + fi + + einfo "Creating the data directory ..." + if [[ ${EUID} == 0 ]] ; then + mkdir -p "${DATA_DIR}" + chown -Rf postgres:postgres "${DATA_DIR}" + chmod 0700 "${DATA_DIR}" + fi + + einfo "Initializing the database ..." + + if [[ ${EUID} == 0 ]] ; then + su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" + else + "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} + fi + + mv "${DATA_DIR%/}"/*.conf "${PGDATA}" + + einfo "The autovacuum function, which was in contrib, has been moved to the main" + einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled" + einfo "by default. You can disable it in the cluster's:" + einfo " ${PGDATA%/}/postgresql.conf" + einfo + einfo "The PostgreSQL server, by default, will log events to:" + einfo " ${DATA_DIR%/}/postmaster.log" + einfo + if use prefix ; then + einfo "The location of the configuration files have moved to:" + einfo " ${PGDATA}" + einfo "To start the server:" + einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" + einfo "To stop:" + einfo " pg_ctl stop -D ${DATA_DIR}" + einfo + einfo "Or move the configuration files back:" + einfo "mv ${PGDATA}*.conf ${DATA_DIR}" + else + einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" + einfo "instead of 'pg_ctl'." + fi +} + +src_test() { + einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" + + if [ ${UID} -ne 0 ] ; then + emake -j1 check || die "Make check failed. See above for details." + + einfo "If you think other tests besides the regression tests are necessary, please" + einfo "submit a bug including a patch for this ebuild to enable them." + else + ewarn "Tests cannot be run as root. Skipping." + ewarn "HINT: FEATURES=\"userpriv\"" + fi +} diff --git a/dev-db/postgresql-server/postgresql-server-9.2.2-r1.ebuild b/dev-db/postgresql-server/postgresql-server-9.2.2-r1.ebuild new file mode 100644 index 000000000000..21f33dc90697 --- /dev/null +++ b/dev-db/postgresql-server/postgresql-server-9.2.2-r1.ebuild @@ -0,0 +1,355 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.2.2-r1.ebuild,v 1.1 2013/01/12 19:10:13 titanofold Exp $ + +EAPI="4" +PYTHON_DEPEND="python? 2" + +WANT_AUTOMAKE="none" +inherit autotools eutils flag-o-matic multilib pam prefix python user versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" + +SLOT="$(get_version_component_range 1-2)" + +# Comment the following six lines when not a beta or rc. +#MY_PV="${PV//_}" +#MY_FILE_PV="${SLOT}$(get_version_component_range 4)" +#S="${WORKDIR}/postgresql-${MY_FILE_PV}" +#SRC_URI="mirror://postgresql/source/v${MY_FILE_PV}/postgresql-${MY_FILE_PV}.tar.bz2 +# http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2 +# http://dev.gentoo.org/~titanofold/postgresql-initscript-2.3.tbz2" + +# Comment the following four lines when a beta or rc. +S="${WORKDIR}/postgresql-${PV}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2 + http://dev.gentoo.org/~titanofold/postgresql-initscript-2.3.tbz2" + +LICENSE="POSTGRESQL GPL-2" +DESCRIPTION="PostgreSQL server" +HOMEPAGE="http://www.postgresql.org/" + +LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" +IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" + +for lingua in ${LINGUAS}; do + IUSE+=" linguas_${lingua}" +done + +wanted_languages() { + local enable_langs + + for lingua in ${LINGUAS} ; do + use linguas_${lingua} && enable_langs+="${lingua} " + done + + echo -n ${enable_langs} +} + +RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] + perl? ( >=dev-lang/perl-5.8 ) + selinux? ( sec-policy/selinux-postgresql ) + tcl? ( >=dev-lang/tcl-8 ) + uuid? ( dev-libs/ossp-uuid ) + xml? ( dev-libs/libxml2 dev-libs/libxslt )" +DEPEND="${RDEPEND} + sys-devel/flex + xml? ( virtual/pkgconfig )" +PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" + +# Support /var/run or /run for the socket directory +[[ ! -d /run ]] && RUNDIR=/var + +pkg_setup() { + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres + + use python && python_set_active_version 2 +} + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" \ + "${WORKDIR}/bool.patch" \ + "${WORKDIR}/server.patch" + + eprefixify src/include/pg_config_manual.h + + if use test ; then + epatch "${WORKDIR}/regress.patch" + sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c +# sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ +# -i src/test/regress/{input,output}/tablespace.source + else + echo "all install:" > "${S}/src/test/regress/GNUmakefile" + fi + + sed -e "s|@RUNDIR@|${RUNDIR}|g" \ + -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ + die "RUNDIR sed failed" + sed -e "s|@SLOT@|${SLOT}|g" \ + -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ + die "SLOT sed failed" + + eautoconf +} + +src_configure() { + case ${CHOST} in + *-darwin*|*-solaris*) + use nls && append-libs intl + ;; + esac + + local PO="${EPREFIX%/}" + + # eval is needed to get along with pg_config quotation of space-rich entities. + eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ + $(use_with perl) \ + $(use_with python) \ + $(use_with tcl) \ + $(use_with xml libxml) \ + $(use_with xml libxslt) \ + $(use_with uuid ossp-uuid) \ + --with-system-tzdata="${PO}/usr/share/zoneinfo" \ + --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ + --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ + "$(use_enable nls nls "$(wanted_languages)")" +} + +src_compile() { + local bd + for bd in . contrib $(use xml && echo contrib/xml2); do + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ + emake -C $bd || 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 + + local bd + for bd in . contrib $(use xml && echo contrib/xml2) ; do + PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ + emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" + done + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ + "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" + + newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} || \ + die "Inserting conf failed" + newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \ + die "Inserting conf failed" + + use pam && pamd_mimic system-auth postgresql auth account session + + if use prefix ; then + keepdir ${RUNDIR}/run/postgresql + fperms 0770 ${RUNDIR}/run/postgresql + fi +} + +pkg_postinst() { + postgresql-config update + + elog "Gentoo specific documentation:" + elog "http://www.gentoo.org/doc/en/postgres-howto.xml" + elog + elog "Official documentation:" + elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" + elog + elog "The default location of the Unix-domain socket is:" + elog " ${EROOT%/}${RUNDIR}/run/postgresql/" + elog + elog "If you have users and/or services that you would like to utilize the" + elog "socket, you must add them to the 'postgres' system group:" + elog " usermod -a -G postgres <user>" + elog + elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" + elog "so that it contains your preferred locale in:" + elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + elog + elog "Then, execute the following command to setup the initial database" + elog "environment:" + elog " emerge --config =${CATEGORY}/${PF}" +} + +pkg_prerm() { + if [[ -z ${REPLACED_BY_VERSION} ]] ; then + ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" + ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" + + ebegin "Resuming removal 10 seconds. Control-C to cancel" + sleep 10 + eend 0 + fi +} + +pkg_postrm() { + postgresql-config update +} + +pkg_config() { + [[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + [[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" + [[ -z "${DATA_DIR}" ]] && DATA_DIR="${EROOT%/}/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 "${EROOT%/}/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 "${EROOT%/}/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 modify the paths and options passed to initdb by editing:" + einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" + einfo + einfo "Information on options that can be passed to initdb are found at:" + einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" + einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" + einfo + einfo "PG_INITDB_OPTS is currently set to:" + if [[ -z "${PG_INITDB_OPTS}" ]] ; then + einfo " (none)" + else + einfo " ${PG_INITDB_OPTS}" + fi + einfo + einfo "Configuration files will be installed to:" + einfo " ${PGDATA}" + einfo + einfo "The database cluster will be created in:" + einfo " ${DATA_DIR}" + einfo + while [ "$correct" != "true" ] ; do + einfo "Are you ready to continue? (y/n)" + read answer + if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then + correct="true" + elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then + die "Aborting initialization." + else + echo "Answer not recognized" + fi + done + + if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then + eerror "The given directory, '${DATA_DIR}', is not empty." + eerror "Modify DATA_DIR to point to an empty directory." + die "${DATA_DIR} is not empty." + fi + + [ -z "${PG_MAX_CONNECTIONS}" ] && PG_MAX_CONNECTIONS="128" + einfo "Checking system parameters..." + + if ! use kernel_linux ; then + einfo "Skipped." + einfo " Tests not supported on this OS (yet)" + else + 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" + eerror " 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 + ewarn "SKIP_SYSTEM_TESTS set, so skipping." + fi + fi + + einfo "Creating the data directory ..." + if [[ ${EUID} == 0 ]] ; then + mkdir -p "${DATA_DIR}" + chown -Rf postgres:postgres "${DATA_DIR}" + chmod 0700 "${DATA_DIR}" + fi + + einfo "Initializing the database ..." + + if [[ ${EUID} == 0 ]] ; then + su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" + else + "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} + fi + + mv "${DATA_DIR%/}"/*.conf "${PGDATA}" + + einfo "The autovacuum function, which was in contrib, has been moved to the main" + einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled" + einfo "by default. You can disable it in the cluster's:" + einfo " ${PGDATA%/}/postgresql.conf" + einfo + einfo "The PostgreSQL server, by default, will log events to:" + einfo " ${DATA_DIR%/}/postmaster.log" + einfo + if use prefix ; then + einfo "The location of the configuration files have moved to:" + einfo " ${PGDATA}" + einfo "To start the server:" + einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" + einfo "To stop:" + einfo " pg_ctl stop -D ${DATA_DIR}" + einfo + einfo "Or move the configuration files back:" + einfo "mv ${PGDATA}*.conf ${DATA_DIR}" + else + einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" + einfo "instead of 'pg_ctl'." + fi +} + +src_test() { + einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" + + if [ ${UID} -ne 0 ] ; then + emake check || die "Make check failed. See above for details." + + einfo "If you think other tests besides the regression tests are necessary, please" + einfo "submit a bug including a patch for this ebuild to enable them." + else + ewarn "Tests cannot be run as root. Skipping." + ewarn "HINT: FEATURES=\"userpriv\"" + fi +} diff --git a/dev-db/postgresql-server/postgresql-server-9999.ebuild b/dev-db/postgresql-server/postgresql-server-9999.ebuild index 986018df65ae..cf8a4ce60121 100644 --- a/dev-db/postgresql-server/postgresql-server-9999.ebuild +++ b/dev-db/postgresql-server/postgresql-server-9999.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9999.ebuild,v 1.3 2012/07/28 12:34:49 titanofold Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9999.ebuild,v 1.4 2013/01/12 19:10:13 titanofold Exp $ EAPI="4" PYTHON_DEPEND="python? 2" @@ -148,8 +148,6 @@ src_install() { emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" done - dodoc README doc/{TODO,bug.template} - dodir /etc/eselect/postgresql/slots/${SLOT} echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" |