removing old ebuilds
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,40 +0,0 @@ | ||||
| AUX 20php5-envd 145 SHA256 efaae9e6ae5f7010e073c2ab6d8a9dda009f0707c7d7b0c027e142c94f7041a4 SHA512 581aa86479e3cd584ee1bc6dc6d4a135fe8ec343fe5519566d728d81f7018cfb23658bd0c0368951d380982c75adbb4f45acf3c146868aaf4e4ec8e9f2fad1ce WHIRLPOOL b9cfe0e80ba437bbc6008223c268bdafcde306ba8083dce96815804f3e1ec0937706e0db091149785a0076a6c6eaab8f7dff28578b706e84b4bb4e67850a4ecd | ||||
| AUX 70_mod_php5.conf-apache2 348 SHA256 5bb8a45570582b4389a7d3feea0398e1c13ed4ced96e559b9406ed8c965dea8c SHA512 c74ec09c3c4124a15e14ece4bb769bb889466160cc0878ca3d55d5afc30fd4c05673c40428b75be669f72e82ba29f60ed19767caca77bba8adc12aae1c83f6f3 WHIRLPOOL fd503ec904a3853b90f8f4cc2042cf9014fdb1383a508d22e680559009b5b1e0beb5a09909a393e53868a64712c63e35642915787fa4176af07cb594adedb441 | ||||
| AUX 70_mod_php5.conf-apache2-r1 374 SHA256 815c1ca23c9afe8479568ceaac4057eb91ea5444fbd863866b29adb4eea2c82b SHA512 a97bcd6a37ba85752b8929b597f7cb75aa69ccbe6cf1f353db167a8b23d66b8a0044d3969dea0368a2b32a6f486dccd60b9cae9d4391da2e5d7fe4dcf21c79c7 WHIRLPOOL 3bf5fdc7a2ea483116468be579ff40b92134264f69011d49c2f9ab4c88845024579920bd865d8bb5f2e834bb3da9674fcadadcbf22381cf0d10dd81a99d9fcb2 | ||||
| AUX eblits/common-v1.eblit 379 SHA256 65c909a6d0501a6746518f539c4a4021426469cbf20b2a212fb0d60b48da5362 SHA512 c85127d09b64a1b2c39057aa5b0397468ce6566f2d2fb604cb68796431979eafaf125f23cb1dd64397f6e55faa565ce96f75a013cd70fcf2a9cf65aa8297c01e WHIRLPOOL 8b195a7ad59af474ea2765cb2a3867927e76eade827a3daca155773ef8cda3b48753e4520a90a9a90f75223df8c631b584ba16fc21c551b1c7b29d53992a4846 | ||||
| AUX eblits/common-v2.eblit 379 SHA256 8c15442b04b0216342ef6f2b8565cb3510f6850fe67745d5697861e2f7759194 SHA512 2da1176a288f509f8920c6f3d690fb71ce73ebf7651f6404f678b4567227c930e7965259a026ccdded20acbe3ee03be596fd6253da51d132f6b0ea0165963e55 WHIRLPOOL 1a4cd516d27034a99a4f4aff4334961556faa2c3f014070403faf27999060db4faae1fa7160ca94ab0465f9fc85b4b5eb9e2eb5e1880343e30daa0d3ff28fdae | ||||
| AUX eblits/pkg_postinst-v1.eblit 2637 SHA256 a9a323ed29f81252928fed49b2f010288d519233f15092648335e2615b7fe78d SHA512 22c6a7b350d8d72f9dc256ad19adf9df512e15dd1b0ddd50f6a2844a5a4953f78cba970f43c9448d8658cb1d60ee5e5195c9c8cdc2d699e43c3e4b6f38cb80f0 WHIRLPOOL 802efb267fd2da55118d32e6de2968b02386600be96cbe95c6cea59c992251374019dd654623d57aed4dd6364e1c194f816e0f0f66e1f09bec3471260f861898 | ||||
| AUX eblits/pkg_postinst-v2.eblit 2224 SHA256 50c68ceb6a8f53dbac66cba9766882bfdad1aaf453593aeee693179f55c1ffb8 SHA512 2716500ab3067e6b2f2f43e20a7e3f5527a41c4f778b2498af7040c4c1e9da19d3aeb9371c720e28dc0c09c6377c2c61a85cdfc6fee5dfec515bfef3746f3965 WHIRLPOOL 15697a43a80817594ee42eb4b5b9773d057481d76f1338c9311bd0a727a180845fa29dda02d4b18808de359b2c4305cd33f810da9a753ab8a963d4e6d09f0a26 | ||||
| AUX eblits/pkg_setup-v1.eblit 648 SHA256 6a3cb75ca657b521320b124bac77586026be826ae1947a2d988137212f3f3d6a SHA512 b6e548aa4da9e2d25bbbc76242bacfb205fdafe778d78e8f89566baa12910dd67dbc93dc8e458fd224f08a490554d5f53d223619d63a61fd280d061291549960 WHIRLPOOL 4ab4fab9d1e5e0f9a45189a997d6ae3333093af692ce75ecb8d513cfd7da2f0f481b8894c6af62a5c4f827b5e1bb01c6c08e3f6ab25e1db2fd02c430171cf96a | ||||
| AUX eblits/pkg_setup-v2.eblit 393 SHA256 17f9316065960ff0ca56aeec918c2c9e6c80ffdf951a238f7271a589753e320c SHA512 b5714b40c99d6e2eda73cb42cac888ea97680df1ea1c8c430a978c34460a0099f3c9b3438a59bef14acef4ab6653122fdaf10e11bafca8225a87e7ea6f61f416 WHIRLPOOL cbc7d50da571141d28859af2e252b77c79e40fb8a6605019e0a34aa8bf6fc100aa8a61ff2855c9e453ee3d837e8965e68873eec248f2941e4ed2e6c2803a166a | ||||
| AUX eblits/pkg_setup-v3.eblit 283 SHA256 5905eb3e6d984a9f8fe49e088adad99db7249f62a957c19f0ae4bf3f56ecaecd SHA512 e1c7fc1bb0a59021767a7bf848de88b0cea602ad596f40768b3b98e90713d41abfc690a15578eaf575ce3841bc52069d229b5470b3e5cd78cb962007b6da8eee WHIRLPOOL a91534151f0dbd804a4af634ca9c29e3008759664a307cd5338d518d4bbc0790bc473f71e645543682e7c25953e524b224d14e9463a2cbbbbde56d3f43e81d77 | ||||
| AUX eblits/src_compile-v1.eblit 1283 SHA256 5ec76ae24304c5f803a615a98394c219018da1b1ce2018f92f6ac8c5becf6c99 SHA512 2ff139344b874de9f032248687fa51a75d5df5eacb5ff6e879c26391624fbd6c4744034a34b0109bab3e434fd6f189c0dea4e298818ebf2c0c94973cdbf721d0 WHIRLPOOL 2971e61a6932a7c2c19bb40b26f67d529560d08116c37d7b645dc008710d7cc8cd75dcc8feca95eeb556687910968dbe90b20554ad0ca97a624cd7f9c9221482 | ||||
| AUX eblits/src_configure-snapshots.eblit 10639 SHA256 ee92ea71f6c766f6f10fda63aab36885265c95e245e8107fb2e9c10573f6e2ba SHA512 26fb6f4ca99ba820f4e7a9deb5577e8a2dc7105d3a78e7abffeaab4a13e47070bf95ce2ffcd1c257cb946fc40f6c6f98a99181994d9110276010ae1f79e8921b WHIRLPOOL 9fa6ec37381bd92b5fcb0ff9808642df7c9b041e428797bfdeb0c31414f388dbca087d2591718c032fc0253794622f46f916caed6da0d6bd23e7453981a03073 | ||||
| AUX eblits/src_configure-v1.eblit 10979 SHA256 dc769b7c5846248fdd5d1a930a3e9b614d550bfcc78f09ecd1c08607796f0206 SHA512 ed170b561266e8b23444d7fcd9e4188344cce35120b5921310d3847f0e9e3292b6f4fde91430a5eb303467dc6db3bd746f8f228b3ae6d8ff0d4f5c5dd7a71964 WHIRLPOOL f9421269cf8b47813fd6ad24b1c30ab98213bd39e047d692f42d12fbd727bfaba0082dc438655726765971942b0025318d44a60e5b662bd4e61efceeff009e8a | ||||
| AUX eblits/src_configure-v2.eblit 10855 SHA256 cd3002b6c9bd91dc9d7471e416cc631247fb2ad9d7b68981b26a3f83f84c916a SHA512 a91d4a34d5ea56196715c908dfca39f54c100761dfddad3a4c87014cc58da013e5b2327fd7eed46e36913336d21f393289cfbe59ad4bb1abeb592b562a8c43af WHIRLPOOL 2666978310e910f98325ea54e8e61bb980526e216d3a84135cf71c89acd676020e3cea6c7e69dc2dab03804ae67e0270ea2835dc1bcfde7a03ca95e80f1923d8 | ||||
| AUX eblits/src_configure-v3.eblit 6616 SHA256 fad5767d67d14a0b03e9ad3bc4abe300d8772f905c07fae60a4431e40d9d7ac6 SHA512 2dd131bfd4a4b340d3c01431667d04821f7c1ac3fb6a12243f3790719ee110e34e0bfa3160bf202c59bb06caf1c7cd74e8c169659c95e3eb35f9ac1d93be2750 WHIRLPOOL f5369a1269db3a6463520984ae7bb997e86219668157ba318e7959de529e0be2c06a35dae10fd2010e0c6de736397ffffc06e29ed8a6cab715fc020d3f68a804 | ||||
| AUX eblits/src_configure-v521.eblit 10844 SHA256 ad875ca45e9ad975c0d7a3cbedc27c5035aa048d7aa935221a15e47cbca63c3d SHA512 eab9ac435d179b5452d00062977f7e6b858a98a40942f1edb4c063753a003f4dd61c126d84f4d490fa9a1a321d41ef3fd852d81673bfa0da03604338e3d7b87e WHIRLPOOL 80e4f15c6dcee14634e52d454ee8d359d37eca711f19ae9f0d7c2534ddf8c45d406a1928a855fb92d0af3caed7f5f2986fc76fb40480debaa4788a64098a1a53 | ||||
| AUX eblits/src_install-v1.eblit 5146 SHA256 3bddd375764b0ed00cb30e65036c67f96c56ea0ebfd70bcdc61b7465d1500d36 SHA512 37d9d322eb4f4cdc6259f77789923d7d9a343047723d4ba9fde6566cfd291f77a0acaaff292158966059f6d5506e47a89a5fb5913e3240cb7d11dac9956c12d6 WHIRLPOOL f696f53e667fed56cbfa273c03c9eeded6ef50984a91d27bd932e5751e57b4396b85fad75593b529d9fb2f463cc8073bacc750bd469e7703da6795e71b989a58 | ||||
| AUX eblits/src_install-v2.eblit 5302 SHA256 466e7350126a2c27814c693c7c7fcc45ee53eb4d267846d5b27a02c377b5407d SHA512 33206725c2fca32e7d6c2f126c62723bd03f2df01b460603ae0efabae92d3246180e3093a6a4cf0226132d61f57d3e4fb63607b38d65301bafc38cb1c07f7f1b WHIRLPOOL b5e3e1ac0f1a6d52fd3e769f146522dba8ceb8588810c6b249cda2830eda69a9fc6c6eb5f47340b9bedf4f7c7a5fbbeb2f51bc41216628dc090ec268f9a820b1 | ||||
| AUX eblits/src_install-v3.eblit 4199 SHA256 fb210f93a5c1d8794cc0d76d0e66ab92efffc5acaf5243574a26e2a4432da9b5 SHA512 e8ddad46dbfd33c097c21597e2e78c8b832e5b86c792e936b538540a09ef96c198ae5fbdce52b903bd04d31c906594810f83d212758e48f0263b659f14689d37 WHIRLPOOL 139dfd97a00e44331333e121ad01f9586becca4bb837d4b62ef76dc58d2d20a17fe3d42d95078c1ab4a912fbeb214ec362381aea673ffb68e8876394cdc88643 | ||||
| AUX eblits/src_prepare-snapshots.eblit 2238 SHA256 411ce9d56008461da4592dcf623fcff40c33aac479d13544f84cc974c5c232ea SHA512 b29094bf7fdc1df64736c141adfd4eb2226eabd5a20a0ab8d0e5ed08565a3fa5031aae7b7506bedf0856d4c4794cff14c5b5a7eda1bdf4f51ce3c7aac6f1e84f WHIRLPOOL 85d9384b1cb3ab1cd106eaa0dc203cad148f8dca415a4476acfe3cbb5000ffc0c90d225893d8ffbf6d724b2b515277a45fae280252dfb0201bd59d04d2f4d8a5 | ||||
| AUX eblits/src_prepare-v2.eblit 2604 SHA256 fe7534260fb81a012b8021b5d555756ce8733ad192bf51cedd94f12963811790 SHA512 02b7132e78d41829832c3d0c7e8c47a3ed8747074f5092c2f649c93c31ba84e3ecb7ada259986182077251886449622aebdedfd301cf80a11c1cf47603cea4f4 WHIRLPOOL ad420b8c11e3093b24a4fac793170fba401e0fea293970aa6803c8ce13a1c4aaddc54b14def5ea42885a261aa3658eac44b08313dab8042bd5bba1fb441742e4 | ||||
| AUX eblits/src_prepare-v3.eblit 2649 SHA256 7ea3a5351fabeb050161e64c09b98ff945bbdb8b4d1a7fb83d6b4645f277b486 SHA512 0c1c5caf47e5955116ddec5b87022920a37f079211aaefb25c9a14b0c269343e808593b4727ea7e3d07487ed0a74de0e683ded318200c304943149548a75c34b WHIRLPOOL 055c5bf47e2c02537e24421cc796316b8a390a0d5447149eda5398b9708e05bfd71167e5ea2fe959432a6abb508f84d7f7cbc84748048c87e7777468bb6ab78e | ||||
| AUX eblits/src_prepare-v4.eblit 2317 SHA256 7c18252a49a6d8e071471d14624f284d7b3ad8b95cad4a001e10e6e521f4c9b1 SHA512 e5c8200cd393266f9e608ebe680e74d539f897ab288303ba4b09963c09c3fdcdcd850443c7e76b0f9343f977fec148f448391e94ffb0e81fe46c69e7e9d7bca6 WHIRLPOOL 0246d02c8e1856acbae723ed53f8286921fed7b671ecf2fd7c712d7345ca6dcebfe79e09e83c77df06e4fa6dff0f3e25c92027f2bc9bed2c2b69018cbbcac987 | ||||
| AUX eblits/src_test-v1.eblit 1530 SHA256 67501925cfdaf9043e4985d0f1c797e62fb42bf47e6863b5ffdecb104888e82c SHA512 41c599ba577bc48bd4300592b5d515718cbf498165c601b87d7aaa098e045c56853c1c73932530262181b76c8cb854ceb252e947b35e8d619204e18680bed246 WHIRLPOOL d7439cfd95fff55ee7d91b3001e700dbd2dceae1dcbea7750e3df434c0f020860aa0555f383487dc0fc5fa7c16ac9769c58130be43fb9dd44286b6c7294b6698 | ||||
| AUX pcre_info.patch 1582 SHA256 35c2547479108d1fada70ab10bb877a4405156430acc3675399174dd4932b783 SHA512 cfb5795468a5a1bfb67207f815c6ebead8cfb7d6c14ffe8715bc535baf45cedb50d9d05a2df6ac8bdeef182d4da4cbac98ab0c4857d33742024ec15e5c5c5c13 WHIRLPOOL 991d072dccea035fec1d221d8fd44e3782144c2b8468f7ee95e7d6680e85c976c02f94e0ef52dacb783c2422dc25f8987155829400e4c8fecee51960fbc0d87a | ||||
| AUX php-fpm-gentooified.patch 1846 SHA256 262c02ad320408314e7635d403bd89b711374fcee09ecb37375e3406a0cc944a SHA512 8137389f2a4ad33a4d5b67a260659fc0c64b7e4ac276626e40d939ebd2829736f0e75beb535b09bb15ccc91c1e7eacdfd954c688d07c43b56317f2bbd85f06b7 WHIRLPOOL 8d7169b8a1cdefa4c0e2db5675e4aa03a9de4372594c91f7fd7c27505d7377964a33c0ba44d3872e68f9b9ac2d50ad557a7a5203cf528435a5f6bf6b41ff9499 | ||||
| AUX php-fpm-r0.conf 12898 SHA256 8ebd676e058e5b64fbb8b5ed0be693e4da8f6fcedd5e427757afccc13504c48d SHA512 cfd93a8381f4a60a71bcf1bedae4889280eafcf92ba7a0f93ea164cdc87a29f598d80b9b98867d8cb966ef5e42f89a291959a84b592433b458cb7e364cec0e7d WHIRLPOOL 3fd4ce204895af20392e28381ab099344756c7a4ba5910b7e3f5c1d8c80bf96cf17eabdda3a801dc07ec8ebc8ead07833c0d7313419d7552e1f661dd2a8fc8bd | ||||
| AUX php-fpm-r1.conf 12966 SHA256 c4308a92ade93812c6579b74a72cd1f3e1a35f7e63289722f461771d5702448c SHA512 3d421c1e8b8f6ecffbf8284a7f79a1e5cc3f0893b1a47f5ccd980d554b058c363c1e236aa3157c2b66791b3291c6e98981cc527d501328ccc3ccb34eee2950ef WHIRLPOOL 1f591597698e28fc47197e02ba680728363c50781d146cf2598403f4678781eabc4f4d2abe2c0bfe9a25065491d3cb514cc5a9dcee4edd9d9438f51181f43b2a | ||||
| AUX php-fpm-r3.init 920 SHA256 1e4c1c932f1e60040383f7d38bd212ce8fbe8ca3ac387bbf3b6e660a7870ba84 SHA512 a5a6b496ce3040efebf659a9643dcf35df53794a73c7c34e829c0cc6fdd0dcdfe358f65439d89df798ef8c5df3b33b1d8d23824aa922025eced9b5247671775f WHIRLPOOL f794cd966655f229e5b69031db4aa3179085cad441c7943908d499794f82d492eff4d83534197332dad911643616bfb70dbf17b36c6b8b45a85a51bae8ec53fa | ||||
| AUX php-fpm-r4.init 954 SHA256 aba14f04126f474d5809b9a7976aca65c6ec895896de736b606c798c4aa04366 SHA512 38709086159f46699bc9d5132ab8298fae3967d9d4e8726fd150e47f04868e3581e7730085066bd04792c69945cef923f98a723325e13fb555d16e37664cb8ba WHIRLPOOL b07cd17357093ed78582dddda3f907d8550f53934ca84d9beb407d55e16125af7decb1f22cc010db23f9bc5582017b118a1f9674730534a34271eaff2f9aaed7 | ||||
| AUX php-fpm.conf 12898 SHA256 8ebd676e058e5b64fbb8b5ed0be693e4da8f6fcedd5e427757afccc13504c48d SHA512 cfd93a8381f4a60a71bcf1bedae4889280eafcf92ba7a0f93ea164cdc87a29f598d80b9b98867d8cb966ef5e42f89a291959a84b592433b458cb7e364cec0e7d WHIRLPOOL 3fd4ce204895af20392e28381ab099344756c7a4ba5910b7e3f5c1d8c80bf96cf17eabdda3a801dc07ec8ebc8ead07833c0d7313419d7552e1f661dd2a8fc8bd | ||||
| AUX php-fpm.init 385 SHA256 baba8dab2cadc8bdf107e6fe5cede2f5faaabff1281781a0a30b3be79964c94e SHA512 a60fef565ca122c3b551564f493f1cca96d1fd6cef2bff455eaec2162482da88d92cb3fbbb2da64a5bb2aa6c2d291761c888a6bac561c52fda05632dbdeea3dd WHIRLPOOL ac721e59817045fd1a0bbab84b2c42fc2d11f7b66a3ec0c3d937c38177038a2b998fa9ae50daac705acf89f01b7b1cfd9dca6148361a9c8938d6078e739363df | ||||
| AUX php5-ldvs 22 SHA256 b79d0e52b1b3b4543b31ad45525ae1c2814a27ea8e676772ab10bf6fb12dfe79 SHA512 689a0a12b3527741d2e47870c125e93be73a127e5e798c4b685ccb11653be5a8615faf3178c71a6346fe264d3c4ec76601bc05878fef67b9dbd2e45be59a344d WHIRLPOOL b24f193a1067f699c8efb199ba4e3f1fdd22c13dff98655206b30072ce8c8035fb4ed9288f694856f9978bd9935d3a5589cd968316920e712779c45b44897634 | ||||
| DIST php-5.2.17.tar.bz2 9092312 SHA256 e81beb13ec242ab700e56f366e9da52fd6cf18961d155b23304ca870e53f116c SHA512 baf3b5038468c9fa7c1a9e0506ed23559c21ba8df29380498a24e8d31c4c5f3633f29b1bc2faa3e59c6e5336536c09e19a5462b0a9d5916181c08f1f19abbca8 WHIRLPOOL 94657976927ff8d45dc17c2db59ac86a4320d6d7b2b6d5b43c4862060495a4011ad9b73d9b57ea4eb46a38418683ac2ff16e93fa10bd4ad5842c50accbac3536 | ||||
| DIST php-patchset-5.2.17-r0.tar.bz2 8369 SHA256 fb159a02faf5120dd9bc620bd3f3094735f181aa6893273bb7dd29771b8b23b2 SHA512 8e1f4de519f926ccabf04c7358f8568506943e8d3be474c8a656cccb19381553609db05ef3bfb97adc5f2976aafe589aa53f84f888bbcb41e231298d89566b39 WHIRLPOOL 77aada53720272656d82d1e9fdade8e25fa6d7e409de546e9c3ac0d274308734a1d254665de97c54a8c14da79e49acdfb2bfb960fbd97bc24bc9db0bd8a348ac | ||||
| DIST php52-backports-security-20121114.patch 410829 SHA256 59dc139b9acf86bbb2e281696765de513c3bec7d43392a10b5f3b36a9881ab00 SHA512 1272ea579d8dfcf5c593ab5668d8017d0b6df16bcd0c85a771786e89292e25890ea6b14a586ce98234835d3fd5adfd0f4c1f41520a344e6085e2b59ab6fd1f57 WHIRLPOOL 5137e07fa49a75465c7cb79e138975b390597aaa2e81653d40c749123ed27fe86c7d635eb8ec9936716a8234f380a3c9292ac85509ea672b9e914a03ce69d741 | ||||
| DIST suhosin-patch-5.2.16-0.9.7.patch.gz 23069 SHA256 aae115a318d80b3f32cedf876e7a8e4b932febb1b0c743c0b398003ebe122f91 SHA512 71f204c6c04cff4914c5f3d4d8d4e016e09a92a8e92d3a78ed2df482238ae6e8b71fb16ccadaca643d0fde07966ead02bcf3bee9c46725290e0a5ed603ec0ba0 WHIRLPOOL b3282acb99b48ad9edb89b45f12bf60b40bc9fd8d9bcf42a5402b8331e8d2e4a8fa52bd423c7a5fae2b7c1c93f0245d13019e6c85e1379d1749abb6d7f1a0a0c | ||||
| EBUILD php-5.2.17-r1.ebuild 9580 SHA256 cc918668cd505fb6763df28c0daf6a663d4cbb4a21b9da92548a37ea21cd41b2 SHA512 8cce0ad2c7d2950ee4730e025bd7fd39f6306a478c45040c003bef8980785e4e5fb30ffea62749b26dbcd9e03d08af846b84bb01d78afb11b20a0bca15666de8 WHIRLPOOL e6fe0232f0d4c9f83271b1af54ada3c026ef312eb0545d8125991001853efee5fd9aeef961d84a9a976faf1f0af49502515f7203ef52fee8f6cacce2a8074bf5 | ||||
| MISC ChangeLog 87319 SHA256 9309eea9e9492bc0b14bd3d1001af37e0b6196409da92dc286bc948542e8b74a SHA512 245764a57d3be704df95c6692ef480c2fa6216c2d0439ae38bdd3bf88f3fc687c2d23f8734c8f629a5f64e047f7d5a5e19eca15e13edc906d2d0bd9eaccc456b WHIRLPOOL 94fd58bf26d7d5989d193981311497cdc9be372d1da284a69101fa0a3cd7934bbc184ad41d170d25ceacfb5d4addb798623644604971e4e5beed4d863e13b00d | ||||
| MISC metadata.xml 2075 SHA256 3d8bc9305be300ef7ef92d18ba5476927ec90a5b6d43c2408936229590ff5ac5 SHA512 53506db4d02e573f0ee5e60231545f079aac4e3c20d9f4f0f68502c64a7164244105af806e86827192263c988f7c9e5145b87e840ca036bfc36601ede22d6d45 WHIRLPOOL 529db115d1a572cc823c3bfd1d501959a139384102773981bf24688ed97f11f3b4c6722e98734d95bcccbe2e1942e6903d0914c2413b979062b4147a3124edcf | ||||
| @@ -1,2 +0,0 @@ | ||||
| MANPATH="/usr/lib/php5/man/" | ||||
| CONFIG_PROTECT_MASK="/etc/php/cli-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/apache2-php5/ext-active/" | ||||
| @@ -1,14 +0,0 @@ | ||||
| <IfDefine PHP5> | ||||
| 	# Load the module first | ||||
| 	<IfModule !mod_php5.c> | ||||
| 		LoadModule php5_module    modules/libphp5.so | ||||
| 	</IfModule> | ||||
|  | ||||
| 	# Set it to handle the files | ||||
| 	<IfModule mod_mime.c> | ||||
| 		AddHandler application/x-httpd-php .php .php5 .phtml | ||||
| 		AddHandler application/x-httpd-php-source .phps | ||||
| 	</IfModule> | ||||
|  | ||||
| 	DirectoryIndex index.php index.phtml | ||||
| </IfDefine> | ||||
| @@ -1,17 +0,0 @@ | ||||
| <IfDefine PHP5> | ||||
| 	# Load the module first | ||||
| 	<IfModule !mod_php5.c> | ||||
| 		LoadModule php5_module    modules/libphp5.so | ||||
| 	</IfModule> | ||||
|  | ||||
| 	# Set it to handle the files | ||||
| 	<FilesMatch "\.ph(p5?|tml)$"> | ||||
| 		SetHandler application/x-httpd-php | ||||
| 	</FilesMatch> | ||||
|  | ||||
| 	<FilesMatch "\.phps$"> | ||||
| 		SetHandler application/x-httpd-php-source | ||||
| 	</FilesMatch> | ||||
|  | ||||
| 	DirectoryIndex index.php index.phtml | ||||
| </IfDefine> | ||||
| @@ -1,9 +0,0 @@ | ||||
| # Copyright 1999-2010 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/common-v1.eblit,v 1.2 2010/10/08 18:25:10 olemarkus Exp $ | ||||
|  | ||||
| php_set_ini_dir() { | ||||
| 	PHP_INI_DIR="/etc/php/${1}-php${SLOT}" | ||||
| 	PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext" | ||||
| 	PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active" | ||||
| } | ||||
| @@ -1,9 +0,0 @@ | ||||
| # Copyright 1999-2010 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/common-v2.eblit,v 1.3 2010/10/08 18:25:10 olemarkus Exp $ | ||||
|  | ||||
| php_set_ini_dir() { | ||||
| 	PHP_INI_DIR="/etc/php/${1}-php${SLOT}" | ||||
| 	PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext" | ||||
| 	PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active" | ||||
| } | ||||
| @@ -1,83 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_postinst-v1.eblit,v 1.5 2011/08/22 13:42:39 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-pkg_postinst() { | ||||
| 	# Output some general info to the user | ||||
| 	if use apache2 ; then | ||||
| 		APACHE2_MOD_DEFINE="PHP${PHP_MV}" | ||||
| 		if use concurrentmodphp ; then | ||||
| 			APACHE2_MOD_CONF="70_mod_php${PHP_MV}_concurr" | ||||
| 		else | ||||
| 			APACHE2_MOD_CONF="70_mod_php${PHP_MV}" | ||||
| 		fi | ||||
| 		apache-module_pkg_postinst | ||||
| 	fi | ||||
|  | ||||
| 	# Update Apache2 to use mod_php | ||||
| 	if use apache2 ; then | ||||
| 		"${ROOT}/usr/sbin/php-select" -t apache2 php${PHP_MV} > /dev/null 2>&1 | ||||
| 		exitStatus=$? | ||||
| 		if [[ ${exitStatus} == 2 ]] ; then | ||||
| 			php-select apache2 php${PHP_MV} | ||||
| 		elif [[ ${exitStatus} == 4 ]] ; then | ||||
| 			ewarn "To make Apache2 use php-${PHP_MV}, use" | ||||
| 			ewarn "    php-select apache2 php${PHP_MV}" | ||||
| 			ewarn | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# Create the symlinks for php-cli | ||||
| 	if use cli ; then | ||||
| 		"${ROOT}/usr/sbin/php-select" -t php php${PHP_MV} > /dev/null 2>&1 | ||||
| 		exitStatus=$? | ||||
| 		if [[ ${exitStatus} == 5 ]] ; then | ||||
| 			php-select php php${PHP_MV} | ||||
| 		elif [[ ${exitStatus} == 4 ]] ; then | ||||
| 			ewarn "To make usr/bin/php point to php-${PHP_MV}, use" | ||||
| 			ewarn "    php-select php php${PHP_MV}" | ||||
| 			ewarn | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# Create the symlinks for php-cgi | ||||
| 	if use cgi ; then | ||||
| 		"${ROOT}/usr/sbin/php-select" -t php-cgi php${PHP_MV} > /dev/null 2>&1 | ||||
| 		exitStatus=$? | ||||
| 		if [[ ${exitStatus} == 5 ]] ; then | ||||
| 			php-select php-cgi php${PHP_MV} | ||||
| 		elif [[ ${exitStatus} == 4 ]] ; then | ||||
| 			ewarn "To make usr/bin/php-cgi point to php-${PHP_MV}, use" | ||||
| 			ewarn "    php-select php-cgi php${PHP_MV}" | ||||
| 			ewarn | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# Create the symlinks for php-devel | ||||
| 	"${ROOT}/usr/sbin/php-select" -t php-devel php${PHP_MV} > /dev/null 2>&1 | ||||
| 	exitStatus=$? | ||||
| 	if [[ $exitStatus == 5 ]] ; then | ||||
| 		php-select php-devel php${PHP_MV} | ||||
| 	elif [[ $exitStatus == 4 ]] ; then | ||||
| 		ewarn "To make usr/bin/php-config and usr/bin/phpize point to php-${PHP_MV}, use" | ||||
| 		ewarn "    php-select php-devel php${PHP_MV}" | ||||
| 		ewarn | ||||
| 	fi | ||||
|  | ||||
| 	ewarn "You may have to recompile third-party extensions now" | ||||
| 	ewarn "(includes every dev-php5/pecl-* package and probably others in that category)" | ||||
| 	ewarn "Also make sure that you merge in the correct extension_dir ini setting for all your" | ||||
| 	ewarn "php.ini files." | ||||
| 	ewarn  | ||||
| 	ewarn "Please read the upgrade guide: http://www.gentoo.org/proj/en/php/php-upgrading.xml" | ||||
| 	ewarn | ||||
|  | ||||
| 	if ( [[ -z SUHOSIN_VERSION ]] && use suhosin ) ; then | ||||
| 		ewarn "The suhosin USE flag now only installs the suhosin patch!" | ||||
| 		ewarn "If you want the suhosin extension, make sure you install" | ||||
| 		ewarn " dev-php5/suhosin" | ||||
| 		ewarn | ||||
| 	fi | ||||
| } | ||||
|  | ||||
|  | ||||
| @@ -1,62 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_postinst-v2.eblit,v 1.13 2011/07/26 16:47:11 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-pkg_postinst() { | ||||
| 	# Output some general info to the user | ||||
| 	if use apache2 ; then | ||||
| 		APACHE2_MOD_DEFINE="PHP5" | ||||
| 		APACHE2_MOD_CONF="70_mod_php5" | ||||
| 		apache-module_pkg_postinst | ||||
| 	fi | ||||
|  | ||||
| 	 | ||||
| 	# Create the symlinks for php | ||||
| 	for m in ${SAPIS}; do | ||||
| 		[[ ${m} == 'embed' ]] && continue; | ||||
| 		if use $m ; then | ||||
| 			local ci=$(eselect php show $m) | ||||
| 			if [[ -z $ci ]]; then | ||||
| 				eselect php set $m php${SLOT} | ||||
| 				einfo "Switched ${m} to use php:${SLOT}" | ||||
| 				einfo | ||||
| 			elif [[ $ci != "php${SLOT}" ]] ; then | ||||
| 				elog "To switch $m to use php:${SLOT}, run" | ||||
| 				elog "    eselect php set $m php${SLOT}" | ||||
| 				elog | ||||
| 			fi | ||||
| 		fi | ||||
| 	done | ||||
|  | ||||
| 	elog "Make sure that PHP_TARGETS in /etc/make.conf includes php${SLOT/./-} in order" | ||||
| 	elog "to compile extensions for the ${SLOT} ABI" | ||||
| 	elog | ||||
| 	if ! use readline && use cli ; then | ||||
| 		ewarn "Note that in order to use php interactivly, you need to enable" | ||||
| 		ewarn "the readline USE flag or php -a will hang" | ||||
| 	fi | ||||
| 	elog | ||||
| 	elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version." | ||||
| 	elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either" | ||||
| 	elog "'production' or 'development' in /etc/make.conf" | ||||
| 	ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}" | ||||
|  | ||||
| 	# check for not yet migrated old style config dirs | ||||
| 	ls "${ROOT}"/etc/php/*-php5 &>/dev/null | ||||
| 	if [[ $? -eq 0 ]]; then | ||||
| 		ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config" | ||||
| 		ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x" | ||||
| 	fi | ||||
| 	elog | ||||
| 	elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:" | ||||
| 	elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml" | ||||
| 	elog | ||||
|  | ||||
| 	if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then | ||||
| 		ewarn "The suhosin USE flag now only installs the suhosin patch!" | ||||
| 		ewarn "If you want the suhosin extension, make sure you install" | ||||
| 		ewarn " dev-php5/suhosin" | ||||
| 		ewarn | ||||
| 	fi | ||||
| } | ||||
|  | ||||
| @@ -1,23 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_setup-v1.eblit,v 1.3 2011/03/17 16:34:47 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-pkg_setup() { | ||||
| 	if use concurrentmodphp || use kolab ; then | ||||
| 		ewarn "concurrentmodphp and kolab are Gentoo-specific experimental" | ||||
| 		ewarn "patches. Before reporting any bugs to bugs.php.net, make sure to" | ||||
| 		ewarn "rebuild PHP with those USE flags disabled" | ||||
| 		ewarn | ||||
| 	fi | ||||
|  | ||||
| 	# Mail support | ||||
| 	php_check_mta | ||||
|  | ||||
| 	# Oracle support | ||||
| 	php_check_oracle_8 | ||||
|  | ||||
| 	phpconfutils_warn_about_external_deps | ||||
| 	depend.apache_pkg_setup | ||||
| } | ||||
|  | ||||
|  | ||||
| @@ -1,16 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_setup-v2.eblit,v 1.2 2011/03/17 16:34:47 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-pkg_setup() { | ||||
| 	# Mail support | ||||
| 	php_check_mta | ||||
|  | ||||
| 	# Oracle support | ||||
| 	php_check_oracle_8 | ||||
|  | ||||
| 	phpconfutils_warn_about_external_deps | ||||
| 	depend.apache_pkg_setup | ||||
| } | ||||
|  | ||||
|  | ||||
| @@ -1,9 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_setup-v3.eblit,v 1.1 2011/07/02 15:14:41 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-pkg_setup() { | ||||
| 	depend.apache_pkg_setup | ||||
| } | ||||
|  | ||||
|  | ||||
| @@ -1,60 +0,0 @@ | ||||
| # Copyright 1999-2010 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_compile-v1.eblit,v 1.6 2010/08/14 19:37:31 mabi Exp $ | ||||
|  | ||||
| eblit-php-src_compile() { | ||||
| 	# snmp seems to run during src_compile, too (bug #324739) | ||||
| 	addpredict /usr/share/snmp/mibs/.index | ||||
|  | ||||
| 	SAPI_DIR="${WORKDIR}/sapis" | ||||
|  | ||||
| 	for sapi in ${SAPIS} ; do | ||||
| 		use "${sapi}" || continue | ||||
|  | ||||
| 		php_sapi_build "${sapi}" | ||||
| 		php_sapi_copy "${sapi}" | ||||
| 	done | ||||
| } | ||||
|  | ||||
| php_sapi_build() { | ||||
| 	mkdir -p "${SAPI_DIR}/$1" | ||||
|  | ||||
| 	cd "${WORKDIR}/sapis-build/$1" | ||||
| 	emake || die "emake failed" | ||||
| } | ||||
|  | ||||
| php_sapi_copy() { | ||||
| 	local sapi="$1" | ||||
| 	local source="" | ||||
|  | ||||
| 	case "$sapi" in | ||||
| 		cli) | ||||
| 			source="sapi/cli/php" | ||||
| 			;; | ||||
| 		cgi) | ||||
| 			source="sapi/cgi/php-cgi" | ||||
| 			;; | ||||
| 		fpm) | ||||
| 			source="sapi/fpm/php-fpm" | ||||
| 			;; | ||||
| 		embed) | ||||
| 			source="libs/libphp${PHP_MV}.so" | ||||
| 			;; | ||||
|  | ||||
| 		apache2) | ||||
| 			# apache2 is a special case; the necessary files | ||||
| 			# (yes, multiple) are copied by make install, not | ||||
| 			# by the ebuild; that's the reason, why apache2 has | ||||
| 			# to be the last sapi | ||||
| 			emake INSTALL_ROOT="${SAPI_DIR}/${sapi}/" install-sapi | ||||
| 			;; | ||||
|  | ||||
| 		*) | ||||
| 			die "unhandled sapi in php_sapi_copy" | ||||
| 			;; | ||||
| 	esac | ||||
|  | ||||
| 	if [[ "${source}" ]] ; then | ||||
| 		cp "$source" "${SAPI_DIR}/$sapi" || die "Unable to copy ${sapi} SAPI" | ||||
| 	fi | ||||
| } | ||||
| @@ -1,268 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-snapshots.eblit,v 1.1 2011/05/15 19:17:23 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-src_configure() { | ||||
| 	PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}" | ||||
|  | ||||
| 	# This is a global variable and should be in caps. It isn't because the | ||||
| 	# phpconfutils eclass relies on exactly this name... | ||||
| 	# for --with-libdir see bug #327025 | ||||
| 	my_conf=" | ||||
| 		--prefix="${PHP_DESTDIR}" | ||||
| 		--mandir="${PHP_DESTDIR}"/man | ||||
| 		--infodir="${PHP_DESTDIR}"/info | ||||
| 		--libdir="${PHP_DESTDIR}"/lib | ||||
| 		--with-libdir=$(get_libdir) | ||||
| 		--without-pear | ||||
| 		$(use_enable threads maintainer-zts)" | ||||
|  | ||||
| 	phpconfutils_init | ||||
|  | ||||
| 	#                             extension	      USE flag        shared | ||||
| 	phpconfutils_extension_enable  "bcmath"       "bcmath"           1 | ||||
| 	phpconfutils_extension_with    "bz2"          "bzip2"            1 | ||||
| 	phpconfutils_extension_enable  "calendar"     "calendar"         1 | ||||
| 	phpconfutils_extension_disable "ctype"        "ctype"            0 | ||||
| 	phpconfutils_extension_with    "curl"         "curl"             1 | ||||
| 	phpconfutils_extension_with    "curlwrappers" "curlwrappers"     0 | ||||
| 	phpconfutils_extension_disable "dom"          "xml"              0 | ||||
| 	phpconfutils_extension_with    "enchant"      "enchant"          1 "/usr" | ||||
| 	phpconfutils_extension_enable  "exif"         "exif"             1 | ||||
| 	phpconfutils_extension_disable "fileinfo"     "fileinfo"         1 | ||||
| 	phpconfutils_extension_disable "filter"       "filter"           0 | ||||
| 	phpconfutils_extension_enable  "ftp"          "ftp"              1 | ||||
| 	phpconfutils_extension_with    "gettext"      "nls"              1 | ||||
| 	phpconfutils_extension_with    "gmp"          "gmp"              1 | ||||
| 	phpconfutils_extension_disable "hash"         "hash"             0 | ||||
| 	phpconfutils_extension_with    "mhash"        "mhash"            0 | ||||
| 	phpconfutils_extension_without "iconv"        "iconv"            0 | ||||
| 	phpconfutils_extension_enable  "intl"         "intl"             1 | ||||
| 	phpconfutils_extension_disable "ipv6"         "ipv6"             0 | ||||
| 	phpconfutils_extension_disable "json"         "json"             0 | ||||
| 	phpconfutils_extension_with    "kerberos"     "kerberos"         0 "/usr" | ||||
| 	phpconfutils_extension_disable "libxml"       "xml"              0 | ||||
| 	phpconfutils_extension_enable  "mbstring"     "unicode"          1 | ||||
| 	phpconfutils_extension_with    "mcrypt"       "crypt"            1 | ||||
| 	phpconfutils_extension_with    "mssql"        "mssql"            1 | ||||
| 	phpconfutils_extension_with    "onig"         "unicode"          0 "/usr" | ||||
| 	phpconfutils_extension_with    "openssl"      "ssl"              0 | ||||
| 	phpconfutils_extension_with    "openssl-dir"  "ssl"              0 "/usr" | ||||
| 	phpconfutils_extension_enable  "pcntl"        "pcntl"            1 | ||||
| 	phpconfutils_extension_disable "phar"         "phar"             1 | ||||
| 	phpconfutils_extension_disable "pdo"          "pdo"              0 | ||||
| 	phpconfutils_extension_with    "pgsql"        "postgres"         1 | ||||
| 	phpconfutils_extension_disable "posix"        "posix"            0 | ||||
| 	phpconfutils_extension_with    "pspell"       "spell"            1 | ||||
| 	phpconfutils_extension_with    "recode"       "recode"           1 | ||||
| 	phpconfutils_extension_disable "simplexml"    "simplexml"        0 | ||||
| 	phpconfutils_extension_enable  "shmop"        "sharedmem"        0 | ||||
| 	phpconfutils_extension_with    "snmp"         "snmp"             1 | ||||
| 	phpconfutils_extension_enable  "soap"         "soap"             1 | ||||
| 	phpconfutils_extension_enable  "sockets"      "sockets"          1 | ||||
| 	phpconfutils_extension_without "sqlite3"      "sqlite"           1 "/usr" | ||||
| 	phpconfutils_extension_with    "sybase-ct"    "sybase-ct"        1 "/usr" | ||||
| 	phpconfutils_extension_enable  "sysvmsg"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_enable  "sysvsem"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_enable  "sysvshm"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_with    "tidy"         "tidy"             1 | ||||
| 	phpconfutils_extension_disable "tokenizer"    "tokenizer"        0 | ||||
| 	phpconfutils_extension_enable  "wddx"         "wddx"             1 | ||||
| 	phpconfutils_extension_disable "xml"          "xml"              0 | ||||
| 	phpconfutils_extension_disable "xmlreader"    "xmlreader"        0 | ||||
| 	phpconfutils_extension_disable "xmlwriter"    "xmlwriter"        0 | ||||
| 	phpconfutils_extension_with    "xmlrpc"       "xmlrpc"           1 | ||||
| 	phpconfutils_extension_with    "xsl"          "xsl"              1 | ||||
| 	phpconfutils_extension_enable  "zip"          "zip"              1 | ||||
| 	phpconfutils_extension_with    "zlib"         "zlib"             1 | ||||
| 	phpconfutils_extension_enable  "debug"        "debug"            0 | ||||
|  | ||||
| 	# DBA support | ||||
| 	if use cdb || use berkdb || use flatfile || use gdbm || use inifile \ | ||||
| 		|| use qdbm ; then | ||||
| 		my_conf="${my_conf} --enable-dba${shared}" | ||||
| 	fi | ||||
|  | ||||
| 	# DBA drivers support | ||||
| 	phpconfutils_extension_with   "cdb"        "cdb"      0 | ||||
| 	phpconfutils_extension_with   "db4"        "berkdb"   0 | ||||
| 	phpconfutils_extension_enable "flatfile"   "flatfile" 0 | ||||
| 	phpconfutils_extension_with   "gdbm"       "gdbm"     0 | ||||
| 	phpconfutils_extension_enable "inifile"    "inifile"  0 | ||||
| 	phpconfutils_extension_with   "qdbm"       "qdbm"     0 | ||||
|  | ||||
| 	# Support for the GD graphics library | ||||
| 	if use gd-external ; then | ||||
| 		phpconfutils_extension_with   "freetype-dir" "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_with   "t1lib"        "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_enable "gd-jis-conv"  "cjk"         0 | ||||
| 		phpconfutils_extension_with   "gd"           "gd-external" 1 "/usr" | ||||
| 	else | ||||
| 		phpconfutils_extension_with   "freetype-dir" "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_with   "t1lib"        "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_enable "gd-jis-conv"  "cjk"         0 | ||||
| 		phpconfutils_extension_with   "jpeg-dir"     "gd"          0 "/usr" | ||||
| 		phpconfutils_extension_with   "png-dir"      "gd"          0 "/usr" | ||||
| 		phpconfutils_extension_with   "xpm-dir"      "xpm"         0 "/usr" | ||||
| 		# enable gd last, so configure can pick up the previous settings | ||||
| 		phpconfutils_extension_with   "gd"           "gd"          0 | ||||
| 	fi | ||||
|  | ||||
| 	# IMAP support | ||||
| 	if use imap ; then | ||||
| 		phpconfutils_extension_with "imap"     "imap" 1 | ||||
| 		phpconfutils_extension_with "imap-ssl" "ssl"  0 | ||||
| 	fi | ||||
|  | ||||
| 	# Interbase/firebird support | ||||
| 	if use interbase ; then | ||||
| 		phpconfutils_extension_with "interbase"	"interbase"	0 "/opt" | ||||
| 	fi | ||||
|  | ||||
| 	if use firebird ; then | ||||
| 		phpconfutils_extension_with	"interbase"	"firebird"	0 "/usr" | ||||
| 	fi | ||||
|  | ||||
| 	# LDAP support | ||||
| 	if use ldap ; then | ||||
| 		if use oci8 ; then | ||||
| 			phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}" | ||||
| 		else | ||||
| 			phpconfutils_extension_with "ldap"      "ldap"      1 | ||||
| 			phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0 | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# MySQL support | ||||
| 	if use mysql ; then | ||||
| 		if use mysqlnd ; then | ||||
| 			phpconfutils_extension_with "mysql"      "mysql" 1 "mysqlnd" | ||||
| 		else | ||||
| 			phpconfutils_extension_with "mysql"      "mysql" 1 "/usr" | ||||
| 		fi | ||||
| 		phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" | ||||
| 	fi | ||||
|  | ||||
| 	# MySQLi support | ||||
| 	if use mysqlnd ; then | ||||
| 		phpconfutils_extension_with "mysqli" "mysqli" 1 "mysqlnd" | ||||
| 	else | ||||
| 		phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config" | ||||
| 	fi | ||||
|  | ||||
| 	# ODBC support | ||||
| 	if use odbc ; then | ||||
| 		phpconfutils_extension_with "unixODBC" "odbc"     1 "/usr" | ||||
| 		phpconfutils_extension_with "adabas"   "adabas"   1 | ||||
| 		phpconfutils_extension_with "birdstep" "birdstep" 1 | ||||
| 		phpconfutils_extension_with "dbmaker"  "dbmaker"  1 | ||||
| 		phpconfutils_extension_with "empress"  "empress"  1 | ||||
| 		if use empress ; then | ||||
| 			phpconfutils_extension_with "empress-bcs" "empress-bcs" 0 | ||||
| 		fi | ||||
| 		phpconfutils_extension_with "esoob"   "esoob" 1 | ||||
| 		# Needed to run conftest for IBM DB2 | ||||
| 		[[ -n ${DB2_HOME} ]] && export LD_LIBRARY_PATH="${DB2_HOME}/`get_libdir`" | ||||
| 		phpconfutils_extension_with "ibm-db2" "db2"   1 "${DB2_HOME}" | ||||
| 		phpconfutils_extension_with "sapdb"   "sapdb" 1 | ||||
| 		phpconfutils_extension_with "solid"   "solid" 1 | ||||
| 	fi | ||||
|  | ||||
| 	if use iodbc ; then | ||||
| 		phpconfutils_extension_with "iodbc"   "iodbc" 1 "/usr" | ||||
| 	fi | ||||
|  | ||||
| 	# Oracle support | ||||
| 	phpconfutils_extension_with "oci8" "oci8" 1 | ||||
| 	if use oci8-instant-client ; then | ||||
| 		OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \ | ||||
| 			sed -e 's|dev-db/oracle-instantclient-basic-||g' | \ | ||||
| 			sed -e 's|-r.*||g')" | ||||
|  | ||||
| 		phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \ | ||||
| 			"instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib" | ||||
| 	fi | ||||
|  | ||||
| 	# PDO support | ||||
| 	if use pdo ; then | ||||
| 		phpconfutils_extension_with "pdo-dblib"  "mssql"    1 | ||||
| 		if use mysqlnd ; then | ||||
| 			phpconfutils_extension_with "pdo-mysql"  "mysql"    1 "mysqlnd" | ||||
| 		else | ||||
| 			phpconfutils_extension_with "pdo-mysql"  "mysql"    1 "/usr" | ||||
| 		fi | ||||
| 		phpconfutils_extension_with "pdo-pgsql"  "postgres"	1 | ||||
| 		phpconfutils_extension_with "pdo-sqlite" "sqlite"   1 "/usr" | ||||
| 		phpconfutils_extension_with "pdo-odbc"   "odbc"     1 "unixODBC,/usr" | ||||
| 		if use oci8 ; then | ||||
| 			phpconfutils_extension_with "pdo-oci" "oci8" 1 | ||||
| 		fi | ||||
| 		if use oci8-instant-client ; then | ||||
| 			phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \ | ||||
| 				"instantclient,/usr,${OCI8IC_PKG}" | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# readline/libedit support | ||||
| 	phpconfutils_extension_with "readline" "readline" 0 | ||||
| 	phpconfutils_extension_with "libedit"  "libedit"  0 | ||||
|  | ||||
| 	# Session support | ||||
| 	if use session ; then | ||||
| 		phpconfutils_extension_with "mm" "sharedmem" 0 | ||||
| 	else | ||||
| 		phpconfutils_extension_disable "session" "session" 0 | ||||
| 	fi | ||||
|  | ||||
| 	if use pic ; then | ||||
| 		my_conf="${my_conf} --with-pic" | ||||
| 	fi | ||||
|  | ||||
| 	# we use the system copy of pcre | ||||
| 	# --with-pcre-regex affects ext/pcre | ||||
| 	# --with-pcre-dir affects ext/filter and ext/zip | ||||
| 	my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" | ||||
|  | ||||
| 	# Catch CFLAGS problems | ||||
| 	php_check_cflags | ||||
|  | ||||
| 	# Support user-passed configuration parameters | ||||
| 	my_conf="${my_conf} ${EXTRA_ECONF:-}" | ||||
|  | ||||
| 	# Support the Apache2 extras, they must be set globally for all | ||||
| 	# SAPIs to work correctly, especially for external PHP extensions | ||||
|  | ||||
| 	mkdir -p "${WORKDIR}/sapis-build" | ||||
| 	for one_sapi in $SAPIS ; do | ||||
| 		use "${one_sapi}" || continue | ||||
| 		php_set_ini_dir "${one_sapi}" | ||||
|  | ||||
| 		cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}" | ||||
| 		cd "${WORKDIR}/sapis-build/${one_sapi}" | ||||
|  | ||||
| 		sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} | ||||
| 			--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}" | ||||
|  | ||||
| 		for sapi in $SAPIS ; do | ||||
| 			case "$sapi" in | ||||
| 				cli|cgi|embed|fpm) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf="${sapi_conf} --enable-${sapi}" | ||||
| 					else | ||||
| 						sapi_conf="${sapi_conf} --disable-${sapi}" | ||||
| 					fi | ||||
| 					;; | ||||
|  | ||||
| 				apache2) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" | ||||
| 					else | ||||
| 						sapi_conf="${sapi_conf} --without-apxs2" | ||||
| 					fi | ||||
| 					;; | ||||
| 			esac | ||||
| 		done | ||||
|  | ||||
| 		econf ${sapi_conf} | ||||
| 	done | ||||
| } | ||||
| @@ -1,280 +0,0 @@ | ||||
| # Copyright 1999-2010 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v1.eblit,v 1.8 2010/10/24 11:48:42 mabi Exp $ | ||||
|  | ||||
| eblit-php-src_configure() { | ||||
| 	PHP_DESTDIR="/usr/$(get_libdir)/php${PHP_MV}" | ||||
|  | ||||
| 	# This is a global variable and should be in caps. It isn't because the | ||||
| 	# phpconfutils eclass relies on exactly this name... | ||||
| 	# for --with-libdir see bug #327025 | ||||
| 	my_conf=" | ||||
| 		--prefix="${PHP_DESTDIR}" | ||||
| 		--mandir="${PHP_DESTDIR}"/man | ||||
| 		--infodir="${PHP_DESTDIR}"/info | ||||
| 		--libdir="${PHP_DESTDIR}"/lib | ||||
| 		--with-libdir=$(get_libdir) | ||||
| 		--without-pear | ||||
| 		$(use_enable threads maintainer-zts)" | ||||
|  | ||||
| 	phpconfutils_init | ||||
|  | ||||
| 	#                             extension	      USE flag        shared | ||||
| 	phpconfutils_extension_enable  "bcmath"       "bcmath"           1 | ||||
| 	phpconfutils_extension_with    "bz2"          "bzip2"            1 | ||||
| 	phpconfutils_extension_enable  "calendar"     "calendar"         1 | ||||
| 	phpconfutils_extension_disable "ctype"        "ctype"            0 | ||||
| 	phpconfutils_extension_with    "curl"         "curl"             1 | ||||
| 	phpconfutils_extension_with    "curlwrappers" "curlwrappers"     0 | ||||
| 	phpconfutils_extension_disable "dom"          "xml"              0 | ||||
| 	phpconfutils_extension_with    "enchant"      "enchant"          1 "/usr" | ||||
| 	phpconfutils_extension_enable  "exif"         "exif"             1 | ||||
| 	phpconfutils_extension_disable "fileinfo"     "fileinfo"         1 | ||||
| 	phpconfutils_extension_disable "filter"       "filter"           0 | ||||
| 	phpconfutils_extension_enable  "ftp"          "ftp"              1 | ||||
| 	phpconfutils_extension_with    "gettext"      "nls"              1 | ||||
| 	phpconfutils_extension_with    "gmp"          "gmp"              1 | ||||
| 	phpconfutils_extension_disable "hash"         "hash"             0 | ||||
| 	phpconfutils_extension_without "iconv"        "iconv"            0 | ||||
| 	phpconfutils_extension_enable  "intl"         "intl"             1 | ||||
| 	phpconfutils_extension_disable "ipv6"         "ipv6"             0 | ||||
| 	phpconfutils_extension_disable "json"         "json"             0 | ||||
| 	phpconfutils_extension_with    "kerberos"     "kerberos"         0 "/usr" | ||||
| 	phpconfutils_extension_disable "libxml"       "xml"              0 | ||||
| 	phpconfutils_extension_enable  "mbstring"     "unicode"          1 | ||||
| 	phpconfutils_extension_with    "mcrypt"       "crypt"            1 | ||||
| 	phpconfutils_extension_with    "mssql"        "mssql"            1 | ||||
| 	phpconfutils_extension_with    "onig"         "unicode"          0 "/usr" | ||||
| 	phpconfutils_extension_with    "openssl"      "ssl"              0 | ||||
| 	phpconfutils_extension_with    "openssl-dir"  "ssl"              0 "/usr" | ||||
| 	phpconfutils_extension_enable  "pcntl"        "pcntl"            1 | ||||
| 	phpconfutils_extension_disable "phar"         "phar"             1 | ||||
| 	phpconfutils_extension_disable "pdo"          "pdo"              0 | ||||
| 	phpconfutils_extension_with    "pgsql"        "postgres"         1 | ||||
| 	phpconfutils_extension_disable "posix"        "posix"            0 | ||||
| 	phpconfutils_extension_with    "pspell"       "spell"            1 | ||||
| 	phpconfutils_extension_with    "recode"       "recode"           1 | ||||
| 	phpconfutils_extension_disable "simplexml"    "simplexml"        0 | ||||
| 	phpconfutils_extension_enable  "shmop"        "sharedmem"        0 | ||||
| 	phpconfutils_extension_with    "snmp"         "snmp"             1 | ||||
| 	phpconfutils_extension_enable  "soap"         "soap"             1 | ||||
| 	phpconfutils_extension_enable  "sockets"      "sockets"          1 | ||||
| 	phpconfutils_extension_without "sqlite3"      "sqlite3"          1 "/usr" | ||||
| 	phpconfutils_extension_with    "sybase-ct"    "sybase-ct"        1 | ||||
| 	phpconfutils_extension_enable  "sysvmsg"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_enable  "sysvsem"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_enable  "sysvshm"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_with    "tidy"         "tidy"             1 | ||||
| 	phpconfutils_extension_disable "tokenizer"    "tokenizer"        0 | ||||
| 	phpconfutils_extension_enable  "wddx"         "wddx"             1 | ||||
| 	phpconfutils_extension_disable "xml"          "xml"              0 | ||||
| 	phpconfutils_extension_disable "xmlreader"    "xmlreader"        0 | ||||
| 	phpconfutils_extension_disable "xmlwriter"    "xmlwriter"        0 | ||||
| 	phpconfutils_extension_with    "xmlrpc"       "xmlrpc"           1 | ||||
| 	phpconfutils_extension_with    "xsl"          "xsl"              1 | ||||
| 	phpconfutils_extension_enable  "zip"          "zip"              1 | ||||
| 	phpconfutils_extension_with    "zlib"         "zlib"             1 | ||||
| 	phpconfutils_extension_enable  "debug"        "debug"            0 | ||||
|  | ||||
| 	# DBA support | ||||
| 	if use cdb || use berkdb || use flatfile || use gdbm || use inifile \ | ||||
| 		|| use qdbm ; then | ||||
| 		my_conf="${my_conf} --enable-dba${shared}" | ||||
| 	fi | ||||
|  | ||||
| 	# DBA drivers support | ||||
| 	phpconfutils_extension_with   "cdb"        "cdb"      0 | ||||
| 	phpconfutils_extension_with   "db4"        "berkdb"   0 | ||||
| 	phpconfutils_extension_enable "flatfile"   "flatfile" 0 | ||||
| 	phpconfutils_extension_with   "gdbm"       "gdbm"     0 | ||||
| 	phpconfutils_extension_enable "inifile"    "inifile"  0 | ||||
| 	phpconfutils_extension_with   "qdbm"       "qdbm"     0 | ||||
|  | ||||
| 	# Support for the GD graphics library | ||||
| 	if use gd-external ; then | ||||
| 		phpconfutils_extension_with   "freetype-dir" "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_with   "t1lib"        "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_enable "gd-jis-conv"  "cjk"         0 | ||||
| 		phpconfutils_extension_with   "gd"           "gd-external" 1 "/usr" | ||||
| 	else | ||||
| 		phpconfutils_extension_with   "freetype-dir" "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_with   "t1lib"        "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_enable "gd-jis-conv"  "cjk"         0 | ||||
| 		phpconfutils_extension_with   "jpeg-dir"     "gd"          0 "/usr" | ||||
| 		phpconfutils_extension_with   "png-dir"      "gd"          0 "/usr" | ||||
| 		phpconfutils_extension_with   "xpm-dir"      "xpm"         0 "/usr" | ||||
| 		# enable gd last, so configure can pick up the previous settings | ||||
| 		phpconfutils_extension_with   "gd"           "gd"          0 | ||||
| 	fi | ||||
|  | ||||
| 	# IMAP support | ||||
| 	if use imap ; then | ||||
| 		phpconfutils_extension_with "imap"     "imap" 1 | ||||
| 		phpconfutils_extension_with "imap-ssl" "ssl"  0 | ||||
| 	fi | ||||
|  | ||||
| 	phpconfutils_extension_with "interbase"	"interbase"	0 "/opt" | ||||
| 	phpconfutils_extension_with	"interbase"	"firebird"	0 "/usr" | ||||
|  | ||||
| 	# LDAP support | ||||
| 	if use ldap ; then | ||||
| 		if use oci8 ; then | ||||
| 			phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}" | ||||
| 		else | ||||
| 			phpconfutils_extension_with "ldap"      "ldap"      1 | ||||
| 			phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0 | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# MySQL support | ||||
| 	if use mysql ; then | ||||
| 		if use mysqlnd ; then | ||||
| 			phpconfutils_extension_with "mysql"      "mysql" 1 "mysqlnd" | ||||
| 		else | ||||
| 			phpconfutils_extension_with "mysql"      "mysql" 1 "/usr" | ||||
| 		fi | ||||
| 		phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" | ||||
| 	fi | ||||
|  | ||||
| 	# MySQLi support | ||||
| 	if use mysqlnd ; then | ||||
| 		phpconfutils_extension_with "mysqli" "mysqli" 1 "mysqlnd" | ||||
| 	else | ||||
| 		phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config" | ||||
| 	fi | ||||
|  | ||||
| 	# ODBC support | ||||
| 	if use odbc ; then | ||||
| 		phpconfutils_extension_with "unixODBC" "odbc"     1 "/usr" | ||||
| 		phpconfutils_extension_with "adabas"   "adabas"   1 | ||||
| 		phpconfutils_extension_with "birdstep" "birdstep" 1 | ||||
| 		phpconfutils_extension_with "dbmaker"  "dbmaker"  1 | ||||
| 		phpconfutils_extension_with "empress"  "empress"  1 | ||||
| 		if use empress ; then | ||||
| 			phpconfutils_extension_with "empress-bcs" "empress-bcs" 0 | ||||
| 		fi | ||||
| 		phpconfutils_extension_with "esoob"   "esoob" 1 | ||||
| 		# Needed to run conftest for IBM DB2 | ||||
| 		[[ -n ${DB2_HOME} ]] && export LD_LIBRARY_PATH="${DB2_HOME}/`get_libdir`" | ||||
| 		phpconfutils_extension_with "ibm-db2" "db2"   1 "${DB2_HOME}" | ||||
| 		phpconfutils_extension_with "sapdb"   "sapdb" 1 | ||||
| 		phpconfutils_extension_with "solid"   "solid" 1 | ||||
| 	fi | ||||
|  | ||||
| 	if use iodbc ; then | ||||
| 		phpconfutils_extension_with "iodbc"   "iodbc" 1 "/usr" | ||||
| 	fi | ||||
|  | ||||
| 	# Oracle support | ||||
| 	phpconfutils_extension_with "oci8" "oci8" 1 | ||||
| 	if use oci8-instant-client ; then | ||||
| 		OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \ | ||||
| 			sed -e 's|dev-db/oracle-instantclient-basic-||g' | \ | ||||
| 			sed -e 's|-r.*||g')" | ||||
|  | ||||
| 		phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \ | ||||
| 			"instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib" | ||||
| 	fi | ||||
|  | ||||
| 	# PDO support | ||||
| 	if use pdo ; then | ||||
| 		phpconfutils_extension_with "pdo-dblib"  "mssql"    1 | ||||
| 		if use mysqlnd ; then | ||||
| 			phpconfutils_extension_with "pdo-mysql"  "mysql"    1 "mysqlnd" | ||||
| 		else | ||||
| 			phpconfutils_extension_with "pdo-mysql"  "mysql"    1 "/usr" | ||||
| 		fi | ||||
| 		phpconfutils_extension_with "pdo-pgsql"  "postgres"	1 | ||||
| 		phpconfutils_extension_with "pdo-sqlite" "sqlite3"   1 "/usr" | ||||
| 		phpconfutils_extension_with "pdo-odbc"   "odbc"     1 "unixODBC,/usr" | ||||
| 		if use oci8 ; then | ||||
| 			phpconfutils_extension_with "pdo-oci" "oci8" 1 | ||||
| 		fi | ||||
| 		if use oci8-instant-client ; then | ||||
| 			phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \ | ||||
| 				"instantclient,/usr,${OCI8IC_PKG}" | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# readline/libedit support | ||||
| 	phpconfutils_extension_with "readline" "readline" 0 | ||||
| 	phpconfutils_extension_with "libedit"  "libedit"  0 | ||||
|  | ||||
| 	# Session support | ||||
| 	if use session ; then | ||||
| 		phpconfutils_extension_with "mm" "sharedmem" 0 | ||||
| 	else | ||||
| 		phpconfutils_extension_disable "session" "session" 0 | ||||
| 	fi | ||||
|  | ||||
| 	# SQLite support | ||||
| 	if use sqlite ; then | ||||
| 		phpconfutils_extension_with   "sqlite"      "sqlite"  0 "/usr" | ||||
| 		phpconfutils_extension_enable "sqlite-utf8" "unicode" 0 | ||||
| 	else | ||||
| 		phpconfutils_extension_without "sqlite" "sqlite" 0 | ||||
| 	fi | ||||
|  | ||||
| 	if use pic ; then | ||||
| 		my_conf="${my_conf} --with-pic" | ||||
| 	fi | ||||
|  | ||||
| 	if has fpm ${IUSE//+} && use fpm ; then | ||||
| 		my_conf="${my_conf} --with-libevent-dir=/usr/`get_libdir`" | ||||
| 	fi | ||||
|  | ||||
|  | ||||
| 	# we use the system copy of pcre | ||||
| 	# --with-pcre-regex affects ext/pcre | ||||
| 	# --with-pcre-dir affects ext/filter and ext/zip | ||||
| 	my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" | ||||
|  | ||||
| 	# Catch CFLAGS problems | ||||
| 	php_check_cflags | ||||
|  | ||||
| 	# Support user-passed configuration parameters | ||||
| 	my_conf="${my_conf} ${EXTRA_ECONF:-}" | ||||
|  | ||||
| 	# Support the Apache2 extras, they must be set globally for all | ||||
| 	# SAPIs to work correctly, especially for external PHP extensions | ||||
| 	if use apache2 ; then | ||||
| 		# Concurrent PHP Apache2 modules support | ||||
| 		if use concurrentmodphp ; then | ||||
| 			append-ldflags "-Wl,--version-script=${FILESDIR}/php${PHP_MV}-ldvs" | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	mkdir -p "${WORKDIR}/sapis-build" | ||||
| 	for one_sapi in $SAPIS ; do | ||||
| 		use "${one_sapi}" || continue | ||||
| 		php_set_ini_dir "${one_sapi}" | ||||
|  | ||||
| 		cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}" | ||||
| 		cd "${WORKDIR}/sapis-build/${one_sapi}" | ||||
|  | ||||
| 		sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} | ||||
| 			--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}" | ||||
|  | ||||
| 		for sapi in $SAPIS ; do | ||||
| 			case "$sapi" in | ||||
| 				cli|cgi|embed|fpm) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf="${sapi_conf} --enable-${sapi}" | ||||
| 					else | ||||
| 						sapi_conf="${sapi_conf} --disable-${sapi}" | ||||
| 					fi | ||||
| 					;; | ||||
|  | ||||
| 				apache2) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" | ||||
| 					else | ||||
| 						sapi_conf="${sapi_conf} --without-apxs2" | ||||
| 					fi | ||||
| 					;; | ||||
| 			esac | ||||
| 		done | ||||
|  | ||||
| 		econf ${sapi_conf} | ||||
| 	done | ||||
| } | ||||
| @@ -1,276 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v2.eblit,v 1.5 2011/01/05 11:23:16 mabi Exp $ | ||||
|  | ||||
| eblit-php-src_configure() { | ||||
| 	PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}" | ||||
|  | ||||
| 	# This is a global variable and should be in caps. It isn't because the | ||||
| 	# phpconfutils eclass relies on exactly this name... | ||||
| 	# for --with-libdir see bug #327025 | ||||
| 	my_conf=" | ||||
| 		--prefix="${PHP_DESTDIR}" | ||||
| 		--mandir="${PHP_DESTDIR}"/man | ||||
| 		--infodir="${PHP_DESTDIR}"/info | ||||
| 		--libdir="${PHP_DESTDIR}"/lib | ||||
| 		--with-libdir=$(get_libdir) | ||||
| 		--without-pear | ||||
| 		$(use_enable threads maintainer-zts)" | ||||
|  | ||||
| 	phpconfutils_init | ||||
|  | ||||
| 	#                             extension	      USE flag        shared | ||||
| 	phpconfutils_extension_enable  "bcmath"       "bcmath"           1 | ||||
| 	phpconfutils_extension_with    "bz2"          "bzip2"            1 | ||||
| 	phpconfutils_extension_enable  "calendar"     "calendar"         1 | ||||
| 	phpconfutils_extension_disable "ctype"        "ctype"            0 | ||||
| 	phpconfutils_extension_with    "curl"         "curl"             1 | ||||
| 	phpconfutils_extension_with    "curlwrappers" "curlwrappers"     0 | ||||
| 	phpconfutils_extension_disable "dom"          "xml"              0 | ||||
| 	phpconfutils_extension_with    "enchant"      "enchant"          1 "/usr" | ||||
| 	phpconfutils_extension_enable  "exif"         "exif"             1 | ||||
| 	phpconfutils_extension_disable "fileinfo"     "fileinfo"         1 | ||||
| 	phpconfutils_extension_disable "filter"       "filter"           0 | ||||
| 	phpconfutils_extension_enable  "ftp"          "ftp"              1 | ||||
| 	phpconfutils_extension_with    "gettext"      "nls"              1 | ||||
| 	phpconfutils_extension_with    "gmp"          "gmp"              1 | ||||
| 	phpconfutils_extension_disable "hash"         "hash"             0 | ||||
| 	phpconfutils_extension_with    "mhash"        "mhash"            0 | ||||
| 	phpconfutils_extension_without "iconv"        "iconv"            0 | ||||
| 	phpconfutils_extension_enable  "intl"         "intl"             1 | ||||
| 	phpconfutils_extension_disable "ipv6"         "ipv6"             0 | ||||
| 	phpconfutils_extension_disable "json"         "json"             0 | ||||
| 	phpconfutils_extension_with    "kerberos"     "kerberos"         0 "/usr" | ||||
| 	phpconfutils_extension_disable "libxml"       "xml"              0 | ||||
| 	phpconfutils_extension_enable  "mbstring"     "unicode"          1 | ||||
| 	phpconfutils_extension_with    "mcrypt"       "crypt"            1 | ||||
| 	phpconfutils_extension_with    "mssql"        "mssql"            1 | ||||
| 	phpconfutils_extension_with    "onig"         "unicode"          0 "/usr" | ||||
| 	phpconfutils_extension_with    "openssl"      "ssl"              0 | ||||
| 	phpconfutils_extension_with    "openssl-dir"  "ssl"              0 "/usr" | ||||
| 	phpconfutils_extension_enable  "pcntl"        "pcntl"            1 | ||||
| 	phpconfutils_extension_disable "phar"         "phar"             1 | ||||
| 	phpconfutils_extension_disable "pdo"          "pdo"              0 | ||||
| 	phpconfutils_extension_with    "pgsql"        "postgres"         1 | ||||
| 	phpconfutils_extension_disable "posix"        "posix"            0 | ||||
| 	phpconfutils_extension_with    "pspell"       "spell"            1 | ||||
| 	phpconfutils_extension_with    "recode"       "recode"           1 | ||||
| 	phpconfutils_extension_disable "simplexml"    "simplexml"        0 | ||||
| 	phpconfutils_extension_enable  "shmop"        "sharedmem"        0 | ||||
| 	phpconfutils_extension_with    "snmp"         "snmp"             1 | ||||
| 	phpconfutils_extension_enable  "soap"         "soap"             1 | ||||
| 	phpconfutils_extension_enable  "sockets"      "sockets"          1 | ||||
| 	phpconfutils_extension_without "sqlite3"      "sqlite3"          1 "/usr" | ||||
| 	phpconfutils_extension_with    "sybase-ct"    "sybase-ct"        1 "/usr" | ||||
| 	phpconfutils_extension_enable  "sysvmsg"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_enable  "sysvsem"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_enable  "sysvshm"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_with    "tidy"         "tidy"             1 | ||||
| 	phpconfutils_extension_disable "tokenizer"    "tokenizer"        0 | ||||
| 	phpconfutils_extension_enable  "wddx"         "wddx"             1 | ||||
| 	phpconfutils_extension_disable "xml"          "xml"              0 | ||||
| 	phpconfutils_extension_disable "xmlreader"    "xmlreader"        0 | ||||
| 	phpconfutils_extension_disable "xmlwriter"    "xmlwriter"        0 | ||||
| 	phpconfutils_extension_with    "xmlrpc"       "xmlrpc"           1 | ||||
| 	phpconfutils_extension_with    "xsl"          "xsl"              1 | ||||
| 	phpconfutils_extension_enable  "zip"          "zip"              1 | ||||
| 	phpconfutils_extension_with    "zlib"         "zlib"             1 | ||||
| 	phpconfutils_extension_enable  "debug"        "debug"            0 | ||||
|  | ||||
| 	# DBA support | ||||
| 	if use cdb || use berkdb || use flatfile || use gdbm || use inifile \ | ||||
| 		|| use qdbm ; then | ||||
| 		my_conf="${my_conf} --enable-dba${shared}" | ||||
| 	fi | ||||
|  | ||||
| 	# DBA drivers support | ||||
| 	phpconfutils_extension_with   "cdb"        "cdb"      0 | ||||
| 	phpconfutils_extension_with   "db4"        "berkdb"   0 | ||||
| 	phpconfutils_extension_enable "flatfile"   "flatfile" 0 | ||||
| 	phpconfutils_extension_with   "gdbm"       "gdbm"     0 | ||||
| 	phpconfutils_extension_enable "inifile"    "inifile"  0 | ||||
| 	phpconfutils_extension_with   "qdbm"       "qdbm"     0 | ||||
|  | ||||
| 	# Support for the GD graphics library | ||||
| 	if use gd-external ; then | ||||
| 		phpconfutils_extension_with   "freetype-dir" "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_with   "t1lib"        "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_enable "gd-jis-conv"  "cjk"         0 | ||||
| 		phpconfutils_extension_with   "gd"           "gd-external" 1 "/usr" | ||||
| 	else | ||||
| 		phpconfutils_extension_with   "freetype-dir" "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_with   "t1lib"        "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_enable "gd-jis-conv"  "cjk"         0 | ||||
| 		phpconfutils_extension_with   "jpeg-dir"     "gd"          0 "/usr" | ||||
| 		phpconfutils_extension_with   "png-dir"      "gd"          0 "/usr" | ||||
| 		phpconfutils_extension_with   "xpm-dir"      "xpm"         0 "/usr" | ||||
| 		# enable gd last, so configure can pick up the previous settings | ||||
| 		phpconfutils_extension_with   "gd"           "gd"          0 | ||||
| 	fi | ||||
|  | ||||
| 	# IMAP support | ||||
| 	if use imap ; then | ||||
| 		phpconfutils_extension_with "imap"     "imap" 1 | ||||
| 		phpconfutils_extension_with "imap-ssl" "ssl"  0 | ||||
| 	fi | ||||
|  | ||||
| 	# Interbase/firebird support | ||||
| 	if use interbase ; then | ||||
| 		phpconfutils_extension_with "interbase"	"interbase"	0 "/opt" | ||||
| 	fi | ||||
|  | ||||
| 	if use firebird ; then | ||||
| 		phpconfutils_extension_with	"interbase"	"firebird"	0 "/usr" | ||||
| 	fi | ||||
|  | ||||
| 	# LDAP support | ||||
| 	if use ldap ; then | ||||
| 		if use oci8 ; then | ||||
| 			phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}" | ||||
| 		else | ||||
| 			phpconfutils_extension_with "ldap"      "ldap"      1 | ||||
| 			phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0 | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# MySQL support | ||||
| 	if use mysql ; then | ||||
| 		if use mysqlnd ; then | ||||
| 			phpconfutils_extension_with "mysql"      "mysql" 1 "mysqlnd" | ||||
| 		else | ||||
| 			phpconfutils_extension_with "mysql"      "mysql" 1 "/usr" | ||||
| 		fi | ||||
| 		phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" | ||||
| 	fi | ||||
|  | ||||
| 	# MySQLi support | ||||
| 	if use mysqlnd ; then | ||||
| 		phpconfutils_extension_with "mysqli" "mysqli" 1 "mysqlnd" | ||||
| 	else | ||||
| 		phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config" | ||||
| 	fi | ||||
|  | ||||
| 	# ODBC support | ||||
| 	if use odbc ; then | ||||
| 		phpconfutils_extension_with "unixODBC" "odbc"     1 "/usr" | ||||
| 		phpconfutils_extension_with "adabas"   "adabas"   1 | ||||
| 		phpconfutils_extension_with "birdstep" "birdstep" 1 | ||||
| 		phpconfutils_extension_with "dbmaker"  "dbmaker"  1 | ||||
| 		phpconfutils_extension_with "empress"  "empress"  1 | ||||
| 		if use empress ; then | ||||
| 			phpconfutils_extension_with "empress-bcs" "empress-bcs" 0 | ||||
| 		fi | ||||
| 		phpconfutils_extension_with "esoob"   "esoob" 1 | ||||
| 		# Needed to run conftest for IBM DB2 | ||||
| 		[[ -n ${DB2_HOME} ]] && export LD_LIBRARY_PATH="${DB2_HOME}/`get_libdir`" | ||||
| 		phpconfutils_extension_with "ibm-db2" "db2"   1 "${DB2_HOME}" | ||||
| 		phpconfutils_extension_with "sapdb"   "sapdb" 1 | ||||
| 		phpconfutils_extension_with "solid"   "solid" 1 | ||||
| 	fi | ||||
|  | ||||
| 	if use iodbc ; then | ||||
| 		phpconfutils_extension_with "iodbc"   "iodbc" 1 "/usr" | ||||
| 	fi | ||||
|  | ||||
| 	# Oracle support | ||||
| 	phpconfutils_extension_with "oci8" "oci8" 1 | ||||
| 	if use oci8-instant-client ; then | ||||
| 		OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \ | ||||
| 			sed -e 's|dev-db/oracle-instantclient-basic-||g' | \ | ||||
| 			sed -e 's|-r.*||g')" | ||||
|  | ||||
| 		phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \ | ||||
| 			"instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib" | ||||
| 	fi | ||||
|  | ||||
| 	# PDO support | ||||
| 	if use pdo ; then | ||||
| 		phpconfutils_extension_with "pdo-dblib"  "mssql"    1 | ||||
| 		if use mysqlnd ; then | ||||
| 			phpconfutils_extension_with "pdo-mysql"  "mysql"    1 "mysqlnd" | ||||
| 		else | ||||
| 			phpconfutils_extension_with "pdo-mysql"  "mysql"    1 "/usr" | ||||
| 		fi | ||||
| 		phpconfutils_extension_with "pdo-pgsql"  "postgres"	1 | ||||
| 		phpconfutils_extension_with "pdo-sqlite" "sqlite3"   1 "/usr" | ||||
| 		phpconfutils_extension_with "pdo-odbc"   "odbc"     1 "unixODBC,/usr" | ||||
| 		if use oci8 ; then | ||||
| 			phpconfutils_extension_with "pdo-oci" "oci8" 1 | ||||
| 		fi | ||||
| 		if use oci8-instant-client ; then | ||||
| 			phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \ | ||||
| 				"instantclient,/usr,${OCI8IC_PKG}" | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# readline/libedit support | ||||
| 	phpconfutils_extension_with "readline" "readline" 0 | ||||
| 	phpconfutils_extension_with "libedit"  "libedit"  0 | ||||
|  | ||||
| 	# Session support | ||||
| 	if use session ; then | ||||
| 		phpconfutils_extension_with "mm" "sharedmem" 0 | ||||
| 	else | ||||
| 		phpconfutils_extension_disable "session" "session" 0 | ||||
| 	fi | ||||
|  | ||||
| 	# SQLite support | ||||
| 	if use sqlite ; then | ||||
| 		phpconfutils_extension_with   "sqlite"      "sqlite"  0 "/usr" | ||||
| 		phpconfutils_extension_enable "sqlite-utf8" "unicode" 0 | ||||
| 	else | ||||
| 		phpconfutils_extension_without "sqlite" "sqlite" 0 | ||||
| 	fi | ||||
|  | ||||
| 	if use pic ; then | ||||
| 		my_conf="${my_conf} --with-pic" | ||||
| 	fi | ||||
|  | ||||
| 	# we use the system copy of pcre | ||||
| 	# --with-pcre-regex affects ext/pcre | ||||
| 	# --with-pcre-dir affects ext/filter and ext/zip | ||||
| 	my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" | ||||
|  | ||||
| 	# Catch CFLAGS problems | ||||
| 	php_check_cflags | ||||
|  | ||||
| 	# Support user-passed configuration parameters | ||||
| 	my_conf="${my_conf} ${EXTRA_ECONF:-}" | ||||
|  | ||||
| 	# Support the Apache2 extras, they must be set globally for all | ||||
| 	# SAPIs to work correctly, especially for external PHP extensions | ||||
|  | ||||
| 	mkdir -p "${WORKDIR}/sapis-build" | ||||
| 	for one_sapi in $SAPIS ; do | ||||
| 		use "${one_sapi}" || continue | ||||
| 		php_set_ini_dir "${one_sapi}" | ||||
|  | ||||
| 		cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}" | ||||
| 		cd "${WORKDIR}/sapis-build/${one_sapi}" | ||||
|  | ||||
| 		sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} | ||||
| 			--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}" | ||||
|  | ||||
| 		for sapi in $SAPIS ; do | ||||
| 			case "$sapi" in | ||||
| 				cli|cgi|embed|fpm) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf="${sapi_conf} --enable-${sapi}" | ||||
| 					else | ||||
| 						sapi_conf="${sapi_conf} --disable-${sapi}" | ||||
| 					fi | ||||
| 					;; | ||||
|  | ||||
| 				apache2) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" | ||||
| 					else | ||||
| 						sapi_conf="${sapi_conf} --without-apxs2" | ||||
| 					fi | ||||
| 					;; | ||||
| 			esac | ||||
| 		done | ||||
|  | ||||
| 		econf ${sapi_conf} | ||||
| 	done | ||||
| } | ||||
| @@ -1,260 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v3.eblit,v 1.5 2011/09/16 07:02:57 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-src_configure() { | ||||
|     addpredict /usr/share/snmp/mibs/.index | ||||
|  | ||||
| 	PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}" | ||||
|  | ||||
| 	# This is a global variable and should be in caps. It isn't because the | ||||
| 	# phpconfutils eclass relies on exactly this name... | ||||
| 	# for --with-libdir see bug #327025 | ||||
| 	my_conf=" | ||||
| 		--prefix="${PHP_DESTDIR}" | ||||
| 		--mandir="${PHP_DESTDIR}"/man | ||||
| 		--infodir="${PHP_DESTDIR}"/info | ||||
| 		--libdir="${PHP_DESTDIR}"/lib | ||||
| 		--with-libdir=$(get_libdir) | ||||
| 		--without-pear | ||||
| 		$(use_enable threads maintainer-zts)" | ||||
|  | ||||
| 	#                             extension	      USE flag        shared | ||||
| 	my_conf+=" | ||||
| 	$(use_enable bcmath bcmath ) | ||||
| 	$(use_with bzip2 bz2 ) | ||||
| 	$(use_enable calendar calendar ) | ||||
| 	$(use_enable ctype ctype ) | ||||
| 	$(use_with curl curl ) | ||||
| 	$(use_with curlwrappers curlwrappers ) | ||||
| 	$(use_enable xml dom ) | ||||
| 	$(use_with enchant enchant /usr) | ||||
| 	$(use_enable exif exif ) | ||||
| 	$(use_enable fileinfo fileinfo ) | ||||
| 	$(use_enable filter filter ) | ||||
| 	$(use_enable ftp ftp ) | ||||
| 	$(use_with nls gettext ) | ||||
| 	$(use_with gmp gmp ) | ||||
| 	$(use_enable hash hash ) | ||||
| 	$(use_with mhash mhash ) | ||||
| 	$(use_with iconv iconv ) | ||||
| 	$(use_enable intl intl ) | ||||
| 	$(use_enable ipv6 ipv6 ) | ||||
| 	$(use_enable json json ) | ||||
| 	$(use_with kerberos kerberos /usr) | ||||
| 	$(use_enable xml libxml ) | ||||
| 	$(use_enable unicode mbstring ) | ||||
| 	$(use_with crypt mcrypt ) | ||||
| 	$(use_with mssql mssql ) | ||||
| 	$(use_with unicode onig /usr) | ||||
| 	$(use_with ssl openssl ) | ||||
| 	$(use_with ssl openssl-dir /usr) | ||||
| 	$(use_enable pcntl pcntl ) | ||||
| 	$(use_enable phar phar ) | ||||
| 	$(use_enable pdo pdo ) | ||||
| 	$(use_with postgres pgsql ) | ||||
| 	$(use_enable posix posix ) | ||||
| 	$(use_with spell pspell ) | ||||
| 	$(use_with recode recode ) | ||||
| 	$(use_enable simplexml simplexml ) | ||||
| 	$(use_enable sharedmem shmop ) | ||||
| 	$(use_with snmp snmp ) | ||||
| 	$(use_enable soap soap ) | ||||
| 	$(use_enable sockets sockets ) | ||||
| 	$(use_with sqlite3 sqlite3 /usr) | ||||
| 	$(use_with sybase-ct sybase-ct /usr) | ||||
| 	$(use_enable sysvipc sysvmsg ) | ||||
| 	$(use_enable sysvipc sysvsem ) | ||||
| 	$(use_enable sysvipc sysvshm ) | ||||
| 	$(use_with tidy tidy ) | ||||
| 	$(use_enable tokenizer tokenizer ) | ||||
| 	$(use_enable wddx wddx ) | ||||
| 	$(use_enable xml xml ) | ||||
| 	$(use_enable xmlreader xmlreader ) | ||||
| 	$(use_enable xmlwriter xmlwriter ) | ||||
| 	$(use_with xmlrpc xmlrpc ) | ||||
| 	$(use_with xsl xsl ) | ||||
| 	$(use_enable zip zip ) | ||||
| 	$(use_with zlib zlib ) | ||||
| 	$(use_enable debug debug )" | ||||
|  | ||||
| 	# DBA support | ||||
| 	if use cdb || use berkdb || use flatfile || use gdbm || use inifile \ | ||||
| 		|| use qdbm ; then | ||||
| 		my_conf="${my_conf} --enable-dba${shared}" | ||||
| 	fi | ||||
|  | ||||
| 	# DBA drivers support | ||||
| 	my_conf+=" | ||||
| 	$(use_with cdb cdb ) | ||||
| 	$(use_with berkdb db4 ) | ||||
| 	$(use_enable flatfile flatfile ) | ||||
| 	$(use_with gdbm gdbm ) | ||||
| 	$(use_enable inifile inifile ) | ||||
| 	$(use_with qdbm qdbm )" | ||||
|  | ||||
| 	# Support for the GD graphics library | ||||
| 	my_conf+=" | ||||
| 	$(use_with truetype freetype-dir /usr) | ||||
| 	$(use_with truetype t1lib /usr) | ||||
| 	$(use_enable cjk gd-jis-conv ) | ||||
| 	$(use_with gd jpeg-dir /usr) | ||||
| 	$(use_with gd png-dir /usr) | ||||
| 	$(use_with xpm xpm-dir /usr)" | ||||
| 	# enable gd last, so configure can pick up the previous settings | ||||
| 	my_conf+=" | ||||
| 	$(use_with gd gd )" | ||||
|  | ||||
| 	# IMAP support | ||||
| 	if use imap ; then | ||||
| 	    my_conf+=" | ||||
| 		$(use_with imap imap ) | ||||
| 		$(use_with ssl imap-ssl )" | ||||
| 	fi | ||||
|  | ||||
| 	# Interbase/firebird support | ||||
| 	 | ||||
| 	if use firebird ; then | ||||
| 	    my_conf+=" | ||||
| 		$(use_with firebird interbase /usr)" | ||||
| 	fi | ||||
|  | ||||
| 	# LDAP support | ||||
| 	if use ldap ; then | ||||
| 	    my_conf+=" | ||||
| 		$(use_with ldap ldap ) | ||||
| 		$(use_with ldap-sasl ldap-sasl )" | ||||
| 	fi | ||||
|  | ||||
| 	# MySQL support | ||||
| 	if use mysql ; then | ||||
| 		if use mysqlnd ; then | ||||
| 	        my_conf+=" | ||||
| 			$(use_with mysql mysql mysqlnd)" | ||||
| 		else | ||||
| 	        my_conf+=" | ||||
| 			$(use_with mysql mysql /usr)" | ||||
| 		fi | ||||
| 	    my_conf+=" | ||||
| 		$(use_with mysql mysql-sock /var/run/mysqld/mysqld.sock)" | ||||
| 	fi | ||||
|  | ||||
| 	# MySQLi support | ||||
| 	if use mysqlnd ; then | ||||
| 	    my_conf+=" | ||||
| 		$(use_with mysqli mysqli mysqlnd)" | ||||
| 	else | ||||
| 	    my_conf+=" | ||||
| 		$(use_with mysqli mysqli /usr/bin/mysql_config)" | ||||
| 	fi | ||||
|  | ||||
| 	# ODBC support | ||||
| 	if use odbc ; then | ||||
| 	    my_conf+=" | ||||
| 		$(use_with odbc unixODBC /usr)" | ||||
| 	fi | ||||
|  | ||||
| 	if use iodbc ; then | ||||
| 	    my_conf+=" | ||||
| 		$(use_with iodbc iodbc /usr)" | ||||
| 	fi | ||||
|  | ||||
| 	# Oracle support | ||||
| 	if use oci8-instant-client ; then | ||||
| 		OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \ | ||||
| 			sed -e 's|dev-db/oracle-instantclient-basic-||g' | \ | ||||
| 			sed -e 's|-r.*||g')" | ||||
|      | ||||
| 	    my_conf+=" | ||||
| 		$(use_with oci8-instant-client oci8 "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib")" | ||||
| 	fi | ||||
|  | ||||
| 	# PDO support | ||||
| 	if use pdo ; then | ||||
| 	    my_conf+=" | ||||
| 		$(use_with mssql pdo-dblib )" | ||||
| 		if use mysqlnd ; then | ||||
| 	        my_conf+=" | ||||
| 			$(use_with mysql pdo-mysql mysqlnd)" | ||||
| 		else | ||||
| 	        my_conf+=" | ||||
| 			$(use_with mysql pdo-mysql /usr)" | ||||
| 		fi | ||||
| 	    my_conf+=" | ||||
| 		$(use_with postgres pdo-pgsql ) | ||||
| 		$(use_with sqlite3 pdo-sqlite /usr) | ||||
| 		$(use_with odbc pdo-odbc unixODBC,/usr)" | ||||
| 		if use oci8-instant-client ; then | ||||
| 	        my_conf+=" | ||||
| 			$(use_with oci8-instant-client pdo-oci "instantclient,/usr,${OCI8IC_PKG}" )" | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# readline/libedit support | ||||
| 	my_conf+=" | ||||
| 	$(use_with readline readline ) | ||||
| 	$(use_with libedit libedit )" | ||||
|  | ||||
| 	# Session support | ||||
| 	if use session ; then | ||||
| 	    my_conf+=" | ||||
| 		$(use_with sharedmem mm )" | ||||
| 	else | ||||
| 	    my_conf+=" | ||||
| 		$(use_enable session session )" | ||||
| 	fi | ||||
|  | ||||
| 	if use pic ; then | ||||
| 		my_conf="${my_conf} --with-pic" | ||||
| 	fi | ||||
|  | ||||
| 	# we use the system copy of pcre | ||||
| 	# --with-pcre-regex affects ext/pcre | ||||
| 	# --with-pcre-dir affects ext/filter and ext/zip | ||||
| 	my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" | ||||
|  | ||||
| 	# Catch CFLAGS problems | ||||
|     # Fixes bug #14067. | ||||
|     # Changed order to run it in reverse for bug #32022 and #12021. | ||||
|     replace-cpu-flags "k6*" "i586" | ||||
|  | ||||
| 	# Support user-passed configuration parameters | ||||
| 	my_conf="${my_conf} ${EXTRA_ECONF:-}" | ||||
|  | ||||
| 	# Support the Apache2 extras, they must be set globally for all | ||||
| 	# SAPIs to work correctly, especially for external PHP extensions | ||||
|  | ||||
| 	mkdir -p "${WORKDIR}/sapis-build" | ||||
| 	for one_sapi in $SAPIS ; do | ||||
| 		use "${one_sapi}" || continue | ||||
| 		php_set_ini_dir "${one_sapi}" | ||||
|  | ||||
| 		cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}" | ||||
| 		cd "${WORKDIR}/sapis-build/${one_sapi}" | ||||
|  | ||||
| 		sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} | ||||
| 			--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}" | ||||
|  | ||||
| 		for sapi in $SAPIS ; do | ||||
| 			case "$sapi" in | ||||
| 				cli|cgi|embed|fpm) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf="${sapi_conf} --enable-${sapi}" | ||||
| 					else | ||||
| 						sapi_conf="${sapi_conf} --disable-${sapi}" | ||||
| 					fi | ||||
| 					;; | ||||
|  | ||||
| 				apache2) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" | ||||
| 					else | ||||
| 						sapi_conf="${sapi_conf} --without-apxs2" | ||||
| 					fi | ||||
| 					;; | ||||
| 			esac | ||||
| 		done | ||||
|  | ||||
| 		econf ${sapi_conf} | ||||
| 	done | ||||
| } | ||||
| @@ -1,273 +0,0 @@ | ||||
| # Copyright 1999-2010 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v521.eblit,v 1.1 2010/10/08 18:25:10 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-src_configure() { | ||||
| 	export CFLAGS="${CFLAGS} -D_GNU_SOURCE" | ||||
| 	PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}" | ||||
|  | ||||
| 	# This is a global variable and should be in caps. It isn't because the | ||||
| 	# phpconfutils eclass relies on exactly this name... | ||||
| 	my_conf=" | ||||
| 		--prefix="${PHP_DESTDIR}" | ||||
| 		--mandir="${PHP_DESTDIR}"/man | ||||
| 		--infodir="${PHP_DESTDIR}"/info | ||||
| 		--libdir="${PHP_DESTDIR}"/lib | ||||
| 		--with-libdir=$(get_libdir) | ||||
| 		--without-pear | ||||
| 		$(use_enable threads maintainer-zts)" | ||||
|  | ||||
| 	phpconfutils_init | ||||
|  | ||||
| 	#                             extension	      USE flag        shared | ||||
| 	phpconfutils_extension_enable  "bcmath"       "bcmath"           1 | ||||
| 	phpconfutils_extension_with    "bz2"          "bzip2"            1 | ||||
| 	phpconfutils_extension_enable  "calendar"     "calendar"         1 | ||||
| 	phpconfutils_extension_disable "ctype"        "ctype"            0 | ||||
| 	phpconfutils_extension_with    "curl"         "curl"             1 | ||||
| 	phpconfutils_extension_with    "curlwrappers" "curlwrappers"     0 | ||||
| 	phpconfutils_extension_enable  "dbase"	      "dbase"			 1 | ||||
| 	phpconfutils_extension_disable "dom"          "xml"              0 | ||||
| 	phpconfutils_extension_enable  "exif"         "exif"             1 | ||||
| 	phpconfutils_extension_with	   "fbsql"		  "frontbase"		 1 | ||||
| 	phpconfutils_extension_with	   "fdftk"		  "fdftk"			 1 "/opt/fdftk-6.0" | ||||
| 	phpconfutils_extension_disable "filter"       "filter"           0 | ||||
| 	phpconfutils_extension_enable  "ftp"          "ftp"              1 | ||||
| 	phpconfutils_extension_with    "gettext"      "nls"              1 | ||||
| 	phpconfutils_extension_with    "gmp"          "gmp"              1 | ||||
| 	phpconfutils_extension_disable "hash"         "hash"             0 | ||||
| 	phpconfutils_extension_without "iconv"        "iconv"            0 | ||||
| 	phpconfutils_extension_disable "ipv6"         "ipv6"             0 | ||||
| 	phpconfutils_extension_disable "json"         "json"             0 | ||||
| 	phpconfutils_extension_with    "kerberos"     "kerberos"         0 "/usr" | ||||
| 	phpconfutils_extension_disable "libxml"       "xml"              0 | ||||
| 	phpconfutils_extension_enable  "mbstring"     "unicode"          1 | ||||
| 	phpconfutils_extension_with    "mcrypt"       "crypt"            1 | ||||
| 	phpconfutils_extension_with	   "mhash"		  "mhash"			 1 | ||||
| 	phpconfutils_extension_with	   "msql"		  "msql"			 1 | ||||
| 	phpconfutils_extension_with    "mssql"        "mssql"            1 | ||||
| 	phpconfutils_extension_with	   "ncurses"	  "ncurses"		     1 | ||||
| 	phpconfutils_extension_with    "openssl"      "ssl"              0 | ||||
| 	phpconfutils_extension_with    "openssl-dir"  "ssl"              0 "/usr" | ||||
| 	phpconfutils_extension_enable  "pcntl"        "pcntl"            1 | ||||
| 	phpconfutils_extension_without	"pcre-regex"  "pcre"			 0 | ||||
| 	phpconfutils_extension_disable "pdo"          "pdo"              0 | ||||
| 	phpconfutils_extension_with    "pgsql"        "postgres"         1 | ||||
| 	phpconfutils_extension_disable "posix"        "posix"            0 | ||||
| 	phpconfutils_extension_with    "pspell"       "spell"            1 | ||||
| 	phpconfutils_extension_with    "recode"       "recode"           1 | ||||
| 	phpconfutils_extension_disable "reflection"   "reflection"       0 | ||||
| 	phpconfutils_extension_disable "simplexml"    "simplexml"        0 | ||||
| 	phpconfutils_extension_enable  "shmop"        "sharedmem"        0 | ||||
| 	phpconfutils_extension_with    "snmp"         "snmp"             1 | ||||
| 	phpconfutils_extension_enable  "soap"         "soap"             1 | ||||
| 	phpconfutils_extension_enable  "sockets"      "sockets"          1 | ||||
| 	phpconfutils_extension_disable "spl"		  "spl"			     0 | ||||
| 	phpconfutils_extension_with    "sybase-ct"    "sybase-ct"        1 | ||||
| 	phpconfutils_extension_enable  "sysvmsg"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_enable  "sysvsem"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_enable  "sysvshm"      "sysvipc"          1 | ||||
| 	phpconfutils_extension_with    "tidy"         "tidy"             1 | ||||
| 	phpconfutils_extension_disable "tokenizer"    "tokenizer"        0 | ||||
| 	phpconfutils_extension_enable  "wddx"         "wddx"             1 | ||||
| 	phpconfutils_extension_disable "xml"          "xml"              0 | ||||
| 	phpconfutils_extension_disable "xmlreader"    "xmlreader"        0 | ||||
| 	phpconfutils_extension_disable "xmlwriter"    "xmlwriter"        0 | ||||
| 	phpconfutils_extension_with    "xmlrpc"       "xmlrpc"           1 | ||||
| 	phpconfutils_extension_with    "xsl"          "xsl"              1 | ||||
| 	phpconfutils_extension_enable  "zip"          "zip"              1 | ||||
| 	phpconfutils_extension_with    "zlib"         "zlib"             1 | ||||
| 	phpconfutils_extension_enable  "debug"        "debug"            0 | ||||
|  | ||||
| 	# DBA support | ||||
| 	if use cdb || use berkdb || use flatfile || use gdbm || use inifile \ | ||||
| 		|| use qdbm ; then | ||||
| 		my_conf="${my_conf} --enable-dba${shared}" | ||||
| 	fi | ||||
|  | ||||
| 	# DBA drivers support | ||||
| 	phpconfutils_extension_with   "cdb"        "cdb"      0 | ||||
| 	phpconfutils_extension_with   "db4"        "berkdb"   0 | ||||
| 	phpconfutils_extension_enable "flatfile"   "flatfile" 0 | ||||
| 	phpconfutils_extension_with   "gdbm"       "gdbm"     0 | ||||
| 	phpconfutils_extension_enable "inifile"    "inifile"  0 | ||||
| 	phpconfutils_extension_with   "qdbm"       "qdbm"     0 | ||||
|  | ||||
| 	# Support for the GD graphics library | ||||
| 	if use gd-external ; then | ||||
| 		phpconfutils_extension_with   "freetype-dir" "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_with   "t1lib"        "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_enable "gd-jis-conv"  "cjk"         0 | ||||
| 		phpconfutils_extension_with   "gd"           "gd-external" 1 "/usr" | ||||
| 	else | ||||
| 		phpconfutils_extension_with   "freetype-dir" "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_with   "t1lib"        "truetype"    0 "/usr" | ||||
| 		phpconfutils_extension_enable "gd-jis-conv"  "cjk"         0 | ||||
| 		phpconfutils_extension_with   "jpeg-dir"     "gd"          0 "/usr" | ||||
| 		phpconfutils_extension_with   "png-dir"      "gd"          0 "/usr" | ||||
| 		phpconfutils_extension_with   "xpm-dir"      "xpm"         0 "/usr" | ||||
| 		# enable gd last, so configure can pick up the previous settings | ||||
| 		phpconfutils_extension_with   "gd"           "gd"          0 | ||||
| 	fi | ||||
|  | ||||
| 	# IMAP support | ||||
| 	if use imap ; then | ||||
| 		phpconfutils_extension_with "imap"     "imap" 1 | ||||
| 		phpconfutils_extension_with "imap-ssl" "ssl"  0 | ||||
| 	fi | ||||
|  | ||||
| 	phpconfutils_extension_with "interbase"	"interbase"	0 "/opt" | ||||
| 	phpconfutils_extension_with	"interbase"	"firebird"	0 "/usr" | ||||
|  | ||||
| 	# LDAP support | ||||
| 	if use ldap ; then | ||||
| 		if use oci8 ; then | ||||
| 			phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}" | ||||
| 		else | ||||
| 			phpconfutils_extension_with "ldap"      "ldap"      1 | ||||
| 			phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0 | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# MySQL support | ||||
| 	if use mysql ; then | ||||
| 		phpconfutils_extension_with "mysql"      "mysql" 1 "/usr" | ||||
| 		phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" | ||||
| 	fi | ||||
|  | ||||
| 	# MySQLi support | ||||
| 	phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config" | ||||
|  | ||||
| 	# ODBC support | ||||
| 	if use odbc ; then | ||||
| 		phpconfutils_extension_with "unixODBC" "odbc"     1 "/usr" | ||||
| 		phpconfutils_extension_with "adabas"   "adabas"   1 | ||||
| 		phpconfutils_extension_with "birdstep" "birdstep" 1 | ||||
| 		phpconfutils_extension_with "dbmaker"  "dbmaker"  1 | ||||
| 		phpconfutils_extension_with "empress"  "empress"  1 | ||||
| 		if use empress ; then | ||||
| 			phpconfutils_extension_with "empress-bcs" "empress-bcs" 0 | ||||
| 		fi | ||||
| 		phpconfutils_extension_with "esoob"   "esoob" 1 | ||||
| 		# Needed to run conftest for IBM DB2 | ||||
| 		[[ -n ${DB2_HOME} ]] && export LD_LIBRARY_PATH="${DB2_HOME}/`get_libdir`" | ||||
| 		phpconfutils_extension_with "ibm-db2" "db2"   1 "${DB2_HOME}" | ||||
| 		phpconfutils_extension_with "sapdb"   "sapdb" 1 | ||||
| 		phpconfutils_extension_with "solid"   "solid" 1 | ||||
| 	fi | ||||
|  | ||||
| 	if use iodbc ; then | ||||
| 		phpconfutils_extension_with "iodbc"   "iodbc" 1 "/usr" | ||||
| 	fi | ||||
|  | ||||
| 	# Oracle support | ||||
| 	phpconfutils_extension_with "oci8" "oci8" 1 | ||||
| 	if use oci8-instant-client ; then | ||||
| 		OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \ | ||||
| 			sed -e 's|dev-db/oracle-instantclient-basic-||g' | \ | ||||
| 			sed -e 's|-r.*||g')" | ||||
|  | ||||
| 		phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \ | ||||
| 			"instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib" | ||||
| 	fi | ||||
|  | ||||
| 	# PDO support | ||||
| 	if use pdo ; then | ||||
| 		phpconfutils_extension_with "pdo-dblib"  "mssql"    1 | ||||
| 		phpconfutils_extension_with "pdo-mysql"  "mysql"    1 "/usr" | ||||
| 		phpconfutils_extension_with "pdo-pgsql"  "postgres"	1 | ||||
| 		phpconfutils_extension_with "pdo-sqlite" "sqlite"   1 "/usr" | ||||
| 		phpconfutils_extension_with "pdo-odbc"   "odbc"     1 "unixODBC,/usr" | ||||
| 		if use oci8 ; then | ||||
| 			phpconfutils_extension_with "pdo-oci" "oci8" 1 | ||||
| 		fi | ||||
| 		if use oci8-instant-client ; then | ||||
| 			phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \ | ||||
| 				"instantclient,/usr,${OCI8IC_PKG}" | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# readline/libedit support | ||||
| 	phpconfutils_extension_with "readline" "readline" 0 | ||||
| 	phpconfutils_extension_with "libedit"  "libedit"  0 | ||||
|  | ||||
| 	# Session support | ||||
| 	if use session ; then | ||||
| 		phpconfutils_extension_with "mm" "sharedmem" 0 | ||||
| 	else | ||||
| 		phpconfutils_extension_disable "session" "session" 0 | ||||
| 	fi | ||||
|  | ||||
| 	# SQLite support | ||||
| 	if use sqlite ; then | ||||
| 		phpconfutils_extension_with   "sqlite"      "sqlite"  0 "/usr" | ||||
| 		phpconfutils_extension_enable "sqlite-utf8" "unicode" 0 | ||||
| 	else | ||||
| 		phpconfutils_extension_without "sqlite" "sqlite" 0 | ||||
| 	fi | ||||
|  | ||||
| 	if use pic ; then | ||||
| 		my_conf="${my_conf} --with-pic" | ||||
| 	fi | ||||
|  | ||||
| 	 | ||||
| 	# we use the system copy of pcre | ||||
| 	# --with-pcre-regex affects ext/pcre | ||||
| 	# --with-pcre-dir affects ext/filter and ext/zip | ||||
| 	if use pcre ; then | ||||
| 		my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" | ||||
| 	fi | ||||
|  | ||||
| 	# Catch CFLAGS problems | ||||
| 	php_check_cflags | ||||
|  | ||||
| 	# Support user-passed configuration parameters | ||||
| 	my_conf="${my_conf} ${EXTRA_ECONF:-}" | ||||
|  | ||||
| 	# Support the Apache2 extras, they must be set globally for all | ||||
| 	# SAPIs to work correctly, especially for external PHP extensions | ||||
|  | ||||
| 	mkdir -p "${WORKDIR}/sapis-build" | ||||
| 	for one_sapi in $SAPIS ; do | ||||
| 		use "${one_sapi}" || continue | ||||
| 		php_set_ini_dir "${one_sapi}" | ||||
|  | ||||
| 		cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}" | ||||
| 		cd "${WORKDIR}/sapis-build/${one_sapi}" | ||||
|  | ||||
| 		sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} | ||||
| 			--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}" | ||||
|  | ||||
| 		for sapi in $SAPIS ; do | ||||
| 			case "$sapi" in | ||||
| 				cli|embed) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf="${sapi_conf} --enable-${sapi}" | ||||
| 					else | ||||
| 						sapi_conf="${sapi_conf} --disable-${sapi}" | ||||
| 					fi | ||||
| 					;; | ||||
|  | ||||
| 				cgi) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf+=" --enable-cgi --enable-fastcgi" | ||||
| 						use discard-path && sapi_conf+=" --enable-discard-path" | ||||
| 						use force-cgi-redirect && sapi_conf+=" --enable-force-cgi-redirect" | ||||
| 					else | ||||
| 						sapi_conf+=" --disable-${sapi}" | ||||
| 					fi | ||||
| 					;; | ||||
|  | ||||
| 				apache2) | ||||
| 					if [[ "${one_sapi}" == "${sapi}" ]] ; then | ||||
| 						sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" | ||||
| 					else | ||||
| 						sapi_conf="${sapi_conf} --without-apxs2" | ||||
| 					fi | ||||
| 					;; | ||||
| 			esac | ||||
| 		done | ||||
|  | ||||
| 		econf ${sapi_conf} | ||||
| 	done | ||||
| } | ||||
| @@ -1,160 +0,0 @@ | ||||
| # Copyright 1999-2010 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_install-v1.eblit,v 1.12 2010/10/27 10:33:18 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-src_install() { | ||||
| 	# see bug #324739 for what happens when we don't have that | ||||
| 	addpredict /usr/share/snmp/mibs/.index | ||||
|  | ||||
| 	# grab the first SAPI that got built and install common files from there | ||||
| 	local first_sapi="" | ||||
| 	for sapi in $SAPIS ; do | ||||
| 		if use $sapi ; then | ||||
| 			first_sapi=$sapi | ||||
| 			break | ||||
| 		fi | ||||
| 	done | ||||
|  | ||||
| 	# Makefile forgets to create this before trying to write to it... | ||||
| 	dodir "${PHP_DESTDIR}/bin" | ||||
|  | ||||
| 	# Install php environment (without any sapis) | ||||
| 	cd "${WORKDIR}/sapis-build/$first_sapi" | ||||
| 	emake INSTALL_ROOT="${D}" \ | ||||
| 		install-build install-headers install-programs \ | ||||
| 		|| die "emake install failed" | ||||
|  | ||||
| 	local extension_dir="$("${D}/${PHP_DESTDIR}/bin/php-config" --extension-dir)" | ||||
|  | ||||
| 	# And install the modules to it | ||||
| 	if use sharedext ; then | ||||
| 		insinto "${extension_dir}" | ||||
| 		doins "${WORKDIR}/sapis-build/${first_sapi}/modules/"*.so | ||||
| 	fi | ||||
|  | ||||
| 	# Generate the USE file for PHP | ||||
| 	phpconfutils_generate_usefile | ||||
|  | ||||
| 	# Create the directory where we'll put version-specific php scripts | ||||
| 	keepdir /usr/share/php${PHP_MV} | ||||
|  | ||||
| 	local sapi="", file="" | ||||
| 	local sapi_list="" | ||||
|  | ||||
| 	for sapi in ${SAPIS}; do | ||||
| 		if use "${sapi}" ; then | ||||
| 			einfo "Installing SAPI: ${sapi}" | ||||
| 			cd "${WORKDIR}/sapis-build/${sapi}" | ||||
| 			# needed each time, php_install_ini would reset it | ||||
| 			into "${PHP_DESTDIR}" | ||||
| 			file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1) | ||||
|  | ||||
| 			if [[ "${file: -3}" == ".so" ]]; then  | ||||
| 				if [[ "${sapi}" == "apache2" ]]; then | ||||
| 					insinto "${PHP_DESTDIR}/../apache2/modules/" | ||||
| 					newins "${file}" "${file/*\/}" | ||||
| 				else | ||||
| 					dolib.so "${file}" || die "Unable to install ${sapi} sapi" | ||||
| 				fi | ||||
| 			else | ||||
| 				dobin "${file}" || die "Unable to install ${sapi} sapi" | ||||
| 			fi | ||||
|  | ||||
| 			php_install_ini "${sapi}" | ||||
|  | ||||
| 			# construct correct SAPI string for php-config | ||||
| 			# thanks to ferringb for the bash voodoo | ||||
| 			if [[ "${sapi}" == "apache2" ]]; then | ||||
| 			    sapi_list="${sapi_list:+${sapi_list} }apache2handler" | ||||
| 			else | ||||
| 				sapi_list="${sapi_list:+${sapi_list} }${sapi}" | ||||
| 			fi | ||||
| 		fi | ||||
| 	done | ||||
|  | ||||
| 	# Install env.d files | ||||
| 	newenvd "${FILESDIR}/20php${PHP_MV}-envd" \ | ||||
| 		"20php${PHP_MV}" | ||||
| 	sed -e "s|/lib/|/$(get_libdir)/|g" -i \ | ||||
| 		"${D}/etc/env.d/20php${PHP_MV}" | ||||
|  | ||||
| 	# set php-config variable correctly (bug #278439) | ||||
| 	sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \ | ||||
| 		"${D}/usr/$(get_libdir)/php5/bin/php-config" | ||||
| } | ||||
|  | ||||
| php_install_ini() { | ||||
| 	local phpsapi="${1}" | ||||
|  | ||||
| 	# work out where we are installing the ini file | ||||
| 	php_set_ini_dir "${phpsapi}" | ||||
|  | ||||
| 	local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}" | ||||
| 	cp "${PHP_INI_UPSTREAM}" "${phpinisrc}" | ||||
|  | ||||
| 	# default to allow_url_open=Off, bug 332763 | ||||
| 	sed -e 's|^allow_url_fopen .*|allow_url_fopen = Off|g' -i "${phpinisrc}" | ||||
|  | ||||
| 	# default to expose_php=Off, bug 300695 | ||||
| 	sed -e 's|^expose_php .*|expose_php = Off|g' -i "${phpinisrc}" | ||||
|  | ||||
| 	# default to /tmp for save_path, bug #282768 | ||||
| 	sed -e 's|^;session.save_path .*$|session.save_path = "/tmp"|g' -i "${phpinisrc}" | ||||
|  | ||||
| 	# Set the extension dir | ||||
| 	sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}" | ||||
|  | ||||
| 	# Set the include path to point to where we want to find PEAR packages | ||||
| 	sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php'${PHP_MV}':/usr/share/php"|' -i "${phpinisrc}" | ||||
|  | ||||
| 	dodir "${PHP_INI_DIR}" | ||||
| 	insinto "${PHP_INI_DIR}" | ||||
| 	newins "${phpinisrc}" "${PHP_INI_FILE}" | ||||
|  | ||||
| 	dodir "${PHP_EXT_INI_DIR}" | ||||
| 	dodir "${PHP_EXT_INI_DIR_ACTIVE}" | ||||
|  | ||||
| 	# Install any extensions built as shared objects | ||||
| 	if use sharedext ; then | ||||
| 		insinto "${PHP_EXT_INI_DIR}" | ||||
| 		for extension in "${D}/${extension_dir}/"*.so ; do | ||||
| 			extension="${extension##*/}" | ||||
| 			inifilename="${extension/.so/.ini}" | ||||
| 			echo "extension=${extension}" > "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename" | ||||
| 			doins "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename" | ||||
| 			dosym "${PHP_EXT_INI_DIR}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE}/${inifilename}" | ||||
| 		done | ||||
| 	fi | ||||
|  | ||||
| 	# SAPI-specific handling | ||||
| 	if [[ "${sapi}" == "apache2" ]] ; then | ||||
| 		if use concurrentmodphp ; then | ||||
| 			einfo "Installing Apache2 config file 70_mod_php${PHP_MV}_concurr.conf" | ||||
| 			insinto "${APACHE_MODULES_CONFDIR}" | ||||
| 			newins "${FILESDIR}/70_mod_php${PHP_MV}_concurr.conf-apache2" \ | ||||
| 				"70_mod_php${PHP_MV}_concurr.conf" | ||||
|  | ||||
| 			# Put the ld version script in the right place so | ||||
| 			# it's always accessible | ||||
| 			insinto "/var/lib/php-pkg/${CATEGORY}/${PN}-${PVR}/" | ||||
| 			doins "${FILESDIR}/php${PHP_MV}-ldvs" | ||||
| 		else | ||||
| 			einfo "Installing Apache2 config 70_mod_php${PHP_MV}.conf" | ||||
| 			insinto ${APACHE_MODULES_CONFDIR} | ||||
| 			newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \ | ||||
| 				"70_mod_php${PHP_MV}.conf" | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	if [[ "${sapi}" == "fpm" ]] ; then | ||||
| 		einfo "Installing FPM CGI config file php-fpm.conf" | ||||
| 		epatch "${FILESDIR}/php-fpm-gentooified.patch" | ||||
| 		insinto ${PHP_INI_DIR} | ||||
| 		doins "${WORKDIR}/sapis-build/fpm/sapi/fpm/php-fpm.conf" | ||||
| 		dodir "/etc/init.d" | ||||
| 		insinto "/etc/init.d" | ||||
| 		newins  "${FILESDIR}/php-fpm.init" "php-fpm" | ||||
| 		fperms 755 "/etc/init.d/php-fpm" | ||||
| 		dosym "${PHP_DESTDIR}/bin/php-fpm" "/usr/bin/php-fpm" | ||||
| 	fi | ||||
| } | ||||
| @@ -1,168 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_install-v2.eblit,v 1.13 2011/07/23 10:14:46 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-src_install() { | ||||
| 	# see bug #324739 for what happens when we don't have that | ||||
| 	addpredict /usr/share/snmp/mibs/.index | ||||
|  | ||||
| 	# grab the first SAPI that got built and install common files from there | ||||
| 	local first_sapi="" | ||||
| 	for sapi in $SAPIS ; do | ||||
| 		if use $sapi ; then | ||||
| 			first_sapi=$sapi | ||||
| 			break | ||||
| 		fi | ||||
| 	done | ||||
|  | ||||
| 	# Makefile forgets to create this before trying to write to it... | ||||
| 	dodir "${PHP_DESTDIR}/bin" | ||||
|  | ||||
| 	# Install php environment (without any sapis) | ||||
| 	cd "${WORKDIR}/sapis-build/$first_sapi" | ||||
| 	emake INSTALL_ROOT="${D}" \ | ||||
| 		install-build install-headers install-programs \ | ||||
| 		|| die "emake install failed" | ||||
|  | ||||
| 	local extension_dir="$("${D}/${PHP_DESTDIR}/bin/php-config" --extension-dir)" | ||||
|  | ||||
| 	# And install the modules to it | ||||
| 	if use sharedext ; then | ||||
| 		insinto "${extension_dir}" | ||||
| 		doins "${WORKDIR}/sapis-build/${first_sapi}/modules/"*.so | ||||
| 	fi | ||||
|  | ||||
| 	# Generate the USE file for PHP | ||||
| 	phpconfutils_generate_usefile | ||||
|  | ||||
| 	# Create the directory where we'll put version-specific php scripts | ||||
| 	keepdir /usr/share/php${PHP_MV} | ||||
|  | ||||
| 	local sapi="", file="" | ||||
| 	local sapi_list="" | ||||
|  | ||||
| 	for sapi in ${SAPIS}; do | ||||
| 		if use "${sapi}" ; then | ||||
| 			einfo "Installing SAPI: ${sapi}" | ||||
| 			cd "${WORKDIR}/sapis-build/${sapi}" | ||||
| 			# needed each time, php_install_ini would reset it | ||||
| 			into "${PHP_DESTDIR}" | ||||
| 			file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1) | ||||
|  | ||||
| 			if [[ "${file: -3}" == ".so" ]]; then  | ||||
| 				if [[ "${sapi}" == "apache2" ]]; then | ||||
| 					insinto "${PHP_DESTDIR}/apache2/" | ||||
| 					newins "${file}" "${file/*\/}" | ||||
|                     keepdir "/usr/$(get_libdir)/apache2/modules" | ||||
| 				else | ||||
| 					dolib.so "${file}" || die "Unable to install ${sapi} sapi" | ||||
| 				fi | ||||
| 			else | ||||
| 				dobin "${file}" || die "Unable to install ${sapi} sapi" | ||||
| 			fi | ||||
|  | ||||
| 			php_install_ini "${sapi}" | ||||
|  | ||||
| 			# construct correct SAPI string for php-config | ||||
| 			# thanks to ferringb for the bash voodoo | ||||
| 			if [[ "${sapi}" == "apache2" ]]; then | ||||
| 			    sapi_list="${sapi_list:+${sapi_list} }apache2handler" | ||||
| 			else | ||||
| 				sapi_list="${sapi_list:+${sapi_list} }${sapi}" | ||||
| 			fi | ||||
| 		fi | ||||
| 	done | ||||
|  | ||||
| 	# Install env.d files | ||||
| 	newenvd "${FILESDIR}/20php5-envd" \ | ||||
| 		"20php${SLOT}" | ||||
| 	sed -e "s|/lib/|/$(get_libdir)/|g" -i \ | ||||
| 		"${D}/etc/env.d/20php${SLOT}" | ||||
| 	sed -e "s|php5|php${SLOT}|g" -i \ | ||||
| 		"${D}/etc/env.d/20php${SLOT}" | ||||
|  | ||||
| 	# set php-config variable correctly (bug #278439) | ||||
| 	sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \ | ||||
| 		"${D}/usr/$(get_libdir)/php${SLOT}/bin/php-config" | ||||
| } | ||||
|  | ||||
| php_install_ini() { | ||||
| 	local phpsapi="${1}" | ||||
|  | ||||
| 	# work out where we are installing the ini file | ||||
| 	php_set_ini_dir "${phpsapi}" | ||||
|  | ||||
| 	local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}" | ||||
| 	cp "${PHP_INI_UPSTREAM}" "${phpinisrc}" | ||||
|  | ||||
| 	# default to allow_url_open=Off, bug 332763 | ||||
| 	sed -e 's|^allow_url_fopen .*|allow_url_fopen = Off|g' -i "${phpinisrc}" | ||||
|  | ||||
| 	# default to expose_php=Off, bug 300695 | ||||
| 	sed -e 's|^expose_php .*|expose_php = Off|g' -i "${phpinisrc}" | ||||
|  | ||||
| 	# default to /tmp for save_path, bug #282768 | ||||
| 	sed -e 's|^;session.save_path .*$|session.save_path = "/tmp"|g' -i "${phpinisrc}" | ||||
|  | ||||
| 	# Set the extension dir | ||||
| 	sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}" | ||||
|  | ||||
| 	# Set the include path to point to where we want to find PEAR packages | ||||
| 	sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php'${PHP_MV}':/usr/share/php"|' -i "${phpinisrc}" | ||||
|  | ||||
| 	dodir "${PHP_INI_DIR}" | ||||
| 	insinto "${PHP_INI_DIR}" | ||||
| 	newins "${phpinisrc}" "${PHP_INI_FILE}" | ||||
|  | ||||
| 	elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR}" | ||||
| 	elog | ||||
|  | ||||
| 	dodir "${PHP_EXT_INI_DIR}" | ||||
| 	dodir "${PHP_EXT_INI_DIR_ACTIVE}" | ||||
|  | ||||
| 	# Install any extensions built as shared objects | ||||
| 	if use sharedext ; then | ||||
| 		insinto "${PHP_EXT_INI_DIR}" | ||||
| 		for extension in "${D}/${extension_dir}/"*.so ; do | ||||
| 			extension="${extension##*/}" | ||||
| 			inifilename="${extension/.so/.ini}" | ||||
| 			echo "extension=${extension}" > "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename" | ||||
| 			doins "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename" | ||||
| 			dosym "${PHP_EXT_INI_DIR}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE}/${inifilename}" | ||||
| 		done | ||||
| 	fi | ||||
|  | ||||
| 	# SAPI-specific handling | ||||
| 	if [[ "${sapi}" == "apache2" ]] ; then | ||||
| 			insinto "${APACHE_MODULES_CONFDIR}" | ||||
| 			newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \ | ||||
| 				"70_mod_php${PHP_MV}.conf" | ||||
| 	fi | ||||
|  | ||||
| 	if [[ "${sapi}" == "fpm" ]] ; then | ||||
|         [[ -z ${PHP_FPM_INIT_VER} ]] && PHP_FPM_INIT_VER=3 | ||||
|         [[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0 | ||||
| 		einfo "Installing FPM CGI config file php-fpm.conf" | ||||
| 		insinto ${PHP_INI_DIR} | ||||
| 		newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf | ||||
| 		dodir "/etc/init.d" | ||||
| 		insinto "/etc/init.d" | ||||
| 		newinitd "${FILESDIR}/php-fpm-r${PHP_FPM_INIT_VER}.init" "php-fpm" | ||||
| 		#dosym "${PHP_DESTDIR}/bin/php-fpm" "/usr/bin/php-fpm" | ||||
| 		 | ||||
| 		# Remove bogus /etc/php-fpm.conf.default (bug 359906) | ||||
| 		[[ -f "${D}/etc/php-fpm.conf.default" ]] && rm "${D}/etc/php-fpm.conf.default" | ||||
| 	fi | ||||
|  | ||||
|   # Install PHP ini files into /usr/share/php | ||||
| 	if [[ ${SLOT} == '5.2' ]]; then | ||||
| 		newdoc php.ini-dist php.ini-development | ||||
| 		newdoc php.ini-recommended php.ini-production | ||||
| 	fi | ||||
|  | ||||
| 	if [[ ${SLOT} == '5.3' ]]; then | ||||
| 		dodoc php.ini-development | ||||
| 		dodoc php.ini-production | ||||
| 	fi | ||||
|  | ||||
| } | ||||
| @@ -1,139 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_install-v3.eblit,v 1.3 2011/09/16 07:02:57 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-src_install() { | ||||
| 	# see bug #324739 for what happens when we don't have that | ||||
| 	addpredict /usr/share/snmp/mibs/.index | ||||
|  | ||||
| 	# grab the first SAPI that got built and install common files from there | ||||
| 	local first_sapi="" | ||||
| 	for sapi in $SAPIS ; do | ||||
| 		if use $sapi ; then | ||||
| 			first_sapi=$sapi | ||||
| 			break | ||||
| 		fi | ||||
| 	done | ||||
|  | ||||
| 	# Makefile forgets to create this before trying to write to it... | ||||
| 	dodir "${PHP_DESTDIR}/bin" | ||||
|  | ||||
| 	# Install php environment (without any sapis) | ||||
| 	cd "${WORKDIR}/sapis-build/$first_sapi" | ||||
| 	emake INSTALL_ROOT="${D}" \ | ||||
| 		install-build install-headers install-programs \ | ||||
| 		|| die "emake install failed" | ||||
|  | ||||
| 	local extension_dir="$("${D}/${PHP_DESTDIR}/bin/php-config" --extension-dir)" | ||||
|  | ||||
| 	# Create the directory where we'll put version-specific php scripts | ||||
| 	keepdir /usr/share/php${PHP_MV} | ||||
|  | ||||
| 	local sapi="", file="" | ||||
| 	local sapi_list="" | ||||
|  | ||||
| 	for sapi in ${SAPIS}; do | ||||
| 		if use "${sapi}" ; then | ||||
| 			einfo "Installing SAPI: ${sapi}" | ||||
| 			cd "${WORKDIR}/sapis-build/${sapi}" | ||||
| 			# needed each time, php_install_ini would reset it | ||||
| 			into "${PHP_DESTDIR}" | ||||
| 			file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1) | ||||
|  | ||||
| 			if [[ "${file: -3}" == ".so" ]]; then  | ||||
| 				if [[ "${sapi}" == "apache2" ]]; then | ||||
| 					insinto "${PHP_DESTDIR}/apache2/" | ||||
| 					newins "${file}" "${file/*\/}" | ||||
|                     keepdir "/usr/$(get_libdir)/apache2/modules" | ||||
| 				else | ||||
| 					dolib.so "${file}" || die "Unable to install ${sapi} sapi" | ||||
| 				fi | ||||
| 			else | ||||
| 				dobin "${file}" || die "Unable to install ${sapi} sapi" | ||||
| 			fi | ||||
|  | ||||
| 			php_install_ini "${sapi}" | ||||
|  | ||||
| 			# construct correct SAPI string for php-config | ||||
| 			# thanks to ferringb for the bash voodoo | ||||
| 			if [[ "${sapi}" == "apache2" ]]; then | ||||
| 			    sapi_list="${sapi_list:+${sapi_list} }apache2handler" | ||||
| 			else | ||||
| 				sapi_list="${sapi_list:+${sapi_list} }${sapi}" | ||||
| 			fi | ||||
| 		fi | ||||
| 	done | ||||
|  | ||||
| 	# Install env.d files | ||||
| 	newenvd "${FILESDIR}/20php5-envd" \ | ||||
| 		"20php${SLOT}" | ||||
| 	sed -e "s|/lib/|/$(get_libdir)/|g" -i \ | ||||
| 		"${D}/etc/env.d/20php${SLOT}" | ||||
| 	sed -e "s|php5|php${SLOT}|g" -i \ | ||||
| 		"${D}/etc/env.d/20php${SLOT}" | ||||
|  | ||||
| 	# set php-config variable correctly (bug #278439) | ||||
| 	sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \ | ||||
| 		"${D}/usr/$(get_libdir)/php${SLOT}/bin/php-config" | ||||
| } | ||||
|  | ||||
| php_install_ini() { | ||||
| 	local phpsapi="${1}" | ||||
|  | ||||
| 	# work out where we are installing the ini file | ||||
| 	php_set_ini_dir "${phpsapi}" | ||||
|  | ||||
| 	local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}" | ||||
| 	cp "${PHP_INI_UPSTREAM}" "${phpinisrc}" | ||||
|  | ||||
| 	# default to /tmp for save_path, bug #282768 | ||||
| 	sed -e 's|^;session.save_path .*$|session.save_path = "/tmp"|g' -i "${phpinisrc}" | ||||
|  | ||||
| 	# Set the extension dir | ||||
| 	sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}" | ||||
|  | ||||
| 	# Set the include path to point to where we want to find PEAR packages | ||||
| 	sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php'${PHP_MV}':/usr/share/php"|' -i "${phpinisrc}" | ||||
|  | ||||
| 	dodir "${PHP_INI_DIR}" | ||||
| 	insinto "${PHP_INI_DIR}" | ||||
| 	newins "${phpinisrc}" "${PHP_INI_FILE}" | ||||
|  | ||||
| 	elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR}" | ||||
| 	elog | ||||
|  | ||||
| 	dodir "${PHP_EXT_INI_DIR}" | ||||
| 	dodir "${PHP_EXT_INI_DIR_ACTIVE}" | ||||
|  | ||||
| 	# SAPI-specific handling | ||||
| 	if [[ "${sapi}" == "apache2" ]] ; then | ||||
| 			insinto "${APACHE_MODULES_CONFDIR}" | ||||
| 			newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \ | ||||
| 				"70_mod_php${PHP_MV}.conf" | ||||
| 	fi | ||||
|  | ||||
| 	if [[ "${sapi}" == "fpm" ]] ; then | ||||
| 		einfo "Installing FPM CGI config file php-fpm.conf" | ||||
| 		insinto ${PHP_INI_DIR} | ||||
| 		doins "${FILESDIR}/php-fpm.conf" | ||||
| 		dodir "/etc/init.d" | ||||
| 		insinto "/etc/init.d" | ||||
| 		newinitd "${FILESDIR}/php-fpm-r3.init" "php-fpm" | ||||
| 		#dosym "${PHP_DESTDIR}/bin/php-fpm" "/usr/bin/php-fpm" | ||||
| 		 | ||||
| 		# Remove bogus /etc/php-fpm.conf.default (bug 359906) | ||||
| 		[[ -f "${D}/etc/php-fpm.conf.default" ]] && rm "${D}/etc/php-fpm.conf.default" | ||||
| 	fi | ||||
|  | ||||
|   # Install PHP ini files into /usr/share/php | ||||
| 	if [[ ${SLOT} == '5.2' ]]; then | ||||
| 		newdoc php.ini-dist php.ini-development | ||||
| 		newdoc php.ini-recommended php.ini-production | ||||
| 	fi | ||||
|  | ||||
| 	if [[ ${SLOT} == '5.3' ]]; then | ||||
| 		dodoc php.ini-development | ||||
| 		dodoc php.ini-production | ||||
| 	fi | ||||
|  | ||||
| } | ||||
| @@ -1,60 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_prepare-snapshots.eblit,v 1.2 2011/05/15 19:17:23 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-src_prepare() { | ||||
| 	# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path | ||||
| 	# ([empty session.save_path]/session_mm_[sapi][gid].sem) | ||||
| 	# there is no easy way to circumvent that, all php calls during | ||||
| 	# install use -n, so no php.ini file will be used. | ||||
| 	# As such, this is the easiest way to get around | ||||
| 	addpredict /session_mm_cli250.sem | ||||
| 	addpredict /session_mm_cli0.sem | ||||
|  | ||||
| 	# kolab support (support for imap annotations) | ||||
| 	use kolab && epatch "${WORKDIR}/${PV}/opt/imap-kolab-annotations.patch" | ||||
|  | ||||
| 	# Change PHP branding | ||||
| 	sed -re	"s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-pl${PR/r/}-gentoo\2|g" \ | ||||
| 		-i configure.in || die "Unable to change PHP branding" | ||||
|  | ||||
| 	# Apply generic PHP patches | ||||
| 		EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \ | ||||
| 		EPATCH_FORCE="yes" \ | ||||
| 		EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch | ||||
|  | ||||
| 	# Patch PHP to show Gentoo as the server platform | ||||
| 	sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \ | ||||
| 		-i configure.in || die "Failed to fix server platform name" | ||||
|  | ||||
| 	# Prevent PHP from activating the Apache config, | ||||
| 	# as we will do that ourselves | ||||
| 	sed -i \ | ||||
| 		-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \ | ||||
| 		-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \ | ||||
| 	configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 | ||||
|  | ||||
| 	# Patch PHP to support heimdal instead of mit-krb5 | ||||
| 	if has_version "app-crypt/heimdal" ; then | ||||
| 		sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \ | ||||
| 			|| die "Failed to fix heimdal libname" | ||||
| 		sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \ | ||||
| 			|| die "Failed to fix heimdal crypt library reference" | ||||
| 	fi | ||||
|  | ||||
| 	# Suhosin support | ||||
| 	if [[ -n $SUHOSIN_VERSION ]] ; then | ||||
| 		if use suhosin ; then | ||||
| 			epatch "${WORKDIR}/${SUHOSIN_PATCH}" | ||||
| 		fi | ||||
| 	else | ||||
| 		ewarn "Please note that this version of PHP does not yet come with a suhosin patch" | ||||
| 	fi | ||||
|  | ||||
| 	#Add user patches #357637 | ||||
| 	epatch_user | ||||
| 	 | ||||
| 	#force rebuilding aclocal.m4 | ||||
| 	rm aclocal.m4 | ||||
| 	eautoreconf | ||||
| } | ||||
| @@ -1,71 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_prepare-v2.eblit,v 1.3 2011/01/05 11:23:16 mabi Exp $ | ||||
|  | ||||
| eblit-php-src_prepare() { | ||||
| 	# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path | ||||
| 	# ([empty session.save_path]/session_mm_[sapi][gid].sem) | ||||
| 	# there is no easy way to circumvent that, all php calls during | ||||
| 	# install use -n, so no php.ini file will be used. | ||||
| 	# As such, this is the easiest way to get around | ||||
| 	addpredict /session_mm_cli250.sem | ||||
| 	addpredict /session_mm_cli0.sem | ||||
|  | ||||
| 	# kolab support (support for imap annotations) | ||||
| 	use kolab && epatch "${WORKDIR}/${PV}/opt/imap-kolab-annotations.patch" | ||||
|  | ||||
| 	# Change PHP branding | ||||
| 	sed -re	"s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-pl${PR/r/}-gentoo\2|g" \ | ||||
| 		-i configure.in || die "Unable to change PHP branding" | ||||
|  | ||||
| 	# Apply generic PHP patches | ||||
| 	EPATCH_SOURCE="${WORKDIR}/${PV}/generic" EPATCH_SUFFIX="patch" \ | ||||
| 		EPATCH_FORCE="yes" \ | ||||
| 		EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch | ||||
|  | ||||
| 	# Patch PHP to show Gentoo as the server platform | ||||
| 	sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \ | ||||
| 		-i configure.in || die "Failed to fix server platform name" | ||||
|  | ||||
| 	# Prevent PHP from activating the Apache config, | ||||
| 	# as we will do that ourselves | ||||
| 	sed -i \ | ||||
| 		-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \ | ||||
| 		-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \ | ||||
| 		configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 | ||||
|  | ||||
| 	# Patch PHP to support heimdal instead of mit-krb5 | ||||
| 	if has_version "app-crypt/heimdal" ; then | ||||
| 		sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \ | ||||
| 			|| die "Failed to fix heimdal libname" | ||||
| 		sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \ | ||||
| 			|| die "Failed to fix heimdal crypt library reference" | ||||
| 	fi | ||||
|  | ||||
| 	# Suhosin support | ||||
| 	if [[ -n $SUHOSIN_VERSION ]] ; then | ||||
| 		if use suhosin ; then | ||||
| 			epatch "${WORKDIR}/${SUHOSIN_PATCH}" | ||||
| 		fi | ||||
| 	else | ||||
| 		ewarn "Please note that this version of PHP does not yet come with a suhosin patch" | ||||
| 	fi | ||||
|  | ||||
|  | ||||
| 	# rebuild the whole autotools stuff as we are heavily patching it | ||||
| 	# (suhosin, fastbuild, ...) | ||||
|  | ||||
| 	# eaclocal doesn't accept --force, so we try to force re-generation | ||||
| 	# this way | ||||
| 	rm aclocal.m4 | ||||
|  | ||||
| 	# work around divert() issues with newer autoconf, bug #281697 | ||||
| 	if has_version '>=sys-devel/autoconf-2.64' ; then | ||||
| 		sed -i -r \ | ||||
| 			-e 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \ | ||||
| 			$(grep -l divert $(find . -name '*.m4') configure.in) || die | ||||
| 	fi | ||||
| 	eautoreconf --force -W no-cross | ||||
| } | ||||
|  | ||||
|  | ||||
| @@ -1,73 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_prepare-v3.eblit,v 1.1 2011/03/13 09:48:06 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-src_prepare() { | ||||
| 	# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path | ||||
| 	# ([empty session.save_path]/session_mm_[sapi][gid].sem) | ||||
| 	# there is no easy way to circumvent that, all php calls during | ||||
| 	# install use -n, so no php.ini file will be used. | ||||
| 	# As such, this is the easiest way to get around | ||||
| 	addpredict /session_mm_cli250.sem | ||||
| 	addpredict /session_mm_cli0.sem | ||||
|  | ||||
| 	# kolab support (support for imap annotations) | ||||
| 	use kolab && epatch "${WORKDIR}/${PV}/opt/imap-kolab-annotations.patch" | ||||
|  | ||||
| 	# Change PHP branding | ||||
| 	sed -re	"s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-pl${PR/r/}-gentoo\2|g" \ | ||||
| 		-i configure.in || die "Unable to change PHP branding" | ||||
|  | ||||
| 	# Apply generic PHP patches | ||||
| 	EPATCH_SOURCE="${WORKDIR}/${PV}/generic" EPATCH_SUFFIX="patch" \ | ||||
| 		EPATCH_FORCE="yes" \ | ||||
| 		EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch | ||||
|  | ||||
| 	# Patch PHP to show Gentoo as the server platform | ||||
| 	sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \ | ||||
| 		-i configure.in || die "Failed to fix server platform name" | ||||
|  | ||||
| 	# Prevent PHP from activating the Apache config, | ||||
| 	# as we will do that ourselves | ||||
| 	sed -i \ | ||||
| 		-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \ | ||||
| 		-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \ | ||||
| 		configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 | ||||
|  | ||||
| 	# Patch PHP to support heimdal instead of mit-krb5 | ||||
| 	if has_version "app-crypt/heimdal" ; then | ||||
| 		sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \ | ||||
| 			|| die "Failed to fix heimdal libname" | ||||
| 		sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \ | ||||
| 			|| die "Failed to fix heimdal crypt library reference" | ||||
| 	fi | ||||
|  | ||||
| 	# Suhosin support | ||||
| 	if [[ -n $SUHOSIN_VERSION ]] ; then | ||||
| 		if use suhosin ; then | ||||
| 			epatch "${WORKDIR}/${SUHOSIN_PATCH}" | ||||
| 		fi | ||||
| 	else | ||||
| 		ewarn "Please note that this version of PHP does not yet come with a suhosin patch" | ||||
| 	fi | ||||
|  | ||||
| 	#Add user patches #357637 | ||||
| 	epatch_user | ||||
|  | ||||
| 	# rebuild the whole autotools stuff as we are heavily patching it | ||||
| 	# (suhosin, fastbuild, ...) | ||||
|  | ||||
| 	# eaclocal doesn't accept --force, so we try to force re-generation | ||||
| 	# this way | ||||
| 	rm aclocal.m4 | ||||
|  | ||||
| 	# work around divert() issues with newer autoconf, bug #281697 | ||||
| 	if has_version '>=sys-devel/autoconf-2.64' ; then | ||||
| 		sed -i -r \ | ||||
| 			-e 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \ | ||||
| 			$(grep -l divert $(find . -name '*.m4') configure.in) || die | ||||
| 	fi | ||||
| 	eautoreconf --force -W no-cross | ||||
| } | ||||
|  | ||||
|  | ||||
| @@ -1,62 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_prepare-v4.eblit,v 1.1 2011/06/29 06:38:38 olemarkus Exp $ | ||||
|  | ||||
| eblit-php-src_prepare() { | ||||
| 	# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path | ||||
| 	# ([empty session.save_path]/session_mm_[sapi][gid].sem) | ||||
| 	# there is no easy way to circumvent that, all php calls during | ||||
| 	# install use -n, so no php.ini file will be used. | ||||
| 	# As such, this is the easiest way to get around | ||||
| 	addpredict /session_mm_cli250.sem | ||||
| 	addpredict /session_mm_cli0.sem | ||||
|  | ||||
| 	# kolab support (support for imap annotations) | ||||
| 	use kolab && epatch "${WORKDIR}/patches/opt/imap-kolab-annotations.patch" | ||||
|  | ||||
| 	# Change PHP branding | ||||
| 	# Get the alpha/beta/rc version | ||||
| 	local ver=$(get_version_component_range 4) | ||||
| 	sed -re	"s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-${ver}-pl${PR/r/}-gentoo\2|g" \ | ||||
| 		-i configure.in || die "Unable to change PHP branding" | ||||
|  | ||||
| 	# Apply generic PHP patches | ||||
| 		EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \ | ||||
| 		EPATCH_FORCE="yes" \ | ||||
| 		EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch | ||||
|  | ||||
| 	# Patch PHP to show Gentoo as the server platform | ||||
| 	sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \ | ||||
| 		-i configure.in || die "Failed to fix server platform name" | ||||
|  | ||||
| 	# Prevent PHP from activating the Apache config, | ||||
| 	# as we will do that ourselves | ||||
| 	sed -i \ | ||||
| 		-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \ | ||||
| 		-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \ | ||||
| 	configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 | ||||
|  | ||||
| 	# Patch PHP to support heimdal instead of mit-krb5 | ||||
| 	if has_version "app-crypt/heimdal" ; then | ||||
| 		sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \ | ||||
| 			|| die "Failed to fix heimdal libname" | ||||
| 		sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \ | ||||
| 			|| die "Failed to fix heimdal crypt library reference" | ||||
| 	fi | ||||
|  | ||||
| 	# Suhosin support | ||||
| 	if [[ -n $SUHOSIN_VERSION ]] ; then | ||||
| 		if use suhosin ; then | ||||
| 			epatch "${WORKDIR}/${SUHOSIN_PATCH}" | ||||
| 		fi | ||||
| 	else | ||||
| 		ewarn "Please note that this version of PHP does not yet come with a suhosin patch" | ||||
| 	fi | ||||
|  | ||||
| 	#Add user patches #357637 | ||||
| 	epatch_user | ||||
| 	 | ||||
| 	#force rebuilding aclocal.m4 | ||||
| 	rm aclocal.m4 | ||||
| 	eautoreconf | ||||
| } | ||||
| @@ -1,54 +0,0 @@ | ||||
| # Copyright 1999-2010 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_test-v1.eblit,v 1.2 2010/08/09 10:47:57 mabi Exp $ | ||||
|  | ||||
| eblit-php-src_test() { | ||||
| 	vecho ">>> Test phase [test]: ${CATEGORY}/${PF}" | ||||
|  | ||||
| 	if [[ ! -x "${WORKDIR}/sapis/cli/php" ]] ; then | ||||
| 		ewarn "Test phase requires USE=cli, skipping" | ||||
| 		return | ||||
| 	else | ||||
| 		export TEST_PHP_EXECUTABLE="${WORKDIR}/sapis/cli/php" | ||||
| 	fi | ||||
|  | ||||
| 	if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then | ||||
| 		export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi" | ||||
| 	fi | ||||
| 	 | ||||
| 	 | ||||
| 	REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n  -d "session.save_path=${T}" \ | ||||
| 		"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}" | ||||
|  | ||||
| 	for name in ${EXPECTED_TEST_FAILURES}; do | ||||
| 		mv "${name}.out" "${name}.out.orig" 2>/dev/null | ||||
| 	done | ||||
|  | ||||
| 	local failed="$(find -name '*.out')" | ||||
| 	if [[ ${failed} != "" ]] ; then | ||||
| 		ewarn "The following test cases failed unexpectedly:" | ||||
| 		for name in ${failed}; do | ||||
| 			ewarn "  ${name/.out/}" | ||||
| 		done | ||||
| 	else | ||||
| 		einfo "No unexpected test failures, all fine" | ||||
| 	fi | ||||
|  | ||||
| 	if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then | ||||
| 		local passed="" | ||||
| 		for name in ${EXPECTED_TEST_FAILURES}; do | ||||
| 			[[ -f "${name}.diff" ]] && continue | ||||
| 			passed="${passed} ${name}" | ||||
| 		done | ||||
| 		if [[ ${passed} != "" ]] ; then | ||||
| 			einfo "The following test cases passed unexpectedly:" | ||||
| 			for name in ${passed}; do | ||||
| 				ewarn "  ${passed}" | ||||
| 			done | ||||
| 		else | ||||
| 			einfo "None of the known-to-fail tests passed, all fine" | ||||
| 		fi | ||||
| 	fi | ||||
| } | ||||
|  | ||||
|  | ||||
| @@ -1,36 +0,0 @@ | ||||
| --- php-5.2.17/ext/pcre/php_pcre.c	2012-01-01 14:15:04.000000000 +0100 | ||||
| +++ php-5.2.17/ext/pcre/php_pcre.c	2012-02-06 13:31:36.198935107 +0100 | ||||
| @@ -252,10 +252,11 @@ | ||||
|  	   back the compiled pattern, otherwise go on and compile it. */ | ||||
|  	if (zend_hash_find(&PCRE_G(pcre_cache), regex, regex_len+1, (void **)&pce) == SUCCESS) { | ||||
|  		/* | ||||
| -		 * We use a quick pcre_info() check to see whether cache is corrupted, and if it | ||||
| +		 * We use a quick pcre_fullinfo() check to see whether cache is corrupted, and if it | ||||
|  		 * is, we flush it and compile the pattern from scratch. | ||||
|  		 */ | ||||
| -		if (pcre_info(pce->re, NULL, NULL) == PCRE_ERROR_BADMAGIC) { | ||||
| +		int count = 0; | ||||
| +		if (pcre_fullinfo(pce->re, NULL, PCRE_INFO_CAPTURECOUNT, &count) == PCRE_ERROR_BADMAGIC) { | ||||
|  			zend_hash_clean(&PCRE_G(pcre_cache)); | ||||
|  		} else { | ||||
|  #if HAVE_SETLOCALE | ||||
| --- php-5.2.17/ext/pcre/php_pcre.def	2009-01-11 14:59:00.000000000 +0100 | ||||
| +++ php-5.2.17/ext/pcre/php_pcre.def	2012-02-06 13:31:47.775299315 +0100 | ||||
| @@ -4,7 +4,6 @@ | ||||
|  php_pcre_exec | ||||
|  php_pcre_get_substring | ||||
|  php_pcre_get_substring_list | ||||
| -php_pcre_info | ||||
|  php_pcre_maketables | ||||
|  php_pcre_study | ||||
|  php_pcre_version | ||||
| --- php-5.2.17/main/php_compat.h	2012-01-01 14:15:04.000000000 +0100 | ||||
| +++ php-5.2.17/main/php_compat.h	2012-02-06 13:26:59.272834580 +0100 | ||||
| @@ -34,7 +34,6 @@ | ||||
|  #define pcre_exec			php_pcre_exec | ||||
|  #define pcre_get_substring		php_pcre_get_substring | ||||
|  #define pcre_get_substring_list		php_pcre_get_substring_list | ||||
| -#define pcre_info			php_pcre_info | ||||
|  #define pcre_maketables			php_pcre_maketables | ||||
|  #define pcre_study			php_pcre_study | ||||
|  #define pcre_version			php_pcre_version | ||||
| @@ -1,55 +0,0 @@ | ||||
| --- sapi/fpm/php-fpm.conf.orig	2010-06-03 21:04:30.000000000 +0200 | ||||
| +++ sapi/fpm/php-fpm.conf	2010-06-03 22:40:41.000000000 +0200 | ||||
| @@ -8,7 +8,7 @@ | ||||
|  ; Include one or more files. If glob(3) exists, it is used to include a bunch of | ||||
|  ; files from a glob(3) pattern. This directive can be used everywhere in the | ||||
|  ; file. | ||||
| -;include=/etc/fpm.d/*.conf | ||||
| +;include=/etc/php/fpm-php5/fpm.d/*.conf | ||||
|   | ||||
|  ;;;;;;;;;;;;;;;;;; | ||||
|  ; Global Options ; | ||||
| @@ -17,11 +17,11 @@ | ||||
|  [global] | ||||
|  ; Pid file | ||||
|  ; Default Value: none | ||||
| -;pid = /var/lib/run/php-fpm.pid | ||||
| +;pid = /var/run/php-fpm.pid | ||||
|   | ||||
|  ; Error log file | ||||
|  ; Default Value: /var/lib/log/php-fpm.log | ||||
| -;error_log = /var/lib/log/php-fpm.log | ||||
| +error_log = /var/log/php-fpm.log | ||||
|   | ||||
|  ; Log level | ||||
|  ; Possible Values: alert, error, warning, notice, debug | ||||
| @@ -133,17 +133,17 @@ | ||||
|  ; The number of child processes created on startup. | ||||
|  ; Note: Used only when pm is set to 'dynamic' | ||||
|  ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 | ||||
| -;pm.start_servers = 20 | ||||
| +pm.start_servers = 20 | ||||
|   | ||||
|  ; The desired minimum number of idle server processes. | ||||
|  ; Note: Used only when pm is set to 'dynamic' | ||||
|  ; Note: Mandatory when pm is set to 'dynamic' | ||||
| -;pm.min_spare_servers = 5 | ||||
| +pm.min_spare_servers = 5 | ||||
|   | ||||
|  ; The desired maximum number of idle server processes. | ||||
|  ; Note: Used only when pm is set to 'dynamic' | ||||
|  ; Note: Mandatory when pm is set to 'dynamic' | ||||
| -;pm.max_spare_servers = 35 | ||||
| +pm.max_spare_servers = 35 | ||||
|    | ||||
|  ; The number of requests each child process should execute before respawning. | ||||
|  ; This can be useful to work around memory leaks in 3rd party libraries. For | ||||
| @@ -213,7 +213,7 @@ | ||||
|    | ||||
|  ; The log file for slow requests | ||||
|  ; Default Value: /var/lib/log/php-fpm.log.slow | ||||
| -;slowlog = /var/lib/log/php-fpm.log.slow | ||||
| +;slowlog = /var/log/php-fpm.log.slow | ||||
|    | ||||
|  ; Set open file descriptor rlimit. | ||||
|  ; Default Value: system defined value | ||||
| @@ -1,310 +0,0 @@ | ||||
| ;;;;;;;;;;;;;;;;;;;;; | ||||
| ; FPM Configuration ; | ||||
| ;;;;;;;;;;;;;;;;;;;;; | ||||
|  | ||||
| ; All relative paths in this configuration file are relative to PHP's install | ||||
| ; prefix (/usr/lib/php5.3). This prefix can be dynamicaly changed by using the | ||||
| ; '-p' argument from the command line. | ||||
|  | ||||
| ; Include one or more files. If glob(3) exists, it is used to include a bunch of | ||||
| ; files from a glob(3) pattern. This directive can be used everywhere in the | ||||
| ; file. | ||||
| ; Relative path can also be used. They will be prefixed by: | ||||
| ;  - the global prefix if it's been set (-p arguement) | ||||
| ;  - /usr/lib/php5.3 otherwise | ||||
| ;include=/etc/php/fpm-php5.3/fpm.d/*.conf | ||||
|  | ||||
| ;;;;;;;;;;;;;;;;;; | ||||
| ; Global Options ; | ||||
| ;;;;;;;;;;;;;;;;;; | ||||
|  | ||||
| [global] | ||||
| ; Pid file | ||||
| ; Note: the default prefix is /var/lib | ||||
| ; Default Value: none | ||||
| ; Note: The Gentoo init script expects the pid path | ||||
| ; to be set to /var/run/php-fpm.pid | ||||
| pid = /var/run/php-fpm.pid | ||||
|  | ||||
| ; Error log file | ||||
| ; Note: the default prefix is /var/lib | ||||
| ; Default Value: log/php-fpm.log | ||||
| error_log = /var/log/php-fpm.log | ||||
|  | ||||
| ; Log level | ||||
| ; Possible Values: alert, error, warning, notice, debug | ||||
| ; Default Value: notice | ||||
| ;log_level = notice | ||||
|  | ||||
| ; If this number of child processes exit with SIGSEGV or SIGBUS within the time | ||||
| ; interval set by emergency_restart_interval then FPM will restart. A value | ||||
| ; of '0' means 'Off'. | ||||
| ; Default Value: 0 | ||||
| ;emergency_restart_threshold = 0 | ||||
|  | ||||
| ; Interval of time used by emergency_restart_interval to determine when  | ||||
| ; a graceful restart will be initiated.  This can be useful to work around | ||||
| ; accidental corruptions in an accelerator's shared memory. | ||||
| ; Available Units: s(econds), m(inutes), h(ours), or d(ays) | ||||
| ; Default Unit: seconds | ||||
| ; Default Value: 0 | ||||
| ;emergency_restart_interval = 0 | ||||
|  | ||||
| ; Time limit for child processes to wait for a reaction on signals from master. | ||||
| ; Available units: s(econds), m(inutes), h(ours), or d(ays) | ||||
| ; Default Unit: seconds | ||||
| ; Default Value: 0 | ||||
| ;process_control_timeout = 0 | ||||
|  | ||||
| ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. | ||||
| ; Default Value: yes | ||||
| ;daemonize = yes | ||||
|  | ||||
| ;;;;;;;;;;;;;;;;;;;; | ||||
| ; Pool Definitions ;  | ||||
| ;;;;;;;;;;;;;;;;;;;; | ||||
|  | ||||
| ; Multiple pools of child processes may be started with different listening | ||||
| ; ports and different management options.  The name of the pool will be | ||||
| ; used in logs and stats. There is no limitation on the number of pools which | ||||
| ; FPM can handle. Your system will tell you anyway :) | ||||
|  | ||||
| ; Start a new pool named 'www'. | ||||
| ; the variable $pool can we used in any directive and will be replaced by the | ||||
| ; pool name ('www' here) | ||||
| [www] | ||||
|  | ||||
| ; Per pool prefix | ||||
| ; It only applies on the following directives: | ||||
| ; - 'slowlog' | ||||
| ; - 'listen' (unixsocket) | ||||
| ; - 'chroot' | ||||
| ; - 'chdir' | ||||
| ; - 'php_values' | ||||
| ; - 'php_admin_values' | ||||
| ; When not set, the global prefix (or /usr/lib/php5.3) applies instead. | ||||
| ; Note: This directive can also be relative to the global prefix. | ||||
| ; Default Value: none | ||||
| ;prefix = /path/to/pools/$pool | ||||
|  | ||||
| ; The address on which to accept FastCGI requests. | ||||
| ; Valid syntaxes are: | ||||
| ;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific address on | ||||
| ;                            a specific port; | ||||
| ;   'port'                 - to listen on a TCP socket to all addresses on a | ||||
| ;                            specific port; | ||||
| ;   '/path/to/unix/socket' - to listen on a unix socket. | ||||
| ; Note: This value is mandatory. | ||||
| listen = 127.0.0.1:9000 | ||||
|  | ||||
| ; Set listen(2) backlog. A value of '-1' means unlimited. | ||||
| ; Default Value: 128 (-1 on FreeBSD and OpenBSD) | ||||
| ;listen.backlog = -1 | ||||
|   | ||||
| ; List of ipv4 addresses of FastCGI clients which are allowed to connect. | ||||
| ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original | ||||
| ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address | ||||
| ; must be separated by a comma. If this value is left blank, connections will be | ||||
| ; accepted from any ip address. | ||||
| ; Default Value: any | ||||
| ;listen.allowed_clients = 127.0.0.1 | ||||
|  | ||||
| ; Set permissions for unix socket, if one is used. In Linux, read/write | ||||
| ; permissions must be set in order to allow connections from a web server. Many | ||||
| ; BSD-derived systems allow connections regardless of permissions.  | ||||
| ; Default Values: user and group are set as the running user | ||||
| ;                 mode is set to 0666 | ||||
| ;listen.owner = nobody | ||||
| ;listen.group = nobody | ||||
| ;listen.mode = 0666 | ||||
|  | ||||
| ; Unix user/group of processes | ||||
| ; Note: The user is mandatory. If the group is not set, the default user's group | ||||
| ;       will be used. | ||||
| user = nobody | ||||
| group = nobody | ||||
|  | ||||
| ; Choose how the process manager will control the number of child processes. | ||||
| ; Possible Values: | ||||
| ;   static  - a fixed number (pm.max_children) of child processes; | ||||
| ;   dynamic - the number of child processes are set dynamically based on the | ||||
| ;             following directives: | ||||
| ;             pm.max_children      - the maximum number of children that can | ||||
| ;                                    be alive at the same time. | ||||
| ;             pm.start_servers     - the number of children created on startup. | ||||
| ;             pm.min_spare_servers - the minimum number of children in 'idle' | ||||
| ;                                    state (waiting to process). If the number | ||||
| ;                                    of 'idle' processes is less than this | ||||
| ;                                    number then some children will be created. | ||||
| ;             pm.max_spare_servers - the maximum number of children in 'idle' | ||||
| ;                                    state (waiting to process). If the number | ||||
| ;                                    of 'idle' processes is greater than this | ||||
| ;                                    number then some children will be killed. | ||||
| ; Note: This value is mandatory. | ||||
| pm = dynamic | ||||
|  | ||||
| ; The number of child processes to be created when pm is set to 'static' and the | ||||
| ; maximum number of child processes to be created when pm is set to 'dynamic'. | ||||
| ; This value sets the limit on the number of simultaneous requests that will be | ||||
| ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. | ||||
| ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP | ||||
| ; CGI. | ||||
| ; Note: Used when pm is set to either 'static' or 'dynamic' | ||||
| ; Note: This value is mandatory. | ||||
| pm.max_children = 50 | ||||
|  | ||||
| ; The number of child processes created on startup. | ||||
| ; Note: Used only when pm is set to 'dynamic' | ||||
| ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 | ||||
| ;pm.start_servers = 20 | ||||
|  | ||||
| ; The desired minimum number of idle server processes. | ||||
| ; Note: Used only when pm is set to 'dynamic' | ||||
| ; Note: Mandatory when pm is set to 'dynamic' | ||||
| pm.min_spare_servers = 5 | ||||
|  | ||||
| ; The desired maximum number of idle server processes. | ||||
| ; Note: Used only when pm is set to 'dynamic' | ||||
| ; Note: Mandatory when pm is set to 'dynamic' | ||||
| pm.max_spare_servers = 35 | ||||
|   | ||||
| ; The number of requests each child process should execute before respawning. | ||||
| ; This can be useful to work around memory leaks in 3rd party libraries. For | ||||
| ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. | ||||
| ; Default Value: 0 | ||||
| ;pm.max_requests = 500 | ||||
|  | ||||
| ; The URI to view the FPM status page. If this value is not set, no URI will be | ||||
| ; recognized as a status page. By default, the status page shows the following | ||||
| ; information: | ||||
| ;   accepted conn        - the number of request accepted by the pool; | ||||
| ;   pool                 - the name of the pool; | ||||
| ;   process manager      - static or dynamic; | ||||
| ;   idle processes       - the number of idle processes; | ||||
| ;   active processes     - the number of active processes; | ||||
| ;   total processes      - the number of idle + active processes. | ||||
| ;   max children reached - number of times, the process limit has been reached, | ||||
| ;                          when pm tries to start more children (works only for | ||||
| ;                          pm 'dynamic') | ||||
| ; The values of 'idle processes', 'active processes' and 'total processes' are | ||||
| ; updated each second. The value of 'accepted conn' is updated in real time. | ||||
| ; Example output: | ||||
| ;   accepted conn:        12073 | ||||
| ;   pool:                 www | ||||
| ;   process manager:      static | ||||
| ;   idle processes:       35 | ||||
| ;   active processes:     65 | ||||
| ;   total processes:      100 | ||||
| ;   max children reached: 1 | ||||
| ; By default the status page output is formatted as text/plain. Passing either | ||||
| ; 'html' or 'json' as a query string will return the corresponding output | ||||
| ; syntax. Example: | ||||
| ;   http://www.foo.bar/status | ||||
| ;   http://www.foo.bar/status?json | ||||
| ;   http://www.foo.bar/status?html | ||||
| ; Note: The value must start with a leading slash (/). The value can be | ||||
| ;       anything, but it may not be a good idea to use the .php extension or it | ||||
| ;       may conflict with a real PHP file. | ||||
| ; Default Value: not set  | ||||
| ;pm.status_path = /status | ||||
|   | ||||
| ; The ping URI to call the monitoring page of FPM. If this value is not set, no | ||||
| ; URI will be recognized as a ping page. This could be used to test from outside | ||||
| ; that FPM is alive and responding, or to | ||||
| ; - create a graph of FPM availability (rrd or such); | ||||
| ; - remove a server from a group if it is not responding (load balancing); | ||||
| ; - trigger alerts for the operating team (24/7). | ||||
| ; Note: The value must start with a leading slash (/). The value can be | ||||
| ;       anything, but it may not be a good idea to use the .php extension or it | ||||
| ;       may conflict with a real PHP file. | ||||
| ; Default Value: not set | ||||
| ;ping.path = /ping | ||||
|  | ||||
| ; This directive may be used to customize the response of a ping request. The | ||||
| ; response is formatted as text/plain with a 200 response code. | ||||
| ; Default Value: pong | ||||
| ;ping.response = pong | ||||
|   | ||||
| ; The timeout for serving a single request after which the worker process will | ||||
| ; be killed. This option should be used when the 'max_execution_time' ini option | ||||
| ; does not stop script execution for some reason. A value of '0' means 'off'. | ||||
| ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) | ||||
| ; Default Value: 0 | ||||
| ;request_terminate_timeout = 0 | ||||
|   | ||||
| ; The timeout for serving a single request after which a PHP backtrace will be | ||||
| ; dumped to the 'slowlog' file. A value of '0s' means 'off'. | ||||
| ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) | ||||
| ; Default Value: 0 | ||||
| ;request_slowlog_timeout = 0 | ||||
|   | ||||
| ; The log file for slow requests | ||||
| ; Default Value: not set | ||||
| ; Note: slowlog is mandatory if request_slowlog_timeout is set | ||||
| ;slowlog = /var/log/php-fpm-$pool.log.slow | ||||
|   | ||||
| ; Set open file descriptor rlimit. | ||||
| ; Default Value: system defined value | ||||
| ;rlimit_files = 1024 | ||||
|   | ||||
| ; Set max core size rlimit. | ||||
| ; Possible Values: 'unlimited' or an integer greater or equal to 0 | ||||
| ; Default Value: system defined value | ||||
| ;rlimit_core = 0 | ||||
|   | ||||
| ; Chroot to this directory at the start. This value must be defined as an | ||||
| ; absolute path. When this value is not set, chroot is not used. | ||||
| ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one | ||||
| ; of its subdirectories. If the pool prefix is not set, the global prefix | ||||
| ; will be used instead. | ||||
| ; Note: chrooting is a great security feature and should be used whenever  | ||||
| ;       possible. However, all PHP paths will be relative to the chroot | ||||
| ;       (error_log, sessions.save_path, ...). | ||||
| ; Default Value: not set | ||||
| ;chroot =  | ||||
|   | ||||
| ; Chdir to this directory at the start. | ||||
| ; Note: relative path can be used. | ||||
| ; Default Value: current directory or / when chroot | ||||
| ;chdir = /var/www | ||||
|   | ||||
| ; Redirect worker stdout and stderr into main error log. If not set, stdout and | ||||
| ; stderr will be redirected to /dev/null according to FastCGI specs. | ||||
| ; Note: on highloaded environement, this can cause some delay in the page | ||||
| ; process time (several ms). | ||||
| ; Default Value: no | ||||
| ;catch_workers_output = yes | ||||
|   | ||||
| ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from | ||||
| ; the current environment. | ||||
| ; Default Value: clean env | ||||
| ;env[HOSTNAME] = $HOSTNAME | ||||
| ;env[PATH] = /usr/local/bin:/usr/bin:/bin | ||||
| ;env[TMP] = /tmp | ||||
| ;env[TMPDIR] = /tmp | ||||
| ;env[TEMP] = /tmp | ||||
|  | ||||
| ; Additional php.ini defines, specific to this pool of workers. These settings | ||||
| ; overwrite the values previously defined in the php.ini. The directives are the | ||||
| ; same as the PHP SAPI: | ||||
| ;   php_value/php_flag             - you can set classic ini defines which can | ||||
| ;                                    be overwritten from PHP call 'ini_set'.  | ||||
| ;   php_admin_value/php_admin_flag - these directives won't be overwritten by | ||||
| ;                                     PHP call 'ini_set' | ||||
| ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. | ||||
|  | ||||
| ; Defining 'extension' will load the corresponding shared extension from | ||||
| ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not | ||||
| ; overwrite previously defined php.ini values, but will append the new value | ||||
| ; instead. | ||||
|  | ||||
| ; Note: path INI options can be relative and will be expanded with the prefix | ||||
| ; (pool, global or /usr/lib/php5.3) | ||||
|  | ||||
| ; Default Value: nothing is defined by default except the values in php.ini and | ||||
| ;                specified at startup with the -d argument | ||||
| ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com | ||||
| ;php_flag[display_errors] = off | ||||
| ;php_admin_value[error_log] = /var/log/fpm-php.www.log | ||||
| ;php_admin_flag[log_errors] = on | ||||
| ;php_admin_value[memory_limit] = 32M | ||||
| @@ -1,311 +0,0 @@ | ||||
| ;;;;;;;;;;;;;;;;;;;;; | ||||
| ; FPM Configuration ; | ||||
| ;;;;;;;;;;;;;;;;;;;;; | ||||
|  | ||||
| ; All relative paths in this configuration file are relative to PHP's install | ||||
| ; prefix (/usr/lib/php5.3). This prefix can be dynamicaly changed by using the | ||||
| ; '-p' argument from the command line. | ||||
|  | ||||
| ; Include one or more files. If glob(3) exists, it is used to include a bunch of | ||||
| ; files from a glob(3) pattern. This directive can be used everywhere in the | ||||
| ; file. | ||||
| ; Relative path can also be used. They will be prefixed by: | ||||
| ;  - the global prefix if it's been set (-p arguement) | ||||
| ;  - /usr/lib/php5.3 otherwise | ||||
| ;include=/etc/php/fpm-php5.3/fpm.d/*.conf | ||||
|  | ||||
| ;;;;;;;;;;;;;;;;;; | ||||
| ; Global Options ; | ||||
| ;;;;;;;;;;;;;;;;;; | ||||
|  | ||||
| [global] | ||||
| ; Pid file | ||||
| ; Note: the default prefix is /var/lib | ||||
| ; Default Value: none | ||||
| ; Warning: pid file is overriden by the Gentoo init script. | ||||
| ; FPM will refuse to start if you uncomment this settingi and make use of the | ||||
| ; init script.  | ||||
| ; pid = /var/run/php-fpm.pid | ||||
|  | ||||
| ; Error log file | ||||
| ; Note: the default prefix is /var/lib | ||||
| ; Default Value: log/php-fpm.log | ||||
| error_log = /var/log/php-fpm.log | ||||
|  | ||||
| ; Log level | ||||
| ; Possible Values: alert, error, warning, notice, debug | ||||
| ; Default Value: notice | ||||
| ;log_level = notice | ||||
|  | ||||
| ; If this number of child processes exit with SIGSEGV or SIGBUS within the time | ||||
| ; interval set by emergency_restart_interval then FPM will restart. A value | ||||
| ; of '0' means 'Off'. | ||||
| ; Default Value: 0 | ||||
| ;emergency_restart_threshold = 0 | ||||
|  | ||||
| ; Interval of time used by emergency_restart_interval to determine when  | ||||
| ; a graceful restart will be initiated.  This can be useful to work around | ||||
| ; accidental corruptions in an accelerator's shared memory. | ||||
| ; Available Units: s(econds), m(inutes), h(ours), or d(ays) | ||||
| ; Default Unit: seconds | ||||
| ; Default Value: 0 | ||||
| ;emergency_restart_interval = 0 | ||||
|  | ||||
| ; Time limit for child processes to wait for a reaction on signals from master. | ||||
| ; Available units: s(econds), m(inutes), h(ours), or d(ays) | ||||
| ; Default Unit: seconds | ||||
| ; Default Value: 0 | ||||
| ;process_control_timeout = 0 | ||||
|  | ||||
| ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. | ||||
| ; Default Value: yes | ||||
| ;daemonize = yes | ||||
|  | ||||
| ;;;;;;;;;;;;;;;;;;;; | ||||
| ; Pool Definitions ;  | ||||
| ;;;;;;;;;;;;;;;;;;;; | ||||
|  | ||||
| ; Multiple pools of child processes may be started with different listening | ||||
| ; ports and different management options.  The name of the pool will be | ||||
| ; used in logs and stats. There is no limitation on the number of pools which | ||||
| ; FPM can handle. Your system will tell you anyway :) | ||||
|  | ||||
| ; Start a new pool named 'www'. | ||||
| ; the variable $pool can we used in any directive and will be replaced by the | ||||
| ; pool name ('www' here) | ||||
| [www] | ||||
|  | ||||
| ; Per pool prefix | ||||
| ; It only applies on the following directives: | ||||
| ; - 'slowlog' | ||||
| ; - 'listen' (unixsocket) | ||||
| ; - 'chroot' | ||||
| ; - 'chdir' | ||||
| ; - 'php_values' | ||||
| ; - 'php_admin_values' | ||||
| ; When not set, the global prefix (or /usr/lib/php5.3) applies instead. | ||||
| ; Note: This directive can also be relative to the global prefix. | ||||
| ; Default Value: none | ||||
| ;prefix = /path/to/pools/$pool | ||||
|  | ||||
| ; The address on which to accept FastCGI requests. | ||||
| ; Valid syntaxes are: | ||||
| ;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific address on | ||||
| ;                            a specific port; | ||||
| ;   'port'                 - to listen on a TCP socket to all addresses on a | ||||
| ;                            specific port; | ||||
| ;   '/path/to/unix/socket' - to listen on a unix socket. | ||||
| ; Note: This value is mandatory. | ||||
| listen = 127.0.0.1:9000 | ||||
|  | ||||
| ; Set listen(2) backlog. A value of '-1' means unlimited. | ||||
| ; Default Value: 128 (-1 on FreeBSD and OpenBSD) | ||||
| ;listen.backlog = -1 | ||||
|   | ||||
| ; List of ipv4 addresses of FastCGI clients which are allowed to connect. | ||||
| ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original | ||||
| ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address | ||||
| ; must be separated by a comma. If this value is left blank, connections will be | ||||
| ; accepted from any ip address. | ||||
| ; Default Value: any | ||||
| ;listen.allowed_clients = 127.0.0.1 | ||||
|  | ||||
| ; Set permissions for unix socket, if one is used. In Linux, read/write | ||||
| ; permissions must be set in order to allow connections from a web server. Many | ||||
| ; BSD-derived systems allow connections regardless of permissions.  | ||||
| ; Default Values: user and group are set as the running user | ||||
| ;                 mode is set to 0666 | ||||
| ;listen.owner = nobody | ||||
| ;listen.group = nobody | ||||
| ;listen.mode = 0666 | ||||
|  | ||||
| ; Unix user/group of processes | ||||
| ; Note: The user is mandatory. If the group is not set, the default user's group | ||||
| ;       will be used. | ||||
| user = nobody | ||||
| group = nobody | ||||
|  | ||||
| ; Choose how the process manager will control the number of child processes. | ||||
| ; Possible Values: | ||||
| ;   static  - a fixed number (pm.max_children) of child processes; | ||||
| ;   dynamic - the number of child processes are set dynamically based on the | ||||
| ;             following directives: | ||||
| ;             pm.max_children      - the maximum number of children that can | ||||
| ;                                    be alive at the same time. | ||||
| ;             pm.start_servers     - the number of children created on startup. | ||||
| ;             pm.min_spare_servers - the minimum number of children in 'idle' | ||||
| ;                                    state (waiting to process). If the number | ||||
| ;                                    of 'idle' processes is less than this | ||||
| ;                                    number then some children will be created. | ||||
| ;             pm.max_spare_servers - the maximum number of children in 'idle' | ||||
| ;                                    state (waiting to process). If the number | ||||
| ;                                    of 'idle' processes is greater than this | ||||
| ;                                    number then some children will be killed. | ||||
| ; Note: This value is mandatory. | ||||
| pm = dynamic | ||||
|  | ||||
| ; The number of child processes to be created when pm is set to 'static' and the | ||||
| ; maximum number of child processes to be created when pm is set to 'dynamic'. | ||||
| ; This value sets the limit on the number of simultaneous requests that will be | ||||
| ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. | ||||
| ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP | ||||
| ; CGI. | ||||
| ; Note: Used when pm is set to either 'static' or 'dynamic' | ||||
| ; Note: This value is mandatory. | ||||
| pm.max_children = 50 | ||||
|  | ||||
| ; The number of child processes created on startup. | ||||
| ; Note: Used only when pm is set to 'dynamic' | ||||
| ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 | ||||
| ;pm.start_servers = 20 | ||||
|  | ||||
| ; The desired minimum number of idle server processes. | ||||
| ; Note: Used only when pm is set to 'dynamic' | ||||
| ; Note: Mandatory when pm is set to 'dynamic' | ||||
| pm.min_spare_servers = 5 | ||||
|  | ||||
| ; The desired maximum number of idle server processes. | ||||
| ; Note: Used only when pm is set to 'dynamic' | ||||
| ; Note: Mandatory when pm is set to 'dynamic' | ||||
| pm.max_spare_servers = 35 | ||||
|   | ||||
| ; The number of requests each child process should execute before respawning. | ||||
| ; This can be useful to work around memory leaks in 3rd party libraries. For | ||||
| ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. | ||||
| ; Default Value: 0 | ||||
| ;pm.max_requests = 500 | ||||
|  | ||||
| ; The URI to view the FPM status page. If this value is not set, no URI will be | ||||
| ; recognized as a status page. By default, the status page shows the following | ||||
| ; information: | ||||
| ;   accepted conn        - the number of request accepted by the pool; | ||||
| ;   pool                 - the name of the pool; | ||||
| ;   process manager      - static or dynamic; | ||||
| ;   idle processes       - the number of idle processes; | ||||
| ;   active processes     - the number of active processes; | ||||
| ;   total processes      - the number of idle + active processes. | ||||
| ;   max children reached - number of times, the process limit has been reached, | ||||
| ;                          when pm tries to start more children (works only for | ||||
| ;                          pm 'dynamic') | ||||
| ; The values of 'idle processes', 'active processes' and 'total processes' are | ||||
| ; updated each second. The value of 'accepted conn' is updated in real time. | ||||
| ; Example output: | ||||
| ;   accepted conn:        12073 | ||||
| ;   pool:                 www | ||||
| ;   process manager:      static | ||||
| ;   idle processes:       35 | ||||
| ;   active processes:     65 | ||||
| ;   total processes:      100 | ||||
| ;   max children reached: 1 | ||||
| ; By default the status page output is formatted as text/plain. Passing either | ||||
| ; 'html' or 'json' as a query string will return the corresponding output | ||||
| ; syntax. Example: | ||||
| ;   http://www.foo.bar/status | ||||
| ;   http://www.foo.bar/status?json | ||||
| ;   http://www.foo.bar/status?html | ||||
| ; Note: The value must start with a leading slash (/). The value can be | ||||
| ;       anything, but it may not be a good idea to use the .php extension or it | ||||
| ;       may conflict with a real PHP file. | ||||
| ; Default Value: not set  | ||||
| ;pm.status_path = /status | ||||
|   | ||||
| ; The ping URI to call the monitoring page of FPM. If this value is not set, no | ||||
| ; URI will be recognized as a ping page. This could be used to test from outside | ||||
| ; that FPM is alive and responding, or to | ||||
| ; - create a graph of FPM availability (rrd or such); | ||||
| ; - remove a server from a group if it is not responding (load balancing); | ||||
| ; - trigger alerts for the operating team (24/7). | ||||
| ; Note: The value must start with a leading slash (/). The value can be | ||||
| ;       anything, but it may not be a good idea to use the .php extension or it | ||||
| ;       may conflict with a real PHP file. | ||||
| ; Default Value: not set | ||||
| ;ping.path = /ping | ||||
|  | ||||
| ; This directive may be used to customize the response of a ping request. The | ||||
| ; response is formatted as text/plain with a 200 response code. | ||||
| ; Default Value: pong | ||||
| ;ping.response = pong | ||||
|   | ||||
| ; The timeout for serving a single request after which the worker process will | ||||
| ; be killed. This option should be used when the 'max_execution_time' ini option | ||||
| ; does not stop script execution for some reason. A value of '0' means 'off'. | ||||
| ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) | ||||
| ; Default Value: 0 | ||||
| ;request_terminate_timeout = 0 | ||||
|   | ||||
| ; The timeout for serving a single request after which a PHP backtrace will be | ||||
| ; dumped to the 'slowlog' file. A value of '0s' means 'off'. | ||||
| ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) | ||||
| ; Default Value: 0 | ||||
| ;request_slowlog_timeout = 0 | ||||
|   | ||||
| ; The log file for slow requests | ||||
| ; Default Value: not set | ||||
| ; Note: slowlog is mandatory if request_slowlog_timeout is set | ||||
| ;slowlog = /var/log/php-fpm-$pool.log.slow | ||||
|   | ||||
| ; Set open file descriptor rlimit. | ||||
| ; Default Value: system defined value | ||||
| ;rlimit_files = 1024 | ||||
|   | ||||
| ; Set max core size rlimit. | ||||
| ; Possible Values: 'unlimited' or an integer greater or equal to 0 | ||||
| ; Default Value: system defined value | ||||
| ;rlimit_core = 0 | ||||
|   | ||||
| ; Chroot to this directory at the start. This value must be defined as an | ||||
| ; absolute path. When this value is not set, chroot is not used. | ||||
| ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one | ||||
| ; of its subdirectories. If the pool prefix is not set, the global prefix | ||||
| ; will be used instead. | ||||
| ; Note: chrooting is a great security feature and should be used whenever  | ||||
| ;       possible. However, all PHP paths will be relative to the chroot | ||||
| ;       (error_log, sessions.save_path, ...). | ||||
| ; Default Value: not set | ||||
| ;chroot =  | ||||
|   | ||||
| ; Chdir to this directory at the start. | ||||
| ; Note: relative path can be used. | ||||
| ; Default Value: current directory or / when chroot | ||||
| ;chdir = /var/www | ||||
|   | ||||
| ; Redirect worker stdout and stderr into main error log. If not set, stdout and | ||||
| ; stderr will be redirected to /dev/null according to FastCGI specs. | ||||
| ; Note: on highloaded environement, this can cause some delay in the page | ||||
| ; process time (several ms). | ||||
| ; Default Value: no | ||||
| ;catch_workers_output = yes | ||||
|   | ||||
| ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from | ||||
| ; the current environment. | ||||
| ; Default Value: clean env | ||||
| ;env[HOSTNAME] = $HOSTNAME | ||||
| ;env[PATH] = /usr/local/bin:/usr/bin:/bin | ||||
| ;env[TMP] = /tmp | ||||
| ;env[TMPDIR] = /tmp | ||||
| ;env[TEMP] = /tmp | ||||
|  | ||||
| ; Additional php.ini defines, specific to this pool of workers. These settings | ||||
| ; overwrite the values previously defined in the php.ini. The directives are the | ||||
| ; same as the PHP SAPI: | ||||
| ;   php_value/php_flag             - you can set classic ini defines which can | ||||
| ;                                    be overwritten from PHP call 'ini_set'.  | ||||
| ;   php_admin_value/php_admin_flag - these directives won't be overwritten by | ||||
| ;                                     PHP call 'ini_set' | ||||
| ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. | ||||
|  | ||||
| ; Defining 'extension' will load the corresponding shared extension from | ||||
| ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not | ||||
| ; overwrite previously defined php.ini values, but will append the new value | ||||
| ; instead. | ||||
|  | ||||
| ; Note: path INI options can be relative and will be expanded with the prefix | ||||
| ; (pool, global or /usr/lib/php5.3) | ||||
|  | ||||
| ; Default Value: nothing is defined by default except the values in php.ini and | ||||
| ;                specified at startup with the -d argument | ||||
| ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com | ||||
| ;php_flag[display_errors] = off | ||||
| ;php_admin_value[error_log] = /var/log/fpm-php.www.log | ||||
| ;php_admin_flag[log_errors] = on | ||||
| ;php_admin_value[memory_limit] = 32M | ||||
| @@ -1,40 +0,0 @@ | ||||
| #!/sbin/runscript | ||||
|  | ||||
| PHPSLOT="php5.3" | ||||
|  | ||||
| PHP_FPM_CONF="/etc/php/fpm-${PHPSLOT}/php-fpm.conf" | ||||
|  | ||||
| PHP_FPM_PID="/var/run/php-fpm.pid" | ||||
|  | ||||
| opts="depend start stop reload" | ||||
|  | ||||
| depend() { | ||||
| 	need net | ||||
| 	use apache2 lighttpd nginx | ||||
| } | ||||
|  | ||||
| start() { | ||||
|         ebegin "Starting PHP FastCGI Process Manager" | ||||
|         start-stop-daemon --start --pidfile ${PHP_FPM_PID} --exec /usr/bin/php-fpm -- -y "${PHP_FPM_CONF}" | ||||
|         local i=0 | ||||
|         local timeout=5 | ||||
|         while [ ! -f ${PHP_FPM_PID} ] && [ $i -le $timeout ]; do | ||||
|             sleep 1 | ||||
|             i=$(($i + 1)) | ||||
|         done | ||||
|          | ||||
|         [ $timeout -gt $i ] | ||||
|         eend $? | ||||
| } | ||||
|  | ||||
| stop() { | ||||
|         ebegin "Stopping PHP FastCGI Process Manager" | ||||
|         start-stop-daemon --signal QUIT --stop --exec /usr/bin/php-fpm --pidfile ${PHP_FPM_PID} | ||||
|         eend $? | ||||
| } | ||||
|  | ||||
| reload() { | ||||
|     ebegin "Reloading PHP FastCGI Process Manager" | ||||
|     [ -f ${PHP_FPM_PID} ] && kill -USR2 $(cat ${PHP_FPM_PID}) | ||||
|     eend $? | ||||
| } | ||||
| @@ -1,41 +0,0 @@ | ||||
| #!/sbin/runscript | ||||
|  | ||||
| PHPSLOT="php5.3" | ||||
|  | ||||
| PHP_FPM_CONF="/etc/php/fpm-${PHPSLOT}/php-fpm.conf" | ||||
|  | ||||
| PHP_FPM_PID="/var/run/php-fpm.pid" | ||||
|  | ||||
| opts="depend start stop reload" | ||||
|  | ||||
| depend() { | ||||
| 	need net | ||||
| 	use apache2 lighttpd nginx | ||||
| } | ||||
|  | ||||
| start() { | ||||
|         ebegin "Starting PHP FastCGI Process Manager" | ||||
|         start-stop-daemon --start --pidfile ${PHP_FPM_PID} --exec \ | ||||
|             /usr/bin/php-fpm -- -y "${PHP_FPM_CONF}" -g "${PHP_FPM_PID}" | ||||
|         local i=0 | ||||
|         local timeout=5 | ||||
|         while [ ! -f ${PHP_FPM_PID} ] && [ $i -le $timeout ]; do | ||||
|             sleep 1 | ||||
|             i=$(($i + 1)) | ||||
|         done | ||||
|          | ||||
|         [ $timeout -gt $i ] | ||||
|         eend $? | ||||
| } | ||||
|  | ||||
| stop() { | ||||
|         ebegin "Stopping PHP FastCGI Process Manager" | ||||
|         start-stop-daemon --signal QUIT --stop --exec /usr/bin/php-fpm --pidfile ${PHP_FPM_PID} | ||||
|         eend $? | ||||
| } | ||||
|  | ||||
| reload() { | ||||
|     ebegin "Reloading PHP FastCGI Process Manager" | ||||
|     [ -f ${PHP_FPM_PID} ] && kill -USR2 $(cat ${PHP_FPM_PID}) | ||||
|     eend $? | ||||
| } | ||||
| @@ -1,310 +0,0 @@ | ||||
| ;;;;;;;;;;;;;;;;;;;;; | ||||
| ; FPM Configuration ; | ||||
| ;;;;;;;;;;;;;;;;;;;;; | ||||
|  | ||||
| ; All relative paths in this configuration file are relative to PHP's install | ||||
| ; prefix (/usr/lib/php5.3). This prefix can be dynamicaly changed by using the | ||||
| ; '-p' argument from the command line. | ||||
|  | ||||
| ; Include one or more files. If glob(3) exists, it is used to include a bunch of | ||||
| ; files from a glob(3) pattern. This directive can be used everywhere in the | ||||
| ; file. | ||||
| ; Relative path can also be used. They will be prefixed by: | ||||
| ;  - the global prefix if it's been set (-p arguement) | ||||
| ;  - /usr/lib/php5.3 otherwise | ||||
| ;include=/etc/php/fpm-php5.3/fpm.d/*.conf | ||||
|  | ||||
| ;;;;;;;;;;;;;;;;;; | ||||
| ; Global Options ; | ||||
| ;;;;;;;;;;;;;;;;;; | ||||
|  | ||||
| [global] | ||||
| ; Pid file | ||||
| ; Note: the default prefix is /var/lib | ||||
| ; Default Value: none | ||||
| ; Note: The Gentoo init script expects the pid path | ||||
| ; to be set to /var/run/php-fpm.pid | ||||
| pid = /var/run/php-fpm.pid | ||||
|  | ||||
| ; Error log file | ||||
| ; Note: the default prefix is /var/lib | ||||
| ; Default Value: log/php-fpm.log | ||||
| error_log = /var/log/php-fpm.log | ||||
|  | ||||
| ; Log level | ||||
| ; Possible Values: alert, error, warning, notice, debug | ||||
| ; Default Value: notice | ||||
| ;log_level = notice | ||||
|  | ||||
| ; If this number of child processes exit with SIGSEGV or SIGBUS within the time | ||||
| ; interval set by emergency_restart_interval then FPM will restart. A value | ||||
| ; of '0' means 'Off'. | ||||
| ; Default Value: 0 | ||||
| ;emergency_restart_threshold = 0 | ||||
|  | ||||
| ; Interval of time used by emergency_restart_interval to determine when  | ||||
| ; a graceful restart will be initiated.  This can be useful to work around | ||||
| ; accidental corruptions in an accelerator's shared memory. | ||||
| ; Available Units: s(econds), m(inutes), h(ours), or d(ays) | ||||
| ; Default Unit: seconds | ||||
| ; Default Value: 0 | ||||
| ;emergency_restart_interval = 0 | ||||
|  | ||||
| ; Time limit for child processes to wait for a reaction on signals from master. | ||||
| ; Available units: s(econds), m(inutes), h(ours), or d(ays) | ||||
| ; Default Unit: seconds | ||||
| ; Default Value: 0 | ||||
| ;process_control_timeout = 0 | ||||
|  | ||||
| ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. | ||||
| ; Default Value: yes | ||||
| ;daemonize = yes | ||||
|  | ||||
| ;;;;;;;;;;;;;;;;;;;; | ||||
| ; Pool Definitions ;  | ||||
| ;;;;;;;;;;;;;;;;;;;; | ||||
|  | ||||
| ; Multiple pools of child processes may be started with different listening | ||||
| ; ports and different management options.  The name of the pool will be | ||||
| ; used in logs and stats. There is no limitation on the number of pools which | ||||
| ; FPM can handle. Your system will tell you anyway :) | ||||
|  | ||||
| ; Start a new pool named 'www'. | ||||
| ; the variable $pool can we used in any directive and will be replaced by the | ||||
| ; pool name ('www' here) | ||||
| [www] | ||||
|  | ||||
| ; Per pool prefix | ||||
| ; It only applies on the following directives: | ||||
| ; - 'slowlog' | ||||
| ; - 'listen' (unixsocket) | ||||
| ; - 'chroot' | ||||
| ; - 'chdir' | ||||
| ; - 'php_values' | ||||
| ; - 'php_admin_values' | ||||
| ; When not set, the global prefix (or /usr/lib/php5.3) applies instead. | ||||
| ; Note: This directive can also be relative to the global prefix. | ||||
| ; Default Value: none | ||||
| ;prefix = /path/to/pools/$pool | ||||
|  | ||||
| ; The address on which to accept FastCGI requests. | ||||
| ; Valid syntaxes are: | ||||
| ;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific address on | ||||
| ;                            a specific port; | ||||
| ;   'port'                 - to listen on a TCP socket to all addresses on a | ||||
| ;                            specific port; | ||||
| ;   '/path/to/unix/socket' - to listen on a unix socket. | ||||
| ; Note: This value is mandatory. | ||||
| listen = 127.0.0.1:9000 | ||||
|  | ||||
| ; Set listen(2) backlog. A value of '-1' means unlimited. | ||||
| ; Default Value: 128 (-1 on FreeBSD and OpenBSD) | ||||
| ;listen.backlog = -1 | ||||
|   | ||||
| ; List of ipv4 addresses of FastCGI clients which are allowed to connect. | ||||
| ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original | ||||
| ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address | ||||
| ; must be separated by a comma. If this value is left blank, connections will be | ||||
| ; accepted from any ip address. | ||||
| ; Default Value: any | ||||
| ;listen.allowed_clients = 127.0.0.1 | ||||
|  | ||||
| ; Set permissions for unix socket, if one is used. In Linux, read/write | ||||
| ; permissions must be set in order to allow connections from a web server. Many | ||||
| ; BSD-derived systems allow connections regardless of permissions.  | ||||
| ; Default Values: user and group are set as the running user | ||||
| ;                 mode is set to 0666 | ||||
| ;listen.owner = nobody | ||||
| ;listen.group = nobody | ||||
| ;listen.mode = 0666 | ||||
|  | ||||
| ; Unix user/group of processes | ||||
| ; Note: The user is mandatory. If the group is not set, the default user's group | ||||
| ;       will be used. | ||||
| user = nobody | ||||
| group = nobody | ||||
|  | ||||
| ; Choose how the process manager will control the number of child processes. | ||||
| ; Possible Values: | ||||
| ;   static  - a fixed number (pm.max_children) of child processes; | ||||
| ;   dynamic - the number of child processes are set dynamically based on the | ||||
| ;             following directives: | ||||
| ;             pm.max_children      - the maximum number of children that can | ||||
| ;                                    be alive at the same time. | ||||
| ;             pm.start_servers     - the number of children created on startup. | ||||
| ;             pm.min_spare_servers - the minimum number of children in 'idle' | ||||
| ;                                    state (waiting to process). If the number | ||||
| ;                                    of 'idle' processes is less than this | ||||
| ;                                    number then some children will be created. | ||||
| ;             pm.max_spare_servers - the maximum number of children in 'idle' | ||||
| ;                                    state (waiting to process). If the number | ||||
| ;                                    of 'idle' processes is greater than this | ||||
| ;                                    number then some children will be killed. | ||||
| ; Note: This value is mandatory. | ||||
| pm = dynamic | ||||
|  | ||||
| ; The number of child processes to be created when pm is set to 'static' and the | ||||
| ; maximum number of child processes to be created when pm is set to 'dynamic'. | ||||
| ; This value sets the limit on the number of simultaneous requests that will be | ||||
| ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. | ||||
| ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP | ||||
| ; CGI. | ||||
| ; Note: Used when pm is set to either 'static' or 'dynamic' | ||||
| ; Note: This value is mandatory. | ||||
| pm.max_children = 50 | ||||
|  | ||||
| ; The number of child processes created on startup. | ||||
| ; Note: Used only when pm is set to 'dynamic' | ||||
| ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 | ||||
| ;pm.start_servers = 20 | ||||
|  | ||||
| ; The desired minimum number of idle server processes. | ||||
| ; Note: Used only when pm is set to 'dynamic' | ||||
| ; Note: Mandatory when pm is set to 'dynamic' | ||||
| pm.min_spare_servers = 5 | ||||
|  | ||||
| ; The desired maximum number of idle server processes. | ||||
| ; Note: Used only when pm is set to 'dynamic' | ||||
| ; Note: Mandatory when pm is set to 'dynamic' | ||||
| pm.max_spare_servers = 35 | ||||
|   | ||||
| ; The number of requests each child process should execute before respawning. | ||||
| ; This can be useful to work around memory leaks in 3rd party libraries. For | ||||
| ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. | ||||
| ; Default Value: 0 | ||||
| ;pm.max_requests = 500 | ||||
|  | ||||
| ; The URI to view the FPM status page. If this value is not set, no URI will be | ||||
| ; recognized as a status page. By default, the status page shows the following | ||||
| ; information: | ||||
| ;   accepted conn        - the number of request accepted by the pool; | ||||
| ;   pool                 - the name of the pool; | ||||
| ;   process manager      - static or dynamic; | ||||
| ;   idle processes       - the number of idle processes; | ||||
| ;   active processes     - the number of active processes; | ||||
| ;   total processes      - the number of idle + active processes. | ||||
| ;   max children reached - number of times, the process limit has been reached, | ||||
| ;                          when pm tries to start more children (works only for | ||||
| ;                          pm 'dynamic') | ||||
| ; The values of 'idle processes', 'active processes' and 'total processes' are | ||||
| ; updated each second. The value of 'accepted conn' is updated in real time. | ||||
| ; Example output: | ||||
| ;   accepted conn:        12073 | ||||
| ;   pool:                 www | ||||
| ;   process manager:      static | ||||
| ;   idle processes:       35 | ||||
| ;   active processes:     65 | ||||
| ;   total processes:      100 | ||||
| ;   max children reached: 1 | ||||
| ; By default the status page output is formatted as text/plain. Passing either | ||||
| ; 'html' or 'json' as a query string will return the corresponding output | ||||
| ; syntax. Example: | ||||
| ;   http://www.foo.bar/status | ||||
| ;   http://www.foo.bar/status?json | ||||
| ;   http://www.foo.bar/status?html | ||||
| ; Note: The value must start with a leading slash (/). The value can be | ||||
| ;       anything, but it may not be a good idea to use the .php extension or it | ||||
| ;       may conflict with a real PHP file. | ||||
| ; Default Value: not set  | ||||
| ;pm.status_path = /status | ||||
|   | ||||
| ; The ping URI to call the monitoring page of FPM. If this value is not set, no | ||||
| ; URI will be recognized as a ping page. This could be used to test from outside | ||||
| ; that FPM is alive and responding, or to | ||||
| ; - create a graph of FPM availability (rrd or such); | ||||
| ; - remove a server from a group if it is not responding (load balancing); | ||||
| ; - trigger alerts for the operating team (24/7). | ||||
| ; Note: The value must start with a leading slash (/). The value can be | ||||
| ;       anything, but it may not be a good idea to use the .php extension or it | ||||
| ;       may conflict with a real PHP file. | ||||
| ; Default Value: not set | ||||
| ;ping.path = /ping | ||||
|  | ||||
| ; This directive may be used to customize the response of a ping request. The | ||||
| ; response is formatted as text/plain with a 200 response code. | ||||
| ; Default Value: pong | ||||
| ;ping.response = pong | ||||
|   | ||||
| ; The timeout for serving a single request after which the worker process will | ||||
| ; be killed. This option should be used when the 'max_execution_time' ini option | ||||
| ; does not stop script execution for some reason. A value of '0' means 'off'. | ||||
| ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) | ||||
| ; Default Value: 0 | ||||
| ;request_terminate_timeout = 0 | ||||
|   | ||||
| ; The timeout for serving a single request after which a PHP backtrace will be | ||||
| ; dumped to the 'slowlog' file. A value of '0s' means 'off'. | ||||
| ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) | ||||
| ; Default Value: 0 | ||||
| ;request_slowlog_timeout = 0 | ||||
|   | ||||
| ; The log file for slow requests | ||||
| ; Default Value: not set | ||||
| ; Note: slowlog is mandatory if request_slowlog_timeout is set | ||||
| ;slowlog = /var/log/php-fpm-$pool.log.slow | ||||
|   | ||||
| ; Set open file descriptor rlimit. | ||||
| ; Default Value: system defined value | ||||
| ;rlimit_files = 1024 | ||||
|   | ||||
| ; Set max core size rlimit. | ||||
| ; Possible Values: 'unlimited' or an integer greater or equal to 0 | ||||
| ; Default Value: system defined value | ||||
| ;rlimit_core = 0 | ||||
|   | ||||
| ; Chroot to this directory at the start. This value must be defined as an | ||||
| ; absolute path. When this value is not set, chroot is not used. | ||||
| ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one | ||||
| ; of its subdirectories. If the pool prefix is not set, the global prefix | ||||
| ; will be used instead. | ||||
| ; Note: chrooting is a great security feature and should be used whenever  | ||||
| ;       possible. However, all PHP paths will be relative to the chroot | ||||
| ;       (error_log, sessions.save_path, ...). | ||||
| ; Default Value: not set | ||||
| ;chroot =  | ||||
|   | ||||
| ; Chdir to this directory at the start. | ||||
| ; Note: relative path can be used. | ||||
| ; Default Value: current directory or / when chroot | ||||
| ;chdir = /var/www | ||||
|   | ||||
| ; Redirect worker stdout and stderr into main error log. If not set, stdout and | ||||
| ; stderr will be redirected to /dev/null according to FastCGI specs. | ||||
| ; Note: on highloaded environement, this can cause some delay in the page | ||||
| ; process time (several ms). | ||||
| ; Default Value: no | ||||
| ;catch_workers_output = yes | ||||
|   | ||||
| ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from | ||||
| ; the current environment. | ||||
| ; Default Value: clean env | ||||
| ;env[HOSTNAME] = $HOSTNAME | ||||
| ;env[PATH] = /usr/local/bin:/usr/bin:/bin | ||||
| ;env[TMP] = /tmp | ||||
| ;env[TMPDIR] = /tmp | ||||
| ;env[TEMP] = /tmp | ||||
|  | ||||
| ; Additional php.ini defines, specific to this pool of workers. These settings | ||||
| ; overwrite the values previously defined in the php.ini. The directives are the | ||||
| ; same as the PHP SAPI: | ||||
| ;   php_value/php_flag             - you can set classic ini defines which can | ||||
| ;                                    be overwritten from PHP call 'ini_set'.  | ||||
| ;   php_admin_value/php_admin_flag - these directives won't be overwritten by | ||||
| ;                                     PHP call 'ini_set' | ||||
| ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. | ||||
|  | ||||
| ; Defining 'extension' will load the corresponding shared extension from | ||||
| ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not | ||||
| ; overwrite previously defined php.ini values, but will append the new value | ||||
| ; instead. | ||||
|  | ||||
| ; Note: path INI options can be relative and will be expanded with the prefix | ||||
| ; (pool, global or /usr/lib/php5.3) | ||||
|  | ||||
| ; Default Value: nothing is defined by default except the values in php.ini and | ||||
| ;                specified at startup with the -d argument | ||||
| ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com | ||||
| ;php_flag[display_errors] = off | ||||
| ;php_admin_value[error_log] = /var/log/fpm-php.www.log | ||||
| ;php_admin_flag[log_errors] = on | ||||
| ;php_admin_value[memory_limit] = 32M | ||||
| @@ -1,22 +0,0 @@ | ||||
| #!/sbin/runscript | ||||
|  | ||||
| PHP_FPM_CONF="/etc/php/fpm-php5/php-fpm.conf" | ||||
|  | ||||
| opts="depend start stop reload" | ||||
|  | ||||
| depend() { | ||||
| 	need net | ||||
| 	use apache2 lighttpd nginx | ||||
| } | ||||
|  | ||||
| start() { | ||||
| 	ebegin "Starting PHP FastCGI server" | ||||
| 	start-stop-daemon --start --exec /usr/bin/php-fpm -- -y "${PHP_FPM_CONF}" | ||||
| 	eend $? | ||||
| } | ||||
|  | ||||
| stop() { | ||||
| 	ebegin "Stopping PHP FastCGI server" | ||||
| 	start-stop-daemon --stop --name php-fpm | ||||
| 	eend $? | ||||
| } | ||||
| @@ -1 +0,0 @@ | ||||
| PHP_5 { global: *; }; | ||||
| @@ -1,32 +0,0 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||||
| <pkgmetadata> | ||||
| 	<herd>php</herd> | ||||
| 	<use> | ||||
| 		<flag name='cli'>Enable CLI SAPI</flag> | ||||
| 		<flag name='discard-path'>Switch on common security setting for CGI SAPI</flag> | ||||
| 		<flag name='embed'>Enable embed SAPI</flag> | ||||
| 		<flag name='enchant'>Add supports Enchant spelling library.</flag> | ||||
| 		<flag name='fdftk'>Add supports for Adobe's FDF toolkit.</flag> | ||||
| 		<flag name='fileinfo'>Add fileinfo extension support</flag> | ||||
| 		<flag name='filter'>Add filter extension support</flag> | ||||
| 		<flag name='force-cgi-redirect'>Switch on common security setting for CGI SAPI</flag> | ||||
| 		<flag name='fpm'>Enable the FastCGI Process Manager SAPI</flag> | ||||
| 		<flag name='hash'>Enable the hash extension</flag> | ||||
| 		<flag name='intl'>Enables the intl extension for extended internalization support</flag> | ||||
| 		<flag name='json'>Enable JSON support</flag> | ||||
| 		<flag name='ldap-sasl'>Add SASL support for the PHP LDAP extension</flag> | ||||
| 		<flag name='mysqlnd'>Use native driver for mysql, mysqli, PDO_Mysql</flag> | ||||
| 		<flag name='pcre'>Adds support for Perl Compatible Regular Expressions  (deprecated: always "on" in php 5.3)</flag> | ||||
| 		<flag name='pic'>Force shared modules to build as PIC on x86 (speed tradeoff with memory usage)</flag> | ||||
| 		<flag name='pdo'>Enable the bundled PDO extensions</flag> | ||||
| 		<flag name='phar'>Enables the phar extension to provide phar archive support</flag> | ||||
| 		<flag name='reflection'>Enable the reflection extension (Reflection API) (deprecated: always "on" in php 5.3)</flag> | ||||
| 		<flag name='spl'>Adds support for the Standard PHP Library (deprecated: always "on" in php 5.3)</flag> | ||||
| 		<flag name='suhosin'>Add Suhosin support (patch and extension from http://www.suhosin.org/)</flag> | ||||
| 		<flag restrict=">=dev-lang/php-5.3.6_rc1" name='suhosin'>Add the Suhosin patch  from http://www.suhosin.org/)</flag> | ||||
| 		<flag name='xmlreader'>Enable XMLReader support</flag> | ||||
| 		<flag name='xmlwriter'>Enable XMLWriter support</flag> | ||||
| 		<flag name='zip'>Enable ZIP file support</flag> | ||||
| 	</use> | ||||
| </pkgmetadata> | ||||
| @@ -1,339 +0,0 @@ | ||||
| # Copyright 1999-2011 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.2.17.ebuild,v 1.14 2011/08/22 13:42:39 olemarkus Exp $ | ||||
|  | ||||
| EAPI=2 | ||||
|  | ||||
| PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob | ||||
| interbase msql oci8 sapdb solid" | ||||
|  | ||||
| inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool | ||||
|  | ||||
| #SUHOSIN_VERSION="$PV-0.9.7" | ||||
| SUHOSIN_VERSION="5.2.16-0.9.7" | ||||
| EXPECTED_TEST_FAILURES="" | ||||
|  | ||||
| KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86" | ||||
|  | ||||
| function php_get_uri () | ||||
| { | ||||
| 	case "${1}" in | ||||
| 		"php-pre") | ||||
| 			echo "http://downloads.php.net/johannes/${2}" | ||||
| 		;; | ||||
| 		"php") | ||||
| 			echo "http://www.php.net/distributions/${2}" | ||||
| 		;; | ||||
| 		"suhosin") | ||||
| 			echo "http://download.suhosin.org/${2}" | ||||
| 		;; | ||||
| 		"gentoo") | ||||
| 			echo "mirror://gentoo/${2}" | ||||
| 		;; | ||||
| 		*) | ||||
| 			die "unhandled case in php_get_uri" | ||||
| 		;; | ||||
| 	esac | ||||
| } | ||||
|  | ||||
| PHP_MV="$(get_major_version)" | ||||
|  | ||||
| # alias, so we can handle different types of releases (finals, rcs, alphas, | ||||
| # betas, ...) w/o changing the whole ebuild | ||||
| PHP_PV="${PV/_rc/RC}" | ||||
| PHP_RELEASE="php" | ||||
| PHP_P="${PN}-${PHP_PV}" | ||||
| PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" | ||||
|  | ||||
| PHP_PATCHSET="0" | ||||
| PHP_PATCHSECURITY="20121114" | ||||
| PHP_PATCHSET_URI=" | ||||
| 	$(php_get_uri gentoo "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")" | ||||
|  | ||||
| if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then | ||||
| 	# in some cases we use our own suhosin patch (very recent version, | ||||
| 	# patch conflicts, etc.) | ||||
| 	SUHOSIN_TYPE="gentoo" | ||||
| else | ||||
| 	SUHOSIN_TYPE="suhosin" | ||||
| fi | ||||
|  | ||||
| if [[ -n ${SUHOSIN_VERSION} ]]; then | ||||
| 	SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch" | ||||
| 	SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )" | ||||
| fi | ||||
|  | ||||
| SRC_URI=" | ||||
| 	${PHP_SRC_URI} | ||||
| 	http://php52-backports.googlecode.com/files/php52-backports-security-${PHP_PATCHSECURITY}.patch | ||||
| 	${PHP_PATCHSET_URI}" | ||||
|  | ||||
| if [[ -n ${SUHOSIN_VERSION} ]]; then | ||||
| 	SRC_URI="${SRC_URI} | ||||
| 		suhosin? ( ${SUHOSIN_URI} )" | ||||
| fi | ||||
|  | ||||
| DESCRIPTION="The PHP language runtime engine: CLI, CGI, Apache2 and embed SAPIs." | ||||
| HOMEPAGE="http://php.net/" | ||||
| LICENSE="PHP-3" | ||||
|  | ||||
| # We can build the following SAPIs in the given order | ||||
| SAPIS="cli cgi embed apache2" | ||||
|  | ||||
| # Gentoo-specific, common features | ||||
| IUSE="kolab" | ||||
|  | ||||
| # SAPIs and SAPI-specific USE flags (cli SAPI is default on): | ||||
| IUSE="${IUSE} | ||||
| 	${SAPIS/cli/+cli} | ||||
| 	threads force-cgi-redirect discard-path" | ||||
|  | ||||
| IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk | ||||
| 	crypt +ctype curl curlwrappers db2 dbase dbmaker debug doc empress | ||||
| 	empress-bcs esoob exif fdftk frontbase +filter firebird | ||||
| 	flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile | ||||
| 	interbase iodbc ipv6 +json kerberos ldap ldap-sasl libedit | ||||
| 	mhash msql mssql mysql mysqli ncurses nls oci8 | ||||
| 	oci8-instant-client odbc pcntl +pcre pdo pic +posix postgres qdbm | ||||
| 	readline recode reflection sapdb +session sharedext sharedmem | ||||
| 	+simplexml snmp soap sockets solid spell spl sqlite ssl suhosin | ||||
| 	sybase-ct sysvipc tidy +tokenizer truetype unicode wddx | ||||
| 	xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib" | ||||
|  | ||||
| # Enable suhosin if available | ||||
| [[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin" | ||||
|  | ||||
| DEPEND=">=app-admin/eselect-php-0.6.2 | ||||
| 	pcre? ( >=dev-libs/libpcre-7.9[unicode] ) | ||||
| 	adabas? ( >=dev-db/unixODBC-1.8.13 ) | ||||
| 	apache2? ( www-servers/apache[threads=] ) | ||||
| 	berkdb? ( =sys-libs/db-4* ) | ||||
| 	birdstep? ( >=dev-db/unixODBC-1.8.13 ) | ||||
| 	bzip2? ( app-arch/bzip2 ) | ||||
| 	cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) | ||||
| 	cjk? ( !gd? ( !gd-external? ( | ||||
| 		virtual/jpeg | ||||
| 		media-libs/libpng | ||||
| 		sys-libs/zlib | ||||
| 	) ) ) | ||||
| 	crypt? ( >=dev-libs/libmcrypt-2.4 ) | ||||
| 	curl? ( >=net-misc/curl-7.10.5 ) | ||||
| 	db2? ( >=dev-db/unixODBC-1.8.13 ) | ||||
| 	dbmaker? ( >=dev-db/unixODBC-1.8.13 ) | ||||
| 	empress? ( >=dev-db/unixODBC-1.8.13 ) | ||||
| 	empress-bcs? ( >=dev-db/unixODBC-1.8.13 ) | ||||
| 	esoob? ( >=dev-db/unixODBC-1.8.13 ) | ||||
| 	exif? ( !gd? ( !gd-external? ( | ||||
| 		virtual/jpeg | ||||
| 		media-libs/libpng | ||||
| 		sys-libs/zlib | ||||
| 	) ) ) | ||||
| 	fdftk? ( app-text/fdftk ) | ||||
| 	firebird? ( dev-db/firebird ) | ||||
| 	gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) | ||||
| 	gd-external? ( media-libs/gd ) | ||||
| 	gdbm? ( >=sys-libs/gdbm-1.8.0 ) | ||||
| 	gmp? ( >=dev-libs/gmp-4.1.2 ) | ||||
| 	iconv? ( virtual/libiconv ) | ||||
| 	imap? ( virtual/imap-c-client[ssl=] ) | ||||
| 	iodbc? ( dev-db/libiodbc ) | ||||
| 	kerberos? ( virtual/krb5 ) | ||||
| 	kolab? ( >=net-libs/c-client-2004g-r1 ) | ||||
| 	ldap? ( !oci8? ( >=net-nds/openldap-1.2.11 ) ) | ||||
| 	ldap-sasl? ( !oci8? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) ) | ||||
| 	libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) | ||||
| 	mhash? ( app-crypt/mhash ) | ||||
| 	mssql? ( dev-db/freetds[mssql] ) | ||||
| 	mysql? ( virtual/mysql ) | ||||
| 	mysqli? ( >=virtual/mysql-4.1 ) | ||||
| 	ncurses? ( sys-libs/ncurses ) | ||||
| 	nls? ( sys-devel/gettext ) | ||||
| 	oci8-instant-client? ( dev-db/oracle-instantclient-basic ) | ||||
| 	odbc? ( >=dev-db/unixODBC-1.8.13 ) | ||||
| 	postgres? ( dev-db/postgresql-base ) | ||||
| 	qdbm? ( dev-db/qdbm ) | ||||
| 	readline? ( sys-libs/readline ) | ||||
| 	recode? ( app-text/recode ) | ||||
| 	sapdb? ( >=dev-db/unixODBC-1.8.13 ) | ||||
| 	sharedmem? ( dev-libs/mm ) | ||||
| 	simplexml? ( >=dev-libs/libxml2-2.6.8 ) | ||||
| 	snmp? ( >=net-analyzer/net-snmp-5.2 ) | ||||
| 	soap? ( >=dev-libs/libxml2-2.6.8 ) | ||||
| 	solid? ( >=dev-db/unixODBC-1.8.13 ) | ||||
| 	spell? ( >=app-text/aspell-0.50 ) | ||||
| 	sqlite? ( =dev-db/sqlite-2* pdo? ( =dev-db/sqlite-3* ) ) | ||||
| 	ssl? ( >=dev-libs/openssl-0.9.7 ) | ||||
| 	sybase-ct? ( dev-db/freetds ) | ||||
| 	tidy? ( app-text/htmltidy ) | ||||
| 	truetype? ( | ||||
| 		=media-libs/freetype-2* | ||||
| 		>=media-libs/t1lib-5.0.0 | ||||
| 		!gd? ( !gd-external? ( | ||||
| 			virtual/jpeg media-libs/libpng sys-libs/zlib ) ) | ||||
| 	) | ||||
| 	wddx? ( >=dev-libs/libxml2-2.6.8 ) | ||||
| 	xml? ( >=dev-libs/libxml2-2.6.8 ) | ||||
| 	xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv ) | ||||
| 	xmlreader? ( >=dev-libs/libxml2-2.6.8 ) | ||||
| 	xmlwriter? ( >=dev-libs/libxml2-2.6.8 ) | ||||
| 	xpm? ( | ||||
| 		x11-libs/libXpm | ||||
| 		virtual/jpeg | ||||
| 		media-libs/libpng sys-libs/zlib | ||||
| 	) | ||||
| 	xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 ) | ||||
| 	zip? ( sys-libs/zlib ) | ||||
| 	zlib? ( sys-libs/zlib ) | ||||
| 	virtual/mta | ||||
| " | ||||
|  | ||||
| php="=${CATEGORY}/${PF}" | ||||
| RDEPEND="${DEPEND} | ||||
| 	truetype? ( || ( $php[gd] $php[gd-external] ) ) | ||||
| 	cjk? ( || ( $php[gd] $php[gd-external] ) ) | ||||
| 	exif? ( || ( $php[gd] $php[gd-external] ) ) | ||||
|  | ||||
| 	xpm? ( $php[gd] ) | ||||
| 	gd? ( $php[zlib,-gd-external] ) | ||||
| 	gd-external? ( $php[-gd] ) | ||||
| 	simplexml? ( $php[xml] ) | ||||
| 	soap? ( $php[xml] ) | ||||
| 	wddx? ( $php[xml] ) | ||||
| 	xmlrpc? ( || ( $php[xml] $php[iconv] ) ) | ||||
| 	xmlreader? ( $php[xml] ) | ||||
| 	xsl? ( $php[xml] ) | ||||
| 	ldap-sasl? ( $php[ldap,-oci8] ) | ||||
| 	suhosin? ( $php[unicode] ) | ||||
| 	adabas? ( $php[odbc] ) | ||||
| 	birdstep? ( $php[odbc] ) | ||||
| 	dbmaker? ( $php[odbc] ) | ||||
| 	empress-bcs? ( $php[empress] ) | ||||
| 	empress? ( $php[odbc] ) | ||||
| 	esoob? ( $php[odbc] ) | ||||
| 	db2? ( $php[odbc] ) | ||||
| 	sapdb? ( $php[odbc] ) | ||||
| 	solid? ( $php[odbc] ) | ||||
| 	kolab? ( $php[imap] ) | ||||
|  | ||||
| 	oci8? ( $php[-oci8-instant-client,-ldap-sasl] ) | ||||
| 	oci8-instant-client? ( $php[-oci8] ) | ||||
|  | ||||
| 	qdbm? ( $php[-gdbm] ) | ||||
| 	readline? ( $php[-libedit] ) | ||||
| 	recode? ( $php[-imap,-mysql,-mysqli] ) | ||||
| 	firebird? ( $php[-interbase] ) | ||||
| 	sharedmem? ( $php[-threads] ) | ||||
|  | ||||
| 	!cli? ( !cgi? ( !apache2? ( !embed? ( $php[cli] ) ) ) ) | ||||
|  | ||||
| 	filter? ( !dev-php${PHP_MV}/pecl-filter ) | ||||
| 	json? ( !dev-php${PHP_MV}/pecl-json ) | ||||
| 	zip? ( !dev-php${PHP_MV}/pecl-zip )" | ||||
|  | ||||
| [[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( $php[unicode] )" | ||||
|  | ||||
| DEPEND="${DEPEND} | ||||
| 	sys-devel/flex | ||||
| 	>=sys-devel/m4-1.4.3 | ||||
| 	>=sys-devel/libtool-1.5.18" | ||||
|  | ||||
| # They are in PDEPEND because we need PHP installed first! | ||||
| PDEPEND="doc? ( app-doc/php-docs )" | ||||
|  | ||||
| SLOT="5.2" | ||||
| S="${WORKDIR}/${PHP_P}" | ||||
|  | ||||
| # Allow users to install production version if they want to | ||||
| # PHP 5.2 has other filenames for prod and dev versions | ||||
|  | ||||
| case "${PHP_INI_VERSION}" in | ||||
| 	production) | ||||
| 		PHP_INI_UPSTREAM="php.ini-recommended" | ||||
| 		;; | ||||
| 	development) | ||||
| 		PHP_INI_UPSTREAM="php.ini-dist" | ||||
| 		;; | ||||
| 	*) | ||||
| 		PHP_INI_VERSION="development" | ||||
| 		PHP_INI_UPSTREAM="php.ini-dist" | ||||
| 		;; | ||||
| esac | ||||
|  | ||||
| PHP_INI_FILE="php.ini" | ||||
|  | ||||
| want_apache | ||||
|  | ||||
| # eblit-core | ||||
| # Usage: <function> [version] [eval] | ||||
| # Main eblit engine | ||||
| eblit-core() { | ||||
| 	[[ -z $FILESDIR ]] && FILESDIR="$(dirname $EBUILD)/files" | ||||
| 	local e v func=$1 ver=$2 eval_=$3 | ||||
| 	for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do | ||||
| 		e="${FILESDIR}/eblits/${func}${v}.eblit" | ||||
| 		if [[ -e ${e} ]] ; then | ||||
| 			. "${e}" | ||||
| 			[[ ${eval_} == 1 ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" | ||||
| 			return 0 | ||||
| 		fi | ||||
| 	done | ||||
| 	return 1 | ||||
| } | ||||
|  | ||||
| # eblit-include | ||||
| # Usage: [--skip] <function> [version] | ||||
| # Includes an "eblit" -- a chunk of common code among ebuilds in a given | ||||
| # package so that its functions can be sourced and utilized within the | ||||
| # ebuild. | ||||
| eblit-include() { | ||||
| 	local skipable=false r=0 | ||||
| 	[[ $1 == "--skip" ]] && skipable=true && shift | ||||
| 	[[ $1 == pkg_* ]] && skipable=true | ||||
|  | ||||
| 	[[ -z $1 ]] && die "Usage: eblit-include <function> [version]" | ||||
| 	eblit-core $1 $2 | ||||
| 	r="$?" | ||||
| 	${skipable} && return 0 | ||||
| 	[[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" | ||||
| } | ||||
|  | ||||
| # eblit-run-maybe | ||||
| # Usage: <function> | ||||
| # Runs a function if it is defined in an eblit | ||||
| eblit-run-maybe() { | ||||
| 	[[ $(type -t "$@") == "function" ]] && "$@" | ||||
| } | ||||
|  | ||||
| # eblit-run | ||||
| # Usage: <function> [version] | ||||
| # Runs a function defined in an eblit | ||||
| eblit-run() { | ||||
| 	eblit-include --skip common "${*:2}" | ||||
| 	eblit-include "$@" | ||||
| 	eblit-run-maybe eblit-$1-pre | ||||
| 	eblit-${PN}-$1 | ||||
| 	eblit-run-maybe eblit-$1-post | ||||
| } | ||||
|  | ||||
| # eblit-pkg | ||||
| # Usage: <phase> [version] | ||||
| # Includes the given functions AND evals them so they're included in the binpkgs | ||||
| eblit-pkg() { | ||||
| 	[[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" | ||||
| 	eblit-core $1 $2 1 | ||||
| } | ||||
|  | ||||
| eblit-pkg pkg_setup v2 | ||||
|  | ||||
| src_prepare() { | ||||
|   cd "${S}" | ||||
|   epatch "${DISTDIR}/php52-backports-security-${PHP_PATCHSECURITY}.patch" | ||||
|   epatch "${FILESDIR}/pcre_info.patch" | ||||
|   eblit-run src_prepare v2 ; | ||||
| } | ||||
| src_configure() { eblit-run src_configure v521 ; } | ||||
| src_compile() { eblit-run src_compile v1 ; } | ||||
| src_install() { eblit-run src_install v2 ; } | ||||
| src_test() { eblit-run src_test v1 ; } | ||||
| pkg_postinst() { eblit-run pkg_postinst v2 ; } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user