diff options
author | Patrick Lauer <patrick@gentoo.org> | 2014-02-21 07:07:47 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2014-02-21 07:07:47 +0000 |
commit | 8ee1b300c80dc6a1de2d79d5ac944b417af83f79 (patch) | |
tree | 6a7155dd0c3a2fe140778d0e9920813a90dd1d58 | |
parent | Version bump. jQuery UI 1.10.3. (diff) | |
download | historical-8ee1b300c80dc6a1de2d79d5ac944b417af83f79.tar.gz historical-8ee1b300c80dc6a1de2d79d5ac944b417af83f79.tar.bz2 historical-8ee1b300c80dc6a1de2d79d5ac944b417af83f79.zip |
Bump for #501946
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
21 files changed, 2945 insertions, 66 deletions
diff --git a/dev-db/postgresql-base/ChangeLog b/dev-db/postgresql-base/ChangeLog index ac5790fcfd3e..cb9141dd679a 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-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.268 2014/01/15 10:27:44 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.269 2014/02/21 07:05:30 patrick Exp $ + +*postgresql-base-9.3.3 (21 Feb 2014) +*postgresql-base-9.2.7 (21 Feb 2014) +*postgresql-base-8.4.20 (21 Feb 2014) +*postgresql-base-9.1.12 (21 Feb 2014) +*postgresql-base-9.0.16 (21 Feb 2014) + + 21 Feb 2014; Patrick Lauer <patrick@gentoo.org> + +postgresql-base-8.4.20.ebuild, +postgresql-base-9.0.16.ebuild, + +postgresql-base-9.1.12.ebuild, +postgresql-base-9.2.7.ebuild, + +postgresql-base-9.3.3.ebuild: + Bump for #501946 15 Jan 2014; Agostino Sarubbo <ago@gentoo.org> -postgresql-base-8.4.17-r1.ebuild, -postgresql-base-8.4.17.ebuild, diff --git a/dev-db/postgresql-base/Manifest b/dev-db/postgresql-base/Manifest index ea69b34c586b..8b3f6e5c9888 100644 --- a/dev-db/postgresql-base/Manifest +++ b/dev-db/postgresql-base/Manifest @@ -1,38 +1,28 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 - DIST postgresql-8.4.19.tar.bz2 14825794 SHA256 f744d04a5d9feeea516fa57fea92be5568527bab03a84cf660a06ce90f90dcea SHA512 5006895e1c7d59fc4087549eb9ed6b6f95b2cc33d46b55c93be4f478cacd1bdc733ab285c166ac1d7cc8d7ae5626040858fce4ca98ff323fdb26cdf1ef6aa20c WHIRLPOOL 0daf2a2f9c3576d15ed546479187a87748f62b5f249e97db88927ff2850a640cc4d6a88087aee8c9aa1230aeb2f58cfb63d09d967ae84ffbe17090092bb29aa9 +DIST postgresql-8.4.20.tar.bz2 14642312 SHA256 e84e46083a6accd2bf37f0bd7253415649afcafc49f2564bc8481c10ed90d7c1 SHA512 83c45b54035c2f55de1def66a695c669481d0a75a0a55ac7e0ff352be4ca7ff1c212ac8f7046e44b324386a3bf9c4befdf36fa1207fff7d149c9e9f3c0e775d3 WHIRLPOOL ab9751509a5514fa2106a04e4c27850d9bef9c66034d3c7061a9299d35bbb06f8082a1fb63cc861108e70e3aa8d0d58d1c6186314862d4018de7428e0fb24360 DIST postgresql-9.0.15.tar.bz2 15169745 SHA256 a45acd27d546e425911ecd371247066be5dafd96304e50e0708c84b918c28f9d SHA512 e459a4544d08c79c16da03118633aee0a1847c2d03f8ca938702b0537d0be0f79c3c20b7b1e1813368ad6256cbc1b1206254d9b19b4e7ddff2d883eb3711edde WHIRLPOOL f4de38a96a5d514813cac4ec653b6e7b441076eae44dcd2fd5439714570e1dffd99e8d0b0790377a2ad040de31acd32bcaeb2466411306c7f621a385a972295c +DIST postgresql-9.0.16.tar.bz2 14956681 SHA256 900f6ab00fc36c94b17430e7cb22499708025da1e34d7a70aefaf9a875f0fabf SHA512 e98931f6f0998fa1fd43c798f8151f49730723e95ec8a80e958ce800e2f03a6e56bc1dd02412045dcf45acc9e4272dcc4d8b4af9c02a69e031369e9170d6c885 WHIRLPOOL e9446e1e328f09b98004170c2a74f8d1f50d649203903a637ccbb42f897de5f8cb326cb8e792ecb99d1f369b75d15cba523743e4e68506c514f565712bbfd75b DIST postgresql-9.1.11.tar.bz2 15861805 SHA256 ccbc35aae1490ee5878b97a6aea48dad7465cdad296b380542e4303b68cc6f74 SHA512 7dbe315db6d7d766da0f1d971e799d11c94d9d8ec507c32f52761c6ae77a2335dfde1af91a8621e84f3166c535b9a3f0c037ae607a2d77ca39cb8ab8cfa126bb WHIRLPOOL c8cff6f521ee038e0122724722b0357f42fb7dcf5dd2e063b1d8919fa6051bcd9305ab4966a3b4041fe8828bc39938103ed7f2ad176b03ece9c6b47078893e5b +DIST postgresql-9.1.12.tar.bz2 15638909 SHA256 0b267ebab5feb39ad6ef945b9588787886e7f7e5284467921d18cc7b76bcb383 SHA512 cfc256e5aafd4dc96a1dbd086f2d4f37c03550c15f4fc5bcbc51128c659324ac15d05ee2be76c9f333bcfd2e1d8c1af035d461c0479da8fef522128994c33e01 WHIRLPOOL 8a0b0d941ea442ba38b20af1262d5be9a70c8987302062052af251c2acde66c37fffa33364c2d342442132b5d3dbe7956f5ac5c0dbcadde10a888f362cc9b688 DIST postgresql-9.2.6.tar.bz2 16491820 SHA256 4ba98053a66e5678af93dbc2956e8b04623f759e174f48940c41f4251cf0f886 SHA512 d19b6634b75da13ba576093977b1123e58138c1caa55c54bec073cd9169f8e4353b41aa2db93f08bbf9167b835bcd890de4b494fde9e5b7f069e5d5f62c0c10b WHIRLPOOL b8c2722fb6ed4e445ec50a1d80f43433bd532ff91be449f2ceb2040bd7b49795534e0fafab106080702f50641736d947482608c4274966105fc0ffe262ab106e +DIST postgresql-9.2.7.tar.bz2 16248445 SHA256 83c042c3f61c69b176d3e4344e59104f844bc8b8628dad2bb9022a64cf5afe86 SHA512 aa9fdc81dca8eaa8e68aa29cd67d519ad3d12aeac1d689be04bd5976c5c569a33861eccd4333a4f6c7456255a2217aebe9d57bebae83540922a255ac32c00be7 WHIRLPOOL 0e6d611dd3dde1ebe9222744bc05fe5972f558113724848830fca939127d6bd5607f91480efac0dcf3e56042ec3ac83f848e5f0ffb8cd5ded55affbfb7be6eab DIST postgresql-9.3.2.tar.bz2 16878364 SHA256 700da51a71857e092f6af1c85fcd86b46d7d5cd2f2ba343cafb1f206c20232d7 SHA512 53f6b2b491d1bff4cddd22387f882be3f96affb656a08a93fc757d117d922d0fe211dba6db0d718ed4eca88ed988eaec8ef3aac079b69da9782b42d658c9396f WHIRLPOOL 8e6366f216d2ddfde4393ce4ac58648060a2cdc7ac2d23a341a25b908025214d7734f57d044a0ecf5773a966e726993b57845328441940a80799f4529b9e0661 +DIST postgresql-9.3.3.tar.bz2 16665845 SHA256 e925d8abe7157bd8bece6b7c0dd0c343d87a2b4336f85f4681ce596af99c3879 SHA512 2d8163b31042dc66dc52371e265cc081c52783da403652fef4985b177d2961fdf106767112595fde6ef79e3122fcc318a3daeb5dea59a1cd211b8744acd65462 WHIRLPOOL 4ddd166a65c815e3b71872f5dd5cc120d5c12865f3101ca140f7eb36e54223f1e0496d4a9a73ba2278551961787cac5385385d33360fae6e66a692e532dc14c3 DIST postgresql-patches-8.4-r3.tbz2 4821 SHA256 f2c47ff5cf6af20020c87bc34362615af66675d7d44dd020ccfae425880e1ace SHA512 149434a1a55f130b91b87591ac6bbbd263893e90facfdc47418320561a91cb818dea6367af5b8afbb6c9cccea6053692ee3008c62cbe40e8819c7cac04389334 WHIRLPOOL 30d5945bd65e07f114d8ee27bcbc1dc7ae136a2b5a1f62ec44aad325208dc8387ae11f58c21ebf1447822b35fe35b79d64c86cf763e146dc9c2b5da7dc883d47 DIST postgresql-patches-9.0-r4.tbz2 4525 SHA256 96f9af00dea1c33f9c77754e8ee37334012b8098361c321bd3f562ca9c32f6b8 SHA512 1e792eaf1e194e7a109a860216de98929bc12e6905846524e795fed7e8506f8f0e2e7349ead4fd9ba196c8eb6af2f5b143d0eecdb4cb7061253257acbce37873 WHIRLPOOL 8a32c0cd7f6b845496df8d1f6a0b2497625c0da36c5af1d651be086e9cd4faec48b56b04dca894a0e43e91309868db3014213d9989da5fd1d52d5b3775f8c1ad DIST postgresql-patches-9.1-r2.tbz2 4552 SHA256 e33a684be93d2bf70566245601da5ea3f831f4ed4b2ff1fa91f8083be3d3bc21 SHA512 3154616884615fea9e826f347e32b89bbddf18256875b3a23b1b6b5d9c0a1bf6159230ab0c6c6245782987d12156ecaa8e51ab1d25a27b5bae7f72cd565784af WHIRLPOOL 8820ea3a96b31baf3b3294c56ed95c9d2d916fdf9584fef38a0b6299b292883af6dda93e4818af09d1ab4b4d66dde258beb56ab2121bb48adbd806f7038b5b82 DIST postgresql-patches-9.2.tbz2 4431 SHA256 8ce635671d5af4d2c8d9a0fc741b26f82f1fda16bb6a36726a32dae47021a632 SHA512 4c971bd3f4ae86a48f5e21a1e4ab087865d41f2445f5a9ddfcd7d11f1abab7be8968e5a1bcfbe4a1f7799e7ca1728604aa01641883c47746ebfab658c189f6e5 WHIRLPOOL 712fae68cdf5b06e05f98e23760d896c7361fe0b548839082b8b0c488597bd0f38b80585677d380f8ccb7ded39e759ee42fa9eff838439468b5ac3a501004e8d DIST postgresql-patches-9.3-r1.tbz2 4488 SHA256 41e31bb02fa54f33e1248031841112d4600d87b8655800bc600daa02b640071f SHA512 33bdc26280d6b8c39634ef86590be388b4a4548827b66d91c62454426cb1f628b16ee1323c91bff6b469bfc5eba1de128c30a9d531905b5a2ef194af28dba6fb WHIRLPOOL 06e1c95dcce241bf436ffd99c75fac7481aab3f415993dfb33adc337476305a755fef864f242254f534d40b57b16912d888f46e87a626a74132bf0ed52334470 EBUILD postgresql-base-8.4.19.ebuild 4371 SHA256 224c854ef92d5047bff0f27618b58da992cef822e5c44657401391abd2624f31 SHA512 1c7cd40b24ce5f8ce44d78ca1308d6b6ee5c66ae34f856a1f23d9b34c5c5dfc310c9c974c8239ee9a027c8b342879ac70c23ea7365fd021d38256c077b258fc8 WHIRLPOOL 7688f97a687314de0491b1ac0e78524c640f7668324cb86fdffac014924f6a6fd7a2b4179100cf65bc178515951b7145f84fc0690d9dfffb7331a6c2c7b23c49 +EBUILD postgresql-base-8.4.20.ebuild 4383 SHA256 99e68dc261a70add42693794358198e6353c69d607170dca57b6691f61fbf445 SHA512 b0cd3932343c70ab75ce762b71016f13b70354525e750ee71dc20276f20279e8633e4c5d5c5e71de9ab780efaa72631fd59a9b05606f0b1272c627a453f196de WHIRLPOOL b963ec6d6b11ad5264c28c09a455a332213354dfde9adf6d8fae83b62a49a655c5a8353ec12ab130066cd584b8c5dc4aa53fbf8d43fa5502e91338b04f2c1853 EBUILD postgresql-base-9.0.15.ebuild 4537 SHA256 3834aaec527099e236bdc7f2a52cc7db35fb5ca203a4b238e51419441cd1366f SHA512 6cbbc1d40c8025a30680cc299362d3c844890c5c6b243b5326265263f6506a2ba339fc907f1045be09f9f2359381dff1ec0e63ad2deebc0a2b84cb127dbbf4fb WHIRLPOOL 981f1c174648967be7d93439e7a848df00c161d8df1eaa381c613499c3437e7976697ddc4432221734186efee2807924d4a58eb9f4fc665e779b59cd9ff3b70b +EBUILD postgresql-base-9.0.16.ebuild 4549 SHA256 8b54d6915a9689568662bc264e9cfdd988635d80b2f9d4d5a00c2332c219002a SHA512 95c6b502c0d5b57f45e5173a4713390cefdd3aab96aab9020fd26a40049e80c8a74df515a291a19af1ba453a5d420bc5cd0495628b2bdab4d12bc1a76526aa6e WHIRLPOOL c12f818b7b5569ec4ae07667ea4cbb315bad3a52d25c1a9797d6b16bdba6394a86967641911937f4f96f2f1bb5cb53ce771ac90c0369394c906375b74139dcf4 EBUILD postgresql-base-9.1.11.ebuild 4548 SHA256 67c870fa5dede3aac6e0df223b934776faabf3c108448a65057d55cbf1edfee8 SHA512 9757d86dcaed585d158999445ed1b174120ddd5734f2e6d4c6169da8011d550b9c17eb8c1991cc7c23e982ddff8d38fe19120d228ea289b23dcc5552dc06f885 WHIRLPOOL 04fc9195062bcc80913247e7934958e9496658fddd089e31191625232f7d7a840370492c82f4401676e966ee0003cbef966d1071d5b1189edc512e3b9ab74898 +EBUILD postgresql-base-9.1.12.ebuild 4560 SHA256 0b8a772238f38b620a758a745a5e7c0937fbbdbc038dfce5d12c4cbfea30c5a6 SHA512 044075f17f64ab7823ce63361b0fd3e19d1f41778c6ebd4afbdd9901ed2e1000a4a490f60ed51459683e097cf3cb20fa3f5a07fda99957e18ec6d7b4e8b58d5f WHIRLPOOL 515b30f1d39d7a7738633ce2cc972192ae32052221a4658e468da0032b8f2d3632c76048bbcd6a9fe12417150a9a5452ea71782501f9aad2dfbcad9d1103cb76 EBUILD postgresql-base-9.2.6.ebuild 4392 SHA256 075f157b1dc210e993a6ac5ba0c9f650e4d60fc545d70cfaf035c797cc30b601 SHA512 cbd86b214c5ab0b6643a152bafbf75d0bf0c5fb9f18cdeecdbbcb4497b5a4fa50f1fc4d97628dd2a668bf34572ee990d3069f7f6ed4404c175403bc7a4a1540a WHIRLPOOL dc0a9c2c01ea7288abcdf54c873e94d8a2b52a6781445562cc24ad57652940da089217f3ba5d81c6b7024c4a2f78594a54b330126c4bc6a0923010333ac54ca2 +EBUILD postgresql-base-9.2.7.ebuild 4404 SHA256 5381117baa1adb166d615faca20895e6088d126b7f85fc26624933ecdd86c27d SHA512 aee68d76f08f8fc1f5d00b557f25838509d9cc27133354391f7bf497b7feb28077d3e1b964eb4a586e64dba371709e9941086f8d576f4e15c9303ef06e7af451 WHIRLPOOL 390b4362c4dbdc46e1164545f55ef3706c4b1ba367e099d790569603b0382ab0716f09fd1edea5a70aac6f9b459e9a3293d08ff4215afd1dbd3999b64af089bd EBUILD postgresql-base-9.3.2.ebuild 4426 SHA256 324f951002764a48eef56a375b7dede2da22574312e9cc0b4ba450b1e8ad3143 SHA512 ef474ce2dc087f389ed9af71ef2a8f8d41c0b7c2c67ce66ca0a65f8088151dff513ce29274f8c871bee49ec3915783b6d3638c2f20e866774f73d71a4df966a3 WHIRLPOOL 8771b2ee7ea417dd07c367afe04f71173f72d8d001b30586712e272e8fe976437c9376c077ed3be5137752da0cb8e60301f2e3323c45ddd33418fa6e6b45a4db +EBUILD postgresql-base-9.3.3.ebuild 4438 SHA256 8ef51e669ac8a855479b07c9d6937eabc05048ffcd3d0f11d2c05a51a46ee200 SHA512 49da6465e8e856e7f659d9c027e463d662305682cec3a3950097e4658f3dbb721987822427d52a1feeef730dab32fc278c2d87b63b992ac5655197ee3708c2f5 WHIRLPOOL c654c926f9c0fb6797ec69bd88af06032cdc17bc6be94786c5b8da4f1c53d9425f3459d0c43a8703b8c36c733d3c8984d88cca0796b00ebee3ffc7b67d79516a EBUILD postgresql-base-9999.ebuild 4553 SHA256 798137f052575935a45c871912b1f4668a35a6f17c1f99f1d51ff3b6d80a0cfd SHA512 99b15fcc52a4ce837f00167686d755a2a347a3a58e3282fcb6902164106d90f837b172632a9d0cb863266a3054f559c60c6e7421ade49de330a52dd117ba14b8 WHIRLPOOL 5ab702706d62b38e988e16092315248fe9ba4e6719c8a9399d3e5e82309537fbd2b52256050e29cb733baaa9460d229d79921c68a6eb35fd44b406413d4a7306 -MISC ChangeLog 68614 SHA256 35f58d771e86b69239cd550efc97c9384003471c208bbc180e92e3cdbbf36bd2 SHA512 73c023f60734c17eb71224f9655b2d9138a2547a5cf8a73355896bc9fde770ce30314f649994069e671925e709963ddff408ebb2bdf029474f92cadcb4d81dbb WHIRLPOOL 1e2e28d6f0b28215b51c5f0c59a584a7ed25e44505e448622c7d179e27db0f339fcfba27d641dfaa28f4b82c26563270ddc980c871b751c7ae399e1eafc929fb +MISC ChangeLog 69041 SHA256 c6fa4c0c457478db352ce8f7485fd1f37cd58a23c085f6c22d7593580f3326ef SHA512 b92bac3e674bf8564cde470dab4c078c21928c48e78e1f6a490f4a66b3456a62dbdf9e86b6aacd13f7e49b957f97a97d3628969d31751dbd02ae1c7777808e3a WHIRLPOOL 4a842a6f0b5051afdfaaf608b2fe93f4b69bc627802faabac5dfac2a8db7236df10b38516ba8edda85067c1df6d49f6a097b57577236217f4c0781f07b6ded3d MISC metadata.xml 319 SHA256 8ce157b48f2da128f1b40b0d59c3c06e51ba71173689ff7a86c4429a7055c471 SHA512 248b60da17006a89acb1d8b6f62f59e4d414421422d2d4445bc7efc4f0abf13d048fe52c09af6b3e10a7afad341a5edb0e8d48b9ec2ead5f84b40f4016448cf9 WHIRLPOOL d1cf97f5d676ef43d677cebf8f9c97f6823c1c7b31e1a40a6f22729771a6bdcc851ac7c27ace768509307f4d0774384805cf4125541acd7a785d48117c0d5e07 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) - -iQIcBAEBCgAGBQJS1mGmAAoJELp701BxlEWf83gP/RMOi6KmWVvZ4JSyYgBWndzB -Buc0yhYvFbrWILSRGjbYxl4YBxuxjzi+Oeu+ASv4kMYu7U14NtiwXgxE0fkBEqIy -SwTSBqj6Tjv0sNetLUlSpj6AfToPTKaXNoDI7zs0ihzMhJTcnZTQ86Jyuca0Kq/J -pa1jFMJIYuMVeOx/hjtTwEY5FijeY0Jm3INEFRND1iQSWO61AR8lIFbLoGybbp7u -sC02/uPxJTd+vzdaTrApnJnF8yrUixqyLy+Zh8hB7JPLHMgL8eQhyQHExzMw7FoL -S50B+Bb0JsW691iUVu3S2k0qd61mFvzlz6rCTwKl168wVnC4sugky9gUxreIqQvh -tjm99f0W2P9n22HVR78Ex8tLHs8XpKeyxk7eGvQiwQ5b47bXukQ5eQPSKE6pgYGM -3fvq5gZ+D9hKSAiz6SfmFD6kuSbddRj5RqnRZvmwBpLf7bQj8IcNjYo6Qhdm6zZU -poxkyeH1WE+f3yruj5mL4ySxEmL5LYeE25yHfI8xp//xFb+WMGD12WY4FQQmjhPh -/feF0Qn7cVDmBaCPX5ehPSregHu8kle91SX83tiTnqajPtgre4YwVlcnXSlC8mqz -7OCeHbxgg6TzTpzslOtB9saMUCNBlpqCsUvoKPUyJAXjphSSPS8kufU2WExcNKfj -5D2WVMfG0SRPrjbopMr7 -=8YhL ------END PGP SIGNATURE----- diff --git a/dev-db/postgresql-base/postgresql-base-8.4.20.ebuild b/dev-db/postgresql-base/postgresql-base-8.4.20.ebuild new file mode 100644 index 000000000000..bb50e80ab463 --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-8.4.20.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2014 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.20.ebuild,v 1.1 2014/02/21 07:05:30 patrick Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python2_{5,6,7} ) +WANT_AUTOMAKE="none" + +inherit autotools eutils multilib prefix python-single-r1 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-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 python 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.2.0 +sys-apps/less +virtual/libintl +kerberos? ( virtual/krb5 ) +ldap? ( net-nds/openldap ) +pam? ( virtual/pam ) +python? ( ${PYTHON_DEPS} ) +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} )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +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 + + if use pam ; then + sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ + -i src/backend/libpq/auth.c \ + || die 'PGSQL_PAM_SERVICE rename failed.' + fi + + 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 \ + $(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 python) \ + $(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.16.ebuild b/dev-db/postgresql-base/postgresql-base-9.0.16.ebuild new file mode 100644 index 000000000000..0c8b9e025346 --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-9.0.16.ebuild @@ -0,0 +1,168 @@ +# Copyright 1999-2014 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.16.ebuild,v 1.1 2014/02/21 07:05:30 patrick Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} ) +WANT_AUTOMAKE="none" + +inherit autotools eutils flag-o-matic multilib prefix python-single-r1 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-r4.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 python 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 +sys-apps/less +virtual/libintl +kerberos? ( virtual/krb5 ) +ldap? ( net-nds/openldap ) +pam? ( virtual/pam ) +python? ( ${PYTHON_DEPS} ) +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} )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +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 + + if use pam ; then + sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ + -i src/backend/libpq/auth.c \ + || die 'PGSQL_PAM_SERVICE rename failed.' + fi + + 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 \ + $(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 python) \ + $(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.12.ebuild b/dev-db/postgresql-base/postgresql-base-9.1.12.ebuild new file mode 100644 index 000000000000..4ff3471b81a3 --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-9.1.12.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2014 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.12.ebuild,v 1.1 2014/02/21 07:05:30 patrick Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} ) +WANT_AUTOMAKE="none" + +inherit autotools eutils flag-o-matic multilib prefix python-single-r1 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-r2.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 python 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.2.0 +sys-apps/less +virtual/libintl +kerberos? ( virtual/krb5 ) +ldap? ( net-nds/openldap ) +pam? ( virtual/pam ) +python? ( ${PYTHON_DEPS} ) +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} )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +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 + + if use pam ; then + sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ + -i src/backend/libpq/auth.c \ + || die 'PGSQL_PAM_SERVICE rename failed.' + fi + + 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 \ + $(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 python) \ + $(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.7.ebuild b/dev-db/postgresql-base/postgresql-base-9.2.7.ebuild new file mode 100644 index 000000000000..190306ab7c5c --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-9.2.7.ebuild @@ -0,0 +1,167 @@ +# Copyright 1999-2014 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.7.ebuild,v 1.1 2014/02/21 07:05:30 patrick Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} ) +WANT_AUTOMAKE="none" + +inherit autotools eutils flag-o-matic multilib prefix python-single-r1 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}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}.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 python 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.2.0 +sys-apps/less +virtual/libintl +kerberos? ( virtual/krb5 ) +ldap? ( net-nds/openldap ) +pam? ( virtual/pam ) +python? ( ${PYTHON_DEPS} ) +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} )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +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 + + if use pam ; then + sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ + -i src/backend/libpq/auth.c \ + || die 'PGSQL_PAM_SERVICE rename failed.' + fi + + 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 \ + $(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 python) \ + $(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-9.3.3.ebuild b/dev-db/postgresql-base/postgresql-base-9.3.3.ebuild new file mode 100644 index 000000000000..8f7184d811ea --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-9.3.3.ebuild @@ -0,0 +1,168 @@ +# Copyright 1999-2014 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.3.3.ebuild,v 1.1 2014/02/21 07:05:30 patrick Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} ) +WANT_AUTOMAKE="none" + +inherit autotools eutils flag-o-matic multilib prefix python-single-r1 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}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}-r1.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 python 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.2.0 +sys-apps/less +virtual/libintl +kerberos? ( virtual/krb5 ) +ldap? ( net-nds/openldap ) +pam? ( virtual/pam ) +python? ( ${PYTHON_DEPS} ) +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} )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" \ + "${WORKDIR}/base.patch" \ + "${WORKDIR}/bool.patch" \ + "${WORKDIR}/run-dir.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 + + if use pam ; then + sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ + -i src/backend/libpq/auth.c \ + || die 'PGSQL_PAM_SERVICE rename failed.' + fi + + 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 \ + $(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 python) \ + $(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-docs/ChangeLog b/dev-db/postgresql-docs/ChangeLog index c1171cbe1b46..1984ccf314d1 100644 --- a/dev-db/postgresql-docs/ChangeLog +++ b/dev-db/postgresql-docs/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for dev-db/postgresql-docs # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/ChangeLog,v 1.224 2014/01/15 10:27:15 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/ChangeLog,v 1.225 2014/02/21 07:06:25 patrick Exp $ + +*postgresql-docs-8.4.20 (21 Feb 2014) +*postgresql-docs-9.0.16 (21 Feb 2014) +*postgresql-docs-9.1.12 (21 Feb 2014) +*postgresql-docs-9.2.7 (21 Feb 2014) +*postgresql-docs-9.3.3 (21 Feb 2014) + + 21 Feb 2014; Patrick Lauer <patrick@gentoo.org> + +postgresql-docs-8.4.20.ebuild, +postgresql-docs-9.0.16.ebuild, + +postgresql-docs-9.1.12.ebuild, +postgresql-docs-9.2.7.ebuild, + +postgresql-docs-9.3.3.ebuild: + Bump for #501946 15 Jan 2014; Agostino Sarubbo <ago@gentoo.org> -postgresql-docs-8.4.17.ebuild, -postgresql-docs-8.4.18.ebuild, -postgresql-docs-9.0.13.ebuild, diff --git a/dev-db/postgresql-docs/Manifest b/dev-db/postgresql-docs/Manifest index 41119addf421..6a9e5d4aad77 100644 --- a/dev-db/postgresql-docs/Manifest +++ b/dev-db/postgresql-docs/Manifest @@ -1,32 +1,22 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 - DIST postgresql-8.4.19.tar.bz2 14825794 SHA256 f744d04a5d9feeea516fa57fea92be5568527bab03a84cf660a06ce90f90dcea SHA512 5006895e1c7d59fc4087549eb9ed6b6f95b2cc33d46b55c93be4f478cacd1bdc733ab285c166ac1d7cc8d7ae5626040858fce4ca98ff323fdb26cdf1ef6aa20c WHIRLPOOL 0daf2a2f9c3576d15ed546479187a87748f62b5f249e97db88927ff2850a640cc4d6a88087aee8c9aa1230aeb2f58cfb63d09d967ae84ffbe17090092bb29aa9 +DIST postgresql-8.4.20.tar.bz2 14642312 SHA256 e84e46083a6accd2bf37f0bd7253415649afcafc49f2564bc8481c10ed90d7c1 SHA512 83c45b54035c2f55de1def66a695c669481d0a75a0a55ac7e0ff352be4ca7ff1c212ac8f7046e44b324386a3bf9c4befdf36fa1207fff7d149c9e9f3c0e775d3 WHIRLPOOL ab9751509a5514fa2106a04e4c27850d9bef9c66034d3c7061a9299d35bbb06f8082a1fb63cc861108e70e3aa8d0d58d1c6186314862d4018de7428e0fb24360 DIST postgresql-9.0.15.tar.bz2 15169745 SHA256 a45acd27d546e425911ecd371247066be5dafd96304e50e0708c84b918c28f9d SHA512 e459a4544d08c79c16da03118633aee0a1847c2d03f8ca938702b0537d0be0f79c3c20b7b1e1813368ad6256cbc1b1206254d9b19b4e7ddff2d883eb3711edde WHIRLPOOL f4de38a96a5d514813cac4ec653b6e7b441076eae44dcd2fd5439714570e1dffd99e8d0b0790377a2ad040de31acd32bcaeb2466411306c7f621a385a972295c +DIST postgresql-9.0.16.tar.bz2 14956681 SHA256 900f6ab00fc36c94b17430e7cb22499708025da1e34d7a70aefaf9a875f0fabf SHA512 e98931f6f0998fa1fd43c798f8151f49730723e95ec8a80e958ce800e2f03a6e56bc1dd02412045dcf45acc9e4272dcc4d8b4af9c02a69e031369e9170d6c885 WHIRLPOOL e9446e1e328f09b98004170c2a74f8d1f50d649203903a637ccbb42f897de5f8cb326cb8e792ecb99d1f369b75d15cba523743e4e68506c514f565712bbfd75b DIST postgresql-9.1.11.tar.bz2 15861805 SHA256 ccbc35aae1490ee5878b97a6aea48dad7465cdad296b380542e4303b68cc6f74 SHA512 7dbe315db6d7d766da0f1d971e799d11c94d9d8ec507c32f52761c6ae77a2335dfde1af91a8621e84f3166c535b9a3f0c037ae607a2d77ca39cb8ab8cfa126bb WHIRLPOOL c8cff6f521ee038e0122724722b0357f42fb7dcf5dd2e063b1d8919fa6051bcd9305ab4966a3b4041fe8828bc39938103ed7f2ad176b03ece9c6b47078893e5b +DIST postgresql-9.1.12.tar.bz2 15638909 SHA256 0b267ebab5feb39ad6ef945b9588787886e7f7e5284467921d18cc7b76bcb383 SHA512 cfc256e5aafd4dc96a1dbd086f2d4f37c03550c15f4fc5bcbc51128c659324ac15d05ee2be76c9f333bcfd2e1d8c1af035d461c0479da8fef522128994c33e01 WHIRLPOOL 8a0b0d941ea442ba38b20af1262d5be9a70c8987302062052af251c2acde66c37fffa33364c2d342442132b5d3dbe7956f5ac5c0dbcadde10a888f362cc9b688 DIST postgresql-9.2.6.tar.bz2 16491820 SHA256 4ba98053a66e5678af93dbc2956e8b04623f759e174f48940c41f4251cf0f886 SHA512 d19b6634b75da13ba576093977b1123e58138c1caa55c54bec073cd9169f8e4353b41aa2db93f08bbf9167b835bcd890de4b494fde9e5b7f069e5d5f62c0c10b WHIRLPOOL b8c2722fb6ed4e445ec50a1d80f43433bd532ff91be449f2ceb2040bd7b49795534e0fafab106080702f50641736d947482608c4274966105fc0ffe262ab106e +DIST postgresql-9.2.7.tar.bz2 16248445 SHA256 83c042c3f61c69b176d3e4344e59104f844bc8b8628dad2bb9022a64cf5afe86 SHA512 aa9fdc81dca8eaa8e68aa29cd67d519ad3d12aeac1d689be04bd5976c5c569a33861eccd4333a4f6c7456255a2217aebe9d57bebae83540922a255ac32c00be7 WHIRLPOOL 0e6d611dd3dde1ebe9222744bc05fe5972f558113724848830fca939127d6bd5607f91480efac0dcf3e56042ec3ac83f848e5f0ffb8cd5ded55affbfb7be6eab DIST postgresql-9.3.2.tar.bz2 16878364 SHA256 700da51a71857e092f6af1c85fcd86b46d7d5cd2f2ba343cafb1f206c20232d7 SHA512 53f6b2b491d1bff4cddd22387f882be3f96affb656a08a93fc757d117d922d0fe211dba6db0d718ed4eca88ed988eaec8ef3aac079b69da9782b42d658c9396f WHIRLPOOL 8e6366f216d2ddfde4393ce4ac58648060a2cdc7ac2d23a341a25b908025214d7734f57d044a0ecf5773a966e726993b57845328441940a80799f4529b9e0661 +DIST postgresql-9.3.3.tar.bz2 16665845 SHA256 e925d8abe7157bd8bece6b7c0dd0c343d87a2b4336f85f4681ce596af99c3879 SHA512 2d8163b31042dc66dc52371e265cc081c52783da403652fef4985b177d2961fdf106767112595fde6ef79e3122fcc318a3daeb5dea59a1cd211b8744acd65462 WHIRLPOOL 4ddd166a65c815e3b71872f5dd5cc120d5c12865f3101ca140f7eb36e54223f1e0496d4a9a73ba2278551961787cac5385385d33360fae6e66a692e532dc14c3 EBUILD postgresql-docs-8.4.19.ebuild 1304 SHA256 e1a5c5aee636511020918d8612da0bf9796a26d3566ff0ded9006c8f92236090 SHA512 d52287511ba2c96452e4543d6b7fef0524660bf714eaed7bc4e4a9ce52450b7fe7d1a7295b531d2a2545b92de0859a3107dae3dc8611e5cd703ca425c0b6a592 WHIRLPOOL 7cf114b9e33f5b3429dcfc08b3574a60c6f63c077615cb179f4af6b99bdfedbc6776a28d56d65e1c69ae34bfd73c544d0c29db39d622d429da725d16e8b7f3c3 +EBUILD postgresql-docs-8.4.20.ebuild 1316 SHA256 44ed7d21814e2bde2d0ca9f46c0db9eb0a3f524313957ed55a0dd166fb31bec2 SHA512 a43f9fff490e2aea18c9548a4680bca6a236c7ec8101cc38946213dc5d1abcf9c0ec6effcaf9185e07658c3125d2cd80dcd8ad1a675c57d3daf25c94375a9701 WHIRLPOOL f948dde08186de0fe0e4b846a63d98337ba1e8d777364fcf7ec92b00dcd20c28f8338b580998f39a550861c5f2c2d9befca81ae0d859cd6a541683247e066f39 EBUILD postgresql-docs-9.0.15.ebuild 1293 SHA256 0ca20d8992217392e05b648d11ef1fee5fb568e6b8db84acafe556c5dc9f4897 SHA512 d530a41ba5d3d229a45180fc589e76dab1406f29557b6df4237e1f0855a77e1eaa06beda79a12e97dc87063dae5943a97e668a7fb4201589f3fb7c40e735af23 WHIRLPOOL 68d33d895bd1ed37c34f7dff563728c44e1053c641f936a45d054a733ee302419974b2e37d9faab95712036348bad27c1d7e9096f7b4c780be2e07fd8a03de33 +EBUILD postgresql-docs-9.0.16.ebuild 1305 SHA256 25550b8ba62745d0bbeb59818351c724439e3155d52bd2cc3795fbe2ab006c43 SHA512 450cabf16eb72ad191ce166e72409adf063afb03e9b95f917d29ded20d667c9d2c4177a916cbf2f406a720deb49450e9e7788c37d9206368f5ad599b3796bbee WHIRLPOOL e90fe256e6808c058e0fa8306c048b4f638bf65f0e1e314a0f7ee1e267866d45e00df380dd3cbd57e2628e95ecd971fdccb418653732ff9fc05bec2ed9f6fe9c EBUILD postgresql-docs-9.1.11.ebuild 1307 SHA256 0f8bfba20c4f5180977f39401914df5ed0757c23115bb5b0439946febf0505f9 SHA512 ee1611855f8c6334ab1ab09dcf6b4593a21c2e83acb91186228a7d5ac78f9201111d3091017859a4c2791551261a043d2c48be67ba97fe09a65ef27399fd6793 WHIRLPOOL 9b1c28c13c4d7e21b3e90e3758f8c78f1756b28f4247fd33d673d755e50e56e305c8589a6c090eb78940224d4009e25c712f8e8cf53436bac81c63d3c91c7d05 +EBUILD postgresql-docs-9.1.12.ebuild 1319 SHA256 3806b5b16d6a0589a948c3a6b7e847ce922c9dd207877616a070d1cebbeea5cb SHA512 6df6a1c40e5ea44ce840391edeedf50fa982236324097a8399a3498c7edab5ebb4137b4fa483226e8edf977169867d70839a1bafa82925357e30c5cfecd25f40 WHIRLPOOL d694ac4f542eef504953a0df45629379afbc1735c2cc7a37f15a0d10e2b858e5664af78488183f81f8c95ec2bb16a1fcf0ac08bbd998dcab8e82c0bbf665e648 EBUILD postgresql-docs-9.2.6.ebuild 1618 SHA256 3038cfe332b19782fd7a85d0cf84990af950968ced432f0217dcd5dfd790afb5 SHA512 2c3025a15ae9ff107ae0d8d0d999b2b9ab6e756c7adfae2f0e196fe78c6b2de3fab7af335c4ab52d8712bfdb44f5359b9e42cef17babde1976104ff247e21912 WHIRLPOOL 872e0f653de1e7eaa9c7cd9ed6eb471ebc140750d093252496dbdd5e8910103c5f2038a38dde0da3e1c00af20c2132ca2d570ff865d0b30192239437987838ac +EBUILD postgresql-docs-9.2.7.ebuild 1630 SHA256 8699c3ecfc33a83a4ee7d8b43a052e659c5d76fb2f8e9d16a951c6c4c9159223 SHA512 8c0b149745a62749374b209a4fd569d2d9dd0199c70b08e669183a0e67d77a0cc40f71964af12eeaa1e04d38aa2fce678aac9abb6ed3daefbe3769b7801ea630 WHIRLPOOL 6fd016f60a1e4cee7f89cc81b89db38e214d5884c17be454cc8dfb64133c438b32d7f101b5feaaf47f59a64ff6af7421d767c55835d1d93c0eb622089bc24152 EBUILD postgresql-docs-9.3.2.ebuild 1618 SHA256 b20f793eed2cf97ef78629099f97abffe2d9c429513dade9898ddcaa6b3c46b4 SHA512 e0816281566a62973839ddb87584f02ef113703f6452cb338dca969ac6516f17bfe33b5e6688c842c1a9bd106dd037399ef15f9d87e3136ab23584ad36278fd4 WHIRLPOOL 368eb4f01345238fa3dee313d4eb13c2b5ef1f78b59aefd24e32d28d3f011cf99e944d03dc44decfaf8b91b6b9df2d9626037b7bd5922fa4d640289a45c4d72b -MISC ChangeLog 49514 SHA256 5e3faf6d8ba2b3ff087f001f863d3c40310fcf77adca63eee5c43cdb13f7f194 SHA512 83bdfed183d91d95206acb5fcf203d09849a16893894464c8f6362afcee7984f04f9cbdeca6f726748d7ead3d614d8676a44e9154ff2c13375898622191310ea WHIRLPOOL c354ae475980d2104bdead85b1367f4092ba56a3076fb23f2074ac2669d41a098d1b17ecbe11e8ea953fa20409a3060053bfc8e1b9cb5345ccf50f3ace8ef518 +EBUILD postgresql-docs-9.3.3.ebuild 1630 SHA256 c783ea0861106130c764b93b3ee979564c7a2702341037689b3c285abdf4f47f SHA512 81849addbb2d599344c29e3a1fdc4b22e23df4acfc6bd5a50af81d28d7f0ad150519320cc0de5c3e3034ad2cc054af9a0d97067757eb68b57a7e2ace740adab0 WHIRLPOOL e39317c3c41fb2650cdd3dedcf2721f9a38ca2ba64aa0c482abb764aa0a2cad86e1155a94dc08edcab3c57456270438ef80760928eeaadfce2e3e829a36a2e9a +MISC ChangeLog 49941 SHA256 dd612f637801db2bcda3effe5194396119661740c57855fb866530f9f54223a8 SHA512 0a32c689e15e238bbb54f6166c497587aaef744685d4b69b6333516206ed2be7d0ef782ede251ea15fcf58cd2e9960574c1ebef637f00e4502f72854bddbe23b WHIRLPOOL 55f5596e5325d5667156fa7d86b7e52770be92a629ce693d74b435b940b0546f9019b9822080cfe1f177a8fd9a9b505b69d842e9ed19c089976f15a1eb4d0a86 MISC metadata.xml 164 SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b SHA512 45b3f5ba6ebbeb2f990e5612b545bee41bb8c9f29e7f31de34021384760fcfc4694de0782fc0bdf556fe81ed3b334fc96c33563b0fddc2545484099a2cd76bb2 WHIRLPOOL 5fd1b0fc651f51ed3d1715cff87d86e7c0fe9c7825529069c7c3fed13641aee24bee1971b6e1057797b7b191ef0d50a1ea68c9f24588872d7d960787f9f02bfa ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) - -iQIcBAEBCgAGBQJS1mGJAAoJELp701BxlEWfg5wQAJL8mfwSXb6Snr8cS0HxdI1Z -zT16bUOmK5UK4MC6QeXykm+/VM7Zr8c4WTdXQBASnfdh7xpnVLe1ngfMO3uKJ/yg -TqP0VMhHoq8+8SreK0OC47ung670Rb9q7TrLEgCkP+LMIY9Bu2tD15nJv9YNPhaH -Hd7DyGi3hATfk/nxcTVzIrN292sENe31M+9TWTz1xZRJw2NxR4uU2SmTYVBsNMEN -avojjDHdU3KlD6vsmXnDeZh4La4Fuf6iZK8mr1aYxvdmHaelvIQjLZLh82X+aqgp -OEudheJDVpHHWVlQjuO/4MPsiIpuyRqyDqWjk4tUtDNGCRTKHnzF6qMaWgvs84qZ -g5W1rasHF6iBb5G1sxLgj+otxc+024yk3Ud6BbZxjGFX0kjWA43EsH0S5j/udsNI -yOwHF4gjb4LdI6TkG/XwHvnzMw1SF69aATobD0lHksQjpSgJn22xBUsBMSFK2uL+ -PvmE2wafpkBlCtajR9OvPmL+WOCapzKZlt7AVXJ5PiZEyWVYyWse3qXvIJH7mxvn -w0iHwBzBA7nJ4zYDenHzkE9KOyKN5XTdtFGyUyFP+ln6gnw9vtOXr0GbZFdSV8Ga -Wjq1SHJcmlRUJHmTw+EO3O7TkGuqg/oq5jswRBy9D/rN/DmwBjwIHEXwxvt8yVXm -0QHLEygxblZZjAPIcu61 -=ToaK ------END PGP SIGNATURE----- diff --git a/dev-db/postgresql-docs/postgresql-docs-8.4.20.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.4.20.ebuild new file mode 100644 index 000000000000..fb87c3086d08 --- /dev/null +++ b/dev-db/postgresql-docs/postgresql-docs-8.4.20.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/postgresql-docs-8.4.20.ebuild,v 1.1 2014/02/21 07:06:25 patrick Exp $ + +EAPI="4" + +inherit versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" + +RESTRICT="test" + +DESCRIPTION="PostgreSQL documentation" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" +LICENSE="POSTGRESQL" + +S=${WORKDIR}/postgresql-${PV} +SLOT="$(get_version_component_range 1-2)" + +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + tar xjf "${DISTDIR}/${A}" -C "${WORKDIR}" "${A%.tar.bz2}/doc" +} + +src_install() { + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + local mypath=/usr/share/doc/postgresql-${SLOT} + + cd "${S}/doc" + + dodir ${mypath}/html + tar -zxf "postgres.tar.gz" -C "${ED}${mypath}/html" || die + + insinto ${mypath}/sgml + doins src/sgml/*.{sgml,dsl} + + insinto ${mypath}/sgml/ref + doins src/sgml/ref/*.sgml + + fowners root:0 -R ${mypath} + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ + "${ED}/etc/eselect/postgresql/slots/${SLOT}/docs" +} diff --git a/dev-db/postgresql-docs/postgresql-docs-9.0.16.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.0.16.ebuild new file mode 100644 index 000000000000..934f205cb724 --- /dev/null +++ b/dev-db/postgresql-docs/postgresql-docs-9.0.16.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/postgresql-docs-9.0.16.ebuild,v 1.1 2014/02/21 07:06:25 patrick Exp $ + +EAPI="4" + +inherit versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" + +RESTRICT="test" + +DESCRIPTION="PostgreSQL documentation" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" +LICENSE="POSTGRESQL" + +S=${WORKDIR}/postgresql-${PV} +SLOT="$(get_version_component_range 1-2)" + +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + tar xjf "${DISTDIR}/${A}" -C "${WORKDIR}" "${A%.tar.bz2}/doc" +} + +src_install() { + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + local mypath=/usr/share/doc/postgresql-${SLOT} + + cd "${S}/doc" + + insinto ${mypath}/html + doins src/sgml/html/* + + insinto ${mypath}/sgml + doins src/sgml/*.{sgml,dsl} + + insinto ${mypath}/sgml/ref + doins src/sgml/ref/*.sgml + + fowners root:0 -R ${mypath} + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ + "${ED}/etc/eselect/postgresql/slots/${SLOT}/docs" +} diff --git a/dev-db/postgresql-docs/postgresql-docs-9.1.12.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.1.12.ebuild new file mode 100644 index 000000000000..920278ad2e82 --- /dev/null +++ b/dev-db/postgresql-docs/postgresql-docs-9.1.12.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/postgresql-docs-9.1.12.ebuild,v 1.1 2014/02/21 07:06:25 patrick Exp $ + +EAPI="4" + +inherit versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" + +RESTRICT="test" + +SLOT="$(get_version_component_range 1-2)" +S="${WORKDIR}/postgresql-${PV}" + +DESCRIPTION="PostgreSQL documentation" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" +LICENSE="POSTGRESQL" + +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + tar xjf "${DISTDIR}/${A}" -C "${WORKDIR}" "${A%.tar.bz2}/doc" +} + +src_install() { + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + local mypath=/usr/share/doc/postgresql-${SLOT} + + cd "${S}/doc" + + insinto ${mypath}/html + doins src/sgml/html/* + + insinto ${mypath}/sgml + doins src/sgml/*.{sgml,dsl} + + insinto ${mypath}/sgml/ref + doins src/sgml/ref/*.sgml + + fowners root:0 -R ${mypath} + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ + "${ED}/etc/eselect/postgresql/slots/${SLOT}/docs" +} diff --git a/dev-db/postgresql-docs/postgresql-docs-9.2.7.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.2.7.ebuild new file mode 100644 index 000000000000..62306c72064d --- /dev/null +++ b/dev-db/postgresql-docs/postgresql-docs-9.2.7.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/postgresql-docs-9.2.7.ebuild,v 1.1 2014/02/21 07:06:25 patrick Exp $ + +EAPI="4" + +inherit versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" + +RESTRICT="test" + +DESCRIPTION="PostgreSQL documentation" +HOMEPAGE="http://www.postgresql.org/" +LICENSE="POSTGRESQL" + +SLOT="$(get_version_component_range 1-2)" + +# Comment the following four 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" + +# Comment the following two lines when a beta or rc. +S="${WORKDIR}/postgresql-${PV}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" + +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + tar xjf "${DISTDIR}/${A}" -C "${WORKDIR}" "${A%.tar.bz2}/doc" +} + +src_install() { + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + local mypath=/usr/share/doc/postgresql-${SLOT} + + cd "${S}/doc" + + insinto ${mypath}/html + doins src/sgml/html/* + + insinto ${mypath}/sgml + doins src/sgml/*.{sgml,dsl} + + insinto ${mypath}/sgml/ref + doins src/sgml/ref/*.sgml + + fowners root:0 -R ${mypath} + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ + "${ED}/etc/eselect/postgresql/slots/${SLOT}/docs" +} diff --git a/dev-db/postgresql-docs/postgresql-docs-9.3.3.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.3.3.ebuild new file mode 100644 index 000000000000..97b9bdf83b6c --- /dev/null +++ b/dev-db/postgresql-docs/postgresql-docs-9.3.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/postgresql-docs-9.3.3.ebuild,v 1.1 2014/02/21 07:06:25 patrick Exp $ + +EAPI="4" + +inherit versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" + +RESTRICT="test" + +DESCRIPTION="PostgreSQL documentation" +HOMEPAGE="http://www.postgresql.org/" +LICENSE="POSTGRESQL" + +SLOT="$(get_version_component_range 1-2)" + +# Comment the following four 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" + +# Comment the following two lines when a beta or rc. +S="${WORKDIR}/postgresql-${PV}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" + +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + tar xjf "${DISTDIR}/${A}" -C "${WORKDIR}" "${A%.tar.bz2}/doc" +} + +src_install() { + # Don't use ${PF} here as three packages + # (dev-db/postgresql-{docs,base,server}) have the same set of docs. + local mypath=/usr/share/doc/postgresql-${SLOT} + + cd "${S}/doc" + + insinto ${mypath}/html + doins src/sgml/html/* + + insinto ${mypath}/sgml + doins src/sgml/*.{sgml,dsl} + + insinto ${mypath}/sgml/ref + doins src/sgml/ref/*.sgml + + fowners root:0 -R ${mypath} + + dodir /etc/eselect/postgresql/slots/${SLOT} + echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ + "${ED}/etc/eselect/postgresql/slots/${SLOT}/docs" +} diff --git a/dev-db/postgresql-server/ChangeLog b/dev-db/postgresql-server/ChangeLog index 5c2b906287aa..9a49ed4879fa 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-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/ChangeLog,v 1.280 2014/01/15 10:28:14 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/ChangeLog,v 1.281 2014/02/21 07:07:30 patrick Exp $ + +*postgresql-server-9.1.12 (21 Feb 2014) +*postgresql-server-9.2.7 (21 Feb 2014) +*postgresql-server-9.3.3 (21 Feb 2014) +*postgresql-server-8.4.20 (21 Feb 2014) +*postgresql-server-9.0.16 (21 Feb 2014) + + 21 Feb 2014; Patrick Lauer <patrick@gentoo.org> + +postgresql-server-8.4.20.ebuild, +postgresql-server-9.0.16.ebuild, + +postgresql-server-9.1.12.ebuild, +postgresql-server-9.2.7.ebuild, + +postgresql-server-9.3.3.ebuild: + Bump for #501946 15 Jan 2014; Agostino Sarubbo <ago@gentoo.org> -postgresql-server-8.4.17-r1.ebuild, -postgresql-server-8.4.17.ebuild, diff --git a/dev-db/postgresql-server/Manifest b/dev-db/postgresql-server/Manifest index 2e7ea202c9a4..67f8a20102e1 100644 --- a/dev-db/postgresql-server/Manifest +++ b/dev-db/postgresql-server/Manifest @@ -1,11 +1,13 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 - DIST postgresql-8.4.19.tar.bz2 14825794 SHA256 f744d04a5d9feeea516fa57fea92be5568527bab03a84cf660a06ce90f90dcea SHA512 5006895e1c7d59fc4087549eb9ed6b6f95b2cc33d46b55c93be4f478cacd1bdc733ab285c166ac1d7cc8d7ae5626040858fce4ca98ff323fdb26cdf1ef6aa20c WHIRLPOOL 0daf2a2f9c3576d15ed546479187a87748f62b5f249e97db88927ff2850a640cc4d6a88087aee8c9aa1230aeb2f58cfb63d09d967ae84ffbe17090092bb29aa9 +DIST postgresql-8.4.20.tar.bz2 14642312 SHA256 e84e46083a6accd2bf37f0bd7253415649afcafc49f2564bc8481c10ed90d7c1 SHA512 83c45b54035c2f55de1def66a695c669481d0a75a0a55ac7e0ff352be4ca7ff1c212ac8f7046e44b324386a3bf9c4befdf36fa1207fff7d149c9e9f3c0e775d3 WHIRLPOOL ab9751509a5514fa2106a04e4c27850d9bef9c66034d3c7061a9299d35bbb06f8082a1fb63cc861108e70e3aa8d0d58d1c6186314862d4018de7428e0fb24360 DIST postgresql-9.0.15.tar.bz2 15169745 SHA256 a45acd27d546e425911ecd371247066be5dafd96304e50e0708c84b918c28f9d SHA512 e459a4544d08c79c16da03118633aee0a1847c2d03f8ca938702b0537d0be0f79c3c20b7b1e1813368ad6256cbc1b1206254d9b19b4e7ddff2d883eb3711edde WHIRLPOOL f4de38a96a5d514813cac4ec653b6e7b441076eae44dcd2fd5439714570e1dffd99e8d0b0790377a2ad040de31acd32bcaeb2466411306c7f621a385a972295c +DIST postgresql-9.0.16.tar.bz2 14956681 SHA256 900f6ab00fc36c94b17430e7cb22499708025da1e34d7a70aefaf9a875f0fabf SHA512 e98931f6f0998fa1fd43c798f8151f49730723e95ec8a80e958ce800e2f03a6e56bc1dd02412045dcf45acc9e4272dcc4d8b4af9c02a69e031369e9170d6c885 WHIRLPOOL e9446e1e328f09b98004170c2a74f8d1f50d649203903a637ccbb42f897de5f8cb326cb8e792ecb99d1f369b75d15cba523743e4e68506c514f565712bbfd75b DIST postgresql-9.1.11.tar.bz2 15861805 SHA256 ccbc35aae1490ee5878b97a6aea48dad7465cdad296b380542e4303b68cc6f74 SHA512 7dbe315db6d7d766da0f1d971e799d11c94d9d8ec507c32f52761c6ae77a2335dfde1af91a8621e84f3166c535b9a3f0c037ae607a2d77ca39cb8ab8cfa126bb WHIRLPOOL c8cff6f521ee038e0122724722b0357f42fb7dcf5dd2e063b1d8919fa6051bcd9305ab4966a3b4041fe8828bc39938103ed7f2ad176b03ece9c6b47078893e5b +DIST postgresql-9.1.12.tar.bz2 15638909 SHA256 0b267ebab5feb39ad6ef945b9588787886e7f7e5284467921d18cc7b76bcb383 SHA512 cfc256e5aafd4dc96a1dbd086f2d4f37c03550c15f4fc5bcbc51128c659324ac15d05ee2be76c9f333bcfd2e1d8c1af035d461c0479da8fef522128994c33e01 WHIRLPOOL 8a0b0d941ea442ba38b20af1262d5be9a70c8987302062052af251c2acde66c37fffa33364c2d342442132b5d3dbe7956f5ac5c0dbcadde10a888f362cc9b688 DIST postgresql-9.2.6.tar.bz2 16491820 SHA256 4ba98053a66e5678af93dbc2956e8b04623f759e174f48940c41f4251cf0f886 SHA512 d19b6634b75da13ba576093977b1123e58138c1caa55c54bec073cd9169f8e4353b41aa2db93f08bbf9167b835bcd890de4b494fde9e5b7f069e5d5f62c0c10b WHIRLPOOL b8c2722fb6ed4e445ec50a1d80f43433bd532ff91be449f2ceb2040bd7b49795534e0fafab106080702f50641736d947482608c4274966105fc0ffe262ab106e +DIST postgresql-9.2.7.tar.bz2 16248445 SHA256 83c042c3f61c69b176d3e4344e59104f844bc8b8628dad2bb9022a64cf5afe86 SHA512 aa9fdc81dca8eaa8e68aa29cd67d519ad3d12aeac1d689be04bd5976c5c569a33861eccd4333a4f6c7456255a2217aebe9d57bebae83540922a255ac32c00be7 WHIRLPOOL 0e6d611dd3dde1ebe9222744bc05fe5972f558113724848830fca939127d6bd5607f91480efac0dcf3e56042ec3ac83f848e5f0ffb8cd5ded55affbfb7be6eab DIST postgresql-9.3.2.tar.bz2 16878364 SHA256 700da51a71857e092f6af1c85fcd86b46d7d5cd2f2ba343cafb1f206c20232d7 SHA512 53f6b2b491d1bff4cddd22387f882be3f96affb656a08a93fc757d117d922d0fe211dba6db0d718ed4eca88ed988eaec8ef3aac079b69da9782b42d658c9396f WHIRLPOOL 8e6366f216d2ddfde4393ce4ac58648060a2cdc7ac2d23a341a25b908025214d7734f57d044a0ecf5773a966e726993b57845328441940a80799f4529b9e0661 +DIST postgresql-9.3.3.tar.bz2 16665845 SHA256 e925d8abe7157bd8bece6b7c0dd0c343d87a2b4336f85f4681ce596af99c3879 SHA512 2d8163b31042dc66dc52371e265cc081c52783da403652fef4985b177d2961fdf106767112595fde6ef79e3122fcc318a3daeb5dea59a1cd211b8744acd65462 WHIRLPOOL 4ddd166a65c815e3b71872f5dd5cc120d5c12865f3101ca140f7eb36e54223f1e0496d4a9a73ba2278551961787cac5385385d33360fae6e66a692e532dc14c3 DIST postgresql-initscript-2.4.tbz2 2604 SHA256 4f17a2a26ec078b7f73d2b5fa7338402829fe195676d6c3f2cda6cd75c3d1e23 SHA512 2e92bb4f2ddbdfbafa9a6451ebf8be121cf66b7731c42c61f9978a4a896e7d8987fc3b2e5c6feef22a5f7b5759c3456c91e1869ba30019f71ed6b6088adf955e WHIRLPOOL 6df5d827a9fc2d78084d5c300fefa767f87af4a6918abefeea99396ecdace8966ee2c2b4f2276454a3f77df64ec7522aeb2cc1fcac8e321d091f60cc1071a13f DIST postgresql-initscript-2.5.tbz2 3280 SHA256 723b2564572722171e097b165a72453b788cb4451638677dcc5f853cbd2d3c09 SHA512 3de3c113cc121b7c1e1a28580ad83fa95f613ba082bffaec9c5feba8bf022ce069246553cd027cc82fbc7a8ea72a5782c2b04186a9765612571ab876c38555bf WHIRLPOOL 8bd84f0a58a3cebf078aeaba2cf9f8eaaeb0933aac0b89f4f8f981604c42ae43a06ca1fdf37a635f90d8957440049d9d7d4ad76bf143d42f44b5374fa98ef2de DIST postgresql-initscript-2.6.tbz2 3499 SHA256 0ab0e175a2ed735c330fd2e1c659c1130ae7217fea8d3804d5b5eb74c68ddac1 SHA512 b5c8add696b755e422db4b419c3aa8078b8f3b63e15ad2d100c8f81e654c02eee6c1971a7129d72de201afacdc72dcc50674b79e054be81d575ae1339b2e239b WHIRLPOOL 7bfc03a83f24f2a1a88bab86c71bdecaa14f4a4bb3eb12c46d6a164f9c1aad891e94445a59c55e1168a5dd5c85c78aa5198425c1914d26de86d0f22de5d031af @@ -16,27 +18,15 @@ DIST postgresql-patches-9.1-r2.tbz2 4552 SHA256 e33a684be93d2bf70566245601da5ea3 DIST postgresql-patches-9.2.tbz2 4431 SHA256 8ce635671d5af4d2c8d9a0fc741b26f82f1fda16bb6a36726a32dae47021a632 SHA512 4c971bd3f4ae86a48f5e21a1e4ab087865d41f2445f5a9ddfcd7d11f1abab7be8968e5a1bcfbe4a1f7799e7ca1728604aa01641883c47746ebfab658c189f6e5 WHIRLPOOL 712fae68cdf5b06e05f98e23760d896c7361fe0b548839082b8b0c488597bd0f38b80585677d380f8ccb7ded39e759ee42fa9eff838439468b5ac3a501004e8d DIST postgresql-patches-9.3-r1.tbz2 4488 SHA256 41e31bb02fa54f33e1248031841112d4600d87b8655800bc600daa02b640071f SHA512 33bdc26280d6b8c39634ef86590be388b4a4548827b66d91c62454426cb1f628b16ee1323c91bff6b469bfc5eba1de128c30a9d531905b5a2ef194af28dba6fb WHIRLPOOL 06e1c95dcce241bf436ffd99c75fac7481aab3f415993dfb33adc337476305a755fef864f242254f534d40b57b16912d888f46e87a626a74132bf0ed52334470 EBUILD postgresql-server-8.4.19.ebuild 11764 SHA256 62b6477a17cfbd53d694e1c837c0840d014cd861288ff02617f953f8bf089de1 SHA512 bcba0e8a6c4c7f238c21d12f4601959b1e5b1c1855c06070356a72988a67cc32583e194b15aa58a0398a9be21d8eb3ea774d8e00b7e64a293f748182be75ec88 WHIRLPOOL af8983de9c787de852d7983a960b29dc00278465199fa9a4cef4fbb7c6444d0ccdd500bd725015f5086bc517c9d9783c1959af2158b77e684ecf2ebfc8fe952c +EBUILD postgresql-server-8.4.20.ebuild 11776 SHA256 1b5ae2ed888571928717d1b506b28c8a934640f0af10b96c38374a0ff6a25ab4 SHA512 7cf1b14fb99297e34760e773c58047c5ecf15972c3a095b822015df33ab470067eb423c8f4d177b0acbc6b0a0fa8e525befe7940e308a26f1c1dcf56f8c63097 WHIRLPOOL 0e4f0df40a3b401cc7fdff92fb71a90a0f5d8113d3cb72782385082aaf53317b7125f4545029975e06302bf1c1f83a9900be8a65af68eeb051270eb10c033e12 EBUILD postgresql-server-9.0.15.ebuild 11745 SHA256 b5620c9423ba9473a29b3a44a8ba5b39aa9b8c4b060456c5aaa26bf0a1fb4ed3 SHA512 703f079cb961088f56a7044e2b0f6a963fa12706e458fecab09202f48c8b1370096293e854a287f59f68a696ab2a7c7a13cb891713d1d8feb7d952faaeddb830 WHIRLPOOL f63a86cafa5d2107146fdd2b1d9d89b7539bd00961b7ee53e10f6ad5e031e46eb3f91ece8b60e783cae34cf1d72c90dfa71db17de290e0951305408339297b13 +EBUILD postgresql-server-9.0.16.ebuild 11757 SHA256 205daca6d2dcbe02b04ffcab02ebbcbffe6e607ba77e8562c21a73a3a5d22150 SHA512 8f5893278d09e788e224713ef3bf2fecadd06ce1695439a20de760f8942e6810f9578081f9447c304ecf790305db35600df9dd30047ef5dc00f0b21a95c739df WHIRLPOOL d3bdf541d211744e7a2e309a042db2546c3800436141f3dc4ca7a82a5eb91313901f6e85372704bb323b31011218d6ef8d06e84e163c422c1daeb83ba49a77de EBUILD postgresql-server-9.1.11.ebuild 11473 SHA256 a22cc6ea31e839642b786af53ee5bb31b10039a0463c018f8f9f1259c330ad21 SHA512 9d3a309a6dd72cd7bed263cf037817d05ace2a57716bbdd93344a157eee1e858db6fcc747f6aaa2548e602df7923dce3b86accc0b12f95a039d32918d428c527 WHIRLPOOL df80e5f5dbe01f2ffc92bec57f72065bdc1865e016cf157d470aadd260a1a6d5ba71f2524778a905a96a03c505b60971180f62f43b8ab2cfb916f2254ebd56a9 +EBUILD postgresql-server-9.1.12.ebuild 11485 SHA256 39e992ca6945c348922a69088c53ae2ab53d2db7f307d6cd317d0617993845f6 SHA512 ecc8b4b1786f8798975b4999dd79473e06226fc1ffcb07ec39596a87e3c478474e7038044360022cd85c86682106ac9e78508b4ec291be384053ebf2234dc341 WHIRLPOOL fca056b67079da047c3433ed2c778f518c0b45a81cf40449a6be0b93ba2f97d73553401ad9791ad53685a1e66c322307c1d50586f36d9bb4e6605bcfbe2bee1f EBUILD postgresql-server-9.2.6.ebuild 11175 SHA256 1a644015935e9c2c575e8175b44edb07a425a89aec3269e94832c63f7ca5af60 SHA512 4333527de4c8a084dd2f8f41b019acbf9723d3ee627f0f25f62b1e7a536072313412007474b8296cf34b5e28755eff2422ddb26b76fd8a2c19958d3934045d37 WHIRLPOOL 9255a5f908847478defca5908a77c6add01850d0b05e975f8262a7915f98c7cd9cc4cc89ce11c2bb759c3df2dff2d9062cd3ac80d77ced55ac011552733cc46e +EBUILD postgresql-server-9.2.7.ebuild 11187 SHA256 41fc468a9d269b5a32cc567a29e7c1812fb99496e11852720acaa0ad4ea33bb3 SHA512 04abfcabd730ae01c03fcaf44ef039e66130a5e597fe90772090b000185078c3b203f4b92d70f40efe63915c7c8075cd051b7690938b59052afd394507dca2ea WHIRLPOOL 1a2855aa0958606b2f5d8b67a54530305075ea387b8c87370869effada2ab509484aedb1c1dd71edb390177e07a87dde42c1b3f33ca6e74ca09b63a337b34ff5 EBUILD postgresql-server-9.3.2.ebuild 11111 SHA256 3ad73dbf6d9c531a661709d24e780876ca41525b081178f96e06dbc6be8bdd46 SHA512 45d2340524c0d9cb8b2fc9171a8dc8210594f4761109342b3ba682c76a4789fdde0b1e603b3eba07aa6f2156dce2a409aae1ffbdebf26ee7bff0fd724aaf0ed1 WHIRLPOOL a346309a00058143b0e43a054d0ff1690735387f659bf95f98d4c68d24f70ccd6c84b68444bac3d0cbb446635bf2449ad46f216a791703846c844999b50885de +EBUILD postgresql-server-9.3.3.ebuild 11123 SHA256 4785a292fb8c65ad031f4b633b5027e0705df83496772ce2a6f3a4b6bc0b7fc1 SHA512 6243d3fbb1b592ab328d808fb33c750978d45ac405d51db4468476279e833e30c45d771627cc2a45e180071f52f3a3a68cc474a9f6fc655b27cb881e92b1fbe0 WHIRLPOOL 2f1b961586fc0df20ac74fb3125b6c6d0e7416d5b5a3ed518c80b21ec66f826ac8f14fd94b31f9a7cd49a2c5bbd4fc8a9a5ad85f4ab8a757986448f62bfb1fb6 EBUILD postgresql-server-9999.ebuild 11314 SHA256 e96f777733e21610b22f694ab54f80b9d462e9fceaf606229db72daade373c64 SHA512 f55ede543176ba8026ee3946ed0030a4db09064990be7bdbe48708f313d632158eb5024932b1dfb79f0c5b3cc0a166240996c0df15f01b7e9039452019273494 WHIRLPOOL ab481a330b68fe677fb4321a36fdfc7b7855cf9eb4c8f3100024a1054a934392d7bed01f61da0376a801f325507bd8b459994f4cb46a5617e3dd67497a97ebb8 -MISC ChangeLog 81642 SHA256 9c3eb230b891997594c454082909f7ea697ca7db81a8c2d92c7bcceef3bafe5b SHA512 e30de9fd4bf26fd66f669fea22c7e2fd479cc3f7a6743d916ada0c6308ac17a3877eb1c68f10044d035ed1b5bdd9c1b778a61dba665a24da0af46a2452953aaa WHIRLPOOL 3c12a3ff22d3052366e772995648fc324cf8c89829383b91e78bee79dd11833e4d408a255a3610949242dc24a44bdfe7bcd7ab6af0ea6e1766af339707277ae7 +MISC ChangeLog 82089 SHA256 dee45f4769245cb9e28d3dec265c50501b1ffbc0b037e9015d6a43a078ed7eb2 SHA512 67e669090a2b53661580f5de5f97fa79d7ef37e6c26e928681508a5e321688c25d3964ae6e06726e902df6e4027db75cdc36cfa7c9b07d5292336fc6c7234837 WHIRLPOOL 83433b0afc0c626ea2e2969346f41632dc266f982725d2ba011b46b09d1e5e8512269c7e47e9dc1b8392bf48edaa60aefcf7edd8240166d54e1ebe001afe4e2e MISC metadata.xml 420 SHA256 ac37a5084450a782d02510149d030bd0d4a63164f2ffb7bdda3ddf344606ca62 SHA512 1731bced1ac398d90c6aca6ec209a9ea42deb0f7033d49952a6216349aeb992479c3e868b33cc1be2434cdead6185026503a58e779965455d0198edd87bf5b4c WHIRLPOOL 3bbd5598492cb7d90f4199fac80f27bcba281e1188f7f1d40ee3dd1561e530de13de109142f0add7221b49ec3a9c6a0bdb3add1446b1cc5a6cb3909fd193d19b ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) - -iQIcBAEBCgAGBQJS1mHEAAoJELp701BxlEWfRS0QAK30k0StPnM7qoKXsxRq2gPt -TM1NnTK1qvev20JI6bIc/l4BSlkyj3j1U6Hg5jHt10atofFSYZgpOfzgv+QSStVK -LQQpnoReBvsaGWA2UrPki1Cu4Sdj4srFdn0ComGMNZLDJaqKuyQxWIFxWHl1Pdo3 -0pB/jnhQ8NF2qloj2YIi0oXCHnPRi9oWFCsmuv1qv2E/7yb16e8x13Q1MLgi9sFH -Po/QPb5/5Tah8BzmM4hisFovRIgjEhk2s+kFw1f/Q/PCgJAYNW/4SQSLhYFL0Mq1 -Bu/+QquF9Iq0NYHb9J1lwu4/vJ9TbXW7T+z/+4FpKMgr33bW01NeRLY56XO2E6/a -MNR+zqq17DFwjEbpuF9NKX8sHUI+z1AeUhW9aYgWhDPthHzIQv1Up9PPVYhaVOCh -/4kE24ovy3KK7rKEUXc8uD+jnVBg4hhvG478RbmBR7gShYNFPBp8cU3caNAVm631 -cJ/WeNjxmxibWI+XVGtltpxoC3878SvBJJsj014YyecXqDseGHXE4ZF3pCKQvqSI -kSzpcgIQWaaq1Tu28PvIjUzLueRfW8AXelDnLD25SPRn2sGa28D4fAuWDyKVB/UV -bFZtoaazvSVpRw4QJOLkONiamPqrANoMqJ7ALfFA1SeUem3FAjTDRqI69AJZpfWa -Rxeow/uhBIszRZGgJ74j -=rwkF ------END PGP SIGNATURE----- diff --git a/dev-db/postgresql-server/postgresql-server-8.4.20.ebuild b/dev-db/postgresql-server/postgresql-server-8.4.20.ebuild new file mode 100644 index 000000000000..b3ced2a2f8c6 --- /dev/null +++ b/dev-db/postgresql-server/postgresql-server-8.4.20.ebuild @@ -0,0 +1,352 @@ +# Copyright 1999-2014 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.20.ebuild,v 1.1 2014/02/21 07:07:30 patrick Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python2_{5,6,7} ) +WANT_AUTOMAKE="none" + +inherit autotools eutils multilib pam prefix python-single-r1 systemd 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-r3.tbz2 + http://dev.gentoo.org/~titanofold/postgresql-initscript-pre92-2.6.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 kerberos kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl test 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}[kerberos?,pam?,pg_legacytimestamp=,python=,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} )" + +pkg_setup() { + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres + + use python && python-single-r1_pkg_setup +} + +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 pam ; then + sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ + -i src/backend/libpq/auth.c \ + || die 'PGSQL_PAM_SERVICE rename failed.' + fi + + if use test ; then + epatch "${WORKDIR}/regress.patch" + sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c + else + echo "all install:" > "${S}/src/test/regress/GNUmakefile" + fi + + for x in .init .confd .service -check-db-dir + do + sed -e "s|@SLOT@|${SLOT}|g" -i "${WORKDIR}"/postgresql${x} + [[ $? -ne 0 ]] && eerror "Failed sed on $x" && die 'Failed slot sed' + done + + 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 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} + newinitd "${WORKDIR}"/postgresql.init postgresql-${SLOT} + + systemd_newunit "${WORKDIR}"/postgresql.service postgresql-${SLOT}.service + systemd_newtmpfilesd "${WORKDIR}"/postgresql.tmpfilesd postgresql-${SLOT}.conf + + insinto /usr/bin/ + newbin "${WORKDIR}"/postgresql-check-db-dir postgresql-${SLOT}-check-db-dir + + use pam && pamd_mimic system-auth postgresql-${SLOT} auth account session + + if use prefix ; then + keepdir /run/postgresql + fperms 0770 /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%/}/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 + + 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.16.ebuild b/dev-db/postgresql-server/postgresql-server-9.0.16.ebuild new file mode 100644 index 000000000000..2021a0b373c1 --- /dev/null +++ b/dev-db/postgresql-server/postgresql-server-9.0.16.ebuild @@ -0,0 +1,358 @@ +# Copyright 1999-2014 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.16.ebuild,v 1.1 2014/02/21 07:07:30 patrick Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} ) +WANT_AUTOMAKE="none" + +inherit autotools eutils multilib pam prefix python-single-r1 systemd 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-r4.tbz2 + http://dev.gentoo.org/~titanofold/postgresql-initscript-pre92-2.6.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 kerberos kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl test 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}[kerberos?,pam?,pg_legacytimestamp=,python=,nls=] +perl? ( >=dev-lang/perl-5.8 ) +python? ( ${PYTHON_DEPS} ) +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} )" + +pkg_setup() { + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres + + use python && python-single-r1_pkg_setup +} + +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 pam ; then + sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ + -i src/backend/libpq/auth.c \ + || die 'PGSQL_PAM_SERVICE rename failed.' + fi + + if use test ; then + epatch "${WORKDIR}/regress.patch" + sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c + else + echo "all install:" > "${S}/src/test/regress/GNUmakefile" + fi + + for x in .init .confd .service -check-db-dir + do + sed -e "s|@SLOT@|${SLOT}|g" -i "${WORKDIR}"/postgresql${x} + [[ $? -ne 0 ]] && eerror "Failed sed on $x" && die 'Failed slot sed' + done + + 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 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} + newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} + + systemd_newunit "${WORKDIR}"/postgresql.service postgresql-${SLOT}.service + systemd_newtmpfilesd "${WORKDIR}"/postgresql.tmpfilesd postgresql-${SLOT}.conf + + insinto /usr/bin/ + newbin "${WORKDIR}"/postgresql-check-db-dir postgresql-${SLOT}-check-db-dir + + use pam && pamd_mimic system-auth postgresql-${SLOT} auth account session + + if use prefix ; then + keepdir /run/postgresql + fperms 0770 /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%/}/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 in 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.12.ebuild b/dev-db/postgresql-server/postgresql-server-9.1.12.ebuild new file mode 100644 index 000000000000..bf68277efca7 --- /dev/null +++ b/dev-db/postgresql-server/postgresql-server-9.1.12.ebuild @@ -0,0 +1,356 @@ +# Copyright 1999-2014 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.12.ebuild,v 1.1 2014/02/21 07:07:30 patrick Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} ) +WANT_AUTOMAKE="none" + +inherit autotools eutils flag-o-matic multilib pam prefix python-single-r1 systemd 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-r2.tbz2 + http://dev.gentoo.org/~titanofold/postgresql-initscript-pre92-2.6.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 kerberos kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl test 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}[kerberos?,pam?,pg_legacytimestamp=,python=,nls=] +perl? ( >=dev-lang/perl-5.8 ) +python? ( ${PYTHON_DEPS} ) +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} )" + +pkg_setup() { + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres + + use python && python-single-r1_pkg_setup +} + +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 pam ; then + sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ + -i src/backend/libpq/auth.c \ + || die 'PGSQL_PAM_SERVICE rename failed.' + fi + + if use test ; then + epatch "${WORKDIR}/regress.patch" + sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c + else + echo "all install:" > "${S}/src/test/regress/GNUmakefile" + fi + + for x in .init .confd .service -check-db-dir + do + sed -e "s|@SLOT@|${SLOT}|g" -i "${WORKDIR}"/postgresql${x} + [[ $? -ne 0 ]] && eerror "Failed sed on $x" && die 'Failed slot sed' + done + + 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 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} + newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} + + systemd_newunit "${WORKDIR}"/postgresql.service postgresql-${SLOT}.service + systemd_newtmpfilesd "${WORKDIR}"/postgresql.tmpfilesd postgresql-${SLOT}.conf + + insinto /usr/bin/ + newbin "${WORKDIR}"/postgresql-check-db-dir postgresql-${SLOT}-check-db-dir + + use pam && pamd_mimic system-auth postgresql-${SLOT} auth account session + + if use prefix ; then + keepdir /run/postgresql + fperms 0770 /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%/}/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 in 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 + + 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.7.ebuild b/dev-db/postgresql-server/postgresql-server-9.2.7.ebuild new file mode 100644 index 000000000000..758c32ba1a86 --- /dev/null +++ b/dev-db/postgresql-server/postgresql-server-9.2.7.ebuild @@ -0,0 +1,351 @@ +# Copyright 1999-2014 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.7.ebuild,v 1.1 2014/02/21 07:07:30 patrick Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} ) +WANT_AUTOMAKE="none" + +inherit autotools eutils flag-o-matic multilib pam prefix python-single-r1 systemd 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}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}.tbz2 + http://dev.gentoo.org/~titanofold/postgresql-initscript-2.6.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 kerberos kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl test 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}[kerberos?,pam?,pg_legacytimestamp=,python=,nls=] +perl? ( >=dev-lang/perl-5.8 ) +python? ( ${PYTHON_DEPS} ) +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} )" + +pkg_setup() { + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres + + use python && python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" \ + "${WORKDIR}/bool.patch" \ + "${WORKDIR}/server.patch" + + eprefixify src/include/pg_config_manual.h + + if use pam ; then + sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ + -i src/backend/libpq/auth.c \ + || die 'PGSQL_PAM_SERVICE rename failed.' + fi + + if use perl ; then + sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ + -i "${S}/src/pl/plperl/GNUmakefile" || die 'sed plperl failed' + fi + + if use test ; then + epatch "${WORKDIR}/regress.patch" + sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c \ + || die 'Failed regress sed' + else + echo "all install:" > "${S}/src/test/regress/GNUmakefile" + fi + + for x in .init .confd .service -check-db-dir + do + sed -e "s|@SLOT@|${SLOT}|g" -i "${WORKDIR}"/postgresql${x} + [[ $? -ne 0 ]] && eerror "Failed sed on $x" && die 'Failed slot sed' + done + + 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 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() { + 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} + newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} + + systemd_newunit "${WORKDIR}"/postgresql.service postgresql-${SLOT}.service + systemd_newtmpfilesd "${WORKDIR}"/postgresql.tmpfilesd postgresql-${SLOT}.conf + + insinto /usr/bin/ + newbin "${WORKDIR}"/postgresql-check-db-dir postgresql-${SLOT}-check-db-dir + + use pam && pamd_mimic system-auth postgresql-${SLOT} auth account session + + if use prefix ; then + keepdir /run/postgresql + fperms 0775 /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%/}/run/postgresql/" + 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 in 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 + + 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.3.3.ebuild b/dev-db/postgresql-server/postgresql-server-9.3.3.ebuild new file mode 100644 index 000000000000..bb1ac75a3874 --- /dev/null +++ b/dev-db/postgresql-server/postgresql-server-9.3.3.ebuild @@ -0,0 +1,349 @@ +# Copyright 1999-2014 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.3.3.ebuild,v 1.1 2014/02/21 07:07:30 patrick Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python{2_{6,7},3_{2,3}} ) +WANT_AUTOMAKE="none" + +inherit autotools eutils flag-o-matic multilib pam prefix python-single-r1 systemd 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}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 + http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}-r1.tbz2 + http://dev.gentoo.org/~titanofold/postgresql-initscript-2.5.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 kerberos kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl test 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}[kerberos?,pam?,pg_legacytimestamp=,python=,nls=] +perl? ( >=dev-lang/perl-5.8 ) +python? ( ${PYTHON_DEPS} ) +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} )" + +pkg_setup() { + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres + + use python && python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${WORKDIR}/autoconf.patch" \ + "${WORKDIR}/bool.patch" \ + "${WORKDIR}/server.patch" \ + "${WORKDIR}/run-dir.patch" + + eprefixify src/include/pg_config_manual.h + + if use pam ; then + sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ + -i src/backend/libpq/auth.c \ + || die 'PGSQL_PAM_SERVICE rename failed.' + fi + + if use perl ; then + sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ + -i "${S}/src/pl/plperl/GNUmakefile" || die 'sed plperl failed' + fi + + if use test ; then + epatch "${WORKDIR}/regress.patch" + sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c + else + echo "all install:" > "${S}/src/test/regress/GNUmakefile" + fi + + sed -e "s|@SLOT@|${SLOT}|g" \ + -i "${WORKDIR}"/postgresql.{init,confd,service} || \ + 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 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() { + 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 + + # Avoid file collision with -base. + rm "${ED}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)/libpgcommon.a" + + 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} + + systemd_newunit "${WORKDIR}"/postgresql.service postgresql-${SLOT}.service + systemd_newtmpfilesd "${WORKDIR}"/postgresql.tmpfilesd postgresql-${SLOT}.conf + + use pam && pamd_mimic system-auth postgresql-${SLOT} auth account session + + if use prefix ; then + keepdir /run/postgresql + fperms 0775 /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%/}/run/postgresql/" + 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 in 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 + + 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 +} |