From fd2964a12dc2d02c2787a7d9c54a77c5c8748fd1 Mon Sep 17 00:00:00 2001 From: heracles Date: Sat, 29 Sep 2007 20:19:39 +0000 Subject: testing dev-db/postgresql-*: minor bumps svn path=/testing/; revision=289 --- dev-db/postgresql/Manifest | 199 ++++++++------- dev-db/postgresql/files/digest-postgresql-7.3.19 | 12 - dev-db/postgresql/files/digest-postgresql-7.3.20 | 12 + dev-db/postgresql/files/digest-postgresql-7.4.17 | 12 - dev-db/postgresql/files/digest-postgresql-8.0.13 | 12 - dev-db/postgresql/files/digest-postgresql-8.0.14 | 12 + dev-db/postgresql/files/digest-postgresql-8.1.10 | 12 + dev-db/postgresql/files/digest-postgresql-8.1.9 | 12 - dev-db/postgresql/files/digest-postgresql-8.2.4-r1 | 12 - dev-db/postgresql/files/digest-postgresql-8.2.5 | 12 + .../files/postgresql-7.3.19-autoconf.patch | 26 -- .../files/postgresql-7.3.19-cubeparse.patch | 36 --- .../files/postgresql-7.3.20-autoconf.patch | 51 ++++ .../files/postgresql-7.3.20-cubeparse.patch | 36 +++ .../files/postgresql-7.4.17-autoconf.patch | 17 -- .../files/postgresql-7.4.17-hppa-testandset.patch | 50 ---- .../files/postgresql-7.4.18-autoconf.patch | 42 ++++ .../files/postgresql-7.4.18-hppa-testandset.patch | 50 ++++ dev-db/postgresql/files/postgresql-8.0.13-sh.patch | 34 --- dev-db/postgresql/files/postgresql-8.0.14-sh.patch | 34 +++ .../files/postgresql-8.1.10-regress_su.patch | 116 +++++++++ dev-db/postgresql/files/postgresql-8.1.10-sh.patch | 34 +++ .../files/postgresql-8.1.9-regress_su.patch | 116 --------- dev-db/postgresql/files/postgresql-8.1.9-sh.patch | 34 --- .../postgresql/files/postgresql-8.2.4-gentoo.patch | 58 ----- .../files/postgresql-8.2.4-no-test.patch | 12 - .../files/postgresql-8.2.4-regress_fix.patch | 31 --- .../files/postgresql-8.2.4-regress_su.patch | 15 -- dev-db/postgresql/files/postgresql-8.2.4-sh.patch | 34 --- .../postgresql/files/postgresql-8.2.5-gentoo.patch | 58 +++++ .../files/postgresql-8.2.5-no-test.patch | 12 + .../files/postgresql-8.2.5-regress_fix.patch | 31 +++ .../files/postgresql-8.2.5-regress_su.patch | 15 ++ dev-db/postgresql/files/postgresql-8.2.5-sh.patch | 34 +++ dev-db/postgresql/postgresql-7.3.19.ebuild | 244 ------------------ dev-db/postgresql/postgresql-7.3.20.ebuild | 244 ++++++++++++++++++ dev-db/postgresql/postgresql-7.4.17.ebuild | 273 --------------------- dev-db/postgresql/postgresql-7.4.18.ebuid | 273 +++++++++++++++++++++ dev-db/postgresql/postgresql-8.0.13.ebuild | 266 -------------------- dev-db/postgresql/postgresql-8.0.14.ebuild | 266 ++++++++++++++++++++ dev-db/postgresql/postgresql-8.1.10.ebuild | 245 ++++++++++++++++++ dev-db/postgresql/postgresql-8.1.9.ebuild | 245 ------------------ dev-db/postgresql/postgresql-8.2.4-r1.ebuild | 240 ------------------ dev-db/postgresql/postgresql-8.2.5.ebuild | 240 ++++++++++++++++++ 44 files changed, 1925 insertions(+), 1894 deletions(-) delete mode 100644 dev-db/postgresql/files/digest-postgresql-7.3.19 create mode 100644 dev-db/postgresql/files/digest-postgresql-7.3.20 delete mode 100644 dev-db/postgresql/files/digest-postgresql-7.4.17 delete mode 100644 dev-db/postgresql/files/digest-postgresql-8.0.13 create mode 100644 dev-db/postgresql/files/digest-postgresql-8.0.14 create mode 100644 dev-db/postgresql/files/digest-postgresql-8.1.10 delete mode 100644 dev-db/postgresql/files/digest-postgresql-8.1.9 delete mode 100644 dev-db/postgresql/files/digest-postgresql-8.2.4-r1 create mode 100644 dev-db/postgresql/files/digest-postgresql-8.2.5 delete mode 100644 dev-db/postgresql/files/postgresql-7.3.19-autoconf.patch delete mode 100644 dev-db/postgresql/files/postgresql-7.3.19-cubeparse.patch create mode 100644 dev-db/postgresql/files/postgresql-7.3.20-autoconf.patch create mode 100644 dev-db/postgresql/files/postgresql-7.3.20-cubeparse.patch delete mode 100644 dev-db/postgresql/files/postgresql-7.4.17-autoconf.patch delete mode 100644 dev-db/postgresql/files/postgresql-7.4.17-hppa-testandset.patch create mode 100644 dev-db/postgresql/files/postgresql-7.4.18-autoconf.patch create mode 100644 dev-db/postgresql/files/postgresql-7.4.18-hppa-testandset.patch delete mode 100644 dev-db/postgresql/files/postgresql-8.0.13-sh.patch create mode 100644 dev-db/postgresql/files/postgresql-8.0.14-sh.patch create mode 100644 dev-db/postgresql/files/postgresql-8.1.10-regress_su.patch create mode 100644 dev-db/postgresql/files/postgresql-8.1.10-sh.patch delete mode 100644 dev-db/postgresql/files/postgresql-8.1.9-regress_su.patch delete mode 100644 dev-db/postgresql/files/postgresql-8.1.9-sh.patch delete mode 100644 dev-db/postgresql/files/postgresql-8.2.4-gentoo.patch delete mode 100644 dev-db/postgresql/files/postgresql-8.2.4-no-test.patch delete mode 100644 dev-db/postgresql/files/postgresql-8.2.4-regress_fix.patch delete mode 100644 dev-db/postgresql/files/postgresql-8.2.4-regress_su.patch delete mode 100644 dev-db/postgresql/files/postgresql-8.2.4-sh.patch create mode 100644 dev-db/postgresql/files/postgresql-8.2.5-gentoo.patch create mode 100644 dev-db/postgresql/files/postgresql-8.2.5-no-test.patch create mode 100644 dev-db/postgresql/files/postgresql-8.2.5-regress_fix.patch create mode 100644 dev-db/postgresql/files/postgresql-8.2.5-regress_su.patch create mode 100644 dev-db/postgresql/files/postgresql-8.2.5-sh.patch delete mode 100644 dev-db/postgresql/postgresql-7.3.19.ebuild create mode 100644 dev-db/postgresql/postgresql-7.3.20.ebuild delete mode 100644 dev-db/postgresql/postgresql-7.4.17.ebuild create mode 100644 dev-db/postgresql/postgresql-7.4.18.ebuid delete mode 100644 dev-db/postgresql/postgresql-8.0.13.ebuild create mode 100644 dev-db/postgresql/postgresql-8.0.14.ebuild create mode 100644 dev-db/postgresql/postgresql-8.1.10.ebuild delete mode 100644 dev-db/postgresql/postgresql-8.1.9.ebuild delete mode 100644 dev-db/postgresql/postgresql-8.2.4-r1.ebuild create mode 100644 dev-db/postgresql/postgresql-8.2.5.ebuild (limited to 'dev-db/postgresql') diff --git a/dev-db/postgresql/Manifest b/dev-db/postgresql/Manifest index b16cc8e..e2c8b5a 100644 --- a/dev-db/postgresql/Manifest +++ b/dev-db/postgresql/Manifest @@ -14,54 +14,54 @@ AUX pg_autovacuum.init-8.0 1457 RMD160 620731601a73267e52d0cf459dac4c13a1dc94f4 MD5 92ae9f4fbbe0221fcd8d6dc357bd12c0 files/pg_autovacuum.init-8.0 1457 RMD160 620731601a73267e52d0cf459dac4c13a1dc94f4 files/pg_autovacuum.init-8.0 1457 SHA256 f0f8c1f85fdad5fc0c75a1299ddf904f9b1165eece2e67de7a3a99f82c97fa42 files/pg_autovacuum.init-8.0 1457 -AUX postgresql-7.3.19-autoconf.patch 869 RMD160 d39a2beb9e4d549975fee7a59df5a23046a6ceeb SHA1 657a96eddfe4d578c196f621eb3e57f9290d5ab8 SHA256 e79d05901282531fc85e3703f394a3c5655f047973c776a2874f3d360c96ced7 -MD5 b4bb6bb605eb2808daf9ab42404906d4 files/postgresql-7.3.19-autoconf.patch 869 -RMD160 d39a2beb9e4d549975fee7a59df5a23046a6ceeb files/postgresql-7.3.19-autoconf.patch 869 -SHA256 e79d05901282531fc85e3703f394a3c5655f047973c776a2874f3d360c96ced7 files/postgresql-7.3.19-autoconf.patch 869 -AUX postgresql-7.3.19-cubeparse.patch 1296 RMD160 9b9c0fcf4d58fb989ae77d9ada4588b1876400a6 SHA1 c128746e9938d7aaa4f2be6521530d07c7e207a8 SHA256 1844950b55509b83f38bfdd113350df7422f96ca4c773def6d38ca2f48fcfada -MD5 5d36c9cda475e2aaf9609655dfb44ac1 files/postgresql-7.3.19-cubeparse.patch 1296 -RMD160 9b9c0fcf4d58fb989ae77d9ada4588b1876400a6 files/postgresql-7.3.19-cubeparse.patch 1296 -SHA256 1844950b55509b83f38bfdd113350df7422f96ca4c773def6d38ca2f48fcfada files/postgresql-7.3.19-cubeparse.patch 1296 -AUX postgresql-7.4.17-autoconf.patch 598 RMD160 ba60a76ee8c92c3ccc8d5f04d868f703d901645d SHA1 59a710165036313b637be89b10dd49246f24d163 SHA256 9963a7b8c380f1d13bd54c0d0a689a45ee02a96c01ab7a37c61c7d517a085da4 -MD5 4fba6bc05b157a3d058cacb97b74cb6e files/postgresql-7.4.17-autoconf.patch 598 -RMD160 ba60a76ee8c92c3ccc8d5f04d868f703d901645d files/postgresql-7.4.17-autoconf.patch 598 -SHA256 9963a7b8c380f1d13bd54c0d0a689a45ee02a96c01ab7a37c61c7d517a085da4 files/postgresql-7.4.17-autoconf.patch 598 -AUX postgresql-7.4.17-hppa-testandset.patch 1394 RMD160 8f65f37b7e6cf251c4ab134227570ee9974915a8 SHA1 359a4b598aa419d5ae92d746d13abd4a6e05a0cf SHA256 226f17c6064f53be2908325153b64e5f3b7d3e2275b7bd0f1abac27404b4678e -MD5 2bf25091efb109eaf759b63e39b08716 files/postgresql-7.4.17-hppa-testandset.patch 1394 -RMD160 8f65f37b7e6cf251c4ab134227570ee9974915a8 files/postgresql-7.4.17-hppa-testandset.patch 1394 -SHA256 226f17c6064f53be2908325153b64e5f3b7d3e2275b7bd0f1abac27404b4678e files/postgresql-7.4.17-hppa-testandset.patch 1394 -AUX postgresql-8.0.13-sh.patch 617 RMD160 d826fbb45265d09880000ea33ac3323beabb0f50 SHA1 e9a271f0fae2bad9150dbb8579615c90253e538b SHA256 420023f4789c650189da203d43b134d511ff1b976d17a3948774b0c7bf72d683 -MD5 0616d8126fb38e59b56f2922654e4724 files/postgresql-8.0.13-sh.patch 617 -RMD160 d826fbb45265d09880000ea33ac3323beabb0f50 files/postgresql-8.0.13-sh.patch 617 -SHA256 420023f4789c650189da203d43b134d511ff1b976d17a3948774b0c7bf72d683 files/postgresql-8.0.13-sh.patch 617 -AUX postgresql-8.1.9-regress_su.patch 5256 RMD160 7fe3080e015dd329e4502958a743f625e1ce9ccd SHA1 da1a69d3a622ebb1f3af68aa6fd0d4939c8e72b7 SHA256 a7ee073ac2940db3d7a8241923a58836c4e0c6b85b3dd3845ee6024cf4b83a05 -MD5 3caefdecf0acf62c7c41bd71a485a8ff files/postgresql-8.1.9-regress_su.patch 5256 -RMD160 7fe3080e015dd329e4502958a743f625e1ce9ccd files/postgresql-8.1.9-regress_su.patch 5256 -SHA256 a7ee073ac2940db3d7a8241923a58836c4e0c6b85b3dd3845ee6024cf4b83a05 files/postgresql-8.1.9-regress_su.patch 5256 -AUX postgresql-8.1.9-sh.patch 617 RMD160 56d0cb67f9b35402aa18dfce97fef343b78e1def SHA1 9ea425884b643a2ab364c4d4baa45e54a782206a SHA256 02ed0204e5075d6989e6d7f99def819396672468f829ce13b03e4763b74c0cad -MD5 baa6ba3092f75fcde19f31d46909a9dd files/postgresql-8.1.9-sh.patch 617 -RMD160 56d0cb67f9b35402aa18dfce97fef343b78e1def files/postgresql-8.1.9-sh.patch 617 -SHA256 02ed0204e5075d6989e6d7f99def819396672468f829ce13b03e4763b74c0cad files/postgresql-8.1.9-sh.patch 617 -AUX postgresql-8.2.4-gentoo.patch 1673 RMD160 59a9fb0ba13b7662a9a76e6722288cbb79e8bdd9 SHA1 ab66eef2b0f36bfde8dc8206dfa8a8a61a1825d4 SHA256 4f017d33da9f53937f19b2e3231b9f892fff13d37758f6462f0ac16f8c212fbe -MD5 92e019802f3846437161a4ba068a200a files/postgresql-8.2.4-gentoo.patch 1673 -RMD160 59a9fb0ba13b7662a9a76e6722288cbb79e8bdd9 files/postgresql-8.2.4-gentoo.patch 1673 -SHA256 4f017d33da9f53937f19b2e3231b9f892fff13d37758f6462f0ac16f8c212fbe files/postgresql-8.2.4-gentoo.patch 1673 -AUX postgresql-8.2.4-no-test.patch 290 RMD160 230ac3d019715752a33c6f9cb40e59e6c53b2826 SHA1 89f3e1ab21b0ecd5588210bd237d2c7fce1a83e0 SHA256 37d6e60b5ae4ba20e765448e484568c7cb2c597ad57cd68b05d224f0c9b8f27a -MD5 f5e16dbecc2693a8f7eaa807f736a73e files/postgresql-8.2.4-no-test.patch 290 -RMD160 230ac3d019715752a33c6f9cb40e59e6c53b2826 files/postgresql-8.2.4-no-test.patch 290 -SHA256 37d6e60b5ae4ba20e765448e484568c7cb2c597ad57cd68b05d224f0c9b8f27a files/postgresql-8.2.4-no-test.patch 290 -AUX postgresql-8.2.4-regress_fix.patch 1405 RMD160 268d2bd60d1abb12e7d42f1f8a98f064eda05f46 SHA1 7d7d826c14a3c6a00e29c2e4edb1e7d33812a978 SHA256 217a588720f9e20ab1db5f4eb4cda6189cb471477901a9e281d0cca0a1ed2862 -MD5 504d926a3d3279e93e73e8b02409aa49 files/postgresql-8.2.4-regress_fix.patch 1405 -RMD160 268d2bd60d1abb12e7d42f1f8a98f064eda05f46 files/postgresql-8.2.4-regress_fix.patch 1405 -SHA256 217a588720f9e20ab1db5f4eb4cda6189cb471477901a9e281d0cca0a1ed2862 files/postgresql-8.2.4-regress_fix.patch 1405 -AUX postgresql-8.2.4-regress_su.patch 898 RMD160 509319d82d263d903197f645c6db9fb3c020e11c SHA1 d090aa9870cda00ade6a53380ce95cdb416523e1 SHA256 953e4e2667fae709f764c81a6c3f176fb20692071fc00341a869cfbfab4a5977 -MD5 7b61fe42bac5cfd851a06ca039550ac2 files/postgresql-8.2.4-regress_su.patch 898 -RMD160 509319d82d263d903197f645c6db9fb3c020e11c files/postgresql-8.2.4-regress_su.patch 898 -SHA256 953e4e2667fae709f764c81a6c3f176fb20692071fc00341a869cfbfab4a5977 files/postgresql-8.2.4-regress_su.patch 898 -AUX postgresql-8.2.4-sh.patch 771 RMD160 10fed524ffd10845a59c7764a5eebe4d6fb2047f SHA1 e53700e73d98e863e7930b4ef0409ca45a004039 SHA256 14c917eaabf3c02033a2ce148f3aadb1c71b6ac3deb7147757bc06116cfd5413 -MD5 a98e98c803a969b58fe37ddad9772063 files/postgresql-8.2.4-sh.patch 771 -RMD160 10fed524ffd10845a59c7764a5eebe4d6fb2047f files/postgresql-8.2.4-sh.patch 771 -SHA256 14c917eaabf3c02033a2ce148f3aadb1c71b6ac3deb7147757bc06116cfd5413 files/postgresql-8.2.4-sh.patch 771 +AUX postgresql-7.3.20-autoconf.patch 1772 RMD160 eb5741259c8dee895752ca16abce5fd6585f0192 SHA1 a9dcb9e82a226e13c217f77fedb8e845b66d0dea SHA256 b53958ed6cc3a70462bfb43357096b37b1b09256e6371881a8ef88e14e607fec +MD5 fb388f5cdfd38229dfa526d6cb8dc9cf files/postgresql-7.3.20-autoconf.patch 1772 +RMD160 eb5741259c8dee895752ca16abce5fd6585f0192 files/postgresql-7.3.20-autoconf.patch 1772 +SHA256 b53958ed6cc3a70462bfb43357096b37b1b09256e6371881a8ef88e14e607fec files/postgresql-7.3.20-autoconf.patch 1772 +AUX postgresql-7.3.20-cubeparse.patch 1296 RMD160 9b9c0fcf4d58fb989ae77d9ada4588b1876400a6 SHA1 c128746e9938d7aaa4f2be6521530d07c7e207a8 SHA256 1844950b55509b83f38bfdd113350df7422f96ca4c773def6d38ca2f48fcfada +MD5 5d36c9cda475e2aaf9609655dfb44ac1 files/postgresql-7.3.20-cubeparse.patch 1296 +RMD160 9b9c0fcf4d58fb989ae77d9ada4588b1876400a6 files/postgresql-7.3.20-cubeparse.patch 1296 +SHA256 1844950b55509b83f38bfdd113350df7422f96ca4c773def6d38ca2f48fcfada files/postgresql-7.3.20-cubeparse.patch 1296 +AUX postgresql-7.4.18-autoconf.patch 1501 RMD160 f2eda7ba8294c799903389e255cb137f2f28b4b8 SHA1 500949016b4c248b8f33686a2194573bb85f7206 SHA256 272e0bcb74d3d200ec4d1c2897397f12935e72c3ebe93ed1cdcf674c741e4a98 +MD5 8c9b87f59e29230b74950ed83fc1dafe files/postgresql-7.4.18-autoconf.patch 1501 +RMD160 f2eda7ba8294c799903389e255cb137f2f28b4b8 files/postgresql-7.4.18-autoconf.patch 1501 +SHA256 272e0bcb74d3d200ec4d1c2897397f12935e72c3ebe93ed1cdcf674c741e4a98 files/postgresql-7.4.18-autoconf.patch 1501 +AUX postgresql-7.4.18-hppa-testandset.patch 1394 RMD160 8f65f37b7e6cf251c4ab134227570ee9974915a8 SHA1 359a4b598aa419d5ae92d746d13abd4a6e05a0cf SHA256 226f17c6064f53be2908325153b64e5f3b7d3e2275b7bd0f1abac27404b4678e +MD5 2bf25091efb109eaf759b63e39b08716 files/postgresql-7.4.18-hppa-testandset.patch 1394 +RMD160 8f65f37b7e6cf251c4ab134227570ee9974915a8 files/postgresql-7.4.18-hppa-testandset.patch 1394 +SHA256 226f17c6064f53be2908325153b64e5f3b7d3e2275b7bd0f1abac27404b4678e files/postgresql-7.4.18-hppa-testandset.patch 1394 +AUX postgresql-8.0.14-sh.patch 617 RMD160 d826fbb45265d09880000ea33ac3323beabb0f50 SHA1 e9a271f0fae2bad9150dbb8579615c90253e538b SHA256 420023f4789c650189da203d43b134d511ff1b976d17a3948774b0c7bf72d683 +MD5 0616d8126fb38e59b56f2922654e4724 files/postgresql-8.0.14-sh.patch 617 +RMD160 d826fbb45265d09880000ea33ac3323beabb0f50 files/postgresql-8.0.14-sh.patch 617 +SHA256 420023f4789c650189da203d43b134d511ff1b976d17a3948774b0c7bf72d683 files/postgresql-8.0.14-sh.patch 617 +AUX postgresql-8.1.10-regress_su.patch 5256 RMD160 7fe3080e015dd329e4502958a743f625e1ce9ccd SHA1 da1a69d3a622ebb1f3af68aa6fd0d4939c8e72b7 SHA256 a7ee073ac2940db3d7a8241923a58836c4e0c6b85b3dd3845ee6024cf4b83a05 +MD5 3caefdecf0acf62c7c41bd71a485a8ff files/postgresql-8.1.10-regress_su.patch 5256 +RMD160 7fe3080e015dd329e4502958a743f625e1ce9ccd files/postgresql-8.1.10-regress_su.patch 5256 +SHA256 a7ee073ac2940db3d7a8241923a58836c4e0c6b85b3dd3845ee6024cf4b83a05 files/postgresql-8.1.10-regress_su.patch 5256 +AUX postgresql-8.1.10-sh.patch 617 RMD160 56d0cb67f9b35402aa18dfce97fef343b78e1def SHA1 9ea425884b643a2ab364c4d4baa45e54a782206a SHA256 02ed0204e5075d6989e6d7f99def819396672468f829ce13b03e4763b74c0cad +MD5 baa6ba3092f75fcde19f31d46909a9dd files/postgresql-8.1.10-sh.patch 617 +RMD160 56d0cb67f9b35402aa18dfce97fef343b78e1def files/postgresql-8.1.10-sh.patch 617 +SHA256 02ed0204e5075d6989e6d7f99def819396672468f829ce13b03e4763b74c0cad files/postgresql-8.1.10-sh.patch 617 +AUX postgresql-8.2.5-gentoo.patch 1673 RMD160 59a9fb0ba13b7662a9a76e6722288cbb79e8bdd9 SHA1 ab66eef2b0f36bfde8dc8206dfa8a8a61a1825d4 SHA256 4f017d33da9f53937f19b2e3231b9f892fff13d37758f6462f0ac16f8c212fbe +MD5 92e019802f3846437161a4ba068a200a files/postgresql-8.2.5-gentoo.patch 1673 +RMD160 59a9fb0ba13b7662a9a76e6722288cbb79e8bdd9 files/postgresql-8.2.5-gentoo.patch 1673 +SHA256 4f017d33da9f53937f19b2e3231b9f892fff13d37758f6462f0ac16f8c212fbe files/postgresql-8.2.5-gentoo.patch 1673 +AUX postgresql-8.2.5-no-test.patch 290 RMD160 230ac3d019715752a33c6f9cb40e59e6c53b2826 SHA1 89f3e1ab21b0ecd5588210bd237d2c7fce1a83e0 SHA256 37d6e60b5ae4ba20e765448e484568c7cb2c597ad57cd68b05d224f0c9b8f27a +MD5 f5e16dbecc2693a8f7eaa807f736a73e files/postgresql-8.2.5-no-test.patch 290 +RMD160 230ac3d019715752a33c6f9cb40e59e6c53b2826 files/postgresql-8.2.5-no-test.patch 290 +SHA256 37d6e60b5ae4ba20e765448e484568c7cb2c597ad57cd68b05d224f0c9b8f27a files/postgresql-8.2.5-no-test.patch 290 +AUX postgresql-8.2.5-regress_fix.patch 1405 RMD160 268d2bd60d1abb12e7d42f1f8a98f064eda05f46 SHA1 7d7d826c14a3c6a00e29c2e4edb1e7d33812a978 SHA256 217a588720f9e20ab1db5f4eb4cda6189cb471477901a9e281d0cca0a1ed2862 +MD5 504d926a3d3279e93e73e8b02409aa49 files/postgresql-8.2.5-regress_fix.patch 1405 +RMD160 268d2bd60d1abb12e7d42f1f8a98f064eda05f46 files/postgresql-8.2.5-regress_fix.patch 1405 +SHA256 217a588720f9e20ab1db5f4eb4cda6189cb471477901a9e281d0cca0a1ed2862 files/postgresql-8.2.5-regress_fix.patch 1405 +AUX postgresql-8.2.5-regress_su.patch 898 RMD160 509319d82d263d903197f645c6db9fb3c020e11c SHA1 d090aa9870cda00ade6a53380ce95cdb416523e1 SHA256 953e4e2667fae709f764c81a6c3f176fb20692071fc00341a869cfbfab4a5977 +MD5 7b61fe42bac5cfd851a06ca039550ac2 files/postgresql-8.2.5-regress_su.patch 898 +RMD160 509319d82d263d903197f645c6db9fb3c020e11c files/postgresql-8.2.5-regress_su.patch 898 +SHA256 953e4e2667fae709f764c81a6c3f176fb20692071fc00341a869cfbfab4a5977 files/postgresql-8.2.5-regress_su.patch 898 +AUX postgresql-8.2.5-sh.patch 771 RMD160 10fed524ffd10845a59c7764a5eebe4d6fb2047f SHA1 e53700e73d98e863e7930b4ef0409ca45a004039 SHA256 14c917eaabf3c02033a2ce148f3aadb1c71b6ac3deb7147757bc06116cfd5413 +MD5 a98e98c803a969b58fe37ddad9772063 files/postgresql-8.2.5-sh.patch 771 +RMD160 10fed524ffd10845a59c7764a5eebe4d6fb2047f files/postgresql-8.2.5-sh.patch 771 +SHA256 14c917eaabf3c02033a2ce148f3aadb1c71b6ac3deb7147757bc06116cfd5413 files/postgresql-8.2.5-sh.patch 771 AUX postgresql.conf-7.3 391 RMD160 08437cac48aa9fc5d5b2840cf23395cb71fc270b SHA1 5a627c9f3d7f41df9e3228a2301f6ee0daf5f16f SHA256 b935682b39bf139f7d0a20a5901dd084476e4cc17189c0fc979f17334063701e MD5 55ee2ca58443142443c777c567a60a01 files/postgresql.conf-7.3 391 RMD160 08437cac48aa9fc5d5b2840cf23395cb71fc270b files/postgresql.conf-7.3 391 @@ -102,46 +102,38 @@ AUX postgresql.init-8.2 1427 RMD160 74393b4eb2b851c01deaa3dea10757c9bb74bd73 SHA MD5 525da9f09a404f188622921a3318efad files/postgresql.init-8.2 1427 RMD160 74393b4eb2b851c01deaa3dea10757c9bb74bd73 files/postgresql.init-8.2 1427 SHA256 c42e7ba85638a31826b4ed7a92a9f95cd242bbe7c846e52a8b87e0db28c17da5 files/postgresql.init-8.2 1427 -DIST postgresql-base-7.3.19.tar.bz2 5691127 RMD160 802bbba70d1368097a74de6b67589ab9645597cc SHA1 09206cd4d9c2b5648756eff70f101cec89365776 SHA256 1804e0424e4444f67acfb98b4e4ad2ede26748d1ddb4a9201cbff7627e394e6a -DIST postgresql-base-7.4.17.tar.bz2 6609512 RMD160 cd5aed1fb45cc42e12cca0cd31174b6726dae97b SHA1 2e413d570ed657f941ca77b1ac00ef1eeecddbcc SHA256 f1b7ff754ccb43d4a3a62a9124b1c8ac215e48e5549e620bfcde59124c6f1bc5 -DIST postgresql-base-8.0.13.tar.bz2 7848290 RMD160 de34ef01b76d777e9b22bcd16dd29328a11d35cf SHA1 aaee4e481644645f3ba66dd7a66377ef3b22cd9c SHA256 5627ad76e6a6c8eb85c1debe5fce2c12b42611434dabe0fd5763b8a72c7ac49d -DIST postgresql-base-8.1.9.tar.bz2 8108212 RMD160 e10c91f95e16cfcdf10235d533855676f8e03ceb SHA1 d6b042dd8ff095f1ced53ab9e6e2ea7b2eea5cfb SHA256 4d11584d545d5f18566bc1bf65409794adceef1825dc4850514238f6b5d3f5fd -DIST postgresql-base-8.2.4.tar.bz2 8549159 RMD160 876105c3cc9d36b66cf9dc9b687d4b6f6b2c3d9c SHA1 9ffc18c520e8829c957089ce46a7f3cd4113b6ac SHA256 8ee5ad364ee21079ce3d726b4abcfa0f318015a331e37e9856a3500fcce74cca -DIST postgresql-docs-7.3.19.tar.bz2 2365906 RMD160 acad805217a5b16badc5ea1c5f88e2780d48e849 SHA1 3af665fdbd6f0ac2b1d1563944401b5e470f25c1 SHA256 0a4910cf776b6be8017eaf68a60c541be59288079fe5696d955bdace22ebde0a -DIST postgresql-docs-7.4.17.tar.bz2 2434028 RMD160 a7470801732f7458c4a6dec6b441b151a2963d88 SHA1 fbb8f744151e0a81c2047b40211a694d62c09bd8 SHA256 855b08821fa06cce280d63c1c57a1a51cc02eee1af0a53ba9a550cc3e66c2696 -DIST postgresql-docs-8.0.13.tar.bz2 2271196 RMD160 fdb9775d082da9c10aebb9394d84c55cfea3f4d7 SHA1 b9d23b6c70fc3dc365a397d8eef3bd38b9ea1820 SHA256 a703a22b11288eb20b5c4f28e34cfeeed11c730cebf51671049ad37ace5e204d -DIST postgresql-docs-8.1.9.tar.bz2 2503673 RMD160 68df3beb8c8f2ccdcf0f3875d4d1bacf1ad3017d SHA1 3139df4e62c4f83b68691a46376730f7501c93f1 SHA256 9b1f5d47345067baf9ecc71941707199d055d2f147a206b1b70245a9d5c45b30 -DIST postgresql-docs-8.2.4.tar.bz2 2769630 RMD160 bcdb176f509f69141524ababa0f6c9b1a1dd5c3f SHA1 2981a1901d2f4d6f54bf12f847456a634344aa86 SHA256 2bb5bea974a68f562e40104d756ea87dbd831cf8fbd4bb54faca38f23c87de4c -DIST postgresql-opt-7.3.19.tar.bz2 342076 RMD160 7ee1dea5c906d88ba3384ea805368a9dcb8af47d SHA1 0736e5056f1428fc542853975e7fbd1b383f568c SHA256 2735bceed9f0d27befb3ec26b5d76f9272da1cdf2434ceb9d68327494912017f -DIST postgresql-opt-7.4.17.tar.bz2 333513 RMD160 55b7d1c9900f590d778c915d586d8cafd14dc633 SHA1 d2ac133dd0eb3a8faf2e5cbaa275ed575391b658 SHA256 8ff6ca8f726ce39d873d495273c31ceb3d647d75a85a7940b38d38ae7b2eff3e -DIST postgresql-opt-8.0.13.tar.bz2 134769 RMD160 f3fb741c5dcff23045a58baf57f4386099e3c563 SHA1 ccdc23eb12b19c6d88633125b9e0c2feeda5f93e SHA256 9f63fc12ede1a605934cdc462ff45c0e924288284f411ae38dec1c5b6e87ce25 -DIST postgresql-opt-8.1.9.tar.bz2 144737 RMD160 3541c7c2d86e7a9d129d521c3a7bac189758d1a5 SHA1 d3b011edaa9b05295b15692bfe0932b1e37572d2 SHA256 b8c5c3098c53e8c8b722ba8928787eb7478beeb3c6b42adbaad1d8ca24d2e49f -DIST postgresql-opt-8.2.4.tar.bz2 167612 RMD160 aaacb743be86afbfe0f885b7994c15c94fef2413 SHA1 892112c6f348bccce534f87336ea073a0b8ca249 SHA256 5977ca1f0913aa98bc889e49b38768621865959b14e2674e7716d44b7fe9eb35 -DIST postgresql-test-7.3.19.tar.bz2 891109 RMD160 4f5ee0f9c4dd86b6ee54a818e25e929c2fc2334f SHA1 7d40accb365cc41091a6fd62d08e2e8d57121678 SHA256 8df80f3fb5f61d61fe6348e037c614b3c0f2114ae5c8a7f3050b5fadde517ba3 -DIST postgresql-test-7.4.17.tar.bz2 902524 RMD160 5d2580ac74e01a65d9c00bc7a2900630e2c5720d SHA1 abd0a33ad4e7d7c94b0762913c4bee9762a8b345 SHA256 0486999f89b38996c15a91a66638f40718d5fb702ac592f4f2a22e9377b6b6bf -DIST postgresql-test-8.0.13.tar.bz2 932945 RMD160 d1a1c5e05337d82fb1fc2a7249e98ce8df375978 SHA1 07924ea198ce2654b65ecce6cd05025f24b62b86 SHA256 ea7e45aa8d9d8f127704e659575a0e860fd53abdaefa7c0f256f246c283ff1cf -DIST postgresql-test-8.1.9.tar.bz2 948085 RMD160 80f20a3353ee437efc78390d8d2d0d12c5cb519f SHA1 5a37496ab4bcb1a991674ae1b7ecdcc52f988abc SHA256 2dd60f661df70d43b261af0722e768f6ec4dc856c765c3dd9cd24042089323ba -DIST postgresql-test-8.2.4.tar.bz2 985819 RMD160 c5fcbef081565f7ba02fc4ac96ce8e1f4141c3ae SHA1 60be22d85c37d1ea461401b8e7c10472a3458913 SHA256 fc4471ecece04251289cfe7feb0acbafa3a18cf8f35c2d61ce3f68bd4394e504 -EBUILD postgresql-7.3.19.ebuild 8297 RMD160 ecf53fe4847969c958356a86fe9a32654177fc8c SHA1 2fb12fb98fbb2558e2f7f6d59cf78a0b19052a00 SHA256 06fac74e0a35d92b67c6074b54b3d7cbdca1c61ad6eec97a8b8f22ed137f2775 -MD5 bdab29f663a93f56c151b29b5c08f0ae postgresql-7.3.19.ebuild 8297 -RMD160 ecf53fe4847969c958356a86fe9a32654177fc8c postgresql-7.3.19.ebuild 8297 -SHA256 06fac74e0a35d92b67c6074b54b3d7cbdca1c61ad6eec97a8b8f22ed137f2775 postgresql-7.3.19.ebuild 8297 -EBUILD postgresql-7.4.17.ebuild 9820 RMD160 7171701f75a2adabb0bdfc0a8d8da563827c6ae1 SHA1 079b254dd58742043fd2f5e14f9e65c0599688da SHA256 7d6eabceb643770782b63ed4d89b62d6cc9f35405ccacd0c0c9be00c8fca6b2b -MD5 5365ca16001adbb0305f2502d56a7bb9 postgresql-7.4.17.ebuild 9820 -RMD160 7171701f75a2adabb0bdfc0a8d8da563827c6ae1 postgresql-7.4.17.ebuild 9820 -SHA256 7d6eabceb643770782b63ed4d89b62d6cc9f35405ccacd0c0c9be00c8fca6b2b postgresql-7.4.17.ebuild 9820 -EBUILD postgresql-8.0.13.ebuild 9730 RMD160 ce01730e73551dbd011df498c0bb74fb20580f46 SHA1 365e2d5a881ae19e73be13a3845b54c7ec594a78 SHA256 23ef3455aacdb77342e4df5173651c22af220c24568aabbfabb1caf9db406f58 -MD5 b46bebfad517e18ebcd35968fe0d9b76 postgresql-8.0.13.ebuild 9730 -RMD160 ce01730e73551dbd011df498c0bb74fb20580f46 postgresql-8.0.13.ebuild 9730 -SHA256 23ef3455aacdb77342e4df5173651c22af220c24568aabbfabb1caf9db406f58 postgresql-8.0.13.ebuild 9730 -EBUILD postgresql-8.1.9.ebuild 8631 RMD160 8056182d7354ebabe866a2d0a2044577f276fb18 SHA1 9cf7ed142695c45c2c44c2b6d7842c1e8ca479a1 SHA256 97f65ea357bd967d0b48d8b02cf5704d27bcb0c9a45562879ae129555928f843 -MD5 abcfb6d355b5c58aa00881054870f59b postgresql-8.1.9.ebuild 8631 -RMD160 8056182d7354ebabe866a2d0a2044577f276fb18 postgresql-8.1.9.ebuild 8631 -SHA256 97f65ea357bd967d0b48d8b02cf5704d27bcb0c9a45562879ae129555928f843 postgresql-8.1.9.ebuild 8631 -EBUILD postgresql-8.2.4-r1.ebuild 8312 RMD160 38dc428b85595263fc09b9fc9d3e7ab861f4cae8 SHA1 d2cd1f4571bafc5b62330c425f9acf76de87e81b SHA256 2aeb054564949a286fbb8c5442218e5d22153668fd2d6d9a4729f632a214237e -MD5 46690a819b1c5df5cbdb962e01df1c33 postgresql-8.2.4-r1.ebuild 8312 -RMD160 38dc428b85595263fc09b9fc9d3e7ab861f4cae8 postgresql-8.2.4-r1.ebuild 8312 -SHA256 2aeb054564949a286fbb8c5442218e5d22153668fd2d6d9a4729f632a214237e postgresql-8.2.4-r1.ebuild 8312 +DIST postgresql-base-7.3.20.tar.bz2 5711312 RMD160 1230e544979d7d22352ef66741568190e1ee533d SHA1 b60eb82bc7728a54b9766ac862410c43aa5299cf SHA256 009695d3c04004c7ba6365b112dee0cad6738daa2550fdb37c2adab52994e636 +DIST postgresql-base-8.0.14.tar.bz2 7907547 RMD160 4e1c627af447ef24ec343baa3121edd2427d9fa9 SHA1 55880d8e398faffb4a88e808a3dca2cef77b1b79 SHA256 8201ce5a99051c2b561f4b58ce07f17fe4959383ef38afcb25ab802119f9755e +DIST postgresql-base-8.1.10.tar.bz2 8110015 RMD160 473e1c66ccc9d4ec47b01b03dff7951749afc785 SHA1 6d4c53d9946386d44f6ee33a9f76d92e00fc1f9c SHA256 c49b8b094838024ef09d1e574181c409dbc3bb13c8470ae495e74a0185aed981 +DIST postgresql-base-8.2.5.tar.bz2 8602348 RMD160 784924608f8bad40d079b3f54a75d98ea302ac34 SHA1 437b5e0144485be16557cbb3d48102063e7df69d SHA256 b70a2cc0d0613944ce0eae99c1001894354b77e81c8ae45f6c8c890709861929 +DIST postgresql-docs-7.3.20.tar.bz2 2365475 RMD160 65579b7d5c21db7c18ef2dc763e14b509cee4b71 SHA1 2181227ac0cfbbe3e6bf318b8fee8d5f09625f97 SHA256 4e337e64a2c2cd9f8f600e6f0514be9c9170b1fabf2b9534c6f8c7ed9ace5373 +DIST postgresql-docs-8.0.14.tar.bz2 2274002 RMD160 fc62e74b90c6b8b241aa3f825db418170c0e5e48 SHA1 54540eb3083bdf20bf680a26890829df40e9c821 SHA256 df1da39c1bbdb54f506a25332770ccf19296234ba0b9ac755e8b1c5bdf296f10 +DIST postgresql-docs-8.1.10.tar.bz2 2507870 RMD160 99651337e7e6addbc4f5298874df369917b6994e SHA1 e9924dcbc3a7a65826edfddbd671edcee79b6aad SHA256 870edb5e0d364d235f9f83820256db66eaf1aebfd47e05b7a4546bff53bfac88 +DIST postgresql-docs-8.2.5.tar.bz2 2773777 RMD160 56cdea05e6b162f21b021df807f6051102d14b75 SHA1 14f8051f8a548615357a2b89223cdb15d1817e9f SHA256 8824f13eaca20328ffa1244ba036c51890a718f40683b9e3003e72b77a1f774d +DIST postgresql-opt-7.3.20.tar.bz2 344312 RMD160 f3f4723a7dd28e2d961d67d06db5de6978d0e9b9 SHA1 9feeef2b8a250b1cc29b75e372758566c67cb444 SHA256 050c79c87d9dbf443fbda20b0f8fd40523231c2c6bcf1a24808214fe599f4d17 +DIST postgresql-opt-8.0.14.tar.bz2 134706 RMD160 ff8773b373aa33f6c43f2d7cc3a56b4484197fc7 SHA1 359127fba3130e46309b24f019eea0fb278ea033 SHA256 b097922bb346c039dc605b45927dca2916394d587000d5412b30c9ca5a1c117a +DIST postgresql-opt-8.1.10.tar.bz2 144584 RMD160 fd9f11216465513494320b43fe27614c01b98e98 SHA1 d316b1a3b2a8f766ecf871537cf5d8067232a978 SHA256 9c99a8c31515107e29201e2ba1c5362871851b54bcf6bb9a5d3f81848196834f +DIST postgresql-opt-8.2.5.tar.bz2 167549 RMD160 92f6ee646eaf0268ee165fd592013cc3acaee5ca SHA1 bc1bf7528033bc17ae4e93ed071dd2b40bd19f94 SHA256 0d64c3fd4fb097126d9cb7d599fbd86435f23d887f7985c9fdb441db4e3c9ae5 +DIST postgresql-test-7.3.20.tar.bz2 869518 RMD160 e5cc3a2a96ee3ca4ea0315960bc1712aa0508e9f SHA1 ad79da5533b99ad99f83b405fbc83d84d365cd37 SHA256 05648eda34c9a4670e5afa3fb6dad7bdf0ce69ffa633b8a83cd424de942562d7 +DIST postgresql-test-8.0.14.tar.bz2 935168 RMD160 109af78285a2309210a88cc270ca10264d1b5d39 SHA1 9ea2a05bd25ecbcfc0443424d60fe31b9e5bf121 SHA256 a228576902ea273aff6ee1f7bd7e4bd5d5b6d0b9bbb532aec1c83d5a6beb5a6e +DIST postgresql-test-8.1.10.tar.bz2 948352 RMD160 8c25d16ace091dda2fcec5d39c9199d9829e91e9 SHA1 a1ba7e1b845eb05e5d24b22fe2ab5beafe39b22a SHA256 d887a18cade52167c0390fa7270bf86e33d95cba34d2ac3f755e13a1360d9de8 +DIST postgresql-test-8.2.5.tar.bz2 987137 RMD160 0acc94206384bcd784bd2d35e9d5b9c256e24db0 SHA1 cd5da8abcee439ff4d613951293d48ea432274da SHA256 89174ef45e2ce09221d31c57745ecc18ea8f28389b0ba541ec2f26ba656dc752 +EBUILD postgresql-7.3.20.ebuild 8297 RMD160 ecf53fe4847969c958356a86fe9a32654177fc8c SHA1 2fb12fb98fbb2558e2f7f6d59cf78a0b19052a00 SHA256 06fac74e0a35d92b67c6074b54b3d7cbdca1c61ad6eec97a8b8f22ed137f2775 +MD5 bdab29f663a93f56c151b29b5c08f0ae postgresql-7.3.20.ebuild 8297 +RMD160 ecf53fe4847969c958356a86fe9a32654177fc8c postgresql-7.3.20.ebuild 8297 +SHA256 06fac74e0a35d92b67c6074b54b3d7cbdca1c61ad6eec97a8b8f22ed137f2775 postgresql-7.3.20.ebuild 8297 +EBUILD postgresql-8.0.14.ebuild 9730 RMD160 ce01730e73551dbd011df498c0bb74fb20580f46 SHA1 365e2d5a881ae19e73be13a3845b54c7ec594a78 SHA256 23ef3455aacdb77342e4df5173651c22af220c24568aabbfabb1caf9db406f58 +MD5 b46bebfad517e18ebcd35968fe0d9b76 postgresql-8.0.14.ebuild 9730 +RMD160 ce01730e73551dbd011df498c0bb74fb20580f46 postgresql-8.0.14.ebuild 9730 +SHA256 23ef3455aacdb77342e4df5173651c22af220c24568aabbfabb1caf9db406f58 postgresql-8.0.14.ebuild 9730 +EBUILD postgresql-8.1.10.ebuild 8631 RMD160 8056182d7354ebabe866a2d0a2044577f276fb18 SHA1 9cf7ed142695c45c2c44c2b6d7842c1e8ca479a1 SHA256 97f65ea357bd967d0b48d8b02cf5704d27bcb0c9a45562879ae129555928f843 +MD5 abcfb6d355b5c58aa00881054870f59b postgresql-8.1.10.ebuild 8631 +RMD160 8056182d7354ebabe866a2d0a2044577f276fb18 postgresql-8.1.10.ebuild 8631 +SHA256 97f65ea357bd967d0b48d8b02cf5704d27bcb0c9a45562879ae129555928f843 postgresql-8.1.10.ebuild 8631 +EBUILD postgresql-8.2.5.ebuild 8312 RMD160 38dc428b85595263fc09b9fc9d3e7ab861f4cae8 SHA1 d2cd1f4571bafc5b62330c425f9acf76de87e81b SHA256 2aeb054564949a286fbb8c5442218e5d22153668fd2d6d9a4729f632a214237e +MD5 46690a819b1c5df5cbdb962e01df1c33 postgresql-8.2.5.ebuild 8312 +RMD160 38dc428b85595263fc09b9fc9d3e7ab861f4cae8 postgresql-8.2.5.ebuild 8312 +SHA256 2aeb054564949a286fbb8c5442218e5d22153668fd2d6d9a4729f632a214237e postgresql-8.2.5.ebuild 8312 MISC ChangeLog 74992 RMD160 39f738be5d6f1718604b83ff0903387ac2c72323 SHA1 9194c1527e505c4474464922d1c03385f87f1223 SHA256 718c5869ade3256f8af569d9bedaaa75e2f33c0be34f774b74bda3b0b91a03a6 MD5 e3445f1aee8081c4c55ae95976606ab6 ChangeLog 74992 RMD160 39f738be5d6f1718604b83ff0903387ac2c72323 ChangeLog 74992 @@ -150,18 +142,19 @@ MISC metadata.xml 164 RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc SHA1 f67b7 MD5 6fe52df942ef15801d56449cd8299604 metadata.xml 164 RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc metadata.xml 164 SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b metadata.xml 164 -MD5 0bff8b5391e9dbfa8b6a919a0d524a37 files/digest-postgresql-7.3.19 1087 -RMD160 1bb8544863cd2c6d2fa317d55e1ecfb230547f1c files/digest-postgresql-7.3.19 1087 -SHA256 59079fe9d80de56c7e6eef5e64f106bbf5143462d9472953a192e33a4b6201b7 files/digest-postgresql-7.3.19 1087 -MD5 561024989ce7be36fa4474211ae7b7c2 files/digest-postgresql-7.4.17 1087 -RMD160 811b466e6e54693166ac405d7c0dbb750728f6e0 files/digest-postgresql-7.4.17 1087 -SHA256 e1b60261487e99d6101290910dc22449e743c54e17c404c3f995bfca6940ea41 files/digest-postgresql-7.4.17 1087 -MD5 cacd8257d8fc0d524abc6e5f2dfcdb42 files/digest-postgresql-8.0.13 1087 -RMD160 8da664bd5067ebe6957f407f6020dc3f4056cc6a files/digest-postgresql-8.0.13 1087 -SHA256 b307557da314dd1a813501cfbf1054e18221024f2dc5b8410f62ee37030ffe72 files/digest-postgresql-8.0.13 1087 -MD5 55e13506c44ed85e1bac4fb9261c6c51 files/digest-postgresql-8.1.9 1075 -RMD160 cec4abffe35cc6dc7157421a4899f70534ece108 files/digest-postgresql-8.1.9 1075 -SHA256 6093606fa8b0a2a30a482349bdb4c3aa88e29f2f4db3b393ca6fac95d9494390 files/digest-postgresql-8.1.9 1075 -MD5 031a5efbcf25065353b4fa99ce8eed06 files/digest-postgresql-8.2.4-r1 1075 -RMD160 f104cae333b08b01f69666b88148550560705327 files/digest-postgresql-8.2.4-r1 1075 -SHA256 f8c9a8dde1f6bfe419ec4a6b807212cff84050eb3233d90e863ad0c359dd6225 files/digest-postgresql-8.2.4-r1 1075 +MISC postgresql-7.4.18.ebuid 9820 RMD160 7171701f75a2adabb0bdfc0a8d8da563827c6ae1 SHA1 079b254dd58742043fd2f5e14f9e65c0599688da SHA256 7d6eabceb643770782b63ed4d89b62d6cc9f35405ccacd0c0c9be00c8fca6b2b +MD5 5365ca16001adbb0305f2502d56a7bb9 postgresql-7.4.18.ebuid 9820 +RMD160 7171701f75a2adabb0bdfc0a8d8da563827c6ae1 postgresql-7.4.18.ebuid 9820 +SHA256 7d6eabceb643770782b63ed4d89b62d6cc9f35405ccacd0c0c9be00c8fca6b2b postgresql-7.4.18.ebuid 9820 +MD5 21c9afed50d51a082f9f942fb9178b06 files/digest-postgresql-7.3.20 1087 +RMD160 906b5e4b6fa826e7ecbe184210318b526e76d8fa files/digest-postgresql-7.3.20 1087 +SHA256 c2608223c511b5180b63dc84c6c312d44516f2b924e6333f896f0326d5c2ddfc files/digest-postgresql-7.3.20 1087 +MD5 d192a3e584ab6a2467154fb9f33df6f4 files/digest-postgresql-8.0.14 1087 +RMD160 ff4ec2e82cdb979956e9fb316ff9d6a470ee8150 files/digest-postgresql-8.0.14 1087 +SHA256 dd249dc84eb6d7448e86a69b9f9f9fc7bc8d4d90270e2f643f07a2e5feb8cdde files/digest-postgresql-8.0.14 1087 +MD5 a92caea3237bffd614fd7f3ab8b5b8a2 files/digest-postgresql-8.1.10 1087 +RMD160 cdcaf0e00a54f722b6b1661dc7c0f7d134645563 files/digest-postgresql-8.1.10 1087 +SHA256 36ec13704102fdbd7d89dc673f68d967e6f55439ce8f0e00fbbe8f88527eb14c files/digest-postgresql-8.1.10 1087 +MD5 c7b291021a2ff0055c5ae3a448e8bca3 files/digest-postgresql-8.2.5 1075 +RMD160 1a65f13bdded9b5afd47f2a9188c23d92dcceca8 files/digest-postgresql-8.2.5 1075 +SHA256 1d7acf008ad3c1a156674114e003c69baddb659baea22e54162330c9ad904a2d files/digest-postgresql-8.2.5 1075 diff --git a/dev-db/postgresql/files/digest-postgresql-7.3.19 b/dev-db/postgresql/files/digest-postgresql-7.3.19 deleted file mode 100644 index 770e854..0000000 --- a/dev-db/postgresql/files/digest-postgresql-7.3.19 +++ /dev/null @@ -1,12 +0,0 @@ -MD5 b9b2dca0468bafff72486bd54812c317 postgresql-base-7.3.19.tar.bz2 5691127 -RMD160 802bbba70d1368097a74de6b67589ab9645597cc postgresql-base-7.3.19.tar.bz2 5691127 -SHA256 1804e0424e4444f67acfb98b4e4ad2ede26748d1ddb4a9201cbff7627e394e6a postgresql-base-7.3.19.tar.bz2 5691127 -MD5 de4888125bef49f9f53824d4f9ae7bf6 postgresql-docs-7.3.19.tar.bz2 2365906 -RMD160 acad805217a5b16badc5ea1c5f88e2780d48e849 postgresql-docs-7.3.19.tar.bz2 2365906 -SHA256 0a4910cf776b6be8017eaf68a60c541be59288079fe5696d955bdace22ebde0a postgresql-docs-7.3.19.tar.bz2 2365906 -MD5 1fe88fa959492155518787c0eb197b14 postgresql-opt-7.3.19.tar.bz2 342076 -RMD160 7ee1dea5c906d88ba3384ea805368a9dcb8af47d postgresql-opt-7.3.19.tar.bz2 342076 -SHA256 2735bceed9f0d27befb3ec26b5d76f9272da1cdf2434ceb9d68327494912017f postgresql-opt-7.3.19.tar.bz2 342076 -MD5 a0958b2352586b7cd4083f46e1ba1ae8 postgresql-test-7.3.19.tar.bz2 891109 -RMD160 4f5ee0f9c4dd86b6ee54a818e25e929c2fc2334f postgresql-test-7.3.19.tar.bz2 891109 -SHA256 8df80f3fb5f61d61fe6348e037c614b3c0f2114ae5c8a7f3050b5fadde517ba3 postgresql-test-7.3.19.tar.bz2 891109 diff --git a/dev-db/postgresql/files/digest-postgresql-7.3.20 b/dev-db/postgresql/files/digest-postgresql-7.3.20 new file mode 100644 index 0000000..75d2edf --- /dev/null +++ b/dev-db/postgresql/files/digest-postgresql-7.3.20 @@ -0,0 +1,12 @@ +MD5 fb5cc3b22d3fceb8cfb5b89061ceadb0 postgresql-base-7.3.20.tar.bz2 5711312 +RMD160 1230e544979d7d22352ef66741568190e1ee533d postgresql-base-7.3.20.tar.bz2 5711312 +SHA256 009695d3c04004c7ba6365b112dee0cad6738daa2550fdb37c2adab52994e636 postgresql-base-7.3.20.tar.bz2 5711312 +MD5 53472e7d7bf808b738d31a52bd7c6451 postgresql-docs-7.3.20.tar.bz2 2365475 +RMD160 65579b7d5c21db7c18ef2dc763e14b509cee4b71 postgresql-docs-7.3.20.tar.bz2 2365475 +SHA256 4e337e64a2c2cd9f8f600e6f0514be9c9170b1fabf2b9534c6f8c7ed9ace5373 postgresql-docs-7.3.20.tar.bz2 2365475 +MD5 e88b8f75c07a844a65eeb3a5194f3d80 postgresql-opt-7.3.20.tar.bz2 344312 +RMD160 f3f4723a7dd28e2d961d67d06db5de6978d0e9b9 postgresql-opt-7.3.20.tar.bz2 344312 +SHA256 050c79c87d9dbf443fbda20b0f8fd40523231c2c6bcf1a24808214fe599f4d17 postgresql-opt-7.3.20.tar.bz2 344312 +MD5 0195720da56dfb16140393ace788f907 postgresql-test-7.3.20.tar.bz2 869518 +RMD160 e5cc3a2a96ee3ca4ea0315960bc1712aa0508e9f postgresql-test-7.3.20.tar.bz2 869518 +SHA256 05648eda34c9a4670e5afa3fb6dad7bdf0ce69ffa633b8a83cd424de942562d7 postgresql-test-7.3.20.tar.bz2 869518 diff --git a/dev-db/postgresql/files/digest-postgresql-7.4.17 b/dev-db/postgresql/files/digest-postgresql-7.4.17 deleted file mode 100644 index d0643a9..0000000 --- a/dev-db/postgresql/files/digest-postgresql-7.4.17 +++ /dev/null @@ -1,12 +0,0 @@ -MD5 c513ae755abd4fb011378351be9e1ba0 postgresql-base-7.4.17.tar.bz2 6609512 -RMD160 cd5aed1fb45cc42e12cca0cd31174b6726dae97b postgresql-base-7.4.17.tar.bz2 6609512 -SHA256 f1b7ff754ccb43d4a3a62a9124b1c8ac215e48e5549e620bfcde59124c6f1bc5 postgresql-base-7.4.17.tar.bz2 6609512 -MD5 e9a33e70add61f6a1018870c88dbf0ea postgresql-docs-7.4.17.tar.bz2 2434028 -RMD160 a7470801732f7458c4a6dec6b441b151a2963d88 postgresql-docs-7.4.17.tar.bz2 2434028 -SHA256 855b08821fa06cce280d63c1c57a1a51cc02eee1af0a53ba9a550cc3e66c2696 postgresql-docs-7.4.17.tar.bz2 2434028 -MD5 43a87be48f3e43c5fce957af000bff60 postgresql-opt-7.4.17.tar.bz2 333513 -RMD160 55b7d1c9900f590d778c915d586d8cafd14dc633 postgresql-opt-7.4.17.tar.bz2 333513 -SHA256 8ff6ca8f726ce39d873d495273c31ceb3d647d75a85a7940b38d38ae7b2eff3e postgresql-opt-7.4.17.tar.bz2 333513 -MD5 493b0b142f0ca6fb52dbdfc5c32e0c5b postgresql-test-7.4.17.tar.bz2 902524 -RMD160 5d2580ac74e01a65d9c00bc7a2900630e2c5720d postgresql-test-7.4.17.tar.bz2 902524 -SHA256 0486999f89b38996c15a91a66638f40718d5fb702ac592f4f2a22e9377b6b6bf postgresql-test-7.4.17.tar.bz2 902524 diff --git a/dev-db/postgresql/files/digest-postgresql-8.0.13 b/dev-db/postgresql/files/digest-postgresql-8.0.13 deleted file mode 100644 index 1a68a72..0000000 --- a/dev-db/postgresql/files/digest-postgresql-8.0.13 +++ /dev/null @@ -1,12 +0,0 @@ -MD5 d3b5185dc6a12f2443f06f83cdee03d0 postgresql-base-8.0.13.tar.bz2 7848290 -RMD160 de34ef01b76d777e9b22bcd16dd29328a11d35cf postgresql-base-8.0.13.tar.bz2 7848290 -SHA256 5627ad76e6a6c8eb85c1debe5fce2c12b42611434dabe0fd5763b8a72c7ac49d postgresql-base-8.0.13.tar.bz2 7848290 -MD5 877fc8417555cff0a889d38013afefd6 postgresql-docs-8.0.13.tar.bz2 2271196 -RMD160 fdb9775d082da9c10aebb9394d84c55cfea3f4d7 postgresql-docs-8.0.13.tar.bz2 2271196 -SHA256 a703a22b11288eb20b5c4f28e34cfeeed11c730cebf51671049ad37ace5e204d postgresql-docs-8.0.13.tar.bz2 2271196 -MD5 824caf8451dec685a0d5886eb4892807 postgresql-opt-8.0.13.tar.bz2 134769 -RMD160 f3fb741c5dcff23045a58baf57f4386099e3c563 postgresql-opt-8.0.13.tar.bz2 134769 -SHA256 9f63fc12ede1a605934cdc462ff45c0e924288284f411ae38dec1c5b6e87ce25 postgresql-opt-8.0.13.tar.bz2 134769 -MD5 e736c9887ca4c66051501ce2b95a88f8 postgresql-test-8.0.13.tar.bz2 932945 -RMD160 d1a1c5e05337d82fb1fc2a7249e98ce8df375978 postgresql-test-8.0.13.tar.bz2 932945 -SHA256 ea7e45aa8d9d8f127704e659575a0e860fd53abdaefa7c0f256f246c283ff1cf postgresql-test-8.0.13.tar.bz2 932945 diff --git a/dev-db/postgresql/files/digest-postgresql-8.0.14 b/dev-db/postgresql/files/digest-postgresql-8.0.14 new file mode 100644 index 0000000..fd54bdb --- /dev/null +++ b/dev-db/postgresql/files/digest-postgresql-8.0.14 @@ -0,0 +1,12 @@ +MD5 ffaaa630db6613cedbe935edd85d2a98 postgresql-base-8.0.14.tar.bz2 7907547 +RMD160 4e1c627af447ef24ec343baa3121edd2427d9fa9 postgresql-base-8.0.14.tar.bz2 7907547 +SHA256 8201ce5a99051c2b561f4b58ce07f17fe4959383ef38afcb25ab802119f9755e postgresql-base-8.0.14.tar.bz2 7907547 +MD5 2435d1036364eecf093bc783d4e92101 postgresql-docs-8.0.14.tar.bz2 2274002 +RMD160 fc62e74b90c6b8b241aa3f825db418170c0e5e48 postgresql-docs-8.0.14.tar.bz2 2274002 +SHA256 df1da39c1bbdb54f506a25332770ccf19296234ba0b9ac755e8b1c5bdf296f10 postgresql-docs-8.0.14.tar.bz2 2274002 +MD5 6a6feb48ca70bf1e36e99bab1671b66d postgresql-opt-8.0.14.tar.bz2 134706 +RMD160 ff8773b373aa33f6c43f2d7cc3a56b4484197fc7 postgresql-opt-8.0.14.tar.bz2 134706 +SHA256 b097922bb346c039dc605b45927dca2916394d587000d5412b30c9ca5a1c117a postgresql-opt-8.0.14.tar.bz2 134706 +MD5 fd66be583db9d5b38d0822b9a9a027b0 postgresql-test-8.0.14.tar.bz2 935168 +RMD160 109af78285a2309210a88cc270ca10264d1b5d39 postgresql-test-8.0.14.tar.bz2 935168 +SHA256 a228576902ea273aff6ee1f7bd7e4bd5d5b6d0b9bbb532aec1c83d5a6beb5a6e postgresql-test-8.0.14.tar.bz2 935168 diff --git a/dev-db/postgresql/files/digest-postgresql-8.1.10 b/dev-db/postgresql/files/digest-postgresql-8.1.10 new file mode 100644 index 0000000..93d6e44 --- /dev/null +++ b/dev-db/postgresql/files/digest-postgresql-8.1.10 @@ -0,0 +1,12 @@ +MD5 dbb5c5e48a43037e979b621f0c03614b postgresql-base-8.1.10.tar.bz2 8110015 +RMD160 473e1c66ccc9d4ec47b01b03dff7951749afc785 postgresql-base-8.1.10.tar.bz2 8110015 +SHA256 c49b8b094838024ef09d1e574181c409dbc3bb13c8470ae495e74a0185aed981 postgresql-base-8.1.10.tar.bz2 8110015 +MD5 c6423b4745c1f677448af4f20dfda5f9 postgresql-docs-8.1.10.tar.bz2 2507870 +RMD160 99651337e7e6addbc4f5298874df369917b6994e postgresql-docs-8.1.10.tar.bz2 2507870 +SHA256 870edb5e0d364d235f9f83820256db66eaf1aebfd47e05b7a4546bff53bfac88 postgresql-docs-8.1.10.tar.bz2 2507870 +MD5 23f7f08905a05a50a681ea2a83b049ab postgresql-opt-8.1.10.tar.bz2 144584 +RMD160 fd9f11216465513494320b43fe27614c01b98e98 postgresql-opt-8.1.10.tar.bz2 144584 +SHA256 9c99a8c31515107e29201e2ba1c5362871851b54bcf6bb9a5d3f81848196834f postgresql-opt-8.1.10.tar.bz2 144584 +MD5 3dce92e7913ea70ca0c240a3adf93140 postgresql-test-8.1.10.tar.bz2 948352 +RMD160 8c25d16ace091dda2fcec5d39c9199d9829e91e9 postgresql-test-8.1.10.tar.bz2 948352 +SHA256 d887a18cade52167c0390fa7270bf86e33d95cba34d2ac3f755e13a1360d9de8 postgresql-test-8.1.10.tar.bz2 948352 diff --git a/dev-db/postgresql/files/digest-postgresql-8.1.9 b/dev-db/postgresql/files/digest-postgresql-8.1.9 deleted file mode 100644 index a20386c..0000000 --- a/dev-db/postgresql/files/digest-postgresql-8.1.9 +++ /dev/null @@ -1,12 +0,0 @@ -MD5 44582cd7184badf63d9c558f91cdd128 postgresql-base-8.1.9.tar.bz2 8108212 -RMD160 e10c91f95e16cfcdf10235d533855676f8e03ceb postgresql-base-8.1.9.tar.bz2 8108212 -SHA256 4d11584d545d5f18566bc1bf65409794adceef1825dc4850514238f6b5d3f5fd postgresql-base-8.1.9.tar.bz2 8108212 -MD5 a13ad4fbe78aa2ab4f86381cfcec8eb7 postgresql-docs-8.1.9.tar.bz2 2503673 -RMD160 68df3beb8c8f2ccdcf0f3875d4d1bacf1ad3017d postgresql-docs-8.1.9.tar.bz2 2503673 -SHA256 9b1f5d47345067baf9ecc71941707199d055d2f147a206b1b70245a9d5c45b30 postgresql-docs-8.1.9.tar.bz2 2503673 -MD5 26fed39417431ff56e213caf11dc7215 postgresql-opt-8.1.9.tar.bz2 144737 -RMD160 3541c7c2d86e7a9d129d521c3a7bac189758d1a5 postgresql-opt-8.1.9.tar.bz2 144737 -SHA256 b8c5c3098c53e8c8b722ba8928787eb7478beeb3c6b42adbaad1d8ca24d2e49f postgresql-opt-8.1.9.tar.bz2 144737 -MD5 abd4d19d536f846eb37f63d50bbfc02f postgresql-test-8.1.9.tar.bz2 948085 -RMD160 80f20a3353ee437efc78390d8d2d0d12c5cb519f postgresql-test-8.1.9.tar.bz2 948085 -SHA256 2dd60f661df70d43b261af0722e768f6ec4dc856c765c3dd9cd24042089323ba postgresql-test-8.1.9.tar.bz2 948085 diff --git a/dev-db/postgresql/files/digest-postgresql-8.2.4-r1 b/dev-db/postgresql/files/digest-postgresql-8.2.4-r1 deleted file mode 100644 index 6035a30..0000000 --- a/dev-db/postgresql/files/digest-postgresql-8.2.4-r1 +++ /dev/null @@ -1,12 +0,0 @@ -MD5 5c0576627c9969a3cedb6b014fb6ae05 postgresql-base-8.2.4.tar.bz2 8549159 -RMD160 876105c3cc9d36b66cf9dc9b687d4b6f6b2c3d9c postgresql-base-8.2.4.tar.bz2 8549159 -SHA256 8ee5ad364ee21079ce3d726b4abcfa0f318015a331e37e9856a3500fcce74cca postgresql-base-8.2.4.tar.bz2 8549159 -MD5 7d520a0fc88c8b59338c25cf18331f6a postgresql-docs-8.2.4.tar.bz2 2769630 -RMD160 bcdb176f509f69141524ababa0f6c9b1a1dd5c3f postgresql-docs-8.2.4.tar.bz2 2769630 -SHA256 2bb5bea974a68f562e40104d756ea87dbd831cf8fbd4bb54faca38f23c87de4c postgresql-docs-8.2.4.tar.bz2 2769630 -MD5 b71b0526e7c8af22d82fbc7b6f81a750 postgresql-opt-8.2.4.tar.bz2 167612 -RMD160 aaacb743be86afbfe0f885b7994c15c94fef2413 postgresql-opt-8.2.4.tar.bz2 167612 -SHA256 5977ca1f0913aa98bc889e49b38768621865959b14e2674e7716d44b7fe9eb35 postgresql-opt-8.2.4.tar.bz2 167612 -MD5 0fefe28b8c9d16ebdf6f05c366477a9d postgresql-test-8.2.4.tar.bz2 985819 -RMD160 c5fcbef081565f7ba02fc4ac96ce8e1f4141c3ae postgresql-test-8.2.4.tar.bz2 985819 -SHA256 fc4471ecece04251289cfe7feb0acbafa3a18cf8f35c2d61ce3f68bd4394e504 postgresql-test-8.2.4.tar.bz2 985819 diff --git a/dev-db/postgresql/files/digest-postgresql-8.2.5 b/dev-db/postgresql/files/digest-postgresql-8.2.5 new file mode 100644 index 0000000..b872176 --- /dev/null +++ b/dev-db/postgresql/files/digest-postgresql-8.2.5 @@ -0,0 +1,12 @@ +MD5 5879b205b635f3fb905f6015c50f4edd postgresql-base-8.2.5.tar.bz2 8602348 +RMD160 784924608f8bad40d079b3f54a75d98ea302ac34 postgresql-base-8.2.5.tar.bz2 8602348 +SHA256 b70a2cc0d0613944ce0eae99c1001894354b77e81c8ae45f6c8c890709861929 postgresql-base-8.2.5.tar.bz2 8602348 +MD5 d9edbcbebd620dbeaa42a04c0a2fd900 postgresql-docs-8.2.5.tar.bz2 2773777 +RMD160 56cdea05e6b162f21b021df807f6051102d14b75 postgresql-docs-8.2.5.tar.bz2 2773777 +SHA256 8824f13eaca20328ffa1244ba036c51890a718f40683b9e3003e72b77a1f774d postgresql-docs-8.2.5.tar.bz2 2773777 +MD5 dea12379311886d825fe7090884521b7 postgresql-opt-8.2.5.tar.bz2 167549 +RMD160 92f6ee646eaf0268ee165fd592013cc3acaee5ca postgresql-opt-8.2.5.tar.bz2 167549 +SHA256 0d64c3fd4fb097126d9cb7d599fbd86435f23d887f7985c9fdb441db4e3c9ae5 postgresql-opt-8.2.5.tar.bz2 167549 +MD5 a4d39451e13cef32df96df35e24643cb postgresql-test-8.2.5.tar.bz2 987137 +RMD160 0acc94206384bcd784bd2d35e9d5b9c256e24db0 postgresql-test-8.2.5.tar.bz2 987137 +SHA256 89174ef45e2ce09221d31c57745ecc18ea8f28389b0ba541ec2f26ba656dc752 postgresql-test-8.2.5.tar.bz2 987137 diff --git a/dev-db/postgresql/files/postgresql-7.3.19-autoconf.patch b/dev-db/postgresql/files/postgresql-7.3.19-autoconf.patch deleted file mode 100644 index 9e83884..0000000 --- a/dev-db/postgresql/files/postgresql-7.3.19-autoconf.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/configure.in b/configure.in -index 2dd90d6..6fffa79 100644 ---- a/configure.in -+++ b/configure.in -@@ -19,12 +19,7 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros - dnl - dnl The GNU folks apparently haven't heard that some people don't use - dnl Texinfo. Use this sorcery to use "docdir" instead of "infodir". --m4_define([info], [doc]) --m4_define([infodir], [docdir]) - AC_INIT([PostgreSQL], [7.3.19], [pgsql-bugs@postgresql.org]) --m4_undefine([infodir]) --m4_undefine([info]) --AC_SUBST(docdir) - - AC_PREREQ(2.53) - AC_COPYRIGHT([Copyright 2002 PostgreSQL Global Development Group]) -@@ -623,7 +618,7 @@ AC_CHECK_LIB(PW, main) - AC_CHECK_LIB(resolv, main) - AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt]) - # QNX: --AC_CHECK_LIB([[unix]], main) -+AC_CHECK_LIB([unix], main) - AC_SEARCH_LIBS(crypt, crypt) - # BeOS: - AC_CHECK_LIB(bind, __inet_ntoa) diff --git a/dev-db/postgresql/files/postgresql-7.3.19-cubeparse.patch b/dev-db/postgresql/files/postgresql-7.3.19-cubeparse.patch deleted file mode 100644 index 705e073..0000000 --- a/dev-db/postgresql/files/postgresql-7.3.19-cubeparse.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- contrib/cube/cubescan.l.orig 2006-07-05 06:56:04.000000000 +0000 -+++ contrib/cube/cubescan.l 2006-07-05 06:56:12.000000000 +0000 -@@ -9,6 +9,10 @@ - - - /* flex screws a couple symbols when used with the -P option; fix those */ -+#ifndef YY_PROTO -+#define YY_PROTO(proto) proto -+#endif -+ - #define YY_DECL int cube_yylex YY_PROTO(( void )); \ - int cube_yylex YY_PROTO(( void )) - #define yylval cube_yylval ---- contrib/seg/segscan.l.orig 2006-07-05 07:08:26.000000000 +0000 -+++ contrib/seg/segscan.l 2006-07-05 07:08:51.000000000 +0000 -@@ -9,6 +9,10 @@ - - - /* flex screws a couple symbols when used with the -P option; fix those */ -+#ifndef YY_PROTO -+#define YY_PROTO(proto) proto -+#endif -+ - #define YY_DECL int seg_yylex YY_PROTO(( void )); \ - int seg_yylex YY_PROTO(( void )) - #define yylval seg_yylval ---- contrib/tsearch/parser.l.orig 2006-07-05 07:22:36.000000000 +0000 -+++ contrib/tsearch/parser.l 2006-07-05 07:23:33.000000000 +0000 -@@ -18,6 +18,7 @@ - char *s = NULL; /* to return WHOLE hyphenated-word */ - - YY_BUFFER_STATE buf = NULL; /* buffer to parse; it need for parse from string */ -+static YY_BUFFER_STATE yy_current_buffer = 0; - - int lrlimit = -1; /* for limiting read from filehandle ( -1 - unlimited read ) */ - int bytestoread = 0; /* for limiting read from filehandle */ diff --git a/dev-db/postgresql/files/postgresql-7.3.20-autoconf.patch b/dev-db/postgresql/files/postgresql-7.3.20-autoconf.patch new file mode 100644 index 0000000..df951f1 --- /dev/null +++ b/dev-db/postgresql/files/postgresql-7.3.20-autoconf.patch @@ -0,0 +1,51 @@ +diff --git a/config/programs.m4 b/config/programs.m4 +index 35d9e2b..c681983 100644 +--- a/config/programs.m4 ++++ b/config/programs.m4 +@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT], + dnl FIXME: We should probably check for version >=0.10.36. + AC_CHECK_PROGS(XGETTEXT, xgettext) + +- # Note: share/locale is always the default, independent of $datadir +- localedir='${prefix}/share/locale' +- if test x"$prefix" = x"NONE"; then +- exp_localedir="$ac_default_prefix/share/locale" +- else +- exp_localedir="$prefix/share/locale" +- fi ++ # Note: share/locale *WAS* always the default, independent of $datadir ++ AC_ARG_WITH([locale-dir], ++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]), ++ [ localedir="${withval}" ], ++ [ localedir='${prefix}/share/locale' ] ++ ) ++ exp_localedir="${localedir}" + + AC_SUBST(localedir) + AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"], +diff --git a/configure.in b/configure.in +index 83e8d46..22ea677 100644 +--- a/configure.in ++++ b/configure.in +@@ -19,12 +19,7 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros + dnl + dnl The GNU folks apparently haven't heard that some people don't use + dnl Texinfo. Use this sorcery to use "docdir" instead of "infodir". +-m4_define([info], [doc]) +-m4_define([infodir], [docdir]) + AC_INIT([PostgreSQL], [7.3.20], [pgsql-bugs@postgresql.org]) +-m4_undefine([infodir]) +-m4_undefine([info]) +-AC_SUBST(docdir) + + AC_PREREQ(2.53) + AC_COPYRIGHT([Copyright 2002 PostgreSQL Global Development Group]) +@@ -623,7 +618,7 @@ AC_CHECK_LIB(PW, main) + AC_CHECK_LIB(resolv, main) + AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt]) + # QNX: +-AC_CHECK_LIB([[unix]], main) ++AC_CHECK_LIB([unix], main) + AC_SEARCH_LIBS(crypt, crypt) + # BeOS: + AC_CHECK_LIB(bind, __inet_ntoa) diff --git a/dev-db/postgresql/files/postgresql-7.3.20-cubeparse.patch b/dev-db/postgresql/files/postgresql-7.3.20-cubeparse.patch new file mode 100644 index 0000000..705e073 --- /dev/null +++ b/dev-db/postgresql/files/postgresql-7.3.20-cubeparse.patch @@ -0,0 +1,36 @@ +--- contrib/cube/cubescan.l.orig 2006-07-05 06:56:04.000000000 +0000 ++++ contrib/cube/cubescan.l 2006-07-05 06:56:12.000000000 +0000 +@@ -9,6 +9,10 @@ + + + /* flex screws a couple symbols when used with the -P option; fix those */ ++#ifndef YY_PROTO ++#define YY_PROTO(proto) proto ++#endif ++ + #define YY_DECL int cube_yylex YY_PROTO(( void )); \ + int cube_yylex YY_PROTO(( void )) + #define yylval cube_yylval +--- contrib/seg/segscan.l.orig 2006-07-05 07:08:26.000000000 +0000 ++++ contrib/seg/segscan.l 2006-07-05 07:08:51.000000000 +0000 +@@ -9,6 +9,10 @@ + + + /* flex screws a couple symbols when used with the -P option; fix those */ ++#ifndef YY_PROTO ++#define YY_PROTO(proto) proto ++#endif ++ + #define YY_DECL int seg_yylex YY_PROTO(( void )); \ + int seg_yylex YY_PROTO(( void )) + #define yylval seg_yylval +--- contrib/tsearch/parser.l.orig 2006-07-05 07:22:36.000000000 +0000 ++++ contrib/tsearch/parser.l 2006-07-05 07:23:33.000000000 +0000 +@@ -18,6 +18,7 @@ + char *s = NULL; /* to return WHOLE hyphenated-word */ + + YY_BUFFER_STATE buf = NULL; /* buffer to parse; it need for parse from string */ ++static YY_BUFFER_STATE yy_current_buffer = 0; + + int lrlimit = -1; /* for limiting read from filehandle ( -1 - unlimited read ) */ + int bytestoread = 0; /* for limiting read from filehandle */ diff --git a/dev-db/postgresql/files/postgresql-7.4.17-autoconf.patch b/dev-db/postgresql/files/postgresql-7.4.17-autoconf.patch deleted file mode 100644 index ac01049..0000000 --- a/dev-db/postgresql/files/postgresql-7.4.17-autoconf.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/configure.in b/configure.in -index 97a9701..0270800 100644 ---- a/configure.in -+++ b/configure.in -@@ -19,12 +19,7 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros - dnl - dnl The GNU folks apparently haven't heard that some people don't use - dnl Texinfo. Use this sorcery to use "docdir" instead of "infodir". --m4_define([info], [doc]) --m4_define([infodir], [docdir]) - AC_INIT([PostgreSQL], [7.4.17], [pgsql-bugs@postgresql.org]) --m4_undefine([infodir]) --m4_undefine([info]) --AC_SUBST(docdir) - - AC_PREREQ(2.53) - AC_COPYRIGHT([Copyright 2004 PostgreSQL Global Development Group]) diff --git a/dev-db/postgresql/files/postgresql-7.4.17-hppa-testandset.patch b/dev-db/postgresql/files/postgresql-7.4.17-hppa-testandset.patch deleted file mode 100644 index d5f916d..0000000 --- a/dev-db/postgresql/files/postgresql-7.4.17-hppa-testandset.patch +++ /dev/null @@ -1,50 +0,0 @@ ---- postgresql-7.4.12.orig/src/include/port/linux.h 2003-10-26 01:41:10.000000000 +0000 -+++ postgresql-7.4.12/src/include/port/linux.h 2004-01-09 20:22:50.000000000 +0000 -@@ -3,6 +3,11 @@ - - #define HAS_TEST_AND_SET - -+#elif defined(__hppa__) -+typedef struct { int sema[4]; } slock_t; -+ -+#define HAS_TEST_AND_SET -+ - #elif defined(__sparc__) - typedef unsigned char slock_t; - ---- postgresql-7.4.12.orig/src/include/storage/s_lock.h 2003-11-04 09:43:56.000000000 +0000 -+++ postgresql-7.4.12/src/include/storage/s_lock.h 2004-01-09 20:12:15.000000000 +0000 -@@ -112,6 +112,33 @@ - - #endif /* __i386__ || __x86_64__ */ - -+#if defined(__hppa__) || defined(__hppa) -+#define TAS(lock) tas(lock) -+ -+#define __ldcw(a) ({ \ -+ unsigned int __ret; \ -+ __asm__ __volatile__("ldcw 0(%2),%0" \ -+ : "=r" (__ret), "=m" (*(a)) : "r" (a)); \ -+ __ret; \ -+}) -+ -+#define __PA_LDCW_ALIGNMENT 16 -+#define __ldcw_align(a) ({ \ -+ volatile unsigned int __ret = (unsigned int) a; \ -+ if ((__ret & ~(__PA_LDCW_ALIGNMENT - 1)) < (unsigned int) a) \ -+ __ret = (__ret & ~(__PA_LDCW_ALIGNMENT - 1)) + __PA_LDCW_ALIGNMENT; \ -+ (unsigned int *) __ret; \ -+}) -+ -+static __inline__ int -+tas(volatile slock_t *lock) -+{ -+ volatile unsigned int *a = __ldcw_align (lock); -+ return (__ldcw(a) == 0); -+} -+ -+#endif /* __hppa__ || __hppa */ -+ - - /* Intel Itanium */ - #if defined(__ia64__) || defined(__ia64) diff --git a/dev-db/postgresql/files/postgresql-7.4.18-autoconf.patch b/dev-db/postgresql/files/postgresql-7.4.18-autoconf.patch new file mode 100644 index 0000000..cf67242 --- /dev/null +++ b/dev-db/postgresql/files/postgresql-7.4.18-autoconf.patch @@ -0,0 +1,42 @@ +diff --git a/config/programs.m4 b/config/programs.m4 +index ae3b91a..6af24d2 100644 +--- a/config/programs.m4 ++++ b/config/programs.m4 +@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT], + dnl FIXME: We should probably check for version >=0.10.36. + AC_CHECK_PROGS(XGETTEXT, xgettext) + +- # Note: share/locale is always the default, independent of $datadir +- localedir='${prefix}/share/locale' +- if test x"$prefix" = x"NONE"; then +- exp_localedir="$ac_default_prefix/share/locale" +- else +- exp_localedir="$prefix/share/locale" +- fi ++ # Note: share/locale *WAS* always the default, independent of $datadir ++ AC_ARG_WITH([locale-dir], ++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]), ++ [ localedir="${withval}" ], ++ [ localedir='${prefix}/share/locale' ] ++ ) ++ exp_localedir="${localedir}" + + AC_SUBST(localedir) + AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"], +diff --git a/configure.in b/configure.in +index ea83766..934e5a1 100644 +--- a/configure.in ++++ b/configure.in +@@ -19,12 +19,7 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros + dnl + dnl The GNU folks apparently haven't heard that some people don't use + dnl Texinfo. Use this sorcery to use "docdir" instead of "infodir". +-m4_define([info], [doc]) +-m4_define([infodir], [docdir]) + AC_INIT([PostgreSQL], [7.4.18], [pgsql-bugs@postgresql.org]) +-m4_undefine([infodir]) +-m4_undefine([info]) +-AC_SUBST(docdir) + + AC_PREREQ(2.53) + AC_COPYRIGHT([Copyright 2004 PostgreSQL Global Development Group]) diff --git a/dev-db/postgresql/files/postgresql-7.4.18-hppa-testandset.patch b/dev-db/postgresql/files/postgresql-7.4.18-hppa-testandset.patch new file mode 100644 index 0000000..d5f916d --- /dev/null +++ b/dev-db/postgresql/files/postgresql-7.4.18-hppa-testandset.patch @@ -0,0 +1,50 @@ +--- postgresql-7.4.12.orig/src/include/port/linux.h 2003-10-26 01:41:10.000000000 +0000 ++++ postgresql-7.4.12/src/include/port/linux.h 2004-01-09 20:22:50.000000000 +0000 +@@ -3,6 +3,11 @@ + + #define HAS_TEST_AND_SET + ++#elif defined(__hppa__) ++typedef struct { int sema[4]; } slock_t; ++ ++#define HAS_TEST_AND_SET ++ + #elif defined(__sparc__) + typedef unsigned char slock_t; + +--- postgresql-7.4.12.orig/src/include/storage/s_lock.h 2003-11-04 09:43:56.000000000 +0000 ++++ postgresql-7.4.12/src/include/storage/s_lock.h 2004-01-09 20:12:15.000000000 +0000 +@@ -112,6 +112,33 @@ + + #endif /* __i386__ || __x86_64__ */ + ++#if defined(__hppa__) || defined(__hppa) ++#define TAS(lock) tas(lock) ++ ++#define __ldcw(a) ({ \ ++ unsigned int __ret; \ ++ __asm__ __volatile__("ldcw 0(%2),%0" \ ++ : "=r" (__ret), "=m" (*(a)) : "r" (a)); \ ++ __ret; \ ++}) ++ ++#define __PA_LDCW_ALIGNMENT 16 ++#define __ldcw_align(a) ({ \ ++ volatile unsigned int __ret = (unsigned int) a; \ ++ if ((__ret & ~(__PA_LDCW_ALIGNMENT - 1)) < (unsigned int) a) \ ++ __ret = (__ret & ~(__PA_LDCW_ALIGNMENT - 1)) + __PA_LDCW_ALIGNMENT; \ ++ (unsigned int *) __ret; \ ++}) ++ ++static __inline__ int ++tas(volatile slock_t *lock) ++{ ++ volatile unsigned int *a = __ldcw_align (lock); ++ return (__ldcw(a) == 0); ++} ++ ++#endif /* __hppa__ || __hppa */ ++ + + /* Intel Itanium */ + #if defined(__ia64__) || defined(__ia64) diff --git a/dev-db/postgresql/files/postgresql-8.0.13-sh.patch b/dev-db/postgresql/files/postgresql-8.0.13-sh.patch deleted file mode 100644 index fc1dafe..0000000 --- a/dev-db/postgresql/files/postgresql-8.0.13-sh.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- src/include/storage/s_lock.h 2005-01-01 07:03:42.000000000 +0900 -+++ src/include/storage/s_lock.h 2005-08-17 23:09:19.000000000 +0900 -@@ -239,6 +239,31 @@ - #endif /* __s390__ || __s390x__ */ - - -+#if defined(__sh__) -+#define HAS_TEST_AND_SET -+ -+typedef unsigned char slock_t; -+ -+#define TAS(lock) tas(lock) -+ -+static __inline__ int -+tas(volatile slock_t *lock) -+{ -+ register int _res = 1; -+ -+ __asm__ __volatile__( -+ "tas.b @%1\n\t" -+ "movt %0\n\t" -+ "xor #1,%0" -+: "=z"(_res) -+: "r"(lock) -+: "t","memory"); -+ return _res; -+} -+ -+#endif /* __sh__ */ -+ -+ - #if defined(__sparc__) - #define HAS_TEST_AND_SET - diff --git a/dev-db/postgresql/files/postgresql-8.0.14-sh.patch b/dev-db/postgresql/files/postgresql-8.0.14-sh.patch new file mode 100644 index 0000000..fc1dafe --- /dev/null +++ b/dev-db/postgresql/files/postgresql-8.0.14-sh.patch @@ -0,0 +1,34 @@ +--- src/include/storage/s_lock.h 2005-01-01 07:03:42.000000000 +0900 ++++ src/include/storage/s_lock.h 2005-08-17 23:09:19.000000000 +0900 +@@ -239,6 +239,31 @@ + #endif /* __s390__ || __s390x__ */ + + ++#if defined(__sh__) ++#define HAS_TEST_AND_SET ++ ++typedef unsigned char slock_t; ++ ++#define TAS(lock) tas(lock) ++ ++static __inline__ int ++tas(volatile slock_t *lock) ++{ ++ register int _res = 1; ++ ++ __asm__ __volatile__( ++ "tas.b @%1\n\t" ++ "movt %0\n\t" ++ "xor #1,%0" ++: "=z"(_res) ++: "r"(lock) ++: "t","memory"); ++ return _res; ++} ++ ++#endif /* __sh__ */ ++ ++ + #if defined(__sparc__) + #define HAS_TEST_AND_SET + diff --git a/dev-db/postgresql/files/postgresql-8.1.10-regress_su.patch b/dev-db/postgresql/files/postgresql-8.1.10-regress_su.patch new file mode 100644 index 0000000..28e2925 --- /dev/null +++ b/dev-db/postgresql/files/postgresql-8.1.10-regress_su.patch @@ -0,0 +1,116 @@ +--- src/test/regress/pg_regress.sh 2006-08-01 10:57:17.000000000 +0200 ++++ src/test/regress/pg_regress.sh 2006-08-04 00:14:39.000000000 +0200 +@@ -81,8 +81,8 @@ + # Initialize default settings + # ---------- + +-: ${inputdir=.} +-: ${outputdir=.} ++: ${inputdir=PORTAGETEMPDIRPG} ++: ${outputdir=PORTAGETEMPDIRPG} + + libdir='@libdir@' + bindir='@bindir@' +@@ -410,7 +410,8 @@ + message "initializing database system" + [ "$debug" = yes ] && initdb_options="--debug" + [ "$nolocale" = yes ] && initdb_options="$initdb_options --no-locale" +- "$bindir/initdb" -D "$PGDATA" -L "$datadir" --noclean $initdb_options >"$LOGDIR/initdb.log" 2>&1 ++ chown portage "${datadir}" "${temp_install}" "${inputdir}/testtablespace" ++ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/initdb -D '$PGDATA' -L '$datadir' --noclean $initdb_options" >"$LOGDIR/initdb.log" 2>&1 + + if [ $? -ne 0 ] + then +@@ -433,7 +434,7 @@ + else + postmaster_options="$postmaster_options -c listen_addresses=" + fi +- "$bindir/postmaster" -D "$PGDATA" -F $postmaster_options >"$LOGDIR/postmaster.log" 2>&1 & ++ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/postmaster -D '$PGDATA' -F $postmaster_options" >"$LOGDIR/postmaster.log" 2>&1 & + postmaster_pid=$! + + # Wait till postmaster is able to accept connections (normally only +@@ -441,7 +442,7 @@ + # wait forever, however. + i=0 + max=60 +- until "$bindir/psql" -X $psql_options postgres /dev/null ++ until su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/psql -X $psql_options postgres /dev/null" + do + i=`expr $i + 1` + if [ $i -ge $max ] +@@ -498,7 +499,7 @@ + fi + + message "dropping database \"$dbname\"" +- "$bindir/dropdb" $psql_options "$dbname" ++ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/dropdb $psql_options '$dbname'" + # errors can be ignored + fi + +@@ -538,17 +539,17 @@ + # ---------- + + message "creating database \"$dbname\"" +-"$bindir/createdb" $encoding_opt $psql_options --template template0 "$dbname" ++su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/createdb $encoding_opt $psql_options --template template0 '$dbname'" + if [ $? -ne 0 ]; then + echo "$me: createdb failed" + (exit 2); exit + fi + +-"$bindir/psql" -q -X $psql_options -c "\ ++su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/psql -q -X $psql_options -c \"\ + alter database \"$dbname\" set lc_messages to 'C'; + alter database \"$dbname\" set lc_monetary to 'C'; + alter database \"$dbname\" set lc_numeric to 'C'; +-alter database \"$dbname\" set lc_time to 'C';" "$dbname" ++alter database \"$dbname\" set lc_time to 'C';\" '$dbname'" + if [ $? -ne 0 ]; then + echo "$me: could not set database default locales" + (exit 2); exit +@@ -560,7 +561,7 @@ + # ---------- + + message "dropping regression test user accounts" +-"$bindir/psql" -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null ++su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/psql -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' '$dbname' 2>/dev/null" + if [ $? -eq 2 ]; then + echo "$me: could not drop user accounts" + (exit 2); exit +@@ -575,7 +576,7 @@ + for lang in xyzzy $load_langs ; do + if [ "$lang" != "xyzzy" ]; then + message "installing $lang" +- "$bindir/createlang" $psql_options $lang $dbname ++ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/createlang $psql_options $lang '$dbname'" + if [ $? -ne 0 ] && [ $? -ne 2 ]; then + echo "$me: createlang $lang failed" + (exit 2); exit +@@ -635,7 +636,7 @@ + # Run a single test + formatted=`echo $1 | awk '{printf "%-20.20s", $1;}'` + $ECHO_N "test $formatted ... $ECHO_C" +- ( $PSQL -d "$dbname" <"$inputdir/sql/$1.sql" >"$outputdir/results/$1.out" 2>&1 )& ++ ( su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' ${PSQL} -d '${dbname}' < '${inputdir}/sql/${1}.sql' > '${outputdir}/results/${1}.out' 2>&1" )& + wait + else + # Start a parallel group +@@ -646,7 +647,7 @@ + fi + for name do + ( +- $PSQL -d "$dbname" <"$inputdir/sql/$name.sql" >"$outputdir/results/$name.out" 2>&1 ++ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' ${PSQL} -d '${dbname}' < '${inputdir}/sql/${name}.sql' > '${outputdir}/results/${name}.out' 2>&1" + $ECHO_N " $name$ECHO_C" + ) & + if [ $maxconnections -gt 0 ] ; then +@@ -740,7 +741,7 @@ + + if [ -n "$postmaster_pid" ]; then + message "shutting down postmaster" +- "$bindir/pg_ctl" -s -D "$PGDATA" stop ++ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/pg_ctl -s -D '$PGDATA' stop" + wait "$postmaster_pid" + unset postmaster_pid + fi diff --git a/dev-db/postgresql/files/postgresql-8.1.10-sh.patch b/dev-db/postgresql/files/postgresql-8.1.10-sh.patch new file mode 100644 index 0000000..6350771 --- /dev/null +++ b/dev-db/postgresql/files/postgresql-8.1.10-sh.patch @@ -0,0 +1,34 @@ +--- src/include/storage/s_lock.h 2005-01-01 07:03:42.000000000 +0900 ++++ src/include/storage/s_lock.h 2005-08-17 23:09:19.000000000 +0900 +@@ -300,6 +300,31 @@ + #endif /* __s390__ || __s390x__ */ + + ++#if defined(__sh__) ++#define HAS_TEST_AND_SET ++ ++typedef unsigned char slock_t; ++ ++#define TAS(lock) tas(lock) ++ ++static __inline__ int ++tas(volatile slock_t *lock) ++{ ++ register int _res = 1; ++ ++ __asm__ __volatile__( ++ "tas.b @%1\n\t" ++ "movt %0\n\t" ++ "xor #1,%0" ++: "=z"(_res) ++: "r"(lock) ++: "t","memory"); ++ return _res; ++} ++ ++#endif /* __sh__ */ ++ ++ + #if defined(__sparc__) + #define HAS_TEST_AND_SET + diff --git a/dev-db/postgresql/files/postgresql-8.1.9-regress_su.patch b/dev-db/postgresql/files/postgresql-8.1.9-regress_su.patch deleted file mode 100644 index 28e2925..0000000 --- a/dev-db/postgresql/files/postgresql-8.1.9-regress_su.patch +++ /dev/null @@ -1,116 +0,0 @@ ---- src/test/regress/pg_regress.sh 2006-08-01 10:57:17.000000000 +0200 -+++ src/test/regress/pg_regress.sh 2006-08-04 00:14:39.000000000 +0200 -@@ -81,8 +81,8 @@ - # Initialize default settings - # ---------- - --: ${inputdir=.} --: ${outputdir=.} -+: ${inputdir=PORTAGETEMPDIRPG} -+: ${outputdir=PORTAGETEMPDIRPG} - - libdir='@libdir@' - bindir='@bindir@' -@@ -410,7 +410,8 @@ - message "initializing database system" - [ "$debug" = yes ] && initdb_options="--debug" - [ "$nolocale" = yes ] && initdb_options="$initdb_options --no-locale" -- "$bindir/initdb" -D "$PGDATA" -L "$datadir" --noclean $initdb_options >"$LOGDIR/initdb.log" 2>&1 -+ chown portage "${datadir}" "${temp_install}" "${inputdir}/testtablespace" -+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/initdb -D '$PGDATA' -L '$datadir' --noclean $initdb_options" >"$LOGDIR/initdb.log" 2>&1 - - if [ $? -ne 0 ] - then -@@ -433,7 +434,7 @@ - else - postmaster_options="$postmaster_options -c listen_addresses=" - fi -- "$bindir/postmaster" -D "$PGDATA" -F $postmaster_options >"$LOGDIR/postmaster.log" 2>&1 & -+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/postmaster -D '$PGDATA' -F $postmaster_options" >"$LOGDIR/postmaster.log" 2>&1 & - postmaster_pid=$! - - # Wait till postmaster is able to accept connections (normally only -@@ -441,7 +442,7 @@ - # wait forever, however. - i=0 - max=60 -- until "$bindir/psql" -X $psql_options postgres /dev/null -+ until su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/psql -X $psql_options postgres /dev/null" - do - i=`expr $i + 1` - if [ $i -ge $max ] -@@ -498,7 +499,7 @@ - fi - - message "dropping database \"$dbname\"" -- "$bindir/dropdb" $psql_options "$dbname" -+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/dropdb $psql_options '$dbname'" - # errors can be ignored - fi - -@@ -538,17 +539,17 @@ - # ---------- - - message "creating database \"$dbname\"" --"$bindir/createdb" $encoding_opt $psql_options --template template0 "$dbname" -+su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/createdb $encoding_opt $psql_options --template template0 '$dbname'" - if [ $? -ne 0 ]; then - echo "$me: createdb failed" - (exit 2); exit - fi - --"$bindir/psql" -q -X $psql_options -c "\ -+su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/psql -q -X $psql_options -c \"\ - alter database \"$dbname\" set lc_messages to 'C'; - alter database \"$dbname\" set lc_monetary to 'C'; - alter database \"$dbname\" set lc_numeric to 'C'; --alter database \"$dbname\" set lc_time to 'C';" "$dbname" -+alter database \"$dbname\" set lc_time to 'C';\" '$dbname'" - if [ $? -ne 0 ]; then - echo "$me: could not set database default locales" - (exit 2); exit -@@ -560,7 +561,7 @@ - # ---------- - - message "dropping regression test user accounts" --"$bindir/psql" -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null -+su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/psql -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' '$dbname' 2>/dev/null" - if [ $? -eq 2 ]; then - echo "$me: could not drop user accounts" - (exit 2); exit -@@ -575,7 +576,7 @@ - for lang in xyzzy $load_langs ; do - if [ "$lang" != "xyzzy" ]; then - message "installing $lang" -- "$bindir/createlang" $psql_options $lang $dbname -+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/createlang $psql_options $lang '$dbname'" - if [ $? -ne 0 ] && [ $? -ne 2 ]; then - echo "$me: createlang $lang failed" - (exit 2); exit -@@ -635,7 +636,7 @@ - # Run a single test - formatted=`echo $1 | awk '{printf "%-20.20s", $1;}'` - $ECHO_N "test $formatted ... $ECHO_C" -- ( $PSQL -d "$dbname" <"$inputdir/sql/$1.sql" >"$outputdir/results/$1.out" 2>&1 )& -+ ( su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' ${PSQL} -d '${dbname}' < '${inputdir}/sql/${1}.sql' > '${outputdir}/results/${1}.out' 2>&1" )& - wait - else - # Start a parallel group -@@ -646,7 +647,7 @@ - fi - for name do - ( -- $PSQL -d "$dbname" <"$inputdir/sql/$name.sql" >"$outputdir/results/$name.out" 2>&1 -+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' ${PSQL} -d '${dbname}' < '${inputdir}/sql/${name}.sql' > '${outputdir}/results/${name}.out' 2>&1" - $ECHO_N " $name$ECHO_C" - ) & - if [ $maxconnections -gt 0 ] ; then -@@ -740,7 +741,7 @@ - - if [ -n "$postmaster_pid" ]; then - message "shutting down postmaster" -- "$bindir/pg_ctl" -s -D "$PGDATA" stop -+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/pg_ctl -s -D '$PGDATA' stop" - wait "$postmaster_pid" - unset postmaster_pid - fi diff --git a/dev-db/postgresql/files/postgresql-8.1.9-sh.patch b/dev-db/postgresql/files/postgresql-8.1.9-sh.patch deleted file mode 100644 index 6350771..0000000 --- a/dev-db/postgresql/files/postgresql-8.1.9-sh.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- src/include/storage/s_lock.h 2005-01-01 07:03:42.000000000 +0900 -+++ src/include/storage/s_lock.h 2005-08-17 23:09:19.000000000 +0900 -@@ -300,6 +300,31 @@ - #endif /* __s390__ || __s390x__ */ - - -+#if defined(__sh__) -+#define HAS_TEST_AND_SET -+ -+typedef unsigned char slock_t; -+ -+#define TAS(lock) tas(lock) -+ -+static __inline__ int -+tas(volatile slock_t *lock) -+{ -+ register int _res = 1; -+ -+ __asm__ __volatile__( -+ "tas.b @%1\n\t" -+ "movt %0\n\t" -+ "xor #1,%0" -+: "=z"(_res) -+: "r"(lock) -+: "t","memory"); -+ return _res; -+} -+ -+#endif /* __sh__ */ -+ -+ - #if defined(__sparc__) - #define HAS_TEST_AND_SET - diff --git a/dev-db/postgresql/files/postgresql-8.2.4-gentoo.patch b/dev-db/postgresql/files/postgresql-8.2.4-gentoo.patch deleted file mode 100644 index 6d47d25..0000000 --- a/dev-db/postgresql/files/postgresql-8.2.4-gentoo.patch +++ /dev/null @@ -1,58 +0,0 @@ ---- postgresql-8.2.3.orig/src/bin/Makefile 2006-03-05 16:58:50.000000000 +0100 -+++ postgresql-8.2.3/src/bin/Makefile 2007-03-29 12:12:26.000000000 +0200 -@@ -14,7 +14,7 @@ - include $(top_builddir)/src/Makefile.global - - DIRS := initdb ipcclean pg_ctl pg_dump \ -- psql scripts pg_config pg_controldata pg_resetxlog -+ psql scripts pg_controldata pg_resetxlog - ifeq ($(PORTNAME), win32) - DIRS+=pgevent - endif ---- postgresql-8.2.3.orig/src/interfaces/Makefile 2004-04-20 02:33:51.000000000 +0200 -+++ postgresql-8.2.3/src/interfaces/Makefile 2007-03-29 12:14:01.000000000 +0200 -@@ -12,7 +12,7 @@ - top_builddir = ../.. - include $(top_builddir)/src/Makefile.global - --DIRS := libpq ecpg -+DIRS := ecpg - - ALLDIRS := $(DIRS) - ---- postgresql-8.2.3.orig/src/Makefile 2006-06-23 01:50:35.000000000 +0200 -+++ postgresql-8.2.3/src/Makefile 2007-03-29 12:54:59.000000000 +0200 -@@ -18,12 +18,10 @@ - $(MAKE) -C timezone $@ - $(MAKE) -C backend $@ - $(MAKE) -C backend/utils/mb/conversion_procs $@ -- $(MAKE) -C include $@ - $(MAKE) -C interfaces $@ - $(MAKE) -C bin $@ - $(MAKE) -C pl $@ - $(MAKE) -C makefiles $@ -- $(MAKE) -C test/regress $@ - - install: install-local - -@@ -47,7 +45,6 @@ - $(MAKE) -C port $@ - $(MAKE) -C timezone $@ - $(MAKE) -C backend $@ -- $(MAKE) -C include $@ - $(MAKE) -C interfaces $@ - $(MAKE) -C bin $@ - $(MAKE) -C pl $@ -@@ -60,12 +57,10 @@ - -$(MAKE) -C port $@ - -$(MAKE) -C timezone $@ - -$(MAKE) -C backend $@ -- -$(MAKE) -C include $@ - -$(MAKE) -C interfaces $@ - -$(MAKE) -C bin $@ - -$(MAKE) -C pl $@ - -$(MAKE) -C makefiles $@ -- -$(MAKE) -C test $@ - -$(MAKE) -C tutorial NO_PGXS=1 $@ - -$(MAKE) -C test/thread $@ - rm -f Makefile.port Makefile.global diff --git a/dev-db/postgresql/files/postgresql-8.2.4-no-test.patch b/dev-db/postgresql/files/postgresql-8.2.4-no-test.patch deleted file mode 100644 index 0f887e2..0000000 --- a/dev-db/postgresql/files/postgresql-8.2.4-no-test.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/src/Makefile b/src/Makefile -index 5eb7c4a..0f9fff0 100644 ---- a/src/Makefile -+++ b/src/Makefile -@@ -22,7 +22,6 @@ all install installdirs uninstall dep de - $(MAKE) -C bin $@ - $(MAKE) -C pl $@ - $(MAKE) -C makefiles $@ -- $(MAKE) -C test/regress $@ - - install: install-local - diff --git a/dev-db/postgresql/files/postgresql-8.2.4-regress_fix.patch b/dev-db/postgresql/files/postgresql-8.2.4-regress_fix.patch deleted file mode 100644 index 0af8c3f..0000000 --- a/dev-db/postgresql/files/postgresql-8.2.4-regress_fix.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/src/test/regress/expected/interval.out b/src/test/regress/expected/interval.out -index f7c35de..183a963 100644 ---- a/src/test/regress/expected/interval.out -+++ b/src/test/regress/expected/interval.out -@@ -293,12 +293,6 @@ (10 rows) - -- test avg(interval), which is somewhat fragile since people have been - -- known to change the allowed input syntax for type interval without - -- updating pg_aggregate.agginitval --select avg(f1) from interval_tbl; -- avg --------------------------------------------------- -- @ 4 years 1 mon 10 days 4 hours 18 mins 23 secs --(1 row) -- - -- test long interval input - select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 seconds'::interval; - interval -diff --git a/src/test/regress/sql/interval.sql b/src/test/regress/sql/interval.sql -index 9b2e625..cb44d12 100644 ---- a/src/test/regress/sql/interval.sql -+++ b/src/test/regress/sql/interval.sql -@@ -101,9 +101,6 @@ SELECT '' AS ten, * FROM INTERVAL_TBL; - -- test avg(interval), which is somewhat fragile since people have been - -- known to change the allowed input syntax for type interval without - -- updating pg_aggregate.agginitval -- --select avg(f1) from interval_tbl; -- - -- test long interval input - select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 seconds'::interval; - diff --git a/dev-db/postgresql/files/postgresql-8.2.4-regress_su.patch b/dev-db/postgresql/files/postgresql-8.2.4-regress_su.patch deleted file mode 100644 index 83c56d7..0000000 --- a/dev-db/postgresql/files/postgresql-8.2.4-regress_su.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile -index f2319d2..b14a6f0 100644 ---- a/src/test/regress/GNUmakefile -+++ b/src/test/regress/GNUmakefile -@@ -148,7 +148,8 @@ ## - check: all - -rm -rf ./testtablespace - mkdir ./testtablespace -- ./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) -+ chown portage testtablespace . -+ su -s /bin/sh portage -c "./pg_regress --psqldir=`pwd`/../../bin/psql --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)" - - installcheck: all - -rm -rf ./testtablespace -diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c diff --git a/dev-db/postgresql/files/postgresql-8.2.4-sh.patch b/dev-db/postgresql/files/postgresql-8.2.4-sh.patch deleted file mode 100644 index 295bb6c..0000000 --- a/dev-db/postgresql/files/postgresql-8.2.4-sh.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- postgresql-8.2.3.orig/src/include/storage/s_lock.h 2006-06-08 00:24:45.000000000 +0200 -+++ postgresql-8.2.3/src/include/storage/s_lock.h 2007-03-29 12:25:56.000000000 +0200 -@@ -299,6 +299,31 @@ - #endif /* __s390__ || __s390x__ */ - - -+#if defined(__sh__) -+#define HAS_TEST_AND_SET -+ -+typedef unsigned char slock_t; -+ -+#define TAS(lock) tas(lock) -+ -+static __inline__ int -+tas(volatile slock_t *lock) -+{ -+ register int _res = 1; -+ -+ __asm__ __volatile__( -+ "tas.b @%1\n\t" -+ "movt %0\n\t" -+ "xor #1,%0" -+: "=z"(_res) -+: "r"(lock) -+: "t","memory"); -+ return _res; -+} -+ -+#endif /* __sh__ */ -+ -+ - #if defined(__sparc__) /* Sparc */ - #define HAS_TEST_AND_SET - diff --git a/dev-db/postgresql/files/postgresql-8.2.5-gentoo.patch b/dev-db/postgresql/files/postgresql-8.2.5-gentoo.patch new file mode 100644 index 0000000..6d47d25 --- /dev/null +++ b/dev-db/postgresql/files/postgresql-8.2.5-gentoo.patch @@ -0,0 +1,58 @@ +--- postgresql-8.2.3.orig/src/bin/Makefile 2006-03-05 16:58:50.000000000 +0100 ++++ postgresql-8.2.3/src/bin/Makefile 2007-03-29 12:12:26.000000000 +0200 +@@ -14,7 +14,7 @@ + include $(top_builddir)/src/Makefile.global + + DIRS := initdb ipcclean pg_ctl pg_dump \ +- psql scripts pg_config pg_controldata pg_resetxlog ++ psql scripts pg_controldata pg_resetxlog + ifeq ($(PORTNAME), win32) + DIRS+=pgevent + endif +--- postgresql-8.2.3.orig/src/interfaces/Makefile 2004-04-20 02:33:51.000000000 +0200 ++++ postgresql-8.2.3/src/interfaces/Makefile 2007-03-29 12:14:01.000000000 +0200 +@@ -12,7 +12,7 @@ + top_builddir = ../.. + include $(top_builddir)/src/Makefile.global + +-DIRS := libpq ecpg ++DIRS := ecpg + + ALLDIRS := $(DIRS) + +--- postgresql-8.2.3.orig/src/Makefile 2006-06-23 01:50:35.000000000 +0200 ++++ postgresql-8.2.3/src/Makefile 2007-03-29 12:54:59.000000000 +0200 +@@ -18,12 +18,10 @@ + $(MAKE) -C timezone $@ + $(MAKE) -C backend $@ + $(MAKE) -C backend/utils/mb/conversion_procs $@ +- $(MAKE) -C include $@ + $(MAKE) -C interfaces $@ + $(MAKE) -C bin $@ + $(MAKE) -C pl $@ + $(MAKE) -C makefiles $@ +- $(MAKE) -C test/regress $@ + + install: install-local + +@@ -47,7 +45,6 @@ + $(MAKE) -C port $@ + $(MAKE) -C timezone $@ + $(MAKE) -C backend $@ +- $(MAKE) -C include $@ + $(MAKE) -C interfaces $@ + $(MAKE) -C bin $@ + $(MAKE) -C pl $@ +@@ -60,12 +57,10 @@ + -$(MAKE) -C port $@ + -$(MAKE) -C timezone $@ + -$(MAKE) -C backend $@ +- -$(MAKE) -C include $@ + -$(MAKE) -C interfaces $@ + -$(MAKE) -C bin $@ + -$(MAKE) -C pl $@ + -$(MAKE) -C makefiles $@ +- -$(MAKE) -C test $@ + -$(MAKE) -C tutorial NO_PGXS=1 $@ + -$(MAKE) -C test/thread $@ + rm -f Makefile.port Makefile.global diff --git a/dev-db/postgresql/files/postgresql-8.2.5-no-test.patch b/dev-db/postgresql/files/postgresql-8.2.5-no-test.patch new file mode 100644 index 0000000..0f887e2 --- /dev/null +++ b/dev-db/postgresql/files/postgresql-8.2.5-no-test.patch @@ -0,0 +1,12 @@ +diff --git a/src/Makefile b/src/Makefile +index 5eb7c4a..0f9fff0 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -22,7 +22,6 @@ all install installdirs uninstall dep de + $(MAKE) -C bin $@ + $(MAKE) -C pl $@ + $(MAKE) -C makefiles $@ +- $(MAKE) -C test/regress $@ + + install: install-local + diff --git a/dev-db/postgresql/files/postgresql-8.2.5-regress_fix.patch b/dev-db/postgresql/files/postgresql-8.2.5-regress_fix.patch new file mode 100644 index 0000000..0af8c3f --- /dev/null +++ b/dev-db/postgresql/files/postgresql-8.2.5-regress_fix.patch @@ -0,0 +1,31 @@ +diff --git a/src/test/regress/expected/interval.out b/src/test/regress/expected/interval.out +index f7c35de..183a963 100644 +--- a/src/test/regress/expected/interval.out ++++ b/src/test/regress/expected/interval.out +@@ -293,12 +293,6 @@ (10 rows) + -- test avg(interval), which is somewhat fragile since people have been + -- known to change the allowed input syntax for type interval without + -- updating pg_aggregate.agginitval +-select avg(f1) from interval_tbl; +- avg +-------------------------------------------------- +- @ 4 years 1 mon 10 days 4 hours 18 mins 23 secs +-(1 row) +- + -- test long interval input + select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 seconds'::interval; + interval +diff --git a/src/test/regress/sql/interval.sql b/src/test/regress/sql/interval.sql +index 9b2e625..cb44d12 100644 +--- a/src/test/regress/sql/interval.sql ++++ b/src/test/regress/sql/interval.sql +@@ -101,9 +101,6 @@ SELECT '' AS ten, * FROM INTERVAL_TBL; + -- test avg(interval), which is somewhat fragile since people have been + -- known to change the allowed input syntax for type interval without + -- updating pg_aggregate.agginitval +- +-select avg(f1) from interval_tbl; +- + -- test long interval input + select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 seconds'::interval; + diff --git a/dev-db/postgresql/files/postgresql-8.2.5-regress_su.patch b/dev-db/postgresql/files/postgresql-8.2.5-regress_su.patch new file mode 100644 index 0000000..83c56d7 --- /dev/null +++ b/dev-db/postgresql/files/postgresql-8.2.5-regress_su.patch @@ -0,0 +1,15 @@ +diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile +index f2319d2..b14a6f0 100644 +--- a/src/test/regress/GNUmakefile ++++ b/src/test/regress/GNUmakefile +@@ -148,7 +148,8 @@ ## + check: all + -rm -rf ./testtablespace + mkdir ./testtablespace +- ./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) ++ chown portage testtablespace . ++ su -s /bin/sh portage -c "./pg_regress --psqldir=`pwd`/../../bin/psql --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)" + + installcheck: all + -rm -rf ./testtablespace +diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c diff --git a/dev-db/postgresql/files/postgresql-8.2.5-sh.patch b/dev-db/postgresql/files/postgresql-8.2.5-sh.patch new file mode 100644 index 0000000..295bb6c --- /dev/null +++ b/dev-db/postgresql/files/postgresql-8.2.5-sh.patch @@ -0,0 +1,34 @@ +--- postgresql-8.2.3.orig/src/include/storage/s_lock.h 2006-06-08 00:24:45.000000000 +0200 ++++ postgresql-8.2.3/src/include/storage/s_lock.h 2007-03-29 12:25:56.000000000 +0200 +@@ -299,6 +299,31 @@ + #endif /* __s390__ || __s390x__ */ + + ++#if defined(__sh__) ++#define HAS_TEST_AND_SET ++ ++typedef unsigned char slock_t; ++ ++#define TAS(lock) tas(lock) ++ ++static __inline__ int ++tas(volatile slock_t *lock) ++{ ++ register int _res = 1; ++ ++ __asm__ __volatile__( ++ "tas.b @%1\n\t" ++ "movt %0\n\t" ++ "xor #1,%0" ++: "=z"(_res) ++: "r"(lock) ++: "t","memory"); ++ return _res; ++} ++ ++#endif /* __sh__ */ ++ ++ + #if defined(__sparc__) /* Sparc */ + #define HAS_TEST_AND_SET + diff --git a/dev-db/postgresql/postgresql-7.3.19.ebuild b/dev-db/postgresql/postgresql-7.3.19.ebuild deleted file mode 100644 index 6439437..0000000 --- a/dev-db/postgresql/postgresql-7.3.19.ebuild +++ /dev/null @@ -1,244 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.3.19.ebuild,v 1.8 2007/06/24 21:20:59 vapier Exp $ - -inherit eutils flag-o-matic multilib toolchain-funcs versionator autotools - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ~ppc64 s390 sh sparc x86" - -DESCRIPTION="Sophisticated and powerful Object-Relational DBMS." -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2 - mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2 - doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 ) - test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )" -LICENSE="POSTGRESQL" -SLOT="0" -IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib" - -RDEPEND="~dev-db/libpq-${PV} - >=sys-libs/ncurses-5.2 - kerberos? ( virtual/krb5 ) - pam? ( virtual/pam ) - perl? ( >=dev-lang/perl-5.6.1-r2 ) - python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) - readline? ( >=sys-libs/readline-4.1 ) - selinux? ( sec-policy/selinux-postgresql ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - tcl? ( >=dev-lang/tcl-8 ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - zlib? ( >=sys-libs/zlib-1.1.3 )" -DEPEND="${RDEPEND} - sys-devel/autoconf - >=sys-devel/bison-1.875 - nls? ( sys-devel/gettext ) - xml? ( dev-util/pkgconfig )" - -PG_DIR="/var/lib/postgresql" -[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512" - -pkg_setup() { - if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then - if [[ $(cat "${PG_DIR}/data/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then - eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must" - eerror "use pg_dump to export your existing databases to a file, and then" - eerror "pg_restore to import them when you have upgraded completely." - eerror "You must remove your entire database directory to continue." - eerror "(database directory = ${PG_DIR})." - die "Remove your database directory to continue" - fi - fi - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib postgres -} - -src_unpack() { - unpack ${A} - cd "${S}" - - sed -i -e '/for pgac_lib in "" " -ltermcap"/ s/" -ltermcap"//' configure - - # libpq is provided separately as dev-db/libpq - sed -i -e 's/^DIRS := libpq ecpg/DIRS := ecpg/' src/interfaces/Makefile - sed -i -e '/\W\+\$.MAKE. -C include \$/d' src/Makefile - sed -i -e '/^\W\+psql scripts pg_config pg_controldata/ s/pg_config //' src/bin/Makefile - - epatch "${FILESDIR}/${P}-cubeparse.patch" - epatch "${FILESDIR}/${P}-autoconf.patch" - - # Prepare package for future tests - if use test ; then - # We need to run the tests as a non-root user, portage seems the most fitting here, - # so if userpriv is enabled, we use it directly. If userpriv is disabled, well, we - # don't support that in this version of PostgreSQL ... :) - mkdir -p "${S}/src/test/regress/tmp_check" - chown portage "${S}/src/test/regress/tmp_check" - einfo "Tests will be run as user portage." - fi - eautoconf -} - -src_compile() { - filter-flags -ffast-math -feliminate-dwarf2-dups - - # Correctly support the XML stuff - if use xml ; then - CFLAGS="${CFLAGS} $(pkg-config --cflags libxml-2.0)" - LIBS="${LIBS} $(pkg-config --libs libxml-2.0)" - fi - econf --prefix=/usr \ - --includedir=/usr/include/postgresql/pgsql \ - --sysconfdir=/etc/postgresql \ - --mandir=/usr/share/man \ - --host=${CHOST} \ - --docdir=/usr/share/doc/${PF} \ - --libdir=/usr/$(get_libdir) \ - --enable-depend \ - $(use_with kerberos krb5) \ - $(use_enable nls ) \ - $(use_with pam) \ - $(use_with perl) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with python) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_with tcl) \ - --without-tk \ - $(use_with zlib) \ - || die "configure failed" - - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed" - - cd "${S}/contrib" - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed" - - if use xml ; then - cd "${S}/contrib/xml" - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml emake failed" - fi -} - -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 - - cd "${S}" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed" - - cd "${S}/contrib" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed" - - if use xml ; then - cd "${S}/contrib/xml" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml emake install failed" - fi - - cd "${S}" - dodoc README HISTORY - dodoc contrib/adddepend/* - - cd "${S}/doc" - dodoc FAQ* README.* TODO bug.template - - if use doc ; then - cd "${S}/doc" - 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/* - fi - - newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed" - newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed" -} - -pkg_postinst() { - elog "Execute the following command to setup the initial database environment:" - elog - elog "emerge --config =${PF}" - elog - elog "If you need a global psqlrc-file, you can place it in '${ROOT%/}/etc/postgresql/'." -} - -pkg_config() { - einfo "Creating the data directory ..." - mkdir -p "${PG_DIR}/data" - chown -Rf postgres:postgres "${PG_DIR}" - chmod 0700 "${PG_DIR}/data" - - einfo "Initializing the database ..." - if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then - eerror "PostgreSQL ${PV} cannot upgrade your existing databases." - eerror "You must remove your entire database directory to continue." - eerror "(database directory = ${PG_DIR})." - die "Remove your database directory to continue" - else - if use kernel_linux ; then - local SEM=`sysctl -n kernel.sem | cut -f-3` - local SEMMNI=`sysctl -n kernel.sem | cut -f4` - local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16` - local SHMMAX=`sysctl -n kernel.shmmax` - local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}` - - if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then - eerror "The current value of SEMMNI is too low" - eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!" - eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database." - echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem - fi - - su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" - - if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then - echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem - ewarn "Restoring the SEMMNI value to the previous value." - ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf" - ewarn "and set it to at least ${SEMMNI_MIN}:" - ewarn - ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}" - ewarn - fi - - if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then - eerror "The current value of SHMMAX is too low for postgresql to run." - eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:" - eerror - eerror " kernel.shmmax = ${SHMMAX_MIN}" - eerror - fi - else - su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" - fi - - einfo - einfo "You can use the '${ROOT%/}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'." - einfo - fi -} - -src_test() { - cd "${S}" - - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - if hasq userpriv ${FEATURES} ; then - if ! emake -j1 check ; then - hasq test ${FEATURES} && die "Make check failed. See above for details." - hasq test ${FEATURES} || eerror "Make check failed. See above for details." - fi - else - eerror "Tests won't be run if FEATURES=userpriv is disabled!" - fi - - einfo "Yes, there are other tests which could be run." - einfo "... and no, we don't plan to add/support them." - einfo "For now, the main regressions tests will suffice." - einfo "If you think other tests are necessary, please submit a" - einfo "bug including a patch for this ebuild to enable them." -} diff --git a/dev-db/postgresql/postgresql-7.3.20.ebuild b/dev-db/postgresql/postgresql-7.3.20.ebuild new file mode 100644 index 0000000..6439437 --- /dev/null +++ b/dev-db/postgresql/postgresql-7.3.20.ebuild @@ -0,0 +1,244 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.3.19.ebuild,v 1.8 2007/06/24 21:20:59 vapier Exp $ + +inherit eutils flag-o-matic multilib toolchain-funcs versionator autotools + +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ~ppc64 s390 sh sparc x86" + +DESCRIPTION="Sophisticated and powerful Object-Relational DBMS." +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2 + mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2 + doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 ) + test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )" +LICENSE="POSTGRESQL" +SLOT="0" +IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib" + +RDEPEND="~dev-db/libpq-${PV} + >=sys-libs/ncurses-5.2 + kerberos? ( virtual/krb5 ) + pam? ( virtual/pam ) + perl? ( >=dev-lang/perl-5.6.1-r2 ) + python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) + readline? ( >=sys-libs/readline-4.1 ) + selinux? ( sec-policy/selinux-postgresql ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + tcl? ( >=dev-lang/tcl-8 ) + xml? ( dev-libs/libxml2 dev-libs/libxslt ) + zlib? ( >=sys-libs/zlib-1.1.3 )" +DEPEND="${RDEPEND} + sys-devel/autoconf + >=sys-devel/bison-1.875 + nls? ( sys-devel/gettext ) + xml? ( dev-util/pkgconfig )" + +PG_DIR="/var/lib/postgresql" +[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512" + +pkg_setup() { + if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then + if [[ $(cat "${PG_DIR}/data/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then + eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must" + eerror "use pg_dump to export your existing databases to a file, and then" + eerror "pg_restore to import them when you have upgraded completely." + eerror "You must remove your entire database directory to continue." + eerror "(database directory = ${PG_DIR})." + die "Remove your database directory to continue" + fi + fi + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib postgres +} + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i -e '/for pgac_lib in "" " -ltermcap"/ s/" -ltermcap"//' configure + + # libpq is provided separately as dev-db/libpq + sed -i -e 's/^DIRS := libpq ecpg/DIRS := ecpg/' src/interfaces/Makefile + sed -i -e '/\W\+\$.MAKE. -C include \$/d' src/Makefile + sed -i -e '/^\W\+psql scripts pg_config pg_controldata/ s/pg_config //' src/bin/Makefile + + epatch "${FILESDIR}/${P}-cubeparse.patch" + epatch "${FILESDIR}/${P}-autoconf.patch" + + # Prepare package for future tests + if use test ; then + # We need to run the tests as a non-root user, portage seems the most fitting here, + # so if userpriv is enabled, we use it directly. If userpriv is disabled, well, we + # don't support that in this version of PostgreSQL ... :) + mkdir -p "${S}/src/test/regress/tmp_check" + chown portage "${S}/src/test/regress/tmp_check" + einfo "Tests will be run as user portage." + fi + eautoconf +} + +src_compile() { + filter-flags -ffast-math -feliminate-dwarf2-dups + + # Correctly support the XML stuff + if use xml ; then + CFLAGS="${CFLAGS} $(pkg-config --cflags libxml-2.0)" + LIBS="${LIBS} $(pkg-config --libs libxml-2.0)" + fi + econf --prefix=/usr \ + --includedir=/usr/include/postgresql/pgsql \ + --sysconfdir=/etc/postgresql \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --docdir=/usr/share/doc/${PF} \ + --libdir=/usr/$(get_libdir) \ + --enable-depend \ + $(use_with kerberos krb5) \ + $(use_enable nls ) \ + $(use_with pam) \ + $(use_with perl) \ + $(use_enable pg-intdatetime integer-datetimes ) \ + $(use_with python) \ + $(use_with readline) \ + $(use_with ssl openssl) \ + $(use_with tcl) \ + --without-tk \ + $(use_with zlib) \ + || die "configure failed" + + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed" + + cd "${S}/contrib" + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed" + + if use xml ; then + cd "${S}/contrib/xml" + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml emake failed" + fi +} + +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 + + cd "${S}" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed" + + cd "${S}/contrib" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed" + + if use xml ; then + cd "${S}/contrib/xml" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml emake install failed" + fi + + cd "${S}" + dodoc README HISTORY + dodoc contrib/adddepend/* + + cd "${S}/doc" + dodoc FAQ* README.* TODO bug.template + + if use doc ; then + cd "${S}/doc" + 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/* + fi + + newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed" + newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed" +} + +pkg_postinst() { + elog "Execute the following command to setup the initial database environment:" + elog + elog "emerge --config =${PF}" + elog + elog "If you need a global psqlrc-file, you can place it in '${ROOT%/}/etc/postgresql/'." +} + +pkg_config() { + einfo "Creating the data directory ..." + mkdir -p "${PG_DIR}/data" + chown -Rf postgres:postgres "${PG_DIR}" + chmod 0700 "${PG_DIR}/data" + + einfo "Initializing the database ..." + if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then + eerror "PostgreSQL ${PV} cannot upgrade your existing databases." + eerror "You must remove your entire database directory to continue." + eerror "(database directory = ${PG_DIR})." + die "Remove your database directory to continue" + else + if use kernel_linux ; then + local SEM=`sysctl -n kernel.sem | cut -f-3` + local SEMMNI=`sysctl -n kernel.sem | cut -f4` + local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16` + local SHMMAX=`sysctl -n kernel.shmmax` + local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}` + + if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then + eerror "The current value of SEMMNI is too low" + eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!" + eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database." + echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem + fi + + su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" + + if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then + echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem + ewarn "Restoring the SEMMNI value to the previous value." + ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf" + ewarn "and set it to at least ${SEMMNI_MIN}:" + ewarn + ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}" + ewarn + fi + + if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then + eerror "The current value of SHMMAX is too low for postgresql to run." + eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:" + eerror + eerror " kernel.shmmax = ${SHMMAX_MIN}" + eerror + fi + else + su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" + fi + + einfo + einfo "You can use the '${ROOT%/}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'." + einfo + fi +} + +src_test() { + cd "${S}" + + einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" + if hasq userpriv ${FEATURES} ; then + if ! emake -j1 check ; then + hasq test ${FEATURES} && die "Make check failed. See above for details." + hasq test ${FEATURES} || eerror "Make check failed. See above for details." + fi + else + eerror "Tests won't be run if FEATURES=userpriv is disabled!" + fi + + einfo "Yes, there are other tests which could be run." + einfo "... and no, we don't plan to add/support them." + einfo "For now, the main regressions tests will suffice." + einfo "If you think other tests are necessary, please submit a" + einfo "bug including a patch for this ebuild to enable them." +} diff --git a/dev-db/postgresql/postgresql-7.4.17.ebuild b/dev-db/postgresql/postgresql-7.4.17.ebuild deleted file mode 100644 index 1f0f4e4..0000000 --- a/dev-db/postgresql/postgresql-7.4.17.ebuild +++ /dev/null @@ -1,273 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.4.17.ebuild,v 1.9 2007/06/24 21:20:59 vapier Exp $ - -inherit eutils flag-o-matic multilib toolchain-funcs versionator autotools - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" - -DESCRIPTION="Sophisticated and powerful Object-Relational DBMS." -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2 - mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2 - doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 ) - test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )" -LICENSE="POSTGRESQL" -SLOT="0" -IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib" - -RDEPEND="~dev-db/libpq-${PV} - >=sys-libs/ncurses-5.2 - kerberos? ( virtual/krb5 ) - pam? ( virtual/pam ) - perl? ( >=dev-lang/perl-5.6.1-r2 ) - python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) - readline? ( >=sys-libs/readline-4.1 ) - selinux? ( sec-policy/selinux-postgresql ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - tcl? ( >=dev-lang/tcl-8 ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - zlib? ( >=sys-libs/zlib-1.1.3 )" -DEPEND="${RDEPEND} - sys-devel/autoconf - >=sys-devel/bison-1.875 - nls? ( sys-devel/gettext ) - xml? ( dev-util/pkgconfig )" - -PG_DIR="/var/lib/postgresql" -[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512" - -cluster_exists() { - [[ -f "${PG_DIR}/data/PG_VERSION" ]] && return 0 - return 1 -} - -pkg_setup() { - if hasq pg-hier ${USE} ; then - ewarn "Warning: pg-hier USE-flag detected:" - ewarn "The hier-patch has been dropped for this version and the pg-hier USE-flag is therefore deprecated." - ewarn "If you really used the 'hier' patch in your database with the 'CONNECT BY' statement," - ewarn "you should stop now and reconsider. You will be able to reuse your data, but not" - ewarn "any VIEWS or QUERIES based on that statement." - ewarn "Please disable the pg-hier USE-flag!" - ebeep 3 - if cluster_exists ; then - eerror "There is already a database in '${PG_DIR}/data' and you have the pg-hier USE-flag set." - eerror "Please read the message above first. If you decide that the warnings there don't" - eerror "apply to your situation, dump the database using pg_dump and move the '${PG_DIR}/data'" - eerror "away. Then restart the merge. After that create a new database cluster and use pg_restore to" - eerror "re-import the previously dumped data." - eerror "Moving '${PG_DIR}/data' temporarely away or just disable the 'pg-hier' USE-flag won't work." - die "Can't update this database." - fi - fi - if cluster_exists ; then - local cluster_version=$(cat "${PG_DIR}/data/PG_VERSION") - if [[ ${cluster_version} != $(get_version_component_range 1-2) ]] ; then - eerror "There is a database in '${PG_DIR}/data' from PostgreSQL version ${cluster_version}." - eerror "PostgreSQL doesn't support upgrades between major versions, you have to use pg_dump" - eerror "to dump your existing database. Then move your '${PG_DIR}/data' directory away and" - eerror "restart the merge. After that create a new database cluster and use pg_restore to" - eerror "re-import the previously dumped data." - die "Can't update this database." - fi - fi - - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib postgres -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # libpq is provided separately as dev-db/libpq - sed -i -e 's/^DIRS := libpq ecpg/DIRS := ecpg/' src/interfaces/Makefile - sed -i -e '/\W\+\$.MAKE. -C include \$/d' src/Makefile - sed -i -e '/^\W\+psql scripts pg_config pg_controldata/ s/pg_config //' src/bin/Makefile - - epatch "${FILESDIR}/${P}-hppa-testandset.patch" - epatch "${FILESDIR}/${P}-autoconf.patch" - - # Prepare package for future tests - if use test ; then - # We need to run the tests as a non-root user, portage seems the most fitting here, - # so if userpriv is enabled, we use it directly. If userpriv is disabled, well, we - # don't support that in this version of PostgreSQL ... :) - mkdir -p "${S}/src/test/regress/tmp_check" - chown portage "${S}/src/test/regress/tmp_check" - einfo "Tests will be run as user portage." - fi - - eautoconf -} - -src_compile() { - filter-flags -ffast-math -feliminate-dwarf2-dups - - # Correctly support the XML stuff - if use xml ; then - CFLAGS="${CFLAGS} $(pkg-config --cflags libxml-2.0)" - LIBS="${LIBS} $(pkg-config --libs libxml-2.0)" - fi - - econf --prefix=/usr \ - --includedir=/usr/include/postgresql/pgsql \ - --sysconfdir=/etc/postgresql \ - --mandir=/usr/share/man \ - --host=${CHOST} \ - --docdir=/usr/share/doc/${PF} \ - --libdir=/usr/$(get_libdir) \ - --enable-depend \ - $(use_with kerberos krb5) \ - $(use_enable nls ) \ - $(use_with pam) \ - $(use_with perl) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with python) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_with tcl) \ - --without-tk \ - $(use_with zlib) \ - || die "configure failed" - - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed" - - cd "${S}/contrib" - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed" - - if use xml ; then - cd "${S}/contrib/xml" - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml emake failed" - fi -} - -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 - - cd "${S}" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed" - - cd "${S}/contrib" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed" - - if use xml ; then - cd "${S}/contrib/xml" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml emake install failed" - fi - - cd "${S}" - dodoc README HISTORY - dodoc contrib/adddepend/* - - cd "${S}/doc" - dodoc FAQ* README.* TODO bug.template - - if use doc ; then - cd "${S}/doc" - 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/* - fi - - newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed" - newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed" - - newinitd "${FILESDIR}/pg_autovacuum.init-${PV%.*}" pg_autovacuum || die "Inserting pg_autovacuum init.d-file failed" - newconfd "${FILESDIR}/pg_autovacuum.conf-${PV%.*}" pg_autovacuum || die "Inserting pg_autovacuum conf.d-file failed" - dosed "s:___DOCDIR___:/usr/share/doc/${PF}:" /etc/init.d/pg_autovacuum -} - -pkg_postinst() { - elog "Execute the following command to setup the initial database environment:" - elog - elog "emerge --config =${PF}" - elog - elog "If you need a global psqlrc-file, you can place it in '${ROOT%/}/etc/postgresql/'." -} - -pkg_config() { - einfo "Creating the data directory ..." - mkdir -p "${PG_DIR}/data" - chown -Rf postgres:postgres "${PG_DIR}" - chmod 0700 "${PG_DIR}/data" - - einfo "Initializing the database ..." - if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then - eerror "PostgreSQL ${PV} cannot upgrade your existing databases." - eerror "You must remove your entire database directory to continue." - eerror "(database directory = ${PG_DIR})." - die "Remove your database directory to continue" - else - if use kernel_linux ; then - local SEM=`sysctl -n kernel.sem | cut -f-3` - local SEMMNI=`sysctl -n kernel.sem | cut -f4` - local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16` - local SHMMAX=`sysctl -n kernel.shmmax` - local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}` - - if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then - eerror "The current value of SEMMNI is too low" - eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!" - eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database." - echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem - fi - - su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" - - if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then - echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem - ewarn "Restoring the SEMMNI value to the previous value." - ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf" - ewarn "and set it to at least ${SEMMNI_MIN}:" - ewarn - ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}" - ewarn - fi - - if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then - eerror "The current value of SHMMAX is too low for postgresql to run." - eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:" - eerror - eerror " kernel.shmmax = ${SHMMAX_MIN}" - eerror - fi - else - su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" - fi - - einfo - einfo "You can use the '${ROOT%/}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'." - einfo - fi -} - -src_test() { - cd "${S}" - - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - if hasq userpriv ${FEATURES} ; then - if ! emake -j1 check ; then - hasq test ${FEATURES} && die "Make check failed. See above for details." - hasq test ${FEATURES} || eerror "Make check failed. See above for details." - fi - else - eerror "Tests won't be run if FEATURES=userpriv is disabled!" - fi - - einfo "Yes, there are other tests which could be run." - einfo "... and no, we don't plan to add/support them." - einfo "For now, the main regressions tests will suffice." - einfo "If you think other tests are necessary, please submit a" - einfo "bug including a patch for this ebuild to enable them." -} diff --git a/dev-db/postgresql/postgresql-7.4.18.ebuid b/dev-db/postgresql/postgresql-7.4.18.ebuid new file mode 100644 index 0000000..1f0f4e4 --- /dev/null +++ b/dev-db/postgresql/postgresql-7.4.18.ebuid @@ -0,0 +1,273 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.4.17.ebuild,v 1.9 2007/06/24 21:20:59 vapier Exp $ + +inherit eutils flag-o-matic multilib toolchain-funcs versionator autotools + +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" + +DESCRIPTION="Sophisticated and powerful Object-Relational DBMS." +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2 + mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2 + doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 ) + test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )" +LICENSE="POSTGRESQL" +SLOT="0" +IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib" + +RDEPEND="~dev-db/libpq-${PV} + >=sys-libs/ncurses-5.2 + kerberos? ( virtual/krb5 ) + pam? ( virtual/pam ) + perl? ( >=dev-lang/perl-5.6.1-r2 ) + python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) + readline? ( >=sys-libs/readline-4.1 ) + selinux? ( sec-policy/selinux-postgresql ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + tcl? ( >=dev-lang/tcl-8 ) + xml? ( dev-libs/libxml2 dev-libs/libxslt ) + zlib? ( >=sys-libs/zlib-1.1.3 )" +DEPEND="${RDEPEND} + sys-devel/autoconf + >=sys-devel/bison-1.875 + nls? ( sys-devel/gettext ) + xml? ( dev-util/pkgconfig )" + +PG_DIR="/var/lib/postgresql" +[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512" + +cluster_exists() { + [[ -f "${PG_DIR}/data/PG_VERSION" ]] && return 0 + return 1 +} + +pkg_setup() { + if hasq pg-hier ${USE} ; then + ewarn "Warning: pg-hier USE-flag detected:" + ewarn "The hier-patch has been dropped for this version and the pg-hier USE-flag is therefore deprecated." + ewarn "If you really used the 'hier' patch in your database with the 'CONNECT BY' statement," + ewarn "you should stop now and reconsider. You will be able to reuse your data, but not" + ewarn "any VIEWS or QUERIES based on that statement." + ewarn "Please disable the pg-hier USE-flag!" + ebeep 3 + if cluster_exists ; then + eerror "There is already a database in '${PG_DIR}/data' and you have the pg-hier USE-flag set." + eerror "Please read the message above first. If you decide that the warnings there don't" + eerror "apply to your situation, dump the database using pg_dump and move the '${PG_DIR}/data'" + eerror "away. Then restart the merge. After that create a new database cluster and use pg_restore to" + eerror "re-import the previously dumped data." + eerror "Moving '${PG_DIR}/data' temporarely away or just disable the 'pg-hier' USE-flag won't work." + die "Can't update this database." + fi + fi + if cluster_exists ; then + local cluster_version=$(cat "${PG_DIR}/data/PG_VERSION") + if [[ ${cluster_version} != $(get_version_component_range 1-2) ]] ; then + eerror "There is a database in '${PG_DIR}/data' from PostgreSQL version ${cluster_version}." + eerror "PostgreSQL doesn't support upgrades between major versions, you have to use pg_dump" + eerror "to dump your existing database. Then move your '${PG_DIR}/data' directory away and" + eerror "restart the merge. After that create a new database cluster and use pg_restore to" + eerror "re-import the previously dumped data." + die "Can't update this database." + fi + fi + + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib postgres +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # libpq is provided separately as dev-db/libpq + sed -i -e 's/^DIRS := libpq ecpg/DIRS := ecpg/' src/interfaces/Makefile + sed -i -e '/\W\+\$.MAKE. -C include \$/d' src/Makefile + sed -i -e '/^\W\+psql scripts pg_config pg_controldata/ s/pg_config //' src/bin/Makefile + + epatch "${FILESDIR}/${P}-hppa-testandset.patch" + epatch "${FILESDIR}/${P}-autoconf.patch" + + # Prepare package for future tests + if use test ; then + # We need to run the tests as a non-root user, portage seems the most fitting here, + # so if userpriv is enabled, we use it directly. If userpriv is disabled, well, we + # don't support that in this version of PostgreSQL ... :) + mkdir -p "${S}/src/test/regress/tmp_check" + chown portage "${S}/src/test/regress/tmp_check" + einfo "Tests will be run as user portage." + fi + + eautoconf +} + +src_compile() { + filter-flags -ffast-math -feliminate-dwarf2-dups + + # Correctly support the XML stuff + if use xml ; then + CFLAGS="${CFLAGS} $(pkg-config --cflags libxml-2.0)" + LIBS="${LIBS} $(pkg-config --libs libxml-2.0)" + fi + + econf --prefix=/usr \ + --includedir=/usr/include/postgresql/pgsql \ + --sysconfdir=/etc/postgresql \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --docdir=/usr/share/doc/${PF} \ + --libdir=/usr/$(get_libdir) \ + --enable-depend \ + $(use_with kerberos krb5) \ + $(use_enable nls ) \ + $(use_with pam) \ + $(use_with perl) \ + $(use_enable pg-intdatetime integer-datetimes ) \ + $(use_with python) \ + $(use_with readline) \ + $(use_with ssl openssl) \ + $(use_with tcl) \ + --without-tk \ + $(use_with zlib) \ + || die "configure failed" + + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed" + + cd "${S}/contrib" + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed" + + if use xml ; then + cd "${S}/contrib/xml" + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml emake failed" + fi +} + +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 + + cd "${S}" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed" + + cd "${S}/contrib" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed" + + if use xml ; then + cd "${S}/contrib/xml" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml emake install failed" + fi + + cd "${S}" + dodoc README HISTORY + dodoc contrib/adddepend/* + + cd "${S}/doc" + dodoc FAQ* README.* TODO bug.template + + if use doc ; then + cd "${S}/doc" + 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/* + fi + + newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed" + newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed" + + newinitd "${FILESDIR}/pg_autovacuum.init-${PV%.*}" pg_autovacuum || die "Inserting pg_autovacuum init.d-file failed" + newconfd "${FILESDIR}/pg_autovacuum.conf-${PV%.*}" pg_autovacuum || die "Inserting pg_autovacuum conf.d-file failed" + dosed "s:___DOCDIR___:/usr/share/doc/${PF}:" /etc/init.d/pg_autovacuum +} + +pkg_postinst() { + elog "Execute the following command to setup the initial database environment:" + elog + elog "emerge --config =${PF}" + elog + elog "If you need a global psqlrc-file, you can place it in '${ROOT%/}/etc/postgresql/'." +} + +pkg_config() { + einfo "Creating the data directory ..." + mkdir -p "${PG_DIR}/data" + chown -Rf postgres:postgres "${PG_DIR}" + chmod 0700 "${PG_DIR}/data" + + einfo "Initializing the database ..." + if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then + eerror "PostgreSQL ${PV} cannot upgrade your existing databases." + eerror "You must remove your entire database directory to continue." + eerror "(database directory = ${PG_DIR})." + die "Remove your database directory to continue" + else + if use kernel_linux ; then + local SEM=`sysctl -n kernel.sem | cut -f-3` + local SEMMNI=`sysctl -n kernel.sem | cut -f4` + local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16` + local SHMMAX=`sysctl -n kernel.shmmax` + local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}` + + if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then + eerror "The current value of SEMMNI is too low" + eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!" + eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database." + echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem + fi + + su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" + + if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then + echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem + ewarn "Restoring the SEMMNI value to the previous value." + ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf" + ewarn "and set it to at least ${SEMMNI_MIN}:" + ewarn + ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}" + ewarn + fi + + if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then + eerror "The current value of SHMMAX is too low for postgresql to run." + eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:" + eerror + eerror " kernel.shmmax = ${SHMMAX_MIN}" + eerror + fi + else + su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" + fi + + einfo + einfo "You can use the '${ROOT%/}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'." + einfo + fi +} + +src_test() { + cd "${S}" + + einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" + if hasq userpriv ${FEATURES} ; then + if ! emake -j1 check ; then + hasq test ${FEATURES} && die "Make check failed. See above for details." + hasq test ${FEATURES} || eerror "Make check failed. See above for details." + fi + else + eerror "Tests won't be run if FEATURES=userpriv is disabled!" + fi + + einfo "Yes, there are other tests which could be run." + einfo "... and no, we don't plan to add/support them." + einfo "For now, the main regressions tests will suffice." + einfo "If you think other tests are necessary, please submit a" + einfo "bug including a patch for this ebuild to enable them." +} diff --git a/dev-db/postgresql/postgresql-8.0.13.ebuild b/dev-db/postgresql/postgresql-8.0.13.ebuild deleted file mode 100644 index 422dc6a..0000000 --- a/dev-db/postgresql/postgresql-8.0.13.ebuild +++ /dev/null @@ -1,266 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-8.0.13.ebuild,v 1.10 2007/06/24 21:20:59 vapier Exp $ - -inherit eutils flag-o-matic multilib toolchain-funcs versionator - -KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" - -DESCRIPTION="Sophisticated and powerful Object-Relational DBMS." -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2 - mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2 - doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 ) - test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )" -LICENSE="POSTGRESQL" -SLOT="0" -IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib" - -RDEPEND="~dev-db/libpq-${PV} - >=sys-libs/ncurses-5.2 - kerberos? ( virtual/krb5 ) - pam? ( virtual/pam ) - perl? ( >=dev-lang/perl-5.6.1-r2 ) - python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) - readline? ( >=sys-libs/readline-4.1 ) - selinux? ( sec-policy/selinux-postgresql ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - tcl? ( >=dev-lang/tcl-8 ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - zlib? ( >=sys-libs/zlib-1.1.3 )" -DEPEND="${RDEPEND} - sys-devel/autoconf - >=sys-devel/bison-1.875 - nls? ( sys-devel/gettext ) - xml? ( dev-util/pkgconfig )" - -PG_DIR="/var/lib/postgresql" -[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512" - -cluster_exists() { - [[ -f "${PG_DIR}/data/PG_VERSION" ]] && return 0 - return 1 -} - -pkg_setup() { - if hasq pg-hier ${USE} ; then - ewarn "Warning: pg-hier USE-flag detected:" - ewarn "The hier-patch has been dropped for this version and the pg-hier USE-flag is therefore deprecated." - ewarn "If you really used the 'hier' patch in your database with the 'CONNECT BY' statement," - ewarn "you should stop now and reconsider. You will be able to reuse your data, but not" - ewarn "any VIEWS or QUERIES based on that statement." - ewarn "Please disable the pg-hier USE-flag!" - ebeep 3 - if cluster_exists ; then - eerror "There is already a database in '${PG_DIR}/data' and you have the pg-hier USE-flag set." - eerror "Please read the message above first. If you decide that the warnings there don't" - eerror "apply to your situation, dump the database using pg_dump and move the '${PG_DIR}/data'" - eerror "away. Then restart the merge. After that create a new database cluster and use pg_restore to" - eerror "re-import the previously dumped data." - eerror "Moving '${PG_DIR}/data' temporarely away or just disable the 'pg-hier' USE-flag won't work." - die "Can't update this database." - fi - fi - if cluster_exists ; then - local cluster_version=$(cat "${PG_DIR}/data/PG_VERSION") - if [[ ${cluster_version} != $(get_version_component_range 1-2) ]] ; then - eerror "There is a database in '${PG_DIR}/data' from PostgreSQL version ${cluster_version}." - eerror "PostgreSQL doesn't support upgrades between major versions, you have to use pg_dump" - eerror "to dump your existing database. Then move your '${PG_DIR}/data' directory away and" - eerror "restart the merge. After that create a new database cluster and use pg_restore to" - eerror "re-import the previously dumped data." - die "Can't update this database." - fi - fi - - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib postgres -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # libpq is provided separately as dev-db/libpq - sed -i -e 's/^DIRS := libpq ecpg/DIRS := ecpg/' src/interfaces/Makefile - sed -i -e '/\W\+\$.MAKE. -C include \$/d' src/Makefile - sed -i -e '/^\W\+psql scripts pg_config pg_controldata/ s/pg_config //' src/bin/Makefile - - epatch "${FILESDIR}/${P}-sh.patch" - - # Prepare package for future tests - if use test ; then - # Fix sandbox violation - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source - - # We need to run the tests as a non-root user, portage seems the most fitting here, - # so if userpriv is enabled, we use it directly. If userpriv is disabled, well, we - # don't support that in this version of PostgreSQL ... :) - mkdir -p "${S}/src/test/regress/tmp_check" - chown portage "${S}/src/test/regress/tmp_check" - einfo "Tests will be run as user portage." - fi -} - -src_compile() { - filter-flags -ffast-math -feliminate-dwarf2-dups - - econf --prefix=/usr \ - --includedir=/usr/include/postgresql/pgsql \ - --sysconfdir=/etc/postgresql \ - --mandir=/usr/share/man \ - --host=${CHOST} \ - --with-docdir=/usr/share/doc/${PF} \ - --libdir=/usr/$(get_libdir) \ - --enable-depend \ - $(use_with kerberos krb5) \ - $(use_enable nls ) \ - $(use_with pam) \ - $(use_with perl) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with python) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_with tcl) \ - $(use_with zlib) \ - || die "configure failed" - - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed" - - cd "${S}/contrib" - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed" - - if use xml ; then - cd "${S}/contrib/xml2" - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml2 emake failed" - fi -} - -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 - - cd "${S}" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed" - - cd "${S}/contrib" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed" - - if use xml ; then - cd "${S}/contrib/xml2" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml2 emake install failed" - fi - - cd "${S}" - dodoc README HISTORY - dodoc contrib/adddepend/* - - cd "${S}/doc" - dodoc FAQ* README.* TODO bug.template - - if use doc ; then - cd "${S}/doc" - 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/* - fi - - newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed" - newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed" - - newinitd "${FILESDIR}/pg_autovacuum.init-${PV%.*}" pg_autovacuum || die "Inserting pg_autovacuum init.d-file failed" - newconfd "${FILESDIR}/pg_autovacuum.conf-${PV%.*}" pg_autovacuum || die "Inserting pg_autovacuum conf.d-file failed" - dosed "s:___DOCDIR___:/usr/share/doc/${PF}:" /etc/init.d/pg_autovacuum -} - -pkg_postinst() { - elog "Execute the following command to setup the initial database environment:" - elog - elog "emerge --config =${PF}" - elog - elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql/'." -} - -pkg_config() { - einfo "Creating the data directory ..." - mkdir -p "${PG_DIR}/data" - chown -Rf postgres:postgres "${PG_DIR}" - chmod 0700 "${PG_DIR}/data" - - einfo "Initializing the database ..." - if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then - eerror "PostgreSQL ${PV} cannot upgrade your existing databases." - eerror "You must remove your entire database directory to continue." - eerror "(database directory = ${PG_DIR})." - die "Remove your database directory to continue" - else - if use kernel_linux ; then - local SEM=`sysctl -n kernel.sem | cut -f-3` - local SEMMNI=`sysctl -n kernel.sem | cut -f4` - local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16` - local SHMMAX=`sysctl -n kernel.shmmax` - local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}` - - if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then - eerror "The current value of SEMMNI is too low" - eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!" - eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database." - echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem - fi - - su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" - - if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then - echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem - ewarn "Restoring the SEMMNI value to the previous value." - ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf" - ewarn "and set it to at least ${SEMMNI_MIN}:" - ewarn - ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}" - ewarn - fi - - if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then - eerror "The current value of SHMMAX is too low for postgresql to run." - eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:" - eerror - eerror " kernel.shmmax = ${SHMMAX_MIN}" - eerror - fi - else - su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" - fi - - einfo - einfo "You can use the '${ROOT}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'." - einfo - fi -} - -src_test() { - cd "${S}" - - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - if hasq userpriv ${FEATURES} ; then - if ! emake -j1 check ; then - hasq test ${FEATURES} && die "Make check failed. See above for details." - hasq test ${FEATURES} || eerror "Make check failed. See above for details." - fi - else - eerror "Tests won't be run if FEATURES=userpriv is disabled!" - fi - - einfo "Yes, there are other tests which could be run." - einfo "... and no, we don't plan to add/support them." - einfo "For now, the main regressions tests will suffice." - einfo "If you think other tests are necessary, please submit a" - einfo "bug including a patch for this ebuild to enable them." -} diff --git a/dev-db/postgresql/postgresql-8.0.14.ebuild b/dev-db/postgresql/postgresql-8.0.14.ebuild new file mode 100644 index 0000000..422dc6a --- /dev/null +++ b/dev-db/postgresql/postgresql-8.0.14.ebuild @@ -0,0 +1,266 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-8.0.13.ebuild,v 1.10 2007/06/24 21:20:59 vapier Exp $ + +inherit eutils flag-o-matic multilib toolchain-funcs versionator + +KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" + +DESCRIPTION="Sophisticated and powerful Object-Relational DBMS." +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2 + mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2 + doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 ) + test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )" +LICENSE="POSTGRESQL" +SLOT="0" +IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib" + +RDEPEND="~dev-db/libpq-${PV} + >=sys-libs/ncurses-5.2 + kerberos? ( virtual/krb5 ) + pam? ( virtual/pam ) + perl? ( >=dev-lang/perl-5.6.1-r2 ) + python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) + readline? ( >=sys-libs/readline-4.1 ) + selinux? ( sec-policy/selinux-postgresql ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + tcl? ( >=dev-lang/tcl-8 ) + xml? ( dev-libs/libxml2 dev-libs/libxslt ) + zlib? ( >=sys-libs/zlib-1.1.3 )" +DEPEND="${RDEPEND} + sys-devel/autoconf + >=sys-devel/bison-1.875 + nls? ( sys-devel/gettext ) + xml? ( dev-util/pkgconfig )" + +PG_DIR="/var/lib/postgresql" +[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512" + +cluster_exists() { + [[ -f "${PG_DIR}/data/PG_VERSION" ]] && return 0 + return 1 +} + +pkg_setup() { + if hasq pg-hier ${USE} ; then + ewarn "Warning: pg-hier USE-flag detected:" + ewarn "The hier-patch has been dropped for this version and the pg-hier USE-flag is therefore deprecated." + ewarn "If you really used the 'hier' patch in your database with the 'CONNECT BY' statement," + ewarn "you should stop now and reconsider. You will be able to reuse your data, but not" + ewarn "any VIEWS or QUERIES based on that statement." + ewarn "Please disable the pg-hier USE-flag!" + ebeep 3 + if cluster_exists ; then + eerror "There is already a database in '${PG_DIR}/data' and you have the pg-hier USE-flag set." + eerror "Please read the message above first. If you decide that the warnings there don't" + eerror "apply to your situation, dump the database using pg_dump and move the '${PG_DIR}/data'" + eerror "away. Then restart the merge. After that create a new database cluster and use pg_restore to" + eerror "re-import the previously dumped data." + eerror "Moving '${PG_DIR}/data' temporarely away or just disable the 'pg-hier' USE-flag won't work." + die "Can't update this database." + fi + fi + if cluster_exists ; then + local cluster_version=$(cat "${PG_DIR}/data/PG_VERSION") + if [[ ${cluster_version} != $(get_version_component_range 1-2) ]] ; then + eerror "There is a database in '${PG_DIR}/data' from PostgreSQL version ${cluster_version}." + eerror "PostgreSQL doesn't support upgrades between major versions, you have to use pg_dump" + eerror "to dump your existing database. Then move your '${PG_DIR}/data' directory away and" + eerror "restart the merge. After that create a new database cluster and use pg_restore to" + eerror "re-import the previously dumped data." + die "Can't update this database." + fi + fi + + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib postgres +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # libpq is provided separately as dev-db/libpq + sed -i -e 's/^DIRS := libpq ecpg/DIRS := ecpg/' src/interfaces/Makefile + sed -i -e '/\W\+\$.MAKE. -C include \$/d' src/Makefile + sed -i -e '/^\W\+psql scripts pg_config pg_controldata/ s/pg_config //' src/bin/Makefile + + epatch "${FILESDIR}/${P}-sh.patch" + + # Prepare package for future tests + if use test ; then + # Fix sandbox violation + sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source + + # We need to run the tests as a non-root user, portage seems the most fitting here, + # so if userpriv is enabled, we use it directly. If userpriv is disabled, well, we + # don't support that in this version of PostgreSQL ... :) + mkdir -p "${S}/src/test/regress/tmp_check" + chown portage "${S}/src/test/regress/tmp_check" + einfo "Tests will be run as user portage." + fi +} + +src_compile() { + filter-flags -ffast-math -feliminate-dwarf2-dups + + econf --prefix=/usr \ + --includedir=/usr/include/postgresql/pgsql \ + --sysconfdir=/etc/postgresql \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --with-docdir=/usr/share/doc/${PF} \ + --libdir=/usr/$(get_libdir) \ + --enable-depend \ + $(use_with kerberos krb5) \ + $(use_enable nls ) \ + $(use_with pam) \ + $(use_with perl) \ + $(use_enable pg-intdatetime integer-datetimes ) \ + $(use_with python) \ + $(use_with readline) \ + $(use_with ssl openssl) \ + $(use_with tcl) \ + $(use_with zlib) \ + || die "configure failed" + + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed" + + cd "${S}/contrib" + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed" + + if use xml ; then + cd "${S}/contrib/xml2" + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml2 emake failed" + fi +} + +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 + + cd "${S}" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed" + + cd "${S}/contrib" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed" + + if use xml ; then + cd "${S}/contrib/xml2" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml2 emake install failed" + fi + + cd "${S}" + dodoc README HISTORY + dodoc contrib/adddepend/* + + cd "${S}/doc" + dodoc FAQ* README.* TODO bug.template + + if use doc ; then + cd "${S}/doc" + 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/* + fi + + newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed" + newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed" + + newinitd "${FILESDIR}/pg_autovacuum.init-${PV%.*}" pg_autovacuum || die "Inserting pg_autovacuum init.d-file failed" + newconfd "${FILESDIR}/pg_autovacuum.conf-${PV%.*}" pg_autovacuum || die "Inserting pg_autovacuum conf.d-file failed" + dosed "s:___DOCDIR___:/usr/share/doc/${PF}:" /etc/init.d/pg_autovacuum +} + +pkg_postinst() { + elog "Execute the following command to setup the initial database environment:" + elog + elog "emerge --config =${PF}" + elog + elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql/'." +} + +pkg_config() { + einfo "Creating the data directory ..." + mkdir -p "${PG_DIR}/data" + chown -Rf postgres:postgres "${PG_DIR}" + chmod 0700 "${PG_DIR}/data" + + einfo "Initializing the database ..." + if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then + eerror "PostgreSQL ${PV} cannot upgrade your existing databases." + eerror "You must remove your entire database directory to continue." + eerror "(database directory = ${PG_DIR})." + die "Remove your database directory to continue" + else + if use kernel_linux ; then + local SEM=`sysctl -n kernel.sem | cut -f-3` + local SEMMNI=`sysctl -n kernel.sem | cut -f4` + local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16` + local SHMMAX=`sysctl -n kernel.shmmax` + local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}` + + if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then + eerror "The current value of SEMMNI is too low" + eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!" + eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database." + echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem + fi + + su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" + + if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then + echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem + ewarn "Restoring the SEMMNI value to the previous value." + ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf" + ewarn "and set it to at least ${SEMMNI_MIN}:" + ewarn + ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}" + ewarn + fi + + if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then + eerror "The current value of SHMMAX is too low for postgresql to run." + eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:" + eerror + eerror " kernel.shmmax = ${SHMMAX_MIN}" + eerror + fi + else + su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" + fi + + einfo + einfo "You can use the '${ROOT}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'." + einfo + fi +} + +src_test() { + cd "${S}" + + einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" + if hasq userpriv ${FEATURES} ; then + if ! emake -j1 check ; then + hasq test ${FEATURES} && die "Make check failed. See above for details." + hasq test ${FEATURES} || eerror "Make check failed. See above for details." + fi + else + eerror "Tests won't be run if FEATURES=userpriv is disabled!" + fi + + einfo "Yes, there are other tests which could be run." + einfo "... and no, we don't plan to add/support them." + einfo "For now, the main regressions tests will suffice." + einfo "If you think other tests are necessary, please submit a" + einfo "bug including a patch for this ebuild to enable them." +} diff --git a/dev-db/postgresql/postgresql-8.1.10.ebuild b/dev-db/postgresql/postgresql-8.1.10.ebuild new file mode 100644 index 0000000..329a1fe --- /dev/null +++ b/dev-db/postgresql/postgresql-8.1.10.ebuild @@ -0,0 +1,245 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-8.1.9.ebuild,v 1.1 2007/05/03 09:38:31 aross Exp $ + +inherit eutils flag-o-matic multilib toolchain-funcs versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" + +DESCRIPTION="Sophisticated and powerful Object-Relational DBMS." +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2 + mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2 + doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 ) + test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )" +LICENSE="POSTGRESQL" +SLOT="0" +IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib" + +RDEPEND="~dev-db/libpq-${PV} + >=sys-libs/ncurses-5.2 + kerberos? ( virtual/krb5 ) + pam? ( virtual/pam ) + perl? ( >=dev-lang/perl-5.6.1-r2 ) + python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) + readline? ( >=sys-libs/readline-4.1 ) + selinux? ( sec-policy/selinux-postgresql ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + tcl? ( >=dev-lang/tcl-8 ) + xml? ( dev-libs/libxml2 dev-libs/libxslt ) + zlib? ( >=sys-libs/zlib-1.1.3 )" +DEPEND="${RDEPEND} + sys-devel/autoconf + >=sys-devel/bison-1.875 + nls? ( sys-devel/gettext ) + xml? ( dev-util/pkgconfig )" + +PG_DIR="/var/lib/postgresql" +[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512" + +pkg_setup() { + if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then + if [[ $(cat "${PG_DIR}/data/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then + eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must" + eerror "use pg_dump to export your existing databases to a file, and then" + eerror "pg_restore to import them when you have upgraded completely." + eerror "You must remove your entire database directory to continue." + eerror "(database directory = ${PG_DIR})." + die "Remove your database directory to continue" + fi + fi + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib postgres +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # libpq is provided separately as dev-db/libpq + sed -i -e 's/^DIRS := libpq ecpg/DIRS := ecpg/' src/interfaces/Makefile + sed -i -e '/\W\+\$.MAKE. -C include \$/d' src/Makefile + sed -i -e '/^\W\+psql scripts pg_config pg_controldata/ s/pg_config //' src/bin/Makefile + + epatch "${FILESDIR}/${P}-sh.patch" + + # Prepare package for future tests + if use test ; then + # Fix sandbox violation + sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source + + # Fix broken tests + #epatch "${FILESDIR}/${P}-regress_fix.patch" + + # We need to run the tests as a non-root user, portage seems the most fitting here, + # so if userpriv is enabled, we use it directly. If userpriv is disabled, we need to + # su - to a valid user, portage again, so we patch the test-scripts to do that. + mkdir -p "${S}/src/test/regress/tmp_check" + chown portage "${S}/src/test/regress/tmp_check" + einfo "Tests will be run as user portage." + if ! hasq userpriv ${FEATURES} ; then + mkdir -p "${S}/src/test/regress/results" + chown portage "${S}/src/test/regress/results" + epatch "${FILESDIR}/${P}-regress_su.patch" + sed -e "s|PORTAGETEMPDIRPG|${S}/src/test/regress|g" -i src/test/regress/pg_regress.sh + fi + fi +} + +src_compile() { + filter-flags -ffast-math -feliminate-dwarf2-dups + econf --prefix=/usr \ + --includedir=/usr/include/postgresql/pgsql \ + --sysconfdir=/etc/postgresql \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --with-docdir=/usr/share/doc/${PF} \ + --libdir=/usr/$(get_libdir) \ + --enable-depend \ + $(use_with kerberos krb5) \ + $(use_enable nls ) \ + $(use_with pam) \ + $(use_with perl) \ + $(use_enable pg-intdatetime integer-datetimes ) \ + $(use_with python) \ + $(use_with readline) \ + $(use_with ssl openssl) \ + $(use_with tcl) \ + $(use_with zlib) \ + || die "configure failed" + + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed" + + cd "${S}/contrib" + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed" + + if use xml ; then + cd "${S}/contrib/xml2" + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml2 emake failed" + fi +} + +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 + + cd "${S}" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed" + + cd "${S}/contrib" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed" + + if use xml ; then + cd "${S}/contrib/xml2" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml2 emake install failed" + fi + + cd "${S}" + dodoc README HISTORY + dodoc contrib/adddepend/* + + cd "${S}/doc" + dodoc FAQ* README.* TODO bug.template + + if use doc ; then + cd "${S}/doc" + 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/* + fi + + newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed" + newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed" +} + +pkg_postinst() { + elog "Execute the following command to setup the initial database environment:" + elog + elog "emerge --config =${PF}" + elog + elog "The autovacuum function, which was in contrib, has been moved to the main" + elog "PostgreSQL functions starting with 8.1." + elog "You can enable it in ${ROOT%/}/etc/postgresql/postgresql.conf." + elog + elog "If you need a global psqlrc-file, you can place it in '${ROOT%/}/etc/postgresql/'." +} + +pkg_config() { + einfo "Creating the data directory ..." + mkdir -p "${PG_DIR}/data" + chown -Rf postgres:postgres "${PG_DIR}" + chmod 0700 "${PG_DIR}/data" + + einfo "Initializing the database ..." + if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then + eerror "PostgreSQL ${PV} cannot upgrade your existing databases." + eerror "You must remove your entire database directory to continue." + eerror "(database directory = ${PG_DIR})." + die "Remove your database directory to continue" + else + if use kernel_linux ; then + local SEM=`sysctl -n kernel.sem | cut -f-3` + local SEMMNI=`sysctl -n kernel.sem | cut -f4` + local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16` + local SHMMAX=`sysctl -n kernel.shmmax` + local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}` + + if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then + eerror "The current value of SEMMNI is too low" + eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!" + eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database." + echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem + fi + + su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" + + if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then + echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem + ewarn "Restoring the SEMMNI value to the previous value." + ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf" + ewarn "and set it to at least ${SEMMNI_MIN}:" + ewarn + ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}" + ewarn + fi + + if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then + eerror "The current value of SHMMAX is too low for postgresql to run." + eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:" + eerror + eerror " kernel.shmmax = ${SHMMAX_MIN}" + eerror + fi + else + su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" + fi + + einfo + einfo "You can use the '${ROOT%/}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'." + einfo + fi +} + +src_test() { + cd "${S}" + + einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" + if ! emake -j1 check ; then + hasq test ${FEATURES} && die "Make check failed. See above for details." + hasq test ${FEATURES} || eerror "Make check failed. See above for details." + fi + + einfo "Yes, there are other tests which could be run." + einfo "... and no, we don't plan to add/support them." + einfo "For now, the main regressions tests will suffice." + einfo "If you think other tests are necessary, please submit a" + einfo "bug including a patch for this ebuild to enable them." +} diff --git a/dev-db/postgresql/postgresql-8.1.9.ebuild b/dev-db/postgresql/postgresql-8.1.9.ebuild deleted file mode 100644 index 329a1fe..0000000 --- a/dev-db/postgresql/postgresql-8.1.9.ebuild +++ /dev/null @@ -1,245 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-8.1.9.ebuild,v 1.1 2007/05/03 09:38:31 aross Exp $ - -inherit eutils flag-o-matic multilib toolchain-funcs versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" - -DESCRIPTION="Sophisticated and powerful Object-Relational DBMS." -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2 - mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2 - doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 ) - test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )" -LICENSE="POSTGRESQL" -SLOT="0" -IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib" - -RDEPEND="~dev-db/libpq-${PV} - >=sys-libs/ncurses-5.2 - kerberos? ( virtual/krb5 ) - pam? ( virtual/pam ) - perl? ( >=dev-lang/perl-5.6.1-r2 ) - python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) - readline? ( >=sys-libs/readline-4.1 ) - selinux? ( sec-policy/selinux-postgresql ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - tcl? ( >=dev-lang/tcl-8 ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - zlib? ( >=sys-libs/zlib-1.1.3 )" -DEPEND="${RDEPEND} - sys-devel/autoconf - >=sys-devel/bison-1.875 - nls? ( sys-devel/gettext ) - xml? ( dev-util/pkgconfig )" - -PG_DIR="/var/lib/postgresql" -[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512" - -pkg_setup() { - if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then - if [[ $(cat "${PG_DIR}/data/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then - eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must" - eerror "use pg_dump to export your existing databases to a file, and then" - eerror "pg_restore to import them when you have upgraded completely." - eerror "You must remove your entire database directory to continue." - eerror "(database directory = ${PG_DIR})." - die "Remove your database directory to continue" - fi - fi - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib postgres -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # libpq is provided separately as dev-db/libpq - sed -i -e 's/^DIRS := libpq ecpg/DIRS := ecpg/' src/interfaces/Makefile - sed -i -e '/\W\+\$.MAKE. -C include \$/d' src/Makefile - sed -i -e '/^\W\+psql scripts pg_config pg_controldata/ s/pg_config //' src/bin/Makefile - - epatch "${FILESDIR}/${P}-sh.patch" - - # Prepare package for future tests - if use test ; then - # Fix sandbox violation - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source - - # Fix broken tests - #epatch "${FILESDIR}/${P}-regress_fix.patch" - - # We need to run the tests as a non-root user, portage seems the most fitting here, - # so if userpriv is enabled, we use it directly. If userpriv is disabled, we need to - # su - to a valid user, portage again, so we patch the test-scripts to do that. - mkdir -p "${S}/src/test/regress/tmp_check" - chown portage "${S}/src/test/regress/tmp_check" - einfo "Tests will be run as user portage." - if ! hasq userpriv ${FEATURES} ; then - mkdir -p "${S}/src/test/regress/results" - chown portage "${S}/src/test/regress/results" - epatch "${FILESDIR}/${P}-regress_su.patch" - sed -e "s|PORTAGETEMPDIRPG|${S}/src/test/regress|g" -i src/test/regress/pg_regress.sh - fi - fi -} - -src_compile() { - filter-flags -ffast-math -feliminate-dwarf2-dups - econf --prefix=/usr \ - --includedir=/usr/include/postgresql/pgsql \ - --sysconfdir=/etc/postgresql \ - --mandir=/usr/share/man \ - --host=${CHOST} \ - --with-docdir=/usr/share/doc/${PF} \ - --libdir=/usr/$(get_libdir) \ - --enable-depend \ - $(use_with kerberos krb5) \ - $(use_enable nls ) \ - $(use_with pam) \ - $(use_with perl) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with python) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_with tcl) \ - $(use_with zlib) \ - || die "configure failed" - - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed" - - cd "${S}/contrib" - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed" - - if use xml ; then - cd "${S}/contrib/xml2" - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml2 emake failed" - fi -} - -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 - - cd "${S}" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed" - - cd "${S}/contrib" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed" - - if use xml ; then - cd "${S}/contrib/xml2" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml2 emake install failed" - fi - - cd "${S}" - dodoc README HISTORY - dodoc contrib/adddepend/* - - cd "${S}/doc" - dodoc FAQ* README.* TODO bug.template - - if use doc ; then - cd "${S}/doc" - 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/* - fi - - newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed" - newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed" -} - -pkg_postinst() { - elog "Execute the following command to setup the initial database environment:" - elog - elog "emerge --config =${PF}" - elog - elog "The autovacuum function, which was in contrib, has been moved to the main" - elog "PostgreSQL functions starting with 8.1." - elog "You can enable it in ${ROOT%/}/etc/postgresql/postgresql.conf." - elog - elog "If you need a global psqlrc-file, you can place it in '${ROOT%/}/etc/postgresql/'." -} - -pkg_config() { - einfo "Creating the data directory ..." - mkdir -p "${PG_DIR}/data" - chown -Rf postgres:postgres "${PG_DIR}" - chmod 0700 "${PG_DIR}/data" - - einfo "Initializing the database ..." - if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then - eerror "PostgreSQL ${PV} cannot upgrade your existing databases." - eerror "You must remove your entire database directory to continue." - eerror "(database directory = ${PG_DIR})." - die "Remove your database directory to continue" - else - if use kernel_linux ; then - local SEM=`sysctl -n kernel.sem | cut -f-3` - local SEMMNI=`sysctl -n kernel.sem | cut -f4` - local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16` - local SHMMAX=`sysctl -n kernel.shmmax` - local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}` - - if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then - eerror "The current value of SEMMNI is too low" - eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!" - eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database." - echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem - fi - - su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" - - if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then - echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem - ewarn "Restoring the SEMMNI value to the previous value." - ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf" - ewarn "and set it to at least ${SEMMNI_MIN}:" - ewarn - ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}" - ewarn - fi - - if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then - eerror "The current value of SHMMAX is too low for postgresql to run." - eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:" - eerror - eerror " kernel.shmmax = ${SHMMAX_MIN}" - eerror - fi - else - su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" - fi - - einfo - einfo "You can use the '${ROOT%/}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'." - einfo - fi -} - -src_test() { - cd "${S}" - - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - if ! emake -j1 check ; then - hasq test ${FEATURES} && die "Make check failed. See above for details." - hasq test ${FEATURES} || eerror "Make check failed. See above for details." - fi - - einfo "Yes, there are other tests which could be run." - einfo "... and no, we don't plan to add/support them." - einfo "For now, the main regressions tests will suffice." - einfo "If you think other tests are necessary, please submit a" - einfo "bug including a patch for this ebuild to enable them." -} diff --git a/dev-db/postgresql/postgresql-8.2.4-r1.ebuild b/dev-db/postgresql/postgresql-8.2.4-r1.ebuild deleted file mode 100644 index b59e83a..0000000 --- a/dev-db/postgresql/postgresql-8.2.4-r1.ebuild +++ /dev/null @@ -1,240 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-8.2.4-r1.ebuild,v 1.1 2007/05/02 08:50:01 voxus Exp $ - -inherit eutils flag-o-matic multilib toolchain-funcs versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" - -DESCRIPTION="Sophisticated and powerful Object-Relational DBMS." -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2 - mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2 - doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 ) - test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )" -LICENSE="POSTGRESQL" -SLOT="0" -IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib" - -RDEPEND="~dev-db/libpq-${PV} - >=sys-libs/ncurses-5.2 - kerberos? ( virtual/krb5 ) - pam? ( virtual/pam ) - perl? ( >=dev-lang/perl-5.6.1-r2 ) - python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) - readline? ( >=sys-libs/readline-4.1 ) - selinux? ( sec-policy/selinux-postgresql ) - ssl? ( >=dev-libs/openssl-0.9.6-r1 ) - tcl? ( >=dev-lang/tcl-8 ) - xml? ( dev-libs/libxml2 dev-libs/libxslt ) - zlib? ( >=sys-libs/zlib-1.1.3 )" -DEPEND="${RDEPEND} - sys-devel/autoconf - >=sys-devel/bison-1.875 - nls? ( sys-devel/gettext ) - xml? ( dev-util/pkgconfig )" - -PG_DIR="/var/lib/postgresql" -[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512" - -pkg_setup() { - if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then - if [[ $(cat "${PG_DIR}/data/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then - eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must" - eerror "use pg_dump to export your existing databases to a file, and then" - eerror "pg_restore to import them when you have upgraded completely." - eerror "You must remove your entire database directory to continue." - eerror "(database directory = ${PG_DIR})." - die "Remove your database directory to continue" - fi - fi - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib postgres -} - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}/${PN}-${PV}-gentoo.patch" - epatch "${FILESDIR}/${PN}-${PV}-sh.patch" - - # Prepare package for future tests - if use test ; then - # Fix sandbox violation - sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source - - # Fix broken tests - epatch "${FILESDIR}/${PN}-${PV}-regress_fix.patch" - - # We need to run the tests as a non-root user, portage seems the most fitting here, - # so if userpriv is enabled, we use it directly. If userpriv is disabled, we need to - # su - to a valid user, portage again, so we patch the test-scripts to do that. - mkdir -p "${S}/src/test/regress/tmp_check" - chown portage "${S}/src/test/regress/tmp_check" - einfo "Tests will be run as user portage." - if ! hasq userpriv ${FEATURES} ; then - mkdir -p "${S}/src/test/regress/results" - chown portage "${S}/src/test/regress/results" - epatch "${FILESDIR}/${PN}-${PV}-regress_su.patch" - fi - fi -} - -src_compile() { - filter-flags -ffast-math -feliminate-dwarf2-dups - - econf --prefix=/usr \ - --includedir=/usr/include/postgresql/pgsql \ - --sysconfdir=/etc/postgresql \ - --mandir=/usr/share/man \ - --host=${CHOST} \ - --with-docdir=/usr/share/doc/${PF} \ - --libdir=/usr/$(get_libdir) \ - --enable-depend \ - $(use_with kerberos krb5) \ - $(use_enable nls ) \ - $(use_with pam) \ - $(use_with perl) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with python) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_with tcl) \ - $(use_with zlib) \ - || die "configure failed" - - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed" - - cd "${S}/contrib" - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed" - - if use xml ; then - cd "${S}/contrib/xml2" - emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml2 emake failed" - fi -} - -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 - - cd "${S}" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed" - - cd "${S}/contrib" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed" - - if use xml ; then - cd "${S}/contrib/xml2" - emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml2 emake install failed" - fi - - cd "${S}" - dodoc README HISTORY - - cd "${S}/doc" - dodoc FAQ* README.* TODO bug.template - - if use doc ; then - cd "${S}/doc" - 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/* - fi - - newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed" - newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed" -} - -pkg_postinst() { - elog "Execute the following command to setup the initial database environment:" - elog - elog "emerge --config =${PF}" - elog - elog "The autovacuum function, which was in contrib, has been moved to the main" - elog "PostgreSQL functions starting with 8.1." - elog "You can enable it in ${ROOT}/etc/postgresql/postgresql.conf." - elog - elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql/'." -} - -pkg_config() { - einfo "Creating the data directory ..." - mkdir -p "${PG_DIR}/data" - chown -Rf postgres:postgres "${PG_DIR}" - chmod 0700 "${PG_DIR}/data" - - einfo "Initializing the database ..." - if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then - eerror "PostgreSQL ${PV} cannot upgrade your existing databases." - eerror "You must remove your entire database directory to continue." - eerror "(database directory = ${PG_DIR})." - die "Remove your database directory to continue" - else - if use kernel_linux ; then - local SEM=`sysctl -n kernel.sem | cut -f-3` - local SEMMNI=`sysctl -n kernel.sem | cut -f4` - local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16` - local SHMMAX=`sysctl -n kernel.shmmax` - local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}` - - if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then - eerror "The current value of SEMMNI is too low" - eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!" - eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database." - echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem - fi - - su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" - - if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then - echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem - ewarn "Restoring the SEMMNI value to the previous value." - ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf" - ewarn "and set it to at least ${SEMMNI_MIN}:" - ewarn - ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}" - ewarn - fi - - if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then - eerror "The current value of SHMMAX is too low for postgresql to run." - eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:" - eerror - eerror " kernel.shmmax = ${SHMMAX_MIN}" - eerror - fi - else - su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" - fi - - einfo - einfo "You can use the '${ROOT}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'." - einfo - fi -} - -src_test() { - cd "${S}" - - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - if ! emake -j1 check ; then - hasq test ${FEATURES} && die "Make check failed. See above for details." - hasq test ${FEATURES} || eerror "Make check failed. See above for details." - fi - - einfo "Yes, there are other tests which could be run." - einfo "... and no, we don't plan to add/support them." - einfo "For now, the main regressions tests will suffice." - einfo "If you think other tests are necessary, please submit a" - einfo "bug including a patch for this ebuild to enable them." -} diff --git a/dev-db/postgresql/postgresql-8.2.5.ebuild b/dev-db/postgresql/postgresql-8.2.5.ebuild new file mode 100644 index 0000000..b59e83a --- /dev/null +++ b/dev-db/postgresql/postgresql-8.2.5.ebuild @@ -0,0 +1,240 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-8.2.4-r1.ebuild,v 1.1 2007/05/02 08:50:01 voxus Exp $ + +inherit eutils flag-o-matic multilib toolchain-funcs versionator + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" + +DESCRIPTION="Sophisticated and powerful Object-Relational DBMS." +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2 + mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2 + doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 ) + test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )" +LICENSE="POSTGRESQL" +SLOT="0" +IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib" + +RDEPEND="~dev-db/libpq-${PV} + >=sys-libs/ncurses-5.2 + kerberos? ( virtual/krb5 ) + pam? ( virtual/pam ) + perl? ( >=dev-lang/perl-5.6.1-r2 ) + python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) + readline? ( >=sys-libs/readline-4.1 ) + selinux? ( sec-policy/selinux-postgresql ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + tcl? ( >=dev-lang/tcl-8 ) + xml? ( dev-libs/libxml2 dev-libs/libxslt ) + zlib? ( >=sys-libs/zlib-1.1.3 )" +DEPEND="${RDEPEND} + sys-devel/autoconf + >=sys-devel/bison-1.875 + nls? ( sys-devel/gettext ) + xml? ( dev-util/pkgconfig )" + +PG_DIR="/var/lib/postgresql" +[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512" + +pkg_setup() { + if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then + if [[ $(cat "${PG_DIR}/data/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then + eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must" + eerror "use pg_dump to export your existing databases to a file, and then" + eerror "pg_restore to import them when you have upgraded completely." + eerror "You must remove your entire database directory to continue." + eerror "(database directory = ${PG_DIR})." + die "Remove your database directory to continue" + fi + fi + enewgroup postgres 70 + enewuser postgres 70 /bin/bash /var/lib postgres +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${PN}-${PV}-gentoo.patch" + epatch "${FILESDIR}/${PN}-${PV}-sh.patch" + + # Prepare package for future tests + if use test ; then + # Fix sandbox violation + sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source + + # Fix broken tests + epatch "${FILESDIR}/${PN}-${PV}-regress_fix.patch" + + # We need to run the tests as a non-root user, portage seems the most fitting here, + # so if userpriv is enabled, we use it directly. If userpriv is disabled, we need to + # su - to a valid user, portage again, so we patch the test-scripts to do that. + mkdir -p "${S}/src/test/regress/tmp_check" + chown portage "${S}/src/test/regress/tmp_check" + einfo "Tests will be run as user portage." + if ! hasq userpriv ${FEATURES} ; then + mkdir -p "${S}/src/test/regress/results" + chown portage "${S}/src/test/regress/results" + epatch "${FILESDIR}/${PN}-${PV}-regress_su.patch" + fi + fi +} + +src_compile() { + filter-flags -ffast-math -feliminate-dwarf2-dups + + econf --prefix=/usr \ + --includedir=/usr/include/postgresql/pgsql \ + --sysconfdir=/etc/postgresql \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --with-docdir=/usr/share/doc/${PF} \ + --libdir=/usr/$(get_libdir) \ + --enable-depend \ + $(use_with kerberos krb5) \ + $(use_enable nls ) \ + $(use_with pam) \ + $(use_with perl) \ + $(use_enable pg-intdatetime integer-datetimes ) \ + $(use_with python) \ + $(use_with readline) \ + $(use_with ssl openssl) \ + $(use_with tcl) \ + $(use_with zlib) \ + || die "configure failed" + + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed" + + cd "${S}/contrib" + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed" + + if use xml ; then + cd "${S}/contrib/xml2" + emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml2 emake failed" + fi +} + +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 + + cd "${S}" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed" + + cd "${S}/contrib" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed" + + if use xml ; then + cd "${S}/contrib/xml2" + emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml2 emake install failed" + fi + + cd "${S}" + dodoc README HISTORY + + cd "${S}/doc" + dodoc FAQ* README.* TODO bug.template + + if use doc ; then + cd "${S}/doc" + 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/* + fi + + newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed" + newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed" +} + +pkg_postinst() { + elog "Execute the following command to setup the initial database environment:" + elog + elog "emerge --config =${PF}" + elog + elog "The autovacuum function, which was in contrib, has been moved to the main" + elog "PostgreSQL functions starting with 8.1." + elog "You can enable it in ${ROOT}/etc/postgresql/postgresql.conf." + elog + elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql/'." +} + +pkg_config() { + einfo "Creating the data directory ..." + mkdir -p "${PG_DIR}/data" + chown -Rf postgres:postgres "${PG_DIR}" + chmod 0700 "${PG_DIR}/data" + + einfo "Initializing the database ..." + if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then + eerror "PostgreSQL ${PV} cannot upgrade your existing databases." + eerror "You must remove your entire database directory to continue." + eerror "(database directory = ${PG_DIR})." + die "Remove your database directory to continue" + else + if use kernel_linux ; then + local SEM=`sysctl -n kernel.sem | cut -f-3` + local SEMMNI=`sysctl -n kernel.sem | cut -f4` + local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16` + local SHMMAX=`sysctl -n kernel.shmmax` + local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}` + + if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then + eerror "The current value of SEMMNI is too low" + eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!" + eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database." + echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem + fi + + su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" + + if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then + echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem + ewarn "Restoring the SEMMNI value to the previous value." + ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf" + ewarn "and set it to at least ${SEMMNI_MIN}:" + ewarn + ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}" + ewarn + fi + + if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then + eerror "The current value of SHMMAX is too low for postgresql to run." + eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:" + eerror + eerror " kernel.shmmax = ${SHMMAX_MIN}" + eerror + fi + else + su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data" + fi + + einfo + einfo "You can use the '${ROOT}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'." + einfo + fi +} + +src_test() { + cd "${S}" + + einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" + if ! emake -j1 check ; then + hasq test ${FEATURES} && die "Make check failed. See above for details." + hasq test ${FEATURES} || eerror "Make check failed. See above for details." + fi + + einfo "Yes, there are other tests which could be run." + einfo "... and no, we don't plan to add/support them." + einfo "For now, the main regressions tests will suffice." + einfo "If you think other tests are necessary, please submit a" + einfo "bug including a patch for this ebuild to enable them." +} -- cgit v1.2.3