diff options
author | 2013-02-26 19:14:10 +0000 | |
---|---|---|
committer | 2013-02-26 19:14:10 +0000 | |
commit | c8b1e8495843563f3c56f929a4dc3484c8db2bd1 (patch) | |
tree | 717fda5acd8f3fc67145bcf6fcd2639c9cac62b9 /dev-db | |
parent | Roll dev-lang/v8, www-client/chromium p.mask entries for M27. (diff) | |
download | historical-c8b1e8495843563f3c56f929a4dc3484c8db2bd1.tar.gz historical-c8b1e8495843563f3c56f929a4dc3484c8db2bd1.tar.bz2 historical-c8b1e8495843563f3c56f929a4dc3484c8db2bd1.zip |
Remove old
Package-Manager: portage-2.1.11.52/cvs/Linux ppc64
Manifest-Sign-Key: 0x7194459F
Diffstat (limited to 'dev-db')
63 files changed, 82 insertions, 10785 deletions
diff --git a/dev-db/postgresql-base/ChangeLog b/dev-db/postgresql-base/ChangeLog index c2fb02301db3..bad4f4d66087 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-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.230 2013/02/26 18:51:12 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.231 2013/02/26 19:13:45 ago Exp $ + + 26 Feb 2013; Agostino Sarubbo <ago@gentoo.org> -postgresql-base-8.3.20.ebuild, + -postgresql-base-8.3.21.ebuild, -postgresql-base-8.3.22-r1.ebuild, + -postgresql-base-8.3.22.ebuild, -postgresql-base-8.4.13.ebuild, + -postgresql-base-8.4.14.ebuild, -postgresql-base-8.4.15-r1.ebuild, + -postgresql-base-8.4.15.ebuild, -postgresql-base-9.0.10.ebuild, + -postgresql-base-9.0.11-r1.ebuild, -postgresql-base-9.0.11.ebuild, + -postgresql-base-9.0.9.ebuild, -postgresql-base-9.1.5.ebuild, + -postgresql-base-9.1.6.ebuild, -postgresql-base-9.1.7-r1.ebuild, + -postgresql-base-9.1.7.ebuild, -postgresql-base-9.2.1.ebuild, + -postgresql-base-9.2.2-r1.ebuild, -postgresql-base-9.2.2.ebuild: + Remove old 26 Feb 2013; Agostino Sarubbo <ago@gentoo.org> postgresql-base-8.3.23.ebuild, postgresql-base-8.4.16.ebuild, postgresql-base-9.0.12.ebuild, diff --git a/dev-db/postgresql-base/Manifest b/dev-db/postgresql-base/Manifest index c2c7d24505c1..908c22013e32 100644 --- a/dev-db/postgresql-base/Manifest +++ b/dev-db/postgresql-base/Manifest @@ -1,77 +1,39 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 -DIST postgresql-8.3.20.tar.bz2 14624435 SHA256 922b6165dc21739356e22ba4d53e08f3b26cd38d8fb9569d5f8fa6d239611163 SHA512 e709632db165f543e510334adfa191ecff6fbe5ae6726578cbb5e4858de62fda53e67b19171c302492361c580bf6894af84dc97ee81e1146a04aec2984d4f91f WHIRLPOOL beee4643d4c2212d9d49390bf1f3ff279f54f2d3c90743610ee59d7e8b93a1e61136654a1f5abe5d49a7826afdea8166ae047f7f2eb2f461c543bf3111f294d5 -DIST postgresql-8.3.21.tar.bz2 14626010 SHA256 a64b6de9f8067b803f2ed46a025bfd2a16a5ae270db60e440a698f2c07e234f8 SHA512 6da6fab655412fb2cc59ba6228596d6d3caff1a0c6bbd574b61c807bc18941b8d3db6824ffb7da1ad78d89c61d4407402bdb0904bf7b60c49959f40cb2bf3191 WHIRLPOOL 1bb3afefa2610537a35d148ccf2b65d6fe2915774aa61e92afeaadb3c6e923bf1771be7a5828c8ac67d2a0dac94f8bad3330cb38fa2f3b6993ebe493998f11a0 -DIST postgresql-8.3.22.tar.bz2 14630723 SHA256 17b8f3709c0442e25329e41743f980b10a3149940cee921c28e0bb5b51fef0c6 SHA512 bdcde0659062f5045c6596cd5bb7e90e7e99cf6316896d211c5125ce11f52f2ffdc911aa960556ef06c5fb62a5f2e6efc3555eca060df7eb8bebcdc805d73bee WHIRLPOOL 093dceec2b2c25af70048e7fc49b1f3741115f362777c0f1687745a50fa3cdfd8ddd6b42be0c256b413188e17dfeb977c41aab56f0f91f3010d491278e9b36c9 DIST postgresql-8.3.23.tar.bz2 14684669 SHA256 17a46617ddbeb16f37d79b43f4e72301b051e6ef888a2eac960375bf579018d9 SHA512 fa8e01c615298e4e4c77e0c0bf26913a96572d4c578c48c77fd9197ab20fe5c43ed1e72b9552ed266ff272d859014da0c8c8d11a120b6c01bf561c7d0f77fdc1 WHIRLPOOL 25d737bcac9e77529e3cf07741acfb156e3991f6bc6f154d7007ee879b5c510261eab96b7147c2cc485506c28cfc6692b0165a6d370a50e6de0dbdf7900c0b50 -DIST postgresql-8.4.13.tar.bz2 14666613 SHA256 20dd3442a3fa3a4fb1813b58f969ce4bbc54d73194fd4fe20d6f1313edc48cb9 SHA512 c6294846bf9adf39d5d57d2df26023ed4aa83464a773789eaaf5823a6dd6005eeb756f3835caaffde72729edd5b1f0ab300309417a4f9b570d6110b62096f1e4 WHIRLPOOL 1a9cbbdf1d651e49d85b7edee5da70fcadcef20a10fbc4340bd43679144662c68bede5c68b38933aaed8cc1a9a4db8c0b48e2a183140f901e07f09055e958e96 -DIST postgresql-8.4.14.tar.bz2 14679559 SHA256 1172e7735beea8a933eab0a4c01f9ad49fe872d8786af12a7fe596346b1d133a SHA512 bf9ddb393de08bbff92708b83697b907fbf34229a2ce66e1bf97c1deb9630c37c9a363f9305889e1f6ce4671d116a2c267302b7681281bb0482575ac81d6f28e WHIRLPOOL 8fe681ce8d263116fb2d3554adb2f45c1b21f7d6b840396fee532f7f200809dacc5127df7102b97be88193cd39148b40c81d781ec73ffc508e4908b0af2426bf -DIST postgresql-8.4.15.tar.bz2 14701182 SHA256 6a83771bbbdf1ad9c1dd900da3fbfdf6ef75857db8e012f7129a1f865279bc4d SHA512 a1019c9324db9fb582cb554536c06d8f89a7dd92649e890206ea6c9d3e99127f37ff6598341505ce9bc1b095190583a53bdccc18773422097c33da98c17cb25d WHIRLPOOL 242bbb44a6042a40ad7a55a7b98422c21cdcf77cc778ab5f4a3e29553dc83a182ce2d7415df430545fdd9d8f3e53a21d09377f1f049269bc323c5f749cccc19f DIST postgresql-8.4.16.tar.bz2 14784029 SHA256 8d03d94d3957019227066f427ccb11232a823f2558e2f57e1ea2bc9ba004612f SHA512 05fd72b61eb478c3e6682956ec7a1216490c9b5e430f82baeba2a75cb78723e622b0e513153d64373919747c9e12647fc58aafe8a7aa2b5789baa577597e8c62 WHIRLPOOL 58b3c3a15478cbcb17e2447e30b21a16b1846c9188919ab11e4fe5ea5933803872eb5f6154630b9e8a053d636eef8d8f8fda5dd755a54ec978dcab3a93abf5b5 -DIST postgresql-9.0.10.tar.bz2 15015826 SHA256 4394184b0099e8c86a482f7d62930aa31b50fb23e7dfb8fe9e1d93eb828dc729 SHA512 93a6d63d89800f9fc2eeef694c55afcdb8b8a255a2952a69b1816a31b831d0f86ed8b8fc88ad68cbc27f322eb1aba24e2cc9d891a5487217753b3f196fa5b754 WHIRLPOOL e5161e09c636f6a48d72de4befb967575a94b429129e72e4eb6013dc074bfe4f8ad43e4a15c40ec7e00b64d790cdd8da0eeb8a0555db44ce59fb336b0153799e -DIST postgresql-9.0.11.tar.bz2 15044657 SHA256 a6dcdc8dc5cea5feb4522b0638646173e5a6680bd1e9b7ab72a8981e54e07b2c SHA512 54622307b1a2f27d1dca919e1ad1e098b64e9e9fcbbf7a8b17cd8266af9c6712028cdb24a41c7c77a55c61c9445b872909f84db349117f58dd36d8cb450667a0 WHIRLPOOL 2d1a3f3faa7b3658c0ea011641903df71b8fcf0f1220cfcbde7c8228176cc9eca5b5a38c8eee2b4b64132a0f5844b5b3ac25ba9d4e979f3e2f7ac27a96716720 DIST postgresql-9.0.12.tar.bz2 15122949 SHA256 80f06873cbdc8789abe6806dc52a708d9a7f4ac5432ffea4c069cbc33b2b1524 SHA512 e5259b0ee64d1f7d0a7662279433c782cf3a68cd5713b296f4e1225323b951b7d8512057be823b40d7c32487f5a508770aadd732c9c1ceeaa835e661bc8e010e WHIRLPOOL 12fadc8037825216533062c0ee7a5ae55e80771acdce6ad072e45f3432af00808cb94439a68294308b0585135e2118c36a7c9686d57f2d77b1d87a83d3dad514 -DIST postgresql-9.0.9.tar.bz2 15008401 SHA256 87417d181a0f534fa96ba1d315a62b721f5bc22b7bb70af3f674bc1a68a5da8a SHA512 1d0c1f38f7872402b3011a624c7fb11cae79d165432c2134e37d078bfcbf836e5d55f2e9c92770d0a4c7db1680b2287ca55d981b8cffc0dc8b1a291c4ec4877b WHIRLPOOL 4d8c3e987ea1c07e4550d8b79eaee8cce2fec4cf39aab70bb69f364796c3ff472f5e0e953bddf3f1dc3878b4db458c2ca14073df8925e57b614974496476c921 -DIST postgresql-9.1.5.tar.bz2 15602594 SHA256 0b889c132426fc68d8c2eb1bf112bf99cc653e9c95b5f4bbebc55cd9a8d6ce44 SHA512 63998808c8a5ad7a4712d6639a7d77d01bfdfee1ea41a40e7db1c4c469e3ecdf3af78a0451907aaf856f2e76e5166de15fb9009143fca8b4d36c964291402930 WHIRLPOOL 1d89227d7801e7d45465130e90c6f1ede8cca459e3879a9f641c5d90a6ffbd8a77cd6f8b489d7a8273246ef9d51c7c5218f611b9816351a7f4562bf7ac0112d2 -DIST postgresql-9.1.6.tar.bz2 15621370 SHA256 6e396aca621a95b9f5f7292a79ebe6ce892e36c7f7021814e1bd94bcfc6c31e7 SHA512 80fbb62734ac20a500ef9f0a307543011a376c3162304cd8996cba3ea4aba32681dfa556ba06450bdc400971efb65cc9ce2635844950e4f6f31badaa93fe25a4 WHIRLPOOL 1cc8953beb9cc0cf8461147a7c4fa1b5312293625375568240e25ebcefe95334c1e4192df412a7ae8f5d018ded57478763b0921e62602c17c7b3ef81db688e65 -DIST postgresql-9.1.7.tar.bz2 15688516 SHA256 df19eaa98e6065034401b312f476ab4d3c27d67e0ae5063400eae8b00d333c82 SHA512 bac35312d7869f8b1668c2cd1aa08edfc8803ac0dcc03146295ce394ed83fb7c8666a55668bff1f8388b1f3257bdf545625f9df9bf79ce9b9573edfd6e23be5f WHIRLPOOL f9fb4b986c90ba0eebc52284a9a0926bd740b45be3c9cb5dccf74f994a7477f8a615d70ca0d7f33c72e02ee3e06c2a6a56d6658cde3a07de089cb0733e282b0c DIST postgresql-9.1.8.tar.bz2 15815313 SHA256 1d88f9dda24062dbfcc09aca9a316981f2aa93322613b853cf32d7a431b44c6d SHA512 7e4dc17fda40dcc8117d750866aa52e950e52c5d50f7b10c2f01fb4a5fd6f09ec5000d0977a0636e047185cf0de3f6f5e41eb61ac6e20a6ac39bdeae452de4af WHIRLPOOL 6c00342733ec8ff0d82874184235a0be08bda4e624afa25c81e183ade8a5555b782361d8d914a018b9549c29807b5e67d8c806d7136ab299cd3ea20c302f530d -DIST postgresql-9.2.1.tar.bz2 16113737 SHA256 db61d498105a7d5fe46185e67ac830c878cdd7dc1f82a87f06b842217924c461 SHA512 37e5c193006c548d0b1e200e9dca18ca918a0fe7d5dcea1615ce6240b7f13d9ea30913ef3b309abac3a4c15f65202aa1e72b1a3cc0b22321854fd6187dbac8d0 WHIRLPOOL 97872b8354ed0efd0aa7bd2afa5c127e9aecfce5d44d8a10e02d62050321bf4a948e7d3a4ab7f830afa4f8c2257adc96408c09bd09c8dade8d9c32ea5181f8c1 -DIST postgresql-9.2.2.tar.bz2 16222148 SHA256 e1a7a854a98896cb7fcd1696a76fca6f3bcac94d75e68a6154ffe2b69184f7f3 SHA512 147690b168838b7d45cc805882cb6ef628cbf656ff115d32ab76c4ad38b06aa00223f728bf0e5befcdd27cc4e27a917493d857f1f29006952f0ff07da6615808 WHIRLPOOL f67b8ba8170f3a03ca5ee050286f6e830cbd086f6ee15095d5ec0e0cc48a342b9db263759451a63cdd9f669b0d55cbb3689ca781dd9f42f1cdb9e57c67ddb0c9 DIST postgresql-9.2.3.tar.bz2 16371616 SHA256 c4f5a63290c0c32d8d9899edee8188d0c8ab124a7199b154fac75e62eec35f7f SHA512 e2520ae03f3cac3effed6e8e45900f6718a944c9a3c90d856819caaeeb6ba9b2324744c18a37b8e9bc5d7e63abab5b84f20259b797fd81ace0040a578f87aad8 WHIRLPOOL 28d948285392586f89dd39f757560413289c78e2a0929c3104608936b64a3488df85a8ffc38e516253185a36738ae308ee44eb9e08d2b0d8196e94488112ba82 -DIST postgresql-patches-8.3-r2.tbz2 5501 SHA256 adae4c048745de04fd44f0408e8ab85aa5cae283cb3ddc2962e0379905cca73f SHA512 6f7f3f3e7bb22da3fad237b2f14e2723004b818d6555031054dc3d03fb51d922eefdee90d053673a8e0ceefe06868d9a6427046a4da80d44a439aa3114c54819 WHIRLPOOL dd25124acfbcc717f0e908787c690f35f905adc4fdee5349d09924371f66bad281a89be60d90be98a2824608c105c7767e5f2b75d95587bd346cc2869366e140 DIST postgresql-patches-8.3-r3.tbz2 5490 SHA256 5c791bd4ddea564341f4c2766dec6749756938c5da9c289e35ed92e98a3c2bef SHA512 fa70d615df28b82159aa6d120f6fffc5700902b6b7a2c36d023a0ab4c113b7fbe5ca9dbc391ee6f1e934e3582c61d6b2e6cd73121f9dbb403d32c56d585e2140 WHIRLPOOL e126798b28496ceb6be2979c39cf9036ea4c5cbee19cdad65f5ff0a6072f417be8b332e16ca5f358f57326afd577a4145ac964d5abef9b069cf32f84692f9e9c -DIST postgresql-patches-8.4-r2.tbz2 4822 SHA256 9920097ff5243df28788a6f3bdf6cdad38e6c42885f38da84b0f2c8c242954d7 SHA512 e074509ea8246ac74deae98507d29c30e0def6b88cb0c578294ef58f165681f4c2927d8e6392e34f57751ddb21e3c50852da3d3f5ca40f95a8ce89d65412e1f9 WHIRLPOOL 225336ce3e4323e9a9c16892def1065556d4c324e14a48553e3bb9a4ad6048d16731088adf4bc4b29ce3d692bd0e900afa1440ab2ae0a2710034422941a9e14b DIST postgresql-patches-8.4-r3.tbz2 4821 SHA256 f2c47ff5cf6af20020c87bc34362615af66675d7d44dd020ccfae425880e1ace SHA512 149434a1a55f130b91b87591ac6bbbd263893e90facfdc47418320561a91cb818dea6367af5b8afbb6c9cccea6053692ee3008c62cbe40e8819c7cac04389334 WHIRLPOOL 30d5945bd65e07f114d8ee27bcbc1dc7ae136a2b5a1f62ec44aad325208dc8387ae11f58c21ebf1447822b35fe35b79d64c86cf763e146dc9c2b5da7dc883d47 -DIST postgresql-patches-9.0-r3.tbz2 4503 SHA256 2d454575423f0e56f23d540fbc865309d0bee3f80e5e05a7e1d793a7e70763cf SHA512 1a4e2c2d7ffe91cc7847ac42b2e83d708b38a93addb17d8a7234a159aa06bd125b2e915d3e78f7732d4e4ea94b897899ed832f4099b9260418fb1f1ecf265d38 WHIRLPOOL f20a030fe3244879ccddfcbf816bc7caf22231bf68c816eb5552968217c5adb7ff9ddaf5cea45ff576b6e7d2fbb9ac1276ffad3b319a4facf93a4ee409edf435 DIST postgresql-patches-9.0-r4.tbz2 4525 SHA256 96f9af00dea1c33f9c77754e8ee37334012b8098361c321bd3f562ca9c32f6b8 SHA512 1e792eaf1e194e7a109a860216de98929bc12e6905846524e795fed7e8506f8f0e2e7349ead4fd9ba196c8eb6af2f5b143d0eecdb4cb7061253257acbce37873 WHIRLPOOL 8a32c0cd7f6b845496df8d1f6a0b2497625c0da36c5af1d651be086e9cd4faec48b56b04dca894a0e43e91309868db3014213d9989da5fd1d52d5b3775f8c1ad -DIST postgresql-patches-9.1-r1.tbz2 4547 SHA256 50cefff4a6f6e1fd38b99dde4793dc5f153b9691ff5c59fbb2b97864f1f7d727 SHA512 d6baafb0b6980b860157cd8b557a2d1f696e0a4b1f34ad46185fd0204df1fc66972398f9f8f47a49b6623cec2f790d98adcd45bf59329d126c45f07ee15b3542 WHIRLPOOL 12cb3a028e204c6da3e44e9c9c6388d5650a42fc35c9d25cf18f928bbc896d854ddabd9012b76c84fe74d3f6ccbd94742a3dc53e5a1101f536a5c9a31ec04a35 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.2beta2.tbz2 4466 SHA256 7033657bf66255fda3881ee6797ad0aa920e1910619228206b174065e5e348d2 SHA512 64150e055aabe04e1a298170a992c607313299d3990c05ac4146c05e6bb2a55e29999d45cf29d7111df5fda0f135980665c4c6c6c83d3f1df26c27334daf17bb WHIRLPOOL f67a99b39e99ab26e8d1125886493b53a3589908433618e7601281735dee4d2e54fdaed84e4608961264723cf27284e9ead798087f9b896a5ada8bdc70c51f9d -DIST postgresql-patches-9.2beta3.tbz2 4466 SHA256 7033657bf66255fda3881ee6797ad0aa920e1910619228206b174065e5e348d2 SHA512 64150e055aabe04e1a298170a992c607313299d3990c05ac4146c05e6bb2a55e29999d45cf29d7111df5fda0f135980665c4c6c6c83d3f1df26c27334daf17bb WHIRLPOOL f67a99b39e99ab26e8d1125886493b53a3589908433618e7601281735dee4d2e54fdaed84e4608961264723cf27284e9ead798087f9b896a5ada8bdc70c51f9d -EBUILD postgresql-base-8.3.20.ebuild 4195 SHA256 d420883590f3b4aa830add2e50c72d47493cca1b2f6d77246ceace6a1b01bfaa SHA512 4462bcf853095a983bf0ab6bb46b21a807b1f4b8c763faf52de11e7890404822da7e6b972328214e4c4e330032cb39bd94065f6a3e1370e859742e239d30a523 WHIRLPOOL 8c1c53df818d1c88a88f5e9909edb9089e1ea64ab50aa13e6567ed30b3cf7bccfda464def5202c991940fc8a120c6ed57835d2f2f56d53cb03d1654cddfb7734 -EBUILD postgresql-base-8.3.21.ebuild 4194 SHA256 e090a4f3e0547fdcefa3316368b8b6fd9860f91134cc5813e73276c327b8d025 SHA512 87e692290a58e884778634857382975084c030d837649d007b0af38690412819570f6beb719b3bc13d21c22ee9fef18742622c46c5e05ed6fdcf80c675b19ac0 WHIRLPOOL 1a515936f987010c2f283481a30553dcc3de946a8737d8ae8447ea6f5fe035143f7af07d69e5e6dfcf01ea44889542395c62044015fc98af596670c5beed84e5 -EBUILD postgresql-base-8.3.22-r1.ebuild 4370 SHA256 68cc868489846b5d9a01496e6eb7b4290e9d340fc4f9391f1af83361d1ee88fe SHA512 5b678ee05bc2ddf45290ae373a005eb429e35e7e63d2fc6d41ed5a5318b635ab9e2646354d383cd0b4be602a5b046efe611b69b936f999a783aec77cd0c59508 WHIRLPOOL 7eeac301c00823628a3856f8d4132a07c34d7cac0e875566ed4abaae2323b80a563dfe4c5135faa849e2e81de63902c2ab0a7ff35f2f653e40ef4fb1832e25ef -EBUILD postgresql-base-8.3.22.ebuild 4205 SHA256 94cd16986be459b8bf89997d21ad64f0c8282c0dd365df23dbf039523e6b1391 SHA512 ff8643ad1f60af4b0c737bdf0997c3895bc0f28d785776a78cb00a7dfac364cec62d372cd591aaaee8f53959e4dc9634027d32f0f12385a01ef0f939907cd09b WHIRLPOOL dc7dd20a8d26ccea94aa88ae8b3541718d4a6b7a4e237ff68eaeb8a548fdfb2cac73814af404eec6da586ec68f6c669277d349c13e9948b950f92750724ec6f2 EBUILD postgresql-base-8.3.23.ebuild 4335 SHA256 aca7a36a441346a771d7ece249f4b73f22e5eaf1433d07b89c904cfefbc8c717 SHA512 d50265f4bdca8633a2112256831c8252ab2375179da91590a1f8f6c4cf74f9fbe5ed00bb3e101c5cb643b7894b5baa6d717d01fb720641de3bded4b7c0d104bd WHIRLPOOL 6042e6ac644c94f0554b0abaaaf769dce73413691ce8aa8b4f23e62bf1f7b14fc75de694f8b0fb97162cfa624db04876b033bdb77f65c18c7877eaa5bb6c7389 -EBUILD postgresql-base-8.4.13.ebuild 4199 SHA256 a1a0442e6042c090968f3fb99bf20973e19d4b61e597131160f996db651cb45b SHA512 c869bcc45a4c13684681d93a9353cde50ecc922060916083d7d95d2b8954a90b58beb0dbcb7a06e36aa20712d94f6e4b07f5a1b04137b84053a7db3dee941100 WHIRLPOOL fc187f8e32ac742d6041a0ed8a0bc2970ccd1505848d4468c001c9376957f5babf2c8edccb115cd591c0fa20f925eacabd5cee1b22ff750095ed6e97dfe49cfa -EBUILD postgresql-base-8.4.14.ebuild 4198 SHA256 6f84572fc4493c352e0125f481596448f0217a9cc5a9e8c9cc437b190c238b51 SHA512 a15388dfd0404ad1b280a17f44654e90d20eb279a9ad22868308311940c5dfb10c8c74b21613d92a1fd3ffc01ae0e571cc3e7bc110a20ab46e4814d6c81a270f WHIRLPOOL df1ab3867326bb0f03698da8fd9c622c482659a19c66d0a2e1081ab06a990dbcdb5ce917d5740faaae5c9d7ff60c4461e8c24a52cdec28f2b1938c3a4c2cef67 -EBUILD postgresql-base-8.4.15-r1.ebuild 4369 SHA256 20626eb40f1609925a9f41e99d9582a07b16afd31e0c4825f6c083ef42be5d41 SHA512 2e65b5fa4721c6b5b2ced3f97f18d129f6bd88c0ad88897ef179aa4c4f97c4bc6c3d060f7a69d27174421ffe937b3aadec9b4c23d2a5ce2b698b21f91857c97c WHIRLPOOL 042c1eae23577b278888f619791c5b520228d68902ed02e92ceb8ab6b696b8f942eea1b4cfdc24c1670ffcdcdb9134d46b6a37f6ad87ed88aedf1ba8456ff1ca -EBUILD postgresql-base-8.4.15.ebuild 4209 SHA256 50b1c5dbe757f6f27f09eda11e472489c8851859c91c12b7394e1e471e7358a6 SHA512 fb47f954050b54f15a73ce97aee406928e9ad02b71c6e9bc136f6d99708fea791a3f6baf0281d6fbb1c8406b14d3575545f546aab985c995fa2e4a4f78c89cfc WHIRLPOOL de774f6eb9524f74143eaf70aefd0f4219d5914fca900f3af244d894f67505ef7b12511a3a6b11fd46feca8174adc7386ea87a9712406f62588c55dee3b3d429 EBUILD postgresql-base-8.4.16.ebuild 4334 SHA256 9cbd90708511efb30bb28d349e1c352ee3cf2f9e9ef776156ce8274b9dc101e0 SHA512 67be24885d8b7464324ef747ede81660afb9bc0cbdf1c4499f17b6f5e0883dc16e57ec948a67be08fbf82e3751a70a2a03accb757c2e3130faace0bdc4c10dae WHIRLPOOL e9a1b559b2347c6b53a2bf974671108840a73f9271e1c20b1ee840b2e87c12fd958323148bba7356b634f130a896ccf993635d709459e3b41fb1df8fcd5d7e4b -EBUILD postgresql-base-9.0.10.ebuild 4352 SHA256 da1fc2212aaf294d60a74ee0c4951e58e3f3b0bca025bf19821f4fa7c126884e SHA512 a97e3c59edd334d1f649a68439e7326bca528b783b7452719625520d8af30ebaf1d7b0be1487d54c59455b94caeb027a2033f035b2476db615ca4b45b05c3e5a WHIRLPOOL ba44e8cc393ad4a1f24a7d6d16c4c2dddd4f0b3bae1e7fdb2874675250a0ee08f264ea6131212912694f31e5b97dfee2f5a1424c18aaddeca9dc82d90c067d2c -EBUILD postgresql-base-9.0.11-r1.ebuild 4523 SHA256 75b2e763073852d6d1e162f4cfd9e72e3ad60f18fe01dbd1a1772d11281825e9 SHA512 20d94d7ef6deeba2c244802e1ff1b18b696e9d0ff149bcb3cceb9157f3837e4bb8c134f848ca7d3e2db4e42955d7daf2b3571d7fdbf6e5a1e7d809c6d21d3918 WHIRLPOOL 2129e922dcb68820212faa2ae260f442e8ec94fbf90b56ef31866c591ed94f134c59e77527531f800845cae1c5ee4b93c4f53dbb7630939bea6d8a7c38671361 -EBUILD postgresql-base-9.0.11.ebuild 4363 SHA256 e79e819b04a36bd6a758d1492e85a79557ecbdce218c5b1582d26eb0a4831ca3 SHA512 8acb7b3b6f6d1515a9a9d30a3df1fc75bb1fbd180e5e2308873f84e8445a6ddb7683511782f2c6ff8b5b73f515d2d39c70f3fd9a4df83c7a3ae5d6812f6d0087 WHIRLPOOL 174d79eb1e0e2b0377862dea1269786ef0fbc428f96bc141077c5cd771d51395bf449da6e02cc333c4f931a3b5075a6192e69f4dc8b95ac3dbb4792c2b33cbea EBUILD postgresql-base-9.0.12.ebuild 4488 SHA256 335d5173e08fbddd0b5a655072b65a23efbc9e105524f51b32830c18a5c11519 SHA512 42f36b984b4fa9c7f18acd24bf2e36a527dd6239107267f2855eee538c0a225ced8725736b46a65973ba2e2a8bf6f366208081a2b04234124fb796547546162a WHIRLPOOL 2d5640c2321a27b6249619a30f20c163adb4a9d9d3de72fd3725753fc970383b7eed1ed4c4d7e8d6a8bb1e737f2b619c9112da92e1b2ac13d7aaf90ecf8661e7 -EBUILD postgresql-base-9.0.9.ebuild 4352 SHA256 521991ff8f7925c17b3103b41b3c380c03a1a60d8376bca3bdd218f8771746f6 SHA512 fa94c34d63098da2a5780c79aac9816f9065cde76a7917b69ffb1208bd480a79f73c55bf098d918917e1749638de3c8bebe3f434c6b8093b30d32c1e2311b91e WHIRLPOOL 4d18cda44379cc020eb547be6c48bf8ba75349803153b6f1323ceb7ba65bc50e2589103d1d52f933c96acd8e2f867cfebed77a6a4aa053f023d7356ea680b796 -EBUILD postgresql-base-9.1.5.ebuild 4365 SHA256 9d13d6d744863e3c97479790918def76f8d2a2faa4f47f550cbc0452f2babda9 SHA512 4703bca4ba24074b2aeb2dfd68dbca3e61e73089af0ba13c5451badc2e8e2155ee197f4bd1ef29612bf2239ad2ae5278367a07c25d1f65f8da761373ab32d0e9 WHIRLPOOL 4254fe6e1d5df24803796ac378dce72b9917f85452dcc268879ed5530dcb3addee73f9aebb1f3aadfaab95e1a143c5bf2a5d72c440757d1935888957c448769b -EBUILD postgresql-base-9.1.6.ebuild 4364 SHA256 1d998be84b7903c2134504668973b6377e6f52b8a3e10529be82746d6d98db94 SHA512 b3a4a41309bd147dc7bc4562e57b5cc0be4722b1d74ceb40ae69f1a6c8972824ea00ab7899e8ed81a35693b1df1b05318880220bd58011910e381465e68543f8 WHIRLPOOL b11037c3e9cfaf0a6272269327ff7f06158878b2f4ca21110a166933a08ce93f10eae8d90e5dfb90709c808e0f43446ab10091d7c2fd488b13c0da16a4e89459 -EBUILD postgresql-base-9.1.7-r1.ebuild 4536 SHA256 bf58f9ce080d8df4f0673b80c3553463674130e680eca15d19554d0e82f1ba8b SHA512 2df841e4c531b360d93d7a8e2a533b3473f46a9c99bfe1f992e7fb912f5a8fe7924e3c8a4761e1bc49c35c5f9c8fe92633055b53334fae8906e213ff6cbf90ac WHIRLPOOL 030cc904d923e42e6e6b7e2a48cb7fe45e77033d3faf0fbd9dae76b383489e47d95930465230ebbd21723ce4a5690bee1e6a989d839a365b141c06427002b8ed -EBUILD postgresql-base-9.1.7.ebuild 4375 SHA256 afcf3959f531b574e6e39623126494020bd7c2587c06ae7fed838efcd34ecc1b SHA512 24b2c9dd4f22f610fe52afceee760703325006995704ae3da5ce0b3b843d2e05a13f703f103e4d945e91107d08c10f0b241525e70a5e912c291e83b35a752da4 WHIRLPOOL 5d35a37c378a6cc5af3b6cbe83480d48492b8a5c9f15f51cc6be10195c3a7f530b3cf6846ceb31fdb9816c65717d1ca64c3bb9c915fc783a409d4a519fa4c77c EBUILD postgresql-base-9.1.8.ebuild 4501 SHA256 9d752a03f327bef103be63c63cfae5d848a8acb0d29464443df01085862a43f8 SHA512 0b394677250ae717b841dfeacf176d8cfe8a7f5fb49100e910c5e983e988386c5e5360cd6d45d126d94457dbf2520c0790fb93edfd5a51d2430de5a4fc39fa42 WHIRLPOOL d3e5d569732b3d30ed96b1a4c51f1af1b80b532abd2ed1e6f41c663c92d2cd2d5a54c7dc316d83f9ecfd24ec1391b4ca3f1118df11a2c5ccb8a2f7f4bf2504f8 -EBUILD postgresql-base-9.2.1.ebuild 4618 SHA256 040432239836a0264ce65c8674d0bf4acdb931fdd0d9471640a7e825100ad284 SHA512 915e71ed04ab8c91228a68c7152bf7f0b212668ba1387854e17e4ab45600ef92538db11e0205cdff8ad0b8591bb924d2245e1660bea70f718790ac52f5004c3b WHIRLPOOL 0e273677bf9410d5bd0a91db6b12068057e70c40979e8b337de169f4837ed39997e4dfba2a261310d877e723f87570eb164e8d6d131c10950da8e66e758bc480 -EBUILD postgresql-base-9.2.2-r1.ebuild 4790 SHA256 9f636ff4570200452281686af0821e29df8cdebec45b6589b5f7528ad62b065b SHA512 a2101e737bb66ad536066722cab133cc6e5b82f059e80bd5be7613fcd4cf33ea67152756b393bd72cc153f36f336a3249ad3c67625591153f38b5bfdd05a2e0a WHIRLPOOL e39eb62532bdbe48421b520f4306538c9b4284bc0b50745dcca8c28466ab2d789a0af0beaca787fe0b33c72fa50193cc385286f1ae9ee87c3d50613b4678d923 -EBUILD postgresql-base-9.2.2.ebuild 4629 SHA256 6a73fea7ef3365a3bfddd5ff3a9d3dd6d78631c5ba6588c9e8512d0d8aeafd06 SHA512 6f355e60bc0f8762eeb6a9bc02b63032dd8a9a19639bd05f8c57ab3c02c945379e1dbf5459313347f8cdda04bd4eebff62e75cb356733bc0f29f73ad9d2a4933 WHIRLPOOL 74b3484c6ab725347f6e8f333e1e48014ddb2064ff7d15a7bd7f1f1029616edaf03b7bd7b981adabb8699940701bb2336e270a00d0d73407264aa1ed69a12894 EBUILD postgresql-base-9.2.3-r1.ebuild 4750 SHA256 0af8fc4241559770587c31b8d6cb1cd27b1703e021850c3fe2df3982f4cea007 SHA512 0c37a92d3e1a477687d11e04223edfff2a031b2a0a278572980a0271cc69c504751f8eabc56dd4ad8b1a5570a25594b2506c9ebd96fb1742a021b9e95c350cf0 WHIRLPOOL a9711c63e6a297d6975709ec3a4ce8ade0abb417a3e671ea949123951b1fdb0fc74b7edc3084ca4ae7d16b71edee2f89d828e4ad78ae2f353b2b4ab3c7ec7f36 EBUILD postgresql-base-9999.ebuild 5040 SHA256 967c218b8f794452ff730a0fc92bee593fbd9b85c8ac81601f698c08bbd906c6 SHA512 6024b6909c7b735e336f36b244779965ed1aaf1eafc88d3aef9966bfebb6b8de503d362de03493fa5217a604de84ebb1676c8d914207c5372cbf6233337c84f8 WHIRLPOOL 84ef242e25fe88af6c99ecf3978eca61bf31a98516329e40a5119421f068d67d0ac0243f6cddbc5b70fff604b74f2890f20fe2704ee4aa2d1b5f0de8124a6f28 -MISC ChangeLog 59205 SHA256 569a6474b5af44194665c5ee990bc71a134b745c5bef9d059fb7084f1a9762d4 SHA512 33932e5807f47b30259279d9cf75a329b8b558f96b6ec33132ba093417d758283b0224c1c1cc2e6d210a7e8b65164857338a49239f58ca9d06a84c7ef40126e4 WHIRLPOOL 3395445bcab527227fae59d30abb99f9d85c82c3e2629fa8a79e41f55dc4897239a82d22a129a4324221a0d8cd654c3abf15a281b52fcd6e85984397207403c9 +MISC ChangeLog 59901 SHA256 5750f1a5b36362e25949d83e74e4d5df9ac859980b6b9f01bf426672002a564a SHA512 b4bedfe7bb9e2420c74dd4e037e59dc2dfb7f8a50b4b4ee11f4c81ccf655573e8359d5c6d21f86a677e17ca710dfb9d2e9e8c003da560216aad63d27eb7422b1 WHIRLPOOL aa1c2199f33b17df27c1dadd5c9b2036d1968fc2f3b7431b3752fef51bc2e05ce05046a4d904d7a0b343be65e43927dd83165251721679cc6c7af4dc0eb788e6 MISC metadata.xml 472 SHA256 ee20753f4083988318c4c30155901e99a800dc8fb19fd77c80f9947c72abbf4c SHA512 e2006ed7628e82b2f97543cf1fa3cc04707e9094dfcce5a7a28facc3f7b2712089cbbc00163aeed9d42a0703163db4bb5c7c4b032bfe4c83bfd83cff5cdc194c WHIRLPOOL 354ead8d64f98d69d74be1e69128bed50df6e0fd77d79a6e8c599f8bb12010014a43ee997cf9b9807a00b31463c1a71f620b261c1ef3b4d33cb915ffebb9a493 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCgAGBQJRLQObAAoJELp701BxlEWfNjEP/Axfk9c+EPZ9T9d6FfL8DYGJ -SC4nRCxZctsVTW4KWUovcAnoJzlRSgRx6HVADPkYnYBf06FktAQI0uRXRgqoVfd+ -76i+8N5r3BSvXuMG2aLQ+ch2XtBJ8WA1tzzfm1nfL4X81lIxVbONIIldn/3ma1Do -USSybElNmrmuNkJAadfh3cdMZ4g+/UZeDA7zMhgANlhdMGws6BVJswYZ/d3Hb18i -u1scGUFJH0bGQ9Trihf284H5EMLZ+8wozVurNQ81CXKAEEmvYNkv0ggIFyHm6Gg6 -n8f8r7pI+ySvnRg6oeErj2YL9nado6hnadOZQAjmq6XB/It/4HoVysS31caqbWq0 -B6vQyqqkiwmxsr2eaKMoBoV9MUb9q8nmUTNJIhyugcW34N+Csgj+oxP4PjErZxJb -oqqrUJpEsqSXpzCClnx82PvjQz3NJFuwQNsGG3veq2HI6wVWy9ijDLts9KfriyFE -zkKfmLWOXUrPcxDu0YzS86G4U4ePKlgrua89PMafpN6ol6AMHX1DPvVOoJqPgyAR -WGm8yiHpJI//Yum70uJaJ/DuPSHoSYmww8kGMtP9nN35wVix/EyqyTOfaYmvEDCO -3pAw0RPgIDDNPm85dsBGqU9AOccgJaftUSo9QgjFUgSdky261pAv8OBMKPojz1j2 -Xy9ZOUAUKENA/1EY5lPF -=exlG +iQIcBAEBCgAGBQJRLQjjAAoJELp701BxlEWfOHEQAJfVoa/fLsD8qZzqv7HtooE4 +2Xm3hbWIofMHk7BideGWUMy0bEkfrlirGUt7+WF0/5dnAsSKExJAmyA7RfOALbSM +X/HfLCsXOnA+Zg6ULV3ZdAkX/J+OltXY0k9sfMBgeftLh2Wlb2MtiUvYzRdakxAh +txSVPXmLdN56XpZFB9XcrXwOkQfbqkGQgqhnTaW5eu2pow+CevB48OKT9vgxNzUw +RyU2ppv51E98Pn9o8xn3B3cRgXLqWb8m6SSb461ie1PJxQbIVpVzP3+LSFqdnXtB +Rst6fkB0IMa7BR9zN7FFRbbNCGC+Qw6Lc4UTGik1A5LcFNGJmZRLebqzdQRVk4Vj +NJaO9RSGVDbyaKePnW5zsDEhEhudJOfVVS/7ykq0n9PSi4ldIzL31DsvP+RFBdY0 +fjNqFTSWoB8PRSuqeZyB/ZeISr3pXO7B7RAjtmDzgaWTEZFpF94wOatrdo7gVR+V +0S9DxbWV4ST8QW0N8Cbg923+/gFRv6i7QA5x+9ATjiqZlA4eZ0RMVQoi5U6NbcKE +Y+Osp5a3CvUj3fd4/eYMA2a8uGQpQ74rRPbhVMach2oFoIuxI/RiCnhXI+kaPHEl +47w3mfngpWsC+8rRyuuifGkOzFwzYo7g0ZJ1z6K0CCnvszPphGvK57dZD8OoXtkR +VtxIkWx/pSUCNJFuitDN +=wH2v -----END PGP SIGNATURE----- diff --git a/dev-db/postgresql-base/postgresql-base-8.3.20.ebuild b/dev-db/postgresql-base/postgresql-base-8.3.20.ebuild deleted file mode 100644 index fb299c406cfc..000000000000 --- a/dev-db/postgresql-base/postgresql-base-8.3.20.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.20.ebuild,v 1.7 2012/09/20 18:06:32 blueness Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg-intdatetime readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( >=sys-libs/readline-4.1 ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( >=sys-libs/zlib-1.1.3 )" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - >=sys-devel/bison-1.875 - sys-devel/flex - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/relax_ssl_perms.patch" "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - export LDFLAGS_SL="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-docdir \ - --without-perl \ - --without-python \ - --without-tcl \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - dodir /usr/share/postgresql-${SLOT}/man/man1 - - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - dodoc 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-8.3.21.ebuild b/dev-db/postgresql-base/postgresql-base-8.3.21.ebuild deleted file mode 100644 index 4d27acfff874..000000000000 --- a/dev-db/postgresql-base/postgresql-base-8.3.21.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.21.ebuild,v 1.5 2012/12/01 19:10:30 armin76 Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg-intdatetime readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( >=sys-libs/readline-4.1 ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( >=sys-libs/zlib-1.1.3 )" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - >=sys-devel/bison-1.875 - sys-devel/flex - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/relax_ssl_perms.patch" "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - export LDFLAGS_SL="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-docdir \ - --without-perl \ - --without-python \ - --without-tcl \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - dodir /usr/share/postgresql-${SLOT}/man/man1 - - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - dodoc 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-8.3.22-r1.ebuild b/dev-db/postgresql-base/postgresql-base-8.3.22-r1.ebuild deleted file mode 100644 index 1b9d78a40efc..000000000000 --- a/dev-db/postgresql-base/postgresql-base-8.3.22-r1.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.22-r1.ebuild,v 1.1 2013/01/12 19:08:18 titanofold Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg-intdatetime readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( >=sys-libs/readline-4.1 ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( >=sys-libs/zlib-1.1.3 )" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - >=sys-devel/bison-1.875 - sys-devel/flex - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/relax_ssl_perms.patch" "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - export LDFLAGS_SL="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-docdir \ - --without-perl \ - --without-python \ - --without-tcl \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - dodir /usr/share/postgresql-${SLOT}/man/man1 - - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - # Don't use ${PF} here as three packages - # (dev-db/postgresql-{docs,base,server}) have the same set of docs. - insinto /usr/share/doc/postgresql-${SLOT} - doins README HISTORY doc/{FAQ*,README.*,TODO,bug.template} - - cd "${S}/contrib" - emake DESTDIR="${D}" install - cd "${S}" - - dodir /etc/eselect/postgresql/slots/${SLOT} - - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" - - keepdir /etc/postgresql-${SLOT} -} - -pkg_postinst() { - postgresql-config update - - elog "If you need a global psqlrc-file, you can place it in:" - elog " ${EROOT%/}/etc/postgresql-${SLOT}/" - einfo - einfo "If this is your first install of PostgreSQL, you 'll want to:" - einfo " source /etc/profile" - einfo "In your open terminal sessions." -} - -pkg_postrm() { - postgresql-config update -} diff --git a/dev-db/postgresql-base/postgresql-base-8.3.22.ebuild b/dev-db/postgresql-base/postgresql-base-8.3.22.ebuild deleted file mode 100644 index 945d813652f0..000000000000 --- a/dev-db/postgresql-base/postgresql-base-8.3.22.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.22.ebuild,v 1.1 2012/12/10 06:01:02 patrick Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg-intdatetime readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( >=sys-libs/readline-4.1 ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( >=sys-libs/zlib-1.1.3 )" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - >=sys-devel/bison-1.875 - sys-devel/flex - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/relax_ssl_perms.patch" "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - export LDFLAGS_SL="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-docdir \ - --without-perl \ - --without-python \ - --without-tcl \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - dodir /usr/share/postgresql-${SLOT}/man/man1 - - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - dodoc 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-8.4.13.ebuild b/dev-db/postgresql-base/postgresql-base-8.4.13.ebuild deleted file mode 100644 index 72bdfc5fb4e0..000000000000 --- a/dev-db/postgresql-base/postgresql-base-8.4.13.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2012 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.13.ebuild,v 1.7 2012/09/20 18:06:32 blueness Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.7 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( >=sys-libs/readline-4.1 ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( >=sys-libs/zlib-1.1.3 )" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - >=sys-devel/bison-1.875 - sys-devel/flex - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - export LDFLAGS_SL="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes ) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - rm -r "${ED}/usr/share/doc/postgresql-${SLOT}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - dodoc 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-8.4.14.ebuild b/dev-db/postgresql-base/postgresql-base-8.4.14.ebuild deleted file mode 100644 index dde10aa3736b..000000000000 --- a/dev-db/postgresql-base/postgresql-base-8.4.14.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2012 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.14.ebuild,v 1.5 2012/12/01 19:10:30 armin76 Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.7 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( >=sys-libs/readline-4.1 ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( >=sys-libs/zlib-1.1.3 )" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - >=sys-devel/bison-1.875 - sys-devel/flex - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - export LDFLAGS_SL="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes ) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - rm -r "${ED}/usr/share/doc/postgresql-${SLOT}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - dodoc 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-8.4.15-r1.ebuild b/dev-db/postgresql-base/postgresql-base-8.4.15-r1.ebuild deleted file mode 100644 index 091aa6298f64..000000000000 --- a/dev-db/postgresql-base/postgresql-base-8.4.15-r1.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.15-r1.ebuild,v 1.1 2013/01/12 19:08:18 titanofold Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.7 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( >=sys-libs/readline-4.1 ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( >=sys-libs/zlib-1.1.3 )" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - >=sys-devel/bison-1.875 - sys-devel/flex - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - export LDFLAGS_SL="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes ) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - rm -r "${ED}/usr/share/doc/postgresql-${SLOT}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - # Don't use ${PF} here as three packages - # (dev-db/postgresql-{docs,base,server}) have the same set of docs. - insinto /usr/share/doc/postgresql-${SLOT} - doins README HISTORY doc/{README.*,TODO,bug.template} - - cd "${S}/contrib" - emake DESTDIR="${D}" install - cd "${S}" - - dodir /etc/eselect/postgresql/slots/${SLOT} - - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" - - keepdir /etc/postgresql-${SLOT} -} - -pkg_postinst() { - postgresql-config update - - elog "If you need a global psqlrc-file, you can place it in:" - elog " ${EROOT%/}/etc/postgresql-${SLOT}/" - einfo - einfo "If this is your first install of PostgreSQL, you 'll want to:" - einfo " source /etc/profile" - einfo "In your open terminal sessions." -} - -pkg_postrm() { - postgresql-config update -} diff --git a/dev-db/postgresql-base/postgresql-base-8.4.15.ebuild b/dev-db/postgresql-base/postgresql-base-8.4.15.ebuild deleted file mode 100644 index 42f8f22db37c..000000000000 --- a/dev-db/postgresql-base/postgresql-base-8.4.15.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.15.ebuild,v 1.1 2012/12/10 06:01:02 patrick Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.7 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( >=sys-libs/readline-4.1 ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( >=sys-libs/zlib-1.1.3 )" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - >=sys-devel/bison-1.875 - sys-devel/flex - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - export LDFLAGS_SL="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes ) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - rm -r "${ED}/usr/share/doc/postgresql-${SLOT}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - dodoc 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.10.ebuild b/dev-db/postgresql-base/postgresql-base-9.0.10.ebuild deleted file mode 100644 index 1a87857404d4..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.0.10.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2012 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.10.ebuild,v 1.5 2012/12/01 19:10:30 armin76 Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.7 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib )" - -DEPEND="${RDEPEND} - sys-devel/bison - sys-devel/flex - !!<sys-apps/sandbox-2.0 - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_controldata,pg_ctl,pg_resetxlog,postgres,postmaster}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - cd "${S}/contrib" - emake DESTDIR="${D}" install - cd "${S}" - - dodir /etc/eselect/postgresql/slots/${SLOT} - - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" - - keepdir /etc/postgresql-${SLOT} -} - -pkg_postinst() { - postgresql-config update - - elog "If you need a global psqlrc-file, you can place it in:" - elog " ${EROOT%/}/etc/postgresql-${SLOT}/" - einfo - einfo "If this is your first install of PostgreSQL, you 'll want to:" - einfo " source /etc/profile" - einfo "In your open terminal sessions." -} - -pkg_postrm() { - postgresql-config update -} diff --git a/dev-db/postgresql-base/postgresql-base-9.0.11-r1.ebuild b/dev-db/postgresql-base/postgresql-base-9.0.11-r1.ebuild deleted file mode 100644 index 46d29d6594e6..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.0.11-r1.ebuild +++ /dev/null @@ -1,163 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.11-r1.ebuild,v 1.1 2013/01/12 19:08:18 titanofold Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.7 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib )" - -DEPEND="${RDEPEND} - sys-devel/bison - sys-devel/flex - !!<sys-apps/sandbox-2.0 - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_controldata,pg_ctl,pg_resetxlog,postgres,postmaster}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - # Don't use ${PF} here as three packages - # (dev-db/postgresql-{docs,base,server}) have the same set of docs. - insinto /usr/share/doc/postgresql-${SLOT} - doins README HISTORY doc/{README.*,TODO,bug.template} - - cd "${S}/contrib" - emake DESTDIR="${D}" install - cd "${S}" - - dodir /etc/eselect/postgresql/slots/${SLOT} - - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" - - keepdir /etc/postgresql-${SLOT} -} - -pkg_postinst() { - postgresql-config update - - elog "If you need a global psqlrc-file, you can place it in:" - elog " ${EROOT%/}/etc/postgresql-${SLOT}/" - einfo - einfo "If this is your first install of PostgreSQL, you 'll want to:" - einfo " source /etc/profile" - einfo "In your open terminal sessions." -} - -pkg_postrm() { - postgresql-config update -} diff --git a/dev-db/postgresql-base/postgresql-base-9.0.11.ebuild b/dev-db/postgresql-base/postgresql-base-9.0.11.ebuild deleted file mode 100644 index b373f95a31db..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.0.11.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.11.ebuild,v 1.1 2012/12/10 06:01:02 patrick Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.7 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib )" - -DEPEND="${RDEPEND} - sys-devel/bison - sys-devel/flex - !!<sys-apps/sandbox-2.0 - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_controldata,pg_ctl,pg_resetxlog,postgres,postmaster}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - dodoc 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.9.ebuild b/dev-db/postgresql-base/postgresql-base-9.0.9.ebuild deleted file mode 100644 index ca3a9d16ff43..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.0.9.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2012 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.9.ebuild,v 1.7 2012/09/20 18:06:32 blueness Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2" -LICENSE="POSTGRESQL" - -S="${WORKDIR}/postgresql-${PV}" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=">=app-admin/eselect-postgresql-1.0.7 - virtual/libintl - !!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib )" - -DEPEND="${RDEPEND} - sys-devel/bison - sys-devel/flex - !!<sys-apps/sandbox-2.0 - nls? ( sys-devel/gettext )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - local PO="${EPREFIX%/}" - econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - $(use_with ldap) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_controldata,pg_ctl,pg_resetxlog,postgres,postmaster}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - dodoc 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.5.ebuild b/dev-db/postgresql-base/postgresql-base-9.1.5.ebuild deleted file mode 100644 index 24af01a3b882..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.1.5.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright 1999-2012 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.5.ebuild,v 1.7 2012/09/20 18:06:32 blueness Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${PV}" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2" -LICENSE="POSTGRESQL" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="!!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - >=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib ) -" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - sys-devel/bison - sys-devel/flex - nls? ( sys-devel/gettext ) -" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - - local PO="${EPREFIX%/}" - - econf \ - --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with readline) \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) \ - $(use_with ldap) -} - -src_compile() { - emake -j1 - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - dodoc 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.1.6.ebuild b/dev-db/postgresql-base/postgresql-base-9.1.6.ebuild deleted file mode 100644 index 6778d43d2b9d..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.1.6.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright 1999-2012 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.6.ebuild,v 1.5 2012/12/01 19:10:30 armin76 Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${PV}" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2" -LICENSE="POSTGRESQL" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="!!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - >=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib ) -" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - sys-devel/bison - sys-devel/flex - nls? ( sys-devel/gettext ) -" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - - local PO="${EPREFIX%/}" - - econf \ - --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with readline) \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) \ - $(use_with ldap) -} - -src_compile() { - emake -j1 - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - dodoc 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.1.7-r1.ebuild b/dev-db/postgresql-base/postgresql-base-9.1.7-r1.ebuild deleted file mode 100644 index 6d1ce7a778ac..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.1.7-r1.ebuild +++ /dev/null @@ -1,168 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1.7-r1.ebuild,v 1.1 2013/01/12 19:08:18 titanofold Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${PV}" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2" -LICENSE="POSTGRESQL" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="!!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - >=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib ) -" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - sys-devel/bison - sys-devel/flex - nls? ( sys-devel/gettext ) -" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - - local PO="${EPREFIX%/}" - - econf \ - --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with readline) \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) \ - $(use_with ldap) -} - -src_compile() { - emake -j1 - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - # Don't use ${PF} here as three packages - # (dev-db/postgresql-{docs,base,server}) have the same set of docs. - insinto /usr/share/doc/postgresql-${SLOT} - doins README HISTORY doc/{TODO,bug.template} - - cd "${S}/contrib" - emake DESTDIR="${D}" install - cd "${S}" - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" - - keepdir /etc/postgresql-${SLOT} -} - -pkg_postinst() { - postgresql-config update - - elog "If you need a global psqlrc-file, you can place it in:" - elog " ${EROOT%/}/etc/postgresql-${SLOT}/" - einfo - einfo "If this is your first install of PostgreSQL, you 'll want to:" - einfo " source /etc/profile" - einfo "In your open terminal sessions." -} - -pkg_postrm() { - postgresql-config update -} diff --git a/dev-db/postgresql-base/postgresql-base-9.1.7.ebuild b/dev-db/postgresql-base/postgresql-base-9.1.7.ebuild deleted file mode 100644 index 0cee20669e85..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.1.7.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1.7.ebuild,v 1.1 2012/12/10 06:01:02 patrick Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${PV}" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2" -LICENSE="POSTGRESQL" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="!!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - >=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib ) -" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - sys-devel/bison - sys-devel/flex - nls? ( sys-devel/gettext ) -" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - - local PO="${EPREFIX%/}" - - econf \ - --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with readline) \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) \ - $(use_with ldap) -} - -src_compile() { - emake -j1 - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - dodoc 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.1.ebuild b/dev-db/postgresql-base/postgresql-base-9.2.1.ebuild deleted file mode 100644 index 3f5e25cb5db1..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.2.1.ebuild +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright 1999-2012 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.1.ebuild,v 1.5 2012/12/01 19:10:30 armin76 Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" - -# Comment the following five lines when not a beta or rc. -#MY_PV="${PV//_}" -#MY_FILE_PV="${SLOT}$(get_version_component_range 4)" -#S="${WORKDIR}/postgresql-${MY_FILE_PV}" -SRC_URI="mirror://postgresql/source/v${MY_FILE_PV}/postgresql-${MY_FILE_PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2" - -# Comment the following three lines when a beta or rc. -S="${WORKDIR}/postgresql-${PV}" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2" - -LICENSE="POSTGRESQL" -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="!!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - sys-apps/less - >=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib ) -" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - sys-devel/bison - sys-devel/flex - nls? ( sys-devel/gettext ) -" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - - local PO="${EPREFIX%/}" - - econf \ - --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with readline) \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) \ - $(use_with ldap) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - dodoc 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.2.2-r1.ebuild b/dev-db/postgresql-base/postgresql-base-9.2.2-r1.ebuild deleted file mode 100644 index ab6ef1fcd258..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.2.2-r1.ebuild +++ /dev/null @@ -1,174 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.2.2-r1.ebuild,v 1.1 2013/01/12 19:08:18 titanofold Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" - -# Comment the following five lines when not a beta or rc. -#MY_PV="${PV//_}" -#MY_FILE_PV="${SLOT}$(get_version_component_range 4)" -#S="${WORKDIR}/postgresql-${MY_FILE_PV}" -SRC_URI="mirror://postgresql/source/v${MY_FILE_PV}/postgresql-${MY_FILE_PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2" - -# Comment the following three lines when a beta or rc. -S="${WORKDIR}/postgresql-${PV}" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2" - -LICENSE="POSTGRESQL" -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="!!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - sys-apps/less - >=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib ) -" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - sys-devel/bison - sys-devel/flex - nls? ( sys-devel/gettext ) -" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - - local PO="${EPREFIX%/}" - - econf \ - --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with readline) \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) \ - $(use_with ldap) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - - # Don't use ${PF} here as three packages - # (dev-db/postgresql-{docs,base,server}) have the same set of docs. - insinto /usr/share/doc/postgresql-${SLOT} - doins README HISTORY doc/{TODO,bug.template} - - cd "${S}/contrib" - emake DESTDIR="${D}" install - cd "${S}" - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" - - keepdir /etc/postgresql-${SLOT} -} - -pkg_postinst() { - postgresql-config update - - elog "If you need a global psqlrc-file, you can place it in:" - elog " ${EROOT%/}/etc/postgresql-${SLOT}/" -} - -pkg_postrm() { - postgresql-config update -} diff --git a/dev-db/postgresql-base/postgresql-base-9.2.2.ebuild b/dev-db/postgresql-base/postgresql-base-9.2.2.ebuild deleted file mode 100644 index dca331d69925..000000000000 --- a/dev-db/postgresql-base/postgresql-base-9.2.2.ebuild +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.2.2.ebuild,v 1.1 2012/12/10 06:01:02 patrick Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" - -inherit autotools eutils flag-o-matic multilib prefix versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" - -# Comment the following five lines when not a beta or rc. -#MY_PV="${PV//_}" -#MY_FILE_PV="${SLOT}$(get_version_component_range 4)" -#S="${WORKDIR}/postgresql-${MY_FILE_PV}" -SRC_URI="mirror://postgresql/source/v${MY_FILE_PV}/postgresql-${MY_FILE_PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2" - -# Comment the following three lines when a beta or rc. -S="${WORKDIR}/postgresql-${PV}" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2" - -LICENSE="POSTGRESQL" -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" - -# No tests to be done for clients and libraries -RESTRICT="test" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="!!dev-db/libpq - !!dev-db/postgresql - !!dev-db/postgresql-client - !!dev-db/postgresql-libs - sys-apps/less - >=app-admin/eselect-postgresql-1.0.10 - virtual/libintl - kerberos? ( virtual/krb5 ) - ldap? ( net-nds/openldap ) - pam? ( virtual/pam ) - readline? ( sys-libs/readline ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - zlib? ( sys-libs/zlib ) -" - -DEPEND="${RDEPEND} - !!<sys-apps/sandbox-2.0 - sys-devel/bison - sys-devel/flex - nls? ( sys-devel/gettext ) -" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/base.patch" \ - "${WORKDIR}/bool.patch" - - eprefixify src/include/pg_config_manual.h - - # to avoid collision - it only should be installed by server - rm "${S}/src/backend/nls.mk" - - # because psql/help.c includes the file - ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h || \ - die "RUNDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - export LDFLAGS_SL="${LDFLAGS}" - export LDFLAGS_EX="${LDFLAGS}" - - local PO="${EPREFIX%/}" - - econf \ - --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ - --datadir="${PO}/usr/share/postgresql-${SLOT}" \ - --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ - --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ - --includedir="${PO}/usr/include/postgresql-${SLOT}" \ - --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with readline) \ - $(use_with kerberos krb5) \ - $(use_with kerberos gssapi) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable !pg_legacytimestamp integer-datetimes) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety) \ - $(use_with zlib) \ - $(use_with ldap) -} - -src_compile() { - emake - - cd "${S}/contrib" - emake -} - -src_install() { - emake DESTDIR="${D}" install - insinto /usr/include/postgresql-${SLOT}/postmaster - doins "${S}"/src/include/postmaster/*.h - - dodir /usr/share/postgresql-${SLOT}/man/ - cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die - rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 - docompress /usr/share/postgresql-${SLOT}/man/man{1,7} - dodoc 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 6ca0c3889261..2ce2c356f67f 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-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/ChangeLog,v 1.197 2013/02/26 18:50:21 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/ChangeLog,v 1.198 2013/02/26 19:13:24 ago Exp $ + + 26 Feb 2013; Agostino Sarubbo <ago@gentoo.org> -postgresql-docs-8.3.20.ebuild, + -postgresql-docs-8.3.21.ebuild, -postgresql-docs-8.3.22-r1.ebuild, + -postgresql-docs-8.3.22.ebuild, -postgresql-docs-8.4.13.ebuild, + -postgresql-docs-8.4.14.ebuild, -postgresql-docs-8.4.15-r1.ebuild, + -postgresql-docs-8.4.15.ebuild, -postgresql-docs-9.0.10.ebuild, + -postgresql-docs-9.0.11-r1.ebuild, -postgresql-docs-9.0.11.ebuild, + -postgresql-docs-9.0.9.ebuild, -postgresql-docs-9.1.5.ebuild, + -postgresql-docs-9.1.6.ebuild, -postgresql-docs-9.1.7-r1.ebuild, + -postgresql-docs-9.1.7.ebuild, -postgresql-docs-9.2.1.ebuild, + -postgresql-docs-9.2.2-r1.ebuild, -postgresql-docs-9.2.2.ebuild: + Remove old 26 Feb 2013; Agostino Sarubbo <ago@gentoo.org> postgresql-docs-8.3.23.ebuild, postgresql-docs-8.4.16.ebuild, postgresql-docs-9.0.12.ebuild, diff --git a/dev-db/postgresql-docs/Manifest b/dev-db/postgresql-docs/Manifest index 0207b475e204..d87f67e5d53d 100644 --- a/dev-db/postgresql-docs/Manifest +++ b/dev-db/postgresql-docs/Manifest @@ -1,65 +1,32 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 -DIST postgresql-8.3.20.tar.bz2 14624435 SHA256 922b6165dc21739356e22ba4d53e08f3b26cd38d8fb9569d5f8fa6d239611163 SHA512 e709632db165f543e510334adfa191ecff6fbe5ae6726578cbb5e4858de62fda53e67b19171c302492361c580bf6894af84dc97ee81e1146a04aec2984d4f91f WHIRLPOOL beee4643d4c2212d9d49390bf1f3ff279f54f2d3c90743610ee59d7e8b93a1e61136654a1f5abe5d49a7826afdea8166ae047f7f2eb2f461c543bf3111f294d5 -DIST postgresql-8.3.21.tar.bz2 14626010 SHA256 a64b6de9f8067b803f2ed46a025bfd2a16a5ae270db60e440a698f2c07e234f8 SHA512 6da6fab655412fb2cc59ba6228596d6d3caff1a0c6bbd574b61c807bc18941b8d3db6824ffb7da1ad78d89c61d4407402bdb0904bf7b60c49959f40cb2bf3191 WHIRLPOOL 1bb3afefa2610537a35d148ccf2b65d6fe2915774aa61e92afeaadb3c6e923bf1771be7a5828c8ac67d2a0dac94f8bad3330cb38fa2f3b6993ebe493998f11a0 -DIST postgresql-8.3.22.tar.bz2 14630723 SHA256 17b8f3709c0442e25329e41743f980b10a3149940cee921c28e0bb5b51fef0c6 SHA512 bdcde0659062f5045c6596cd5bb7e90e7e99cf6316896d211c5125ce11f52f2ffdc911aa960556ef06c5fb62a5f2e6efc3555eca060df7eb8bebcdc805d73bee WHIRLPOOL 093dceec2b2c25af70048e7fc49b1f3741115f362777c0f1687745a50fa3cdfd8ddd6b42be0c256b413188e17dfeb977c41aab56f0f91f3010d491278e9b36c9 DIST postgresql-8.3.23.tar.bz2 14684669 SHA256 17a46617ddbeb16f37d79b43f4e72301b051e6ef888a2eac960375bf579018d9 SHA512 fa8e01c615298e4e4c77e0c0bf26913a96572d4c578c48c77fd9197ab20fe5c43ed1e72b9552ed266ff272d859014da0c8c8d11a120b6c01bf561c7d0f77fdc1 WHIRLPOOL 25d737bcac9e77529e3cf07741acfb156e3991f6bc6f154d7007ee879b5c510261eab96b7147c2cc485506c28cfc6692b0165a6d370a50e6de0dbdf7900c0b50 -DIST postgresql-8.4.13.tar.bz2 14666613 SHA256 20dd3442a3fa3a4fb1813b58f969ce4bbc54d73194fd4fe20d6f1313edc48cb9 SHA512 c6294846bf9adf39d5d57d2df26023ed4aa83464a773789eaaf5823a6dd6005eeb756f3835caaffde72729edd5b1f0ab300309417a4f9b570d6110b62096f1e4 WHIRLPOOL 1a9cbbdf1d651e49d85b7edee5da70fcadcef20a10fbc4340bd43679144662c68bede5c68b38933aaed8cc1a9a4db8c0b48e2a183140f901e07f09055e958e96 -DIST postgresql-8.4.14.tar.bz2 14679559 SHA256 1172e7735beea8a933eab0a4c01f9ad49fe872d8786af12a7fe596346b1d133a SHA512 bf9ddb393de08bbff92708b83697b907fbf34229a2ce66e1bf97c1deb9630c37c9a363f9305889e1f6ce4671d116a2c267302b7681281bb0482575ac81d6f28e WHIRLPOOL 8fe681ce8d263116fb2d3554adb2f45c1b21f7d6b840396fee532f7f200809dacc5127df7102b97be88193cd39148b40c81d781ec73ffc508e4908b0af2426bf -DIST postgresql-8.4.15.tar.bz2 14701182 SHA256 6a83771bbbdf1ad9c1dd900da3fbfdf6ef75857db8e012f7129a1f865279bc4d SHA512 a1019c9324db9fb582cb554536c06d8f89a7dd92649e890206ea6c9d3e99127f37ff6598341505ce9bc1b095190583a53bdccc18773422097c33da98c17cb25d WHIRLPOOL 242bbb44a6042a40ad7a55a7b98422c21cdcf77cc778ab5f4a3e29553dc83a182ce2d7415df430545fdd9d8f3e53a21d09377f1f049269bc323c5f749cccc19f DIST postgresql-8.4.16.tar.bz2 14784029 SHA256 8d03d94d3957019227066f427ccb11232a823f2558e2f57e1ea2bc9ba004612f SHA512 05fd72b61eb478c3e6682956ec7a1216490c9b5e430f82baeba2a75cb78723e622b0e513153d64373919747c9e12647fc58aafe8a7aa2b5789baa577597e8c62 WHIRLPOOL 58b3c3a15478cbcb17e2447e30b21a16b1846c9188919ab11e4fe5ea5933803872eb5f6154630b9e8a053d636eef8d8f8fda5dd755a54ec978dcab3a93abf5b5 -DIST postgresql-9.0.10.tar.bz2 15015826 SHA256 4394184b0099e8c86a482f7d62930aa31b50fb23e7dfb8fe9e1d93eb828dc729 SHA512 93a6d63d89800f9fc2eeef694c55afcdb8b8a255a2952a69b1816a31b831d0f86ed8b8fc88ad68cbc27f322eb1aba24e2cc9d891a5487217753b3f196fa5b754 WHIRLPOOL e5161e09c636f6a48d72de4befb967575a94b429129e72e4eb6013dc074bfe4f8ad43e4a15c40ec7e00b64d790cdd8da0eeb8a0555db44ce59fb336b0153799e -DIST postgresql-9.0.11.tar.bz2 15044657 SHA256 a6dcdc8dc5cea5feb4522b0638646173e5a6680bd1e9b7ab72a8981e54e07b2c SHA512 54622307b1a2f27d1dca919e1ad1e098b64e9e9fcbbf7a8b17cd8266af9c6712028cdb24a41c7c77a55c61c9445b872909f84db349117f58dd36d8cb450667a0 WHIRLPOOL 2d1a3f3faa7b3658c0ea011641903df71b8fcf0f1220cfcbde7c8228176cc9eca5b5a38c8eee2b4b64132a0f5844b5b3ac25ba9d4e979f3e2f7ac27a96716720 DIST postgresql-9.0.12.tar.bz2 15122949 SHA256 80f06873cbdc8789abe6806dc52a708d9a7f4ac5432ffea4c069cbc33b2b1524 SHA512 e5259b0ee64d1f7d0a7662279433c782cf3a68cd5713b296f4e1225323b951b7d8512057be823b40d7c32487f5a508770aadd732c9c1ceeaa835e661bc8e010e WHIRLPOOL 12fadc8037825216533062c0ee7a5ae55e80771acdce6ad072e45f3432af00808cb94439a68294308b0585135e2118c36a7c9686d57f2d77b1d87a83d3dad514 -DIST postgresql-9.0.9.tar.bz2 15008401 SHA256 87417d181a0f534fa96ba1d315a62b721f5bc22b7bb70af3f674bc1a68a5da8a SHA512 1d0c1f38f7872402b3011a624c7fb11cae79d165432c2134e37d078bfcbf836e5d55f2e9c92770d0a4c7db1680b2287ca55d981b8cffc0dc8b1a291c4ec4877b WHIRLPOOL 4d8c3e987ea1c07e4550d8b79eaee8cce2fec4cf39aab70bb69f364796c3ff472f5e0e953bddf3f1dc3878b4db458c2ca14073df8925e57b614974496476c921 -DIST postgresql-9.1.5.tar.bz2 15602594 SHA256 0b889c132426fc68d8c2eb1bf112bf99cc653e9c95b5f4bbebc55cd9a8d6ce44 SHA512 63998808c8a5ad7a4712d6639a7d77d01bfdfee1ea41a40e7db1c4c469e3ecdf3af78a0451907aaf856f2e76e5166de15fb9009143fca8b4d36c964291402930 WHIRLPOOL 1d89227d7801e7d45465130e90c6f1ede8cca459e3879a9f641c5d90a6ffbd8a77cd6f8b489d7a8273246ef9d51c7c5218f611b9816351a7f4562bf7ac0112d2 -DIST postgresql-9.1.6.tar.bz2 15621370 SHA256 6e396aca621a95b9f5f7292a79ebe6ce892e36c7f7021814e1bd94bcfc6c31e7 SHA512 80fbb62734ac20a500ef9f0a307543011a376c3162304cd8996cba3ea4aba32681dfa556ba06450bdc400971efb65cc9ce2635844950e4f6f31badaa93fe25a4 WHIRLPOOL 1cc8953beb9cc0cf8461147a7c4fa1b5312293625375568240e25ebcefe95334c1e4192df412a7ae8f5d018ded57478763b0921e62602c17c7b3ef81db688e65 -DIST postgresql-9.1.7.tar.bz2 15688516 SHA256 df19eaa98e6065034401b312f476ab4d3c27d67e0ae5063400eae8b00d333c82 SHA512 bac35312d7869f8b1668c2cd1aa08edfc8803ac0dcc03146295ce394ed83fb7c8666a55668bff1f8388b1f3257bdf545625f9df9bf79ce9b9573edfd6e23be5f WHIRLPOOL f9fb4b986c90ba0eebc52284a9a0926bd740b45be3c9cb5dccf74f994a7477f8a615d70ca0d7f33c72e02ee3e06c2a6a56d6658cde3a07de089cb0733e282b0c DIST postgresql-9.1.8.tar.bz2 15815313 SHA256 1d88f9dda24062dbfcc09aca9a316981f2aa93322613b853cf32d7a431b44c6d SHA512 7e4dc17fda40dcc8117d750866aa52e950e52c5d50f7b10c2f01fb4a5fd6f09ec5000d0977a0636e047185cf0de3f6f5e41eb61ac6e20a6ac39bdeae452de4af WHIRLPOOL 6c00342733ec8ff0d82874184235a0be08bda4e624afa25c81e183ade8a5555b782361d8d914a018b9549c29807b5e67d8c806d7136ab299cd3ea20c302f530d -DIST postgresql-9.2.1.tar.bz2 16113737 SHA256 db61d498105a7d5fe46185e67ac830c878cdd7dc1f82a87f06b842217924c461 SHA512 37e5c193006c548d0b1e200e9dca18ca918a0fe7d5dcea1615ce6240b7f13d9ea30913ef3b309abac3a4c15f65202aa1e72b1a3cc0b22321854fd6187dbac8d0 WHIRLPOOL 97872b8354ed0efd0aa7bd2afa5c127e9aecfce5d44d8a10e02d62050321bf4a948e7d3a4ab7f830afa4f8c2257adc96408c09bd09c8dade8d9c32ea5181f8c1 -DIST postgresql-9.2.2.tar.bz2 16222148 SHA256 e1a7a854a98896cb7fcd1696a76fca6f3bcac94d75e68a6154ffe2b69184f7f3 SHA512 147690b168838b7d45cc805882cb6ef628cbf656ff115d32ab76c4ad38b06aa00223f728bf0e5befcdd27cc4e27a917493d857f1f29006952f0ff07da6615808 WHIRLPOOL f67b8ba8170f3a03ca5ee050286f6e830cbd086f6ee15095d5ec0e0cc48a342b9db263759451a63cdd9f669b0d55cbb3689ca781dd9f42f1cdb9e57c67ddb0c9 DIST postgresql-9.2.3.tar.bz2 16371616 SHA256 c4f5a63290c0c32d8d9899edee8188d0c8ab124a7199b154fac75e62eec35f7f SHA512 e2520ae03f3cac3effed6e8e45900f6718a944c9a3c90d856819caaeeb6ba9b2324744c18a37b8e9bc5d7e63abab5b84f20259b797fd81ace0040a578f87aad8 WHIRLPOOL 28d948285392586f89dd39f757560413289c78e2a0929c3104608936b64a3488df85a8ffc38e516253185a36738ae308ee44eb9e08d2b0d8196e94488112ba82 -EBUILD postgresql-docs-8.3.20.ebuild 1268 SHA256 58cb1d24b9aef2b0e76e8eb3b1a46b705cd39ea8f5b04bd388a124265f09b8de SHA512 86dd3c6acc227dd3cac9488acb5bc0e408a0bed316a2d13b2fc54695d49ef29cd8e0e8936b4d88d4df11df5a69efa069df54024e9f00c70d7da73c3a2e8e576d WHIRLPOOL e10d1bdc2a8ccae42a3ec1f06d60dcf6d8139ea0c69237af065895c87975a6ed783148389155e836c01dcfb811facdf2462c8a1124da9c8a2a47349dcd522dde -EBUILD postgresql-docs-8.3.21.ebuild 1267 SHA256 7e7494b4229dd34c5d794368e4a26048772f8f978747fc04236443c428e8a052 SHA512 ab9d2fb7cac0015a1557d31560ee19569895d5fd82f58a699e6586ab410b84c43de753e9863c28542d72054fbf8d92bcd53c5ad28e92536d79562a2e0566a4a5 WHIRLPOOL 57e35ba70e523f5b822f572a18103c895ee69869a49bec75275e7682ee1a1dd43b7b1c712d1a21fc95102b1fd79fc8d29eb2df507052658f32e78ba2950ab944 -EBUILD postgresql-docs-8.3.22-r1.ebuild 1421 SHA256 411f3dc5075476a53276575b9736f2e8858f450d1e306a180475107cc131a6bf SHA512 8668637e683bcf7ab4074cfe22cd11b5f0730468b1cdd8400e31293140f738b09862e08a1109c520ebdc0d897df1fccc242fd3318e2e27e8dd05f5e6405065bf WHIRLPOOL ae96475acf9f1c89b9600fc3d061e6fcb54bada65add2e22fde592a6e712b01ab5d317691d67483e67bd919ae300f77d53152adcc4145e7793a14a137a692608 -EBUILD postgresql-docs-8.3.22.ebuild 1278 SHA256 8b099207c202beb813838fb16d9d21e85f433dab081073fe2a41e3031a2be08c SHA512 4a4a9c552699b97e98adab70156133150fc23867ad2d4d705b1dd08bb7c5bfaebdb54dcdc79a02063e82bb909aeb5944b9e4fee47a3def63f41d0511d1072a64 WHIRLPOOL 74ed6a6671fe887b470bf076f47671734a4d4211426507fab013adc3600a838124f51da4eb4d39b15e8da54d850a3891c3386b476ed89c3251b2156220057080 EBUILD postgresql-docs-8.3.23.ebuild 1401 SHA256 165300c12863cd6a4a5f09cdd0c73c1a84a09c2d20d874d75146b6b5ed37f554 SHA512 931c229d26d98ff2acca85210e034ed31eedf29d068a4be3fc2a462358e776aaae18d3e247306ab97faf73769b0cb00012925aa01b0df56dd47e263d2091587e WHIRLPOOL 4a5d891451559192eed2b562f7f6374214130abde28b5cf699c2be10aa4b0dc955f66fe7195827727215134416b1203f33dfc24b23f198019268e19a04fe891f -EBUILD postgresql-docs-8.4.13.ebuild 1211 SHA256 4e25ab2372a76f0a053edf380d0dd352d8f271aab22c56b5cdc5a3644037a430 SHA512 754031d020c77d2851618b803e1f706e6ffbfc93942f33597b38e10857da27deaf8612463e8e54fa735ad57810160438d13ba18c80e2e18853f347c584b03ca1 WHIRLPOOL 3a4b30aa1530b41debd3a9eb58620114aea34697ba6ef43f95a47cb8d112e7f07b7ad86156cfed73d26b0a53968be616a06643548ec06b24a900993cb5dfb116 -EBUILD postgresql-docs-8.4.14.ebuild 1210 SHA256 efe0cea17f106af435de9359df2af08352ba27cbbde9ef6f75939388a3aaee3c SHA512 e6702c00bd32c550467f6c7f8c4302c715eec1247db4bc476b9059d69aab368519606a3ba185d444f87ef1906b033a660895e9979a0ad2d5c2c01164030dcd6e WHIRLPOOL 0fdbf3cdbbd4da2d2ba31e4cc5c835cb7b305194bce81c41154a09bc384714dc9a8ffe7f6d18bccf94bd03284d98a4dfebd56bf9465d04c461628e9f541d0d17 -EBUILD postgresql-docs-8.4.15-r1.ebuild 1322 SHA256 094bbae7b5f6ee79ff42723ccb751e04957d010b7d23dc82f1cab5c8726e5ef2 SHA512 f8a2d1b607c50d464d807561fd9804fea759c7722000e02c1d1dc29bdb289f55f2efbf987d517cfd74284946a7bac6b7fd3794f765555606474e80994f8d1350 WHIRLPOOL 781f783d1454a2315c89d04c811e327f087ab87df3e849b624380c8bc40085b1cce72f33448e54618399cb0fd8e75ff98a1ff9cde2832e523705d0334c5b3f5e -EBUILD postgresql-docs-8.4.15.ebuild 1221 SHA256 6d74682d0802c36d5e85639b114b82351e5045398ac221882e984adc845562fd SHA512 488ac9372666113d0746775277936170208c604d94e0aad9b3b87d9bd82fd1ef383d3e97405148b5ed514c9bc47aa6a7f57b9c37d66b655959f715438f23891e WHIRLPOOL 83ff9ff9e0f65089b50abdd5a446180dd1863fa0d83c08109d2efd40df71dd6badc580fca2760ffe645e9739c2998acef045fe5439bd83464656ab7bebef986d EBUILD postgresql-docs-8.4.16.ebuild 1302 SHA256 505caafbd7f212620cc2483002d187b807f31e7b57d3e8bb0dfdd019e3ec2979 SHA512 c5959160fdbd98ca4fc63cea6bde23be886c86778f69ae9345785297a043fccd845fef1a4e555aeef2b927bf2ab126747e9d6ee74bc9a6951eb4431514fa250c WHIRLPOOL cabb6aa5f3408e0a65d0ff7fe558ca9a7e0c4a3028a24cc79cf65993b2116fa574735a8baf6273a5f70c37aea634d6f06bc9663df1a24fe3ddd1b449cec770b1 -EBUILD postgresql-docs-9.0.10.ebuild 1170 SHA256 b337df395f997a1a84adfe48b51525c95d3c19f5e2c60c16106dee1fe2ce62a9 SHA512 746933673d844137a9700467b9fa3c98a7d345ac34126681398ece979e4bb6703e535d50d804a24c8205849a7ca41a329710245d5d2a52a236dbd389b69c46fc WHIRLPOOL f9457735f4550a5603c5f394dac37bf87b3dbaaa829b3e1e5d0095b4b3c7c59ed7e2367d5073d2d0f8425a38f524f65c771776802a0a02b86c760b8cd0924dd3 -EBUILD postgresql-docs-9.0.11-r1.ebuild 1311 SHA256 7916e13a7399e34103301898c89d66f8a0061f11d1f0fcee4f6d544758c6a8aa SHA512 54b9f1e371b034bcc2937e1e86d2c4875a9f4d5d9b3efdc2294e6709e854367104eda3a3e995924f4ce79681bdc4320cfeaebf9b03ab6628c7c39264799bef06 WHIRLPOOL 3f6ed02412817d51794fff9a17808f1b86bccad6bb6dede21843a81e0b828e3db95763d7b4ab88a6d798faf5b9e90edb3745c5b0e3c3ed8d38004cfd5a7f76d9 -EBUILD postgresql-docs-9.0.11.ebuild 1181 SHA256 67eb9fcc7d12b86810064146031c2d35d4d0e56a5fdb517f50de0f8f4f5a3648 SHA512 84f91c6c952fbac3dfd59985f1f1682af2fddfa3b2be9812b10bddaa731688fa56518430810be7b851b5aa41f21e0852921f5da2123be1950f9b5f2229f0a614 WHIRLPOOL c368aaf8a5dd84beb8cb67d120950118926cbf62893f2ce22a4083265867a4a2d980a8be4387216eb1933850ef35403a5d63e196b62a0b68037ac698449e6486 EBUILD postgresql-docs-9.0.12.ebuild 1291 SHA256 37a3534193b1f4d65d8b41b0b9d77f1946633123185f71fad15212bd08f6ad42 SHA512 9ab99144280b4691968cace91ebe364b7145f33c728796a76a1d1f85bd756c460f0bde336c1b2fe014c22d1cfa50dc5a1dc4cf785f08c457e7de6ad2fb76deae WHIRLPOOL 33e0d0704996575597dd466256949205ef67eeed48cc9d263810d831870477376cb68bf1f0f2f6e878c31d9ab703d6f7196655741b50aa5bbf1bc3eed1b0a2e1 -EBUILD postgresql-docs-9.0.9.ebuild 1170 SHA256 8905cb30bc296b09a91a1a5324cb8e11b9ae3c2af90a5a898b464d6f50ce2fb9 SHA512 611b524fe6ab873beb299a5a1af693fd2dc8066db612e3b4a5326a040c01488281edff8cb3ce8185617e1ce1f932215196b176206b36041706c5fee5ee51ee55 WHIRLPOOL 8a2ffa93631097b8f7d2f7885b9bb3089ac77eb70ea66e2590acbebd2fd95666a836cdf2ba0ef89394e198a0f847e159be0947442ac147812dac0a455679af6b -EBUILD postgresql-docs-9.1.5.ebuild 1168 SHA256 32fe2348f23f5d39aff2709fa7fc601191ab8297daf76c2da92834e00b126e79 SHA512 fae761a987a57c8034b3d419db8c60b58affeceab8730954eecf77df5b1ac2c7a20bb6da1d8b5d410b2aad67cd9cab65f8afdca1e1d1c67677edd14ad57a5a86 WHIRLPOOL ea5c9fa765b25946a6ce43ffd630652d9e4df82f030390f404eaa442fa5ff53211b1505537ee9d13506e03db978e9975450cbdfacd2e7d6ea105b0825dcf9803 -EBUILD postgresql-docs-9.1.6.ebuild 1167 SHA256 e25e0071783aec01699f93ebb375d6db9513be44aae78bd2a65b7f06cac27d36 SHA512 8dd320c8794f9a959d4cd4b103da2b20cc01e3713a2319b76d26d716688e3ab23f578f11e362f6253b1ad9119291e39545a66476fbf4b34719de478348b9381d WHIRLPOOL 4cbce2a63e5ea12b85c0845f01790a34ccfdd352f286853f4f8f027abff57858929075bcd2b3c4d7de1310446dbc31bf61e5584c3888c97b33a4974f2493a369 -EBUILD postgresql-docs-9.1.7-r1.ebuild 1324 SHA256 c83ec60a61af610c00d03e21830f9675e90e7dae71a67cc6ac3b21364864fe24 SHA512 54bd9473ff93ecbf92439c3e10ce2ba339473a87d8fb71a4d3160621d9817f9594da19182b5502f14962525a090c44543c79c6920700d5b237e8e81d9695e3a5 WHIRLPOOL fde5639dafb76c8001517205ca4a0a3cb71e1fe3122f8cfcaf5b4e1cfbebf09f6047d9e5666adf292f69950b09bd48032818cf5298c2b9a94b9ce364b0b895a8 -EBUILD postgresql-docs-9.1.7.ebuild 1178 SHA256 454ac33b1dd8d2463b5660b7c9b9d3f2402c2f8327c3032c1887bc8e0faf8dc6 SHA512 6f7a2a3b8e2cf19863fd13e6cccf58c643bbff6670c8bbdc0b45c9371798e69a1fe8028bbb19605c2220a0d7564bb371f7e4fe493cf4ee7acd7c00447165651e WHIRLPOOL 923cef587f82b7be3125958eccb45b0767db99eb374494e0f1e82cc6f5d5795490ccd51553d118ab091727932a7269a9ab2d227b11bca3ac0e13fd40f9c7058c EBUILD postgresql-docs-9.1.8.ebuild 1304 SHA256 553f5026af09d8b2ef3f86c42d105097fa81bb58741ec6017f707673aa4615a2 SHA512 6f503afd14eb280e6503c47045e32fd9402dea0ce223c4485603dfccb595784cbbdd31f97dabe7e1948843b57ca9801e53f0124ea26367aaa3863caae9371ba6 WHIRLPOOL f6d343052d3b10d6e2c6b77c4f5479e503bcd40f6033837f61683d4db0426ea28d002a3899dc239b43dbed033a993947ddd7531555307195af3d545b8346b71c -EBUILD postgresql-docs-9.2.1.ebuild 1479 SHA256 788b4d4b4bac98e9ac363e6f2c5cc4dad0bca403a33b508104c7f3598e1887cf SHA512 c118dd0f69ac9ba0c0519ea4613618567c0db660502a906b7414a6b9afd08aef1bb7bad1211709a864c195439a275ccc711ae2fdbc9a5186cd84a0871788566e WHIRLPOOL bfb5733bc5c28b71f485ebdd67747ad05e166d325715099831c1cb506155bfc04e22101c11a0b8a1674f232a2c69e6086a72639aaace44895bc775ef0acc1e90 -EBUILD postgresql-docs-9.2.2-r1.ebuild 1636 SHA256 b7779a58ac86d3b1fcb84f1ce5f47badf897aababe4a49aa787814f7f991c390 SHA512 541f2ea218779a055569c9bdae057db04fe389d28fe3ac3d448bd0f4ac463a522b6754d0dc966740d502d667c123f950ce8df8d75344eabfd84ae3905c6c8c34 WHIRLPOOL 5fbaf444f5b1f53196970ebb5144dc19788ea705d51fadb78170945bbf1631de6a1ba120835213c8e0300915b5408cd50a510f59ff89226fd339d0f53c572e3b -EBUILD postgresql-docs-9.2.2.ebuild 1490 SHA256 2ebc9ec8d18d7a82c79e50684cb6b492a0e069bd1e131fcc01851f9e16ed3823 SHA512 33d496b9bea8a5596d72c01c033ccd920a343a706bf7c137008a650eaaf0ae254ef080e5f1301b0b69d08f49b08b0e8b20c00b4888f2df04fc1c547b32b8a2e1 WHIRLPOOL 85f4299f0b727ecb675879f0ebbbfd340c5a8f662ec0aa914907c71b5149dcfe9be3e6d552ed81597a9235f9e0a11b6aa038e453e8e1b6889aaae81ab3892862 EBUILD postgresql-docs-9.2.3.ebuild 1616 SHA256 e6ef812fe0207ec27b60f65301b272d2a80aa68826c96628f18d36ce0e83d0a1 SHA512 169871fa00cea8438cddb21d11eba948e9d688d4c8afc1aaf6bb64ebab891f591dd6e3e262d9a9ae072d66b4bbf5194609ac2f94797f6392b3d82c50d2b1705b WHIRLPOOL 7feb04700c1355748a2eea352f5e7f16c279c6b926cb79fd9035c6a9d21bc1206d274152f0fe2933cba59dce55ff09ae40a34c6818ee7b77a88914ab1d9c4515 -MISC ChangeLog 42418 SHA256 8ff14fa44db122d3a95e21706e3a5bec1a8b6c27aa85cd9c1b191607ee990469 SHA512 15acb7def3e50bf5a9c80914e75014e6abd68cfbd2746a3bae8ee29d7248bafab160340d5b11ca6a0cf3d6490dcff422cd391daba43c6bee61b8cf05cd94c3d7 WHIRLPOOL 16488cb293a00957b063da867e057f2c08435c61d1598fbac20aa14badab9678cbf2ff28e57152ebd56335d04c2818c4b341cbf7f4a8c06bd3ead43ff6c8492a +MISC ChangeLog 43114 SHA256 34516c5996f568e0a18fece48398f50f6164ded4473fa7b4d6cab7623c4dad95 SHA512 1f6a0ad756dbdbb98b6d4ad2afa704d21c28a725ec9a20bd2badde3f710be25a59606e210090aa1d94f95844587f5e753e6ba7b272e1a4adf294862bacebb027 WHIRLPOOL 0be798a11ff07955bcd824f513d6c257597c942e5a95217cf0ba75aa9f5e86861f463d6b09fb5f0c17a15a5da992c736ab0f33a9e5e492bcab4fa999ca41c290 MISC metadata.xml 164 SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b SHA512 45b3f5ba6ebbeb2f990e5612b545bee41bb8c9f29e7f31de34021384760fcfc4694de0782fc0bdf556fe81ed3b334fc96c33563b0fddc2545484099a2cd76bb2 WHIRLPOOL 5fd1b0fc651f51ed3d1715cff87d86e7c0fe9c7825529069c7c3fed13641aee24bee1971b6e1057797b7b191ef0d50a1ea68c9f24588872d7d960787f9f02bfa -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCgAGBQJRLQNpAAoJELp701BxlEWfgb4P/3sSGPPXI0mx42EJ6qklgoGO -0a8QXNqxqvo/jTEUHfjO2IFrAaEQcgN6aOMO5PWyn4rvHzbBuoCZXxIptj0eNORY -upNhyDfoHsFEIw0+N2A23wrB2iUU3/KMxtEOKl8IY6X+XADvObrTaF2o4KFSAGYV -4/COMm63lJIwWhRjWHkubd41edbUSb6ogHbHk7QI9gi0fksA1VNZ9UuhofLEA1H+ -xHZN/F4VNurdOr2gUsR1kpT7VcPv+nUbYYrJkuJtO/US3tb6X/H8s6d1yQe2Y0qt -DuTzLi1yZ9uftfsT/8gGM/f0MyFAeCjlSaFwPPzb9OmH+9GI19ZmCVbEkeLxMnOn -l18ZsBmy4CidZ3/TIfKUy217YdLZx1inPAt0qmfnXdBkGhksMkTwcsz41/KLRoO/ -fJmF3On4xXaEAX52d6ykK+IRrQZrDMVdev7yn93UAnlAJ0tAysyRDsyRK1tMagAg -CJwuWbgfxcaKpxoA65i5j4Z9OHuWQPXLA5TV2A+FCPzdxBVPoWZUJYcyI73gwKdQ -HrNRNthvx20fXetF4vinHJQJDlx864QmCXbLOCilCOg2V+fE6yOdm8liuWbVb5zp -bx7YdAWWSIzXCy8BSaGUKJxrOnEmhhRRiJOIewykcY6uH4ilswSC4IPI7y81AD6G -S/YVHsOHmMyjuc4mbGqG -=bVbO +iQIcBAEBCgAGBQJRLQjOAAoJELp701BxlEWfhSIP+gLnNy4IFwsq8m98tLwJltJI +X3Yc/Esk5ZorRtEF4irqOCkP3oFD7PUQNj1w4PcUniCjuuXLidpNh3+KdcOL3TGk +ik4ZQzj/3jlWXW+fODuisO00HzKNfghcBcEY/fylTcQXzccuGtkWEHm27O+/sZ5U +ICqW9sUPRov22DSIhKnRtEPpyjZzkvYYGpQTAVGQTArAx5ZA/dDHiXHjo1GMFkqc +E4RNkzz7qNwYvpS2n1YKgt9oVp7Sd8lV5HTRyhp3cxGVf7JnpmwFDRoMzzZGjIf8 +/L98ok8eHGUqjUBr+CoCrqgWYYISwjdSGmKeuKQ83Dtc7GhwtlYxIWYyqXquF6Nz +807cfC7WMM/M+tAX0HI4bA4XPsL7i4Nf/jCTbIXOnXOgoomn2zclCPt/q82etqc7 +A3/rxOFbxtvS3Q6zs9GldlFCO1m770zE68Srf9A4l+KZ+4L7Me4anqFabx2+Pcx2 +svTBDpjVJgRzpL3+PqjwlUxBpbcd2tttbcz6Ejis8ee1QjyUJ3M5C3NeLsGtEJ/L +mLUpL4lml7nbpA7/ugA1758YmCGgY3b2x2ArBGWqG0WrrLWlQ/jKXGdq26thDysV +nT8M8nCRU9Y9HKWrYhHxBrHeWZuLSsF28EDvQiTsPrh502h+bXaJCGYBXssVbydN +51yzyWDkVxKJ5Wbu0EG4 +=8guY -----END PGP SIGNATURE----- diff --git a/dev-db/postgresql-docs/postgresql-docs-8.3.20.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.3.20.ebuild deleted file mode 100644 index 1b31d315a0e7..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-8.3.20.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2012 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.3.20.ebuild,v 1.7 2012/09/20 18:04:13 blueness Exp $ - -EAPI="4" - -inherit versionator - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" - -# Nothing to test here per 232157 -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() { - cd "${S}/doc" - - dodir /usr/share/doc/${PF}/html - tar -zxf "postgres.tar.gz" -C "${ED}/usr/share/doc/${PF}/html" - fowners root:0 -R /usr/share/doc/${PF}/html - - docinto FAQ_html - dodoc src/FAQ/* - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto TODO.detail - dodoc TODO.detail/* - - 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-8.3.21.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.3.21.ebuild deleted file mode 100644 index 76e2b4d6573a..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-8.3.21.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2012 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.3.21.ebuild,v 1.5 2012/12/01 19:02:59 armin76 Exp $ - -EAPI="4" - -inherit versionator - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" - -# Nothing to test here per 232157 -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() { - cd "${S}/doc" - - dodir /usr/share/doc/${PF}/html - tar -zxf "postgres.tar.gz" -C "${ED}/usr/share/doc/${PF}/html" - fowners root:0 -R /usr/share/doc/${PF}/html - - docinto FAQ_html - dodoc src/FAQ/* - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto TODO.detail - dodoc TODO.detail/* - - 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-8.3.22-r1.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.3.22-r1.ebuild deleted file mode 100644 index ec5907fc928a..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-8.3.22-r1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2013 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.3.22-r1.ebuild,v 1.1 2013/01/12 18:59:35 titanofold 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}/FAQ_html - doins src/FAQ/* - - insinto ${mypath}/sgml - doins src/sgml/*.{sgml,dsl} - - insinto ${mypath}/sgml/ref - doins src/sgml/ref/*.sgml - - insinto ${mypath}/TODO.detail - doins TODO.detail/* - - 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-8.3.22.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.3.22.ebuild deleted file mode 100644 index 1e9231bf5379..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-8.3.22.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2012 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.3.22.ebuild,v 1.1 2012/12/10 06:02:52 patrick Exp $ - -EAPI="4" - -inherit versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" - -# Nothing to test here per 232157 -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() { - cd "${S}/doc" - - dodir /usr/share/doc/${PF}/html - tar -zxf "postgres.tar.gz" -C "${ED}/usr/share/doc/${PF}/html" - fowners root:0 -R /usr/share/doc/${PF}/html - - docinto FAQ_html - dodoc src/FAQ/* - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto TODO.detail - dodoc TODO.detail/* - - 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-8.4.13.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.4.13.ebuild deleted file mode 100644 index 5bf5b1f2d625..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-8.4.13.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2012 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.13.ebuild,v 1.7 2012/09/20 18:04:13 blueness Exp $ - -EAPI="4" - -inherit versionator - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" - -# Nothing to test here per 232157 -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() { - cd "${S}/doc" - - dodir /usr/share/doc/${PF}/html - tar -zxf "postgres.tar.gz" -C "${ED}/usr/share/doc/${PF}/html" - fowners root:0 -R /usr/share/doc/${PF}/html - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto - dodoc TODO - - 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-8.4.14.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.4.14.ebuild deleted file mode 100644 index bce26ea35016..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-8.4.14.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2012 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.14.ebuild,v 1.5 2012/12/01 19:02:59 armin76 Exp $ - -EAPI="4" - -inherit versionator - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" - -# Nothing to test here per 232157 -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() { - cd "${S}/doc" - - dodir /usr/share/doc/${PF}/html - tar -zxf "postgres.tar.gz" -C "${ED}/usr/share/doc/${PF}/html" - fowners root:0 -R /usr/share/doc/${PF}/html - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto - dodoc TODO - - 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-8.4.15-r1.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.4.15-r1.ebuild deleted file mode 100644 index dd14003c5124..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-8.4.15-r1.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2013 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.15-r1.ebuild,v 1.1 2013/01/12 18:59:35 titanofold 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-8.4.15.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.4.15.ebuild deleted file mode 100644 index c552c2eb025a..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-8.4.15.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2012 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.15.ebuild,v 1.1 2012/12/10 06:02:52 patrick Exp $ - -EAPI="4" - -inherit versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" - -# Nothing to test here per 232157 -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() { - cd "${S}/doc" - - dodir /usr/share/doc/${PF}/html - tar -zxf "postgres.tar.gz" -C "${ED}/usr/share/doc/${PF}/html" - fowners root:0 -R /usr/share/doc/${PF}/html - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto - dodoc TODO - - 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.10.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.0.10.ebuild deleted file mode 100644 index beda7660175c..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.0.10.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2012 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.10.ebuild,v 1.5 2012/12/01 19:02:59 armin76 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() { - dodir /usr/share/doc/${PF}/html - - cd "${S}/doc" - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto html - dodoc src/sgml/html/*.html - dodoc src/sgml/html/stylesheet.css - - docinto - dodoc TODO - - 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.11-r1.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.0.11-r1.ebuild deleted file mode 100644 index 40987b13ddc7..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.0.11-r1.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2013 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.11-r1.ebuild,v 1.1 2013/01/12 18:59:35 titanofold 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.0.11.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.0.11.ebuild deleted file mode 100644 index d619684e231b..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.0.11.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2012 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.11.ebuild,v 1.1 2012/12/10 06:02:52 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() { - dodir /usr/share/doc/${PF}/html - - cd "${S}/doc" - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto html - dodoc src/sgml/html/*.html - dodoc src/sgml/html/stylesheet.css - - docinto - dodoc TODO - - 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.9.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.0.9.ebuild deleted file mode 100644 index 7aac346df2bd..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.0.9.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2012 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.9.ebuild,v 1.7 2012/09/20 18:04:13 blueness 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() { - dodir /usr/share/doc/${PF}/html - - cd "${S}/doc" - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto html - dodoc src/sgml/html/*.html - dodoc src/sgml/html/stylesheet.css - - docinto - dodoc TODO - - 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.5.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.1.5.ebuild deleted file mode 100644 index 225646cbb136..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.1.5.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2012 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.5.ebuild,v 1.7 2012/09/20 18:04:13 blueness 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" - -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() { - dodir /usr/share/doc/${PF}/html - - cd "${S}/doc" - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto html - dodoc src/sgml/html/*.html - dodoc src/sgml/html/stylesheet.css - - docinto - dodoc TODO - - 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.6.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.1.6.ebuild deleted file mode 100644 index 064a0a905cd6..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.1.6.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2012 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.6.ebuild,v 1.5 2012/12/01 19:02:59 armin76 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" - -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() { - dodir /usr/share/doc/${PF}/html - - cd "${S}/doc" - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto html - dodoc src/sgml/html/*.html - dodoc src/sgml/html/stylesheet.css - - docinto - dodoc TODO - - 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.7-r1.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.1.7-r1.ebuild deleted file mode 100644 index a0707a9a5a6e..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.1.7-r1.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2013 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.7-r1.ebuild,v 1.1 2013/01/12 18:59:35 titanofold 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.1.7.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.1.7.ebuild deleted file mode 100644 index 7c3c69ff7b42..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.1.7.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2012 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.7.ebuild,v 1.1 2012/12/10 06:02:52 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" - -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() { - dodir /usr/share/doc/${PF}/html - - cd "${S}/doc" - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto html - dodoc src/sgml/html/*.html - dodoc src/sgml/html/stylesheet.css - - docinto - dodoc TODO - - 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.1.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.2.1.ebuild deleted file mode 100644 index 1ebc2e421578..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.2.1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2012 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.1.ebuild,v 1.5 2012/12/01 19:02:59 armin76 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" - -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" - -LICENSE="POSTGRESQL" -DESCRIPTION="PostgreSQL documentation" -HOMEPAGE="http://www.postgresql.org/" - -IUSE="" - -DEPEND="" -RDEPEND="" - -src_unpack() { - tar xjf "${DISTDIR}/${A}" -C "${WORKDIR}" "${A%.tar.bz2}/doc" -} - -src_install() { - dodir /usr/share/doc/${PF}/html - - cd "${S}/doc" - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto html - dodoc src/sgml/html/*.html - dodoc src/sgml/html/stylesheet.css - - docinto - dodoc TODO - - 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.2-r1.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.2.2-r1.ebuild deleted file mode 100644 index 681087b8016e..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.2.2-r1.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2013 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.2-r1.ebuild,v 1.1 2013/01/12 18:59:35 titanofold 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.2.2.ebuild b/dev-db/postgresql-docs/postgresql-docs-9.2.2.ebuild deleted file mode 100644 index d641fbc49b98..000000000000 --- a/dev-db/postgresql-docs/postgresql-docs-9.2.2.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2012 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.2.ebuild,v 1.1 2012/12/10 06:02:52 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" - -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" - -LICENSE="POSTGRESQL" -DESCRIPTION="PostgreSQL documentation" -HOMEPAGE="http://www.postgresql.org/" - -IUSE="" - -DEPEND="" -RDEPEND="" - -src_unpack() { - tar xjf "${DISTDIR}/${A}" -C "${WORKDIR}" "${A%.tar.bz2}/doc" -} - -src_install() { - dodir /usr/share/doc/${PF}/html - - cd "${S}/doc" - - docinto sgml - dodoc src/sgml/*.{sgml,dsl} - - docinto sgml/ref - dodoc src/sgml/ref/*.sgml - - docinto html - dodoc src/sgml/html/*.html - dodoc src/sgml/html/stylesheet.css - - docinto - dodoc TODO - - 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 97f26a72b0d6..f43bc47fb8ce 100644 --- a/dev-db/postgresql-server/ChangeLog +++ b/dev-db/postgresql-server/ChangeLog @@ -1,6 +1,19 @@ # ChangeLog for dev-db/postgresql-server # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/ChangeLog,v 1.243 2013/02/26 18:52:02 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/ChangeLog,v 1.244 2013/02/26 19:14:08 ago Exp $ + + 26 Feb 2013; Agostino Sarubbo <ago@gentoo.org> + -postgresql-server-8.3.20.ebuild, -postgresql-server-8.3.21.ebuild, + -postgresql-server-8.3.22-r1.ebuild, -postgresql-server-8.3.22.ebuild, + -postgresql-server-8.4.13.ebuild, -postgresql-server-8.4.14.ebuild, + -postgresql-server-8.4.15-r1.ebuild, -postgresql-server-8.4.15.ebuild, + -postgresql-server-9.0.10.ebuild, -postgresql-server-9.0.11-r1.ebuild, + -postgresql-server-9.0.11.ebuild, -postgresql-server-9.0.9.ebuild, + -postgresql-server-9.1.5.ebuild, -postgresql-server-9.1.6.ebuild, + -postgresql-server-9.1.7-r1.ebuild, -postgresql-server-9.1.7.ebuild, + -postgresql-server-9.2.1.ebuild, -postgresql-server-9.2.2-r1.ebuild, + -postgresql-server-9.2.2.ebuild: + Remove old 26 Feb 2013; Agostino Sarubbo <ago@gentoo.org> postgresql-server-8.3.23-r1.ebuild, postgresql-server-8.4.16-r1.ebuild, diff --git a/dev-db/postgresql-server/Manifest b/dev-db/postgresql-server/Manifest index 99a6453f319e..3db75a9627cf 100644 --- a/dev-db/postgresql-server/Manifest +++ b/dev-db/postgresql-server/Manifest @@ -1,81 +1,41 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 -DIST postgresql-8.3.20.tar.bz2 14624435 SHA256 922b6165dc21739356e22ba4d53e08f3b26cd38d8fb9569d5f8fa6d239611163 SHA512 e709632db165f543e510334adfa191ecff6fbe5ae6726578cbb5e4858de62fda53e67b19171c302492361c580bf6894af84dc97ee81e1146a04aec2984d4f91f WHIRLPOOL beee4643d4c2212d9d49390bf1f3ff279f54f2d3c90743610ee59d7e8b93a1e61136654a1f5abe5d49a7826afdea8166ae047f7f2eb2f461c543bf3111f294d5 -DIST postgresql-8.3.21.tar.bz2 14626010 SHA256 a64b6de9f8067b803f2ed46a025bfd2a16a5ae270db60e440a698f2c07e234f8 SHA512 6da6fab655412fb2cc59ba6228596d6d3caff1a0c6bbd574b61c807bc18941b8d3db6824ffb7da1ad78d89c61d4407402bdb0904bf7b60c49959f40cb2bf3191 WHIRLPOOL 1bb3afefa2610537a35d148ccf2b65d6fe2915774aa61e92afeaadb3c6e923bf1771be7a5828c8ac67d2a0dac94f8bad3330cb38fa2f3b6993ebe493998f11a0 -DIST postgresql-8.3.22.tar.bz2 14630723 SHA256 17b8f3709c0442e25329e41743f980b10a3149940cee921c28e0bb5b51fef0c6 SHA512 bdcde0659062f5045c6596cd5bb7e90e7e99cf6316896d211c5125ce11f52f2ffdc911aa960556ef06c5fb62a5f2e6efc3555eca060df7eb8bebcdc805d73bee WHIRLPOOL 093dceec2b2c25af70048e7fc49b1f3741115f362777c0f1687745a50fa3cdfd8ddd6b42be0c256b413188e17dfeb977c41aab56f0f91f3010d491278e9b36c9 DIST postgresql-8.3.23.tar.bz2 14684669 SHA256 17a46617ddbeb16f37d79b43f4e72301b051e6ef888a2eac960375bf579018d9 SHA512 fa8e01c615298e4e4c77e0c0bf26913a96572d4c578c48c77fd9197ab20fe5c43ed1e72b9552ed266ff272d859014da0c8c8d11a120b6c01bf561c7d0f77fdc1 WHIRLPOOL 25d737bcac9e77529e3cf07741acfb156e3991f6bc6f154d7007ee879b5c510261eab96b7147c2cc485506c28cfc6692b0165a6d370a50e6de0dbdf7900c0b50 -DIST postgresql-8.4.13.tar.bz2 14666613 SHA256 20dd3442a3fa3a4fb1813b58f969ce4bbc54d73194fd4fe20d6f1313edc48cb9 SHA512 c6294846bf9adf39d5d57d2df26023ed4aa83464a773789eaaf5823a6dd6005eeb756f3835caaffde72729edd5b1f0ab300309417a4f9b570d6110b62096f1e4 WHIRLPOOL 1a9cbbdf1d651e49d85b7edee5da70fcadcef20a10fbc4340bd43679144662c68bede5c68b38933aaed8cc1a9a4db8c0b48e2a183140f901e07f09055e958e96 -DIST postgresql-8.4.14.tar.bz2 14679559 SHA256 1172e7735beea8a933eab0a4c01f9ad49fe872d8786af12a7fe596346b1d133a SHA512 bf9ddb393de08bbff92708b83697b907fbf34229a2ce66e1bf97c1deb9630c37c9a363f9305889e1f6ce4671d116a2c267302b7681281bb0482575ac81d6f28e WHIRLPOOL 8fe681ce8d263116fb2d3554adb2f45c1b21f7d6b840396fee532f7f200809dacc5127df7102b97be88193cd39148b40c81d781ec73ffc508e4908b0af2426bf -DIST postgresql-8.4.15.tar.bz2 14701182 SHA256 6a83771bbbdf1ad9c1dd900da3fbfdf6ef75857db8e012f7129a1f865279bc4d SHA512 a1019c9324db9fb582cb554536c06d8f89a7dd92649e890206ea6c9d3e99127f37ff6598341505ce9bc1b095190583a53bdccc18773422097c33da98c17cb25d WHIRLPOOL 242bbb44a6042a40ad7a55a7b98422c21cdcf77cc778ab5f4a3e29553dc83a182ce2d7415df430545fdd9d8f3e53a21d09377f1f049269bc323c5f749cccc19f DIST postgresql-8.4.16.tar.bz2 14784029 SHA256 8d03d94d3957019227066f427ccb11232a823f2558e2f57e1ea2bc9ba004612f SHA512 05fd72b61eb478c3e6682956ec7a1216490c9b5e430f82baeba2a75cb78723e622b0e513153d64373919747c9e12647fc58aafe8a7aa2b5789baa577597e8c62 WHIRLPOOL 58b3c3a15478cbcb17e2447e30b21a16b1846c9188919ab11e4fe5ea5933803872eb5f6154630b9e8a053d636eef8d8f8fda5dd755a54ec978dcab3a93abf5b5 -DIST postgresql-9.0.10.tar.bz2 15015826 SHA256 4394184b0099e8c86a482f7d62930aa31b50fb23e7dfb8fe9e1d93eb828dc729 SHA512 93a6d63d89800f9fc2eeef694c55afcdb8b8a255a2952a69b1816a31b831d0f86ed8b8fc88ad68cbc27f322eb1aba24e2cc9d891a5487217753b3f196fa5b754 WHIRLPOOL e5161e09c636f6a48d72de4befb967575a94b429129e72e4eb6013dc074bfe4f8ad43e4a15c40ec7e00b64d790cdd8da0eeb8a0555db44ce59fb336b0153799e -DIST postgresql-9.0.11.tar.bz2 15044657 SHA256 a6dcdc8dc5cea5feb4522b0638646173e5a6680bd1e9b7ab72a8981e54e07b2c SHA512 54622307b1a2f27d1dca919e1ad1e098b64e9e9fcbbf7a8b17cd8266af9c6712028cdb24a41c7c77a55c61c9445b872909f84db349117f58dd36d8cb450667a0 WHIRLPOOL 2d1a3f3faa7b3658c0ea011641903df71b8fcf0f1220cfcbde7c8228176cc9eca5b5a38c8eee2b4b64132a0f5844b5b3ac25ba9d4e979f3e2f7ac27a96716720 DIST postgresql-9.0.12.tar.bz2 15122949 SHA256 80f06873cbdc8789abe6806dc52a708d9a7f4ac5432ffea4c069cbc33b2b1524 SHA512 e5259b0ee64d1f7d0a7662279433c782cf3a68cd5713b296f4e1225323b951b7d8512057be823b40d7c32487f5a508770aadd732c9c1ceeaa835e661bc8e010e WHIRLPOOL 12fadc8037825216533062c0ee7a5ae55e80771acdce6ad072e45f3432af00808cb94439a68294308b0585135e2118c36a7c9686d57f2d77b1d87a83d3dad514 -DIST postgresql-9.0.9.tar.bz2 15008401 SHA256 87417d181a0f534fa96ba1d315a62b721f5bc22b7bb70af3f674bc1a68a5da8a SHA512 1d0c1f38f7872402b3011a624c7fb11cae79d165432c2134e37d078bfcbf836e5d55f2e9c92770d0a4c7db1680b2287ca55d981b8cffc0dc8b1a291c4ec4877b WHIRLPOOL 4d8c3e987ea1c07e4550d8b79eaee8cce2fec4cf39aab70bb69f364796c3ff472f5e0e953bddf3f1dc3878b4db458c2ca14073df8925e57b614974496476c921 -DIST postgresql-9.1.5.tar.bz2 15602594 SHA256 0b889c132426fc68d8c2eb1bf112bf99cc653e9c95b5f4bbebc55cd9a8d6ce44 SHA512 63998808c8a5ad7a4712d6639a7d77d01bfdfee1ea41a40e7db1c4c469e3ecdf3af78a0451907aaf856f2e76e5166de15fb9009143fca8b4d36c964291402930 WHIRLPOOL 1d89227d7801e7d45465130e90c6f1ede8cca459e3879a9f641c5d90a6ffbd8a77cd6f8b489d7a8273246ef9d51c7c5218f611b9816351a7f4562bf7ac0112d2 -DIST postgresql-9.1.6.tar.bz2 15621370 SHA256 6e396aca621a95b9f5f7292a79ebe6ce892e36c7f7021814e1bd94bcfc6c31e7 SHA512 80fbb62734ac20a500ef9f0a307543011a376c3162304cd8996cba3ea4aba32681dfa556ba06450bdc400971efb65cc9ce2635844950e4f6f31badaa93fe25a4 WHIRLPOOL 1cc8953beb9cc0cf8461147a7c4fa1b5312293625375568240e25ebcefe95334c1e4192df412a7ae8f5d018ded57478763b0921e62602c17c7b3ef81db688e65 -DIST postgresql-9.1.7.tar.bz2 15688516 SHA256 df19eaa98e6065034401b312f476ab4d3c27d67e0ae5063400eae8b00d333c82 SHA512 bac35312d7869f8b1668c2cd1aa08edfc8803ac0dcc03146295ce394ed83fb7c8666a55668bff1f8388b1f3257bdf545625f9df9bf79ce9b9573edfd6e23be5f WHIRLPOOL f9fb4b986c90ba0eebc52284a9a0926bd740b45be3c9cb5dccf74f994a7477f8a615d70ca0d7f33c72e02ee3e06c2a6a56d6658cde3a07de089cb0733e282b0c DIST postgresql-9.1.8.tar.bz2 15815313 SHA256 1d88f9dda24062dbfcc09aca9a316981f2aa93322613b853cf32d7a431b44c6d SHA512 7e4dc17fda40dcc8117d750866aa52e950e52c5d50f7b10c2f01fb4a5fd6f09ec5000d0977a0636e047185cf0de3f6f5e41eb61ac6e20a6ac39bdeae452de4af WHIRLPOOL 6c00342733ec8ff0d82874184235a0be08bda4e624afa25c81e183ade8a5555b782361d8d914a018b9549c29807b5e67d8c806d7136ab299cd3ea20c302f530d -DIST postgresql-9.2.1.tar.bz2 16113737 SHA256 db61d498105a7d5fe46185e67ac830c878cdd7dc1f82a87f06b842217924c461 SHA512 37e5c193006c548d0b1e200e9dca18ca918a0fe7d5dcea1615ce6240b7f13d9ea30913ef3b309abac3a4c15f65202aa1e72b1a3cc0b22321854fd6187dbac8d0 WHIRLPOOL 97872b8354ed0efd0aa7bd2afa5c127e9aecfce5d44d8a10e02d62050321bf4a948e7d3a4ab7f830afa4f8c2257adc96408c09bd09c8dade8d9c32ea5181f8c1 -DIST postgresql-9.2.2.tar.bz2 16222148 SHA256 e1a7a854a98896cb7fcd1696a76fca6f3bcac94d75e68a6154ffe2b69184f7f3 SHA512 147690b168838b7d45cc805882cb6ef628cbf656ff115d32ab76c4ad38b06aa00223f728bf0e5befcdd27cc4e27a917493d857f1f29006952f0ff07da6615808 WHIRLPOOL f67b8ba8170f3a03ca5ee050286f6e830cbd086f6ee15095d5ec0e0cc48a342b9db263759451a63cdd9f669b0d55cbb3689ca781dd9f42f1cdb9e57c67ddb0c9 DIST postgresql-9.2.3.tar.bz2 16371616 SHA256 c4f5a63290c0c32d8d9899edee8188d0c8ab124a7199b154fac75e62eec35f7f SHA512 e2520ae03f3cac3effed6e8e45900f6718a944c9a3c90d856819caaeeb6ba9b2324744c18a37b8e9bc5d7e63abab5b84f20259b797fd81ace0040a578f87aad8 WHIRLPOOL 28d948285392586f89dd39f757560413289c78e2a0929c3104608936b64a3488df85a8ffc38e516253185a36738ae308ee44eb9e08d2b0d8196e94488112ba82 -DIST postgresql-initscript-2.1.1.tbz2 2604 SHA256 e7e9f18a48272a6210ef3b433bb910e3ffeffe92f798aaf1ea503ce1fc1f5dfb SHA512 002d2121ffd15a327e573a53d2abd460321718dcca1e58bfce87100ee44bd19ed376b84b14f93696ac7998ee7699e04a4797a6a4db0520ee6bfa9ff53ab41975 WHIRLPOOL 891bd0602cf1470179a5683e4a3fea657dec7e924c7919f8f1964b395b0b08cf13d4462e37dcce05ad5f547d3ec18ff83e50f9f29ca87ca7fb8eaca65e5ddf9f -DIST postgresql-initscript-2.3.tbz2 2611 SHA256 72a2805048c3027996c41b9d3342ccf56406393bab7086af745d87b5b5edd4a7 SHA512 0803a833507c91e5c76a5804a787c159b3a00f7f9761a9e5c3bc7c721b14f5c6e9587027c102c430feb6e72a0bb011a0bf4903a136b7e648488a45adf2a99275 WHIRLPOOL e56b1e6e2f4cc27641411f26896508df6566f19f197f811f426995d86ae6ac97737b4f60cf5d6f763c8306a3043d31c59d3da89291fdbf837a4c9bf38b4ba5d2 DIST postgresql-initscript-2.4.tbz2 2604 SHA256 4f17a2a26ec078b7f73d2b5fa7338402829fe195676d6c3f2cda6cd75c3d1e23 SHA512 2e92bb4f2ddbdfbafa9a6451ebf8be121cf66b7731c42c61f9978a4a896e7d8987fc3b2e5c6feef22a5f7b5759c3456c91e1869ba30019f71ed6b6088adf955e WHIRLPOOL 6df5d827a9fc2d78084d5c300fefa767f87af4a6918abefeea99396ecdace8966ee2c2b4f2276454a3f77df64ec7522aeb2cc1fcac8e321d091f60cc1071a13f DIST postgresql-initscript-pre92-2.4.tbz2 2598 SHA256 a7a432e04b5346794b088ef92a35b46db31de85408e0029dae6b502af572aedc SHA512 3ab35b8cc392e3cd86874525edf664c8445cae19ac2338ef52808ee78aff5e4f9147b0e61caf89b732c103ff73875fb1db4dd0cb214587a58607db6529358a27 WHIRLPOOL f3ab508236d391821e4ddaa7a2224681aff60fc5453a3659f7994e45d8278eee02b8aa71dcfd446628b6ca1d212c7221b40212f45ac955821f1b78a97cdce703 -DIST postgresql-patches-8.3-r2.tbz2 5501 SHA256 adae4c048745de04fd44f0408e8ab85aa5cae283cb3ddc2962e0379905cca73f SHA512 6f7f3f3e7bb22da3fad237b2f14e2723004b818d6555031054dc3d03fb51d922eefdee90d053673a8e0ceefe06868d9a6427046a4da80d44a439aa3114c54819 WHIRLPOOL dd25124acfbcc717f0e908787c690f35f905adc4fdee5349d09924371f66bad281a89be60d90be98a2824608c105c7767e5f2b75d95587bd346cc2869366e140 DIST postgresql-patches-8.3-r3.tbz2 5490 SHA256 5c791bd4ddea564341f4c2766dec6749756938c5da9c289e35ed92e98a3c2bef SHA512 fa70d615df28b82159aa6d120f6fffc5700902b6b7a2c36d023a0ab4c113b7fbe5ca9dbc391ee6f1e934e3582c61d6b2e6cd73121f9dbb403d32c56d585e2140 WHIRLPOOL e126798b28496ceb6be2979c39cf9036ea4c5cbee19cdad65f5ff0a6072f417be8b332e16ca5f358f57326afd577a4145ac964d5abef9b069cf32f84692f9e9c -DIST postgresql-patches-8.4-r2.tbz2 4822 SHA256 9920097ff5243df28788a6f3bdf6cdad38e6c42885f38da84b0f2c8c242954d7 SHA512 e074509ea8246ac74deae98507d29c30e0def6b88cb0c578294ef58f165681f4c2927d8e6392e34f57751ddb21e3c50852da3d3f5ca40f95a8ce89d65412e1f9 WHIRLPOOL 225336ce3e4323e9a9c16892def1065556d4c324e14a48553e3bb9a4ad6048d16731088adf4bc4b29ce3d692bd0e900afa1440ab2ae0a2710034422941a9e14b DIST postgresql-patches-8.4-r3.tbz2 4821 SHA256 f2c47ff5cf6af20020c87bc34362615af66675d7d44dd020ccfae425880e1ace SHA512 149434a1a55f130b91b87591ac6bbbd263893e90facfdc47418320561a91cb818dea6367af5b8afbb6c9cccea6053692ee3008c62cbe40e8819c7cac04389334 WHIRLPOOL 30d5945bd65e07f114d8ee27bcbc1dc7ae136a2b5a1f62ec44aad325208dc8387ae11f58c21ebf1447822b35fe35b79d64c86cf763e146dc9c2b5da7dc883d47 -DIST postgresql-patches-9.0-r3.tbz2 4503 SHA256 2d454575423f0e56f23d540fbc865309d0bee3f80e5e05a7e1d793a7e70763cf SHA512 1a4e2c2d7ffe91cc7847ac42b2e83d708b38a93addb17d8a7234a159aa06bd125b2e915d3e78f7732d4e4ea94b897899ed832f4099b9260418fb1f1ecf265d38 WHIRLPOOL f20a030fe3244879ccddfcbf816bc7caf22231bf68c816eb5552968217c5adb7ff9ddaf5cea45ff576b6e7d2fbb9ac1276ffad3b319a4facf93a4ee409edf435 DIST postgresql-patches-9.0-r4.tbz2 4525 SHA256 96f9af00dea1c33f9c77754e8ee37334012b8098361c321bd3f562ca9c32f6b8 SHA512 1e792eaf1e194e7a109a860216de98929bc12e6905846524e795fed7e8506f8f0e2e7349ead4fd9ba196c8eb6af2f5b143d0eecdb4cb7061253257acbce37873 WHIRLPOOL 8a32c0cd7f6b845496df8d1f6a0b2497625c0da36c5af1d651be086e9cd4faec48b56b04dca894a0e43e91309868db3014213d9989da5fd1d52d5b3775f8c1ad -DIST postgresql-patches-9.1-r1.tbz2 4547 SHA256 50cefff4a6f6e1fd38b99dde4793dc5f153b9691ff5c59fbb2b97864f1f7d727 SHA512 d6baafb0b6980b860157cd8b557a2d1f696e0a4b1f34ad46185fd0204df1fc66972398f9f8f47a49b6623cec2f790d98adcd45bf59329d126c45f07ee15b3542 WHIRLPOOL 12cb3a028e204c6da3e44e9c9c6388d5650a42fc35c9d25cf18f928bbc896d854ddabd9012b76c84fe74d3f6ccbd94742a3dc53e5a1101f536a5c9a31ec04a35 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.2beta2.tbz2 4466 SHA256 7033657bf66255fda3881ee6797ad0aa920e1910619228206b174065e5e348d2 SHA512 64150e055aabe04e1a298170a992c607313299d3990c05ac4146c05e6bb2a55e29999d45cf29d7111df5fda0f135980665c4c6c6c83d3f1df26c27334daf17bb WHIRLPOOL f67a99b39e99ab26e8d1125886493b53a3589908433618e7601281735dee4d2e54fdaed84e4608961264723cf27284e9ead798087f9b896a5ada8bdc70c51f9d -DIST postgresql-patches-9.2beta3.tbz2 4466 SHA256 7033657bf66255fda3881ee6797ad0aa920e1910619228206b174065e5e348d2 SHA512 64150e055aabe04e1a298170a992c607313299d3990c05ac4146c05e6bb2a55e29999d45cf29d7111df5fda0f135980665c4c6c6c83d3f1df26c27334daf17bb WHIRLPOOL f67a99b39e99ab26e8d1125886493b53a3589908433618e7601281735dee4d2e54fdaed84e4608961264723cf27284e9ead798087f9b896a5ada8bdc70c51f9d -EBUILD postgresql-server-8.3.20.ebuild 11531 SHA256 9c2a8facbbc2a9577c4297eb5cabbcd429378da3ec01b422f7f3a522ee7e546f SHA512 95db8d0115561637ad094c9bc1fd253cb7ab99aa357bf10f61b6e3d01c5f356c57c8fb3ecb0ac47f8d58405dc6c9a35996381baedfe909d976bce32ddfc3b987 WHIRLPOOL 3e8967cd0afa92c4a5f184c9f04db22e97f0834a17a0e7695f7f82f086db2acb2e5905171ae8cbedd89f93522be93943fe99e85dfe23b776807a7f2ed2a44484 -EBUILD postgresql-server-8.3.21.ebuild 11531 SHA256 16033a03c732245ab1d762fedac6210801e6e7e7f499b3d13f205bda56b93a3e SHA512 fcdfcbdd7d29dad7de9d434d3c7c26964fdf871d0ebb9b8893485696eb74ca01f33a2d5da6f68e67399b0692621fcfeb62573bfb0131de6f2620fc72d3f11353 WHIRLPOOL f5ffb88b8aafd82233bafbf91c1a5845ca59d8420b01f7157a7ebf2cf371ef33d567f2134bbaa26dce849e04dbb10b91a8c6aad565ad9a9123984172ef47d1b8 -EBUILD postgresql-server-8.3.22-r1.ebuild 11779 SHA256 a6cd28058106dfe8a3af365615973abb36b81eaa17ac0522431687558f2715da SHA512 8d74cda4342ef9a96c8d87ce60f1be3e2a216359a23e1c2acd27773bedbbb416e39aa1693bb508e3ed19e750c989b414428de21da0e8aa1210672b3a85effafa WHIRLPOOL 3358ba3e20bbce65ea00a62c661652d9dd19340a1d1aaee3151e84bff7cd75b1e894e840e2a3aedea07f7e286bca0aeae6cd2038c9bcd263a489b87fd6eabba4 -EBUILD postgresql-server-8.3.22.ebuild 11542 SHA256 e0cab1388c36238dc7c0bdfd8ce6f5d08c2507167f7d6a5a492817736e7ca0d0 SHA512 081894a68a75856d6c2e90623f5df4ed7b4374cbda7f2d4e96eb8a002bb11277c1385260961e9623d65e704e7393dfef15371bd38065f36b756a5148149ab939 WHIRLPOOL 07fb6ff080835e9023522c34759e96943704abd4ebd4a4db12228e07b7d8490df561c1f0234be234826ce127b698c91346e7a9d41d21d587e6700850759ae794 EBUILD postgresql-server-8.3.23-r1.ebuild 11715 SHA256 4413819234030722288032344ee21f839193604c16c4a6627e20b362a6a8306c SHA512 c368add58bc45cd6d608be0568c021d1d90ba039bb20147faec8c0d3e996e03ba73567390e4b77c0417814b190818f638868b304bd23ca3af5697129bc7f61fb WHIRLPOOL b41964eb9094d3b226279f853099f85b56cffba1590c45854b4af81d837a9b3cac744ec723e465c85ad79000887da2eee7546ebdbbd51a00b096d9389e9cf0c2 -EBUILD postgresql-server-8.4.13.ebuild 11826 SHA256 f7fe6055125a78b9605a9816083c13ffa83a322a28e0167e7dc31fb79283ece9 SHA512 91411558a5bb3fc3441fc06c7f28b1f295d33a709d2158612cc7915e3823e3aa566ba41d8cc91161b563c7bf082af71bcf2435f81959f83be7ee205772b5854d WHIRLPOOL 4a6f49f61e0412c59882dd72147b918cddeb20a0b19e03564ea2a2052f11e8903c67e94f61c80a4e9037bc3e636df0fdf1a5d94d4d8b626592035e2da0c6545c -EBUILD postgresql-server-8.4.14.ebuild 11826 SHA256 9d7ffe51083480ee6e30de464f2c9b914c71f8ea76811fae7558ebf11928df63 SHA512 0bd22fb1427f5c070bfa87d6dc8fe616414d0abb6ba4dd49142cf78d287ec9db7d6ef1b1479618847ec4218c39dd49b62b913fe80268178c2f159a77098e82b7 WHIRLPOOL 0e1aefe3740a307b7189cb9a338c9123984677ef65a133f00f36a29d7feb1b540a84cb2a7f465bf86d4f1df83b8419f5a233cb0dfed7a12d5563145fa0ed8e71 -EBUILD postgresql-server-8.4.15-r1.ebuild 11787 SHA256 24bc150caeb6f7fdf2ef0a8730730b1daebeb2a2941f71adef4add0c0e46a6b8 SHA512 3eb809f96da6da50663bec24aec73b1eb5535d05736b459f4f8ed00d4eaf1cac2f29b75504aec622b0310a9ae886552a52471368d4597aa3095c0793fc0a6aae WHIRLPOOL 27b1ee7b133027a2e373b1688cf72062902b4473812da70271b81f755ed152328c8fcb17d9a58a16c0e76fb5548f581e664caba6450b0adfa7881c9f289075c0 -EBUILD postgresql-server-8.4.15.ebuild 11837 SHA256 92365519693052b904eca5481675b73f724b209e03886191f08bca26151fd719 SHA512 59f511885f37cd9706ed7adcac91a64fc50073efa51356734bea2a5b9aa5107af4fe785ef5da8b029e4c12c1601d84e10bb9683b76b33831044be33b84c933bd WHIRLPOOL 76670eaa126fe1acf5b2beb18b85f4eac552665705289ff3f410d098974579a3bc594db4081991f1ecd7718b8a20a85c7b2cd41c53e7708f793cb749422f189a EBUILD postgresql-server-8.4.16-r1.ebuild 11592 SHA256 e55de6d481aa0aea56fa9019f2ebe2cb828d512102e3c9356ff46c7963fafc63 SHA512 c133fb9ce37d08c04fc47d35080fe11ee615b2e86c6e1f1760098fcf3342afae60205cf37c69c5dcda192eecdb55a331036a7461e88d5ae581d158fca3de4f3e WHIRLPOOL a0a7944352258d0e6228bf90f5a3d00dab5b032755610a3482e3397679301568fec7d4c37fb714d0a6cb04094c0d5287d8534ef13098940ed677f658b6475524 -EBUILD postgresql-server-9.0.10.ebuild 11427 SHA256 7d61ab312507b6561ee1dec921bdb0fd82250567cde5111b9a78710683c28bc7 SHA512 b761136c05e106b096ec035e68a026d8278cffe32f9f1bf758e09bd881a7a2de3d951145bbfecd60d86753c81b72e6ef4190cae564e9a3b7385bf7672c9dcc74 WHIRLPOOL 542885838686bf826dbdce4b0fd4b368242a0fc1d57d0ffb67cd4e9bf55795f08ef6cd0d898a26a8ae22a809751e11194fa99cd789fe07864abc32127a73589e -EBUILD postgresql-server-9.0.11-r1.ebuild 11675 SHA256 0e9003b1eeed9694043cb5e35d6f40f6e8c65047585aaa9a63db260ff5056cbb SHA512 01462c889e452246b92ccfceae691ba2f9261224984fe0dc5ec5c8920d507e4653b737b5b92946df7508a5878a08336719114b914051fbc009257899372f5c01 WHIRLPOOL ebe2ae36757b4d4718471ea8ba8803f41d97f72a807a2994503d05183e02024630fc158f7bde4ca32fffbc88174a928414153c70dcb092776cf053f02686c26b -EBUILD postgresql-server-9.0.11.ebuild 11438 SHA256 4ee327515d2f6218971a21b11fb0ea7efd5b7fa8042fd2b465b2e77a84f136c1 SHA512 3791ad6591cce2cf1dbc3b41950347b9ecc6ae8e436e47eef594047ab60b59e4e6618093a74f6ae2fa298e0f523ae2080bb5da43c199df97ca3882ab35b8f132 WHIRLPOOL 5e438c436b809cb90959c8c63fd96d164463c4436f08b8ade6688551b0dda418909fb6af05373a6204fb20bb820d3d55f398ad21b9f90d6d7354376822a7d50d EBUILD postgresql-server-9.0.12-r1.ebuild 11546 SHA256 f8b68742391bbaee6d41096524823e4d4d1decf373b22f59bf6e964f511aeda9 SHA512 a83bce394dfd5da2ca154c101e989b51dd8a0b6fe86bf2a07fee31820e4ba5155341dddf5dcf2054dda52c200b15ea7855881f129522cff59e8109ae45f467cd WHIRLPOOL 8f1fd2319f1fa32912dbbb7feba233271d534f0bd4a6027ba140ec074bd684a6592153f6ca8ad40a893c64ec6049dd16d3f1f8f0c31ef78e590413e1566d640b -EBUILD postgresql-server-9.0.9.ebuild 11426 SHA256 b0f828ee58299e8840dba883543d16f49462cc0852d44ca2cc2e36c316ba39a1 SHA512 6531849b3489583b4976e4a080125538155d224781b7d86087480452abcf1afe42851d1c13ec10ff1dd6921384fe85463911245b95919925d50f5217f6bea508 WHIRLPOOL 8c690ee1e246124e1c8ea86d5646611f2ae1f861ebee219a5955220cb393c02dd111029f6bd23f651d9e85329d334b9034bac19295649fdb8d12b7729a8c86bd -EBUILD postgresql-server-9.1.5.ebuild 11458 SHA256 f2aac65ed925b80ca569442f69c1b4f750dbffd553bf52c53e5e831e459c0353 SHA512 298e542c64770a25a6275531aa6381d80657721131d968976f818c0edb74a7bfd5596d0a86c9c77200b3525d002d29f78920c4611f80023225415f64fb83f897 WHIRLPOOL 57dc5027300a92f672f086f62c293ea01cdd08d2ba3dd8ddca05d4a5499d417683a5e57336d175facb143089697b17f0eaa83d3f5243b31fe704fd7245e1fda3 -EBUILD postgresql-server-9.1.6.ebuild 11458 SHA256 b117496d90905cd3b7fa560e924edfad189be7fd4e04d4bf55c561a565c905d4 SHA512 28fa21752d31a31b9f91dbd960e82cd8917e2eb1f7c882019d832078e51c9a5af4f42958706d8dde10c343340755e0b343d1bd3299cb0b4f1e4dbca90f4035a9 WHIRLPOOL a6ca2f772bc4dc42f49aeaf649679928c56c6399b2b0c06b5a9191fbeb7e683f33856af1094d2ca4566e9019f1c8c7f8c5d609bd4bdb1467aa025a7c3de9b845 -EBUILD postgresql-server-9.1.7-r1.ebuild 11425 SHA256 7df148f3d7079611dacbc82de35908e748c7dbaa76dcd3c2930e12d777d50bda SHA512 60dc920ace6db0edd83778423dab36d9676cf0f7d8f45259772845c54458331e19c85f81504bd2b4c0ffeacac2d44b383c385dda7855dc1d5976d6539ea6c330 WHIRLPOOL 323b9b4bbf184cb683a0c147d0ad556aa31145962428f4dae659a5af2ca7b6d9c7915166046225393f15ba34c71ac67d7c46820c5e8888c58667ea80efd5a721 -EBUILD postgresql-server-9.1.7.ebuild 11469 SHA256 68a9451fd9c42c5922491f15eaa760b3c1943e3029502790ad18b8b9bb4692c9 SHA512 3768678220d3ef75057da9c3fe2cbb906f7fc1c11a2554105ec66b1605985a0b1aa170dd272208955ff44c7db6aec4f2a2635c6c20ec4d23352c2233698fcbce WHIRLPOOL 77970e1934508b6e0a48da636d103e651265b9a662b83f8bf49c9ea11848af3559d83a82d56c0f9b25c264144c275dd8147e75ae2f67a1e4345fc4f22ceb4c82 EBUILD postgresql-server-9.1.8-r1.ebuild 11242 SHA256 b90147493e8d66625a72be43fa48a7b0ae76633236123bba3edbfbd4601eb336 SHA512 9cd5aa06213d31cc3c3f1398b9b9563239d56701da7ab4f35f1966a7584181a694accb65ae6f56ddf2364e2fa5041e5fd8e1bdf29ecad889e842a0f4b3b81f7b WHIRLPOOL 5453074283b4e83988e458bd31af3a605caec58c9fbf0e6b2774c8a275fa2dfc267a22e70a55d6860a63e1fe9e55edcb8cbbeb75fcc598c94c085e52020de401 -EBUILD postgresql-server-9.2.1.ebuild 11874 SHA256 6750f6885c2ca2e9066195b58a8a5d558ff7bf07aae9e1ba12978a44103f625c SHA512 131c939656b0d985f53b67bf8935ad10c2cdc9abeb32d25e70294d32505357e2dcb20f36cd6c91886610c4ad6ac988cfc9056e8020464b5a1bc2e704860c75e3 WHIRLPOOL ac70dd2547d1eadb1c273702de20be57d5ecfd5666857bdad4c23c32c46548b53b4993368d120418ba96a0c95c6afbb83239587adffdd9e12f44ff42eb0e81c2 -EBUILD postgresql-server-9.2.2-r1.ebuild 11841 SHA256 fa7b6de35730e9a951fa01293b54c09554252f587b785ab2123e8a23b01f909a SHA512 947c01615f04646878af85b06b4e734d352e0c86f4be949b14f86799d6dfb6207424dc6a17cce3cdf7654063eb1fe1b3105c7d709653294911e000f28de46013 WHIRLPOOL b93f92450848aab881715c9529334c06bde67a3ca07223784e0d821f608ce97a920110cfd6eb6f2b6a672076cf4c41b4e124e2b24ae231d7f3b531743bf7999d -EBUILD postgresql-server-9.2.2.ebuild 11885 SHA256 ba9ea51a8eb52e196b6eedd4f879383397a0a5ad0999341b1ea6448a6ad86a4a SHA512 46f266b765b276d5647721d01c632613953e265b712478429f6ae568bbd37ab89d341e97d2dae7949c8c406f09cd262268058271f0090a4e67be336e522fae55 WHIRLPOOL 57b603ef4097892e09b61d0e8874f12fd5303afcff203d0a15469765d1ddc3b41713ab956bcdae5b306aafbb52ee8353c0787ad2162810fee895e02be432f1ac EBUILD postgresql-server-9.2.3-r1.ebuild 11647 SHA256 9fe568dc76e5dd0f88e3eda83d3873a0f6495ccd8fc9feb0604bdab52ed95d56 SHA512 9bd709f5fb59d249eca1731b747d0c8982211c5aa8d49ef2a7f77c0d3730f7bbf2f0046cdecb1f1df6551ff3751a4c669ca66b851f35979a4c105d9b52f45fea WHIRLPOOL 4891c70620a1002fb6683df06a123d0e9badd25d723786dc01ddb61e81b814e7683500bb84d8f0163ea901f7732dbc4785a5e7cfca657f85ba5320e2f0f19a86 EBUILD postgresql-server-9999.ebuild 11868 SHA256 7affa7d4639114bc30b8e894e182a4f7e57babff9c196512e2faf7e5556cae15 SHA512 f28e357b4e2d2a8c06b79643922e14397bf17726236d3980457ab5aefc46d550d22da8c241d9409372f3b7c3ed2172d1529a8cc621f82f6f874d9a65ec252ed3 WHIRLPOOL c05074a5f7a8a90e71bc6f5ff48d311c5c2eb648619c78e46b1157ab8981264c5f40ec2ab8c37173c5fc5dc2cc1453a7a6f59df344154e04bb7826e415d07996 -MISC ChangeLog 71600 SHA256 41f1ab5139408d332eb5eec9b8bd26da60354f607c7c3bea1b5cb29a46fdffe7 SHA512 334c524ed1ef2dfdee49f77531548f0d27e4761d29c1e757c5dfa4f9700167d91e76838ca5939e0040668c3df45c5dfebe4654370c9081c156c6b45ebd49ad5c WHIRLPOOL e6394e2d1391c99bc59cd82b431ee253f3ba2c127723fb8ac69c11399f37520ffe631019344498a15114504d65e0f7748f0880f9cb4cd33d45e0c382759a9e0e +MISC ChangeLog 72336 SHA256 08d327133a3d70bf0d63ad2055e53d124d68d04cee91258437eb2bd8294b5df0 SHA512 c384442c8c8103306362ac31467316c3ff86253d28f4e69b1c2c1286b122f679a59fe66850361e27821f1440c0fac9f9513bc5f3f4566fae700ca9bfafe114ee WHIRLPOOL 73a4e00bac54f1ee793234070971ff14e36277ef89edef4a8e6ca5c67d56d53a4ec8477130092175ff62ddb9eff4586cd34bdac971d027468771f7584f0b3b01 MISC metadata.xml 420 SHA256 ac37a5084450a782d02510149d030bd0d4a63164f2ffb7bdda3ddf344606ca62 SHA512 1731bced1ac398d90c6aca6ec209a9ea42deb0f7033d49952a6216349aeb992479c3e868b33cc1be2434cdead6185026503a58e779965455d0198edd87bf5b4c WHIRLPOOL 3bbd5598492cb7d90f4199fac80f27bcba281e1188f7f1d40ee3dd1561e530de13de109142f0add7221b49ec3a9c6a0bdb3add1446b1cc5a6cb3909fd193d19b -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCgAGBQJRLQPNAAoJELp701BxlEWf5IkQAMN/98iMxojaFgT6Oc+c8lXB -cqIUJtyNGyEY+sPprlQC4esZlBNmcbaPEDp5HcX7x56S7sRjeRUWSqMeNS4P6gGl -XpjBDcnigRedzgvZggLzGNicYWnymKIgq7xQI0mHXDkz903Cvb1EJ08kxPNAk0Be -8O01P1kNXDnTuv04WP7VHqQgtlFZqcEp7n529Q9Yc8bqsqF26iiV8G9ecMg9A3N4 -ABs03NylWiaJZzzYH5bQgFgIzdgULKEUZz/F3pZTdh26zaWQVBi5Bme3j7cYIq3O -7VbveGf6qWa4Lrc8Fu4sHARlfmo3xu+5G1kV7Cz8YhklKxo7DjlbW8eUX7c0PCai -5N4MqXKmLv6TLaP561L5eN0aFPJ/GtofYVwjGdI7hjVOaV6dz0/+a/NCNTJzdibY -wyQos6CF9iiu4mrl7CZp8OgnfQAdLZx8ZbLf8VdOprN+zXFSbpUiAfm7SdpuedpV -Pg/awZNtUQX5o1FpBIWkBUSnx4lEC14qmEmmxahcqodLVVHrI1svyUs90E26x5yh -5bo05gQJGjQvcU5qKXLq/VgYOCxEwfZaZwiW2pYYwxGu+1Wmn0GGKUWY68+OnJOx -rxdKKCiY/IdCH/EDVpJmaaB8eZn3fP7SfEx+fgDmFHUuccn4wpAaKtSdGb9DSpEX -HJ7usvLqYQpk05rXCPI6 -=HVb/ +iQIcBAEBCgAGBQJRLQj6AAoJELp701BxlEWfG9UQALdVa9dogfYne1AstTzeu1fG +EDJmnhGbrhonKZbhXoYmjcmjOD88jJ49i0RzcxdKKuVE7D/nyr/Fr409T+AEPJfn +XOsfdeAX91NFHsp4KaWqN61WeZCC8L1ItXOMkSbwy5h6anZ85eI0rzYjhLFRgtwV +76HxozUYWgfwTBHPyRT3AsLfHZ6FwTtKfiTlHMI14QKZaHsEm+feIZ6eSHY34Kox +v8kTwvn1SQ+LIg20CemJid28V7NljmnrtyUZ9/1/uk88eUc8RrUNwfiTed1NYn2C +ZfM7K1nFNp1KO1QKGpZbITOsvANvEPsX9xekk4boyImHbFGdN6M/60cD4whZ4353 +d077yy4muFuZfOQaqwDZC0wFZZ0sb+ZWu61dYKspd9fPkm4CeG9Zt4vc2BY5FZe8 +snSvEdCF9afaOUQK1clwWOEpdApffk0pOzxPEFkPbbh6QbUk5IkpuFJvwILxJn87 +PWxvvfCjvmjubVLIg2jbW5BqOAe7ykTYqUCskwZ9rc1JjXa22GlIIXwxPwf/9pFM +I8+93XD1qrezsrGliLJ7DPtCjaTYjoc1SZd/OYkL27FUhgpdUQ5OIZTOB7aXbbMV +NygQDg2gw9uIlOCNEUg3X8bf+SnFyuweJZzqc0R/HxPnY+/3xOI7BwTa8hjyg/jv +wFpyv0mNQb58g5bUQLBc +=uQj4 -----END PGP SIGNATURE----- diff --git a/dev-db/postgresql-server/postgresql-server-8.3.20.ebuild b/dev-db/postgresql-server/postgresql-server-8.3.20.ebuild deleted file mode 100644 index dfc61b202f77..000000000000 --- a/dev-db/postgresql-server/postgresql-server-8.3.20.ebuild +++ /dev/null @@ -1,339 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.3.20.ebuild,v 1.8 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl python selinux tcl uuid xml" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \ - NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF} - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" \ - > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" \ - PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF} - done - - rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" \ - "${ED}/usr/share/doc/${PF}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1 - docompress /usr/share/postgresql-${SLOT}/man/man1 - - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_postrm() { - postgresql-config update -} - -pkg_config() { - [[ -f ${EROOT%/}/etc/conf.d/postgresql-${SLOT} ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - [[ -z ${PGDATA} ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" - [[ -z ${DATA_DIR} ]] && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" - - # environment.bz2 may not contain the same locale as the current system - # locale. Unset and source from the current system locale. - if [[ -f ${EROOT%/}/etc/env.d/02locale ]] ; then - unset LANG - unset LC_CTYPE - unset LC_NUMERIC - unset LC_TIME - unset LC_COLLATE - unset LC_MONETARY - unset LC_MESSAGES - unset LC_ALL - source ${EROOT%/}/etc/env.d/02locale - [[ -n ${LANG} ]] && export LANG - [[ -n ${LC_CTYPE} ]] && export LC_CTYPE - [[ -n ${LC_NUMERIC} ]] && export LC_NUMERIC - [[ -n ${LC_TIME} ]] && export LC_TIME - [[ -n ${LC_COLLATE} ]] && export LC_COLLATE - [[ -n ${LC_MONETARY} ]] && export LC_MONETARY - [[ -n ${LC_MESSAGES} ]] && export LC_MESSAGES - [[ -n ${LC_ALL} ]] && export LC_ALL - fi - - einfo "You can modify the paths and options passed to initdb by editing:" - einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - einfo - einfo "Information on options that can be passed to initdb are found at:" - einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" - einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" - einfo - einfo "PG_INITDB_OPTS is currently set to:" - if [[ -z ${PG_INITDB_OPTS} ]] ; then - einfo " (none)" - else - einfo " ${PG_INITDB_OPTS}" - fi - einfo - einfo "Configuration files will be installed to:" - einfo " ${PGDATA}" - einfo - einfo "The database cluster will be created in:" - einfo " ${DATA_DIR}" - einfo - while [[ $correct != "true" ]] ; do - einfo "Are you ready to continue? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - correct="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "Aborting initialization." - else - echo "Answer not recognized." - fi - done - - if [[ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ]] ; then - eerror "The given directory, '${DATA_DIR}', is not empty." - eerror "Modify DATA_DIR to point to an empty directory." - die "${DATA_DIR} is not empty." - fi - - [[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128 - einfo "Checking system parameters..." - - if ! use kernel_linux ; then - einfo "Skipped." - einfo "Tests not supported on this OS (yet)." - else - if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then - ebegin "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections" - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - eend - else - ewarn "SKIP_SYSTEM_TESTS is set, so skipping." - fi - fi - - if [[ ${EUID} == 0 ]] ; then - einfo "Creating the data directory ..." - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1. You can enable it in the clusters" - einfo "postgresql.conf." - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo " mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [[ ${UID} != 0 ]] ; then - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/:${PATH}" \ - emake check \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-8.3.21.ebuild b/dev-db/postgresql-server/postgresql-server-8.3.21.ebuild deleted file mode 100644 index fb1e6cfe0993..000000000000 --- a/dev-db/postgresql-server/postgresql-server-8.3.21.ebuild +++ /dev/null @@ -1,339 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.3.21.ebuild,v 1.6 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl python selinux tcl uuid xml" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \ - NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF} - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" \ - > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" \ - PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF} - done - - rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" \ - "${ED}/usr/share/doc/${PF}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1 - docompress /usr/share/postgresql-${SLOT}/man/man1 - - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_postrm() { - postgresql-config update -} - -pkg_config() { - [[ -f ${EROOT%/}/etc/conf.d/postgresql-${SLOT} ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - [[ -z ${PGDATA} ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" - [[ -z ${DATA_DIR} ]] && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" - - # environment.bz2 may not contain the same locale as the current system - # locale. Unset and source from the current system locale. - if [[ -f ${EROOT%/}/etc/env.d/02locale ]] ; then - unset LANG - unset LC_CTYPE - unset LC_NUMERIC - unset LC_TIME - unset LC_COLLATE - unset LC_MONETARY - unset LC_MESSAGES - unset LC_ALL - source ${EROOT%/}/etc/env.d/02locale - [[ -n ${LANG} ]] && export LANG - [[ -n ${LC_CTYPE} ]] && export LC_CTYPE - [[ -n ${LC_NUMERIC} ]] && export LC_NUMERIC - [[ -n ${LC_TIME} ]] && export LC_TIME - [[ -n ${LC_COLLATE} ]] && export LC_COLLATE - [[ -n ${LC_MONETARY} ]] && export LC_MONETARY - [[ -n ${LC_MESSAGES} ]] && export LC_MESSAGES - [[ -n ${LC_ALL} ]] && export LC_ALL - fi - - einfo "You can modify the paths and options passed to initdb by editing:" - einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - einfo - einfo "Information on options that can be passed to initdb are found at:" - einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" - einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" - einfo - einfo "PG_INITDB_OPTS is currently set to:" - if [[ -z ${PG_INITDB_OPTS} ]] ; then - einfo " (none)" - else - einfo " ${PG_INITDB_OPTS}" - fi - einfo - einfo "Configuration files will be installed to:" - einfo " ${PGDATA}" - einfo - einfo "The database cluster will be created in:" - einfo " ${DATA_DIR}" - einfo - while [[ $correct != "true" ]] ; do - einfo "Are you ready to continue? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - correct="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "Aborting initialization." - else - echo "Answer not recognized." - fi - done - - if [[ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ]] ; then - eerror "The given directory, '${DATA_DIR}', is not empty." - eerror "Modify DATA_DIR to point to an empty directory." - die "${DATA_DIR} is not empty." - fi - - [[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128 - einfo "Checking system parameters..." - - if ! use kernel_linux ; then - einfo "Skipped." - einfo "Tests not supported on this OS (yet)." - else - if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then - ebegin "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections" - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - eend - else - ewarn "SKIP_SYSTEM_TESTS is set, so skipping." - fi - fi - - if [[ ${EUID} == 0 ]] ; then - einfo "Creating the data directory ..." - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1. You can enable it in the clusters" - einfo "postgresql.conf." - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo " mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [[ ${UID} != 0 ]] ; then - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/:${PATH}" \ - emake check \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-8.3.22-r1.ebuild b/dev-db/postgresql-server/postgresql-server-8.3.22-r1.ebuild deleted file mode 100644 index b1e3a43814e5..000000000000 --- a/dev-db/postgresql-server/postgresql-server-8.3.22-r1.ebuild +++ /dev/null @@ -1,348 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.3.22-r1.ebuild,v 1.2 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl python selinux tcl uuid xml" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \ - NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF} - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" \ - > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" \ - PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF} - done - - rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" \ - "${ED}/usr/share/doc/${PF}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1 - docompress /usr/share/postgresql-${SLOT}/man/man1 - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal 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 - ebegin "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections" - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - eend - else - ewarn "SKIP_SYSTEM_TESTS is set, so skipping." - fi - fi - - if [[ ${EUID} == 0 ]] ; then - einfo "Creating the data directory ..." - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1. You can enable it in the clusters" - einfo "postgresql.conf." - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo " mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [[ ${UID} != 0 ]] ; then - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/:${PATH}" \ - emake check \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-8.3.22.ebuild b/dev-db/postgresql-server/postgresql-server-8.3.22.ebuild deleted file mode 100644 index 4bf82e2ac3fd..000000000000 --- a/dev-db/postgresql-server/postgresql-server-8.3.22.ebuild +++ /dev/null @@ -1,339 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.3.22.ebuild,v 1.2 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl python selinux tcl uuid xml" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \ - NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF} - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" \ - > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" \ - PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF} - done - - rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" \ - "${ED}/usr/share/doc/${PF}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1 - docompress /usr/share/postgresql-${SLOT}/man/man1 - - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_postrm() { - postgresql-config update -} - -pkg_config() { - [[ -f ${EROOT%/}/etc/conf.d/postgresql-${SLOT} ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - [[ -z ${PGDATA} ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" - [[ -z ${DATA_DIR} ]] && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" - - # environment.bz2 may not contain the same locale as the current system - # locale. Unset and source from the current system locale. - if [[ -f ${EROOT%/}/etc/env.d/02locale ]] ; then - unset LANG - unset LC_CTYPE - unset LC_NUMERIC - unset LC_TIME - unset LC_COLLATE - unset LC_MONETARY - unset LC_MESSAGES - unset LC_ALL - source ${EROOT%/}/etc/env.d/02locale - [[ -n ${LANG} ]] && export LANG - [[ -n ${LC_CTYPE} ]] && export LC_CTYPE - [[ -n ${LC_NUMERIC} ]] && export LC_NUMERIC - [[ -n ${LC_TIME} ]] && export LC_TIME - [[ -n ${LC_COLLATE} ]] && export LC_COLLATE - [[ -n ${LC_MONETARY} ]] && export LC_MONETARY - [[ -n ${LC_MESSAGES} ]] && export LC_MESSAGES - [[ -n ${LC_ALL} ]] && export LC_ALL - fi - - einfo "You can modify the paths and options passed to initdb by editing:" - einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - einfo - einfo "Information on options that can be passed to initdb are found at:" - einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" - einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" - einfo - einfo "PG_INITDB_OPTS is currently set to:" - if [[ -z ${PG_INITDB_OPTS} ]] ; then - einfo " (none)" - else - einfo " ${PG_INITDB_OPTS}" - fi - einfo - einfo "Configuration files will be installed to:" - einfo " ${PGDATA}" - einfo - einfo "The database cluster will be created in:" - einfo " ${DATA_DIR}" - einfo - while [[ $correct != "true" ]] ; do - einfo "Are you ready to continue? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - correct="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "Aborting initialization." - else - echo "Answer not recognized." - fi - done - - if [[ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ]] ; then - eerror "The given directory, '${DATA_DIR}', is not empty." - eerror "Modify DATA_DIR to point to an empty directory." - die "${DATA_DIR} is not empty." - fi - - [[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128 - einfo "Checking system parameters..." - - if ! use kernel_linux ; then - einfo "Skipped." - einfo "Tests not supported on this OS (yet)." - else - if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then - ebegin "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections" - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - eend - else - ewarn "SKIP_SYSTEM_TESTS is set, so skipping." - fi - fi - - if [[ ${EUID} == 0 ]] ; then - einfo "Creating the data directory ..." - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1. You can enable it in the clusters" - einfo "postgresql.conf." - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo " mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [[ ${UID} != 0 ]] ; then - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/:${PATH}" \ - emake check \ - PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \ - NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-8.4.13.ebuild b/dev-db/postgresql-server/postgresql-server-8.4.13.ebuild deleted file mode 100644 index ff791638d57c..000000000000 --- a/dev-db/postgresql-server/postgresql-server-8.4.13.ebuild +++ /dev/null @@ -1,348 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.4.13.ebuild,v 1.8 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix python user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/ldflags.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" \ - "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" \ - > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" \ - || die "emake install in $bd failed" - done - - rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" \ - "${ED}/usr/share/doc/postgresql-${SLOT}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1 - - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}"/postgresql.confd postgresql-${SLOT} \ - || die "Inserting conf.d file failed" - - newinitd "${WORKDIR}"/postgresql.init postgresql-${SLOT} \ - || die "Inserting init.d file failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "The time stamp format is 64 bit integers now. If you upgrade from older" - elog "databases, this may force you to either do a dump and reload of enable" - elog "pg_legacytimestamp until you find time to do so. If the database can't start" - elog "please try enabling pg_legacytimestamp and rebuild." - elog - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_postrm() { - postgresql-config update -} - -pkg_config() { - [[ -f ${EROOT%/}/etc/conf.d/postgresql-${SLOT} ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - [[ -z ${PGDATA} ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" - [[ -z ${DATA_DIR} ]] && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" - - # environment.bz2 may not contain the same locale as the current system - # locale. Unset and source from the current system locale. - if [[ -f ${EROOT%/}/etc/env.d/02locale ]] ; then - unset LANG - unset LC_CTYPE - unset LC_NUMERIC - unset LC_TIME - unset LC_COLLATE - unset LC_MONETARY - unset LC_MESSAGES - unset LC_ALL - source "${EROOT%/}/etc/env.d/02locale" - [[ -n ${LANG} ]] && export LANG - [[ -n ${LC_CTYPE} ]] && export LC_CTYPE - [[ -n ${LC_NUMERIC} ]] && export LC_NUMERIC - [[ -n ${LC_TIME} ]] && export LC_TIME - [[ -n ${LC_COLLATE} ]] && export LC_COLLATE - [[ -n ${LC_MONETARY} ]] && export LC_MONETARY - [[ -n ${LC_MESSAGES} ]] && export LC_MESSAGES - [[ -n ${LC_ALL} ]] && export LC_ALL - fi - - einfo "You can modify the paths and options passed to initdb by editing:" - einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - einfo - einfo "Information on options that can be passed to initdb are found at:" - einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" - einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" - einfo - einfo "PG_INITDB_OPTS is currently set to:" - if [[ -z ${PG_INITDB_OPTS} ]] ; then - einfo " (none)" - else - einfo " ${PG_INITDB_OPTS}" - fi - einfo - einfo "Configuration files will be installed to:" - einfo " ${PGDATA}" - einfo - einfo "The database cluster will be created in:" - einfo " ${DATA_DIR}" - einfo - while [[ $correct != "true" ]] ; do - einfo "Are you ready to continue? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - correct="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "Aborting initialization." - else - echo "Answer not recognized" - fi - done - - if [[ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ]] ; then - eerror "The given directory, '${DATA_DIR}', is not empty." - eerror "Modify DATA_DIR to point to an empty directory." - die "${DATA_DIR} is not empty." - fi - - [[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128 - einfo "Checking system parameters..." - - if ! use kernel_linux ; then - einfo "Skipped." - einfo " Tests not supported on this OS (yet)" - else - if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then - einfo "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections..." - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - einfo "Passed." - else - ewarn "SKIP_SYSTEM_TESTS set, so skipping." - fi - fi - - if [[ ${EUID} == 0 ]] ; then - einfo "Creating the data directory ..." - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled by" - einfo "default. You can disable it in the cluster's:" - einfo " ${PGDATA%/}/postgresql.conf" - einfo - einfo "The PostgreSQL server, by default, will log events to:" - einfo " ${DATA_DIR%/}/postmaster.log" - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo " mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [[ ${UID} != 0 ]] ; then - emake check || die "Make check failed. See above for details." - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-8.4.14.ebuild b/dev-db/postgresql-server/postgresql-server-8.4.14.ebuild deleted file mode 100644 index a3d65df20d5e..000000000000 --- a/dev-db/postgresql-server/postgresql-server-8.4.14.ebuild +++ /dev/null @@ -1,348 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.4.14.ebuild,v 1.6 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix python user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/ldflags.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" \ - "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" \ - > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" \ - || die "emake install in $bd failed" - done - - rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" \ - "${ED}/usr/share/doc/postgresql-${SLOT}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1 - - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}"/postgresql.confd postgresql-${SLOT} \ - || die "Inserting conf.d file failed" - - newinitd "${WORKDIR}"/postgresql.init postgresql-${SLOT} \ - || die "Inserting init.d file failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "The time stamp format is 64 bit integers now. If you upgrade from older" - elog "databases, this may force you to either do a dump and reload of enable" - elog "pg_legacytimestamp until you find time to do so. If the database can't start" - elog "please try enabling pg_legacytimestamp and rebuild." - elog - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_postrm() { - postgresql-config update -} - -pkg_config() { - [[ -f ${EROOT%/}/etc/conf.d/postgresql-${SLOT} ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - [[ -z ${PGDATA} ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" - [[ -z ${DATA_DIR} ]] && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" - - # environment.bz2 may not contain the same locale as the current system - # locale. Unset and source from the current system locale. - if [[ -f ${EROOT%/}/etc/env.d/02locale ]] ; then - unset LANG - unset LC_CTYPE - unset LC_NUMERIC - unset LC_TIME - unset LC_COLLATE - unset LC_MONETARY - unset LC_MESSAGES - unset LC_ALL - source "${EROOT%/}/etc/env.d/02locale" - [[ -n ${LANG} ]] && export LANG - [[ -n ${LC_CTYPE} ]] && export LC_CTYPE - [[ -n ${LC_NUMERIC} ]] && export LC_NUMERIC - [[ -n ${LC_TIME} ]] && export LC_TIME - [[ -n ${LC_COLLATE} ]] && export LC_COLLATE - [[ -n ${LC_MONETARY} ]] && export LC_MONETARY - [[ -n ${LC_MESSAGES} ]] && export LC_MESSAGES - [[ -n ${LC_ALL} ]] && export LC_ALL - fi - - einfo "You can modify the paths and options passed to initdb by editing:" - einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - einfo - einfo "Information on options that can be passed to initdb are found at:" - einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" - einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" - einfo - einfo "PG_INITDB_OPTS is currently set to:" - if [[ -z ${PG_INITDB_OPTS} ]] ; then - einfo " (none)" - else - einfo " ${PG_INITDB_OPTS}" - fi - einfo - einfo "Configuration files will be installed to:" - einfo " ${PGDATA}" - einfo - einfo "The database cluster will be created in:" - einfo " ${DATA_DIR}" - einfo - while [[ $correct != "true" ]] ; do - einfo "Are you ready to continue? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - correct="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "Aborting initialization." - else - echo "Answer not recognized" - fi - done - - if [[ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ]] ; then - eerror "The given directory, '${DATA_DIR}', is not empty." - eerror "Modify DATA_DIR to point to an empty directory." - die "${DATA_DIR} is not empty." - fi - - [[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128 - einfo "Checking system parameters..." - - if ! use kernel_linux ; then - einfo "Skipped." - einfo " Tests not supported on this OS (yet)" - else - if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then - einfo "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections..." - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - einfo "Passed." - else - ewarn "SKIP_SYSTEM_TESTS set, so skipping." - fi - fi - - if [[ ${EUID} == 0 ]] ; then - einfo "Creating the data directory ..." - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled by" - einfo "default. You can disable it in the cluster's:" - einfo " ${PGDATA%/}/postgresql.conf" - einfo - einfo "The PostgreSQL server, by default, will log events to:" - einfo " ${DATA_DIR%/}/postmaster.log" - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo " mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [[ ${UID} != 0 ]] ; then - emake check || die "Make check failed. See above for details." - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-8.4.15-r1.ebuild b/dev-db/postgresql-server/postgresql-server-8.4.15-r1.ebuild deleted file mode 100644 index cc86ac56ece7..000000000000 --- a/dev-db/postgresql-server/postgresql-server-8.4.15-r1.ebuild +++ /dev/null @@ -1,346 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.4.15-r1.ebuild,v 1.1 2013/01/12 19:10:13 titanofold Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix python user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/ldflags.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" \ - "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" \ - > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" \ - || die "emake install in $bd failed" - done - - rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" \ - "${ED}/usr/share/doc/postgresql-${SLOT}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1 - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}"/postgresql.confd postgresql-${SLOT} \ - || die "Inserting conf.d file failed" - - newinitd "${WORKDIR}"/postgresql.init postgresql-${SLOT} \ - || die "Inserting init.d file failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "The time stamp format is 64 bit integers now. If you upgrade from older" - elog "databases, this may force you to either do a dump and reload of enable" - elog "pg_legacytimestamp until you find time to do so. If the database can't start" - elog "please try enabling pg_legacytimestamp and rebuild." - elog - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_postrm() { - postgresql-config update -} - -pkg_config() { - [[ -f ${EROOT%/}/etc/conf.d/postgresql-${SLOT} ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - [[ -z ${PGDATA} ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" - [[ -z ${DATA_DIR} ]] && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" - - # environment.bz2 may not contain the same locale as the current system - # locale. Unset and source from the current system locale. - if [[ -f ${EROOT%/}/etc/env.d/02locale ]] ; then - unset LANG - unset LC_CTYPE - unset LC_NUMERIC - unset LC_TIME - unset LC_COLLATE - unset LC_MONETARY - unset LC_MESSAGES - unset LC_ALL - source "${EROOT%/}/etc/env.d/02locale" - [[ -n ${LANG} ]] && export LANG - [[ -n ${LC_CTYPE} ]] && export LC_CTYPE - [[ -n ${LC_NUMERIC} ]] && export LC_NUMERIC - [[ -n ${LC_TIME} ]] && export LC_TIME - [[ -n ${LC_COLLATE} ]] && export LC_COLLATE - [[ -n ${LC_MONETARY} ]] && export LC_MONETARY - [[ -n ${LC_MESSAGES} ]] && export LC_MESSAGES - [[ -n ${LC_ALL} ]] && export LC_ALL - fi - - einfo "You can modify the paths and options passed to initdb by editing:" - einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - einfo - einfo "Information on options that can be passed to initdb are found at:" - einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" - einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" - einfo - einfo "PG_INITDB_OPTS is currently set to:" - if [[ -z ${PG_INITDB_OPTS} ]] ; then - einfo " (none)" - else - einfo " ${PG_INITDB_OPTS}" - fi - einfo - einfo "Configuration files will be installed to:" - einfo " ${PGDATA}" - einfo - einfo "The database cluster will be created in:" - einfo " ${DATA_DIR}" - einfo - while [[ $correct != "true" ]] ; do - einfo "Are you ready to continue? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - correct="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "Aborting initialization." - else - echo "Answer not recognized" - fi - done - - if [[ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ]] ; then - eerror "The given directory, '${DATA_DIR}', is not empty." - eerror "Modify DATA_DIR to point to an empty directory." - die "${DATA_DIR} is not empty." - fi - - [[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128 - einfo "Checking system parameters..." - - if ! use kernel_linux ; then - einfo "Skipped." - einfo " Tests not supported on this OS (yet)" - else - if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then - einfo "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections..." - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - einfo "Passed." - else - ewarn "SKIP_SYSTEM_TESTS set, so skipping." - fi - fi - - if [[ ${EUID} == 0 ]] ; then - einfo "Creating the data directory ..." - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled by" - einfo "default. You can disable it in the cluster's:" - einfo " ${PGDATA%/}/postgresql.conf" - einfo - einfo "The PostgreSQL server, by default, will log events to:" - einfo " ${DATA_DIR%/}/postmaster.log" - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo " mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [[ ${UID} != 0 ]] ; then - emake check || die "Make check failed. See above for details." - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-8.4.15.ebuild b/dev-db/postgresql-server/postgresql-server-8.4.15.ebuild deleted file mode 100644 index 55fd51aae929..000000000000 --- a/dev-db/postgresql-server/postgresql-server-8.4.15.ebuild +++ /dev/null @@ -1,348 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.4.15.ebuild,v 1.2 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix python user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS} ; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/darwin.patch" \ - "${WORKDIR}/ldflags.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/SuperH.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" \ - "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" \ - > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" \ - || die "emake install in $bd failed" - done - - rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" \ - "${ED}/usr/share/doc/postgresql-${SLOT}/html" - rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1 - - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}"/postgresql.confd postgresql-${SLOT} \ - || die "Inserting conf.d file failed" - - newinitd "${WORKDIR}"/postgresql.init postgresql-${SLOT} \ - || die "Inserting init.d file failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "The time stamp format is 64 bit integers now. If you upgrade from older" - elog "databases, this may force you to either do a dump and reload of enable" - elog "pg_legacytimestamp until you find time to do so. If the database can't start" - elog "please try enabling pg_legacytimestamp and rebuild." - elog - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_postrm() { - postgresql-config update -} - -pkg_config() { - [[ -f ${EROOT%/}/etc/conf.d/postgresql-${SLOT} ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - [[ -z ${PGDATA} ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" - [[ -z ${DATA_DIR} ]] && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" - - # environment.bz2 may not contain the same locale as the current system - # locale. Unset and source from the current system locale. - if [[ -f ${EROOT%/}/etc/env.d/02locale ]] ; then - unset LANG - unset LC_CTYPE - unset LC_NUMERIC - unset LC_TIME - unset LC_COLLATE - unset LC_MONETARY - unset LC_MESSAGES - unset LC_ALL - source "${EROOT%/}/etc/env.d/02locale" - [[ -n ${LANG} ]] && export LANG - [[ -n ${LC_CTYPE} ]] && export LC_CTYPE - [[ -n ${LC_NUMERIC} ]] && export LC_NUMERIC - [[ -n ${LC_TIME} ]] && export LC_TIME - [[ -n ${LC_COLLATE} ]] && export LC_COLLATE - [[ -n ${LC_MONETARY} ]] && export LC_MONETARY - [[ -n ${LC_MESSAGES} ]] && export LC_MESSAGES - [[ -n ${LC_ALL} ]] && export LC_ALL - fi - - einfo "You can modify the paths and options passed to initdb by editing:" - einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - einfo - einfo "Information on options that can be passed to initdb are found at:" - einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" - einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" - einfo - einfo "PG_INITDB_OPTS is currently set to:" - if [[ -z ${PG_INITDB_OPTS} ]] ; then - einfo " (none)" - else - einfo " ${PG_INITDB_OPTS}" - fi - einfo - einfo "Configuration files will be installed to:" - einfo " ${PGDATA}" - einfo - einfo "The database cluster will be created in:" - einfo " ${DATA_DIR}" - einfo - while [[ $correct != "true" ]] ; do - einfo "Are you ready to continue? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - correct="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "Aborting initialization." - else - echo "Answer not recognized" - fi - done - - if [[ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ]] ; then - eerror "The given directory, '${DATA_DIR}', is not empty." - eerror "Modify DATA_DIR to point to an empty directory." - die "${DATA_DIR} is not empty." - fi - - [[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128 - einfo "Checking system parameters..." - - if ! use kernel_linux ; then - einfo "Skipped." - einfo " Tests not supported on this OS (yet)" - else - if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then - einfo "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections..." - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - einfo "Passed." - else - ewarn "SKIP_SYSTEM_TESTS set, so skipping." - fi - fi - - if [[ ${EUID} == 0 ]] ; then - einfo "Creating the data directory ..." - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled by" - einfo "default. You can disable it in the cluster's:" - einfo " ${PGDATA%/}/postgresql.conf" - einfo - einfo "The PostgreSQL server, by default, will log events to:" - einfo " ${DATA_DIR%/}/postmaster.log" - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo " mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [[ ${UID} != 0 ]] ; then - emake check || die "Make check failed. See above for details." - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-9.0.10.ebuild b/dev-db/postgresql-server/postgresql-server-9.0.10.ebuild deleted file mode 100644 index c609bc643f2d..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.0.10.ebuild +++ /dev/null @@ -1,342 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.0.10.ebuild,v 1.6 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix python user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~ppc-macos ~x86-solaris" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodir /usr/share/postgresql-${SLOT}/man/man1/ - cp "${S}"/doc/src/sgml/man1/{initdb,pg_controldata,pg_ctl,pg_resetxlog,post{gres,master}}.1 \ - "${ED}"/usr/share/postgresql-${SLOT}/man/man1/ || die - - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} \ - || die "Inserting conf.d file failed" - - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} \ - || die "Inserting init.d file failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_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.0.11-r1.ebuild b/dev-db/postgresql-server/postgresql-server-9.0.11-r1.ebuild deleted file mode 100644 index 525eae79f7cd..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.0.11-r1.ebuild +++ /dev/null @@ -1,351 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.0.11-r1.ebuild,v 1.2 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix python user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~ppc-macos ~x86-solaris" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodir /usr/share/postgresql-${SLOT}/man/man1/ - cp "${S}"/doc/src/sgml/man1/{initdb,pg_controldata,pg_ctl,pg_resetxlog,post{gres,master}}.1 \ - "${ED}"/usr/share/postgresql-${SLOT}/man/man1/ || die - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} \ - || die "Inserting conf.d file failed" - - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} \ - || die "Inserting init.d file failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal 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.0.11.ebuild b/dev-db/postgresql-server/postgresql-server-9.0.11.ebuild deleted file mode 100644 index 03a588d6d6b4..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.0.11.ebuild +++ /dev/null @@ -1,342 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.0.11.ebuild,v 1.2 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix python user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~ppc-macos ~x86-solaris" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodir /usr/share/postgresql-${SLOT}/man/man1/ - cp "${S}"/doc/src/sgml/man1/{initdb,pg_controldata,pg_ctl,pg_resetxlog,post{gres,master}}.1 \ - "${ED}"/usr/share/postgresql-${SLOT}/man/man1/ || die - - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} \ - || die "Inserting conf.d file failed" - - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} \ - || die "Inserting init.d file failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_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.0.9.ebuild b/dev-db/postgresql-server/postgresql-server-9.0.9.ebuild deleted file mode 100644 index e3f41b9270e5..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.0.9.ebuild +++ /dev/null @@ -1,342 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.0.9.ebuild,v 1.8 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils multilib pam prefix python user versionator - -SLOT="$(get_version_component_range 1-2)" - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~ppc-macos ~x86-solaris" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -S="${WORKDIR}/postgresql-${PV}" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" - -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - --with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - --with-system-tzdata="${EPREFIX%/}/usr/share/zoneinfo" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd -j1 || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd -j1 DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodir /usr/share/postgresql-${SLOT}/man/man1/ - cp "${S}"/doc/src/sgml/man1/{initdb,pg_controldata,pg_ctl,pg_resetxlog,post{gres,master}}.1 \ - "${ED}"/usr/share/postgresql-${SLOT}/man/man1/ || die - - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ - > "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} \ - || die "Inserting conf.d file failed" - - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} \ - || die "Inserting init.d file failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_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.5.ebuild b/dev-db/postgresql-server/postgresql-server-9.1.5.ebuild deleted file mode 100644 index 13bbed79612d..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.1.5.ebuild +++ /dev/null @@ -1,348 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.1.5.ebuild,v 1.8 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils flag-o-matic multilib pam prefix python user versionator - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${PV}" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - local PO="${EPREFIX%/}" - - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - --with-system-tzdata="${PO}/usr/share/zoneinfo" \ - --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodoc README HISTORY doc/{TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} || \ - die "Inserting conf failed" - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \ - die "Inserting conf failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal 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 || 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.6.ebuild b/dev-db/postgresql-server/postgresql-server-9.1.6.ebuild deleted file mode 100644 index abd43dd62f92..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.1.6.ebuild +++ /dev/null @@ -1,348 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.1.6.ebuild,v 1.6 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils flag-o-matic multilib pam prefix python user versionator - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${PV}" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - local PO="${EPREFIX%/}" - - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - --with-system-tzdata="${PO}/usr/share/zoneinfo" \ - --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodoc README HISTORY doc/{TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} || \ - die "Inserting conf failed" - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \ - die "Inserting conf failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal 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 || die "Make check failed. See above for details." - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-9.1.7-r1.ebuild b/dev-db/postgresql-server/postgresql-server-9.1.7-r1.ebuild deleted file mode 100644 index 82a60863b141..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.1.7-r1.ebuild +++ /dev/null @@ -1,346 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.1.7-r1.ebuild,v 1.2 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils flag-o-matic multilib pam prefix python user versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${PV}" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - local PO="${EPREFIX%/}" - - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - --with-system-tzdata="${PO}/usr/share/zoneinfo" \ - --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} || \ - die "Inserting conf failed" - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \ - die "Inserting conf failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal 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 || die "Make check failed. See above for details." - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-9.1.7.ebuild b/dev-db/postgresql-server/postgresql-server-9.1.7.ebuild deleted file mode 100644 index 37dde317b84b..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.1.7.ebuild +++ /dev/null @@ -1,348 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.1.7.ebuild,v 1.2 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils flag-o-matic multilib pam prefix python user versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${PV}" - -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.1.tbz2" -LICENSE="POSTGRESQL GPL-2" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/pg_ctl-exit-status.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ - -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - local PO="${EPREFIX%/}" - - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - --with-system-tzdata="${PO}/usr/share/zoneinfo" \ - --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodoc README HISTORY doc/{TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} || \ - die "Inserting conf failed" - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \ - die "Inserting conf failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal 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 || die "Make check failed. See above for details." - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-9.2.1.ebuild b/dev-db/postgresql-server/postgresql-server-9.2.1.ebuild deleted file mode 100644 index 80b2992a9576..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.2.1.ebuild +++ /dev/null @@ -1,357 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.2.1.ebuild,v 1.6 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils flag-o-matic multilib pam prefix python user versionator - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" - -# Comment the following six lines when not a beta or rc. -#MY_PV="${PV//_}" -#MY_FILE_PV="${SLOT}$(get_version_component_range 4)" -#S="${WORKDIR}/postgresql-${MY_FILE_PV}" -#SRC_URI="mirror://postgresql/source/v${MY_FILE_PV}/postgresql-${MY_FILE_PV}.tar.bz2 -# http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2 -# http://dev.gentoo.org/~titanofold/postgresql-initscript-2.3.tbz2" - -# Comment the following four lines when a beta or rc. -S="${WORKDIR}/postgresql-${PV}" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.3.tbz2" - -LICENSE="POSTGRESQL GPL-2" -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c -# sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ -# -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - local PO="${EPREFIX%/}" - - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - --with-system-tzdata="${PO}/usr/share/zoneinfo" \ - --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodoc README HISTORY doc/{TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} || \ - die "Inserting conf failed" - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \ - die "Inserting conf failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal 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 || die "Make check failed. See above for details." - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-9.2.2-r1.ebuild b/dev-db/postgresql-server/postgresql-server-9.2.2-r1.ebuild deleted file mode 100644 index 3b25a0ea884d..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.2.2-r1.ebuild +++ /dev/null @@ -1,355 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.2.2-r1.ebuild,v 1.2 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils flag-o-matic multilib pam prefix python user versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" - -# Comment the following six lines when not a beta or rc. -#MY_PV="${PV//_}" -#MY_FILE_PV="${SLOT}$(get_version_component_range 4)" -#S="${WORKDIR}/postgresql-${MY_FILE_PV}" -#SRC_URI="mirror://postgresql/source/v${MY_FILE_PV}/postgresql-${MY_FILE_PV}.tar.bz2 -# http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2 -# http://dev.gentoo.org/~titanofold/postgresql-initscript-2.3.tbz2" - -# Comment the following four lines when a beta or rc. -S="${WORKDIR}/postgresql-${PV}" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.3.tbz2" - -LICENSE="POSTGRESQL GPL-2" -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c -# sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ -# -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - local PO="${EPREFIX%/}" - - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - --with-system-tzdata="${PO}/usr/share/zoneinfo" \ - --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} || \ - die "Inserting conf failed" - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \ - die "Inserting conf failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal 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 || die "Make check failed. See above for details." - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-9.2.2.ebuild b/dev-db/postgresql-server/postgresql-server-9.2.2.ebuild deleted file mode 100644 index a059360f3f97..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.2.2.ebuild +++ /dev/null @@ -1,357 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.2.2.ebuild,v 1.2 2013/01/29 10:09:22 patrick Exp $ - -EAPI="4" -PYTHON_DEPEND="python? 2" - -WANT_AUTOMAKE="none" -inherit autotools eutils flag-o-matic multilib pam prefix python user versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -SLOT="$(get_version_component_range 1-2)" - -# Comment the following six lines when not a beta or rc. -#MY_PV="${PV//_}" -#MY_FILE_PV="${SLOT}$(get_version_component_range 4)" -#S="${WORKDIR}/postgresql-${MY_FILE_PV}" -#SRC_URI="mirror://postgresql/source/v${MY_FILE_PV}/postgresql-${MY_FILE_PV}.tar.bz2 -# http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2 -# http://dev.gentoo.org/~titanofold/postgresql-initscript-2.3.tbz2" - -# Comment the following four lines when a beta or rc. -S="${WORKDIR}/postgresql-${PV}" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 - http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}beta3.tbz2 - http://dev.gentoo.org/~titanofold/postgresql-initscript-2.3.tbz2" - -LICENSE="POSTGRESQL GPL-2" -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,pg_legacytimestamp=,nls=] - perl? ( >=dev-lang/perl-5.8 ) - selinux? ( sec-policy/selinux-postgresql ) - tcl? ( >=dev-lang/tcl-8 ) - uuid? ( dev-libs/ossp-uuid ) - xml? ( dev-libs/libxml2 dev-libs/libxslt )" -DEPEND="${RDEPEND} - sys-devel/flex - xml? ( virtual/pkgconfig )" -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -# Support /var/run or /run for the socket directory -[[ ! -d /run ]] && RUNDIR=/var - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python_set_active_version 2 -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/server.patch" - - eprefixify src/include/pg_config_manual.h - - if use test ; then - epatch "${WORKDIR}/regress.patch" - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c -# sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \ -# -i src/test/regress/{input,output}/tablespace.source - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@RUNDIR@|${RUNDIR}|g" \ - -i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \ - die "RUNDIR sed failed" - sed -e "s|@SLOT@|${SLOT}|g" \ - -i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \ - die "SLOT sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - local PO="${EPREFIX%/}" - - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - $(use_with perl) \ - $(use_with python) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - --with-system-tzdata="${PO}/usr/share/zoneinfo" \ - --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd || die "emake in $bd failed" - done -} - -src_install() { - if use perl ; then - mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig" - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile" - fi - - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" - done - - dodoc README HISTORY doc/{TODO,bug.template} - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} || \ - die "Inserting conf failed" - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} || \ - die "Inserting conf failed" - - use pam && pamd_mimic system-auth postgresql auth account session - - if use prefix ; then - keepdir ${RUNDIR}/run/postgresql - fperms 0770 ${RUNDIR}/run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}${RUNDIR}/run/postgresql/" - elog - elog "If you have users and/or services that you would like to utilize the" - elog "socket, you must add them to the 'postgres' system group:" - elog " usermod -a -G postgres <user>" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal 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 || 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 -} |