From e8fe0f06d4fd5eefe59beb2849a473980a9c9274 Mon Sep 17 00:00:00 2001 From: Patrick Lauer Date: Fri, 19 Dec 2014 00:13:46 +0000 Subject: [PATCH] Bump Package-Manager: portage-2.2.15/cvs/Linux x86_64 --- dev-db/postgresql-server/ChangeLog | 10 +- dev-db/postgresql-server/Manifest | 13 +- ....ebuild => postgresql-server-9.4.0.ebuild} | 2 +- .../postgresql-server-9.4_beta1.ebuild | 355 ----------------- .../postgresql-server-9.4_beta2.ebuild | 357 ----------------- .../postgresql-server-9.4_rc1.ebuild | 360 ------------------ 6 files changed, 13 insertions(+), 1084 deletions(-) rename dev-db/postgresql-server/{postgresql-server-9.4_beta3.ebuild => postgresql-server-9.4.0.ebuild} (99%) delete mode 100644 dev-db/postgresql-server/postgresql-server-9.4_beta1.ebuild delete mode 100644 dev-db/postgresql-server/postgresql-server-9.4_beta2.ebuild delete mode 100644 dev-db/postgresql-server/postgresql-server-9.4_rc1.ebuild diff --git a/dev-db/postgresql-server/ChangeLog b/dev-db/postgresql-server/ChangeLog index a96a28e7235e..98946d9c17cf 100644 --- a/dev-db/postgresql-server/ChangeLog +++ b/dev-db/postgresql-server/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-db/postgresql-server # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/ChangeLog,v 1.312 2014/11/21 05:48:23 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/ChangeLog,v 1.313 2014/12/19 00:13:31 patrick Exp $ + +*postgresql-server-9.4.0 (19 Dec 2014) + + 19 Dec 2014; Patrick Lauer + +postgresql-server-9.4.0.ebuild, -postgresql-server-9.4_beta1.ebuild, + -postgresql-server-9.4_beta2.ebuild, -postgresql-server-9.4_beta3.ebuild, + -postgresql-server-9.4_rc1.ebuild: + Bump *postgresql-server-9.4_rc1 (21 Nov 2014) diff --git a/dev-db/postgresql-server/Manifest b/dev-db/postgresql-server/Manifest index ed69b5ee8476..19236666ce97 100644 --- a/dev-db/postgresql-server/Manifest +++ b/dev-db/postgresql-server/Manifest @@ -2,10 +2,7 @@ DIST postgresql-9.0.18.tar.bz2 14984096 SHA256 7c8a07d0ab78fe39522c6bb268a7b357f DIST postgresql-9.1.14.tar.bz2 15666442 SHA256 d0647ce563d18ae02bf68c5dd646a4c75e8b45b3a4fada64d481371fdc16f522 SHA512 b32fa24bc34b7f16ab5bb0e9065ffaeafe299009d5889201a12a46998a29e1fd4ffb81bc225eb4cfc740c3b51aea3a2c9ebac2c1252f71219b0a203550cc32a0 WHIRLPOOL 20738768c86b0ba6470b5717e66aa4e1a970b58015ae8e3bd7ef0811dc9989a5e47ef3eac5f917d9a6c2a0dd945bb832d7685b71cc63bf56b28db6703e641f2f DIST postgresql-9.2.9.tar.bz2 16269349 SHA256 94ec6d330f125b6fc725741293073b07d7d20cc3e7b8ed127bc3d14ad2370197 SHA512 a319af5781f528b5fcd384d133d0dc0d0f4302784c650b7d934670717a07e6af8cef51abaa9a34bdfc82f925ba9e8a81770242fa69a2e2105684be2a62be2db3 WHIRLPOOL 736afcc694cf60cf574d0ff4633637e50f6e3a951d9e5ed09b3afdf2e685291b5d073db801a1260543149576509e82a7cbe94842b6dc71a5d840a58cab390799 DIST postgresql-9.3.5.tar.bz2 16727725 SHA256 14176ffb1f90a189e7626214365be08ea2bfc26f26994bafb4235be314b9b4b0 SHA512 a49bc8ea7635be5082044f5ebd6b81de7198583aedb072dffec8425521af90f2cb8e9f6e7b55b361ff24cbebc0670afefe365e8f5b80b8248ddf492b8092a746 WHIRLPOOL 15baa94b42f14bb815f84cc2009c018f68dcf26e0adf3e9550db2939e601df4ef817eccb029fea796446e6a16c22829c323a92f1f3f1c5276a387b81e3b29d24 -DIST postgresql-9.4beta1.tar.bz2 17216572 SHA256 0e088eff79bb5171b2233222a25d7a2906eaf62aa86266daf6ec5217b1797f47 SHA512 aa46e9132d303f4be775fecc3b8a13caf7ffc7b44566b9de6a5f3850c9ce58cd6c6e111f4d50be7cbe23f83b75e623c3161cc1b15797542d9dfa9e40884ac681 WHIRLPOOL e6daae50b784301d5ab78f609e900ed94c190aaa7f0fc81dbf6fa612baccd24f64a5d36a6beb54df0aac7b2c79f4ff1e0bfccdfaac89e4ce1755bba4122b241b -DIST postgresql-9.4beta2.tar.bz2 17271387 SHA256 567406cf58386917916d8ef7ac892bf79e98742cd16909bb00fc920dd31a388c SHA512 ab8bac10508c8e5508cf68102e53e3fe1e0fbfbdb024d042ae7fc8ab801e47bb623716ed662da4614d4e938e5913cfb5d665018297e27b4d33851bb0f61adde8 WHIRLPOOL 8ab9a8ca218394ed658c981c4321885355c6803da78e93ba1dd6410f7d4f570688fa88a91f8516c6849cc0dd9d73e32021688fe088263f315955499f35d08659 -DIST postgresql-9.4beta3.tar.bz2 17355677 SHA256 5ad1d86a5b9a70d5c153dd862b306a930c6cf67fb4a3f00813eef19fabe6aa5d SHA512 a9226edf2af0f0c147c2a3ec74d0007dd7161b491b767fe1511e1303916693610ddbde9fb7862e3b052c3605de91d732c53833642c88891b2eaa390436b61ba6 WHIRLPOOL dffc24a51e55cd6be3bc5fad3238abcb20690eb0cb8068995ded371a163161b37b1bb118854e190356d02325ed8f183ee7c58ddc59efb5cddf0351699b46fcf9 -DIST postgresql-9.4rc1.tar.bz2 17420690 SHA256 6ce91d78fd6c306536f5734dbaca10889814b9d0fe0b38a41b3e635d95241c7c SHA512 46b9bb4334dd6a117df6f27057bffd3680e26434e6a93a49df3263180e7b1b00703b6db6fb94fa674fe624b06313e0366642628dd9859908ff7af3aeec53497c WHIRLPOOL ed771472bf47831b25820d8b9a57eb3aa8f9383e80fa222375a6536d74c8fb7ef0855d58867ffc003ac30463f3bb98ef081fe3a92eb1ab5f1f2c5e412ceacc9d +DIST postgresql-9.4.0.tar.bz2 17344910 SHA256 7a35c3cb77532f7b15702e474d7ef02f0f419527ee80a4ca6036fffb551625a5 SHA512 733e0dd127783319506f8bd82e0b48adfc003e57e2b14131a60544fbd6fba0dca8672a3dd6364009b87a9fe082bcd1c4a3be5f309cc7a82c0744aebe7e4abcb0 WHIRLPOOL 968bc9bafef002d23ac7df1c9f49ab299c005b044e3ed9895aefe1a4e6dbe1a4c22eae7470b9e4cc4e355d6b57719a3e4d61fc9451c91fa4f7c997c695c77490 DIST postgresql-initscript-2.4.tbz2 2604 SHA256 4f17a2a26ec078b7f73d2b5fa7338402829fe195676d6c3f2cda6cd75c3d1e23 SHA512 2e92bb4f2ddbdfbafa9a6451ebf8be121cf66b7731c42c61f9978a4a896e7d8987fc3b2e5c6feef22a5f7b5759c3456c91e1869ba30019f71ed6b6088adf955e WHIRLPOOL 6df5d827a9fc2d78084d5c300fefa767f87af4a6918abefeea99396ecdace8966ee2c2b4f2276454a3f77df64ec7522aeb2cc1fcac8e321d091f60cc1071a13f DIST postgresql-initscript-2.6.tbz2 3499 SHA256 0ab0e175a2ed735c330fd2e1c659c1130ae7217fea8d3804d5b5eb74c68ddac1 SHA512 b5c8add696b755e422db4b419c3aa8078b8f3b63e15ad2d100c8f81e654c02eee6c1971a7129d72de201afacdc72dcc50674b79e054be81d575ae1339b2e239b WHIRLPOOL 7bfc03a83f24f2a1a88bab86c71bdecaa14f4a4bb3eb12c46d6a164f9c1aad891e94445a59c55e1168a5dd5c85c78aa5198425c1914d26de86d0f22de5d031af DIST postgresql-initscript-2.7.tbz2 3836 SHA256 fecc05fb75f782da1d8215af49134bfe593b94547458ff90692c14058384bfa2 SHA512 8ad9eba3e83d8b296ed1a035716c11c3a7b6a316470327919f168ef8fe861261b5eeb5275e8b643c94b17a94b38e2011c85dde5459b2f9c6f462a2f967f8f315 WHIRLPOOL 4de1ed1b0d8c1a3d56cf3b62456756764a9670e9655ee9f904dc2fba764f32313a74be9676544cca1fc684370b633950ccc4443ed2e59bb053e2a315b5c76b4e @@ -15,16 +12,12 @@ DIST postgresql-patches-9.1-r2.tbz2 4552 SHA256 e33a684be93d2bf70566245601da5ea3 DIST postgresql-patches-9.2.tbz2 4431 SHA256 8ce635671d5af4d2c8d9a0fc741b26f82f1fda16bb6a36726a32dae47021a632 SHA512 4c971bd3f4ae86a48f5e21a1e4ab087865d41f2445f5a9ddfcd7d11f1abab7be8968e5a1bcfbe4a1f7799e7ca1728604aa01641883c47746ebfab658c189f6e5 WHIRLPOOL 712fae68cdf5b06e05f98e23760d896c7361fe0b548839082b8b0c488597bd0f38b80585677d380f8ccb7ded39e759ee42fa9eff838439468b5ac3a501004e8d DIST postgresql-patches-9.3-r1.tbz2 4488 SHA256 41e31bb02fa54f33e1248031841112d4600d87b8655800bc600daa02b640071f SHA512 33bdc26280d6b8c39634ef86590be388b4a4548827b66d91c62454426cb1f628b16ee1323c91bff6b469bfc5eba1de128c30a9d531905b5a2ef194af28dba6fb WHIRLPOOL 06e1c95dcce241bf436ffd99c75fac7481aab3f415993dfb33adc337476305a755fef864f242254f534d40b57b16912d888f46e87a626a74132bf0ed52334470 DIST postgresql-patches-9.4-r1.tbz2 3825 SHA256 e529b48882d3f9b5a5d625951d205c8ada0f432a38ea7df017e4114f7df5b39d SHA512 5adee001ab3fc9b5bc9ef1adb8f697ad80ed5fa6a645a98c70e679b42582dffd45fb1091930762bf7a506024d4026138670d765f075a901051f56ecdae599db2 WHIRLPOOL ad15714f8476a98c072ee5c7af50fe00325184572e0aac89b72b9428be661358390d1ada7b04cf2cc8b64ff94a6b1a655186ddbb1e02468bf130b9d5fc4f9214 -DIST postgresql-patches-9.4.tbz2 3843 SHA256 ceaead90108a8eaa0661a2270608620a98d2a97e0747ef2095b0228db288fe95 SHA512 5fa46f7a99c19ac8af7fcc82b19d3c3deac5b545b7f85f478794deb814aa3fac21a9157420bce9cadffb3f55e89b5ebf398179172e9ccde011ad7fcc20d79cfd WHIRLPOOL ed66ec325dc2268c80e847d765a50f1908ee74acdb5674b3036d661816e18d7efdbf9dec57ac8261d41500be9bc364c9b0dfd1a4cea83dc46630a439cf32c7af DIST postgresql-patches-9.5.tbz2 3956 SHA256 103c63826027693e5909da74b7cc264d1eaecc2a2d3f72fc1c348f9d5fe3e138 SHA512 d708a597c5fe14c1cbeb1996cc84afcc2c8ba60ebb66a6791dbc4ad6bb02d61d2500d01287b00b66370d7efefcf4625465c9e10a5b43135051664e37678cf4a9 WHIRLPOOL 0e9cb9eeec2c87c75a12bd2a6a273e986e989ea51f6fe8485f2713a764434d6cdd1e4f630c983640f69c276d38962b804a9dceb28fcc9684dae492bbd863e935 EBUILD postgresql-server-9.0.18.ebuild 11762 SHA256 3b765fb8ed1774b46d8447e57b563bfa8876832156fef071182bba9306707896 SHA512 41f3aedcc728af24e60629525e81df894d651b437a1ae00497bdc476c64f75e496de2c28e5d25ee4cd4ec4a74494b6d5d287751edda86eb1109c4141bbcbe31f WHIRLPOOL 385874f542425c3b4f2e8b3f66ece41e19305a1f33ab8b6199913347ac390d5487d3555dd8c180c368d087d0014ba5ca4e4fb9e5d59df3e210a2aa0c2de5810e EBUILD postgresql-server-9.1.14.ebuild 11490 SHA256 64c1efcd88b4f766c2fc48e204690aee71a418ea4c25d1876e8f64a169c752d0 SHA512 b3354d2d93704c77a9de3d36cb302047576db8330e747ff66c57231d5853956010d28a39a957b247580447fa7f69e6bfe6d352122ee48cc7144b033e90cd7130 WHIRLPOOL ddc154920804e2e7eb958dfef4892faf7e26fcfa286d311cff929716f4f092403491209a64f88e20c74be8f8b9014ce9b991808a8ce132ca1f9010debabe76e4 EBUILD postgresql-server-9.2.9.ebuild 11192 SHA256 28e32a89e3a044cc4aaa97ecd98b4467c9ffd390fba43a5a2dd4b4a783e13f92 SHA512 45825cc843a3f266b34d6cc40e7084d769411a7ccdf66082a22207d949dcdf1d20b958a5a89b1b59d86f591ad4138d816919787552bd10b1b347b9660acd0517 WHIRLPOOL a3ce37847a505b5165cc70a33576f9a3438fd7e7f6810b0d9a66d918283b164baf9438a40a2f6faa789dd9259a9503cb179ca5d3e0f3d7fcfa15f17a567dca5a EBUILD postgresql-server-9.3.5.ebuild 11340 SHA256 89a24a4d7499509e963ef205fa51dbf59c9b18568eef723236e58de7042448dc SHA512 85d2882e5a8a776096c549beaf3b7de3b45ed1757e72ff1de374336d6ee9a130c2f6d042f4720c3901144c21659e08e88096cd437cc0e91d4c7e1f718e49796a WHIRLPOOL 378e77b8977907571d61f7f892765ce18e61d039e568f00cc6cef58961455af8cf7dcec223bf896b40936083db4ee291cadf59b4c3b3d402beee6e3c40f4ec58 -EBUILD postgresql-server-9.4_beta1.ebuild 11313 SHA256 bdaf181f281f2016a595d7df6508b89e4cda39bc51a7bde90c11bde20b72abf6 SHA512 7178fbd608675c2b6045208cd2dafdfd8148ce8821b4ca5728f41cf31d750fa539a8a50a2fd8c4f93704af3b6abe03150bc257d0a7e986287792d9de626ff281 WHIRLPOOL af815d6685e35c7192fa8fdf23d7e07751155a5636b2cf06cd0abb35eec771dfe95137d1e5fdfaab39b3c75c1914da91f1752d7d3050e5b16c9ac14f4f396ba6 -EBUILD postgresql-server-9.4_beta2.ebuild 11333 SHA256 7e2edc0ea34fa0d6a3d5ea21c93e707a73b3986a214de3c9f7a8e2704ff368e5 SHA512 acd4025d7ea9b5831c1504e3c18b765b50c85a729bc0ce0ec94024d0a231f2e5777ad7907a8d01c908ebad0a051f448bf1bd366f87e4275cd7a3a6ea5593e08f WHIRLPOOL 791f17c1c434277b0e4063f9399eeb0c1f1f9d31a31ab11363846bfa026323de143e8e63e3c5e40bc68836d55486dfba0d9e39c190cffdc8537f08fe596604e1 -EBUILD postgresql-server-9.4_beta3.ebuild 11354 SHA256 5ea6eaacef1391d9a6159346759dced33e1e2f2a48899a34c7169488814865f4 SHA512 84ee8df69d0eee2ad91035f9ac9637408fc58ba4c96007cc8accea195fe6171ecf215438954078308f576caef165b2ce518d5187fd06cdde9c53f935614805e4 WHIRLPOOL 7250a26278d3ed4e2641ad9a040724870f6cfba7837d4a76173473c91dd788b8c201acd5d1e500850b4d6906460f3c3818035ce20baa16424e4d11de737dc411 -EBUILD postgresql-server-9.4_rc1.ebuild 11354 SHA256 23e6d4aae000d749483d64ed2a52724af533490d3f4d07fd6cab31f706cc155e SHA512 1232f549dd0c4ab628db228a43e1accc01c73592476a66c651fa5a5fd21a9184ef739288cd94b85659b6ce0b667bfeadd8b2a540d4bdc7f44892621e31f785eb WHIRLPOOL 0453f032cc0b5266ce5e5f73d79bbd4a06bd6ab2307def62552be60bd798d296af5f5794beaa167b3cec1f2d9f4fc78adff7d1fd66346a6edf1e4dda5768933f +EBUILD postgresql-server-9.4.0.ebuild 11352 SHA256 82ad42ae8a1ad93996f20f34c9010c6bc9c1f607b1ccda39e422b69ed19ec858 SHA512 fd6e014fd2259a979a7d76f05c5a115614423af24ae604d708d0f89d3c783c10dbe9f196cce18f531ea2da29295a6e781f837f0eb54016eb86aa4e0e0747f8b6 WHIRLPOOL 73a530eff1ca7ad9bffed810e04bb42a060bdb2dec9922d3ea1d449f1a568132ba4ed971ade16fd9a9e4351ce2f08ee283b3ff31504060a5daeecdad99409c37 EBUILD postgresql-server-9999.ebuild 11333 SHA256 51353e9ea9693607ff1deaec042a1512492061e5657c50959a60f2ecb59b5a9c SHA512 db1d93fe26604ded5afe0980638fbdd5760193161dc852a5c7c044903c3e0ec9182f35b4b990eb240ebaa07b39284b00972aa61a820e2764fa95a84906b4e3a3 WHIRLPOOL c6d1c89abad1e8288c674b54e6748063be83e224fab020f90e9af522df2625cff8cd545cd033444b3964e395074e1c725be3a4153d75de776f09d8182e7d8565 -MISC ChangeLog 89351 SHA256 b556cf292f7bc2663f6da350eca9d5e87a37f88101299ae68272c4c87ff2fd00 SHA512 caf22f499f6f939ba97977c9d161ee1791add8e1b3a892292881da95ffbc38b719d797593eb9adaf1b83021b53d798d58ded3efa7ded2c86418c5e83a0d15ba2 WHIRLPOOL 6e8ca62967eca3fddbdb79b2b523ba4f5f8a134d00bf7df85f460ef774eb5b54661961dfc6b806fc3e7d065be583cf6dc7689ea0ef247a333d4100b51684dd22 +MISC ChangeLog 89634 SHA256 0fe31757abf28df906d2603c41e03aea83ad82476affc28ec43a51b3723e8c6b SHA512 b37d05bc4b4d48120d3086b84ffbd8bb34d81cd4c257435aab40bf1f56d0bc19f6667aeef513dddfb23afc9b80d7f3733ab34520d88f7af9b306d78f3b023838 WHIRLPOOL 7e1923429632388ea48e28c14aa5af6a9298540e4b6709b1b0ba446628415df0755e42284991fa425430a001b8074c60cf16c90f4258c1127988f99b217c0682 MISC metadata.xml 420 SHA256 ac37a5084450a782d02510149d030bd0d4a63164f2ffb7bdda3ddf344606ca62 SHA512 1731bced1ac398d90c6aca6ec209a9ea42deb0f7033d49952a6216349aeb992479c3e868b33cc1be2434cdead6185026503a58e779965455d0198edd87bf5b4c WHIRLPOOL 3bbd5598492cb7d90f4199fac80f27bcba281e1188f7f1d40ee3dd1561e530de13de109142f0add7221b49ec3a9c6a0bdb3add1446b1cc5a6cb3909fd193d19b diff --git a/dev-db/postgresql-server/postgresql-server-9.4_beta3.ebuild b/dev-db/postgresql-server/postgresql-server-9.4.0.ebuild similarity index 99% rename from dev-db/postgresql-server/postgresql-server-9.4_beta3.ebuild rename to dev-db/postgresql-server/postgresql-server-9.4.0.ebuild index 04301c470c55..6691a2a714b0 100644 --- a/dev-db/postgresql-server/postgresql-server-9.4_beta3.ebuild +++ b/dev-db/postgresql-server/postgresql-server-9.4.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.4_beta3.ebuild,v 1.2 2014/11/02 08:16:59 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.4.0.ebuild,v 1.1 2014/12/19 00:13:31 patrick Exp $ EAPI="5" diff --git a/dev-db/postgresql-server/postgresql-server-9.4_beta1.ebuild b/dev-db/postgresql-server/postgresql-server-9.4_beta1.ebuild deleted file mode 100644 index 1f28fa497af1..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.4_beta1.ebuild +++ /dev/null @@ -1,355 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.4_beta1.ebuild,v 1.2 2014/06/27 03:37:11 patrick Exp $ - -EAPI="5" - -PYTHON_COMPAT=( python{2_{6,7},3_{2,3,4}} ) -WANT_AUTOMAKE="none" - -RESTRICT="test" - -inherit autotools eutils flag-o-matic multilib pam prefix python-single-r1 systemd user versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -MY_PV=${PV/_/} -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${MY_PV}" -SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2 - http://dev.gentoo.org/~patrick/postgresql-patches-${SLOT}.tbz2 - http://dev.gentoo.org/~floppym/dist/postgresql-initscript-2.7.tbz2" - -LICENSE="POSTGRESQL GPL-2" -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl test uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=" -~dev-db/postgresql-base-${PV}[kerberos?,pam?,pg_legacytimestamp=,python=,nls=] -perl? ( >=dev-lang/perl-5.8 ) -python? ( ${PYTHON_DEPS} ) -selinux? ( sec-policy/selinux-postgresql ) -tcl? ( >=dev-lang/tcl-8 ) -uuid? ( dev-libs/ossp-uuid ) -xml? ( dev-libs/libxml2 dev-libs/libxslt ) -" - -DEPEND="${RDEPEND} -sys-devel/flex -xml? ( virtual/pkgconfig ) -" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python-single-r1_pkg_setup -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/run-dir.patch" - - eprefixify src/include/pg_config_manual.h - - if use pam ; then - sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ - -i src/backend/libpq/auth.c \ - || die 'PGSQL_PAM_SERVICE rename failed.' - fi - - if use perl ; then - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - -i "${S}/src/pl/plperl/GNUmakefile" || die 'sed plperl failed' - fi - - if use test ; then - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c \ - || die 'Failed regress sed' - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \ - -i "${WORKDIR}"/postgresql{.{init,confd,service},-check-db-dir} || - die "SLOT/LIBDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - local PO="${EPREFIX%/}" - - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - $(use_with perl) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - --with-system-tzdata="${PO}/usr/share/zoneinfo" \ - --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd || die "emake in $bd failed" - done -} - -src_install() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" - done - - # Avoid file collision with -base. - rm "${ED}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)/libpgcommon.a" - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} - - systemd_newunit "${WORKDIR}"/postgresql.service postgresql-${SLOT}.service - systemd_newtmpfilesd "${WORKDIR}"/postgresql.tmpfilesd postgresql-${SLOT}.conf - - insinto /usr/bin/ - newbin "${WORKDIR}"/postgresql-check-db-dir postgresql-${SLOT}-check-db-dir - - use pam && pamd_mimic system-auth postgresql-${SLOT} auth account session - - if use prefix ; then - keepdir /run/postgresql - fperms 0775 /run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}/run/postgresql/" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal in 10 seconds (Control-C to cancel)" - sleep 10 - eend 0 - fi -} - -pkg_postrm() { - postgresql-config update -} - -pkg_config() { - [[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - [[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" - [[ -z "${DATA_DIR}" ]] && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" - - # environment.bz2 may not contain the same locale as the current system - # locale. Unset and source from the current system locale. - if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then - unset LANG - unset LC_CTYPE - unset LC_NUMERIC - unset LC_TIME - unset LC_COLLATE - unset LC_MONETARY - unset LC_MESSAGES - unset LC_ALL - source "${EROOT%/}/etc/env.d/02locale" - [ -n "${LANG}" ] && export LANG - [ -n "${LC_CTYPE}" ] && export LC_CTYPE - [ -n "${LC_NUMERIC}" ] && export LC_NUMERIC - [ -n "${LC_TIME}" ] && export LC_TIME - [ -n "${LC_COLLATE}" ] && export LC_COLLATE - [ -n "${LC_MONETARY}" ] && export LC_MONETARY - [ -n "${LC_MESSAGES}" ] && export LC_MESSAGES - [ -n "${LC_ALL}" ] && export LC_ALL - fi - - einfo "You can modify the paths and options passed to initdb by editing:" - einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - einfo - einfo "Information on options that can be passed to initdb are found at:" - einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" - einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" - einfo - einfo "PG_INITDB_OPTS is currently set to:" - if [[ -z "${PG_INITDB_OPTS}" ]] ; then - einfo " (none)" - else - einfo " ${PG_INITDB_OPTS}" - fi - einfo - einfo "Configuration files will be installed to:" - einfo " ${PGDATA}" - einfo - einfo "The database cluster will be created in:" - einfo " ${DATA_DIR}" - einfo - while [ "$correct" != "true" ] ; do - einfo "Are you ready to continue? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - correct="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "Aborting initialization." - else - echo "Answer not recognized" - fi - done - - if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then - eerror "The given directory, '${DATA_DIR}', is not empty." - eerror "Modify DATA_DIR to point to an empty directory." - die "${DATA_DIR} is not empty." - fi - - [ -z "${PG_MAX_CONNECTIONS}" ] && PG_MAX_CONNECTIONS="128" - einfo "Checking system parameters..." - - if ! use kernel_linux ; then - einfo "Skipped." - einfo " Tests not supported on this OS (yet)" - else - if [ -z ${SKIP_SYSTEM_TESTS} ] ; then - einfo "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections..." - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - einfo "Passed." - else - ewarn "SKIP_SYSTEM_TESTS set, so skipping." - fi - fi - - einfo "Creating the data directory ..." - if [[ ${EUID} == 0 ]] ; then - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled" - einfo "by default. You can disable it in the cluster's:" - einfo " ${PGDATA%/}/postgresql.conf" - einfo - einfo "The PostgreSQL server, by default, will log events to:" - einfo " ${DATA_DIR%/}/postmaster.log" - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo "mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [ ${UID} -ne 0 ] ; then - emake check - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-9.4_beta2.ebuild b/dev-db/postgresql-server/postgresql-server-9.4_beta2.ebuild deleted file mode 100644 index bfa8632a3a42..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.4_beta2.ebuild +++ /dev/null @@ -1,357 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.4_beta2.ebuild,v 1.1 2014/07/25 08:24:06 patrick Exp $ - -EAPI="5" - -RESTRICT="test" - -PYTHON_COMPAT=( python{2_{6,7},3_{2,3,4}} ) -WANT_AUTOMAKE="none" - -RESTRICT="test" - -inherit autotools eutils flag-o-matic multilib pam prefix python-single-r1 systemd user versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -MY_PV=${PV/_/} -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${MY_PV}" -SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2 - http://dev.gentoo.org/~patrick/postgresql-patches-${SLOT}-r1.tbz2 - http://dev.gentoo.org/~floppym/dist/postgresql-initscript-2.7.tbz2" - -LICENSE="POSTGRESQL GPL-2" -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl test uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -RDEPEND=" -~dev-db/postgresql-base-${PV}[kerberos?,pam?,pg_legacytimestamp=,python=,nls=] -perl? ( >=dev-lang/perl-5.8 ) -python? ( ${PYTHON_DEPS} ) -selinux? ( sec-policy/selinux-postgresql ) -tcl? ( >=dev-lang/tcl-8 ) -uuid? ( dev-libs/ossp-uuid ) -xml? ( dev-libs/libxml2 dev-libs/libxslt ) -" - -DEPEND="${RDEPEND} -sys-devel/flex -xml? ( virtual/pkgconfig ) -" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python-single-r1_pkg_setup -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/run-dir.patch" - - eprefixify src/include/pg_config_manual.h - - if use pam ; then - sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ - -i src/backend/libpq/auth.c \ - || die 'PGSQL_PAM_SERVICE rename failed.' - fi - - if use perl ; then - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - -i "${S}/src/pl/plperl/GNUmakefile" || die 'sed plperl failed' - fi - - if use test ; then - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c \ - || die 'Failed regress sed' - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \ - -i "${WORKDIR}"/postgresql{.{init,confd,service},-check-db-dir} || - die "SLOT/LIBDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - local PO="${EPREFIX%/}" - - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - $(use_with perl) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - --with-system-tzdata="${PO}/usr/share/zoneinfo" \ - --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd || die "emake in $bd failed" - done -} - -src_install() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" - done - - # Avoid file collision with -base. - rm "${ED}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)/libpgcommon.a" - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} - - systemd_newunit "${WORKDIR}"/postgresql.service postgresql-${SLOT}.service - systemd_newtmpfilesd "${WORKDIR}"/postgresql.tmpfilesd postgresql-${SLOT}.conf - - insinto /usr/bin/ - newbin "${WORKDIR}"/postgresql-check-db-dir postgresql-${SLOT}-check-db-dir - - use pam && pamd_mimic system-auth postgresql-${SLOT} auth account session - - if use prefix ; then - keepdir /run/postgresql - fperms 0775 /run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}/run/postgresql/" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal in 10 seconds (Control-C to cancel)" - sleep 10 - eend 0 - fi -} - -pkg_postrm() { - postgresql-config update -} - -pkg_config() { - [[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - [[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" - [[ -z "${DATA_DIR}" ]] && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" - - # environment.bz2 may not contain the same locale as the current system - # locale. Unset and source from the current system locale. - if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then - unset LANG - unset LC_CTYPE - unset LC_NUMERIC - unset LC_TIME - unset LC_COLLATE - unset LC_MONETARY - unset LC_MESSAGES - unset LC_ALL - source "${EROOT%/}/etc/env.d/02locale" - [ -n "${LANG}" ] && export LANG - [ -n "${LC_CTYPE}" ] && export LC_CTYPE - [ -n "${LC_NUMERIC}" ] && export LC_NUMERIC - [ -n "${LC_TIME}" ] && export LC_TIME - [ -n "${LC_COLLATE}" ] && export LC_COLLATE - [ -n "${LC_MONETARY}" ] && export LC_MONETARY - [ -n "${LC_MESSAGES}" ] && export LC_MESSAGES - [ -n "${LC_ALL}" ] && export LC_ALL - fi - - einfo "You can modify the paths and options passed to initdb by editing:" - einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - einfo - einfo "Information on options that can be passed to initdb are found at:" - einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" - einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" - einfo - einfo "PG_INITDB_OPTS is currently set to:" - if [[ -z "${PG_INITDB_OPTS}" ]] ; then - einfo " (none)" - else - einfo " ${PG_INITDB_OPTS}" - fi - einfo - einfo "Configuration files will be installed to:" - einfo " ${PGDATA}" - einfo - einfo "The database cluster will be created in:" - einfo " ${DATA_DIR}" - einfo - while [ "$correct" != "true" ] ; do - einfo "Are you ready to continue? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - correct="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "Aborting initialization." - else - echo "Answer not recognized" - fi - done - - if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then - eerror "The given directory, '${DATA_DIR}', is not empty." - eerror "Modify DATA_DIR to point to an empty directory." - die "${DATA_DIR} is not empty." - fi - - [ -z "${PG_MAX_CONNECTIONS}" ] && PG_MAX_CONNECTIONS="128" - einfo "Checking system parameters..." - - if ! use kernel_linux ; then - einfo "Skipped." - einfo " Tests not supported on this OS (yet)" - else - if [ -z ${SKIP_SYSTEM_TESTS} ] ; then - einfo "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections..." - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - einfo "Passed." - else - ewarn "SKIP_SYSTEM_TESTS set, so skipping." - fi - fi - - einfo "Creating the data directory ..." - if [[ ${EUID} == 0 ]] ; then - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled" - einfo "by default. You can disable it in the cluster's:" - einfo " ${PGDATA%/}/postgresql.conf" - einfo - einfo "The PostgreSQL server, by default, will log events to:" - einfo " ${DATA_DIR%/}/postmaster.log" - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo "mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [ ${UID} -ne 0 ] ; then - emake check - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} diff --git a/dev-db/postgresql-server/postgresql-server-9.4_rc1.ebuild b/dev-db/postgresql-server/postgresql-server-9.4_rc1.ebuild deleted file mode 100644 index 41b12e9b0e44..000000000000 --- a/dev-db/postgresql-server/postgresql-server-9.4_rc1.ebuild +++ /dev/null @@ -1,360 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-9.4_rc1.ebuild,v 1.1 2014/11/21 05:48:23 patrick Exp $ - -EAPI="5" - -RESTRICT="test" - -PYTHON_COMPAT=( python{2_{6,7},3_{2,3,4}} ) -WANT_AUTOMAKE="none" - -RESTRICT="test" - -inherit autotools eutils flag-o-matic multilib pam prefix python-single-r1 systemd user versionator - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" - -MY_PV=${PV/_/} -SLOT="$(get_version_component_range 1-2)" -S="${WORKDIR}/postgresql-${MY_PV}" -SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2 - http://dev.gentoo.org/~patrick/postgresql-patches-${SLOT}-r1.tbz2 - http://dev.gentoo.org/~floppym/dist/postgresql-initscript-2.7.tbz2" - -LICENSE="POSTGRESQL GPL-2" -DESCRIPTION="PostgreSQL server" -HOMEPAGE="http://www.postgresql.org/" - -LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" -IUSE="doc kerberos kernel_linux nls pam perl -pg_legacytimestamp python selinux tcl test uuid xml" - -for lingua in ${LINGUAS}; do - IUSE+=" linguas_${lingua}" -done - -wanted_languages() { - local enable_langs - - for lingua in ${LINGUAS} ; do - use linguas_${lingua} && enable_langs+="${lingua} " - done - - echo -n ${enable_langs} -} - -CDEPEND=" -~dev-db/postgresql-base-${PV}[kerberos?,pam?,pg_legacytimestamp=,python=,nls=] -perl? ( >=dev-lang/perl-5.8 ) -python? ( ${PYTHON_DEPS} ) -tcl? ( >=dev-lang/tcl-8 ) -uuid? ( dev-libs/ossp-uuid ) -xml? ( dev-libs/libxml2 dev-libs/libxslt ) -" - -DEPEND="${CDEPEND} -sys-devel/flex -xml? ( virtual/pkgconfig ) -" - -RDEPEND="${CDEPEND} -selinux? ( sec-policy/selinux-postgresql ) -" - -PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" - -pkg_setup() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - use python && python-single-r1_pkg_setup -} - -src_prepare() { - epatch "${WORKDIR}/autoconf.patch" \ - "${WORKDIR}/bool.patch" \ - "${WORKDIR}/server.patch" \ - "${WORKDIR}/run-dir.patch" - - eprefixify src/include/pg_config_manual.h - - if use pam ; then - sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ - -i src/backend/libpq/auth.c \ - || die 'PGSQL_PAM_SERVICE rename failed.' - fi - - if use perl ; then - sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \ - -i "${S}/src/pl/plperl/GNUmakefile" || die 'sed plperl failed' - fi - - if use test ; then - sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress{,_main}.c \ - || die 'Failed regress sed' - else - echo "all install:" > "${S}/src/test/regress/GNUmakefile" - fi - - sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \ - -i "${WORKDIR}"/postgresql{.{init,confd,service},-check-db-dir} || - die "SLOT/LIBDIR sed failed" - - eautoconf -} - -src_configure() { - case ${CHOST} in - *-darwin*|*-solaris*) - use nls && append-libs intl - ;; - esac - - local PO="${EPREFIX%/}" - - # eval is needed to get along with pg_config quotation of space-rich entities. - eval econf "$(${PO}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \ - $(use_with perl) \ - $(use_with tcl) \ - $(use_with xml libxml) \ - $(use_with xml libxslt) \ - $(use_with uuid ossp-uuid) \ - --with-system-tzdata="${PO}/usr/share/zoneinfo" \ - --with-includes="${PO}/usr/include/postgresql-${SLOT}/" \ - --with-libraries="${PO}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)" \ - "$(use_enable nls nls "$(wanted_languages)")" -} - -src_compile() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2); do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake -C $bd || die "emake in $bd failed" - done -} - -src_install() { - local bd - for bd in . contrib $(use xml && echo contrib/xml2) ; do - PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \ - emake install -C $bd DESTDIR="${D}" || die "emake install in $bd failed" - done - - # Avoid file collision with -base. - rm "${ED}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)/libpgcommon.a" - - dodir /etc/eselect/postgresql/slots/${SLOT} - echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ - "${ED}/etc/eselect/postgresql/slots/${SLOT}/server" - - newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT} - newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT} - - systemd_newunit "${WORKDIR}"/postgresql.service postgresql-${SLOT}.service - systemd_newtmpfilesd "${WORKDIR}"/postgresql.tmpfilesd postgresql-${SLOT}.conf - - insinto /usr/bin/ - newbin "${WORKDIR}"/postgresql-check-db-dir postgresql-${SLOT}-check-db-dir - - use pam && pamd_mimic system-auth postgresql-${SLOT} auth account session - - if use prefix ; then - keepdir /run/postgresql - fperms 0775 /run/postgresql - fi -} - -pkg_postinst() { - postgresql-config update - - elog "Gentoo specific documentation:" - elog "http://www.gentoo.org/doc/en/postgres-howto.xml" - elog - elog "Official documentation:" - elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" - elog - elog "The default location of the Unix-domain socket is:" - elog " ${EROOT%/}/run/postgresql/" - elog - elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" - elog "so that it contains your preferred locale in:" - elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - elog - elog "Then, execute the following command to setup the initial database" - elog "environment:" - elog " emerge --config =${CATEGORY}/${PF}" -} - -pkg_prerm() { - if [[ -z ${REPLACED_BY_VERSION} ]] ; then - ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" - ewarn "\thttp://www.gentoo.org/doc/en/postgres-howto.xml#doc_chap5" - - ebegin "Resuming removal in 10 seconds (Control-C to cancel)" - sleep 10 - eend 0 - fi -} - -pkg_postrm() { - postgresql-config update -} - -pkg_config() { - [[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - [[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" - [[ -z "${DATA_DIR}" ]] && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" - - # environment.bz2 may not contain the same locale as the current system - # locale. Unset and source from the current system locale. - if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then - unset LANG - unset LC_CTYPE - unset LC_NUMERIC - unset LC_TIME - unset LC_COLLATE - unset LC_MONETARY - unset LC_MESSAGES - unset LC_ALL - source "${EROOT%/}/etc/env.d/02locale" - [ -n "${LANG}" ] && export LANG - [ -n "${LC_CTYPE}" ] && export LC_CTYPE - [ -n "${LC_NUMERIC}" ] && export LC_NUMERIC - [ -n "${LC_TIME}" ] && export LC_TIME - [ -n "${LC_COLLATE}" ] && export LC_COLLATE - [ -n "${LC_MONETARY}" ] && export LC_MONETARY - [ -n "${LC_MESSAGES}" ] && export LC_MESSAGES - [ -n "${LC_ALL}" ] && export LC_ALL - fi - - einfo "You can modify the paths and options passed to initdb by editing:" - einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" - einfo - einfo "Information on options that can be passed to initdb are found at:" - einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" - einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" - einfo - einfo "PG_INITDB_OPTS is currently set to:" - if [[ -z "${PG_INITDB_OPTS}" ]] ; then - einfo " (none)" - else - einfo " ${PG_INITDB_OPTS}" - fi - einfo - einfo "Configuration files will be installed to:" - einfo " ${PGDATA}" - einfo - einfo "The database cluster will be created in:" - einfo " ${DATA_DIR}" - einfo - while [ "$correct" != "true" ] ; do - einfo "Are you ready to continue? (y/n)" - read answer - if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then - correct="true" - elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then - die "Aborting initialization." - else - echo "Answer not recognized" - fi - done - - if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then - eerror "The given directory, '${DATA_DIR}', is not empty." - eerror "Modify DATA_DIR to point to an empty directory." - die "${DATA_DIR} is not empty." - fi - - [ -z "${PG_MAX_CONNECTIONS}" ] && PG_MAX_CONNECTIONS="128" - einfo "Checking system parameters..." - - if ! use kernel_linux ; then - einfo "Skipped." - einfo " Tests not supported on this OS (yet)" - else - if [ -z ${SKIP_SYSTEM_TESTS} ] ; then - einfo "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections..." - - local SEMMSL=$(sysctl -n kernel.sem | cut -f1) - local SEMMNS=$(sysctl -n kernel.sem | cut -f2) - local SEMMNI=$(sysctl -n kernel.sem | cut -f4) - local SHMMAX=$(sysctl -n kernel.shmmax) - - local SEMMSL_MIN=17 - local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 )) - local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 )) - local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) )) - - for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do - if [ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ] ; then - eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)" - eerror "You have now several options:" - eerror " - Change the mentioned system parameter" - eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to a" - eerror " value lower than ${PG_MAX_CONNECTIONS}" - eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely" - eerror "More information can be found here:" - eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html" - die "System test failed." - fi - done - einfo "Passed." - else - ewarn "SKIP_SYSTEM_TESTS set, so skipping." - fi - fi - - einfo "Creating the data directory ..." - if [[ ${EUID} == 0 ]] ; then - mkdir -p "${DATA_DIR}" - chown -Rf postgres:postgres "${DATA_DIR}" - chmod 0700 "${DATA_DIR}" - fi - - einfo "Initializing the database ..." - - if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" - else - "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} - fi - - mv "${DATA_DIR%/}"/*.conf "${PGDATA}" - - einfo "The autovacuum function, which was in contrib, has been moved to the main" - einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled" - einfo "by default. You can disable it in the cluster's:" - einfo " ${PGDATA%/}/postgresql.conf" - einfo - einfo "The PostgreSQL server, by default, will log events to:" - einfo " ${DATA_DIR%/}/postmaster.log" - einfo - if use prefix ; then - einfo "The location of the configuration files have moved to:" - einfo " ${PGDATA}" - einfo "To start the server:" - einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" - einfo "To stop:" - einfo " pg_ctl stop -D ${DATA_DIR}" - einfo - einfo "Or move the configuration files back:" - einfo "mv ${PGDATA}*.conf ${DATA_DIR}" - else - einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" - einfo "instead of 'pg_ctl'." - fi -} - -src_test() { - einfo ">>> Test phase [check]: ${CATEGORY}/${PF}" - - if [ ${UID} -ne 0 ] ; then - emake check - - einfo "If you think other tests besides the regression tests are necessary, please" - einfo "submit a bug including a patch for this ebuild to enable them." - else - ewarn "Tests cannot be run as root. Skipping." - ewarn "HINT: FEATURES=\"userpriv\"" - fi -} -- 2.26.2