summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Darlow <mail@mcgruff.plus.com>2012-07-02 01:35:55 +0100
committerNoel Darlow <mail@mcgruff.plus.com>2012-07-02 01:35:55 +0100
commit4028ac795a9dd628dfa9586f5af582ba1c05c78a (patch)
tree91dfe8cd0ec851c845656f702c1795869927fd77
parentstill trying.. (diff)
downloadunderlay-4028ac795a9dd628dfa9586f5af582ba1c05c78a.tar.gz
underlay-4028ac795a9dd628dfa9586f5af582ba1c05c78a.tar.bz2
underlay-4028ac795a9dd628dfa9586f5af582ba1c05c78a.zip
still trying..
-rw-r--r--dev-lang/php/CVS/Entries5
-rw-r--r--dev-lang/php/CVS/Repository1
-rw-r--r--dev-lang/php/CVS/Root1
-rw-r--r--dev-lang/php/CVS/Tag1
-rw-r--r--dev-lang/php/files/CVS/Entries12
-rw-r--r--dev-lang/php/files/CVS/Repository1
-rw-r--r--dev-lang/php/files/CVS/Root1
-rw-r--r--dev-lang/php/files/CVS/Tag1
-rw-r--r--dev-lang/php/files/digest-php-4.0.4_p12
-rw-r--r--dev-lang/php/files/digest-php-4.0.51
-rw-r--r--dev-lang/php/files/digest-php-4.0.61
-rw-r--r--dev-lang/php/files/digest-php-4.0.6-r11
-rw-r--r--dev-lang/php/files/digest-php-4.0.6-r21
-rw-r--r--dev-lang/php/files/digest-php-4.0.6-r31
-rw-r--r--dev-lang/php/files/digest-php-4.0.6-r41
-rw-r--r--dev-lang/php/files/digest-php-4.0.6-r51
-rw-r--r--dev-lang/php/files/digest-php-4.0.6-r7001
-rw-r--r--dev-lang/php/files/digest-php-4.1.11
-rw-r--r--dev-lang/php/files/digest-php-4.1.1-r11
-rw-r--r--dev-lang/php/files/digest-php-4.1.1-r21
-rw-r--r--dev-lang/php/files/digest-php-4.1.1-r31
-rw-r--r--dev-lang/php/files/digest-php-4.1.1-r41
-rw-r--r--dev-lang/php/files/digest-php-4.1.1-r51
-rw-r--r--dev-lang/php/files/digest-php-4.1.21
-rw-r--r--dev-lang/php/files/digest-php-4.1.2-r11
-rw-r--r--dev-lang/php/files/digest-php-4.1.2-r21
-rw-r--r--dev-lang/php/files/digest-php-4.1.2-r31
-rw-r--r--dev-lang/php/files/digest-php-4.1.2-r41
-rw-r--r--dev-lang/php/files/digest-php-4.1.2-r51
-rw-r--r--dev-lang/php/files/digest-php-4.1.2-r61
-rw-r--r--dev-lang/php/files/digest-php-4.1.2-r71
-rw-r--r--dev-lang/php/files/digest-php-4.1.2-r81
-rw-r--r--dev-lang/php/files/digest-php-4.1.2-r91
-rw-r--r--dev-lang/php/files/digest-php-4.2.01
-rw-r--r--dev-lang/php/files/digest-php-4.2.11
-rw-r--r--dev-lang/php/files/digest-php-4.2.1-r11
-rw-r--r--dev-lang/php/files/digest-php-4.2.1-r21
-rw-r--r--dev-lang/php/files/digest-php-4.2.1-r31
-rw-r--r--dev-lang/php/files/digest-php-4.3.112
-rw-r--r--dev-lang/php/files/digest-php-4.3.11-r13
-rw-r--r--dev-lang/php/files/digest-php-4.3.11-r23
-rw-r--r--dev-lang/php/files/digest-php-4.3.11-r33
-rw-r--r--dev-lang/php/files/digest-php-4.3.11-r43
-rw-r--r--dev-lang/php/files/digest-php-4.3.11-r53
-rw-r--r--dev-lang/php/files/digest-php-4.4.02
-rw-r--r--dev-lang/php/files/digest-php-4.4.0-r13
-rw-r--r--dev-lang/php/files/digest-php-4.4.0-r23
-rw-r--r--dev-lang/php/files/digest-php-4.4.0-r33
-rw-r--r--dev-lang/php/files/digest-php-4.4.0-r43
-rw-r--r--dev-lang/php/files/digest-php-4.4.11
-rw-r--r--dev-lang/php/files/digest-php-4.4.1-r12
-rw-r--r--dev-lang/php/files/digest-php-4.4.1-r22
-rw-r--r--dev-lang/php/files/digest-php-4.4.1-r32
-rw-r--r--dev-lang/php/files/digest-php-4.4.29
-rw-r--r--dev-lang/php/files/digest-php-4.4.2-r19
-rw-r--r--dev-lang/php/files/digest-php-4.4.2-r29
-rw-r--r--dev-lang/php/files/digest-php-4.4.2-r39
-rw-r--r--dev-lang/php/files/digest-php-4.4.2-r59
-rw-r--r--dev-lang/php/files/digest-php-4.4.2-r69
-rw-r--r--dev-lang/php/files/digest-php-4.4.3-r19
-rw-r--r--dev-lang/php/files/digest-php-4.4.49
-rw-r--r--dev-lang/php/files/digest-php-4.4.4-r19
-rw-r--r--dev-lang/php/files/digest-php-4.4.4-r29
-rw-r--r--dev-lang/php/files/digest-php-4.4.4-r49
-rw-r--r--dev-lang/php/files/digest-php-4.4.4-r69
-rw-r--r--dev-lang/php/files/digest-php-4.4.4-r89
-rw-r--r--dev-lang/php/files/digest-php-4.4.69
-rw-r--r--dev-lang/php/files/digest-php-4.4.79
-rw-r--r--dev-lang/php/files/digest-php-4.4.89
-rw-r--r--dev-lang/php/files/digest-php-4.4.8_pre200708169
-rw-r--r--dev-lang/php/files/digest-php-5.0.42
-rw-r--r--dev-lang/php/files/digest-php-5.0.4-r13
-rw-r--r--dev-lang/php/files/digest-php-5.0.4-r23
-rw-r--r--dev-lang/php/files/digest-php-5.0.4-r33
-rw-r--r--dev-lang/php/files/digest-php-5.0.4-r43
-rw-r--r--dev-lang/php/files/digest-php-5.0.51
-rw-r--r--dev-lang/php/files/digest-php-5.0.5-r12
-rw-r--r--dev-lang/php/files/digest-php-5.0.5-r22
-rw-r--r--dev-lang/php/files/digest-php-5.0.5-r32
-rw-r--r--dev-lang/php/files/digest-php-5.0.5-r42
-rw-r--r--dev-lang/php/files/digest-php-5.0.5-r52
-rw-r--r--dev-lang/php/files/digest-php-5.1.12
-rw-r--r--dev-lang/php/files/digest-php-5.1.29
-rw-r--r--dev-lang/php/files/digest-php-5.1.2-r19
-rw-r--r--dev-lang/php/files/digest-php-5.1.49
-rw-r--r--dev-lang/php/files/digest-php-5.1.4-r19
-rw-r--r--dev-lang/php/files/digest-php-5.1.4-r39
-rw-r--r--dev-lang/php/files/digest-php-5.1.4-r49
-rw-r--r--dev-lang/php/files/digest-php-5.1.4-r69
-rw-r--r--dev-lang/php/files/digest-php-5.1.69
-rw-r--r--dev-lang/php/files/digest-php-5.1.6-r19
-rw-r--r--dev-lang/php/files/digest-php-5.1.6-r119
-rw-r--r--dev-lang/php/files/digest-php-5.1.6-r29
-rw-r--r--dev-lang/php/files/digest-php-5.1.6-r49
-rw-r--r--dev-lang/php/files/digest-php-5.1.6-r69
-rw-r--r--dev-lang/php/files/digest-php-5.1.6-r89
-rw-r--r--dev-lang/php/files/digest-php-5.2.1-r39
-rw-r--r--dev-lang/php/files/digest-php-5.2.2-r19
-rw-r--r--dev-lang/php/files/digest-php-5.2.3-r39
-rw-r--r--dev-lang/php/files/digest-php-5.2.49
-rw-r--r--dev-lang/php/files/digest-php-5.2.4_p200709149
-rw-r--r--dev-lang/php/files/digest-php-5.2.4_p20070914-r29
-rw-r--r--dev-lang/php/files/digest-php-5.2.4_pre200708051230-r29
-rw-r--r--dev-lang/php/files/digest-php-5.2.59
-rw-r--r--dev-lang/php/files/digest-php-5.2.5-r19
-rw-r--r--dev-lang/php/files/eblits/CVS/Entries1
-rw-r--r--dev-lang/php/files/eblits/CVS/Repository1
-rw-r--r--dev-lang/php/files/eblits/CVS/Root1
-rw-r--r--dev-lang/php/files/eblits/CVS/Tag1
-rw-r--r--dev-lang/php/php-4.0.4_p1.ebuild125
-rw-r--r--dev-lang/php/php-4.0.5.ebuild125
-rw-r--r--dev-lang/php/php-4.0.6-r1.ebuild158
-rw-r--r--dev-lang/php/php-4.0.6-r2.ebuild164
-rw-r--r--dev-lang/php/php-4.0.6-r3.ebuild169
-rw-r--r--dev-lang/php/php-4.0.6-r4.ebuild146
-rw-r--r--dev-lang/php/php-4.0.6-r5.ebuild160
-rw-r--r--dev-lang/php/php-4.0.6.ebuild154
-rw-r--r--dev-lang/php/php-4.1.1-r1.ebuild183
-rw-r--r--dev-lang/php/php-4.1.1-r2.ebuild151
-rw-r--r--dev-lang/php/php-4.1.1-r3.ebuild168
-rw-r--r--dev-lang/php/php-4.1.1-r4.ebuild177
-rw-r--r--dev-lang/php/php-4.1.1-r5.ebuild182
-rw-r--r--dev-lang/php/php-4.1.1.ebuild172
-rw-r--r--dev-lang/php/php-4.1.2-r1.ebuild183
-rw-r--r--dev-lang/php/php-4.1.2-r2.ebuild193
-rw-r--r--dev-lang/php/php-4.1.2-r3.ebuild193
-rw-r--r--dev-lang/php/php-4.1.2-r4.ebuild210
-rw-r--r--dev-lang/php/php-4.1.2-r5.ebuild203
-rw-r--r--dev-lang/php/php-4.1.2-r6.ebuild204
-rw-r--r--dev-lang/php/php-4.1.2-r7.ebuild205
-rw-r--r--dev-lang/php/php-4.1.2-r8.ebuild185
-rw-r--r--dev-lang/php/php-4.1.2-r9.ebuild192
-rw-r--r--dev-lang/php/php-4.1.2.ebuild183
-rw-r--r--dev-lang/php/php-4.2.0.ebuild193
-rw-r--r--dev-lang/php/php-4.2.1-r1.ebuild208
-rw-r--r--dev-lang/php/php-4.2.1-r2.ebuild218
-rw-r--r--dev-lang/php/php-4.2.1-r3.ebuild217
-rw-r--r--dev-lang/php/php-4.2.1.ebuild206
-rw-r--r--dev-lang/php/php-4.3.11-r1.ebuild303
-rw-r--r--dev-lang/php/php-4.3.11-r2.ebuild321
-rw-r--r--dev-lang/php/php-4.3.11-r3.ebuild330
-rw-r--r--dev-lang/php/php-4.3.11-r4.ebuild330
-rw-r--r--dev-lang/php/php-4.3.11-r5.ebuild340
-rw-r--r--dev-lang/php/php-4.3.11.ebuild279
-rw-r--r--dev-lang/php/php-4.4.0-r1.ebuild303
-rw-r--r--dev-lang/php/php-4.4.0-r2.ebuild321
-rw-r--r--dev-lang/php/php-4.4.0-r3.ebuild330
-rw-r--r--dev-lang/php/php-4.4.0-r4.ebuild330
-rw-r--r--dev-lang/php/php-4.4.0.ebuild290
-rw-r--r--dev-lang/php/php-4.4.1-r1.ebuild299
-rw-r--r--dev-lang/php/php-4.4.1-r2.ebuild302
-rw-r--r--dev-lang/php/php-4.4.1-r3.ebuild318
-rw-r--r--dev-lang/php/php-4.4.1.ebuild278
-rw-r--r--dev-lang/php/php-4.4.2-r1.ebuild286
-rw-r--r--dev-lang/php/php-4.4.2-r2.ebuild288
-rw-r--r--dev-lang/php/php-4.4.2-r3.ebuild290
-rw-r--r--dev-lang/php/php-4.4.2-r5.ebuild290
-rw-r--r--dev-lang/php/php-4.4.2-r6.ebuild498
-rw-r--r--dev-lang/php/php-4.4.2.ebuild286
-rw-r--r--dev-lang/php/php-4.4.3-r1.ebuild512
-rw-r--r--dev-lang/php/php-4.4.4-r1.ebuild512
-rw-r--r--dev-lang/php/php-4.4.4-r2.ebuild512
-rw-r--r--dev-lang/php/php-4.4.4-r4.ebuild512
-rw-r--r--dev-lang/php/php-4.4.4-r6.ebuild512
-rw-r--r--dev-lang/php/php-4.4.4-r8.ebuild512
-rw-r--r--dev-lang/php/php-4.4.4.ebuild512
-rw-r--r--dev-lang/php/php-4.4.6.ebuild516
-rw-r--r--dev-lang/php/php-4.4.7.ebuild516
-rw-r--r--dev-lang/php/php-4.4.8.ebuild477
-rw-r--r--dev-lang/php/php-4.4.8_pre20070816.ebuild487
-rw-r--r--dev-lang/php/php-5.0.4-r1.ebuild201
-rw-r--r--dev-lang/php/php-5.0.4-r2.ebuild219
-rw-r--r--dev-lang/php/php-5.0.4-r3.ebuild228
-rw-r--r--dev-lang/php/php-5.0.4-r4.ebuild228
-rw-r--r--dev-lang/php/php-5.0.4.ebuild184
-rw-r--r--dev-lang/php/php-5.0.5-r1.ebuild191
-rw-r--r--dev-lang/php/php-5.0.5-r2.ebuild209
-rw-r--r--dev-lang/php/php-5.0.5-r3.ebuild215
-rw-r--r--dev-lang/php/php-5.0.5-r4.ebuild215
-rw-r--r--dev-lang/php/php-5.0.5-r5.ebuild225
-rw-r--r--dev-lang/php/php-5.0.5.ebuild184
-rw-r--r--dev-lang/php/php-5.1.1.ebuild302
-rw-r--r--dev-lang/php/php-5.1.2-r1.ebuild286
-rw-r--r--dev-lang/php/php-5.1.2.ebuild286
-rw-r--r--dev-lang/php/php-5.1.4-r1.ebuild290
-rw-r--r--dev-lang/php/php-5.1.4-r3.ebuild290
-rw-r--r--dev-lang/php/php-5.1.4-r4.ebuild498
-rw-r--r--dev-lang/php/php-5.1.4-r6.ebuild512
-rw-r--r--dev-lang/php/php-5.1.4.ebuild288
-rw-r--r--dev-lang/php/php-5.1.6-r1.ebuild512
-rw-r--r--dev-lang/php/php-5.1.6-r11.ebuild516
-rw-r--r--dev-lang/php/php-5.1.6-r2.ebuild512
-rw-r--r--dev-lang/php/php-5.1.6-r4.ebuild512
-rw-r--r--dev-lang/php/php-5.1.6-r6.ebuild512
-rw-r--r--dev-lang/php/php-5.1.6-r8.ebuild512
-rw-r--r--dev-lang/php/php-5.1.6.ebuild512
-rw-r--r--dev-lang/php/php-5.2.1-r3.ebuild516
-rw-r--r--dev-lang/php/php-5.2.10-r1.ebuild547
-rw-r--r--dev-lang/php/php-5.2.10-r2.ebuild550
-rw-r--r--dev-lang/php/php-5.2.10.ebuild547
-rw-r--r--dev-lang/php/php-5.2.11-r1.ebuild551
-rw-r--r--dev-lang/php/php-5.2.11.ebuild547
-rw-r--r--dev-lang/php/php-5.2.12.ebuild548
-rw-r--r--dev-lang/php/php-5.2.13.ebuild551
-rw-r--r--dev-lang/php/php-5.2.14-r1.ebuild313
-rw-r--r--dev-lang/php/php-5.2.14-r2.ebuild327
-rw-r--r--dev-lang/php/php-5.2.14.ebuild314
-rw-r--r--dev-lang/php/php-5.2.16-r1.ebuild341
-rw-r--r--dev-lang/php/php-5.2.16.ebuild341
-rw-r--r--dev-lang/php/php-5.2.2-r1.ebuild516
-rw-r--r--dev-lang/php/php-5.2.3-r3.ebuild483
-rw-r--r--dev-lang/php/php-5.2.4.ebuild477
-rw-r--r--dev-lang/php/php-5.2.4_p20070914-r2.ebuild494
-rw-r--r--dev-lang/php/php-5.2.4_p20070914.ebuild494
-rw-r--r--dev-lang/php/php-5.2.4_pre200708051230-r2.ebuild493
-rw-r--r--dev-lang/php/php-5.2.5-r1.ebuild495
-rw-r--r--dev-lang/php/php-5.2.5.ebuild496
-rw-r--r--dev-lang/php/php-5.2.5_p20080206-r2.ebuild509
-rw-r--r--dev-lang/php/php-5.2.5_p20080206-r3.ebuild509
-rw-r--r--dev-lang/php/php-5.2.5_p20080206.ebuild504
-rw-r--r--dev-lang/php/php-5.2.6-r1.ebuild504
-rw-r--r--dev-lang/php/php-5.2.6-r2.ebuild507
-rw-r--r--dev-lang/php/php-5.2.6-r5.ebuild511
-rw-r--r--dev-lang/php/php-5.2.6-r6.ebuild511
-rw-r--r--dev-lang/php/php-5.2.6-r7.ebuild511
-rw-r--r--dev-lang/php/php-5.2.6.ebuild505
-rw-r--r--dev-lang/php/php-5.2.6_rc1-r1.ebuild508
-rw-r--r--dev-lang/php/php-5.2.6_rc1.ebuild508
-rw-r--r--dev-lang/php/php-5.2.6_rc3-r1.ebuild481
-rw-r--r--dev-lang/php/php-5.2.6_rc3.ebuild481
-rw-r--r--dev-lang/php/php-5.2.6_rc4.ebuild481
-rw-r--r--dev-lang/php/php-5.2.8-r1.ebuild549
-rw-r--r--dev-lang/php/php-5.2.8-r2.ebuild546
-rw-r--r--dev-lang/php/php-5.2.8.ebuild544
-rw-r--r--dev-lang/php/php-5.2.9-r1.ebuild546
-rw-r--r--dev-lang/php/php-5.2.9-r2.ebuild546
-rw-r--r--dev-lang/php/php-5.2.9.ebuild546
-rw-r--r--dev-lang/php/php-5.3.10-r1.ebuild390
-rw-r--r--dev-lang/php/php-5.3.10-r2.ebuild390
-rw-r--r--dev-lang/php/php-5.3.10.ebuild390
-rw-r--r--dev-lang/php/php-5.3.11.ebuild392
-rw-r--r--dev-lang/php/php-5.3.11_rc2.ebuild392
-rw-r--r--dev-lang/php/php-5.3.12.ebuild392
-rw-r--r--dev-lang/php/php-5.3.13.ebuild392
-rw-r--r--dev-lang/php/php-5.3.14.ebuild392
-rw-r--r--dev-lang/php/php-5.3.14_rc2.ebuild392
-rw-r--r--dev-lang/php/php-5.3.2.ebuild338
-rw-r--r--dev-lang/php/php-5.3.3-r1.ebuild337
-rw-r--r--dev-lang/php/php-5.3.3-r2.ebuild337
-rw-r--r--dev-lang/php/php-5.3.3-r3.ebuild346
-rw-r--r--dev-lang/php/php-5.3.3.ebuild335
-rw-r--r--dev-lang/php/php-5.3.4-r1.ebuild353
-rw-r--r--dev-lang/php/php-5.3.4.ebuild353
-rw-r--r--dev-lang/php/php-5.3.5-r1.ebuild353
-rw-r--r--dev-lang/php/php-5.3.5.ebuild353
-rw-r--r--dev-lang/php/php-5.3.6-r1.ebuild351
-rw-r--r--dev-lang/php/php-5.3.6.ebuild349
-rw-r--r--dev-lang/php/php-5.3.6_rc1.ebuild355
-rw-r--r--dev-lang/php/php-5.3.6_rc2.ebuild354
-rw-r--r--dev-lang/php/php-5.3.6_rc3.ebuild354
-rw-r--r--dev-lang/php/php-5.3.7.ebuild354
-rw-r--r--dev-lang/php/php-5.3.7_rc1.ebuild351
-rw-r--r--dev-lang/php/php-5.3.7_rc2.ebuild351
-rw-r--r--dev-lang/php/php-5.3.7_rc3.ebuild354
-rw-r--r--dev-lang/php/php-5.3.7_rc5.ebuild354
-rw-r--r--dev-lang/php/php-5.3.8.ebuild354
-rw-r--r--dev-lang/php/php-5.3.9.ebuild390
-rw-r--r--dev-lang/php/php-5.3.9_rc1.ebuild415
-rw-r--r--dev-lang/php/php-5.3.9_rc2.ebuild414
-rw-r--r--dev-lang/php/php-5.3.9_rc3.ebuild397
-rw-r--r--dev-lang/php/php-5.3.9_rc4.ebuild390
-rw-r--r--dev-lang/php/php-5.4.0.ebuild382
-rw-r--r--dev-lang/php/php-5.4.0_alpha1.ebuild330
-rw-r--r--dev-lang/php/php-5.4.0_alpha3.ebuild328
-rw-r--r--dev-lang/php/php-5.4.0_beta1.ebuild329
-rw-r--r--dev-lang/php/php-5.4.0_beta2.ebuild329
-rw-r--r--dev-lang/php/php-5.4.0_pre201104301030.ebuild354
-rw-r--r--dev-lang/php/php-5.4.0_pre201105151030.ebuild353
-rw-r--r--dev-lang/php/php-5.4.0_pre201105211430.ebuild352
-rw-r--r--dev-lang/php/php-5.4.0_rc1.ebuild332
-rw-r--r--dev-lang/php/php-5.4.0_rc2.ebuild332
-rw-r--r--dev-lang/php/php-5.4.0_rc3.ebuild332
-rw-r--r--dev-lang/php/php-5.4.0_rc4.ebuild390
-rw-r--r--dev-lang/php/php-5.4.0_rc5.ebuild390
-rw-r--r--dev-lang/php/php-5.4.0_rc6.ebuild390
-rw-r--r--dev-lang/php/php-5.4.0_rc7-r1.ebuild390
-rw-r--r--dev-lang/php/php-5.4.0_rc7.ebuild390
-rw-r--r--dev-lang/php/php-5.4.0_rc8.ebuild391
-rw-r--r--dev-lang/php/php-5.4.1.ebuild384
-rw-r--r--dev-lang/php/php-5.4.1_rc1.ebuild384
-rw-r--r--dev-lang/php/php-5.4.1_rc2.ebuild384
-rw-r--r--dev-lang/php/php-5.4.2.ebuild384
-rw-r--r--dev-lang/php/php-5.4.3.ebuild384
-rw-r--r--dev-lang/php/php-5.4.4.ebuild385
-rw-r--r--dev-lang/php/php-5.4.4_rc2.ebuild385
-rw-r--r--dev-lang/php/php-5.5.0_pre201105211430.ebuild353
296 files changed, 0 insertions, 68440 deletions
diff --git a/dev-lang/php/CVS/Entries b/dev-lang/php/CVS/Entries
deleted file mode 100644
index e37533a..0000000
--- a/dev-lang/php/CVS/Entries
+++ /dev/null
@@ -1,5 +0,0 @@
-D/files////
-/ChangeLog/1.17/Mon Jul 2 00:29:49 2012//T1.17
-/Manifest/1.17/Mon Jul 2 00:29:49 2012//T1.17
-/metadata.xml/1.17/Sat Feb 18 14:27:53 2012//T1.17
-/php-5.2.17.ebuild/1.17/Wed Dec 14 22:48:49 2011//T1.17
diff --git a/dev-lang/php/CVS/Repository b/dev-lang/php/CVS/Repository
deleted file mode 100644
index ab0a56b..0000000
--- a/dev-lang/php/CVS/Repository
+++ /dev/null
@@ -1 +0,0 @@
-gentoo-x86/dev-lang/php
diff --git a/dev-lang/php/CVS/Root b/dev-lang/php/CVS/Root
deleted file mode 100644
index 854a2c8..0000000
--- a/dev-lang/php/CVS/Root
+++ /dev/null
@@ -1 +0,0 @@
-:pserver:anonymous@anoncvs.gentoo.org:/var/cvsroot
diff --git a/dev-lang/php/CVS/Tag b/dev-lang/php/CVS/Tag
deleted file mode 100644
index 07774f2..0000000
--- a/dev-lang/php/CVS/Tag
+++ /dev/null
@@ -1 +0,0 @@
-N1.17
diff --git a/dev-lang/php/files/CVS/Entries b/dev-lang/php/files/CVS/Entries
deleted file mode 100644
index 801e8cb..0000000
--- a/dev-lang/php/files/CVS/Entries
+++ /dev/null
@@ -1,12 +0,0 @@
-D/4-any////
-D/4.3.11////
-D/4.4.0////
-D/4.4.1////
-D/5.0-any////
-D/5.0.0////
-D/5.0.4////
-D/5.0.5////
-D/5.1-any////
-D/5.1.0////
-D/5.1.1////
-D/eblits////
diff --git a/dev-lang/php/files/CVS/Repository b/dev-lang/php/files/CVS/Repository
deleted file mode 100644
index 71153e2..0000000
--- a/dev-lang/php/files/CVS/Repository
+++ /dev/null
@@ -1 +0,0 @@
-gentoo-x86/dev-lang/php/files
diff --git a/dev-lang/php/files/CVS/Root b/dev-lang/php/files/CVS/Root
deleted file mode 100644
index 854a2c8..0000000
--- a/dev-lang/php/files/CVS/Root
+++ /dev/null
@@ -1 +0,0 @@
-:pserver:anonymous@anoncvs.gentoo.org:/var/cvsroot
diff --git a/dev-lang/php/files/CVS/Tag b/dev-lang/php/files/CVS/Tag
deleted file mode 100644
index 1ee58ee..0000000
--- a/dev-lang/php/files/CVS/Tag
+++ /dev/null
@@ -1 +0,0 @@
-T1.17
diff --git a/dev-lang/php/files/digest-php-4.0.4_p1 b/dev-lang/php/files/digest-php-4.0.4_p1
deleted file mode 100644
index a4a8e85..0000000
--- a/dev-lang/php/files/digest-php-4.0.4_p1
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 ae3ab0105154dddea1fa2ca18a902f85 php-4.0.4pl1.tar.gz
-MD5 20c64ba8d79665e9bfab052fa5a85eab number4.tar.gz
diff --git a/dev-lang/php/files/digest-php-4.0.5 b/dev-lang/php/files/digest-php-4.0.5
deleted file mode 100644
index 84b7f97..0000000
--- a/dev-lang/php/files/digest-php-4.0.5
+++ /dev/null
@@ -1 +0,0 @@
-MD5 763739f64eeac7099035fd86c1d39ad2 php-4.0.5.tar.gz
diff --git a/dev-lang/php/files/digest-php-4.0.6 b/dev-lang/php/files/digest-php-4.0.6
deleted file mode 100644
index b0cf774..0000000
--- a/dev-lang/php/files/digest-php-4.0.6
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5f698521cf2b392cf9bfa87fc1a0fe90 php-4.0.6.tar.gz
diff --git a/dev-lang/php/files/digest-php-4.0.6-r1 b/dev-lang/php/files/digest-php-4.0.6-r1
deleted file mode 100644
index b0cf774..0000000
--- a/dev-lang/php/files/digest-php-4.0.6-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5f698521cf2b392cf9bfa87fc1a0fe90 php-4.0.6.tar.gz
diff --git a/dev-lang/php/files/digest-php-4.0.6-r2 b/dev-lang/php/files/digest-php-4.0.6-r2
deleted file mode 100644
index b0cf774..0000000
--- a/dev-lang/php/files/digest-php-4.0.6-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5f698521cf2b392cf9bfa87fc1a0fe90 php-4.0.6.tar.gz
diff --git a/dev-lang/php/files/digest-php-4.0.6-r3 b/dev-lang/php/files/digest-php-4.0.6-r3
deleted file mode 100644
index ba2eb04..0000000
--- a/dev-lang/php/files/digest-php-4.0.6-r3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5f698521cf2b392cf9bfa87fc1a0fe90 php-4.0.6.tar.gz 3158016
diff --git a/dev-lang/php/files/digest-php-4.0.6-r4 b/dev-lang/php/files/digest-php-4.0.6-r4
deleted file mode 100644
index ba2eb04..0000000
--- a/dev-lang/php/files/digest-php-4.0.6-r4
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5f698521cf2b392cf9bfa87fc1a0fe90 php-4.0.6.tar.gz 3158016
diff --git a/dev-lang/php/files/digest-php-4.0.6-r5 b/dev-lang/php/files/digest-php-4.0.6-r5
deleted file mode 100644
index 82f9b23..0000000
--- a/dev-lang/php/files/digest-php-4.0.6-r5
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5f698521cf2b392cf9bfa87fc1a0fe90 php-4.0.6.tar.gz 3157346
diff --git a/dev-lang/php/files/digest-php-4.0.6-r700 b/dev-lang/php/files/digest-php-4.0.6-r700
deleted file mode 100644
index ba2eb04..0000000
--- a/dev-lang/php/files/digest-php-4.0.6-r700
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5f698521cf2b392cf9bfa87fc1a0fe90 php-4.0.6.tar.gz 3158016
diff --git a/dev-lang/php/files/digest-php-4.1.1 b/dev-lang/php/files/digest-php-4.1.1
deleted file mode 100644
index 9673f2e..0000000
--- a/dev-lang/php/files/digest-php-4.1.1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 776362ff53bf6ea77b60496f6632b6b6 php-4.1.1.tar.gz 3362816
diff --git a/dev-lang/php/files/digest-php-4.1.1-r1 b/dev-lang/php/files/digest-php-4.1.1-r1
deleted file mode 100644
index d7e8f2b..0000000
--- a/dev-lang/php/files/digest-php-4.1.1-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 776362ff53bf6ea77b60496f6632b6b6 php-4.1.1.tar.gz 3356062
diff --git a/dev-lang/php/files/digest-php-4.1.1-r2 b/dev-lang/php/files/digest-php-4.1.1-r2
deleted file mode 100644
index beeab6e..0000000
--- a/dev-lang/php/files/digest-php-4.1.1-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 776362ff53bf6ea77b60496f6632b6b6 php-4.1.1.tar.gz 3358720
diff --git a/dev-lang/php/files/digest-php-4.1.1-r3 b/dev-lang/php/files/digest-php-4.1.1-r3
deleted file mode 100644
index d7e8f2b..0000000
--- a/dev-lang/php/files/digest-php-4.1.1-r3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 776362ff53bf6ea77b60496f6632b6b6 php-4.1.1.tar.gz 3356062
diff --git a/dev-lang/php/files/digest-php-4.1.1-r4 b/dev-lang/php/files/digest-php-4.1.1-r4
deleted file mode 100644
index d7e8f2b..0000000
--- a/dev-lang/php/files/digest-php-4.1.1-r4
+++ /dev/null
@@ -1 +0,0 @@
-MD5 776362ff53bf6ea77b60496f6632b6b6 php-4.1.1.tar.gz 3356062
diff --git a/dev-lang/php/files/digest-php-4.1.1-r5 b/dev-lang/php/files/digest-php-4.1.1-r5
deleted file mode 100644
index d7e8f2b..0000000
--- a/dev-lang/php/files/digest-php-4.1.1-r5
+++ /dev/null
@@ -1 +0,0 @@
-MD5 776362ff53bf6ea77b60496f6632b6b6 php-4.1.1.tar.gz 3356062
diff --git a/dev-lang/php/files/digest-php-4.1.2 b/dev-lang/php/files/digest-php-4.1.2
deleted file mode 100644
index b7e2c02..0000000
--- a/dev-lang/php/files/digest-php-4.1.2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 75a62553076c20e91d3be575ce158be2 php-4.1.2.tar.gz 3359964
diff --git a/dev-lang/php/files/digest-php-4.1.2-r1 b/dev-lang/php/files/digest-php-4.1.2-r1
deleted file mode 100644
index b7e2c02..0000000
--- a/dev-lang/php/files/digest-php-4.1.2-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 75a62553076c20e91d3be575ce158be2 php-4.1.2.tar.gz 3359964
diff --git a/dev-lang/php/files/digest-php-4.1.2-r2 b/dev-lang/php/files/digest-php-4.1.2-r2
deleted file mode 100644
index b7e2c02..0000000
--- a/dev-lang/php/files/digest-php-4.1.2-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 75a62553076c20e91d3be575ce158be2 php-4.1.2.tar.gz 3359964
diff --git a/dev-lang/php/files/digest-php-4.1.2-r3 b/dev-lang/php/files/digest-php-4.1.2-r3
deleted file mode 100644
index b7e2c02..0000000
--- a/dev-lang/php/files/digest-php-4.1.2-r3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 75a62553076c20e91d3be575ce158be2 php-4.1.2.tar.gz 3359964
diff --git a/dev-lang/php/files/digest-php-4.1.2-r4 b/dev-lang/php/files/digest-php-4.1.2-r4
deleted file mode 100644
index b7e2c02..0000000
--- a/dev-lang/php/files/digest-php-4.1.2-r4
+++ /dev/null
@@ -1 +0,0 @@
-MD5 75a62553076c20e91d3be575ce158be2 php-4.1.2.tar.gz 3359964
diff --git a/dev-lang/php/files/digest-php-4.1.2-r5 b/dev-lang/php/files/digest-php-4.1.2-r5
deleted file mode 100644
index b7e2c02..0000000
--- a/dev-lang/php/files/digest-php-4.1.2-r5
+++ /dev/null
@@ -1 +0,0 @@
-MD5 75a62553076c20e91d3be575ce158be2 php-4.1.2.tar.gz 3359964
diff --git a/dev-lang/php/files/digest-php-4.1.2-r6 b/dev-lang/php/files/digest-php-4.1.2-r6
deleted file mode 100644
index b7e2c02..0000000
--- a/dev-lang/php/files/digest-php-4.1.2-r6
+++ /dev/null
@@ -1 +0,0 @@
-MD5 75a62553076c20e91d3be575ce158be2 php-4.1.2.tar.gz 3359964
diff --git a/dev-lang/php/files/digest-php-4.1.2-r7 b/dev-lang/php/files/digest-php-4.1.2-r7
deleted file mode 100644
index b7e2c02..0000000
--- a/dev-lang/php/files/digest-php-4.1.2-r7
+++ /dev/null
@@ -1 +0,0 @@
-MD5 75a62553076c20e91d3be575ce158be2 php-4.1.2.tar.gz 3359964
diff --git a/dev-lang/php/files/digest-php-4.1.2-r8 b/dev-lang/php/files/digest-php-4.1.2-r8
deleted file mode 100644
index b7e2c02..0000000
--- a/dev-lang/php/files/digest-php-4.1.2-r8
+++ /dev/null
@@ -1 +0,0 @@
-MD5 75a62553076c20e91d3be575ce158be2 php-4.1.2.tar.gz 3359964
diff --git a/dev-lang/php/files/digest-php-4.1.2-r9 b/dev-lang/php/files/digest-php-4.1.2-r9
deleted file mode 100644
index b7e2c02..0000000
--- a/dev-lang/php/files/digest-php-4.1.2-r9
+++ /dev/null
@@ -1 +0,0 @@
-MD5 75a62553076c20e91d3be575ce158be2 php-4.1.2.tar.gz 3359964
diff --git a/dev-lang/php/files/digest-php-4.2.0 b/dev-lang/php/files/digest-php-4.2.0
deleted file mode 100644
index 592a4bd..0000000
--- a/dev-lang/php/files/digest-php-4.2.0
+++ /dev/null
@@ -1 +0,0 @@
-MD5 88d55481de32ab0168aa580f7b611022 php-4.2.0.tar.gz 3442616
diff --git a/dev-lang/php/files/digest-php-4.2.1 b/dev-lang/php/files/digest-php-4.2.1
deleted file mode 100644
index ceaa1d2..0000000
--- a/dev-lang/php/files/digest-php-4.2.1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 654983196a94ca91c272a00e877b2b40 php-4.2.1.tar.gz 3376494
diff --git a/dev-lang/php/files/digest-php-4.2.1-r1 b/dev-lang/php/files/digest-php-4.2.1-r1
deleted file mode 100644
index ceaa1d2..0000000
--- a/dev-lang/php/files/digest-php-4.2.1-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 654983196a94ca91c272a00e877b2b40 php-4.2.1.tar.gz 3376494
diff --git a/dev-lang/php/files/digest-php-4.2.1-r2 b/dev-lang/php/files/digest-php-4.2.1-r2
deleted file mode 100644
index ceaa1d2..0000000
--- a/dev-lang/php/files/digest-php-4.2.1-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 654983196a94ca91c272a00e877b2b40 php-4.2.1.tar.gz 3376494
diff --git a/dev-lang/php/files/digest-php-4.2.1-r3 b/dev-lang/php/files/digest-php-4.2.1-r3
deleted file mode 100644
index ceaa1d2..0000000
--- a/dev-lang/php/files/digest-php-4.2.1-r3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 654983196a94ca91c272a00e877b2b40 php-4.2.1.tar.gz 3376494
diff --git a/dev-lang/php/files/digest-php-4.3.11 b/dev-lang/php/files/digest-php-4.3.11
deleted file mode 100644
index 137f89a..0000000
--- a/dev-lang/php/files/digest-php-4.3.11
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 fbc67d240812136a9842bc1f2a217b7a php-4.3.11.tar.bz2 4012575
-MD5 bff79f1e088f09337e1a7df03a62ac2f hardening-patch-4.3.11-0.4.2.patch.gz 101840
diff --git a/dev-lang/php/files/digest-php-4.3.11-r1 b/dev-lang/php/files/digest-php-4.3.11-r1
deleted file mode 100644
index 8eda7cd..0000000
--- a/dev-lang/php/files/digest-php-4.3.11-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 fbc67d240812136a9842bc1f2a217b7a php-4.3.11.tar.bz2 4012575
-MD5 00c2176c90b085ba76871524392f7d03 hardening-patch-4.3.11-0.4.3.patch.gz 105574
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-4.3.11-r2 b/dev-lang/php/files/digest-php-4.3.11-r2
deleted file mode 100644
index 6553106..0000000
--- a/dev-lang/php/files/digest-php-4.3.11-r2
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 00c2176c90b085ba76871524392f7d03 hardening-patch-4.3.11-0.4.3.patch.gz 105574
-MD5 fbc67d240812136a9842bc1f2a217b7a php-4.3.11.tar.bz2 4012575
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-4.3.11-r3 b/dev-lang/php/files/digest-php-4.3.11-r3
deleted file mode 100644
index 6553106..0000000
--- a/dev-lang/php/files/digest-php-4.3.11-r3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 00c2176c90b085ba76871524392f7d03 hardening-patch-4.3.11-0.4.3.patch.gz 105574
-MD5 fbc67d240812136a9842bc1f2a217b7a php-4.3.11.tar.bz2 4012575
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-4.3.11-r4 b/dev-lang/php/files/digest-php-4.3.11-r4
deleted file mode 100644
index 6553106..0000000
--- a/dev-lang/php/files/digest-php-4.3.11-r4
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 00c2176c90b085ba76871524392f7d03 hardening-patch-4.3.11-0.4.3.patch.gz 105574
-MD5 fbc67d240812136a9842bc1f2a217b7a php-4.3.11.tar.bz2 4012575
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-4.3.11-r5 b/dev-lang/php/files/digest-php-4.3.11-r5
deleted file mode 100644
index c19dd7e..0000000
--- a/dev-lang/php/files/digest-php-4.3.11-r5
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 9b0c4b722e6102aa95b475074caac5f7 hardening-patch-4.3.11-0.4.3-gentoo.patch.gz 85180
-MD5 fbc67d240812136a9842bc1f2a217b7a php-4.3.11.tar.bz2 4012575
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-4.4.0 b/dev-lang/php/files/digest-php-4.4.0
deleted file mode 100644
index f073a5d..0000000
--- a/dev-lang/php/files/digest-php-4.4.0
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 e85b606fe48198bfcd785e5a5b1c9613 php-4.4.0.tar.bz2 4086074
-MD5 4d489ca6274366c1c1b1407d2ca8f440 hardening-patch-4.4.0-0.4.1.patch.gz 37189
diff --git a/dev-lang/php/files/digest-php-4.4.0-r1 b/dev-lang/php/files/digest-php-4.4.0-r1
deleted file mode 100644
index dd3eed8..0000000
--- a/dev-lang/php/files/digest-php-4.4.0-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 e85b606fe48198bfcd785e5a5b1c9613 php-4.4.0.tar.bz2 4086074
-MD5 6eac3c5c5a7473c68a043c7657298f48 hardening-patch-4.4.0-0.4.3.patch.gz 104840
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-4.4.0-r2 b/dev-lang/php/files/digest-php-4.4.0-r2
deleted file mode 100644
index 5cf0a8b..0000000
--- a/dev-lang/php/files/digest-php-4.4.0-r2
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 6eac3c5c5a7473c68a043c7657298f48 hardening-patch-4.4.0-0.4.3.patch.gz 104840
-MD5 e85b606fe48198bfcd785e5a5b1c9613 php-4.4.0.tar.bz2 4086074
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-4.4.0-r3 b/dev-lang/php/files/digest-php-4.4.0-r3
deleted file mode 100644
index 5cf0a8b..0000000
--- a/dev-lang/php/files/digest-php-4.4.0-r3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 6eac3c5c5a7473c68a043c7657298f48 hardening-patch-4.4.0-0.4.3.patch.gz 104840
-MD5 e85b606fe48198bfcd785e5a5b1c9613 php-4.4.0.tar.bz2 4086074
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-4.4.0-r4 b/dev-lang/php/files/digest-php-4.4.0-r4
deleted file mode 100644
index 5cf0a8b..0000000
--- a/dev-lang/php/files/digest-php-4.4.0-r4
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 6eac3c5c5a7473c68a043c7657298f48 hardening-patch-4.4.0-0.4.3.patch.gz 104840
-MD5 e85b606fe48198bfcd785e5a5b1c9613 php-4.4.0.tar.bz2 4086074
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-4.4.1 b/dev-lang/php/files/digest-php-4.4.1
deleted file mode 100644
index f88fc54..0000000
--- a/dev-lang/php/files/digest-php-4.4.1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 6b5726471189f8a1f26dd7cc5e19b442 php-4.4.1.tar.bz2 4157749
diff --git a/dev-lang/php/files/digest-php-4.4.1-r1 b/dev-lang/php/files/digest-php-4.4.1-r1
deleted file mode 100644
index 859996a..0000000
--- a/dev-lang/php/files/digest-php-4.4.1-r1
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 3eef4e232d78ace49f348794072aaa71 hardening-patch-4.4.1-0.4.5.patch.gz 55044
-MD5 6b5726471189f8a1f26dd7cc5e19b442 php-4.4.1.tar.bz2 4157749
diff --git a/dev-lang/php/files/digest-php-4.4.1-r2 b/dev-lang/php/files/digest-php-4.4.1-r2
deleted file mode 100644
index 859996a..0000000
--- a/dev-lang/php/files/digest-php-4.4.1-r2
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 3eef4e232d78ace49f348794072aaa71 hardening-patch-4.4.1-0.4.5.patch.gz 55044
-MD5 6b5726471189f8a1f26dd7cc5e19b442 php-4.4.1.tar.bz2 4157749
diff --git a/dev-lang/php/files/digest-php-4.4.1-r3 b/dev-lang/php/files/digest-php-4.4.1-r3
deleted file mode 100644
index 3f1e132..0000000
--- a/dev-lang/php/files/digest-php-4.4.1-r3
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 615d27d7c39017e1e45f15bc8eed3c94 hardening-patch-4.4.1-0.4.8-gentoo.patch.gz 59878
-MD5 6b5726471189f8a1f26dd7cc5e19b442 php-4.4.1.tar.bz2 4157749
diff --git a/dev-lang/php/files/digest-php-4.4.2 b/dev-lang/php/files/digest-php-4.4.2
deleted file mode 100644
index 1fcfa10..0000000
--- a/dev-lang/php/files/digest-php-4.4.2
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 fa67e075f724b5cb4701ffdd0a05e03d hardening-patch-4.4.2-0.4.8-gentoo.patch.gz 59792
-RMD160 87c5234a6e70b3f24b20227e891e4f878b9e55a8 hardening-patch-4.4.2-0.4.8-gentoo.patch.gz 59792
-SHA256 31a8aec0f46cd34079179a32e1b8033891d9cb0e5cbd53ef9d56848b48c1f1f9 hardening-patch-4.4.2-0.4.8-gentoo.patch.gz 59792
-MD5 28051cd9ef43490dd9727a4d442011b5 php-4.4.2.tar.bz2 4371185
-RMD160 cbef0fa4e233529422bc0944dcfb79d866013f5e php-4.4.2.tar.bz2 4371185
-SHA256 a2024d665125a41611eb64451648d37a81e3579594c8810bb41ac8b2b63f81eb php-4.4.2.tar.bz2 4371185
-MD5 048bcc2e39d96cb5f8194c75291f3cf2 php-patchset-4.4.2-r1.tar.bz2 13774
-RMD160 95db8755a8d5d8972bc8bf5ecaf8740663f910d5 php-patchset-4.4.2-r1.tar.bz2 13774
-SHA256 8106995c3243c604434cb4b4fdafc04db0e3604eccb7ba487724f44b892252e4 php-patchset-4.4.2-r1.tar.bz2 13774
diff --git a/dev-lang/php/files/digest-php-4.4.2-r1 b/dev-lang/php/files/digest-php-4.4.2-r1
deleted file mode 100644
index 5a2b723..0000000
--- a/dev-lang/php/files/digest-php-4.4.2-r1
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 fa67e075f724b5cb4701ffdd0a05e03d hardening-patch-4.4.2-0.4.8-gentoo.patch.gz 59792
-RMD160 87c5234a6e70b3f24b20227e891e4f878b9e55a8 hardening-patch-4.4.2-0.4.8-gentoo.patch.gz 59792
-SHA256 31a8aec0f46cd34079179a32e1b8033891d9cb0e5cbd53ef9d56848b48c1f1f9 hardening-patch-4.4.2-0.4.8-gentoo.patch.gz 59792
-MD5 28051cd9ef43490dd9727a4d442011b5 php-4.4.2.tar.bz2 4371185
-RMD160 cbef0fa4e233529422bc0944dcfb79d866013f5e php-4.4.2.tar.bz2 4371185
-SHA256 a2024d665125a41611eb64451648d37a81e3579594c8810bb41ac8b2b63f81eb php-4.4.2.tar.bz2 4371185
-MD5 4aebd7939e86bc60e447b2f9bb2d4bc2 php-patchset-4.4.2-r2.tar.bz2 14555
-RMD160 491fcc0c993530f9ac4429d44a37415c2a9a0b37 php-patchset-4.4.2-r2.tar.bz2 14555
-SHA256 9c7e9ed0044d0222745b5e30584e489e9574330aeb7964a40d1d1de757fb4bf3 php-patchset-4.4.2-r2.tar.bz2 14555
diff --git a/dev-lang/php/files/digest-php-4.4.2-r2 b/dev-lang/php/files/digest-php-4.4.2-r2
deleted file mode 100644
index 97bbe13..0000000
--- a/dev-lang/php/files/digest-php-4.4.2-r2
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 3a841a96d8d57d9bfa39344750f54f0a hardening-patch-4.4.2-0.4.9-gentoo.patch.gz 59219
-RMD160 6802aa02189489cf1e713dfde02039f888992507 hardening-patch-4.4.2-0.4.9-gentoo.patch.gz 59219
-SHA256 1a1affd04f234567cf049265fe62e9a2c3bde99193e6e17d5f8c010b04075760 hardening-patch-4.4.2-0.4.9-gentoo.patch.gz 59219
-MD5 28051cd9ef43490dd9727a4d442011b5 php-4.4.2.tar.bz2 4371185
-RMD160 cbef0fa4e233529422bc0944dcfb79d866013f5e php-4.4.2.tar.bz2 4371185
-SHA256 a2024d665125a41611eb64451648d37a81e3579594c8810bb41ac8b2b63f81eb php-4.4.2.tar.bz2 4371185
-MD5 52331faef17753dae2932966c6abcae1 php-patchset-4.4.2-r3.tar.bz2 18050
-RMD160 8c4309da5bd260536bce7523c30bbca7d9283ee6 php-patchset-4.4.2-r3.tar.bz2 18050
-SHA256 c755311adff209e488b4ebce14ed900c9c9f0d518ada7280953df4ddbb301e0e php-patchset-4.4.2-r3.tar.bz2 18050
diff --git a/dev-lang/php/files/digest-php-4.4.2-r3 b/dev-lang/php/files/digest-php-4.4.2-r3
deleted file mode 100644
index a274420..0000000
--- a/dev-lang/php/files/digest-php-4.4.2-r3
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 e9c07b67ddd1f068aa1bbe8021f2a83d hardening-patch-4.4.2-0.4.11-gentoo.patch.gz 59715
-RMD160 bc1131fbb8d9e53fe8ced94ff32aa3f7399bcfd0 hardening-patch-4.4.2-0.4.11-gentoo.patch.gz 59715
-SHA256 c3b440478724e2798e18c4082d95c0b2b48203c7ebe2fd483cf2f24f9317d1b7 hardening-patch-4.4.2-0.4.11-gentoo.patch.gz 59715
-MD5 28051cd9ef43490dd9727a4d442011b5 php-4.4.2.tar.bz2 4371185
-RMD160 cbef0fa4e233529422bc0944dcfb79d866013f5e php-4.4.2.tar.bz2 4371185
-SHA256 a2024d665125a41611eb64451648d37a81e3579594c8810bb41ac8b2b63f81eb php-4.4.2.tar.bz2 4371185
-MD5 3af9e7b9411db3e18bc295265f565ef8 php-patchset-4.4.2-r4.tar.bz2 19584
-RMD160 0c79c747acd8c7318158aba6ef7c6c9438ac1005 php-patchset-4.4.2-r4.tar.bz2 19584
-SHA256 159801594f98960942d2aec2a5a38aaa1566bca4590e16f52f51f147fa391ae0 php-patchset-4.4.2-r4.tar.bz2 19584
diff --git a/dev-lang/php/files/digest-php-4.4.2-r5 b/dev-lang/php/files/digest-php-4.4.2-r5
deleted file mode 100644
index 6911486..0000000
--- a/dev-lang/php/files/digest-php-4.4.2-r5
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 e9c07b67ddd1f068aa1bbe8021f2a83d hardening-patch-4.4.2-0.4.11-gentoo.patch.gz 59715
-RMD160 bc1131fbb8d9e53fe8ced94ff32aa3f7399bcfd0 hardening-patch-4.4.2-0.4.11-gentoo.patch.gz 59715
-SHA256 c3b440478724e2798e18c4082d95c0b2b48203c7ebe2fd483cf2f24f9317d1b7 hardening-patch-4.4.2-0.4.11-gentoo.patch.gz 59715
-MD5 28051cd9ef43490dd9727a4d442011b5 php-4.4.2.tar.bz2 4371185
-RMD160 cbef0fa4e233529422bc0944dcfb79d866013f5e php-4.4.2.tar.bz2 4371185
-SHA256 a2024d665125a41611eb64451648d37a81e3579594c8810bb41ac8b2b63f81eb php-4.4.2.tar.bz2 4371185
-MD5 a0919ddd76f6d7e7b05639755125af82 php-patchset-4.4.2-r6.tar.bz2 20884
-RMD160 c8376d9736edb3a59a525022eee9c0a7a5f2a359 php-patchset-4.4.2-r6.tar.bz2 20884
-SHA256 4a422da2b609819a8d95b11e2245e9bfa1440d25e481d4808bfc7d270382480e php-patchset-4.4.2-r6.tar.bz2 20884
diff --git a/dev-lang/php/files/digest-php-4.4.2-r6 b/dev-lang/php/files/digest-php-4.4.2-r6
deleted file mode 100644
index 8b915b8..0000000
--- a/dev-lang/php/files/digest-php-4.4.2-r6
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 d53ac42b51ed80f8f23751a1d7113cfa hardening-patch-4.4.2-0.4.11-gentoo-r1.patch.gz 59709
-RMD160 6bd005bda596ff2690f5ee2563b2708671948c7c hardening-patch-4.4.2-0.4.11-gentoo-r1.patch.gz 59709
-SHA256 3e938f8f62322b061acbcc6f900c249b0dee0a8672557c7cbce3513c44f4dc04 hardening-patch-4.4.2-0.4.11-gentoo-r1.patch.gz 59709
-MD5 28051cd9ef43490dd9727a4d442011b5 php-4.4.2.tar.bz2 4371185
-RMD160 cbef0fa4e233529422bc0944dcfb79d866013f5e php-4.4.2.tar.bz2 4371185
-SHA256 a2024d665125a41611eb64451648d37a81e3579594c8810bb41ac8b2b63f81eb php-4.4.2.tar.bz2 4371185
-MD5 fad43ccccab8d21d962efcb03b03b236 php-patchset-4.4.2-r7.tar.bz2 24079
-RMD160 9bd72618cb3ac7584bcbf5f41c7c7926590bc85b php-patchset-4.4.2-r7.tar.bz2 24079
-SHA256 44c976ee3df7b99ed014a1579264cdd069e9bd57efa2757ee4e06112d073fc5b php-patchset-4.4.2-r7.tar.bz2 24079
diff --git a/dev-lang/php/files/digest-php-4.4.3-r1 b/dev-lang/php/files/digest-php-4.4.3-r1
deleted file mode 100644
index f08155e..0000000
--- a/dev-lang/php/files/digest-php-4.4.3-r1
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 c79138eeed379765dabb269397ac3e09 hardening-patch-4.4.3-0.4.13-gentoo.patch.gz 60572
-RMD160 bef0106227dd0e23a67e59d9d0a5735478c2dec2 hardening-patch-4.4.3-0.4.13-gentoo.patch.gz 60572
-SHA256 4e09cd6cbd00e3a2199e6a68ab58875b133fea685500f2a35a2f7d348eaab44b hardening-patch-4.4.3-0.4.13-gentoo.patch.gz 60572
-MD5 9542117551c0e79f5bf21f46493094e7 php-4.4.3.tar.bz2 4461353
-RMD160 36c91930af44e8a1ed59eb159e6131ae8f0c77f0 php-4.4.3.tar.bz2 4461353
-SHA256 0f57da4b9d94f7febd37c0bc8e608e5aafafe744d094466723e04afb283407f7 php-4.4.3.tar.bz2 4461353
-MD5 f53d57eca61739837334f56df400f199 php-patchset-4.4.3-r1.tar.bz2 22814
-RMD160 389617d7e3ed41f67ea284a907cf9a347c5bf471 php-patchset-4.4.3-r1.tar.bz2 22814
-SHA256 16a7748f98cf8dbfeacebecdf57faed28e1176371ad89c62ce88c260811a0c41 php-patchset-4.4.3-r1.tar.bz2 22814
diff --git a/dev-lang/php/files/digest-php-4.4.4 b/dev-lang/php/files/digest-php-4.4.4
deleted file mode 100644
index 6ab9203..0000000
--- a/dev-lang/php/files/digest-php-4.4.4
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 603410dabb06b7252c2bcc1143dad813 hardening-patch-4.4.4-0.4.14-gentoo.patch.gz 60772
-RMD160 9f55babe9a2847f68574f94d9d49bb6eef1960b0 hardening-patch-4.4.4-0.4.14-gentoo.patch.gz 60772
-SHA256 454b23922ce1cdcb7ac61d02b198a21db08f2069cd9f7b2fb5f46291f0e24989 hardening-patch-4.4.4-0.4.14-gentoo.patch.gz 60772
-MD5 bc6fa8908e2ac36e93bab9f7d42cda3a php-4.4.4.tar.bz2 4478698
-RMD160 02fd7d5135a9e5ce11d905a4a474a5d42b8441f3 php-4.4.4.tar.bz2 4478698
-SHA256 9f0742fce014a255f8453c1264afee5de289a9e9dcd57c448c77b46978f6a76b php-4.4.4.tar.bz2 4478698
-MD5 677975c1e10ebd9ee17112b4ca0f21af php-patchset-4.4.4-r1.tar.bz2 19969
-RMD160 e420d6b849c115ea987791875e019420292be9fd php-patchset-4.4.4-r1.tar.bz2 19969
-SHA256 5d739336ef5dfabe5dd884f06e2261e1014ae7e0126369aef547b61fc6d8ee92 php-patchset-4.4.4-r1.tar.bz2 19969
diff --git a/dev-lang/php/files/digest-php-4.4.4-r1 b/dev-lang/php/files/digest-php-4.4.4-r1
deleted file mode 100644
index 6ab9203..0000000
--- a/dev-lang/php/files/digest-php-4.4.4-r1
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 603410dabb06b7252c2bcc1143dad813 hardening-patch-4.4.4-0.4.14-gentoo.patch.gz 60772
-RMD160 9f55babe9a2847f68574f94d9d49bb6eef1960b0 hardening-patch-4.4.4-0.4.14-gentoo.patch.gz 60772
-SHA256 454b23922ce1cdcb7ac61d02b198a21db08f2069cd9f7b2fb5f46291f0e24989 hardening-patch-4.4.4-0.4.14-gentoo.patch.gz 60772
-MD5 bc6fa8908e2ac36e93bab9f7d42cda3a php-4.4.4.tar.bz2 4478698
-RMD160 02fd7d5135a9e5ce11d905a4a474a5d42b8441f3 php-4.4.4.tar.bz2 4478698
-SHA256 9f0742fce014a255f8453c1264afee5de289a9e9dcd57c448c77b46978f6a76b php-4.4.4.tar.bz2 4478698
-MD5 677975c1e10ebd9ee17112b4ca0f21af php-patchset-4.4.4-r1.tar.bz2 19969
-RMD160 e420d6b849c115ea987791875e019420292be9fd php-patchset-4.4.4-r1.tar.bz2 19969
-SHA256 5d739336ef5dfabe5dd884f06e2261e1014ae7e0126369aef547b61fc6d8ee92 php-patchset-4.4.4-r1.tar.bz2 19969
diff --git a/dev-lang/php/files/digest-php-4.4.4-r2 b/dev-lang/php/files/digest-php-4.4.4-r2
deleted file mode 100644
index 6ab9203..0000000
--- a/dev-lang/php/files/digest-php-4.4.4-r2
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 603410dabb06b7252c2bcc1143dad813 hardening-patch-4.4.4-0.4.14-gentoo.patch.gz 60772
-RMD160 9f55babe9a2847f68574f94d9d49bb6eef1960b0 hardening-patch-4.4.4-0.4.14-gentoo.patch.gz 60772
-SHA256 454b23922ce1cdcb7ac61d02b198a21db08f2069cd9f7b2fb5f46291f0e24989 hardening-patch-4.4.4-0.4.14-gentoo.patch.gz 60772
-MD5 bc6fa8908e2ac36e93bab9f7d42cda3a php-4.4.4.tar.bz2 4478698
-RMD160 02fd7d5135a9e5ce11d905a4a474a5d42b8441f3 php-4.4.4.tar.bz2 4478698
-SHA256 9f0742fce014a255f8453c1264afee5de289a9e9dcd57c448c77b46978f6a76b php-4.4.4.tar.bz2 4478698
-MD5 677975c1e10ebd9ee17112b4ca0f21af php-patchset-4.4.4-r1.tar.bz2 19969
-RMD160 e420d6b849c115ea987791875e019420292be9fd php-patchset-4.4.4-r1.tar.bz2 19969
-SHA256 5d739336ef5dfabe5dd884f06e2261e1014ae7e0126369aef547b61fc6d8ee92 php-patchset-4.4.4-r1.tar.bz2 19969
diff --git a/dev-lang/php/files/digest-php-4.4.4-r4 b/dev-lang/php/files/digest-php-4.4.4-r4
deleted file mode 100644
index 39d0cab..0000000
--- a/dev-lang/php/files/digest-php-4.4.4-r4
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 55220bd02880e8981455fe83bafa0c8d hardening-patch-4.4.4-0.4.15-gentoo.patch.gz 61351
-RMD160 4c7b02b6a86005136ed6eb751ba549fe1ea275b0 hardening-patch-4.4.4-0.4.15-gentoo.patch.gz 61351
-SHA256 3885d9dba28e8a689d26d1d1889ecd1b8c8289bb25c337d472084c809daba291 hardening-patch-4.4.4-0.4.15-gentoo.patch.gz 61351
-MD5 bc6fa8908e2ac36e93bab9f7d42cda3a php-4.4.4.tar.bz2 4478698
-RMD160 02fd7d5135a9e5ce11d905a4a474a5d42b8441f3 php-4.4.4.tar.bz2 4478698
-SHA256 9f0742fce014a255f8453c1264afee5de289a9e9dcd57c448c77b46978f6a76b php-4.4.4.tar.bz2 4478698
-MD5 7ee22d363546ed55b111f41e5becfdbf php-patchset-4.4.4-r2.tar.bz2 20349
-RMD160 3449835b81db81a99d2046d6933ae6ac51c3eb47 php-patchset-4.4.4-r2.tar.bz2 20349
-SHA256 360fd167822644e9a84baeea04b34f92ea5a96f678c5616d4889541503eecc5d php-patchset-4.4.4-r2.tar.bz2 20349
diff --git a/dev-lang/php/files/digest-php-4.4.4-r6 b/dev-lang/php/files/digest-php-4.4.4-r6
deleted file mode 100644
index c2bc37f..0000000
--- a/dev-lang/php/files/digest-php-4.4.4-r6
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 55220bd02880e8981455fe83bafa0c8d hardening-patch-4.4.4-0.4.15-gentoo.patch.gz 61351
-RMD160 4c7b02b6a86005136ed6eb751ba549fe1ea275b0 hardening-patch-4.4.4-0.4.15-gentoo.patch.gz 61351
-SHA256 3885d9dba28e8a689d26d1d1889ecd1b8c8289bb25c337d472084c809daba291 hardening-patch-4.4.4-0.4.15-gentoo.patch.gz 61351
-MD5 bc6fa8908e2ac36e93bab9f7d42cda3a php-4.4.4.tar.bz2 4478698
-RMD160 02fd7d5135a9e5ce11d905a4a474a5d42b8441f3 php-4.4.4.tar.bz2 4478698
-SHA256 9f0742fce014a255f8453c1264afee5de289a9e9dcd57c448c77b46978f6a76b php-4.4.4.tar.bz2 4478698
-MD5 f0410bd550fc273b56c5af2c2518a93d php-patchset-4.4.4-r3.tar.bz2 21530
-RMD160 79afbba7947b9e6e94f8dcbcda19997b3ff7d462 php-patchset-4.4.4-r3.tar.bz2 21530
-SHA256 c49244a01e67c60f8c984efc9fdcca0154c9a80124788a16ef63e645dca97cb2 php-patchset-4.4.4-r3.tar.bz2 21530
diff --git a/dev-lang/php/files/digest-php-4.4.4-r8 b/dev-lang/php/files/digest-php-4.4.4-r8
deleted file mode 100644
index 68f8fb3..0000000
--- a/dev-lang/php/files/digest-php-4.4.4-r8
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 55220bd02880e8981455fe83bafa0c8d hardening-patch-4.4.4-0.4.15-gentoo.patch.gz 61351
-RMD160 4c7b02b6a86005136ed6eb751ba549fe1ea275b0 hardening-patch-4.4.4-0.4.15-gentoo.patch.gz 61351
-SHA256 3885d9dba28e8a689d26d1d1889ecd1b8c8289bb25c337d472084c809daba291 hardening-patch-4.4.4-0.4.15-gentoo.patch.gz 61351
-MD5 bc6fa8908e2ac36e93bab9f7d42cda3a php-4.4.4.tar.bz2 4478698
-RMD160 02fd7d5135a9e5ce11d905a4a474a5d42b8441f3 php-4.4.4.tar.bz2 4478698
-SHA256 9f0742fce014a255f8453c1264afee5de289a9e9dcd57c448c77b46978f6a76b php-4.4.4.tar.bz2 4478698
-MD5 81ed636101b3b3dabd513633db8654f5 php-patchset-4.4.4-r4.tar.bz2 21579
-RMD160 6a46f412185b9775dc2b1a1bb0801248b3702ea1 php-patchset-4.4.4-r4.tar.bz2 21579
-SHA256 62c63d3d04d5cfd856ee8c74e6617089235b1abe4df4baf450c5888945acfa20 php-patchset-4.4.4-r4.tar.bz2 21579
diff --git a/dev-lang/php/files/digest-php-4.4.6 b/dev-lang/php/files/digest-php-4.4.6
deleted file mode 100644
index 492d2c4..0000000
--- a/dev-lang/php/files/digest-php-4.4.6
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 5db283824310c87efb18c76b4735c4bd php-4.4.6.tar.bz2 4559282
-RMD160 16a81ee94d1f8f56adf3e76dde32c62597130674 php-4.4.6.tar.bz2 4559282
-SHA256 c468c70e9536b5cbaf8a2615ab9e13c065da19944314633eef675be4d4e40065 php-4.4.6.tar.bz2 4559282
-MD5 7ba532e3132773050c3be7d71e8c9379 php-patchset-4.4.6-r1.tar.bz2 19282
-RMD160 e2576d82f1ca6e1336834ed87767fac9471623c0 php-patchset-4.4.6-r1.tar.bz2 19282
-SHA256 2fb21dfe058fabc57e63e01cc9990c6d8d5d9d74ebd9cc42c13d58cc64f71016 php-patchset-4.4.6-r1.tar.bz2 19282
-MD5 4b3800d1c182f5cf48d60ccb2f7c8acd suhosin-patch-4.4.6-0.9.6-gentoo.patch.gz 21530
-RMD160 cdf02a0ed5d66203c0082063c87b66a6e4109088 suhosin-patch-4.4.6-0.9.6-gentoo.patch.gz 21530
-SHA256 8a52e6c9b1f1c980734daf2fa0d5e68364cd64b20a7c82d68c7fdd135cb788f8 suhosin-patch-4.4.6-0.9.6-gentoo.patch.gz 21530
diff --git a/dev-lang/php/files/digest-php-4.4.7 b/dev-lang/php/files/digest-php-4.4.7
deleted file mode 100644
index 6948850..0000000
--- a/dev-lang/php/files/digest-php-4.4.7
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 3f21b44d37a57ca3876d3aea713c700d php-4.4.7.tar.bz2 4543531
-RMD160 5eb44c4b7711111dcbc9117e21ad644e9e6562f3 php-4.4.7.tar.bz2 4543531
-SHA256 d9044635eccd17aeb4ff4ce8580439f4b0c83e6ae3d1e2544fd07a992ab5448e php-4.4.7.tar.bz2 4543531
-MD5 53f0f90547d95d19d8b5349837f5e16c php-patchset-4.4.7-r1.tar.bz2 19025
-RMD160 d55f8590d6187e4b65f3bfa6af921e4ef8c15304 php-patchset-4.4.7-r1.tar.bz2 19025
-SHA256 81b3d3ef6934634e9892e74ea81e48f73156dedd71d53dc5bc07b6ef99b226c5 php-patchset-4.4.7-r1.tar.bz2 19025
-MD5 51ca84cf433c7df444e05c79a03019cc suhosin-patch-4.4.7-0.9.6-gentoo.patch.gz 21555
-RMD160 a4184998c0cbbc4b493c0c6874fca6ee923c7a83 suhosin-patch-4.4.7-0.9.6-gentoo.patch.gz 21555
-SHA256 93d4b422d6e3e4f8fff6cdeb6de619f70d527db44784d5bdcc6d83c0337ec784 suhosin-patch-4.4.7-0.9.6-gentoo.patch.gz 21555
diff --git a/dev-lang/php/files/digest-php-4.4.8 b/dev-lang/php/files/digest-php-4.4.8
deleted file mode 100644
index ca5c4ca..0000000
--- a/dev-lang/php/files/digest-php-4.4.8
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 ed31e77414e0331e787487b53732dbca php-4.4.8.tar.bz2 4546525
-RMD160 dedf4a1a853b19bd3fb91a6028a256facb2d3224 php-4.4.8.tar.bz2 4546525
-SHA256 30d8e281cf1b785301f0ce2ba6a803bda72fb229942d415ae601ef176b46d5c1 php-4.4.8.tar.bz2 4546525
-MD5 c0d4bdacde26844cddd22d82658d2d4f php-patchset-4.4.8-r0.tar.bz2 18948
-RMD160 c2f3cd05b161e144a65e9bde12f66eb44869b0f2 php-patchset-4.4.8-r0.tar.bz2 18948
-SHA256 7fafaefd29b73f76ff8a2a90b827d213043be30b4e3ca4afd18b843cdcf16ab3 php-patchset-4.4.8-r0.tar.bz2 18948
-MD5 094162a3cc48bec95b29e02df4930a43 suhosin-patch-4.4.8-0.9.6.patch.gz 22246
-RMD160 01b59d520b987de1995bce7ab74f5d92ece2a89f suhosin-patch-4.4.8-0.9.6.patch.gz 22246
-SHA256 eff5b6ed79dd76c59bd63ac591f778266c2d518cfab2cede716637cf8fc99630 suhosin-patch-4.4.8-0.9.6.patch.gz 22246
diff --git a/dev-lang/php/files/digest-php-4.4.8_pre20070816 b/dev-lang/php/files/digest-php-4.4.8_pre20070816
deleted file mode 100644
index c83f292..0000000
--- a/dev-lang/php/files/digest-php-4.4.8_pre20070816
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 3755d38722835aba5910fcf4d6fc08f5 php-4.4.8_pre20070816.tar.bz2 4597067
-RMD160 f9ea4d071212c28be7e87a5f37b66c75b37c28ee php-4.4.8_pre20070816.tar.bz2 4597067
-SHA256 e9437ee6ad2b014143977cfb7ec70ad21ceef3e9c9d64a946abdad5a124e16fa php-4.4.8_pre20070816.tar.bz2 4597067
-MD5 f43f49033f73a7fee661e9f124835373 php-patchset-4.4.8_pre20070816-r0.tar.bz2 18987
-RMD160 d6239c033400d3267e149f87eb73897637c178e1 php-patchset-4.4.8_pre20070816-r0.tar.bz2 18987
-SHA256 7ec05e1648de766e297a6675a41d405adcbcfba71714e8b0962298085754b28b php-patchset-4.4.8_pre20070816-r0.tar.bz2 18987
-MD5 51ca84cf433c7df444e05c79a03019cc suhosin-patch-4.4.7-0.9.6-gentoo.patch.gz 21555
-RMD160 a4184998c0cbbc4b493c0c6874fca6ee923c7a83 suhosin-patch-4.4.7-0.9.6-gentoo.patch.gz 21555
-SHA256 93d4b422d6e3e4f8fff6cdeb6de619f70d527db44784d5bdcc6d83c0337ec784 suhosin-patch-4.4.7-0.9.6-gentoo.patch.gz 21555
diff --git a/dev-lang/php/files/digest-php-5.0.4 b/dev-lang/php/files/digest-php-5.0.4
deleted file mode 100644
index 7f7e849..0000000
--- a/dev-lang/php/files/digest-php-5.0.4
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 fb1aac107870f897d26563a9cc5053c0 php-5.0.4.tar.bz2 4731383
-MD5 361cc41c54174e098169d38ce6510c36 hardening-patch-5.0.4-0.4.1.patch.gz 81342
diff --git a/dev-lang/php/files/digest-php-5.0.4-r1 b/dev-lang/php/files/digest-php-5.0.4-r1
deleted file mode 100644
index a2bcd3e..0000000
--- a/dev-lang/php/files/digest-php-5.0.4-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 fb1aac107870f897d26563a9cc5053c0 php-5.0.4.tar.bz2 4731383
-MD5 361cc41c54174e098169d38ce6510c36 hardening-patch-5.0.4-0.4.1.patch.gz 81342
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-5.0.4-r2 b/dev-lang/php/files/digest-php-5.0.4-r2
deleted file mode 100644
index 6b6d1ce..0000000
--- a/dev-lang/php/files/digest-php-5.0.4-r2
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 361cc41c54174e098169d38ce6510c36 hardening-patch-5.0.4-0.4.1.patch.gz 81342
-MD5 fb1aac107870f897d26563a9cc5053c0 php-5.0.4.tar.bz2 4731383
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-5.0.4-r3 b/dev-lang/php/files/digest-php-5.0.4-r3
deleted file mode 100644
index 6b6d1ce..0000000
--- a/dev-lang/php/files/digest-php-5.0.4-r3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 361cc41c54174e098169d38ce6510c36 hardening-patch-5.0.4-0.4.1.patch.gz 81342
-MD5 fb1aac107870f897d26563a9cc5053c0 php-5.0.4.tar.bz2 4731383
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-5.0.4-r4 b/dev-lang/php/files/digest-php-5.0.4-r4
deleted file mode 100644
index 6b6d1ce..0000000
--- a/dev-lang/php/files/digest-php-5.0.4-r4
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 361cc41c54174e098169d38ce6510c36 hardening-patch-5.0.4-0.4.1.patch.gz 81342
-MD5 fb1aac107870f897d26563a9cc5053c0 php-5.0.4.tar.bz2 4731383
-MD5 33be24619f3a10953f9e1e32beeee97a php-pcrelib-new-secpatch.tar.bz2 357619
diff --git a/dev-lang/php/files/digest-php-5.0.5 b/dev-lang/php/files/digest-php-5.0.5
deleted file mode 100644
index efd648b..0000000
--- a/dev-lang/php/files/digest-php-5.0.5
+++ /dev/null
@@ -1 +0,0 @@
-MD5 b5d4ca75bbb11ee5b830fa67213d9f7f php-5.0.5.tar.bz2 4895556
diff --git a/dev-lang/php/files/digest-php-5.0.5-r1 b/dev-lang/php/files/digest-php-5.0.5-r1
deleted file mode 100644
index c7aa92f..0000000
--- a/dev-lang/php/files/digest-php-5.0.5-r1
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 b5d4ca75bbb11ee5b830fa67213d9f7f php-5.0.5.tar.bz2 4895556
-MD5 6af27b59251bb9ce4741b17e2e5358f7 hardening-patch-5.0.5-0.4.3.patch.gz 51173
diff --git a/dev-lang/php/files/digest-php-5.0.5-r2 b/dev-lang/php/files/digest-php-5.0.5-r2
deleted file mode 100644
index 9a62d89..0000000
--- a/dev-lang/php/files/digest-php-5.0.5-r2
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 6af27b59251bb9ce4741b17e2e5358f7 hardening-patch-5.0.5-0.4.3.patch.gz 51173
-MD5 b5d4ca75bbb11ee5b830fa67213d9f7f php-5.0.5.tar.bz2 4895556
diff --git a/dev-lang/php/files/digest-php-5.0.5-r3 b/dev-lang/php/files/digest-php-5.0.5-r3
deleted file mode 100644
index 9a62d89..0000000
--- a/dev-lang/php/files/digest-php-5.0.5-r3
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 6af27b59251bb9ce4741b17e2e5358f7 hardening-patch-5.0.5-0.4.3.patch.gz 51173
-MD5 b5d4ca75bbb11ee5b830fa67213d9f7f php-5.0.5.tar.bz2 4895556
diff --git a/dev-lang/php/files/digest-php-5.0.5-r4 b/dev-lang/php/files/digest-php-5.0.5-r4
deleted file mode 100644
index 9a62d89..0000000
--- a/dev-lang/php/files/digest-php-5.0.5-r4
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 6af27b59251bb9ce4741b17e2e5358f7 hardening-patch-5.0.5-0.4.3.patch.gz 51173
-MD5 b5d4ca75bbb11ee5b830fa67213d9f7f php-5.0.5.tar.bz2 4895556
diff --git a/dev-lang/php/files/digest-php-5.0.5-r5 b/dev-lang/php/files/digest-php-5.0.5-r5
deleted file mode 100644
index 1ebee2f..0000000
--- a/dev-lang/php/files/digest-php-5.0.5-r5
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 dd3aaa1c68bfd1626901721686474700 hardening-patch-5.0.5-0.4.8-gentoo.patch.gz 57864
-MD5 b5d4ca75bbb11ee5b830fa67213d9f7f php-5.0.5.tar.bz2 4895556
diff --git a/dev-lang/php/files/digest-php-5.1.1 b/dev-lang/php/files/digest-php-5.1.1
deleted file mode 100644
index ca64fef..0000000
--- a/dev-lang/php/files/digest-php-5.1.1
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 79725da7da569045a6ad2e790b08fbb8 hardening-patch-5.1.1-0.4.8-gentoo.patch.gz 57546
-MD5 70a7c90de182d1a1901c390b844153c7 php-5.1.1.tar.bz2 6149470
diff --git a/dev-lang/php/files/digest-php-5.1.2 b/dev-lang/php/files/digest-php-5.1.2
deleted file mode 100644
index 5925d4a..0000000
--- a/dev-lang/php/files/digest-php-5.1.2
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 61d534c04399b5fa1f167ec2d86351a3 hardening-patch-5.1.2-0.4.8-gentoo.patch.gz 57663
-RMD160 2b79a7a367b834fefd1c82268424bee35dd27474 hardening-patch-5.1.2-0.4.8-gentoo.patch.gz 57663
-SHA256 7e6453a9b45daf9af9d861b3907349d1d385eed7341f1c5427ab7b2a5f4794f7 hardening-patch-5.1.2-0.4.8-gentoo.patch.gz 57663
-MD5 79cee17e9db85be878000a2a4198378e php-5.1.2.tar.bz2 6319905
-RMD160 1e21b5ba280b7efc8197802c673bb5d4e9dc9f8e php-5.1.2.tar.bz2 6319905
-SHA256 a18399360e1c5dcbdfed4f7215ae8fd2a5e057c24b86392392e832216aa63202 php-5.1.2.tar.bz2 6319905
-MD5 2a99a8cd646da25e92d10b3ce91cceb4 php-patchset-5.1.2-r1.tar.bz2 6782
-RMD160 a0dcf11a29b8a0654ca158532f6865819cb2ef6f php-patchset-5.1.2-r1.tar.bz2 6782
-SHA256 e171ed1b1dac3571b1c72c3fb48e7d79029a99562c83e1e1242c2589aeff685e php-patchset-5.1.2-r1.tar.bz2 6782
diff --git a/dev-lang/php/files/digest-php-5.1.2-r1 b/dev-lang/php/files/digest-php-5.1.2-r1
deleted file mode 100644
index c798681..0000000
--- a/dev-lang/php/files/digest-php-5.1.2-r1
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 61d534c04399b5fa1f167ec2d86351a3 hardening-patch-5.1.2-0.4.8-gentoo.patch.gz 57663
-RMD160 2b79a7a367b834fefd1c82268424bee35dd27474 hardening-patch-5.1.2-0.4.8-gentoo.patch.gz 57663
-SHA256 7e6453a9b45daf9af9d861b3907349d1d385eed7341f1c5427ab7b2a5f4794f7 hardening-patch-5.1.2-0.4.8-gentoo.patch.gz 57663
-MD5 79cee17e9db85be878000a2a4198378e php-5.1.2.tar.bz2 6319905
-RMD160 1e21b5ba280b7efc8197802c673bb5d4e9dc9f8e php-5.1.2.tar.bz2 6319905
-SHA256 a18399360e1c5dcbdfed4f7215ae8fd2a5e057c24b86392392e832216aa63202 php-5.1.2.tar.bz2 6319905
-MD5 2ba96733f6786016f367d152922d5dfb php-patchset-5.1.2-r2.tar.bz2 8278
-RMD160 320dbe43eea1025c0ec007f5eb4f1de2422cff98 php-patchset-5.1.2-r2.tar.bz2 8278
-SHA256 059b45665051b6b5434f061ec8e04ba0cc4dc15892b8572218c0cbd8c15397ab php-patchset-5.1.2-r2.tar.bz2 8278
diff --git a/dev-lang/php/files/digest-php-5.1.4 b/dev-lang/php/files/digest-php-5.1.4
deleted file mode 100644
index 92be8cd..0000000
--- a/dev-lang/php/files/digest-php-5.1.4
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 6d0b7d563e5c18bc9cdd612737fc6982 hardening-patch-5.1.4-0.4.9-gentoo.patch.gz 57671
-RMD160 c9e16019388d55a17d1c198f24492d7d07d68847 hardening-patch-5.1.4-0.4.9-gentoo.patch.gz 57671
-SHA256 f877989c03d13bb3b51e9af4e9a67d535da35784ceabd19dcd85be64ff6b9efa hardening-patch-5.1.4-0.4.9-gentoo.patch.gz 57671
-MD5 b55e633bdc80ab30da7c92f760fc4b58 php-5.1.4.tar.bz2 5992825
-RMD160 5468a7d544285438c78a8f68f1169dc22e4e8a2b php-5.1.4.tar.bz2 5992825
-SHA256 43d323b1730e2bc77ec16ee374effb38ec5be0f22e906c55c2e30dfaf22bb865 php-5.1.4.tar.bz2 5992825
-MD5 5e1e40f3f7fecf45d30f599cd3c17529 php-patchset-5.1.4-r1.tar.bz2 7330
-RMD160 ed33ee236286539a0614709d944ac636b84bca45 php-patchset-5.1.4-r1.tar.bz2 7330
-SHA256 5a780b331343fa1fb6c3c4a76bf87e24e586ca2f41c5cd3824291f1b0037e961 php-patchset-5.1.4-r1.tar.bz2 7330
diff --git a/dev-lang/php/files/digest-php-5.1.4-r1 b/dev-lang/php/files/digest-php-5.1.4-r1
deleted file mode 100644
index 54d9928..0000000
--- a/dev-lang/php/files/digest-php-5.1.4-r1
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 aad3814b698d1e2ade853fe5c68db7e5 hardening-patch-5.1.4-0.4.11-gentoo.patch.gz 58174
-RMD160 afabbf21c5d82a9ead56b1718b4e7e6eda5eb6b6 hardening-patch-5.1.4-0.4.11-gentoo.patch.gz 58174
-SHA256 4f0bdc6de6b00333c7678b4bebeb1a9de7f6987413707956b6a7e099ebe1089e hardening-patch-5.1.4-0.4.11-gentoo.patch.gz 58174
-MD5 66a806161d4a2d3b5153ebe4cd0f2e1c php-5.1.4.tar.bz2 6356171
-RMD160 d4ab11884a3a899f21eef777767a553cf81584ce php-5.1.4.tar.bz2 6356171
-SHA256 b55253e9557eceb901d83217ec192da22c28c7b2fdf714d3f151f1db663b5a32 php-5.1.4.tar.bz2 6356171
-MD5 03737a21e078200f4657303bd42c0244 php-patchset-5.1.4-r2.tar.bz2 12109
-RMD160 9ff211b307f9b790d2e5e2d8ef2795b3869fdfde php-patchset-5.1.4-r2.tar.bz2 12109
-SHA256 346615ebd20a07ac1f60275a54eeb7b34f26557960802c5319e19640632b3ae1 php-patchset-5.1.4-r2.tar.bz2 12109
diff --git a/dev-lang/php/files/digest-php-5.1.4-r3 b/dev-lang/php/files/digest-php-5.1.4-r3
deleted file mode 100644
index ed82c02..0000000
--- a/dev-lang/php/files/digest-php-5.1.4-r3
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 aad3814b698d1e2ade853fe5c68db7e5 hardening-patch-5.1.4-0.4.11-gentoo.patch.gz 58174
-RMD160 afabbf21c5d82a9ead56b1718b4e7e6eda5eb6b6 hardening-patch-5.1.4-0.4.11-gentoo.patch.gz 58174
-SHA256 4f0bdc6de6b00333c7678b4bebeb1a9de7f6987413707956b6a7e099ebe1089e hardening-patch-5.1.4-0.4.11-gentoo.patch.gz 58174
-MD5 66a806161d4a2d3b5153ebe4cd0f2e1c php-5.1.4.tar.bz2 6356171
-RMD160 d4ab11884a3a899f21eef777767a553cf81584ce php-5.1.4.tar.bz2 6356171
-SHA256 b55253e9557eceb901d83217ec192da22c28c7b2fdf714d3f151f1db663b5a32 php-5.1.4.tar.bz2 6356171
-MD5 2c4239724b3875f7629d54650e775aac php-patchset-5.1.4-r4.tar.bz2 13600
-RMD160 2e47fb1a0d587c3b70f30d44f00ca122a58e1bb9 php-patchset-5.1.4-r4.tar.bz2 13600
-SHA256 4aa7df8cec6067a42a595600f3cef5b82e2bc1c7ab5999f9bca65d37ea1934a9 php-patchset-5.1.4-r4.tar.bz2 13600
diff --git a/dev-lang/php/files/digest-php-5.1.4-r4 b/dev-lang/php/files/digest-php-5.1.4-r4
deleted file mode 100644
index 0ec44b2..0000000
--- a/dev-lang/php/files/digest-php-5.1.4-r4
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 5c05d2abcc496454c17deb1889c6131c hardening-patch-5.1.4-0.4.11-gentoo-r1.patch.gz 58168
-RMD160 8fe4085261c939944567a796e4be8d0af9fc4a66 hardening-patch-5.1.4-0.4.11-gentoo-r1.patch.gz 58168
-SHA256 fd07ac145966e931f961c392ca087a2a7e93ba9c6bcc0ff382ca80d5019480d6 hardening-patch-5.1.4-0.4.11-gentoo-r1.patch.gz 58168
-MD5 66a806161d4a2d3b5153ebe4cd0f2e1c php-5.1.4.tar.bz2 6356171
-RMD160 d4ab11884a3a899f21eef777767a553cf81584ce php-5.1.4.tar.bz2 6356171
-SHA256 b55253e9557eceb901d83217ec192da22c28c7b2fdf714d3f151f1db663b5a32 php-5.1.4.tar.bz2 6356171
-MD5 1563ba29dae55380ef1b88be07fe39c6 php-patchset-5.1.4-r5.tar.bz2 21025
-RMD160 ebe867eff66440c1714ac2cb87c11ee17f15d8ea php-patchset-5.1.4-r5.tar.bz2 21025
-SHA256 8d682d0b26dcbd5ee420bc2c2e1483a68a34ede6eecf7ae83f1ea9ca36a6c57f php-patchset-5.1.4-r5.tar.bz2 21025
diff --git a/dev-lang/php/files/digest-php-5.1.4-r6 b/dev-lang/php/files/digest-php-5.1.4-r6
deleted file mode 100644
index 48b8be4..0000000
--- a/dev-lang/php/files/digest-php-5.1.4-r6
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 845cb6dc64a97c324a07b9004320508e hardening-patch-5.1.4-0.4.13-gentoo.patch.gz 59457
-RMD160 301592ee7fd7290e1c61d5e90f9a88a683ab8b3b hardening-patch-5.1.4-0.4.13-gentoo.patch.gz 59457
-SHA256 ab3da7f799eaecda3fecf5971ed821ba60a3a8e0f4a931114122791542d95ddc hardening-patch-5.1.4-0.4.13-gentoo.patch.gz 59457
-MD5 66a806161d4a2d3b5153ebe4cd0f2e1c php-5.1.4.tar.bz2 6356171
-RMD160 d4ab11884a3a899f21eef777767a553cf81584ce php-5.1.4.tar.bz2 6356171
-SHA256 b55253e9557eceb901d83217ec192da22c28c7b2fdf714d3f151f1db663b5a32 php-5.1.4.tar.bz2 6356171
-MD5 66d47faba2b9e98566101ce5f87421a9 php-patchset-5.1.4-r6.tar.bz2 29925
-RMD160 06e4cc0d2937786ac64446db9954897af2bd15c6 php-patchset-5.1.4-r6.tar.bz2 29925
-SHA256 9a29de8dba649f91057d7c2f1b853dc81228936c78d0fb787287531eaf316b39 php-patchset-5.1.4-r6.tar.bz2 29925
diff --git a/dev-lang/php/files/digest-php-5.1.6 b/dev-lang/php/files/digest-php-5.1.6
deleted file mode 100644
index acd7883..0000000
--- a/dev-lang/php/files/digest-php-5.1.6
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 48c310f69eff54f6f851a7bf1d1b2359 hardening-patch-5.1.6-0.4.14-gentoo.patch.gz 60949
-RMD160 4636e215cf13d50bcbdd75da45ef624d1c19ed5d hardening-patch-5.1.6-0.4.14-gentoo.patch.gz 60949
-SHA256 515687900f7976872cb14f5b052890b22c4b1cbea1dcfbab852b79dab13831bf hardening-patch-5.1.6-0.4.14-gentoo.patch.gz 60949
-MD5 08e423aa314369d4392a36b3f7246afc php-5.1.6.tar.bz2 6454408
-RMD160 7ac52f4674532397c982f6ced594b70dd17522af php-5.1.6.tar.bz2 6454408
-SHA256 3e9510ce715f28b7e6b803fcdadb73b37c83792c0b5e1e9bcb066ab972649996 php-5.1.6.tar.bz2 6454408
-MD5 290a83a8f87414830d705ac720b84336 php-patchset-5.1.6-r1.tar.bz2 22390
-RMD160 9bb28e7b2c247e890e386e89a820dc89a5ae3f05 php-patchset-5.1.6-r1.tar.bz2 22390
-SHA256 a3d1fb8926c8fd4a545559c859a2787ba08d94f60fd352512d8c5b2a3d98c14c php-patchset-5.1.6-r1.tar.bz2 22390
diff --git a/dev-lang/php/files/digest-php-5.1.6-r1 b/dev-lang/php/files/digest-php-5.1.6-r1
deleted file mode 100644
index acd7883..0000000
--- a/dev-lang/php/files/digest-php-5.1.6-r1
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 48c310f69eff54f6f851a7bf1d1b2359 hardening-patch-5.1.6-0.4.14-gentoo.patch.gz 60949
-RMD160 4636e215cf13d50bcbdd75da45ef624d1c19ed5d hardening-patch-5.1.6-0.4.14-gentoo.patch.gz 60949
-SHA256 515687900f7976872cb14f5b052890b22c4b1cbea1dcfbab852b79dab13831bf hardening-patch-5.1.6-0.4.14-gentoo.patch.gz 60949
-MD5 08e423aa314369d4392a36b3f7246afc php-5.1.6.tar.bz2 6454408
-RMD160 7ac52f4674532397c982f6ced594b70dd17522af php-5.1.6.tar.bz2 6454408
-SHA256 3e9510ce715f28b7e6b803fcdadb73b37c83792c0b5e1e9bcb066ab972649996 php-5.1.6.tar.bz2 6454408
-MD5 290a83a8f87414830d705ac720b84336 php-patchset-5.1.6-r1.tar.bz2 22390
-RMD160 9bb28e7b2c247e890e386e89a820dc89a5ae3f05 php-patchset-5.1.6-r1.tar.bz2 22390
-SHA256 a3d1fb8926c8fd4a545559c859a2787ba08d94f60fd352512d8c5b2a3d98c14c php-patchset-5.1.6-r1.tar.bz2 22390
diff --git a/dev-lang/php/files/digest-php-5.1.6-r11 b/dev-lang/php/files/digest-php-5.1.6-r11
deleted file mode 100644
index 54c00c6..0000000
--- a/dev-lang/php/files/digest-php-5.1.6-r11
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 08e423aa314369d4392a36b3f7246afc php-5.1.6.tar.bz2 6454408
-RMD160 7ac52f4674532397c982f6ced594b70dd17522af php-5.1.6.tar.bz2 6454408
-SHA256 3e9510ce715f28b7e6b803fcdadb73b37c83792c0b5e1e9bcb066ab972649996 php-5.1.6.tar.bz2 6454408
-MD5 e2f377cf0e043348f655fd35a170138a php-patchset-5.1.6-r8.tar.bz2 30004
-RMD160 5f93cda0783ba541cdc392d8f82344d340a6cc47 php-patchset-5.1.6-r8.tar.bz2 30004
-SHA256 f9e5f9b9ccf0fd4be00822a4d75832eb09f989db7229e275b666f00e6dad93d7 php-patchset-5.1.6-r8.tar.bz2 30004
-MD5 2e36ccba7e34191685308fb78def2c60 suhosin-patch-5.1.6-0.9.6-gentoo.patch.gz 23153
-RMD160 8ae3b22638f927041f769e8052fba3841f891bbf suhosin-patch-5.1.6-0.9.6-gentoo.patch.gz 23153
-SHA256 07c89856820e2dbbefdb5141412fa1a52dd6f9f38fa987573fdccf5fa6a68361 suhosin-patch-5.1.6-0.9.6-gentoo.patch.gz 23153
diff --git a/dev-lang/php/files/digest-php-5.1.6-r2 b/dev-lang/php/files/digest-php-5.1.6-r2
deleted file mode 100644
index acd7883..0000000
--- a/dev-lang/php/files/digest-php-5.1.6-r2
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 48c310f69eff54f6f851a7bf1d1b2359 hardening-patch-5.1.6-0.4.14-gentoo.patch.gz 60949
-RMD160 4636e215cf13d50bcbdd75da45ef624d1c19ed5d hardening-patch-5.1.6-0.4.14-gentoo.patch.gz 60949
-SHA256 515687900f7976872cb14f5b052890b22c4b1cbea1dcfbab852b79dab13831bf hardening-patch-5.1.6-0.4.14-gentoo.patch.gz 60949
-MD5 08e423aa314369d4392a36b3f7246afc php-5.1.6.tar.bz2 6454408
-RMD160 7ac52f4674532397c982f6ced594b70dd17522af php-5.1.6.tar.bz2 6454408
-SHA256 3e9510ce715f28b7e6b803fcdadb73b37c83792c0b5e1e9bcb066ab972649996 php-5.1.6.tar.bz2 6454408
-MD5 290a83a8f87414830d705ac720b84336 php-patchset-5.1.6-r1.tar.bz2 22390
-RMD160 9bb28e7b2c247e890e386e89a820dc89a5ae3f05 php-patchset-5.1.6-r1.tar.bz2 22390
-SHA256 a3d1fb8926c8fd4a545559c859a2787ba08d94f60fd352512d8c5b2a3d98c14c php-patchset-5.1.6-r1.tar.bz2 22390
diff --git a/dev-lang/php/files/digest-php-5.1.6-r4 b/dev-lang/php/files/digest-php-5.1.6-r4
deleted file mode 100644
index 6ad1ff5..0000000
--- a/dev-lang/php/files/digest-php-5.1.6-r4
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 ca028a70eec1af684a31b01d982679fd hardening-patch-5.1.6-0.4.15-gentoo.patch.gz 61484
-RMD160 e4a49784b075ffaee56798b9ef086df06e3ea320 hardening-patch-5.1.6-0.4.15-gentoo.patch.gz 61484
-SHA256 f4fb1944828193e723932ffbebb44ba3ae013171df6d3eb44644c9a4a8610db0 hardening-patch-5.1.6-0.4.15-gentoo.patch.gz 61484
-MD5 08e423aa314369d4392a36b3f7246afc php-5.1.6.tar.bz2 6454408
-RMD160 7ac52f4674532397c982f6ced594b70dd17522af php-5.1.6.tar.bz2 6454408
-SHA256 3e9510ce715f28b7e6b803fcdadb73b37c83792c0b5e1e9bcb066ab972649996 php-5.1.6.tar.bz2 6454408
-MD5 450381b70ea199d78a39564ca5b6813d php-patchset-5.1.6-r2.tar.bz2 22693
-RMD160 aebcfb0cd1685512dd86e1a92d77ff91ca5b83f7 php-patchset-5.1.6-r2.tar.bz2 22693
-SHA256 06e6526388464c1f2e1b953e49b0463c6dfdda461fed889cb632aef855cd49cb php-patchset-5.1.6-r2.tar.bz2 22693
diff --git a/dev-lang/php/files/digest-php-5.1.6-r6 b/dev-lang/php/files/digest-php-5.1.6-r6
deleted file mode 100644
index 9cf6dd4..0000000
--- a/dev-lang/php/files/digest-php-5.1.6-r6
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 ba5d540574209a683dd8cf8d564e3b61 hardening-patch-5.1.6-0.4.15-gentoo-r1.patch.gz 61476
-RMD160 5185bf7b2282b3bed2f6a06a8314cfab7b5b8cbc hardening-patch-5.1.6-0.4.15-gentoo-r1.patch.gz 61476
-SHA256 836416114d4408377d04ee5b704dde0bd74511c0f114fe02602dab12e9e4902c hardening-patch-5.1.6-0.4.15-gentoo-r1.patch.gz 61476
-MD5 08e423aa314369d4392a36b3f7246afc php-5.1.6.tar.bz2 6454408
-RMD160 7ac52f4674532397c982f6ced594b70dd17522af php-5.1.6.tar.bz2 6454408
-SHA256 3e9510ce715f28b7e6b803fcdadb73b37c83792c0b5e1e9bcb066ab972649996 php-5.1.6.tar.bz2 6454408
-MD5 ac23e1e0fc0b76a9533a5ba2730f4383 php-patchset-5.1.6-r3.tar.bz2 25666
-RMD160 77bcca9e95e828bc73320c978d323eeda87a54f0 php-patchset-5.1.6-r3.tar.bz2 25666
-SHA256 afacb3ba0cac6b796c828106082da105cb7c34ef7c5f094cd139a1b3c31f1989 php-patchset-5.1.6-r3.tar.bz2 25666
diff --git a/dev-lang/php/files/digest-php-5.1.6-r8 b/dev-lang/php/files/digest-php-5.1.6-r8
deleted file mode 100644
index 675b8ce..0000000
--- a/dev-lang/php/files/digest-php-5.1.6-r8
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 ba5d540574209a683dd8cf8d564e3b61 hardening-patch-5.1.6-0.4.15-gentoo-r1.patch.gz 61476
-RMD160 5185bf7b2282b3bed2f6a06a8314cfab7b5b8cbc hardening-patch-5.1.6-0.4.15-gentoo-r1.patch.gz 61476
-SHA256 836416114d4408377d04ee5b704dde0bd74511c0f114fe02602dab12e9e4902c hardening-patch-5.1.6-0.4.15-gentoo-r1.patch.gz 61476
-MD5 08e423aa314369d4392a36b3f7246afc php-5.1.6.tar.bz2 6454408
-RMD160 7ac52f4674532397c982f6ced594b70dd17522af php-5.1.6.tar.bz2 6454408
-SHA256 3e9510ce715f28b7e6b803fcdadb73b37c83792c0b5e1e9bcb066ab972649996 php-5.1.6.tar.bz2 6454408
-MD5 af5dc2be4f0d265a73e4fdc1be1b5b0f php-patchset-5.1.6-r4.tar.bz2 26474
-RMD160 fa1ac197d9f9a97e053f20b64babdfeec371dbb3 php-patchset-5.1.6-r4.tar.bz2 26474
-SHA256 c90c724072b3f826e474c646eb907202c0166df472b64538863263b7bf9c028d php-patchset-5.1.6-r4.tar.bz2 26474
diff --git a/dev-lang/php/files/digest-php-5.2.1-r3 b/dev-lang/php/files/digest-php-5.2.1-r3
deleted file mode 100644
index 54bf655..0000000
--- a/dev-lang/php/files/digest-php-5.2.1-r3
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 261218e3569a777dbd87c16a15f05c8d php-5.2.1.tar.bz2 7163383
-RMD160 f75078e0e43cb9c64e6d0a8d51a2ebd23cc9131d php-5.2.1.tar.bz2 7163383
-SHA256 4b60fa70969644d193d58dd7cb9f2765e304c6368e98b1551e92e8d4e14d35ed php-5.2.1.tar.bz2 7163383
-MD5 7ea0587e479d92196831b95e260d2039 php-patchset-5.2.1-r4.tar.bz2 23599
-RMD160 271aee07634277b37c450824d2f188203beef154 php-patchset-5.2.1-r4.tar.bz2 23599
-SHA256 fc4627d63cd387981b3c3f04e2d5c83a227e446929aefbbc44316981c3565138 php-patchset-5.2.1-r4.tar.bz2 23599
-MD5 93c12d351c3ddb811b12f2d897c4f1d5 suhosin-patch-5.2.1-0.9.6.2-gentoo.patch.gz 22686
-RMD160 93d0ba56d9caa5264e60e812e18d100180d610bc suhosin-patch-5.2.1-0.9.6.2-gentoo.patch.gz 22686
-SHA256 f6072cfd46f9d308b43653844c3f5062e6ce0bfe91c02da0a10c96905f0d0829 suhosin-patch-5.2.1-0.9.6.2-gentoo.patch.gz 22686
diff --git a/dev-lang/php/files/digest-php-5.2.2-r1 b/dev-lang/php/files/digest-php-5.2.2-r1
deleted file mode 100644
index dffdc71..0000000
--- a/dev-lang/php/files/digest-php-5.2.2-r1
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 d084337867d70b50a10322577be0e44e php-5.2.2.tar.bz2 7310926
-RMD160 15e844530bced2960e35fd291fb71a416562aec0 php-5.2.2.tar.bz2 7310926
-SHA256 cd69e73c46e1d171ac0cf27b7ee492c3bf8f6b45a763a77fd0cb79d5afa9f407 php-5.2.2.tar.bz2 7310926
-MD5 8561b1341061d54c5d5a0c6cb1c2c948 php-patchset-5.2.2-r2.tar.bz2 11486
-RMD160 46ed4fc1e30f35dbd8e8d0db4ed47109a19de6c7 php-patchset-5.2.2-r2.tar.bz2 11486
-SHA256 553c654ef7df90dc5cf64eb339884ed1730c4270bb2005fccb7da23da2c3aa74 php-patchset-5.2.2-r2.tar.bz2 11486
-MD5 2af1381b994851b0d361f26ef8373f19 suhosin-patch-5.2.2-0.9.6.2-gentoo.patch.gz 22854
-RMD160 808c187e650861fecb647474bd328d4940f0f1a6 suhosin-patch-5.2.2-0.9.6.2-gentoo.patch.gz 22854
-SHA256 867b6e45541e060d97d0567d81688a044734f0af6789ec2a1c70d2dea2f9fabb suhosin-patch-5.2.2-0.9.6.2-gentoo.patch.gz 22854
diff --git a/dev-lang/php/files/digest-php-5.2.3-r3 b/dev-lang/php/files/digest-php-5.2.3-r3
deleted file mode 100644
index b2fd03d..0000000
--- a/dev-lang/php/files/digest-php-5.2.3-r3
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 eb50b751c8e1ced05bd012d5a0e4dec3 php-5.2.3.tar.bz2 7417635
-RMD160 3c895cf7e513e5a3d7d9f742a9d56102cbb3a79b php-5.2.3.tar.bz2 7417635
-SHA256 eedffda5069caa801a7fec217c77619657416a5fcaefb79ba4620432f0befe29 php-5.2.3.tar.bz2 7417635
-MD5 45fe9a704e4efadcfe51a226ecc9ba03 php-patchset-5.2.3-r4.tar.bz2 17870
-RMD160 26334a7bcdc0ee40a730544fc9068be0f5ee47c5 php-patchset-5.2.3-r4.tar.bz2 17870
-SHA256 37d76fa3b3f72956daba943e67b12717b3b6298bfe2d7cc752040dd775b7877a php-patchset-5.2.3-r4.tar.bz2 17870
-MD5 f217d04f9513222e48cea6588ac65b89 suhosin-patch-5.2.3-0.9.6.2-gentoo.patch.gz 22789
-RMD160 3adfe1038b8436dac56cb05c63a2b1305a6a0266 suhosin-patch-5.2.3-0.9.6.2-gentoo.patch.gz 22789
-SHA256 214c43e4808483f0700f36ffa57aba909a669cb335c179d46c1e8f765d70bd1f suhosin-patch-5.2.3-0.9.6.2-gentoo.patch.gz 22789
diff --git a/dev-lang/php/files/digest-php-5.2.4 b/dev-lang/php/files/digest-php-5.2.4
deleted file mode 100644
index 7e15568..0000000
--- a/dev-lang/php/files/digest-php-5.2.4
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 55c97a671fdabf462cc7a82971a656d2 php-5.2.4.tar.bz2 7608429
-RMD160 22728d27ec3ba3287943ea878fefbba0b4ffdc00 php-5.2.4.tar.bz2 7608429
-SHA256 502f5259e4619ba3549cd9f9bdeb4152c7effa66672348f3b108fccc8e1ca1c0 php-5.2.4.tar.bz2 7608429
-MD5 d909a241292a8fc5f58f84aa18e82e7e php-patchset-5.2.4-r0.tar.bz2 10305
-RMD160 84ff2dffe6e6099d9dc8ad98fc5b99e10ac3218c php-patchset-5.2.4-r0.tar.bz2 10305
-SHA256 4ee25d74e81e44ad2fc6a0c4cf41942ef92073d61efb4b640aa63a58edb6c5fa php-patchset-5.2.4-r0.tar.bz2 10305
-MD5 becfae15ba8ec7cdbc1f084b7938063e suhosin-patch-5.2.4-0.9.6.2-gentoo.patch.gz 22292
-RMD160 185bdd92dee54d83674b3de7262d57a6ac3ef14b suhosin-patch-5.2.4-0.9.6.2-gentoo.patch.gz 22292
-SHA256 3a0cecf36a74d6cb8e0042363fcbadc4afd0046eb3baff6d4dec415f6464a96a suhosin-patch-5.2.4-0.9.6.2-gentoo.patch.gz 22292
diff --git a/dev-lang/php/files/digest-php-5.2.4_p20070914 b/dev-lang/php/files/digest-php-5.2.4_p20070914
deleted file mode 100644
index 8d4224c..0000000
--- a/dev-lang/php/files/digest-php-5.2.4_p20070914
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 ec68c579100b88d4b8bf0976fb271025 php-5.2.4_p20070914.tar.bz2 7275434
-RMD160 87c012d03cd89951260b1f97cd3c16c935615867 php-5.2.4_p20070914.tar.bz2 7275434
-SHA256 00b561f85e31db500a959b028572031ae61d6971b4487be2fd301bae2f936009 php-5.2.4_p20070914.tar.bz2 7275434
-MD5 fd5048a6eaca5781d92426b1233217d1 php-patchset-5.2.4_p20070914-r0.tar.bz2 8480
-RMD160 7681bbca3420d02baf5297f5fd08712b3f3adb5d php-patchset-5.2.4_p20070914-r0.tar.bz2 8480
-SHA256 110751227f00302d72e5923750b45991c51c16331e5cb161f49359ab496f4b86 php-patchset-5.2.4_p20070914-r0.tar.bz2 8480
-MD5 883387a5a32f66bf37d1671ade836aff suhosin-patch-5.2.4_p20070914-0.9.6.2-gentoo.patch.gz 22381
-RMD160 e2594b48a9fd407b4418e09c61fed09232ab53d5 suhosin-patch-5.2.4_p20070914-0.9.6.2-gentoo.patch.gz 22381
-SHA256 cc022a3d2e37f7e1211d90bb320922bd4d3a8c65c5888a5bea0040723e78259b suhosin-patch-5.2.4_p20070914-0.9.6.2-gentoo.patch.gz 22381
diff --git a/dev-lang/php/files/digest-php-5.2.4_p20070914-r2 b/dev-lang/php/files/digest-php-5.2.4_p20070914-r2
deleted file mode 100644
index 389ed50..0000000
--- a/dev-lang/php/files/digest-php-5.2.4_p20070914-r2
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 ec68c579100b88d4b8bf0976fb271025 php-5.2.4_p20070914.tar.bz2 7275434
-RMD160 87c012d03cd89951260b1f97cd3c16c935615867 php-5.2.4_p20070914.tar.bz2 7275434
-SHA256 00b561f85e31db500a959b028572031ae61d6971b4487be2fd301bae2f936009 php-5.2.4_p20070914.tar.bz2 7275434
-MD5 cbd683a18a4d97acdbc022d8deab72b1 php-patchset-5.2.4_p20070914-r2.tar.bz2 12457
-RMD160 2fa6b3c480bede06287418af3f0cb4c69cb9d628 php-patchset-5.2.4_p20070914-r2.tar.bz2 12457
-SHA256 68974c9beda11ccf4e10c63609003e7664c29b45801cbf7e55e410c1dd453403 php-patchset-5.2.4_p20070914-r2.tar.bz2 12457
-MD5 16e1730b91944579764e5dc02736f903 suhosin-patch-5.2.4_p20070914-0.9.6.2-gentoo-r1.patch.gz 22407
-RMD160 0cd0d6e9f14acb968cced10164f27389d0fa8bf9 suhosin-patch-5.2.4_p20070914-0.9.6.2-gentoo-r1.patch.gz 22407
-SHA256 96ac1facb558b4dd4afe098cc776efc93602adc2683ba3157db39b7772183d1f suhosin-patch-5.2.4_p20070914-0.9.6.2-gentoo-r1.patch.gz 22407
diff --git a/dev-lang/php/files/digest-php-5.2.4_pre200708051230-r2 b/dev-lang/php/files/digest-php-5.2.4_pre200708051230-r2
deleted file mode 100644
index 28916c7..0000000
--- a/dev-lang/php/files/digest-php-5.2.4_pre200708051230-r2
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 db34d89917692d44808a9c5f52d0be94 php-5.2.4_pre200708051230.tar.bz2 7115061
-RMD160 ec286dc0102989c108c5382330fc36108512c7f5 php-5.2.4_pre200708051230.tar.bz2 7115061
-SHA256 c40197d6efd514d6a1402ce769382ecc0e047db59c2501dd4f9b761c7e50b8b6 php-5.2.4_pre200708051230.tar.bz2 7115061
-MD5 a59d5c52b9372ee7cf3e29821b656416 php-patchset-5.2.4_pre200708051230-r2.tar.bz2 10339
-RMD160 2e0837b813ff16d83a8bb88cc3e8ff7789abd8f8 php-patchset-5.2.4_pre200708051230-r2.tar.bz2 10339
-SHA256 036cfa2a4dba009d2317c36527b9cd4763c2b3a7dffb7b6b3dcbb09fec0b5dde php-patchset-5.2.4_pre200708051230-r2.tar.bz2 10339
-MD5 97bc107b57f89f6abce22358598bf4aa suhosin-patch-5.2.4_pre200708051230-0.9.6.2-gentoo.patch.gz 22349
-RMD160 d9121893407346fb0ba64fdc4ba5585ed4a118ea suhosin-patch-5.2.4_pre200708051230-0.9.6.2-gentoo.patch.gz 22349
-SHA256 0074b4fa4869f1ba7b8e85cfd69076cd674a9599c6e04c9a92f7fe07b9a6a292 suhosin-patch-5.2.4_pre200708051230-0.9.6.2-gentoo.patch.gz 22349
diff --git a/dev-lang/php/files/digest-php-5.2.5 b/dev-lang/php/files/digest-php-5.2.5
deleted file mode 100644
index 52d06ea..0000000
--- a/dev-lang/php/files/digest-php-5.2.5
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 1fe14ca892460b09f06729941a1bb605 php-5.2.5.tar.bz2 7773024
-RMD160 2d5755f2ae8884e80f0a5c70e8fdfdb6deed46bc php-5.2.5.tar.bz2 7773024
-SHA256 5cac1e70df5019ebdfdab2e0b8b216f7fdf56b9895c9f68c993313918249bba3 php-5.2.5.tar.bz2 7773024
-MD5 c0158ee0ccf195a200935f2b0004a042 php-patchset-5.2.5-r0.tar.bz2 8743
-RMD160 e6b22a83a10abadd05660c682fd015f65d440245 php-patchset-5.2.5-r0.tar.bz2 8743
-SHA256 1c69588d71027376a8476117952db40a2da821fc98bbe3ba69bf9ce1632feec3 php-patchset-5.2.5-r0.tar.bz2 8743
-MD5 16e1730b91944579764e5dc02736f903 suhosin-patch-5.2.4_p20070914-0.9.6.2-gentoo-r1.patch.gz 22407
-RMD160 0cd0d6e9f14acb968cced10164f27389d0fa8bf9 suhosin-patch-5.2.4_p20070914-0.9.6.2-gentoo-r1.patch.gz 22407
-SHA256 96ac1facb558b4dd4afe098cc776efc93602adc2683ba3157db39b7772183d1f suhosin-patch-5.2.4_p20070914-0.9.6.2-gentoo-r1.patch.gz 22407
diff --git a/dev-lang/php/files/digest-php-5.2.5-r1 b/dev-lang/php/files/digest-php-5.2.5-r1
deleted file mode 100644
index 408a191..0000000
--- a/dev-lang/php/files/digest-php-5.2.5-r1
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 1fe14ca892460b09f06729941a1bb605 php-5.2.5.tar.bz2 7773024
-RMD160 2d5755f2ae8884e80f0a5c70e8fdfdb6deed46bc php-5.2.5.tar.bz2 7773024
-SHA256 5cac1e70df5019ebdfdab2e0b8b216f7fdf56b9895c9f68c993313918249bba3 php-5.2.5.tar.bz2 7773024
-MD5 6247e2dbd9c1a3495e3815c2e0a7691f php-patchset-5.2.5-r1.tar.bz2 15350
-RMD160 777f77e351ed024952f2adf323261db28f98c428 php-patchset-5.2.5-r1.tar.bz2 15350
-SHA256 50860764cf068465af09acc5ed32ad89f2e8ee0e03b02b2dd70fa19bd1176f10 php-patchset-5.2.5-r1.tar.bz2 15350
-MD5 a43f1a0ee9e7c41c4cb6890174f1f9d8 suhosin-patch-5.2.5-0.9.6.2.patch.gz 23157
-RMD160 25863ad76bea4a8e5bf50bd916835b5d9324452c suhosin-patch-5.2.5-0.9.6.2.patch.gz 23157
-SHA256 fd77ccdeb90c83af7492876dda17518de95dd74a5b6feecc5a1bd2c8e322ab53 suhosin-patch-5.2.5-0.9.6.2.patch.gz 23157
diff --git a/dev-lang/php/files/eblits/CVS/Entries b/dev-lang/php/files/eblits/CVS/Entries
deleted file mode 100644
index 1784810..0000000
--- a/dev-lang/php/files/eblits/CVS/Entries
+++ /dev/null
@@ -1 +0,0 @@
-D
diff --git a/dev-lang/php/files/eblits/CVS/Repository b/dev-lang/php/files/eblits/CVS/Repository
deleted file mode 100644
index e9faaee..0000000
--- a/dev-lang/php/files/eblits/CVS/Repository
+++ /dev/null
@@ -1 +0,0 @@
-gentoo-x86/dev-lang/php/files/eblits
diff --git a/dev-lang/php/files/eblits/CVS/Root b/dev-lang/php/files/eblits/CVS/Root
deleted file mode 100644
index 854a2c8..0000000
--- a/dev-lang/php/files/eblits/CVS/Root
+++ /dev/null
@@ -1 +0,0 @@
-:pserver:anonymous@anoncvs.gentoo.org:/var/cvsroot
diff --git a/dev-lang/php/files/eblits/CVS/Tag b/dev-lang/php/files/eblits/CVS/Tag
deleted file mode 100644
index 1ee58ee..0000000
--- a/dev-lang/php/files/eblits/CVS/Tag
+++ /dev/null
@@ -1 +0,0 @@
-T1.17
diff --git a/dev-lang/php/php-4.0.4_p1.ebuild b/dev-lang/php/php-4.0.4_p1.ebuild
deleted file mode 100644
index 0aea760..0000000
--- a/dev-lang/php/php-4.0.4_p1.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.0.4_p1.ebuild,v 1.1 2001/04/28 18:54:42 achim Exp $
-
-A=${PN}-4.0.4pl1.tar.gz
-S=${WORKDIR}/${PN}-4.0.4pl1
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${A}"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
- >=sys-libs/pam-0.75
- >=sys-libs/zlib-1.1.3
- >=dev-libs/gmp-3.1.1
- >=media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-ssl-1.3
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( x11-libs/qt-x11-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )"
-
-src_compile() {
-
- local myconf
- if [ "`use readline`" ] ; then
- myconf="--with-readline"
- fi
- if [ "`use pam`" ] ; then
- myconf="$myconf --with-pam"
- fi
- if [ "`use gettext`" ] ; then
- myconf="$myconf --with-gettext"
- fi
- if [ "`use gdbm`" ] ; then
- myconf="$myconf --with-gdbm=/usr"
- fi
- if [ "`use berkdb`" ] ; then
- myconf="$myconf --with-db3=/usr"
- fi
- if [ "`use mysql`" ] ; then
- myconf="$myconf --with-mysql"
- fi
- if [ "`use postgres`" ] ; then
- myconf="$myconf --with-pgsql=/usr"
- fi
- if [ "`use odbc`" ] ; then
- myconf="$myconf --with-unixODBC=/usr"
- fi
- if [ "`use ldap`" ] ; then
- myconf="$myconf --with-ldap"
- fi
- if [ "`use qt`" ] ; then
- myconf="$myconf --with-qtdom"
- fi
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr --with-xml"
- else
- myconf="$myconf --disable-xml"
- fi
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
-
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf
- try make
-}
-
-
-src_install() {
- cd ${S}
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- into /usr
- dodoc CODING_STANDARDS FUNCTION_LIST.txt LICENSE
- dodoc README.* TODO NEWS
-}
-
-pkg_config() {
-
- . ${ROOT}/etc/rc.d/config/functions
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ]
- then
-
- # Activate PHP-Extension in httpd.conf
- echo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
-
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.0.5.ebuild b/dev-lang/php/php-4.0.5.ebuild
deleted file mode 100644
index 4644ac9..0000000
--- a/dev-lang/php/php-4.0.5.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.0.5.ebuild,v 1.1 2001/05/06 18:06:22 achim Exp $
-
-A=${PN}-4.0.5.tar.gz
-S=${WORKDIR}/${PN}-4.0.5
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${A}"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
- >=sys-libs/pam-0.75
- >=sys-libs/zlib-1.1.3
- >=dev-libs/gmp-3.1.1
- >=media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-ssl-1.3
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( x11-libs/qt-x11-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )"
-
-src_compile() {
-
- local myconf
- if [ "`use readline`" ] ; then
- myconf="--with-readline"
- fi
- if [ "`use pam`" ] ; then
- myconf="$myconf --with-pam"
- fi
- if [ "`use gettext`" ] ; then
- myconf="$myconf --with-gettext"
- fi
- if [ "`use gdbm`" ] ; then
- myconf="$myconf --with-gdbm=/usr"
- fi
- if [ "`use berkdb`" ] ; then
- myconf="$myconf --with-db3=/usr"
- fi
- if [ "`use mysql`" ] ; then
- myconf="$myconf --with-mysql"
- fi
- if [ "`use postgres`" ] ; then
- myconf="$myconf --with-pgsql=/usr"
- fi
- if [ "`use odbc`" ] ; then
- myconf="$myconf --with-unixODBC=/usr"
- fi
- if [ "`use ldap`" ] ; then
- myconf="$myconf --with-ldap"
- fi
- if [ "`use qt`" ] ; then
- myconf="$myconf --with-qtdom"
- fi
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr --with-xml"
- else
- myconf="$myconf --disable-xml"
- fi
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
-
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf
- try make
-}
-
-
-src_install() {
- cd ${S}
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- into /usr
- dodoc CODING_STANDARDS FUNCTION_LIST.txt LICENSE
- dodoc README.* TODO NEWS
-}
-
-pkg_config() {
-
- . ${ROOT}/etc/rc.d/config/functions
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ]
- then
-
- # Activate PHP-Extension in httpd.conf
- echo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
-
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.0.6-r1.ebuild b/dev-lang/php/php-4.0.6-r1.ebuild
deleted file mode 100644
index e7381cb..0000000
--- a/dev-lang/php/php-4.0.6-r1.ebuild
+++ /dev/null
@@ -1,158 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.0.6-r1.ebuild,v 1.1 2001/07/03 16:50:57 achim Exp $
-
-A=${PN}-4.0.6.tar.gz
-S=${WORKDIR}/${PN}-4.0.6
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${A}"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
-
- >=dev-libs/gmp-3.1.1
- =media-libs/freetype-1.3.1-r2
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-ssl-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-x11-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )
- flash? ( media-libs/libswf )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- =media-libs/freetype-1.3.1-r2
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-ssl-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-x11-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )"
-
-src_compile() {
-
- local myconf
- if [ "`use readline`" ] ; then
- myconf="--with-readline"
- fi
- if [ "`use pam`" ] ; then
- myconf="$myconf --with-pam"
- fi
- if [ "`use gettext`" ] ; then
- myconf="$myconf --with-gettext"
- fi
- if [ "`use gdbm`" ] ; then
- myconf="$myconf --with-gdbm=/usr"
- fi
- if [ "`use berkdb`" ] ; then
- myconf="$myconf --with-db3=/usr"
- fi
- if [ "`use mysql`" ] ; then
- myconf="$myconf --with-mysql=/usr"
- fi
- if [ "`use postgres`" ] ; then
- myconf="$myconf --with-pgsql=/usr"
- fi
- if [ "`use odbc`" ] ; then
- myconf="$myconf --with-unixODBC=/usr"
- fi
- if [ "`use ldap`" ] ; then
- myconf="$myconf --with-ldap"
- fi
- if [ "`use qt`" ] ; then
- myconf="$myconf --with-qtdom"
- fi
- if [ "`use imap`" ] ; then
- myconf="$myconf --with-imap"
- fi
- if [ "`use libwww`" ] ; then
- myconf="$myconf --with-xml"
- else
- myconf="$myconf --disable-xml"
- fi
- if [ "`use flash`" ] ; then
- myconf="$myconf --with-swf=/usr"
- fi
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
-
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf
- try make
-}
-
-
-src_install() {
- cd ${S}
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- into /usr
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- . ${ROOT}/etc/rc.d/config/functions
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ]
- then
-
- # Activate PHP-Extension in httpd.conf
- echo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
-
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.0.6-r2.ebuild b/dev-lang/php/php-4.0.6-r2.ebuild
deleted file mode 100644
index 0bd3356..0000000
--- a/dev-lang/php/php-4.0.6-r2.ebuild
+++ /dev/null
@@ -1,164 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.0.6-r2.ebuild,v 1.1 2001/10/06 14:36:55 azarah Exp $
-
-A=${PN}-4.0.6.tar.gz
-S=${WORKDIR}/${PN}-4.0.6
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${A}"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
-
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-x11-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-x11-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( gnome-libs/libxml2 )
- imap? ( virtual/imap )"
-
-src_compile() {
-
- local myconf
- if [ "`use readline`" ] ; then
- myconf="--with-readline"
- fi
- if [ "`use pam`" ] ; then
- myconf="$myconf --with-pam"
- fi
- if [ "`use gettext`" ] ; then
- myconf="$myconf --with-gettext"
- fi
- if [ "`use gdbm`" ] ; then
- myconf="$myconf --with-gdbm=/usr"
- fi
- if [ "`use berkdb`" ] ; then
- myconf="$myconf --with-db3=/usr"
- fi
- if [ "`use mysql`" ] ; then
- myconf="$myconf --with-mysql=/usr"
- fi
- if [ "`use postgres`" ] ; then
- myconf="$myconf --with-pgsql=/usr"
- fi
- if [ "`use odbc`" ] ; then
- myconf="$myconf --with-unixODBC=/usr"
- fi
- if [ "`use ldap`" ] ; then
- myconf="$myconf --with-ldap"
- fi
- if [ "`use qt`" ] ; then
- myconf="$myconf --with-qtdom"
- fi
- if [ "`use imap`" ] ; then
- myconf="$myconf --with-imap"
- fi
- if [ "`use libwww`" ] ; then
- myconf="$myconf --with-xml"
- else
- myconf="$myconf --disable-xml"
- fi
- if [ "`use flash`" ] ; then
- myconf="$myconf --with-swf=/usr --with-ming=/usr"
- fi
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
- if [ "`use xml2`" ] ; then
- myconf="$myconf --with-dom"
- fi
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
-
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf
- try make
-}
-
-
-src_install() {
- cd ${S}
- try make INSTALL_ROOT=${D} install-pear
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- . ${ROOT}/etc/rc.d/config/functions
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ]
- then
-
- # Activate PHP-Extension in httpd.conf
- echo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
-
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.0.6-r3.ebuild b/dev-lang/php/php-4.0.6-r3.ebuild
deleted file mode 100644
index 7a3e1e5..0000000
--- a/dev-lang/php/php-4.0.6-r3.ebuild
+++ /dev/null
@@ -1,169 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.0.6-r3.ebuild,v 1.1 2001/11/11 13:12:00 achim Exp $
-
-A=${PN}-4.0.6.tar.gz
-S=${WORKDIR}/${PN}-4.0.6
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${A}"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
-
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-x11-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( dev-lang/jdk )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-x11-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- imap? ( virtual/imap )
- java? ( dev-lang/jdk )"
-
-src_compile() {
-
- local myconf
- if [ "`use readline`" ] ; then
- myconf="--with-readline"
- fi
- if [ "`use pam`" ] ; then
- myconf="$myconf --with-pam"
- fi
- if [ "`use gettext`" ] ; then
- myconf="$myconf --with-gettext"
- fi
- if [ "`use gdbm`" ] ; then
- myconf="$myconf --with-gdbm=/usr"
- fi
- if [ "`use berkdb`" ] ; then
- myconf="$myconf --with-db3=/usr"
- fi
- if [ "`use mysql`" ] ; then
- myconf="$myconf --with-mysql=/usr"
- fi
- if [ "`use postgres`" ] ; then
- myconf="$myconf --with-pgsql=/usr"
- fi
- if [ "`use odbc`" ] ; then
- myconf="$myconf --with-unixODBC=/usr"
- fi
- if [ "`use ldap`" ] ; then
- myconf="$myconf --with-ldap"
- fi
- if [ "`use qt`" ] ; then
- myconf="$myconf --with-qtdom"
- fi
- if [ "`use imap`" ] ; then
- myconf="$myconf --with-imap"
- fi
- if [ "`use libwww`" ] ; then
- myconf="$myconf --with-xml"
- else
- myconf="$myconf --disable-xml"
- fi
- if [ "`use flash`" ] ; then
- myconf="$myconf --with-swf=/usr --with-ming=/usr"
- fi
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
- if [ "`use xml2`" ] ; then
- myconf="$myconf --with-dom"
- fi
- if [ "`use java`" ] ; then
- myconf="$myconf --with-java=/opt/java"
- fi
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
-
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- . ${ROOT}/etc/rc.d/config/functions
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ]
- then
-
- # Activate PHP-Extension in httpd.conf
- echo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
-
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.0.6-r4.ebuild b/dev-lang/php/php-4.0.6-r4.ebuild
deleted file mode 100644
index 5fe16ca..0000000
--- a/dev-lang/php/php-4.0.6-r4.ebuild
+++ /dev/null
@@ -1,146 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.0.6-r4.ebuild,v 1.1 2002/02/12 17:44:44 karltk Exp $
-
-A=${PN}-4.0.6.tar.gz
-S=${WORKDIR}/${PN}-4.0.6
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${A}"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- imap? ( virtual/imap )
- java? ( virtual/jdk )
- "
-
-src_compile() {
-
- local myconf
-
- use readline && myconf="${myconf} --with-readline"
- use pam && myconf="${myconf} --with-pam"
- use gettext && myconf="${myconf} --with-gettext"
- use gdbm && myconf="${myconf} --with-gdbm=/usr"
- use berkdb && myconf="${myconf} --with-db3=/usr"
- use mysql && myconf="${myconf} --with-mysql=/usr"
- use postgres && myconf="${myconf} --with-pgsql=/usr"
- use odbc && myconf="${myconf} --with-unixODBC=/usr"
- use ldap && myconf="${myconf} --with-ldap"
- use imap && myconf="${myconf} --with-imap"
-
- if [ "`use qt`" ] ; then
- EXPORT QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml"
- use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="${myconf} --with-dom"
- use java && myconf="${myconf} --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
-
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
-
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- . ${ROOT}/etc/rc.d/config/functions
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ] ; then
-
- # Activate PHP-Extension in httpd.conf
- einfo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.0.6-r5.ebuild b/dev-lang/php/php-4.0.6-r5.ebuild
deleted file mode 100644
index e6805b5..0000000
--- a/dev-lang/php/php-4.0.6-r5.ebuild
+++ /dev/null
@@ -1,160 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.0.6-r5.ebuild,v 1.1 2002/02/18 21:01:05 karltk Exp $
-
-A=${PN}-4.0.6.tar.gz
-S=${WORKDIR}/${PN}-4.0.6
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${A}"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- imap? ( virtual/imap )
- "
-src_compile() {
-
- local myconf
-
- use readline && myconf="${myconf} --with-readline"
- use pam && myconf="${myconf} --with-pam"
- use gettext && myconf="${myconf} --with-gettext"
- use gdbm && myconf="${myconf} --with-gdbm=/usr"
- use berkdb && myconf="${myconf} --with-db3=/usr"
- use mysql && myconf="${myconf} --with-mysql=/usr"
- use postgres && myconf="${myconf} --with-pgsql=/usr"
- use odbc && myconf="${myconf} --with-unixODBC=/usr"
- use ldap && myconf="${myconf} --with-ldap"
- use imap && myconf="${myconf} --with-imap"
-
- if [ "`use qt`" ] ; then
- EXPORT QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml"
- use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="${myconf} --with-dom"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
-
-
- ./configure --enable-safe-mode \
- --enable-ftp \
- --enable-track-vars \
- --with-gmp \
- --enable-dbase \
- --enable-sysvsem \
- --enable-sysvshm \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-calendar \
- --enable-versioning \
- --enable-inline-optimization \
- --enable-trans-sid \
- --with-gd \
- --with-ttf \
- --with-t1lib \
- --with-jpeg-dir=/usr/lib \
- --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` \
- --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- $myconf || die "./configure failed"
-
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- . ${ROOT}/etc/rc.d/config/functions
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ] ; then
-
- # Activate PHP-Extension in httpd.conf
- einfo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.0.6.ebuild b/dev-lang/php/php-4.0.6.ebuild
deleted file mode 100644
index db184b8..0000000
--- a/dev-lang/php/php-4.0.6.ebuild
+++ /dev/null
@@ -1,154 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.0.6.ebuild,v 1.1 2001/07/01 21:03:17 achim Exp $
-
-A=${PN}-4.0.6.tar.gz
-S=${WORKDIR}/${PN}-4.0.6
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${A}"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
-
- >=dev-libs/gmp-3.1.1
- =media-libs/freetype-1.3.1-r2
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-ssl-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-x11-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- =media-libs/freetype-1.3.1-r2
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-ssl-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-x11-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )"
-
-src_compile() {
-
- local myconf
- if [ "`use readline`" ] ; then
- myconf="--with-readline"
- fi
- if [ "`use pam`" ] ; then
- myconf="$myconf --with-pam"
- fi
- if [ "`use gettext`" ] ; then
- myconf="$myconf --with-gettext"
- fi
- if [ "`use gdbm`" ] ; then
- myconf="$myconf --with-gdbm=/usr"
- fi
- if [ "`use berkdb`" ] ; then
- myconf="$myconf --with-db3=/usr"
- fi
- if [ "`use mysql`" ] ; then
- myconf="$myconf --with-mysql=/usr"
- fi
- if [ "`use postgres`" ] ; then
- myconf="$myconf --with-pgsql=/usr"
- fi
- if [ "`use odbc`" ] ; then
- myconf="$myconf --with-unixODBC=/usr"
- fi
- if [ "`use ldap`" ] ; then
- myconf="$myconf --with-ldap"
- fi
- if [ "`use qt`" ] ; then
- myconf="$myconf --with-qtdom"
- fi
- if [ "`use imap`" ] ; then
- myconf="$myconf --with-imap"
- fi
- if [ "`use libwww`" ] ; then
- myconf="$myconf --with-xml"
- else
- myconf="$myconf --disable-xml"
- fi
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
-
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf
- try make
-}
-
-
-src_install() {
- cd ${S}
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- into /usr
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- . ${ROOT}/etc/rc.d/config/functions
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ]
- then
-
- # Activate PHP-Extension in httpd.conf
- echo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
-
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.1.1-r1.ebuild b/dev-lang/php/php-4.1.1-r1.ebuild
deleted file mode 100644
index cfad76c..0000000
--- a/dev-lang/php/php-4.1.1-r1.ebuild
+++ /dev/null
@@ -1,183 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.1-r1.ebuild,v 1.1 2002/02/06 17:00:46 g2boojum Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- "
-# java? ( virtual/jdk )
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- imap? ( virtual/imap )
- "
-# java? ( virtual/jdk )
-
-src_compile() {
-
- local myconf
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
- myconf="--without-readline --without-t1lib"
- if [ "`use pam`" ] ; then
- myconf="$myconf --with-pam"
- fi
- if [ "`use gettext`" ] ; then
- myconf="$myconf --with-gettext"
- fi
- if [ "`use gdbm`" ] ; then
- myconf="$myconf --with-gdbm=/usr"
- fi
- if [ "`use berkdb`" ] ; then
- myconf="$myconf --with-db3=/usr"
- fi
- if [ "`use mysql`" ] ; then
- myconf="$myconf --with-mysql=/usr"
- fi
- if [ "`use postgres`" ] ; then
- myconf="$myconf --with-pgsql=/usr"
- fi
- if [ "`use odbc`" ] ; then
- myconf="$myconf --with-unixODBC=/usr"
- fi
- if [ "`use ldap`" ] ; then
- myconf="$myconf --with-ldap"
- fi
- if [ "`use qt`" ] ; then
- EXPORT QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
- if [ "`use imap`" ] ; then
- myconf="$myconf --with-imap"
- fi
- if [ "`use libwww`" ] ; then
- myconf="$myconf --with-xml"
- else
- myconf="$myconf --disable-xml"
- fi
- if [ "`use flash`" ] ; then
- myconf="$myconf --with-swf=/usr --with-ming=/usr"
- fi
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
- if [ "`use xml2`" ] ; then
- myconf="$myconf --with-dom"
- fi
- if [ "`use mhash`" ] ; then
- myconf="$myconf --with-mhash"
- fi
- if [ "`use mcrypt`" ] ; then
- myconf="$myconf --with-mcrypt"
- fi
-# The PHP build system does not support Blackdown
-# if [ "`use java`" ] ; then
-# myconf="$myconf --with-java=${JAVA_HOME}"
-# fi
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
-
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- . ${ROOT}/etc/rc.d/config/functions
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ]
- then
-
- # Activate PHP-Extension in httpd.conf
- echo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
-
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.1.1-r2.ebuild b/dev-lang/php/php-4.1.1-r2.ebuild
deleted file mode 100644
index a77b4c7..0000000
--- a/dev-lang/php/php-4.1.1-r2.ebuild
+++ /dev/null
@@ -1,151 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.1-r2.ebuild,v 1.1 2002/02/12 17:44:44 karltk Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- imap? ( virtual/imap )
- java? ( virtual/jdk )
- "
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use gettext && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
-
- if [ "`use qt`" ] ; then
- EXPORT QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- use imap && myconf="$myconf --with-imap"
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
-
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ] ; then
-
- # Activate PHP-Extension in httpd.conf
- einfo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.1.1-r3.ebuild b/dev-lang/php/php-4.1.1-r3.ebuild
deleted file mode 100644
index 0b18c92..0000000
--- a/dev-lang/php/php-4.1.1-r3.ebuild
+++ /dev/null
@@ -1,168 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.1-r3.ebuild,v 1.1 2002/02/18 21:01:05 karltk Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- imap? ( virtual/imap )
- java? ( virtual/jdk )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use gettext && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
-
- if [ "`use qt`" ] ; then
- EXPORT QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- use imap && myconf="$myconf --with-imap"
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
-
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ] ; then
-
- # Activate PHP-Extension in httpd.conf
- einfo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.1.1-r4.ebuild b/dev-lang/php/php-4.1.1-r4.ebuild
deleted file mode 100644
index d948ffb..0000000
--- a/dev-lang/php/php-4.1.1-r4.ebuild
+++ /dev/null
@@ -1,177 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.1-r4.ebuild,v 1.1 2002/02/23 20:35:19 g2boojum Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imapUW )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use gettext && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
-
- if [ "`use qt`" ] ; then
- EXPORT QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- if [ "`use imap`" ] ; then
- # need to see if imap was built w/ ssl support
- local pkg=`tail -n 1 /var/db/pkg/virtual/imapUW/VIRTUAL`
- if [ "`grep ssl /var/db/pkg/${pkg}/USE`" ] ; then
- echo "imap compiled with SSL"
- myconf="$myconf --with-imap-ssl"
- else
- echo "imap compiled w/o SSL"
- myconf="$myconf --with-imap"
- fi
- fi
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
-
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ] ; then
-
- # Activate PHP-Extension in httpd.conf
- einfo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.1.1-r5.ebuild b/dev-lang/php/php-4.1.1-r5.ebuild
deleted file mode 100644
index 78008fb..0000000
--- a/dev-lang/php/php-4.1.1-r5.ebuild
+++ /dev/null
@@ -1,182 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.1-r5.ebuild,v 1.1 2002/02/25 19:50:23 karltk Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imapUW )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use gettext && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
-
- if [ "`use qt`" ] ; then
- EXPORT QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- if [ "`use imap`" ] ; then
- # need to see if imap was built w/ ssl support
- local pkg=`tail -n 1 /var/db/pkg/virtual/imapUW/VIRTUAL`
- if [ "`grep ssl /var/db/pkg/${pkg}/USE`" ] ; then
- echo "imap compiled with SSL"
- myconf="$myconf --with-imap-ssl"
- else
- echo "imap compiled w/o SSL"
- myconf="$myconf --with-imap"
- # php build will fail if imap doesn't have SSL support
- echo "unfortunately, the php build will fail due to"
- echo "strange header errors in /usr/include/imap4r1.h"
- echo "Please rebuild uw-imap or pine w/ 'ssl' in USE"
- die
- fi
- fi
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-png-lib=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
-
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ] ; then
-
- # Activate PHP-Extension in httpd.conf
- einfo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.1.1.ebuild b/dev-lang/php/php-4.1.1.ebuild
deleted file mode 100644
index 39c0651..0000000
--- a/dev-lang/php/php-4.1.1.ebuild
+++ /dev/null
@@ -1,172 +0,0 @@
-# Copyright 1999-2000 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.1.ebuild,v 1.1 2002/01/03 15:50:25 g2boojum Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-
-DEPEND="virtual/glibc
-
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imap )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- imap? ( virtual/imap )
- java? ( virtual/jdk )"
-
-src_compile() {
-
- local myconf
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
- myconf="--without-readline --without-t1lib"
- if [ "`use pam`" ] ; then
- myconf="$myconf --with-pam"
- fi
- if [ "`use gettext`" ] ; then
- myconf="$myconf --with-gettext"
- fi
- if [ "`use gdbm`" ] ; then
- myconf="$myconf --with-gdbm=/usr"
- fi
- if [ "`use berkdb`" ] ; then
- myconf="$myconf --with-db3=/usr"
- fi
- if [ "`use mysql`" ] ; then
- myconf="$myconf --with-mysql=/usr"
- fi
- if [ "`use postgres`" ] ; then
- myconf="$myconf --with-pgsql=/usr"
- fi
- if [ "`use odbc`" ] ; then
- myconf="$myconf --with-unixODBC=/usr"
- fi
- if [ "`use ldap`" ] ; then
- myconf="$myconf --with-ldap"
- fi
- if [ "`use qt`" ] ; then
- EXPORT QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
- if [ "`use imap`" ] ; then
- myconf="$myconf --with-imap"
- fi
- if [ "`use libwww`" ] ; then
- myconf="$myconf --with-xml"
- else
- myconf="$myconf --disable-xml"
- fi
- if [ "`use flash`" ] ; then
- myconf="$myconf --with-swf=/usr --with-ming=/usr"
- fi
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
- if [ "`use xml2`" ] ; then
- myconf="$myconf --with-dom"
- fi
- if [ "`use java`" ] ; then
- myconf="$myconf --with-java=/opt/java"
- fi
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
-
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- . ${ROOT}/etc/rc.d/config/functions
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ]
- then
-
- # Activate PHP-Extension in httpd.conf
- echo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
-
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.1.2-r1.ebuild b/dev-lang/php/php-4.1.2-r1.ebuild
deleted file mode 100644
index 05af5f0..0000000
--- a/dev-lang/php/php-4.1.2-r1.ebuild
+++ /dev/null
@@ -1,183 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.2-r1.ebuild,v 1.1 2002/02/28 07:07:57 blocke Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imapUW )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use gettext && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
-
- if [ "`use qt`" ] ; then
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- if [ "`use imap`" ] ; then
- # need to see if imap was built w/ ssl support
- local pkg=`tail -n 1 /var/db/pkg/virtual/imapUW/VIRTUAL`
- if [ "`grep ssl /var/db/pkg/${pkg}/USE`" ] ; then
- echo "imap compiled with SSL"
- myconf="$myconf --with-imap-ssl"
- else
- echo "imap compiled w/o SSL"
- myconf="$myconf --with-imap"
- # php build will fail if imap doesn't have SSL support
- echo "unfortunately, the php build will fail due to"
- echo "strange header errors in /usr/include/imap4r1.h"
- echo "Please rebuild uw-imap or pine w/ 'ssl' in USE"
- die
- fi
- fi
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-png-lib=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
-
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ] ; then
-
- # Activate PHP-Extension in httpd.conf
- einfo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.1.2-r2.ebuild b/dev-lang/php/php-4.1.2-r2.ebuild
deleted file mode 100644
index 06fdc0b..0000000
--- a/dev-lang/php/php-4.1.2-r2.ebuild
+++ /dev/null
@@ -1,193 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.2-r2.ebuild,v 1.1 2002/03/07 08:25:46 blocke Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imapUW )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use gettext && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
- use pdflib && myconf="$myconf --with-pdflib"
-
- if [ "`use qt`" ] ; then
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- if [ "`use imap`" ] ; then
- # need to see if imap was built w/ ssl support
- local pkg=`tail -n 1 /var/db/pkg/virtual/imapUW/VIRTUAL`
- if [ "`grep ssl /var/db/pkg/${pkg}/USE`" ] ; then
- echo "imap compiled with SSL"
- myconf="$myconf --with-imap-ssl"
- else
- echo "imap compiled w/o SSL"
- myconf="$myconf --with-imap"
- # php build will fail if imap doesn't have SSL support
- echo "unfortunately, the php build will fail due to"
- echo "strange header errors in /usr/include/imap4r1.h"
- echo "Please rebuild uw-imap or pine w/ 'ssl' in USE"
- die
- fi
- fi
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-png-lib=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
-
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_postinst() {
- einfo "Run 'ebuild php-${PV}-${PR}.ebuild config' to update httpd.conf"
-}
-
-pkg_config() {
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" -a ! "`grep "IfDefine PHP" /etc/httpd/httpd.conf`" ] ; then
-
- einfo Enabling PHP support in ${ROOT}/etc/httpd/httpd.conf
-
- # Activate PHP-Extension in httpd.conf
- einfo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
-
- echo -e "\n<IfDefine PHP4>\nLoadModule php4_module /usr/lib/apache/libphp4.so\n</IfDefine>\n" >> ${ROOT}/etc/httpd/httpd.conf
-
- fi
-
-}
-
-
-
diff --git a/dev-lang/php/php-4.1.2-r3.ebuild b/dev-lang/php/php-4.1.2-r3.ebuild
deleted file mode 100644
index f3493de..0000000
--- a/dev-lang/php/php-4.1.2-r3.ebuild
+++ /dev/null
@@ -1,193 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.2-r3.ebuild,v 1.1 2002/03/14 18:49:39 g2boojum Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imapUW )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use gettext && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
- use pdflib && myconf="$myconf --with-pdflib"
-
- if [ "`use qt`" ] ; then
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- if [ "`use imap`" ] ; then
- # need to see if imap was built w/ ssl support
- local pkg=`tail -n 1 /var/db/pkg/virtual/imapUW/VIRTUAL`
- if [ "`grep ssl /var/db/pkg/${pkg}/USE`" ] ; then
- echo "imap compiled with SSL"
- myconf="$myconf --with-imap-ssl"
- else
- echo "imap compiled w/o SSL"
- myconf="$myconf --with-imap"
- # php build will fail if imap doesn't have SSL support
- echo "unfortunately, the php build will fail due to"
- echo "strange header errors in /usr/include/imap4r1.h"
- echo "Please rebuild uw-imap or pine w/ 'ssl' in USE"
- die
- fi
- fi
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
-
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_postinst() {
- einfo "Run 'ebuild php-${PV}-${PR}.ebuild config' to update httpd.conf"
-}
-
-pkg_config() {
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" -a ! "`grep "IfDefine PHP" /etc/httpd/httpd.conf`" ] ; then
-
- einfo Enabling PHP support in ${ROOT}/etc/httpd/httpd.conf
-
- # Activate PHP-Extension in httpd.conf
- einfo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
-
- echo -e "\n<IfDefine PHP4>\nLoadModule php4_module /usr/lib/apache/libphp4.so\n</IfDefine>\n" >> ${ROOT}/etc/httpd/httpd.conf
-
- fi
-
-}
-
-
-
diff --git a/dev-lang/php/php-4.1.2-r4.ebuild b/dev-lang/php/php-4.1.2-r4.ebuild
deleted file mode 100644
index 2e5ea85..0000000
--- a/dev-lang/php/php-4.1.2-r4.ebuild
+++ /dev/null
@@ -1,210 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.2-r4.ebuild,v 1.1 2002/04/09 23:59:01 woodchip Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3.24-r1
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imapUW )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3.24-r1
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use gettext && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
- use pdflib && myconf="$myconf --with-pdflib"
-
- if [ "`use qt`" ] ; then
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- if [ "`use imap`" ] ; then
- # need to see if imap was built w/ ssl support
- local pkg=`tail -n 1 /var/db/pkg/virtual/imapUW/VIRTUAL`
- if [ "`grep ssl /var/db/pkg/${pkg}/USE`" ] ; then
- echo "imap compiled with SSL"
- myconf="$myconf --with-imap-ssl"
- else
- echo "imap compiled w/o SSL"
- myconf="$myconf --with-imap"
- # php build will fail if imap doesn't have SSL support
- echo "unfortunately, the php build will fail due to"
- echo "strange header errors in /usr/include/imap4r1.h"
- echo "Please rebuild uw-imap or pine w/ 'ssl' in USE"
- die
- fi
- fi
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gd \
- --with-gmp \
- --with-ttf \
- --enable-ftp \
- --with-t1lib \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --with-png-dir=/usr/lib \
- --with-jpeg-dir=/usr/lib \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- newins php.ini-dist php.ini
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- define=PHP4
-
- # Activate PHP-Extension in httpd.conf
- einfo "Enabling PHP support in ${ROOT}/etc/apache/conf/apache.conf"
- cp ${ROOT}/etc/apache/conf/apache.conf ${ROOT}/etc/apache/conf/apache.conf-before-php
- sed -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/apache/conf/apache.conf-before-php > ${ROOT}/etc/apache/conf/apache.conf
-
- :;
-}
diff --git a/dev-lang/php/php-4.1.2-r5.ebuild b/dev-lang/php/php-4.1.2-r5.ebuild
deleted file mode 100644
index cf542d3..0000000
--- a/dev-lang/php/php-4.1.2-r5.ebuild
+++ /dev/null
@@ -1,203 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.2-r5.ebuild,v 1.1 2002/04/11 04:34:21 woodchip Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3.24-r1
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imapUW )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3.24-r1
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use gettext && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
- use pdflib && myconf="$myconf --with-pdflib"
-
- if [ "`use qt`" ] ; then
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- if [ "`use imap`" ] ; then
- # need to see if imap was built w/ ssl support
- local pkg=`tail -n 1 /var/db/pkg/virtual/imapUW/VIRTUAL`
- if [ "`grep ssl /var/db/pkg/${pkg}/USE`" ] ; then
- echo "imap compiled with SSL"
- myconf="$myconf --with-imap-ssl"
- else
- echo "imap compiled w/o SSL"
- myconf="$myconf --with-imap"
- # php build will fail if imap doesn't have SSL support
- echo "unfortunately, the php build will fail due to"
- echo "strange header errors in /usr/include/imap4r1.h"
- echo "Please rebuild uw-imap or pine w/ 'ssl' in USE"
- die
- fi
- fi
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gd \
- --with-gmp \
- --with-ttf \
- --enable-ftp \
- --with-t1lib \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --with-png-dir=/usr/lib \
- --with-jpeg-dir=/usr/lib \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/mod_php.conf
- newins php.ini-dist php.ini
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf
- :;
-}
diff --git a/dev-lang/php/php-4.1.2-r6.ebuild b/dev-lang/php/php-4.1.2-r6.ebuild
deleted file mode 100644
index 1aa292e..0000000
--- a/dev-lang/php/php-4.1.2-r6.ebuild
+++ /dev/null
@@ -1,204 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.2-r6.ebuild,v 1.1 2002/04/12 21:20:16 spider Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.2.1
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3.24-r1
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- nls? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imapUW )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3.24-r1
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use nls && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
- use pdflib && myconf="$myconf --with-pdflib"
-
- if [ "`use qt`" ] ; then
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- if [ "`use imap`" ] ; then
- # need to see if imap was built w/ ssl support
- local pkg=`tail -n 1 /var/db/pkg/virtual/imapUW/VIRTUAL`
- if [ "`grep ssl /var/db/pkg/${pkg}/USE`" ] ; then
- echo "imap compiled with SSL"
- myconf="$myconf --with-imap-ssl"
- else
- echo "imap compiled w/o SSL"
- myconf="$myconf --with-imap"
- # php build will fail if imap doesn't have SSL support
- echo "unfortunately, the php build will fail due to"
- echo "strange header errors in /usr/include/imap4r1.h"
- echo "Please rebuild uw-imap or pine w/ 'ssl' in USE"
- die
- fi
- fi
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gd \
- --with-gmp \
- --with-ttf \
- --enable-ftp \
- --with-t1lib \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --with-png-dir=/usr/lib \
- --with-jpeg-dir=/usr/lib \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/mod_php.conf
- newins php.ini-dist php.ini
- dosym /etc/apache/conf/addon-modules/php.ini /etc/apache/conf/php.ini
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf
- :;
-}
diff --git a/dev-lang/php/php-4.1.2-r7.ebuild b/dev-lang/php/php-4.1.2-r7.ebuild
deleted file mode 100644
index 88a5409..0000000
--- a/dev-lang/php/php-4.1.2-r7.ebuild
+++ /dev/null
@@ -1,205 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.2-r7.ebuild,v 1.1 2002/04/15 20:12:42 jhhudso Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.2.1
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3.24-r1
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- nls? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( >=net-mail/uw-imap-2001a-r1 )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )"
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3.24-r1
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- if [ "$JAVAC" ];
- then
- cp ext/java/Makefile.in ext/java/Makefile.in.orig
- cat ext/java/Makefile.in.orig | \
- sed -e "s/^\tjavac/\t\$(JAVAC)/" \
- > ext/java/Makefile.in
- fi
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use nls && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
- use pdflib && myconf="$myconf --with-pdflib"
-
- if [ "`use qt`" ] ; then
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- if [ "`use imap`" ] ; then
- if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \
- | grep ssl_onceonlyinit`" ] ; then
- echo "Compiling imap with SSL support"
- myconf="$myconf --with-imap --with-imap-ssl"
- else
- echo "Compiling imap without SSL support"
- myconf="$myconf --with-imap"
- fi
- fi
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gd \
- --with-gmp \
- --with-ttf \
- --enable-ftp \
- --with-t1lib \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --with-png-dir=/usr/lib \
- --with-jpeg-dir=/usr/lib \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/mod_php.conf
- newins php.ini-dist php.ini
- dosym /etc/apache/conf/addon-modules/php.ini /etc/apache/conf/php.ini
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf
- :;
-}
diff --git a/dev-lang/php/php-4.1.2-r8.ebuild b/dev-lang/php/php-4.1.2-r8.ebuild
deleted file mode 100644
index 6a71ed5..0000000
--- a/dev-lang/php/php-4.1.2-r8.ebuild
+++ /dev/null
@@ -1,185 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.2-r8.ebuild,v 1.1 2002/04/27 09:26:07 rphillips Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND=">=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.2.1
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3.24-r1
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- nls? ( sys-devel/gettext )
- pam? ( >=sys-libs/pam-0.75 )
- xml? ( >=app-text/sablotron-0.44 )
- imap? ( >=net-mail/uw-imap-2001a-r1 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- java? ( virtual/jdk )
- ldap? ( >=net-nds/openldap-1.2.11 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- xml2? ( dev-libs/libxml2 )
- crypt? ( >=dev-libs/libmcrypt-2.4
- >=app-crypt/mhash-0.8 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- flash? ( media-libs/libswf media-libs/ming )
- berkdb? ( >=sys-libs/db-3 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- postgres? ( >=dev-db/postgresql-7.1 )
- readline? ( >=sys-libs/ncurses-5.1
- >=sys-libs/readline-4.1 )"
-
-RDEPEND="${DEPEND}
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )"
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- if [ "$JAVAC" ];
- then
- cp ext/java/Makefile.in ext/java/Makefile.in.orig
- cat ext/java/Makefile.in.orig | \
- sed -e "s/^\tjavac/\t\$(JAVAC)/" \
- > ext/java/Makefile.in
- fi
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="${myconf} --with-pam"
- use nls && myconf="${myconf} --with-gettext" || myconf="${myconf} --without-gettext"
- use gdbm && myconf="${myconf} --with-gdbm=/usr"
- use berkdb && myconf="${myconf} --with-db3=/usr"
- use mysql && myconf="${myconf} --with-mysql=/usr"
- use postgres && myconf="${myconf} --with-pgsql=/usr"
- use odbc && myconf="${myconf} --with-unixODBC=/usr"
- use ldap && myconf="${myconf} --with-ldap"
- use pdflib && myconf="${myconf} --with-pdflib"
-
- use qt && ( \
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="${myconf} --with-qtdom"
- )
-
- if [ "`use imap`" ] ; then
- if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \
- | grep ssl_onceonlyinit`" ] ; then
- echo "Compiling imap with SSL support"
- myconf="${myconf} --with-imap --with-imap-ssl"
- else
- echo "Compiling imap without SSL support"
- myconf="${myconf} --with-imap"
- fi
- fi
- use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml"
- use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="${myconf} --with-sablot=/usr"
- fi
-
- use xml2 && myconf="${myconf} --with-dom"
- use crypt && myconf="${myconf} --with-mcrypt --with-mhash"
- use java && myconf="${myconf} --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="${myconf} --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gd \
- --with-gmp \
- --with-ttf \
- --enable-ftp \
- --with-t1lib \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --with-png-dir=/usr/lib \
- --with-jpeg-dir=/usr/lib \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/mod_php.conf
- newins php.ini-dist php.ini
- dosym /etc/apache/conf/addon-modules/php.ini /etc/apache/conf/php.ini
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf
- :;
-}
diff --git a/dev-lang/php/php-4.1.2-r9.ebuild b/dev-lang/php/php-4.1.2-r9.ebuild
deleted file mode 100644
index 030f620..0000000
--- a/dev-lang/php/php-4.1.2-r9.ebuild
+++ /dev/null
@@ -1,192 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.2-r9.ebuild,v 1.1 2002/05/05 23:45:44 rphillips Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND=">=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.2.1
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3.24-r1
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- nls? ( sys-devel/gettext )
- pam? ( >=sys-libs/pam-0.75 )
- ssl? ( >=dev-libs/openssl-0.9.5 )
- curl? ( >=net-ftp/curl-7.8.1 )
- snmp? ( net-analyzer/ucd-snmp )
- xml? ( >=app-text/sablotron-0.44 )
- imap? ( >=net-mail/uw-imap-2001a-r1 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- java? ( virtual/jdk )
- ldap? ( >=net-nds/openldap-1.2.11 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- xml2? ( dev-libs/libxml2 )
- crypt? ( >=dev-libs/libmcrypt-2.4
- >=app-crypt/mhash-0.8 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- flash? ( media-libs/libswf media-libs/ming )
- berkdb? ( >=sys-libs/db-3 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- postgres? ( >=dev-db/postgresql-7.1 )
- readline? ( >=sys-libs/ncurses-5.1
- >=sys-libs/readline-4.1 )"
-
-RDEPEND="${DEPEND}
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )"
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- if [ "$JAVAC" ];
- then
- cp ext/java/Makefile.in ext/java/Makefile.in.orig
- cat ext/java/Makefile.in.orig | \
- sed -e "s/^\tjavac/\t\$(JAVAC)/" \
- > ext/java/Makefile.in
- fi
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="${myconf} --with-pam"
- use nls || myconf="${myconf} --without-gettext"
- use ssl && myconf="${myconf} --with-openssl"
- use curl && myconf="${myconf} --with-curl"
- use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack"
- use gdbm && myconf="${myconf} --with-gdbm=/usr"
- use berkdb && myconf="${myconf} --with-db3=/usr"
- use mysql && myconf="${myconf} --with-mysql=/usr"
- use postgres && myconf="${myconf} --with-pgsql=/usr"
- use odbc && myconf="${myconf} --with-unixODBC=/usr"
- use ldap && myconf="${myconf} --with-ldap"
- use pdflib && myconf="${myconf} --with-pdflib"
-
- use qt && ( \
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="${myconf} --with-qtdom"
- )
-
- if [ "`use imap`" ] ; then
- if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \
- | grep ssl_onceonlyinit`" ] ; then
- echo "Compiling imap with SSL support"
- myconf="${myconf} --with-imap --with-imap-ssl"
- else
- echo "Compiling imap without SSL support"
- myconf="${myconf} --with-imap"
- fi
- fi
- use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml"
- use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="${myconf} --with-sablot=/usr"
- fi
-
- use xml2 && myconf="${myconf} --with-dom"
- use crypt && myconf="${myconf} --with-mcrypt --with-mhash"
- use java && myconf="${myconf} --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="${myconf} --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gd \
- --with-gmp \
- --with-bz2 \
- --with-ttf \
- --enable-ftp \
- --with-t1lib \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --with-png-dir=/usr/lib \
- --with-jpeg-dir=/usr/lib \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/mod_php.conf
- newins php.ini-dist php.ini
- dosym /etc/apache/conf/addon-modules/php.ini /etc/apache/conf/php.ini
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf
- :;
-}
diff --git a/dev-lang/php/php-4.1.2.ebuild b/dev-lang/php/php-4.1.2.ebuild
deleted file mode 100644
index 40b1682..0000000
--- a/dev-lang/php/php-4.1.2.ebuild
+++ /dev/null
@@ -1,183 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.1.2.ebuild,v 1.1 2002/02/28 05:29:22 blocke Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.0.7
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
- gettext? ( sys-devel/gettext )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- mhash? ( >=app-crypt/mhash-0.8 )
- mcrypt? ( >=dev-libs/libmcrypt-2.4 )
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- imap? ( virtual/imapUW )
- flash? ( media-libs/libswf media-libs/ming )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-RDEPEND="virtual/glibc
- >=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/libpng-1.0.7
- >=media-libs/t1lib-1.0.1
- >=net-www/apache-1.3
- pam? ( >=sys-libs/pam-0.75 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- berkdb? ( >=sys-libs/db-3 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- postgres? ( >=dev-db/postgresql-7.1 )
- X? ( virtual/x11 )
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- xml2? ( dev-libs/libxml2 )
- java? ( virtual/jdk )
- "
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
- # also, t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory
-
- myconf="--without-readline --without-t1lib"
- use pam && myconf="$myconf --with-pam"
- use gettext && myconf="$myconf --with-gettext"
- use gdbm && myconf="$myconf --with-gdbm=/usr"
- use berkdb && myconf="$myconf --with-db3=/usr"
- use mysql && myconf="$myconf --with-mysql=/usr"
- use postgres && myconf="$myconf --with-pgsql=/usr"
- use odbc && myconf="$myconf --with-unixODBC=/usr"
- use ldap && myconf="$myconf --with-ldap"
-
- if [ "`use qt`" ] ; then
- EXPORT QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="$myconf --with-qtdom"
- fi
-
- if [ "`use imap`" ] ; then
- # need to see if imap was built w/ ssl support
- local pkg=`tail -n 1 /var/db/pkg/virtual/imapUW/VIRTUAL`
- if [ "`grep ssl /var/db/pkg/${pkg}/USE`" ] ; then
- echo "imap compiled with SSL"
- myconf="$myconf --with-imap-ssl"
- else
- echo "imap compiled w/o SSL"
- myconf="$myconf --with-imap"
- # php build will fail if imap doesn't have SSL support
- echo "unfortunately, the php build will fail due to"
- echo "strange header errors in /usr/include/imap4r1.h"
- echo "Please rebuild uw-imap or pine w/ 'ssl' in USE"
- die
- fi
- fi
- use libwww && myconf="$myconf --with-xml" || myconf="$myconf --disable-xml"
- use flash && myconf="$myconf --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="$myconf --with-sablot=/usr"
- fi
-
- use xml2 && myconf="$myconf --with-dom"
- use mhash && myconf="$myconf --with-mhash"
- use mcrypt && myconf="$myconf --with-mcrypt"
- use java && myconf="$myconf --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="$myconf --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure --enable-safe-mode --enable-ftp --enable-track-vars --with-gmp \
- --enable-dbase --enable-sysvsem --enable-sysvshm --with-zlib=yes --enable-bcmath \
- --enable-calendar --enable-versioning --enable-inline-optimization --enable-trans-sid \
- --with-gd --with-ttf --with-t1lib --with-png-lib=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/usr \
- --with-config-file-path=`/usr/sbin/apxs -q SYSCONFDIR` --host=${CHOST} \
- --with-apxs="/usr/sbin/apxs -ltiff" --with-exec-dir="/usr/lib/apache/bin" $myconf || die
-
- make || die
-}
-
-
-src_install() {
-
- make INSTALL_ROOT=${D} install-pear || die
- dodir /usr/lib/apache
- cp .libs/libphp4.so ${D}/usr/lib/apache
-
- dodir /etc/httpd
- cp php.ini-dist ${D}/etc/httpd/php.ini
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-}
-
-pkg_config() {
-
- if [ -f "${ROOT}/etc/httpd/httpd.conf" ] ; then
-
- # Activate PHP-Extension in httpd.conf
- einfo "Activate PHP in httpd.conf..."
- cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig
- sed -e "s/^#LoadModule php4_module/LoadModule php4_module/" \
- -e "s/^#AddModule mod_php4.c/AddModule mod_php4.c/" \
- -e "s/#AddType application\/x-httpd-php /AddType application\/x-httpd-php /" \
- -e "s/#AddType application\/x-httpd-php-/AddType application\/x-httpd-php-/" \
- ${ROOT}/etc/httpd/httpd.conf.orig > ${ROOT}/etc/httpd/httpd.conf
- fi
-}
-
-
-
diff --git a/dev-lang/php/php-4.2.0.ebuild b/dev-lang/php/php-4.2.0.ebuild
deleted file mode 100644
index 05b89ed..0000000
--- a/dev-lang/php/php-4.2.0.ebuild
+++ /dev/null
@@ -1,193 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# Update: Roman Weber <gentoo@gonzo.ch>
-# /space/gentoo/cvsroot/gentoo-x86/dev-lang/php/php-4.1.2-r8.ebuild,v 1.2 2002/04/28 23:38:19 rphillips Exp
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND=">=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.2.1
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.3.1
- >=net-www/apache-1.3.24-r1
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- nls? ( sys-devel/gettext )
- pam? ( >=sys-libs/pam-0.75 )
- xml? ( >=app-text/sablotron-0.44 )
- imap? ( >=net-mail/uw-imap-2001a-r1 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- java? ( virtual/jdk )
- ldap? ( >=net-nds/openldap-1.2.11 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- xml2? ( dev-libs/libxml2 )
- crypt? ( >=dev-libs/libmcrypt-2.4
- >=app-crypt/mhash-0.8 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- flash? ( media-libs/libswf media-libs/ming )
- berkdb? ( >=sys-libs/db-3 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- postgres? ( >=dev-db/postgresql-7.1 )"
-# Only needed by CGI-Version
-# readline? ( >=sys-libs/ncurses-5.1
-# >=sys-libs/readline-4.1 )"
-
-RDEPEND="${DEPEND}
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )"
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
-
- if [ "`use java`" ] ; then
-
- cp configure configure.orig
- cat configure.orig | \
- sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf $LIBS"/' \
- > configure
-
- cp ext/gd/gd.c ext/gd/gd.c.orig
- cat ext/gd/gd.c.orig | \
- sed -e "s/typedef FILE gdIOCtx;//" \
- > ext/gd/gd.c
- if [ "$JAVAC" ];
- then
- cp ext/java/Makefile.in ext/java/Makefile.in.orig
- cat ext/java/Makefile.in.orig | \
- sed -e "s/^\tjavac/\t\$(JAVAC)/" \
- > ext/java/Makefile.in
- fi
- fi
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
-
- myconf="--without-readline "
- use pam && myconf="${myconf} --with-pam"
- use nls || myconf="${myconf} --without-gettext"
- use gdbm && myconf="${myconf} --with-gdbm=/usr"
- use berkdb && myconf="${myconf} --with-db3=/usr"
- use mysql && myconf="${myconf} --with-mysql=/usr"
- use postgres && myconf="${myconf} --with-pgsql=/usr"
- use odbc && myconf="${myconf} --with-unixODBC=/usr"
- use ldap && myconf="${myconf} --with-ldap"
- use pdflib && myconf="${myconf} --with-pdflib"
-
- use qt && ( \
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="${myconf} --with-qtdom"
- )
-
- if [ "`use imap`" ] ; then
- if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \
- | grep ssl_onceonlyinit`" ] ; then
- echo "Compiling imap with SSL support"
- myconf="${myconf} --with-imap --with-imap-ssl"
- else
- echo "Compiling imap without SSL support"
- myconf="${myconf} --with-imap"
- fi
- fi
- use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml"
- use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="${myconf} --with-sablot=/usr"
- fi
-
- use xml2 && myconf="${myconf} --with-dom"
- use crypt && myconf="${myconf} --with-mcrypt --with-mhash"
- use java && myconf="${myconf} --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="${myconf} --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gd \
- --with-gmp \
- --with-ttf \
- --enable-ftp \
- --with-t1lib \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --with-png-dir=/usr/lib \
- --with-jpeg-dir=/usr/lib \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=/etc/php4 \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/mod_php.conf
- insinto /etc/php4
- newins php.ini-dist php.ini
- dosym /etc/php4/php.ini /etc/apache/conf/php.ini
- dosym /usr/lib/php/extensions/no-debug-non-zts-20010901 /etc/php4/lib
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
- einfo "Please remeber:"
- einfo "This version of PHP has set register_globals = Off (Security)"
- einfo "Please read http://www.php.net/release_4_1_0.php (SECURITY: NEW INPUT MECHANISM)"
- einfo "for further informations."
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf
- :;
-}
diff --git a/dev-lang/php/php-4.2.1-r1.ebuild b/dev-lang/php/php-4.2.1-r1.ebuild
deleted file mode 100644
index b2ca5ea..0000000
--- a/dev-lang/php/php-4.2.1-r1.ebuild
+++ /dev/null
@@ -1,208 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# Update: Roman Weber <gentoo@gonzo.ch>
-# /space/gentoo/cvsroot/gentoo-x86/dev-lang/php/php-4.2.1.ebuild,v 1.2 2002/05/19 23:53:32 rphillips Exp
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND=">=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.2.1
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.3.1
- >=net-www/apache-1.3.24-r1
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- nls? ( sys-devel/gettext )
- pam? ( >=sys-libs/pam-0.75 )
- xml? ( >=app-text/sablotron-0.44 )
- ssl? ( >=dev-libs/openssl-0.9.5 )
- curl? ( >=net-ftp/curl-7.8.1 )
- snmp? ( >=net-analyzer/ucd-snmp-4.2.3 )
- imap? ( >=net-mail/uw-imap-2001a-r1 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- xml2? ( dev-libs/libxml2 )
- crypt? ( >=dev-libs/libmcrypt-2.4
- >=app-crypt/mhash-0.8 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- flash? ( media-libs/libswf >=media-libs/ming-0.2a )
- berkdb? ( >=sys-libs/db-3 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- postgres? ( >=dev-db/postgresql-7.1 )"
-# java? ( virtual/jdk )
-# Only needed by CGI-Version
-# readline? ( >=sys-libs/ncurses-5.1
-# >=sys-libs/readline-4.1 )"
-
-RDEPEND="${DEPEND}
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )"
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
-
-# if [ "`use java`" ] ; then
-#
-# cp configure configure.orig
-# cat configure.orig | \
-# sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf $LIBS"/' \
-# > configure
-#
-# cp ext/gd/gd.c ext/gd/gd.c.orig
-# cat ext/gd/gd.c.orig | \
-# sed -e "s/typedef FILE gdIOCtx;//" \
-# > ext/gd/gd.c
-# if [ "$JAVAC" ];
-# then
-# cp ext/java/Makefile.in ext/java/Makefile.in.orig
-# cat ext/java/Makefile.in.orig | \
-# sed -e "s/^\tjavac/\t\$(JAVAC)/" \
-# > ext/java/Makefile.in
-# fi
-# fi
-
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
-
- myconf="--without-readline "
- use pam && myconf="${myconf} --with-pam"
- use nls || myconf="${myconf} --without-gettext"
- use ssl && myconf="${myconf} --with-openssl"
- use curl && myconf="${myconf} --with-curl"
- use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack"
- use gdbm && myconf="${myconf} --with-gdbm=/usr"
- use berkdb && myconf="${myconf} --with-db3=/usr"
- use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql"
- use postgres && myconf="${myconf} --with-pgsql=/usr"
- use odbc && myconf="${myconf} --with-unixODBC=/usr"
- use ldap && myconf="${myconf} --with-ldap"
- use pdflib && myconf="${myconf} --with-pdflib=/usr"
-
-
- use qt && ( \
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="${myconf} --with-qtdom"
- )
-
- if [ "`use imap`" ] ; then
- if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \
- | grep ssl_onceonlyinit`" ] ; then
- echo "Compiling imap with SSL support"
- myconf="${myconf} --with-imap --with-imap-ssl"
- else
- echo "Compiling imap without SSL support"
- myconf="${myconf} --with-imap"
- fi
- fi
- use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml"
- use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="${myconf} --with-sablot=/usr"
- myconf="${myconf} --enable-xslt"
- myconf="${myconf} --with-xslt-sablot"
- fi
-
- use xml2 && myconf="${myconf} --with-dom"
- use crypt && myconf="${myconf} --with-mcrypt --with-mhash"
-# use java && myconf="${myconf} --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="${myconf} --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gd \
- --with-gmp \
- --with-bz2 \
- --with-ttf \
- --enable-ftp \
- --with-t1lib \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --with-png-dir=/usr \
- --with-jpeg-dir=/usr/lib \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=/etc/php4 \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/mod_php.conf
- insinto /etc/php4
- cat php.ini-dist | sed "s/register_globals = Off/register_globals = On/g" > php.ini
- doins php.ini
- dosym /etc/php4/php.ini /etc/apache/conf/php.ini
- dosym /etc/php4/php.ini /etc/apache/conf/addon-modules/php.ini
- dosym /usr/lib/php/extensions/no-debug-non-zts-20020429 /etc/php4/lib
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
- einfo "Please remeber:"
- einfo "This install of PHP has set register_globals = On (lower security)"
- einfo "Please read http://www.php.net/release_4_1_2.php (Section: External variables)"
- einfo "for further informations."
- einfo
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf
- :;
-}
-
diff --git a/dev-lang/php/php-4.2.1-r2.ebuild b/dev-lang/php/php-4.2.1-r2.ebuild
deleted file mode 100644
index 77be251..0000000
--- a/dev-lang/php/php-4.2.1-r2.ebuild
+++ /dev/null
@@ -1,218 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# Update: Roman Weber <gentoo@gonzo.ch>
-# /space/gentoo/cvsroot/gentoo-x86/dev-lang/php/php-4.2.1.ebuild,v 1.2 2002/05/19 23:53:32 rphillips Exp
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-LICENSE="PHP"
-SLOT="0"
-KEYWORDS="x86"
-
-DEPEND=">=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.2.1
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.3.1
- >=net-www/apache-1.3.26-r2
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- nls? ( sys-devel/gettext )
- pam? ( >=sys-libs/pam-0.75 )
- xml? ( >=app-text/sablotron-0.44 )
- ssl? ( >=dev-libs/openssl-0.9.5 )
- curl? ( >=net-ftp/curl-7.8.1 )
- snmp? ( >=net-analyzer/ucd-snmp-4.2.3 )
- imap? ( >=net-mail/uw-imap-2001a-r1 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- xml2? ( dev-libs/libxml2 )
- crypt? ( >=dev-libs/libmcrypt-2.4
- >=app-crypt/mhash-0.8 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- flash? ( media-libs/libswf >=media-libs/ming-0.2a )
- berkdb? ( >=sys-libs/db-3 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- firebird? ( >=dev-db/firebird-1.0 )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- postgres? ( >=dev-db/postgresql-7.1 )"
-# java? ( virtual/jdk )
-# Only needed by CGI-Version
-# readline? ( >=sys-libs/ncurses-5.1
-# >=sys-libs/readline-4.1 )"
-
-RDEPEND="${DEPEND}
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )"
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
-
-# if [ "`use java`" ] ; then
-#
-# cp configure configure.orig
-# cat configure.orig | \
-# sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf $LIBS"/' \
-# > configure
-#
-# cp ext/gd/gd.c ext/gd/gd.c.orig
-# cat ext/gd/gd.c.orig | \
-# sed -e "s/typedef FILE gdIOCtx;//" \
-# > ext/gd/gd.c
-# if [ "$JAVAC" ];
-# then
-# cp ext/java/Makefile.in ext/java/Makefile.in.orig
-# cat ext/java/Makefile.in.orig | \
-# sed -e "s/^\tjavac/\t\$(JAVAC)/" \
-# > ext/java/Makefile.in
-# fi
-# fi
-
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
-
- myconf="--without-readline "
- use pam && myconf="${myconf} --with-pam"
- use nls || myconf="${myconf} --without-gettext"
- use ssl && myconf="${myconf} --with-openssl"
- use curl && myconf="${myconf} --with-curl"
- use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack"
- use gdbm && myconf="${myconf} --with-gdbm=/usr"
- use berkdb && myconf="${myconf} --with-db3=/usr"
- use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql"
- use postgres && myconf="${myconf} --with-pgsql=/usr"
- use odbc && myconf="${myconf} --with-unixODBC=/usr"
- use ldap && myconf="${myconf} --with-ldap"
- use pdflib && myconf="${myconf} --with-pdflib=/usr"
- use firebird && myconf="${myconf} --with-interbase=/opt/interbase"
-
- # optional support for oracle oci8
- if [ "`use oci8`" ] ; then
- if [ "$ORACLE_HOME" ] ; then
- myconf="${myconf} --with-oci8=${ORACLE_HOME}"
- fi
- fi
-
- use qt && ( \
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="${myconf} --with-qtdom"
- )
-
- if [ "`use imap`" ] ; then
- if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \
- | grep ssl_onceonlyinit`" ] ; then
- echo "Compiling imap with SSL support"
- myconf="${myconf} --with-imap --with-imap-ssl"
- else
- echo "Compiling imap without SSL support"
- myconf="${myconf} --with-imap"
- fi
- fi
- use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml"
- use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="${myconf} --with-sablot=/usr"
- myconf="${myconf} --enable-xslt"
- myconf="${myconf} --with-xslt-sablot"
- fi
-
- use xml2 && myconf="${myconf} --with-dom"
- use crypt && myconf="${myconf} --with-mcrypt --with-mhash"
-# use java && myconf="${myconf} --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="${myconf} --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gd \
- --with-gmp \
- --with-bz2 \
- --with-ttf \
- --enable-ftp \
- --with-t1lib \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --with-png-dir=/usr \
- --with-jpeg-dir=/usr/lib \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=/etc/php4 \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/mod_php.conf
- insinto /etc/php4
- cat php.ini-dist | sed "s/register_globals = Off/register_globals = On/g" > php.ini
- doins php.ini
- dosym /etc/php4/php.ini /etc/apache/conf/php.ini
- dosym /etc/php4/php.ini /etc/apache/conf/addon-modules/php.ini
- dosym /usr/lib/php/extensions/no-debug-non-zts-20020429 /etc/php4/lib
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
- einfo "Please remeber:"
- einfo "This install of PHP has set register_globals = On (lower security)"
- einfo "Please read http://www.php.net/release_4_1_2.php (Section: External variables)"
- einfo "for further informations."
- einfo
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf
- :;
-}
-
diff --git a/dev-lang/php/php-4.2.1-r3.ebuild b/dev-lang/php/php-4.2.1-r3.ebuild
deleted file mode 100644
index 59ee8f0..0000000
--- a/dev-lang/php/php-4.2.1-r3.ebuild
+++ /dev/null
@@ -1,217 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# Update: Roman Weber <gentoo@gonzo.ch>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.2.1-r3.ebuild,v 1.1 2002/07/09 19:10:58 rphillips Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-LICENSE="PHP"
-SLOT="0"
-KEYWORDS="x86"
-
-DEPEND=">=dev-libs/gmp-3.1.1
- freetype? ( ~media-libs/freetype-1.3.1 >=media-libs/t1lib-1.3.1 )
- jpeg? ( >=media-libs/jpeg-6b )
- tiff? ( >=media-libs/tiff-3.5.5 )
- png? ( >=media-libs/libpng-1.2.1 )
- gd? ( >=media-libs/libgd-1.8.3 )
- >=net-www/apache-1.3.26-r2
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- nls? ( sys-devel/gettext )
- pam? ( >=sys-libs/pam-0.75 )
- xml? ( >=app-text/sablotron-0.44 )
- ssl? ( >=dev-libs/openssl-0.9.5 )
- curl? ( >=net-ftp/curl-7.8.1 )
- snmp? ( >=net-analyzer/ucd-snmp-4.2.3 )
- imap? ( >=net-mail/uw-imap-2001a-r1 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- xml2? ( dev-libs/libxml2 )
- crypt? ( >=dev-libs/libmcrypt-2.4
- >=app-crypt/mhash-0.8 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- flash? ( media-libs/libswf >=media-libs/ming-0.2a )
- berkdb? ( >=sys-libs/db-3 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- firebird? ( >=dev-db/firebird-1.0 )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- postgres? ( >=dev-db/postgresql-7.1 )"
-# java? ( virtual/jdk )
-# Only needed by CGI-Version
-# readline? ( >=sys-libs/ncurses-5.1
-# >=sys-libs/readline-4.1 )"
-
-RDEPEND="${DEPEND}
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )"
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
-
-# if [ "`use java`" ] ; then
-#
-# cp configure configure.orig
-# cat configure.orig | \
-# sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf $LIBS"/' \
-# > configure
-#
-# cp ext/gd/gd.c ext/gd/gd.c.orig
-# cat ext/gd/gd.c.orig | \
-# sed -e "s/typedef FILE gdIOCtx;//" \
-# > ext/gd/gd.c
-# if [ "$JAVAC" ];
-# then
-# cp ext/java/Makefile.in ext/java/Makefile.in.orig
-# cat ext/java/Makefile.in.orig | \
-# sed -e "s/^\tjavac/\t\$(JAVAC)/" \
-# > ext/java/Makefile.in
-# fi
-# fi
-
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
-
- myconf="--without-readline "
- use pam && myconf="${myconf} --with-pam"
- use nls && myconf="${myconf} --with-gettext" || myconf="${myconf} --without-gettext"
- use ssl && myconf="${myconf} --with-openssl"
- use curl && myconf="${myconf} --with-curl"
- use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack"
- use gdbm && myconf="${myconf} --with-gdbm=/usr"
- use berkdb && myconf="${myconf} --with-db3=/usr"
- use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql"
- use postgres && myconf="${myconf} --with-pgsql=/usr"
- use odbc && myconf="${myconf} --with-unixODBC=/usr"
- use ldap && myconf="${myconf} --with-ldap"
- use pdflib && myconf="${myconf} --with-pdflib=/usr"
- use gd && myconf="${myconf} --with-gd"
- use freetype && myconf="${myconf} --with-ttf --with-t1lib"
- use jpeg && myconf="${myconf} --with-jpeg-dir=/usr/lib"
- use png && myconf="${myconf} --with-png-dir=/usr"
- use tiff && myconf="${myconf} --with-tiff-dir=/usr"
- use firebird && myconf="${myconf} --with-interbase=/opt/interbase"
-
- # optional support for oracle oci8
- if [ "`use oci8`" ] ; then
- if [ "$ORACLE_HOME" ] ; then
- myconf="${myconf} --with-oci8=${ORACLE_HOME}"
- fi
- fi
-
- use qt && ( \
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="${myconf} --with-qtdom"
- )
-
- if [ "`use imap`" ] ; then
- if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \
- | grep ssl_onceonlyinit`" ] ; then
- echo "Compiling imap with SSL support"
- myconf="${myconf} --with-imap --with-imap-ssl"
- else
- echo "Compiling imap without SSL support"
- myconf="${myconf} --with-imap"
- fi
- fi
- use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml"
- use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="${myconf} --with-sablot=/usr"
- myconf="${myconf} --enable-xslt"
- myconf="${myconf} --with-xslt-sablot"
- fi
-
- use xml2 && myconf="${myconf} --with-dom"
- use crypt && myconf="${myconf} --with-mcrypt --with-mhash"
-# use java && myconf="${myconf} --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="${myconf} --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gmp \
- --with-bz2 \
- --enable-ftp \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=/etc/php4 \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/mod_php.conf
- insinto /etc/php4
- cat php.ini-dist | sed "s/register_globals = Off/register_globals = On/g" > php.ini
- doins php.ini
- dosym /etc/php4/php.ini /etc/apache/conf/php.ini
- dosym /etc/php4/php.ini /etc/apache/conf/addon-modules/php.ini
- dosym /usr/lib/php/extensions/no-debug-non-zts-20020429 /etc/php4/lib
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
- einfo "Please remeber:"
- einfo "This install of PHP has set register_globals = On (lower security)"
- einfo "Please read http://www.php.net/release_4_1_2.php (Section: External variables)"
- einfo "for further informations."
- einfo
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf
- :;
-}
-
diff --git a/dev-lang/php/php-4.2.1.ebuild b/dev-lang/php/php-4.2.1.ebuild
deleted file mode 100644
index 13d1a23..0000000
--- a/dev-lang/php/php-4.2.1.ebuild
+++ /dev/null
@@ -1,206 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Maintainer: Tools Team <tools@gentoo.org>
-# Author: Achim Gottinger <achim@gentoo.org>
-# Update: Roman Weber <gentoo@gonzo.ch>
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.2.1.ebuild,v 1.1 2002/05/19 23:04:16 rphillips Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="HTML embedded scripting language"
-SRC_URI="http://www.php.net/distributions/${P}.tar.gz"
-HOMEPAGE="http://www.php.net/"
-SLOT="0"
-
-DEPEND=">=dev-libs/gmp-3.1.1
- ~media-libs/freetype-1.3.1
- >=media-libs/jpeg-6b
- >=media-libs/tiff-3.5.5
- >=media-libs/libpng-1.2.1
- >=media-libs/libgd-1.8.3
- >=media-libs/t1lib-1.3.1
- >=net-www/apache-1.3.24-r1
- X? ( virtual/x11 )
- qt? ( =x11-libs/qt-2.3* )
- nls? ( sys-devel/gettext )
- pam? ( >=sys-libs/pam-0.75 )
- xml? ( >=app-text/sablotron-0.44 )
- ssl? ( >=dev-libs/openssl-0.9.5 )
- curl? ( >=net-ftp/curl-7.8.1 )
- snmp? ( >=net-analyzer/ucd-snmp-4.2.3 )
- imap? ( >=net-mail/uw-imap-2001a-r1 )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- xml2? ( dev-libs/libxml2 )
- crypt? ( >=dev-libs/libmcrypt-2.4
- >=app-crypt/mhash-0.8 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- flash? ( media-libs/libswf >=media-libs/ming-0.2a )
- berkdb? ( >=sys-libs/db-3 )
- libwww? ( >=net-libs/libwww-5.3.2 )
- pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
- postgres? ( >=dev-db/postgresql-7.1 )"
-# java? ( virtual/jdk )
-# Only needed by CGI-Version
-# readline? ( >=sys-libs/ncurses-5.1
-# >=sys-libs/readline-4.1 )"
-
-RDEPEND="${DEPEND}
- qt? ( >=x11-libs/qt-2.3.0 )
- xml? ( >=app-text/sablotron-0.44 )"
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd ${S}
-
-# if [ "`use java`" ] ; then
-#
-# cp configure configure.orig
-# cat configure.orig | \
-# sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf $LIBS"/' \
-# > configure
-#
-# cp ext/gd/gd.c ext/gd/gd.c.orig
-# cat ext/gd/gd.c.orig | \
-# sed -e "s/typedef FILE gdIOCtx;//" \
-# > ext/gd/gd.c
-# if [ "$JAVAC" ];
-# then
-# cp ext/java/Makefile.in ext/java/Makefile.in.orig
-# cat ext/java/Makefile.in.orig | \
-# sed -e "s/^\tjavac/\t\$(JAVAC)/" \
-# > ext/java/Makefile.in
-# fi
-# fi
-
-}
-
-src_compile() {
-
- local myconf
-
- # readline can only be used w/ CGI build, so I'll turn it off
- #if [ "`use readline`" ] ; then
- # myconf="--with-readline"
- #fi
-
- myconf="--without-readline "
- use pam && myconf="${myconf} --with-pam"
- use nls || myconf="${myconf} --without-gettext"
- use ssl && myconf="${myconf} --with-openssl"
- use curl && myconf="${myconf} --with-curl"
- use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack"
- use gdbm && myconf="${myconf} --with-gdbm=/usr"
- use berkdb && myconf="${myconf} --with-db3=/usr"
- use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql"
- use postgres && myconf="${myconf} --with-pgsql=/usr"
- use odbc && myconf="${myconf} --with-unixODBC=/usr"
- use ldap && myconf="${myconf} --with-ldap"
- use pdflib && myconf="${myconf} --with-pdflib=/usr"
-
-
- use qt && ( \
- export QTDIR=/usr/qt/2 #hope this helps - danarmak
- myconf="${myconf} --with-qtdom"
- )
-
- if [ "`use imap`" ] ; then
- if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \
- | grep ssl_onceonlyinit`" ] ; then
- echo "Compiling imap with SSL support"
- myconf="${myconf} --with-imap --with-imap-ssl"
- else
- echo "Compiling imap without SSL support"
- myconf="${myconf} --with-imap"
- fi
- fi
- use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml"
- use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr"
-
- if [ "`use xml`" ] ; then
- export LIBS="-lxmlparse -lxmltok"
- myconf="${myconf} --with-sablot=/usr"
- fi
-
- use xml2 && myconf="${myconf} --with-dom"
- use crypt && myconf="${myconf} --with-mcrypt --with-mhash"
-# use java && myconf="${myconf} --with-java=${JDK_HOME}"
-
- LDFLAGS="$LDFLAGS -ltiff -ljpeg"
-
- if [ "`use X`" ] ; then
- myconf="${myconf} --with-xpm-dir=/usr/X11R6"
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
- fi
-
- ./configure \
- --prefix=/usr \
- --with-gd \
- --with-gmp \
- --with-bz2 \
- --with-ttf \
- --enable-ftp \
- --with-t1lib \
- --enable-dbase \
- --with-zlib=yes \
- --enable-bcmath \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-calendar \
- --enable-trans-sid \
- --enable-safe-mode \
- --enable-versioning \
- --enable-track-vars \
- --with-png-dir=/usr/lib \
- --with-jpeg-dir=/usr/lib \
- --enable-inline-optimization \
- --with-apxs="/usr/sbin/apxs -ltiff" \
- --with-exec-dir="/usr/lib/apache/bin" \
- --with-config-file-path=/etc/php4 \
- --host=${CHOST} ${myconf} || die "bad ./configure"
-
- make || die "compile problem"
-}
-
-
-src_install() {
- make INSTALL_ROOT=${D} install-pear || die
-
- dodoc CODING_STANDARDS LICENSE EXTENSIONS
- dodoc RELEASE_PROCESS README.* TODO NEWS
- dodoc ChangeLog* *.txt
-
- exeinto /usr/lib/apache-extramodules
- doexe .libs/libphp4.so
-
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/mod_php.conf
- insinto /etc/php4
- cat php.ini-dist | sed "s/register_globals = Off/register_globals = On/g" > php.ini
- doins php.ini
- dosym /etc/php4/php.ini /etc/apache/conf/php.ini
- dosym /etc/php4/php.ini /etc/apache/conf/addon-modules/php.ini
- dosym /usr/lib/php/extensions/no-debug-non-zts-20010901 /etc/php4/lib
-}
-
-pkg_postinst() {
- einfo
- einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
- einfo "to have your apache.conf auto-updated for use with this module."
- einfo "You should then edit your /etc/conf.d/apache file to suit."
- einfo
- einfo "Please remeber:"
- einfo "This install of PHP has set register_globals = On (lower security)"
- einfo "Please read http://www.php.net/release_4_1_2.php (Section: External variables)"
- einfo "for further informations."
- einfo
-}
-
-pkg_config() {
- ${ROOT}/usr/sbin/apacheaddmod \
- ${ROOT}/etc/apache/conf/apache.conf \
- extramodules/libphp4.so mod_php4.c php4_module \
- before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf
- :;
-}
-
diff --git a/dev-lang/php/php-4.3.11-r1.ebuild b/dev-lang/php/php-4.3.11-r1.ebuild
deleted file mode 100644
index 1b9ad9f..0000000
--- a/dev-lang/php/php-4.3.11-r1.ebuild
+++ /dev/null
@@ -1,303 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.3.11-r1.ebuild,v 1.1 2005/09/18 13:21:54 hollow Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://dl.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd ${S}
-
- # patch to fix PCRE library security issues, bug #102373
- epatch ${FILESDIR}/4.4.0/php4.3.11-pcre-security.patch
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf ${S}/ext/pcre/pcrelib && mv -f ${WORKDIR}/pcrelib-new ${S}/ext/pcre/pcrelib || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${USE_APACHE2}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${USE_APACHE2}-php4/ext\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT=${D} install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4.4.0/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4.4.0/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php.conf"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php.conf"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.3.11-r2.ebuild b/dev-lang/php/php-4.3.11-r2.ebuild
deleted file mode 100644
index 34f9e96..0000000
--- a/dev-lang/php/php-4.3.11-r2.ebuild
+++ /dev/null
@@ -1,321 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.3.11-r2.ebuild,v 1.1 2005/10/31 14:10:39 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl2-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/4.3.11/php4.3.11-pspell-ext-segf.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/4.3.11/php4.3.11-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/4.3.11/php4.3.11-fopen_wrappers.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/4.3.11/php4.3.11-session_save_path-segf.patch"
-
- # patch to fix PCRE library security issues, bug #102373
- epatch "${FILESDIR}/4.3.11/php4.3.11-pcre-security.patch"
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf "${S}/ext/pcre/pcrelib" && mv -f "${WORKDIR}/pcrelib-new" "${S}/ext/pcre/pcrelib" || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.3.11-r3.ebuild b/dev-lang/php/php-4.3.11-r3.ebuild
deleted file mode 100644
index 0e671a9..0000000
--- a/dev-lang/php/php-4.3.11-r3.ebuild
+++ /dev/null
@@ -1,330 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.3.11-r3.ebuild,v 1.1 2005/11/03 14:09:24 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~arm ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl3-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/4.3.11/php4.3.11-pspell-ext-segf.patch"
-
- # patch fo fix safe_mode bypass in CURL extension, bug #111032
- use curl && epatch "${FILESDIR}/4.3.11/php4.3.11-curl_safemode.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/4.3.11/php4.3.11-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/4.3.11/php4.3.11-fopen_wrappers.patch"
-
- # patch $GLOBALS overwrite vulnerability, bug #111011 and bug #111014
- epatch "${FILESDIR}/4.3.11/php4.3.11-globals_overwrite.patch"
-
- # patch phpinfo() XSS vulnerability, bug #111015
- epatch "${FILESDIR}/4.3.11/php4.3.11-phpinfo_xss.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/4.3.11/php4.3.11-session_save_path-segf.patch"
-
- # patch to fix PCRE library security issues, bug #102373
- epatch "${FILESDIR}/4.3.11/php4.3.11-pcre-security.patch"
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf "${S}/ext/pcre/pcrelib" && mv -f "${WORKDIR}/pcrelib-new" "${S}/ext/pcre/pcrelib" || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.3.11-r4.ebuild b/dev-lang/php/php-4.3.11-r4.ebuild
deleted file mode 100644
index 740c32a..0000000
--- a/dev-lang/php/php-4.3.11-r4.ebuild
+++ /dev/null
@@ -1,330 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.3.11-r4.ebuild,v 1.1 2005/11/04 12:45:21 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~arm ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl3-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/4.3.11/php4.3.11-pspell-ext-segf.patch"
-
- # patch fo fix safe_mode bypass in CURL extension, bug #111032
- use curl && epatch "${FILESDIR}/4.3.11/php4.3.11-curl_safemode.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/4.3.11/php4.3.11-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/4.3.11/php4.3.11-fopen_wrappers.patch"
-
- # patch $GLOBALS overwrite vulnerability, bug #111011 and bug #111014
- epatch "${FILESDIR}/4.3.11/php4.3.11-globals_overwrite.patch"
-
- # patch phpinfo() XSS vulnerability, bug #111015
- epatch "${FILESDIR}/4.3.11/php4.3.11-phpinfo_xss.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/4.3.11/php4.3.11-session_save_path-segf.patch"
-
- # patch to fix PCRE library security issues, bug #102373
- epatch "${FILESDIR}/4.3.11/php4.3.11-pcre-security.patch"
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf "${S}/ext/pcre/pcrelib" && mv -f "${WORKDIR}/pcrelib-new" "${S}/ext/pcre/pcrelib" || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.3.11-r5.ebuild b/dev-lang/php/php-4.3.11-r5.ebuild
deleted file mode 100644
index 68f2b48..0000000
--- a/dev-lang/php/php-4.3.11-r5.ebuild
+++ /dev/null
@@ -1,340 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.3.11-r5.ebuild,v 1.1 2006/01/04 09:24:47 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~arm ~ia64 ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-HARDENEDPHP_PATCH="hardening-patch-${PV}-0.4.3-gentoo.patch.gz"
-LIB64_PATCH="${PV}/php${PV}-multilib-search-path.patch"
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl5-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/${PV}/php${PV}-pspell-ext-segf.patch"
-
- # patch fo fix safe_mode bypass in CURL extension, bug #111032
- use curl && epatch "${FILESDIR}/${PV}/php${PV}-curl-open_basedir.patch"
-
- # fix header injection in mbstring extension
- use nls && epatch "${FILESDIR}/${PV}/php${PV}-mbstring-header_inj.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/${PV}/php${PV}-gd-safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/${PV}/php${PV}-fopen_wrappers.patch"
-
- # patch $GLOBALS overwrite vulnerability, bug #111011 and bug #111014
- epatch "${FILESDIR}/${PV}/php${PV}-globals_overwrite.patch"
-
- # patch phpinfo() XSS vulnerability, bug #111015
- epatch "${FILESDIR}/${PV}/php${PV}-phpinfo_xss.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/${PV}/php${PV}-apache2sapi.patch"
-
- # patch to fix some issues in the apache SAPI
- epatch "${FILESDIR}/${PV}/php${PV}-apachesapi.patch"
-
- # patch to fix PCRE library security issues, bug #102373
- epatch "${FILESDIR}/${PV}/php${PV}-pcre-security.patch"
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf "${S}/ext/pcre/pcrelib" && mv -f "${WORKDIR}/pcrelib-new" "${S}/ext/pcre/pcrelib" || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.3.11.ebuild b/dev-lang/php/php-4.3.11.ebuild
deleted file mode 100644
index 9f7321d..0000000
--- a/dev-lang/php/php-4.3.11.ebuild
+++ /dev/null
@@ -1,279 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.3.11.ebuild,v 1.1 2005/09/11 18:57:09 hollow Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-SLOT="4"
-PHPSAPI_ALLOWED="cli cgi apache apache2"
-MY_PHP_P="php-${PV}"
-PHP_S="${WORKDIR}/${MY_PHP_P}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${USE_APACHE2}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${USE_APACHE2}-php4/ext\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT=${D} install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4.4.0/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4.4.0/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php.conf"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php.conf"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.0-r1.ebuild b/dev-lang/php/php-4.4.0-r1.ebuild
deleted file mode 100644
index e4f58bb..0000000
--- a/dev-lang/php/php-4.4.0-r1.ebuild
+++ /dev/null
@@ -1,303 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.0-r1.ebuild,v 1.1 2005/09/18 13:21:54 hollow Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://dl.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd ${S}
-
- # patch to fix PCRE library security issues, bug #102373
- epatch ${FILESDIR}/4.4.0/php4.4.0-pcre-security.patch
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf ${S}/ext/pcre/pcrelib && mv -f ${WORKDIR}/pcrelib-new ${S}/ext/pcre/pcrelib || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${USE_APACHE2}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${USE_APACHE2}-php4/ext\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT=${D} install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4.4.0/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4.4.0/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php.conf"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php.conf"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.0-r2.ebuild b/dev-lang/php/php-4.4.0-r2.ebuild
deleted file mode 100644
index 4f82539..0000000
--- a/dev-lang/php/php-4.4.0-r2.ebuild
+++ /dev/null
@@ -1,321 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.0-r2.ebuild,v 1.1 2005/10/31 14:10:39 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl2-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/4.4.0/php4.4.0-pspell-ext-segf.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/4.4.0/php4.4.0-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/4.4.0/php4.4.0-fopen_wrappers.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/4.4.0/php4.4.0-session_save_path-segf.patch"
-
- # patch to fix PCRE library security issues, bug #102373
- epatch "${FILESDIR}/4.4.0/php4.4.0-pcre-security.patch"
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf "${S}/ext/pcre/pcrelib" && mv -f "${WORKDIR}/pcrelib-new" "${S}/ext/pcre/pcrelib" || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.0-r3.ebuild b/dev-lang/php/php-4.4.0-r3.ebuild
deleted file mode 100644
index 237ac51..0000000
--- a/dev-lang/php/php-4.4.0-r3.ebuild
+++ /dev/null
@@ -1,330 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.0-r3.ebuild,v 1.1 2005/11/03 14:09:24 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl3-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/4.4.0/php4.4.0-pspell-ext-segf.patch"
-
- # patch fo fix safe_mode bypass in CURL extension, bug #111032
- use curl && epatch "${FILESDIR}/4.4.0/php4.4.0-curl_safemode.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/4.4.0/php4.4.0-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/4.4.0/php4.4.0-fopen_wrappers.patch"
-
- # patch $GLOBALS overwrite vulnerability, bug #111011 and bug #111014
- epatch "${FILESDIR}/4.4.0/php4.4.0-globals_overwrite.patch"
-
- # patch phpinfo() XSS vulnerability, bug #111015
- epatch "${FILESDIR}/4.4.0/php4.4.0-phpinfo_xss.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/4.4.0/php4.4.0-session_save_path-segf.patch"
-
- # patch to fix PCRE library security issues, bug #102373
- epatch "${FILESDIR}/4.4.0/php4.4.0-pcre-security.patch"
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf "${S}/ext/pcre/pcrelib" && mv -f "${WORKDIR}/pcrelib-new" "${S}/ext/pcre/pcrelib" || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.0-r4.ebuild b/dev-lang/php/php-4.4.0-r4.ebuild
deleted file mode 100644
index bb23aa9..0000000
--- a/dev-lang/php/php-4.4.0-r4.ebuild
+++ /dev/null
@@ -1,330 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.0-r4.ebuild,v 1.1 2005/11/04 12:45:21 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl3-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/4.4.0/php4.4.0-pspell-ext-segf.patch"
-
- # patch fo fix safe_mode bypass in CURL extension, bug #111032
- use curl && epatch "${FILESDIR}/4.4.0/php4.4.0-curl_safemode.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/4.4.0/php4.4.0-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/4.4.0/php4.4.0-fopen_wrappers.patch"
-
- # patch $GLOBALS overwrite vulnerability, bug #111011 and bug #111014
- epatch "${FILESDIR}/4.4.0/php4.4.0-globals_overwrite.patch"
-
- # patch phpinfo() XSS vulnerability, bug #111015
- epatch "${FILESDIR}/4.4.0/php4.4.0-phpinfo_xss.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/4.4.0/php4.4.0-session_save_path-segf.patch"
-
- # patch to fix PCRE library security issues, bug #102373
- epatch "${FILESDIR}/4.4.0/php4.4.0-pcre-security.patch"
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf "${S}/ext/pcre/pcrelib" && mv -f "${WORKDIR}/pcrelib-new" "${S}/ext/pcre/pcrelib" || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.0.ebuild b/dev-lang/php/php-4.4.0.ebuild
deleted file mode 100644
index 2426683..0000000
--- a/dev-lang/php/php-4.4.0.ebuild
+++ /dev/null
@@ -1,290 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.0.ebuild,v 1.1 2005/09/04 16:58:08 stuart Exp $
-
-IUSE="${IUSE} cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~ppc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-SLOT="4"
-PHPSAPI_ALLOWED="cli cgi apache apache2"
-MY_PHP_P="php-${PV}"
-PHP_S="${WORKDIR}/${MY_PHP_P}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${USE_APACHE2}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${USE_APACHE2}-php4/ext\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT=${D} install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4.4.0/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4.4.0/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Create the symlinks with eselect
- if useq cli ; then
- eselect php set php4
- eselect php-devel set php4
- fi
-
- if useq cgi ; then
- eselect php-cgi set php4
- eselect php-devel set php4
- fi
-
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php.conf"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php.conf"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.1-r1.ebuild b/dev-lang/php/php-4.4.1-r1.ebuild
deleted file mode 100644
index 8ad92d5..0000000
--- a/dev-lang/php/php-4.4.1-r1.ebuild
+++ /dev/null
@@ -1,299 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.1-r1.ebuild,v 1.1 2005/11/03 23:54:59 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl1-gentoo"|g' -i configure.in
-
- # patch crash with mod_rewrite in Apache2 SAPI, mentioned in bug #111032
- epatch "${FILESDIR}/4.4.1/php4.4.1-mod_rewrite-crash.patch"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.1-r2.ebuild b/dev-lang/php/php-4.4.1-r2.ebuild
deleted file mode 100644
index 38e38b2..0000000
--- a/dev-lang/php/php-4.4.1-r2.ebuild
+++ /dev/null
@@ -1,302 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.1-r2.ebuild,v 1.1 2005/11/04 12:45:21 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl1-gentoo"|g' -i configure.in
-
- # patch crash with mod_rewrite in Apache2 SAPI, mentioned in bug #111032
- epatch "${FILESDIR}/4.4.1/php4.4.1-mod_rewrite-crash.patch"
-
- # fix for http://bugs.php.net/bug.php?id=35067
- epatch "${FILESDIR}/4.4.1/php4.4.1-current_key_by_reference.patch"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.1-r3.ebuild b/dev-lang/php/php-4.4.1-r3.ebuild
deleted file mode 100644
index 6db0be4..0000000
--- a/dev-lang/php/php-4.4.1-r3.ebuild
+++ /dev/null
@@ -1,318 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.1-r3.ebuild,v 1.1 2006/01/04 09:24:47 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-HARDENEDPHP_PATCH="hardening-patch-${PV}-0.4.8-gentoo.patch.gz"
-LIB64_PATCH="${PV}/php${PV}-multilib-search-path.patch"
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl3-gentoo"|g' -i configure.in
-
- # fix open_basedir bypass in CURL extension
- use curl && epatch "${FILESDIR}/${PV}/php${PV}-curl-open_basedir.patch"
-
- # fix header injection in mbstring extension
- use nls && epatch "${FILESDIR}/${PV}/php${PV}-mbstring-header_inj.patch"
-
- # fix safe_mode bypass in GD extension
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/${PV}/php${PV}-gd-safe_mode.patch"
- fi
-
- # patch crash with mod_rewrite mentioned in bug #111032 and other Apache2
- # SAPI bugs fixed by upstream
- epatch "${FILESDIR}/${PV}/php${PV}-apache2sapi.patch"
-
- # fix for http://bugs.php.net/bug.php?id=35067
- epatch "${FILESDIR}/${PV}/php${PV}-current_key_by_reference.patch"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php4_4-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.1.ebuild b/dev-lang/php/php-4.4.1.ebuild
deleted file mode 100644
index 5b9f38c..0000000
--- a/dev-lang/php/php-4.4.1.ebuild
+++ /dev/null
@@ -1,278 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.1.ebuild,v 1.1 2005/11/03 14:09:24 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-2.0/70_mod_php.conf"
- else
- einfo "Installing Apache config for PHP (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/4-any/apache-1.3/70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.2-r1.ebuild b/dev-lang/php/php-4.4.2-r1.ebuild
deleted file mode 100644
index eba7b72..0000000
--- a/dev-lang/php/php-4.4.2-r1.ebuild
+++ /dev/null
@@ -1,286 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.2-r1.ebuild,v 1.1 2006/04/13 20:28:58 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="2"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.8-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- else
- einfo "Installing Apache config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.2-r2.ebuild b/dev-lang/php/php-4.4.2-r2.ebuild
deleted file mode 100644
index 52eba6a..0000000
--- a/dev-lang/php/php-4.4.2-r2.ebuild
+++ /dev/null
@@ -1,288 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.2-r2.ebuild,v 1.1 2006/05/05 10:28:58 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="3"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.9-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- else
- einfo "Installing Apache config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.2-r3.ebuild b/dev-lang/php/php-4.4.2-r3.ebuild
deleted file mode 100644
index 4dc776f..0000000
--- a/dev-lang/php/php-4.4.2-r3.ebuild
+++ /dev/null
@@ -1,290 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.2-r3.ebuild,v 1.1 2006/05/29 22:07:20 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="4"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.11-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- else
- einfo "Installing Apache config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.2-r5.ebuild b/dev-lang/php/php-4.4.2-r5.ebuild
deleted file mode 100644
index 2049d27..0000000
--- a/dev-lang/php/php-4.4.2-r5.ebuild
+++ /dev/null
@@ -1,290 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.2-r5.ebuild,v 1.1 2006/06/20 20:38:58 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="6"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.11-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- else
- einfo "Installing Apache config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.2-r6.ebuild b/dev-lang/php/php-4.4.2-r6.ebuild
deleted file mode 100644
index 553a9a6..0000000
--- a/dev-lang/php/php-4.4.2-r6.ebuild
+++ /dev/null
@@ -1,498 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.2-r6.ebuild,v 1.1 2006/07/14 16:04:37 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="7"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.11-gentoo-r1.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php4_4-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache1 php4"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.2.ebuild b/dev-lang/php/php-4.4.2.ebuild
deleted file mode 100644
index 0f24645..0000000
--- a/dev-lang/php/php-4.4.2.ebuild
+++ /dev/null
@@ -1,286 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.2.ebuild,v 1.1 2006/03/12 13:25:34 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.8-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php4_4-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # let the eclass do the heavy lifting
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- else
- einfo "Installing Apache config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- APACHE2_MOD_CONF="70_mod_php"
- apache-module_pkg_postinst
- fi
- php4_4-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-4.4.3-r1.ebuild b/dev-lang/php/php-4.4.3-r1.ebuild
deleted file mode 100644
index d82a2ad..0000000
--- a/dev-lang/php/php-4.4.3-r1.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.3-r1.ebuild,v 1.1 2006/08/10 16:31:49 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.13-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php4_4-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache1 php4"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-4.4.4-r1.ebuild b/dev-lang/php/php-4.4.4-r1.ebuild
deleted file mode 100644
index ae85911..0000000
--- a/dev-lang/php/php-4.4.4-r1.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.4-r1.ebuild,v 1.1 2006/08/29 23:05:20 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.14-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php4_4-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache1 php4"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-4.4.4-r2.ebuild b/dev-lang/php/php-4.4.4-r2.ebuild
deleted file mode 100644
index b5ec30c..0000000
--- a/dev-lang/php/php-4.4.4-r2.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.4-r2.ebuild,v 1.1 2006/08/30 11:17:26 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.14-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php4_4-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache1 php4"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-4.4.4-r4.ebuild b/dev-lang/php/php-4.4.4-r4.ebuild
deleted file mode 100644
index a6f9908..0000000
--- a/dev-lang/php/php-4.4.4-r4.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.4-r4.ebuild,v 1.1 2006/09/10 12:48:50 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="2"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.15-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php4_4-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache1 php4"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-4.4.4-r6.ebuild b/dev-lang/php/php-4.4.4-r6.ebuild
deleted file mode 100644
index 7f1c119..0000000
--- a/dev-lang/php/php-4.4.4-r6.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.4-r6.ebuild,v 1.1 2006/10/07 20:22:39 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="3"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.15-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php4_4-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache1 php4"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-4.4.4-r8.ebuild b/dev-lang/php/php-4.4.4-r8.ebuild
deleted file mode 100644
index ce4c97c..0000000
--- a/dev-lang/php/php-4.4.4-r8.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.4-r8.ebuild,v 1.1 2006/10/27 12:17:35 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="4"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.15-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php4_4-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache1 php4"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-4.4.4.ebuild b/dev-lang/php/php-4.4.4.ebuild
deleted file mode 100644
index cf99eac..0000000
--- a/dev-lang/php/php-4.4.4.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.4.ebuild,v 1.1 2006/08/29 19:55:32 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.14-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php4_4-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache1 php4"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-4.4.6.ebuild b/dev-lang/php/php-4.4.6.ebuild
deleted file mode 100644
index 88a856b..0000000
--- a/dev-lang/php/php-4.4.6.ebuild
+++ /dev/null
@@ -1,516 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.6.ebuild,v 1.1 2007/03/05 02:14:43 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php4_4-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php4-envd" "20php4"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php4"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache1 php4"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-4.4.7.ebuild b/dev-lang/php/php-4.4.7.ebuild
deleted file mode 100644
index e75a4ce..0000000
--- a/dev-lang/php/php-4.4.7.ebuild
+++ /dev/null
@@ -1,516 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.7.ebuild,v 1.1 2007/05/07 21:56:24 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php4_4-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache1" "70_mod_php.conf"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php4-envd" "20php4"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php4"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP4"
- APACHE1_MOD_CONF="70_mod_php"
- APACHE2_MOD_DEFINE="PHP4"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache1 php4"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-4.4.8.ebuild b/dev-lang/php/php-4.4.8.ebuild
deleted file mode 100644
index 9085451..0000000
--- a/dev-lang/php/php-4.4.8.ebuild
+++ /dev/null
@@ -1,477 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.8.ebuild,v 1.1 2008/01/08 17:28:26 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="0"
-SUHOSIN_PATCH="suhosin-patch-4.4.8-0.9.6.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php4-envd" "20php4"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php4"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP4"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-4.4.8_pre20070816.ebuild b/dev-lang/php/php-4.4.8_pre20070816.ebuild
deleted file mode 100644
index c75043a..0000000
--- a/dev-lang/php/php-4.4.8_pre20070816.ebuild
+++ /dev/null
@@ -1,487 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-4.4.8_pre20070816.ebuild,v 1.1 2007/08/18 13:11:23 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="4"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="0"
-SUHOSIN_PATCH="suhosin-patch-4.4.7-0.9.6-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php4_4-sapi apache-module
-
-SRC_URI="http://gentoo.longitekk.com/${P}.tar.bz2
-http://gentoo.longitekk.com/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? (
-http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php4_4-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # this fixes php -v output to include the snapshot date
- PHP_EXTRA_BRANDING="_pre${PV#*_pre}"
- PHP_EXTRA_BRANDING="${PHP_EXTRA_BRANDING#-r*}"
-
- # Now let the eclass do the rest and regenerate the configure
- php4_4-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php4_4-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php4"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php4/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php4\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php4/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php4-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-experimental-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php4_4-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php4_4-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php4_4-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php4
-
- # Let the eclass do the common work
- php4_4-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php4_4-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4-concurrent (70_mod_php_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php_concurr.conf-apache2" "70_mod_php_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}/php4-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP4 (70_mod_php.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php.conf-apache2" "70_mod_php.conf"
- fi
- php4_4-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php4-envd" "20php4"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php4"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP4"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v4, use php-select:"
- ewarn
- ewarn " php-select apache2 php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php4
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v4, use php-select:"
- ewarn
- ewarn " php-select php-cgi php4"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php4 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php4
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v4, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php4"
- ewarn
- fi
-
- php4_4-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.0.4-r1.ebuild b/dev-lang/php/php-5.0.4-r1.ebuild
deleted file mode 100644
index 8a292fd..0000000
--- a/dev-lang/php/php-5.0.4-r1.ebuild
+++ /dev/null
@@ -1,201 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.4-r1.ebuild,v 1.1 2005/09/18 13:21:54 hollow Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://dl.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd ${S}
-
- # fix a GCC4 compile bug in XMLRPC extension, bug #96813
- epatch ${FILESDIR}/5.0.0/php5.0.4-xmlrcp-ccode.diff
-
- # patch to fix PCRE library security issues, bug #102373
- epatch ${FILESDIR}/5.0.0/php5.0.4-pcre-security.patch
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf ${S}/ext/pcre/pcrelib && mv -f ${WORKDIR}/pcrelib-new ${S}/ext/pcre/pcrelib || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php5_0-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT=${D} install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.1.0/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.1.0/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5.conf"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5.conf"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.0.4-r2.ebuild b/dev-lang/php/php-5.0.4-r2.ebuild
deleted file mode 100644
index 2d15d5d..0000000
--- a/dev-lang/php/php-5.0.4-r2.ebuild
+++ /dev/null
@@ -1,219 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.4-r2.ebuild,v 1.1 2005/10/31 14:10:39 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl2-gentoo"|g' -i configure.in
-
- # fix a GCC4 compile bug in XMLRPC extension, bug #96813
- use xmlrpc && epatch "${FILESDIR}/5.0.4/php5.0.4-xmlrcp-ccode.diff"
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/5.0.4/php5.0.4-pspell-ext-segf.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/5.0.4/php5.0.4-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/5.0.4/php5.0.4-fopen_wrappers.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/5.0.4/php5.0.4-session_save_path-segf.patch"
-
- # patch to fix PCRE library security issues, bug #102373
- epatch "${FILESDIR}/5.0.4/php5.0.4-pcre-security.patch"
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf "${S}/ext/pcre/pcrelib" && mv -f "${WORKDIR}/pcrelib-new" "${S}/ext/pcre/pcrelib" || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php5_0-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.0.4-r3.ebuild b/dev-lang/php/php-5.0.4-r3.ebuild
deleted file mode 100644
index 6a174cb..0000000
--- a/dev-lang/php/php-5.0.4-r3.ebuild
+++ /dev/null
@@ -1,228 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.4-r3.ebuild,v 1.1 2005/11/03 14:09:24 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl3-gentoo"|g' -i configure.in
-
- # fix a GCC4 compile bug in XMLRPC extension, bug #96813
- use xmlrpc && epatch "${FILESDIR}/5.0.4/php5.0.4-xmlrcp-ccode.diff"
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/5.0.4/php5.0.4-pspell-ext-segf.patch"
-
- # patch fo fix safe_mode bypass in CURL extension, bug #111032
- use curl && epatch "${FILESDIR}/5.0.4/php5.0.4-curl_safemode.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/5.0.4/php5.0.4-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/5.0.4/php5.0.4-fopen_wrappers.patch"
-
- # patch $GLOBALS overwrite vulnerability, bug #111011 and bug #111014
- epatch "${FILESDIR}/5.0.4/php5.0.4-globals_overwrite.patch"
-
- # patch phpinfo() XSS vulnerability, bug #111015
- epatch "${FILESDIR}/5.0.4/php5.0.4-phpinfo_xss.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/5.0.4/php5.0.4-session_save_path-segf.patch"
-
- # patch to fix PCRE library security issues, bug #102373
- epatch "${FILESDIR}/5.0.4/php5.0.4-pcre-security.patch"
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf "${S}/ext/pcre/pcrelib" && mv -f "${WORKDIR}/pcrelib-new" "${S}/ext/pcre/pcrelib" || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php5_0-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.0.4-r4.ebuild b/dev-lang/php/php-5.0.4-r4.ebuild
deleted file mode 100644
index 5d9d1c1..0000000
--- a/dev-lang/php/php-5.0.4-r4.ebuild
+++ /dev/null
@@ -1,228 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.4-r4.ebuild,v 1.1 2005/11/04 12:45:21 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-# fixed PCRE library for security issues, bug #102373
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-pcrelib-new-secpatch.tar.bz2"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl3-gentoo"|g' -i configure.in
-
- # fix a GCC4 compile bug in XMLRPC extension, bug #96813
- use xmlrpc && epatch "${FILESDIR}/5.0.4/php5.0.4-xmlrcp-ccode.diff"
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/5.0.4/php5.0.4-pspell-ext-segf.patch"
-
- # patch fo fix safe_mode bypass in CURL extension, bug #111032
- use curl && epatch "${FILESDIR}/5.0.4/php5.0.4-curl_safemode.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/5.0.4/php5.0.4-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/5.0.4/php5.0.4-fopen_wrappers.patch"
-
- # patch $GLOBALS overwrite vulnerability, bug #111011 and bug #111014
- epatch "${FILESDIR}/5.0.4/php5.0.4-globals_overwrite.patch"
-
- # patch phpinfo() XSS vulnerability, bug #111015
- epatch "${FILESDIR}/5.0.4/php5.0.4-phpinfo_xss.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/5.0.4/php5.0.4-session_save_path-segf.patch"
-
- # patch to fix PCRE library security issues, bug #102373
- epatch "${FILESDIR}/5.0.4/php5.0.4-pcre-security.patch"
-
- # sobstitute the bundled PCRE library with a fixed version for bug #102373
- einfo "Updating bundled PCRE library"
- rm -rf "${S}/ext/pcre/pcrelib" && mv -f "${WORKDIR}/pcrelib-new" "${S}/ext/pcre/pcrelib" || die "Unable to update the bundled PCRE library"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php5_0-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.0.4.ebuild b/dev-lang/php/php-5.0.4.ebuild
deleted file mode 100644
index f7e2aac..0000000
--- a/dev-lang/php/php-5.0.4.ebuild
+++ /dev/null
@@ -1,184 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.4.ebuild,v 1.1 2005/09/04 16:58:08 stuart Exp $
-
-IUSE="${IUSE} cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~ppc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-SLOT="5"
-PHPSAPI_ALLOWED="cli cgi apache apache2"
-MY_PHP_P="php-${PV}"
-PHP_S="${WORKDIR}/${MY_PHP_P}"
-PHP_PACKAGE=1
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT=${D} install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.1.0/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.1.0/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Create the symlinks with eselect
- if useq cli ; then
- eselect php set php5
- eselect php-devel set php5
- fi
-
- if useq cgi ; then
- eselect php-cgi set php5
- eselect php-devel set php5
- fi
-
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5.conf"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5.conf"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.0.5-r1.ebuild b/dev-lang/php/php-5.0.5-r1.ebuild
deleted file mode 100644
index 9a43bc7..0000000
--- a/dev-lang/php/php-5.0.5-r1.ebuild
+++ /dev/null
@@ -1,191 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.5-r1.ebuild,v 1.1 2005/09/18 13:21:54 hollow Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~ppc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd ${S}
-
- # fix a object serialization bug, bug #105374
- epatch ${FILESDIR}/5.0.0/php5.0.5-obj-serialize.patch
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php5_0-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT=${D} install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.1.0/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.1.0/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5.conf"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5.conf"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.0.5-r2.ebuild b/dev-lang/php/php-5.0.5-r2.ebuild
deleted file mode 100644
index 469d213..0000000
--- a/dev-lang/php/php-5.0.5-r2.ebuild
+++ /dev/null
@@ -1,209 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.5-r2.ebuild,v 1.1 2005/10/31 14:10:39 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl2-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/5.0.5/php5.0.5-pspell-ext-segf.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/5.0.5/php5.0.5-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/5.0.5/php5.0.5-fopen_wrappers.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/5.0.5/php5.0.5-session_save_path-segf.patch"
-
- # fix a object serialization bug, bug #105374
- epatch "${FILESDIR}/5.0.5/php5.0.5-obj-serialize.patch"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php5_0-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.0.5-r3.ebuild b/dev-lang/php/php-5.0.5-r3.ebuild
deleted file mode 100644
index 070e3af..0000000
--- a/dev-lang/php/php-5.0.5-r3.ebuild
+++ /dev/null
@@ -1,215 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.5-r3.ebuild,v 1.1 2005/11/03 14:09:24 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl3-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/5.0.5/php5.0.5-pspell-ext-segf.patch"
-
- # patch fo fix safe_mode bypass in CURL extension, bug #111032
- use curl && epatch "${FILESDIR}/5.0.5/php5.0.5-curl_safemode.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/5.0.5/php5.0.5-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/5.0.5/php5.0.5-fopen_wrappers.patch"
-
- # patch $GLOBALS overwrite vulnerability, bug #111011 and bug #111014
- epatch "${FILESDIR}/5.0.5/php5.0.5-globals_overwrite.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/5.0.5/php5.0.5-session_save_path-segf.patch"
-
- # fix a object serialization bug, bug #105374
- epatch "${FILESDIR}/5.0.5/php5.0.5-obj-serialize.patch"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php5_0-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.0.5-r4.ebuild b/dev-lang/php/php-5.0.5-r4.ebuild
deleted file mode 100644
index 5b2143d..0000000
--- a/dev-lang/php/php-5.0.5-r4.ebuild
+++ /dev/null
@@ -1,215 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.5-r4.ebuild,v 1.1 2005/11/04 12:45:21 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl3-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/5.0.5/php5.0.5-pspell-ext-segf.patch"
-
- # patch fo fix safe_mode bypass in CURL extension, bug #111032
- use curl && epatch "${FILESDIR}/5.0.5/php5.0.5-curl_safemode.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/5.0.5/php5.0.5-gd_safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/5.0.5/php5.0.5-fopen_wrappers.patch"
-
- # patch $GLOBALS overwrite vulnerability, bug #111011 and bug #111014
- epatch "${FILESDIR}/5.0.5/php5.0.5-globals_overwrite.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/5.0.5/php5.0.5-session_save_path-segf.patch"
-
- # fix a object serialization bug, bug #105374
- epatch "${FILESDIR}/5.0.5/php5.0.5-obj-serialize.patch"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php5_0-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.0.5-r5.ebuild b/dev-lang/php/php-5.0.5-r5.ebuild
deleted file mode 100644
index 5dee098..0000000
--- a/dev-lang/php/php-5.0.5-r5.ebuild
+++ /dev/null
@@ -1,225 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.5-r5.ebuild,v 1.1 2006/01/04 09:24:47 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-HARDENEDPHP_PATCH="hardening-patch-${PV}-0.4.8-gentoo.patch.gz"
-LIB64_PATCH="${PV}/php${PV}-multilib-search-path.patch"
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-pl5-gentoo"|g' -i configure.in
-
- # patch to fix pspell extension, bug #99312 (new patch by upstream)
- use spell && epatch "${FILESDIR}/${PV}/php${PV}-pspell-ext-segf.patch"
-
- # patch fo fix safe_mode bypass in CURL extension, bug #111032
- use curl && epatch "${FILESDIR}/${PV}/php${PV}-curl-open_basedir.patch"
-
- # fix header injection in mbstring extension
- use nls && epatch "${FILESDIR}/${PV}/php${PV}-mbstring-header_inj.patch"
-
- # patch to fix safe_mode bypass in GD extension, bug #109669
- if use gd || use gd-external ; then
- epatch "${FILESDIR}/${PV}/php${PV}-gd-safe_mode.patch"
- fi
-
- # patch open_basedir directory bypass, bug #102943
- epatch "${FILESDIR}/${PV}/php${PV}-fopen_wrappers.patch"
-
- # patch $GLOBALS overwrite vulnerability, bug #111011 and bug #111014
- epatch "${FILESDIR}/${PV}/php${PV}-globals_overwrite.patch"
-
- # patch to fix session.save_path segfault and other issues in
- # the apache2handler SAPI, bug #107602
- epatch "${FILESDIR}/${PV}/php${PV}-apache2sapi.patch"
-
- # patch to fix a GCC4 compile problem, bug #111261
- epatch "${FILESDIR}/${PV}/php${PV}-tsrm-gcc4.patch"
-
- # fix a object serialization bug, bug #105374
- epatch "${FILESDIR}/${PV}/php${PV}-obj-serialize.patch"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php5_0-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.0-any/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.0.5.ebuild b/dev-lang/php/php-5.0.5.ebuild
deleted file mode 100644
index 44c9c6b..0000000
--- a/dev-lang/php/php-5.0.5.ebuild
+++ /dev/null
@@ -1,184 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.0.5.ebuild,v 1.1 2005/09/06 14:54:15 sebastian Exp $
-
-IUSE="${IUSE} cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-SLOT="5"
-PHPSAPI_ALLOWED="cli cgi apache apache2"
-MY_PHP_P="php-${PV}"
-PHP_S="${WORKDIR}/${MY_PHP_P}"
-PHP_PACKAGE=1
-
-inherit eutils php5_0-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/eselect-php"
-RDEPEND="${RDEPEND} app-admin/eselect-php"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- php5_0-sapi_pkg_setup
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_0-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_0-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_0-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_0-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_0-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT=${D} install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.1.0/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.1.0/apache-1.3/70_mod_php5.conf"
- fi
- php5_0-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Create the symlinks with eselect
- if useq cli ; then
- eselect php set php5
- eselect php-devel set php5
- fi
-
- if useq cgi ; then
- eselect php-cgi set php5
- eselect php-devel set php5
- fi
-
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5.conf"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5.conf"
- apache-module_pkg_postinst
- fi
- php5_0-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.1.1.ebuild b/dev-lang/php/php-5.1.1.ebuild
deleted file mode 100644
index bc20aef..0000000
--- a/dev-lang/php/php-5.1.1.ebuild
+++ /dev/null
@@ -1,302 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.1.ebuild,v 1.1 2006/01/04 09:24:47 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-#
-# This will be sorted out when GLEP 37 is implemented
-
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_P="php-${PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-HARDENEDPHP_PATCH="hardening-patch-${PV}-0.4.8-gentoo.patch.gz"
-LIB64_PATCH="${PV}/php${PV}-multilib-search-path.patch"
-
-inherit eutils php5_1-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine"
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-src_unpack() {
- # custom src_unpack, used only for PHP ebuilds that need additional patches
- # normally the eclass src_unpack is used
- if [ "${PHP_PACKAGE}" == 1 ] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # fix PHP branding
- sed -e 's|^EXTRA_VERSION=""|EXTRA_VERSION="-gentoo"|g' -i configure.in
-
- # fix ming error in configure
- epatch "${FILESDIR}/${PV}/php${PV}-ming-config.patch"
-
- # we call the eclass src_unpack, but don't want ${A} to be unpacked again
- PHP_PACKAGE=0
- php5_1-sapi_src_unpack
- PHP_PACKAGE=1
-}
-
-php_determine_sapis() {
-
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
-
- if useq apache || useq apache2 ; then
- if [ "${APACHE_VERSION}" != "0" ]; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [ "${CLEAN_REQUIRED}" = 1 ]; then
- make clean
- # echo > /dev/null
- fi
-
- PHPSAPI=${x}
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="${orig_conf} --disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="${orig_conf} --disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [ -n "${USE_APACHE2}" ] ; then
- einfo "Installing Apache2 config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.1-any/apache-2.0/70_mod_php5.conf"
- else
- einfo "Installing Apache config for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- doins "${FILESDIR}/5.1-any/apache-1.3/70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst()
-{
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_1-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.1.2-r1.ebuild b/dev-lang/php/php-5.1.2-r1.ebuild
deleted file mode 100644
index 958ec1e..0000000
--- a/dev-lang/php/php-5.1.2-r1.ebuild
+++ /dev/null
@@ -1,286 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.2-r1.ebuild,v 1.1 2006/04/13 20:28:58 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="2"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.8-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php5_1-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- else
- einfo "Installing Apache config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_1-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.1.2.ebuild b/dev-lang/php/php-5.1.2.ebuild
deleted file mode 100644
index 44f2bb2..0000000
--- a/dev-lang/php/php-5.1.2.ebuild
+++ /dev/null
@@ -1,286 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.2.ebuild,v 1.1 2006/03/12 13:25:34 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.8-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php5_1-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- confutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- enable_extension_enable "discard-path" "discard-path" 0
- enable_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- else
- einfo "Installing Apache config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_1-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.1.4-r1.ebuild b/dev-lang/php/php-5.1.4-r1.ebuild
deleted file mode 100644
index 9bb20e1..0000000
--- a/dev-lang/php/php-5.1.4-r1.ebuild
+++ /dev/null
@@ -1,290 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.4-r1.ebuild,v 1.1 2006/05/29 22:07:20 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="2"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.11-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php5_1-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- else
- einfo "Installing Apache config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_1-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.1.4-r3.ebuild b/dev-lang/php/php-5.1.4-r3.ebuild
deleted file mode 100644
index 69bcf38..0000000
--- a/dev-lang/php/php-5.1.4-r3.ebuild
+++ /dev/null
@@ -1,290 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.4-r3.ebuild,v 1.1 2006/06/20 20:38:58 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="4"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.11-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php5_1-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- else
- einfo "Installing Apache config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_1-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.1.4-r4.ebuild b/dev-lang/php/php-5.1.4-r4.ebuild
deleted file mode 100644
index bbdb460..0000000
--- a/dev-lang/php/php-5.1.4-r4.ebuild
+++ /dev/null
@@ -1,498 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.4-r4.ebuild,v 1.1 2006/07/14 16:04:37 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="5"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.11-gentoo-r1.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_1-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_1-sapi_src_unpack
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_1-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_1-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_1-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.1.4-r6.ebuild b/dev-lang/php/php-5.1.4-r6.ebuild
deleted file mode 100644
index b115536..0000000
--- a/dev-lang/php/php-5.1.4-r6.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.4-r6.ebuild,v 1.1 2006/08/10 16:31:49 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="6"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.13-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_1-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_1-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_1-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_1-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_1-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.1.4.ebuild b/dev-lang/php/php-5.1.4.ebuild
deleted file mode 100644
index 9280a61..0000000
--- a/dev-lang/php/php-5.1.4.ebuild
+++ /dev/null
@@ -1,288 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.4.ebuild,v 1.1 2006/05/05 10:28:58 chtekk Exp $
-
-IUSE="cgi cli discard-path force-cgi-redirect"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE=1
-
-# php patch settings
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.9-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-
-inherit php5_1-sapi apache-module
-
-want_apache
-
-DESCRIPTION="The PHP language runtime engine."
-
-DEPEND="${DEPEND} app-admin/php-toolkit"
-RDEPEND="${RDEPEND} app-admin/php-toolkit"
-
-# PHP patchsets
-SRC_URI="${SRC_URI} http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Hardened-PHP patch
-[[ -n "${HARDENEDPHP_PATCH}" ]] && SRC_URI="${SRC_URI} hardenedphp? ( http://gentoo.longitekk.com/${HARDENEDPHP_PATCH} )"
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # make sure the user has specified a SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, which may fail to compile"
- ewarn "and may produce PHP binaries which are broken."
- ewarn
- ewarn "Rebuild without 'fastbuild' and reproduce any bugs before filing"
- ewarn "any bugs in Gentoo's Bugzilla or bugs.php.net."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache=0
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache*)
- build_apache=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- fi
-
- # now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # to keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache} = 1 ]] ; then
- einfo
- einfo "Building apache${USE_APACHE2} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to build mod_php"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
-
- for x in ${PHPSAPIS} ; do
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI=${x}
-
- case ${x} in
- cli)
- my_conf="--enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli
- ;;
- cgi)
- my_conf="--disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi
- ;;
- apache*)
- my_conf="--disable-cli --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # let the eclass do the heavy lifting
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
- PHPSAPI=${x}
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache*)
- einfo "Installing apache${USE_APACHE2} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if [[ -n "${USE_APACHE2}" ]] ; then
- einfo "Installing Apache2 config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- else
- einfo "Installing Apache config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
- php5_1-sapi_pkg_postinst
-}
diff --git a/dev-lang/php/php-5.1.6-r1.ebuild b/dev-lang/php/php-5.1.6-r1.ebuild
deleted file mode 100644
index 045d8b9..0000000
--- a/dev-lang/php/php-5.1.6-r1.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.6-r1.ebuild,v 1.1 2006/08/29 23:05:20 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.14-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_1-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_1-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_1-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_1-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_1-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.1.6-r11.ebuild b/dev-lang/php/php-5.1.6-r11.ebuild
deleted file mode 100644
index afb1009..0000000
--- a/dev-lang/php/php-5.1.6-r11.ebuild
+++ /dev/null
@@ -1,516 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.6-r11.ebuild,v 1.1 2007/03/05 02:14:43 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="8"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_1-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_1-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_1-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_1-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_1-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.1.6-r2.ebuild b/dev-lang/php/php-5.1.6-r2.ebuild
deleted file mode 100644
index 06f7dd2..0000000
--- a/dev-lang/php/php-5.1.6-r2.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.6-r2.ebuild,v 1.1 2006/08/30 11:17:26 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.14-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_1-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_1-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_1-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_1-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_1-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.1.6-r4.ebuild b/dev-lang/php/php-5.1.6-r4.ebuild
deleted file mode 100644
index eb3184a..0000000
--- a/dev-lang/php/php-5.1.6-r4.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.6-r4.ebuild,v 1.1 2006/09/10 12:48:50 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="2"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.15-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_1-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_1-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_1-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_1-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_1-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.1.6-r6.ebuild b/dev-lang/php/php-5.1.6-r6.ebuild
deleted file mode 100644
index d5f6639..0000000
--- a/dev-lang/php/php-5.1.6-r6.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.6-r6.ebuild,v 1.1 2006/10/07 20:22:39 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="3"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.15-gentoo-r1.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_1-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_1-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_1-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_1-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_1-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.1.6-r8.ebuild b/dev-lang/php/php-5.1.6-r8.ebuild
deleted file mode 100644
index bc061bb..0000000
--- a/dev-lang/php/php-5.1.6-r8.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.6-r8.ebuild,v 1.1 2006/10/27 12:17:35 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="4"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.15-gentoo-r1.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_1-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_1-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_1-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_1-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_1-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.1.6.ebuild b/dev-lang/php/php-5.1.6.ebuild
deleted file mode 100644
index 4964b62..0000000
--- a/dev-lang/php/php-5.1.6.ebuild
+++ /dev/null
@@ -1,512 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.1.6.ebuild,v 1.1 2006/08/29 19:55:32 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-HARDENEDPHP_PATCH="hardening-patch-${MY_PHP_PV}-0.4.14-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_1-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_1-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_1-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_1-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_1-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_1-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_1-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_1-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_1-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_1-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_1-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_1-sapi_install_ini
- ;;
- esac
- done
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_1-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.2.1-r3.ebuild b/dev-lang/php/php-5.2.1-r3.ebuild
deleted file mode 100644
index 38e2e75..0000000
--- a/dev-lang/php/php-5.2.1-r3.ebuild
+++ /dev/null
@@ -1,516 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.1-r3.ebuild,v 1.1 2007/03/05 02:14:43 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="4"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_2-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_2-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.2.10-r1.ebuild b/dev-lang/php/php-5.2.10-r1.ebuild
deleted file mode 100644
index 7a04504..0000000
--- a/dev-lang/php/php-5.2.10-r1.ebuild
+++ /dev/null
@@ -1,547 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.10-r1.ebuild,v 1.1 2009/07/05 23:26:08 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.7.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- depend.apache_pkg_setup
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt \
- tests/lang/bug45392.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.10-r2.ebuild b/dev-lang/php/php-5.2.10-r2.ebuild
deleted file mode 100644
index f9737e5..0000000
--- a/dev-lang/php/php-5.2.10-r2.ebuild
+++ /dev/null
@@ -1,550 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.10-r2.ebuild,v 1.1 2009/09/24 23:36:54 cla Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-PHP_PATCHSET_REV="${PHP_PATCHSET_REV/2/1}"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.7.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- depend.apache_pkg_setup
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # Quick fix for bug #279576
- epatch "${FILESDIR}"/php-${PV}-pdo_dblib.patch
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.10.ebuild b/dev-lang/php/php-5.2.10.ebuild
deleted file mode 100644
index 9a544bb..0000000
--- a/dev-lang/php/php-5.2.10.ebuild
+++ /dev/null
@@ -1,547 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.10.ebuild,v 1.1 2009/06/19 14:40:22 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-SUHOSIN_PATCH="suhosin-patch-5.2.9-0.9.7.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- depend.apache_pkg_setup
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt \
- tests/lang/bug45392.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.11-r1.ebuild b/dev-lang/php/php-5.2.11-r1.ebuild
deleted file mode 100644
index 50d6d78..0000000
--- a/dev-lang/php/php-5.2.11-r1.ebuild
+++ /dev/null
@@ -1,551 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.11-r1.ebuild,v 1.1 2009/11/13 16:11:51 cla Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-# php patch settings, general
-PHP_PATCHSET_URI="http://dev.gentoo.org/~cla/distfiles/php-patchset-${PVR}.tar.bz2"
-PHP_PATCHSET_REV="${PR/r/}"
-PHP_PATCHSET_REV="${PHP_PATCHSET_REV/2/1}"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.7.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )
- suhosin? ( >=dev-php5/suhosin-0.9.29 )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- depend.apache_pkg_setup
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # Security bug #292132
- epatch "${WORKDIR}"/${MY_PHP_PV}/gd-maxcolors.patch
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.11.ebuild b/dev-lang/php/php-5.2.11.ebuild
deleted file mode 100644
index e827ec4..0000000
--- a/dev-lang/php/php-5.2.11.ebuild
+++ /dev/null
@@ -1,547 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.11.ebuild,v 1.1 2009/09/29 16:37:04 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-PHP_PATCHSET_REV="${PHP_PATCHSET_REV/2/1}"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.7.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- depend.apache_pkg_setup
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.12.ebuild b/dev-lang/php/php-5.2.12.ebuild
deleted file mode 100644
index 839b26a..0000000
--- a/dev-lang/php/php-5.2.12.ebuild
+++ /dev/null
@@ -1,548 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.12.ebuild,v 1.1 2009/12/30 13:34:10 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-PHP_PATCHSET_URI="http://dev.gentoo.org/~hoffie/distfiles/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-SUHOSIN_PATCH="suhosin-patch-5.2.11-0.9.7.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-PDEPEND="suhosin? ( >=dev-php5/suhosin-0.9.29 )"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- depend.apache_pkg_setup
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.13.ebuild b/dev-lang/php/php-5.2.13.ebuild
deleted file mode 100644
index 8a7d05c..0000000
--- a/dev-lang/php/php-5.2.13.ebuild
+++ /dev/null
@@ -1,551 +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/Attic/php-5.2.13.ebuild,v 1.1 2010/03/20 14:33:03 keytoaster Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-PHP_PATCHSET_URI="http://dev.gentoo.org/~keytoaster/distfiles/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-SUHOSIN_PATCH="suhosin-patch-5.2.13-0.9.7.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? (
-http://download.suhosin.org/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-PDEPEND="suhosin? ( >=dev-php5/suhosin-0.9.29 )"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- depend.apache_pkg_setup
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- epatch "${FILESDIR}"/${PN}-5.2.12-libpng14.patch
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.14-r1.ebuild b/dev-lang/php/php-5.2.14-r1.ebuild
deleted file mode 100644
index dab5333..0000000
--- a/dev-lang/php/php-5.2.14-r1.ebuild
+++ /dev/null
@@ -1,313 +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/Attic/php-5.2.14-r1.ebuild,v 1.1 2010/10/08 18:25:10 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
-
-PHP_PATCHSET=""
-SUHOSIN_VERSION="$PV-0.9.7"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~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="${PHP_PATCHSET:-${PR/r/}}"
-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
-
-SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch"
-SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
-
-SRC_URI="
- ${PHP_SRC_URI}
- ${PHP_PATCHSET_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-
-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"
-
-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
- mcve 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 yaz zip zlib"
-
-DEPEND="app-admin/eselect-php
- 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? (
- >=media-libs/jpeg-6b
- 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? (
- >=media-libs/jpeg-6b
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- fdftk? ( app-text/fdftk )
- firebird? ( dev-db/firebird )
- gd? ( >=media-libs/jpeg-6b 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 )
- 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? (
- >=media-libs/jpeg-6b 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
- >=media-libs/jpeg-6b
- 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 )"
-
-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 )
- suhosin? ( dev-php${PHP_MV}/suhosin )
- mcve? ( dev-php${PHP_MV}/pecl-mcve )
- yaz? ( dev-php${PHP_MV}/pecl-yaz )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-PHP_INI_FILE="php.ini"
-PHP_INI_UPSTREAM="php.ini-dist"
-
-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() { 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 ; }
diff --git a/dev-lang/php/php-5.2.14-r2.ebuild b/dev-lang/php/php-5.2.14-r2.ebuild
deleted file mode 100644
index 1ee1772..0000000
--- a/dev-lang/php/php-5.2.14-r2.ebuild
+++ /dev/null
@@ -1,327 +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/Attic/php-5.2.14-r2.ebuild,v 1.1 2010/10/31 19:01:55 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"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~amd64 ~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="2"
-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
-
-SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch"
-SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
-
-SRC_URI="
- ${PHP_SRC_URI}
- ${PHP_PATCHSET_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-
-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
- mcve 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 yaz zip zlib"
-
-DEPEND="app-admin/eselect-php
- 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? (
- >=media-libs/jpeg-6b
- 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? (
- >=media-libs/jpeg-6b
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- fdftk? ( app-text/fdftk )
- firebird? ( dev-db/firebird )
- gd? ( >=media-libs/jpeg-6b 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 )
- 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? (
- >=media-libs/jpeg-6b 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
- >=media-libs/jpeg-6b
- 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 )"
-
-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 )
- suhosin? ( dev-php${PHP_MV}/suhosin )
- mcve? ( dev-php${PHP_MV}/pecl-mcve )
- yaz? ( dev-php${PHP_MV}/pecl-yaz )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-SLOT="$(get_version_component_range 1-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() { 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 ; }
diff --git a/dev-lang/php/php-5.2.14.ebuild b/dev-lang/php/php-5.2.14.ebuild
deleted file mode 100644
index 6f5fdad..0000000
--- a/dev-lang/php/php-5.2.14.ebuild
+++ /dev/null
@@ -1,314 +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/Attic/php-5.2.14.ebuild,v 1.1 2010/08/02 16:56:41 mabi 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
-
-PHP_PATCHSET=""
-SUHOSIN_VERSION="$PV-0.9.7"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~amd64 ~alpha ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-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="${PHP_PATCHSET:-${PR/r/}}"
-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
-
-SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch"
-SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
-
-SRC_URI="
- ${PHP_SRC_URI}
- ${PHP_PATCHSET_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-
-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}
- concurrentmodphp threads"
-
-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
- mcve 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 yaz zip zlib"
-
-DEPEND="app-admin/php-toolkit
- 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? (
- >=media-libs/jpeg-6b
- 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? (
- >=media-libs/jpeg-6b
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- fdftk? ( app-text/fdftk )
- firebird? ( dev-db/firebird )
- gd? ( >=media-libs/jpeg-6b 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 )
- 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? (
- >=media-libs/jpeg-6b 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
- >=media-libs/jpeg-6b
- 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 )"
-
-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 )
- suhosin? ( dev-php${PHP_MV}/suhosin )
- mcve? ( dev-php${PHP_MV}/pecl-mcve )
- yaz? ( dev-php${PHP_MV}/pecl-yaz )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-SLOT="${PHP_MV}"
-S="${WORKDIR}/${PHP_P}"
-
-PHP_INI_FILE="php.ini"
-PHP_INI_UPSTREAM="php.ini-dist"
-
-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 v1
-
-src_prepare() { eblit-run src_prepare v1 ; }
-src_configure() { eblit-run src_configure v52 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v1 ; }
-src_test() { eblit-run src_test v1 ; }
-
-eblit-pkg pkg_postinst v1
diff --git a/dev-lang/php/php-5.2.16-r1.ebuild b/dev-lang/php/php-5.2.16-r1.ebuild
deleted file mode 100644
index bc55cf1..0000000
--- a/dev-lang/php/php-5.2.16-r1.ebuild
+++ /dev/null
@@ -1,341 +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/Attic/php-5.2.16-r1.ebuild,v 1.1 2011/01/05 11:23:16 mabi 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=""
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~amd64 ~arm ~hppa ~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_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}
- ${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
- mcve 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 yaz 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? (
- >=media-libs/jpeg-6b
- 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? (
- >=media-libs/jpeg-6b
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- fdftk? ( app-text/fdftk )
- firebird? ( dev-db/firebird )
- gd? ( >=media-libs/jpeg-6b 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 )
- 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? (
- >=media-libs/jpeg-6b 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
- >=media-libs/jpeg-6b
- 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 ]] && DEPEND="${DEPEND} 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 )
- suhosin? ( dev-php${PHP_MV}/suhosin )
- mcve? ( dev-php${PHP_MV}/pecl-mcve )
- yaz? ( dev-php${PHP_MV}/pecl-yaz )"
-
-[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-SLOT="$(get_version_component_range 1-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() { 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 ; }
diff --git a/dev-lang/php/php-5.2.16.ebuild b/dev-lang/php/php-5.2.16.ebuild
deleted file mode 100644
index aa465f4..0000000
--- a/dev-lang/php/php-5.2.16.ebuild
+++ /dev/null
@@ -1,341 +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/Attic/php-5.2.16.ebuild,v 1.1 2010/12/19 14:24:49 mabi 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=""
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~amd64 ~arm ~hppa ~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_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}
- ${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
- mcve 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 yaz zip zlib"
-
-# Enable suhosin if available
-[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
-
-DEPEND="app-admin/eselect-php
- 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? (
- >=media-libs/jpeg-6b
- 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? (
- >=media-libs/jpeg-6b
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- fdftk? ( app-text/fdftk )
- firebird? ( dev-db/firebird )
- gd? ( >=media-libs/jpeg-6b 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 )
- 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? (
- >=media-libs/jpeg-6b 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
- >=media-libs/jpeg-6b
- 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 ]] && DEPEND="${DEPEND} 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 )
- suhosin? ( dev-php${PHP_MV}/suhosin )
- mcve? ( dev-php${PHP_MV}/pecl-mcve )
- yaz? ( dev-php${PHP_MV}/pecl-yaz )"
-
-[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-SLOT="$(get_version_component_range 1-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() { 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 ; }
diff --git a/dev-lang/php/php-5.2.2-r1.ebuild b/dev-lang/php/php-5.2.2-r1.ebuild
deleted file mode 100644
index d61bcd1..0000000
--- a/dev-lang/php/php-5.2.2-r1.ebuild
+++ /dev/null
@@ -1,516 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.2-r1.ebuild,v 1.1 2007/05/07 21:56:24 chtekk Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="2"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_2-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache apache2
-
- # Threaded Apache2 support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! useq threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if useq cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if useq cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - we can only build one apache sapi for now
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if useq apache || useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if useq concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if useq fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if useq cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if useq fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache1=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache1)
- build_apache1=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache1} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs=/usr/sbin/apxs"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php || die "Unable to make CGI SAPI"
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache1} = 1 ]] || [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if useq concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if useq apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if useq threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache1)
- my_conf="${my_conf} --disable-cli --with-apxs=/usr/sbin/apxs"
- php5_2-sapi_src_compile
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache1)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache1" "70_mod_php5.conf"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if useq concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if useq apache || useq apache2 ; then
- APACHE1_MOD_DEFINE="PHP5"
- APACHE1_MOD_CONF="70_mod_php5"
- APACHE2_MOD_DEFINE="PHP5"
- if useq concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache1 to use mod_php
- if useq apache ; then
- "${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache1 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache1 is configured to load a different version of PHP."
- ewarn "To make Apache1 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache1 php5"
- ewarn
- fi
- fi
-
- # Update Apache2 to use mod_php
- if useq apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if useq cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if useq cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.2.3-r3.ebuild b/dev-lang/php/php-5.2.3-r3.ebuild
deleted file mode 100644
index f5dda2e..0000000
--- a/dev-lang/php/php-5.2.3-r3.ebuild
+++ /dev/null
@@ -1,483 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.3-r3.ebuild,v 1.1 2007/07/22 21:16:52 dertobi123 Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="4"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_2-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- if use session; then
- elog "When using open_basedir in conjunction with the session extension"
- elog "make sure you add the value of session.save_path to open_basedir as"
- elog "well, e.g.: with session.save_path=/tmp (default) you should have"
- elog "open_basedir=/your/usual/webdir/:/tmp/"
- fi
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.2.4.ebuild b/dev-lang/php/php-5.2.4.ebuild
deleted file mode 100644
index cb980a0..0000000
--- a/dev-lang/php/php-5.2.4.ebuild
+++ /dev/null
@@ -1,477 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.4.ebuild,v 1.1 2007/09/08 18:26:36 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="0"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit php5_2-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.2.4_p20070914-r2.ebuild b/dev-lang/php/php-5.2.4_p20070914-r2.ebuild
deleted file mode 100644
index 797a7a4..0000000
--- a/dev-lang/php/php-5.2.4_p20070914-r2.ebuild
+++ /dev/null
@@ -1,494 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.4_p20070914-r2.ebuild,v 1.1 2007/09/19 20:06:05 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="2"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6.2-gentoo-r1.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# eclass doesn't know about our snapshot tarball so we have to set SRC_URI
-# ourselves
-SRC_URI="http://gentoo.longitekk.com/${P}.tar.bz2 http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- local release_version="$(get_version_component_range 3)"
- sed -re "s|^PHP_RELEASE_VERSION=.*|PHP_RELEASE_VERSION=${release_version}|g" -i "${S}/configure.in" \
- || die "Unable to change PHP release version to ${release_version}"
- PHP_EXTRA_BRANDING="_p${MY_PHP_PV#*_p}"
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.2.4_p20070914.ebuild b/dev-lang/php/php-5.2.4_p20070914.ebuild
deleted file mode 100644
index 88a30e7..0000000
--- a/dev-lang/php/php-5.2.4_p20070914.ebuild
+++ /dev/null
@@ -1,494 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.4_p20070914.ebuild,v 1.1 2007/09/14 15:33:29 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="0"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# eclass doesn't know about our snapshot tarball so we have to set SRC_URI
-# ourselves
-SRC_URI="http://gentoo.longitekk.com/${P}.tar.bz2 http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- local release_version="$(get_version_component_range 3)"
- sed -re "s|^PHP_RELEASE_VERSION=.*|PHP_RELEASE_VERSION=${release_version}|g" -i "${S}/configure.in" \
- || die "Unable to change PHP release version to ${release_version}"
- PHP_EXTRA_BRANDING="_p${MY_PHP_PV#*_p}"
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.2.4_pre200708051230-r2.ebuild b/dev-lang/php/php-5.2.4_pre200708051230-r2.ebuild
deleted file mode 100644
index 44717a0..0000000
--- a/dev-lang/php/php-5.2.4_pre200708051230-r2.ebuild
+++ /dev/null
@@ -1,493 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.4_pre200708051230-r2.ebuild,v 1.1 2007/08/09 20:01:48 dertobi123 Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="2"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/php${MY_PHP_PV}-concurrent_apache_modules.patch"
-
-inherit php5_2-sapi apache-module
-
-MY_PHP_SNAP_P="${MY_PHP_P//php-/php}"
-MY_PHP_SNAP_P="${MY_PHP_SNAP_P//.?_pre/-}"
-MY_PHP_SNAP_VER="${MY_PHP_SNAP_P/php?.?-/}"
-
-SRC_URI="http://gentoo.longitekk.com/php-5.2.4_pre${MY_PHP_SNAP_VER}.tar.bz2
-http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? (
-http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_PHP_SNAP_P}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # usually the eclass handles this, but it fails for snapshots
- sed -e "s|^PHP_EXTRA_VERSION=\".*\"|PHP_EXTRA_VERSION=\"_pre${MY_PHP_SNAP_VER}-pl${PHP_PATCHSET_REV}-gentoo\"|g" -i configure.in || die "Unable to change PHP branding to -pl${PHP_PATCHSET_REV}-gentoo"
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! emake -j1 test ; then
- hasq test ${FEATURES} && die "Make test failed. See above for details."
- hasq test ${FEATURES} || eerror "Make test failed. See above for details."
- fi
-}
diff --git a/dev-lang/php/php-5.2.5-r1.ebuild b/dev-lang/php/php-5.2.5-r1.ebuild
deleted file mode 100644
index 55abcc6..0000000
--- a/dev-lang/php/php-5.2.5-r1.ebuild
+++ /dev/null
@@ -1,495 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.5-r1.ebuild,v 1.1 2007/12/08 23:23:38 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-SUHOSIN_PATCH="suhosin-patch-${PV}-0.9.6.2.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! use cli; then
- einfo "Skipping tests as PHP was built without CLI support"
- return
- fi
- REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=./sapi/cli/php \
- TEST_PHP_CGI_EXECUTABLE=./sapi/cgi/php-cgi ./sapi/cli/php -n ./run-tests.php -n
- if [[ $? != 0 ]] ; then
- eerror "Some tests failed!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.5.ebuild b/dev-lang/php/php-5.2.5.ebuild
deleted file mode 100644
index 3866984..0000000
--- a/dev-lang/php/php-5.2.5.ebuild
+++ /dev/null
@@ -1,496 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.5.ebuild,v 1.1 2007/11/09 22:44:30 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="0"
-SUHOSIN_PATCH="suhosin-patch-5.2.4_p20070914-0.9.6.2-gentoo-r1.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! use cli; then
- einfo "Skipping tests as PHP was built without CLI support"
- return
- fi
- REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=./sapi/cli/php \
- TEST_PHP_CGI_EXECUTABLE=./sapi/cgi/php-cgi ./sapi/cli/php -n ./run-tests.php -n
- if [[ $? != 0 ]] ; then
- eerror "Some tests failed!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.5_p20080206-r2.ebuild b/dev-lang/php/php-5.2.5_p20080206-r2.ebuild
deleted file mode 100644
index 3c31a37..0000000
--- a/dev-lang/php/php-5.2.5_p20080206-r2.ebuild
+++ /dev/null
@@ -1,509 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.5_p20080206-r2.ebuild,v 1.1 2008/02/12 16:46:19 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="2"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://gentoo.longitekk.com/${P}.tar.bz2
- http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- sed -re 's:^(PHP_RELEASE_VERSION=).*$:\15:g' -i configure.in
- PHP_EXTRA_BRANDING="-p${PV/*_p/}"
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/sapi/cli/php -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.5_p20080206-r3.ebuild b/dev-lang/php/php-5.2.5_p20080206-r3.ebuild
deleted file mode 100644
index 31dab0a..0000000
--- a/dev-lang/php/php-5.2.5_p20080206-r3.ebuild
+++ /dev/null
@@ -1,509 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.5_p20080206-r3.ebuild,v 1.1 2008/02/12 21:58:56 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="3"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://gentoo.longitekk.com/${P}.tar.bz2
- http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- sed -re 's:^(PHP_RELEASE_VERSION=).*$:\15:g' -i configure.in
- PHP_EXTRA_BRANDING="-p${PV/*_p/}"
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/sapi/cli/php -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.5_p20080206.ebuild b/dev-lang/php/php-5.2.5_p20080206.ebuild
deleted file mode 100644
index 65530f3..0000000
--- a/dev-lang/php/php-5.2.5_p20080206.ebuild
+++ /dev/null
@@ -1,504 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.5_p20080206.ebuild,v 1.1 2008/02/06 15:15:54 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="0"
-SUHOSIN_PATCH="suhosin-patch-${MY_PHP_PV}-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://gentoo.longitekk.com/${P}.tar.bz2
- http://gentoo.longitekk.com/php-patchset-${MY_PHP_PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- sed -re 's:^(PHP_RELEASE_VERSION=).*$:\15:g' -i configure.in
- PHP_EXTRA_BRANDING="-p${PV/*_p/}"
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if ! use cli; then
- einfo "Skipping tests as PHP was built without CLI support"
- return
- fi
- REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=./sapi/cli/php \
- TEST_PHP_CGI_EXECUTABLE=./sapi/cgi/php-cgi ./sapi/cli/php -n ./run-tests.php -n
- if [[ $? != 0 ]] ; then
- eerror "Some tests failed!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6-r1.ebuild b/dev-lang/php/php-5.2.6-r1.ebuild
deleted file mode 100644
index 9150864..0000000
--- a/dev-lang/php/php-5.2.6-r1.ebuild
+++ /dev/null
@@ -1,504 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6-r1.ebuild,v 1.1 2008/05/05 21:01:17 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-SUHOSIN_PATCH="suhosin-patch-5.2.6-0.9.6.2.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # Workaround for autoconf-2.62 behaviour change, bug 217392
- sed -re 's:(#ifdef HAVE_CONFIG_H.*):#define _GNU_SOURCE\n\1:' -i ext/posix/posix.c
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- ext/standard/tests/file/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6-r2.ebuild b/dev-lang/php/php-5.2.6-r2.ebuild
deleted file mode 100644
index 8a73ea6..0000000
--- a/dev-lang/php/php-5.2.6-r2.ebuild
+++ /dev/null
@@ -1,507 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6-r2.ebuild,v 1.1 2008/07/03 09:52:58 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="2"
-SUHOSIN_PATCH="suhosin-patch-5.2.6-0.9.6.2.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # Workaround for autoconf-2.62 behaviour change, bug 217392
- sed -re 's:(#ifdef HAVE_CONFIG_H.*):#define _GNU_SOURCE\n\1:' -i ext/posix/posix.c
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- ext/standard/tests/file/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6-r5.ebuild b/dev-lang/php/php-5.2.6-r5.ebuild
deleted file mode 100644
index 5644a00..0000000
--- a/dev-lang/php/php-5.2.6-r5.ebuild
+++ /dev/null
@@ -1,511 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6-r5.ebuild,v 1.1 2008/07/17 13:54:24 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="4"
-SUHOSIN_PATCH="suhosin-patch-5.2.6-0.9.6.2-r1.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://home.hoffie.info/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2
- ${SRC_URI}"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=net-libs/c-client-2006k )"
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # Workaround for autoconf-2.62 behaviour change, bug 217392
- sed -re 's:(#ifdef HAVE_CONFIG_H.*):#define _GNU_SOURCE\n\1:' -i ext/posix/posix.c
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- ext/standard/tests/file/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6-r6.ebuild b/dev-lang/php/php-5.2.6-r6.ebuild
deleted file mode 100644
index 23845dc..0000000
--- a/dev-lang/php/php-5.2.6-r6.ebuild
+++ /dev/null
@@ -1,511 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6-r6.ebuild,v 1.1 2008/08/07 10:25:21 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="6"
-SUHOSIN_PATCH="suhosin-patch-5.2.6-0.9.6.2-r1.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://home.hoffie.info/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2
- ${SRC_URI}"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )"
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- ext/standard/tests/file/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6-r7.ebuild b/dev-lang/php/php-5.2.6-r7.ebuild
deleted file mode 100644
index 456df43..0000000
--- a/dev-lang/php/php-5.2.6-r7.ebuild
+++ /dev/null
@@ -1,511 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6-r7.ebuild,v 1.1 2008/09/06 20:48:36 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="8"
-SUHOSIN_PATCH="suhosin-patch-5.2.6-0.9.6.2-r1.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://home.hoffie.info/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2
- ${SRC_URI}"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )"
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- ext/standard/tests/file/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6.ebuild b/dev-lang/php/php-5.2.6.ebuild
deleted file mode 100644
index 416341a..0000000
--- a/dev-lang/php/php-5.2.6.ebuild
+++ /dev/null
@@ -1,505 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6.ebuild,v 1.1 2008/05/01 14:58:11 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="0"
-SUHOSIN_PATCH="suhosin-patch-5.2.5_p20080206-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # Workaround for autoconf-2.62 behaviour change, bug 217392
- sed -re 's:(#ifdef HAVE_CONFIG_H.*):#define _GNU_SOURCE\n\1:' -i ext/posix/posix.c
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
-
- # these only fail because of one "sub-test" which might be
- # Gentoo-specific (sandbox? it's about path normalization, ../ -> ..)
- sed -e 's:File(\.\./):File(..):g' -i \
- ext/standard/tests/file/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6_rc1-r1.ebuild b/dev-lang/php/php-5.2.6_rc1-r1.ebuild
deleted file mode 100644
index 289ac2f..0000000
--- a/dev-lang/php/php-5.2.6_rc1-r1.ebuild
+++ /dev/null
@@ -1,508 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6_rc1-r1.ebuild,v 1.1 2008/03/05 19:11:13 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-SUHOSIN_PATCH="suhosin-patch-5.2.5_p20080206-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://downloads.php.net/ilia/${MY_PHP_P/_rc/RC}.tar.bz2
- http://gentoo.longitekk.com/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-S="${WORKDIR}/${MY_PHP_P/_rc/RC}"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- PHP_EXTRA_BRANDING="RC${PV#*_rc}"
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6_rc1.ebuild b/dev-lang/php/php-5.2.6_rc1.ebuild
deleted file mode 100644
index e33edc5..0000000
--- a/dev-lang/php/php-5.2.6_rc1.ebuild
+++ /dev/null
@@ -1,508 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6_rc1.ebuild,v 1.1 2008/03/03 12:14:56 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="0"
-SUHOSIN_PATCH="suhosin-patch-5.2.5_p20080206-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://downloads.php.net/ilia/${MY_PHP_P/_rc/RC}.tar.bz2
- http://gentoo.longitekk.com/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-S="${WORKDIR}/${MY_PHP_P/_rc/RC}"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if ! use threads ; then
- APACHE2_SAFE_MPMS="itk peruser prefork"
- else
- APACHE2_SAFE_MPMS="event leader metuxmpm perchild threadpool worker"
- fi
-
- ewarn
- ewarn "If this package fails with a fatal error about Apache2 not having"
- ewarn "been compiled with a compatible MPM, this is normally because you"
- ewarn "need to toggle the 'threads' USE flag."
- ewarn
- ewarn "If 'threads' is off, try switching it on."
- ewarn "If 'threads' is on, try switching it off."
- ewarn
-
- apache-module_pkg_setup
- fi
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- PHP_EXTRA_BRANDING="RC${PV#*_rc}"
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- if [[ "${APACHE_VERSION}" != "0" ]] ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6_rc3-r1.ebuild b/dev-lang/php/php-5.2.6_rc3-r1.ebuild
deleted file mode 100644
index 9f14b50..0000000
--- a/dev-lang/php/php-5.2.6_rc3-r1.ebuild
+++ /dev/null
@@ -1,481 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6_rc3-r1.ebuild,v 1.1 2008/03/30 14:15:55 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="1"
-SUHOSIN_PATCH="suhosin-patch-5.2.5_p20080206-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://downloads.php.net/ilia/${MY_PHP_P/_rc/RC}.tar.bz2
- http://gentoo.longitekk.com/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-S="${WORKDIR}/${MY_PHP_P/_rc/RC}"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- PHP_EXTRA_BRANDING="RC${PV#*_rc}"
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6_rc3.ebuild b/dev-lang/php/php-5.2.6_rc3.ebuild
deleted file mode 100644
index 23bbeb1..0000000
--- a/dev-lang/php/php-5.2.6_rc3.ebuild
+++ /dev/null
@@ -1,481 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6_rc3.ebuild,v 1.1 2008/03/28 23:09:10 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="0"
-SUHOSIN_PATCH="suhosin-patch-5.2.5_p20080206-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://downloads.php.net/ilia/${MY_PHP_P/_rc/RC}.tar.bz2
- http://gentoo.longitekk.com/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-S="${WORKDIR}/${MY_PHP_P/_rc/RC}"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- PHP_EXTRA_BRANDING="RC${PV#*_rc}"
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.6_rc4.ebuild b/dev-lang/php/php-5.2.6_rc4.ebuild
deleted file mode 100644
index c5be5c3..0000000
--- a/dev-lang/php/php-5.2.6_rc4.ebuild
+++ /dev/null
@@ -1,481 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.6_rc4.ebuild,v 1.1 2008/04/05 22:47:01 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="0"
-SUHOSIN_PATCH="suhosin-patch-5.2.5_p20080206-0.9.6.2-gentoo.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://downloads.php.net/ilia/${MY_PHP_P/_rc/RC}.tar.bz2
- http://gentoo.longitekk.com/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2"
-S="${WORKDIR}/${MY_PHP_P/_rc/RC}"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit"
-RDEPEND="${DEPEND}"
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- PHP_EXTRA_BRANDING="RC${PV#*_rc}"
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-}
-
-src_compile() {
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.8-r1.ebuild b/dev-lang/php/php-5.2.8-r1.ebuild
deleted file mode 100644
index 02b32eb..0000000
--- a/dev-lang/php/php-5.2.8-r1.ebuild
+++ /dev/null
@@ -1,549 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.8-r1.ebuild,v 1.1 2008/12/18 23:23:32 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-SUHOSIN_PATCH="suhosin-patch-5.2.7-0.9.6.3.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://home.hoffie.info/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2
- ${SRC_URI}"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )"
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/pcre with USE=unicode"
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # bug 217392 (autconf-2.62 behavior changes)
- sed s:_GNU_SOURCE:__GLIBC__: -i ext/posix/posix.c
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt \
- tests/lang/bug45392.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.8-r2.ebuild b/dev-lang/php/php-5.2.8-r2.ebuild
deleted file mode 100644
index ab19e42..0000000
--- a/dev-lang/php/php-5.2.8-r2.ebuild
+++ /dev/null
@@ -1,546 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.8-r2.ebuild,v 1.1 2009/01/11 21:16:32 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-SUHOSIN_PATCH="suhosin-patch-5.2.8-0.9.6.3.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt \
- tests/lang/bug45392.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.8.ebuild b/dev-lang/php/php-5.2.8.ebuild
deleted file mode 100644
index b30f449..0000000
--- a/dev-lang/php/php-5.2.8.ebuild
+++ /dev/null
@@ -1,544 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.8.ebuild,v 1.1 2008/12/08 23:30:02 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-SUHOSIN_PATCH="suhosin-patch-5.2.7-0.9.6.3.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-SRC_URI="http://home.hoffie.info/php-patchset-${PV}-r${PHP_PATCHSET_REV}.tar.bz2
- ${SRC_URI}"
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )"
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # bug 217392 (autconf-2.62 behavior changes)
- sed s:_GNU_SOURCE:__GLIBC__: -i ext/posix/posix.c
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt \
- tests/lang/bug45392.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.9-r1.ebuild b/dev-lang/php/php-5.2.9-r1.ebuild
deleted file mode 100644
index 02db67e..0000000
--- a/dev-lang/php/php-5.2.9-r1.ebuild
+++ /dev/null
@@ -1,546 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.9-r1.ebuild,v 1.1 2009/04/10 10:25:55 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-SUHOSIN_PATCH="suhosin-patch-${PV}-0.9.7.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt \
- tests/lang/bug45392.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.9-r2.ebuild b/dev-lang/php/php-5.2.9-r2.ebuild
deleted file mode 100644
index 6c5eb87..0000000
--- a/dev-lang/php/php-5.2.9-r2.ebuild
+++ /dev/null
@@ -1,546 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.9-r2.ebuild,v 1.1 2009/04/16 18:28:43 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-SUHOSIN_PATCH="suhosin-patch-${PV}-0.9.7.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt \
- tests/lang/bug45392.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.2.9.ebuild b/dev-lang/php/php-5.2.9.ebuild
deleted file mode 100644
index 294978a..0000000
--- a/dev-lang/php/php-5.2.9.ebuild
+++ /dev/null
@@ -1,546 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.9.ebuild,v 1.1 2009/04/10 10:25:55 hoffie Exp $
-
-CGI_SAPI_USE="discard-path force-cgi-redirect"
-APACHE2_SAPI_USE="concurrentmodphp threads"
-IUSE="cli cgi ${CGI_SAPI_USE} ${APACHE2_SAPI_USE} fastbuild"
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-# NOTE: Portage doesn't support setting PROVIDE based on the USE flags
-# that have been enabled, so we have to PROVIDE everything for now
-# and hope for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-# php package settings
-SLOT="5"
-MY_PHP_PV="${PV}"
-MY_PHP_P="php-${MY_PHP_PV}"
-PHP_PACKAGE="1"
-
-# php patch settings, general
-PHP_PATCHSET_REV="${PR/r/}"
-SUHOSIN_PATCH="suhosin-patch-${PV}-0.9.7.patch.gz"
-MULTILIB_PATCH="${MY_PHP_PV}/opt/multilib-search-path.patch"
-# php patch settings, ebuild specific
-FASTBUILD_PATCH="${MY_PHP_PV}/opt/fastbuild.patch"
-CONCURRENTMODPHP_PATCH="${MY_PHP_PV}/opt/concurrent_apache_modules.patch"
-# kolab patch - http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/php/
-# bugs about this go to wrobel@gentoo.org
-KOLAB_PATCH="${MY_PHP_PV}/opt/kolab-imap-annotations.patch"
-
-inherit versionator php5_2-sapi apache-module
-
-# Suhosin patch support
-[[ -n "${SUHOSIN_PATCH}" ]] && SRC_URI="${SRC_URI} suhosin? ( http://gentoo.longitekk.com/${SUHOSIN_PATCH} )"
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI and Apache2 SAPIs."
-
-DEPEND="app-admin/php-toolkit
- imap? ( >=virtual/imap-c-client-2006k )
- pcre? ( >=dev-libs/libpcre-7.8 )
- xml? ( >=dev-libs/libxml2-2.7.2-r2 )
- xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )"
-
-RDEPEND="${DEPEND}"
-if [[ -n "${KOLAB_PATCH}" ]] ; then
- IUSE="${IUSE} kolab"
- DEPEND="${DEPEND}
- kolab? ( >=net-libs/c-client-2004g-r1 )"
-fi
-
-want_apache
-
-pkg_setup() {
- PHPCONFUTILS_AUTO_USE=""
-
- # Make sure the user has specified at least one SAPI
- einfo "Determining SAPI(s) to build"
- phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2
-
- # Threaded Apache2 support
- if use apache2 ; then
- has_apache_threads
- fi
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- ewarn
- ewarn "'concurrentmodphp' makes it possible to load multiple, differently"
- ewarn "versioned mod_php's into the same Apache instance. This is done with"
- ewarn "a few linker tricks and workarounds, and is not guaranteed to always"
- ewarn "work correctly, so use it at your own risk. Especially, do not use"
- ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones"
- ewarn "you may find in the Portage tree or the PHP Overlay!"
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'concurrentmodphp' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'concurrentmodphp', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- ebeep 5
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- ewarn
- ewarn "'fastbuild' attempts to build all SAPIs in a single pass."
- ewarn "This is an experimental feature, so please rebuild PHP"
- ewarn "without the 'fastbuild' USE flag if you experience"
- ewarn "any problems, and then reproduce any bugs before filing"
- ewarn "them in Gentoo's Bugzilla or bugs.php.net."
- ewarn "If you have conclusive evidence that a bug directly"
- ewarn "derives from 'fastbuild', please file a bug in"
- ewarn "Gentoo's Bugzilla only."
- ewarn
- fi
-
- if use pcre ; then
- built_with_use dev-libs/libpcre unicode || \
- die "Please rebuild dev-libs/libpcre with USE=unicode"
- fi
-
- php5_2-sapi_pkg_setup
-}
-
-php_determine_sapis() {
- # holds the list of sapis that we want to build
- PHPSAPIS=
-
- if use cli || phpconfutils_usecheck cli ; then
- PHPSAPIS="${PHPSAPIS} cli"
- fi
-
- if use cgi ; then
- PHPSAPIS="${PHPSAPIS} cgi"
- fi
-
- # note - apache SAPI comes after the simpler cli/cgi sapis
- if use apache2 ; then
- PHPSAPIS="${PHPSAPIS} apache${APACHE_VERSION}"
- fi
-}
-
-src_unpack() {
- if [[ "${PHP_PACKAGE}" == 1 ]] ; then
- unpack ${A}
- fi
-
- cd "${S}"
-
- # Concurrent PHP Apache2 modules support
- if use apache2 ; then
- if use concurrentmodphp ; then
- if [[ -n "${CONCURRENTMODPHP_PATCH}" ]] && [[ -f "${WORKDIR}/${CONCURRENTMODPHP_PATCH}" ]] ; then
- epatch "${WORKDIR}/${CONCURRENTMODPHP_PATCH}"
- else
- ewarn "There is no concurrent mod_php patch available for this PHP release yet!"
- fi
- fi
- fi
-
- # fastbuild support
- if use fastbuild ; then
- if [[ -n "${FASTBUILD_PATCH}" ]] && [[ -f "${WORKDIR}/${FASTBUILD_PATCH}" ]] ; then
- epatch "${WORKDIR}/${FASTBUILD_PATCH}"
- else
- ewarn "There is no fastbuild patch available for this PHP release yet!"
- fi
- fi
-
- # kolab support
- if [[ -n "${KOLAB_PATCH}" ]] ; then
- use kolab && epatch "${WORKDIR}/${KOLAB_PATCH}"
- fi
-
- # pretend to not have flex, bug 221357
- sed -re 's:( +)PHP_SUBST\(LEX\):\1LEX="exit 0;"\n\0:' -i acinclude.m4
-
- # Now let the eclass do the rest and regenerate the configure
- php5_2-sapi_src_unpack
-
- # Fix Makefile.global:test to consider the CGI SAPI if present
- if use cgi ; then
- sed -e "s|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\"|test \! -z \"\$(top_builddir)/php-cli\" \&\& test -x \"\$(top_builddir)/php-cli\" \&\& test \! -z \"\$(top_builddir)/php-cgi\" \&\& test -x \"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- sed -e "s|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\"|TEST_PHP_EXECUTABLE=\"\$(top_builddir)/php-cli\" TEST_PHP_CGI_EXECUTABLE=\"\$(top_builddir)/php-cgi\"|g" -i Makefile.global
- fi
-
- # try to fix some test cases which fail because of sandbox otherwise
- sed -e 's:/no/such/:.\0:' -i ext/standard/tests/file/005_error.phpt \
- ext/standard/tests/file/006_error.phpt \
- ext/standard/tests/file/touch.phpt
-
- # REMOVING BROKEN TESTS:
- # removing this test as it has been broken for ages and is not easily
- # fixable (depends on a lot of factors)
- rm ext/standard/tests/general_functions/phpinfo.phpt
-
- # never worked properly, no easy fix
- rm ext/iconv/tests/bug16069.phpt ext/iconv/tests/iconv_stream_filter.phpt
-
- # needs write access to /tmp and others
- rm ext/session/tests/session_save_path_variation5.phpt
-
- # new tests since 5.2.7 which have never been working for me
- rm ext/spl/tests/arrayObject___construct_basic4.phpt \
- ext/spl/tests/arrayObject___construct_basic5.phpt \
- ext/spl/tests/arrayObject_exchangeArray_basic3.phpt \
- ext/spl/tests/arrayObject_setFlags_basic1.phpt \
- tests/lang/bug45392.phpt
-
- # those might as well be related to suhosin
- rm ext/session/tests/session_decode_variation3.phpt \
- ext/session/tests/session_encode_variation8.phpt
-
- # missing skipif
- use reflection || \
- rm ext/standard/tests/directory/DirectoryClass_basic_001.phpt
-
- # sandbox-related (sandbox checks for permissions before even looking
- # at the fs, but the tests expect "No such file or directory"
- sed -e 's:/blah:./bla:' -i \
- ext/session/tests/session_save_path_variation{2,3}.phpt
- rm ext/standard/tests/file/rename_variation13.phpt
-
- # test passes, but run-tests.php claims failure
- rm ext/standard/tests/file/tempnam_variation4.phpt
-
- # these tests behave differently with suhosin enabled, adapting them...
- use suhosin && sed -e 's:File(\.\./):File(..):g' -i \
- tests/security/open_basedir*{.inc,.phpt}
-}
-
-src_compile() {
- # bug 217392 (autconf-2.62 behavior changes)
- export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
- export CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
- if use fastbuild && [[ -n "${FASTBUILD_PATCH}" ]] ; then
- src_compile_fastbuild
- else
- src_compile_normal
- fi
-}
-
-src_compile_fastbuild() {
- php_determine_sapis
-
- build_cli=0
- build_cgi=0
- build_apache2=0
- my_conf=""
-
- for x in ${PHPSAPIS} ; do
- case ${x} in
- cli)
- build_cli=1
- ;;
- cgi)
- build_cgi=1
- ;;
- apache2)
- build_apache2=1
- ;;
- esac
- done
-
- if [[ ${build_cli} = 1 ]] ; then
- my_conf="${my_conf} --enable-cli"
- else
- my_conf="${my_conf} --disable-cli"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- my_conf="${my_conf} --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- else
- my_conf="${my_conf} --disable-cgi"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- my_conf="${my_conf} --with-apxs2=/usr/sbin/apxs2"
-
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
-
- # Concurrent PHP Apache2 modules support
- if use concurrentmodphp ; then
- append-ldflags "-Wl,--version-script=${FILESDIR}/php5-ldvs"
- fi
- fi
-
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Now we know what we are building, build it
- php5_2-sapi_src_compile
-
- # To keep the separate php.ini files for each SAPI, we change the
- # build-defs.h and recompile
-
- if [[ ${build_cli} = 1 ]] ; then
- einfo
- einfo "Building CLI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cli-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cli-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cli/php || die "Unable to make CLI SAPI"
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- fi
-
- if [[ ${build_cgi} = 1 ]] ; then
- einfo
- einfo "Building CGI SAPI"
- einfo
-
- sed -e 's|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH "/etc/php/cgi-php5"|g;' -i main/build-defs.h
- sed -e 's|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR "/etc/php/cgi-php5/ext-active"|g;' -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make sapi/cgi/php-cgi || die "Unable to make CGI SAPI"
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- fi
-
- if [[ ${build_apache2} = 1 ]] ; then
- einfo
- einfo "Building apache${APACHE_VERSION} SAPI"
- einfo
-
- sed -e "s|^#define PHP_CONFIG_FILE_PATH.*|#define PHP_CONFIG_FILE_PATH \"/etc/php/apache${APACHE_VERSION}-php5\"|g;" -i main/build-defs.h
- sed -e "s|^#define PHP_CONFIG_FILE_SCAN_DIR.*|#define PHP_CONFIG_FILE_SCAN_DIR \"/etc/php/apache${APACHE_VERSION}-php5/ext-active\"|g;" -i main/build-defs.h
- for x in main/main.o main/main.lo main/php_ini.o main/php_ini.lo ; do
- [[ -f ${x} ]] && rm -f ${x}
- done
- make || die "Unable to make apache${APACHE_VERSION} SAPI"
- fi
-}
-
-src_compile_normal() {
- php_determine_sapis
-
- CLEAN_REQUIRED=0
- my_conf=""
-
- # 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}/php5-ldvs"
- fi
- fi
-
- for x in ${PHPSAPIS} ; do
- if use pcre || phpconfutils_usecheck pcre ; then
- myconf="${my_conf} --with-pcre-dir=/usr"
- phpconfutils_extension_with "pcre-regex" "pcre" 0 "/usr"
- fi
-
- # Support the Apache2 extras, they must be set globally for all
- # SAPIs to work correctly, especially for external PHP extensions
- if use apache2 ; then
- # Threaded Apache2 support
- if use threads ; then
- my_conf="${my_conf} --enable-maintainer-zts"
- ewarn "Enabling ZTS for Apache2 MPM"
- fi
- fi
-
- if [[ "${CLEAN_REQUIRED}" = 1 ]] ; then
- make clean
- fi
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- my_conf="${my_conf} --enable-cli --disable-cgi"
- php5_2-sapi_src_compile
- cp sapi/cli/php php-cli || die "Unable to copy CLI SAPI"
- ;;
- cgi)
- my_conf="${my_conf} --disable-cli --enable-cgi --enable-fastcgi"
- phpconfutils_extension_enable "discard-path" "discard-path" 0
- phpconfutils_extension_enable "force-cgi-redirect" "force-cgi-redirect" 0
- php5_2-sapi_src_compile
- cp sapi/cgi/php-cgi php-cgi || die "Unable to copy CGI SAPI"
- ;;
- apache2)
- my_conf="${my_conf} --disable-cli --with-apxs2=/usr/sbin/apxs2"
- php5_2-sapi_src_compile
- ;;
- esac
-
- CLEAN_REQUIRED=1
- my_conf=""
- done
-}
-
-src_install() {
- php_determine_sapis
-
- destdir=/usr/$(get_libdir)/php5
-
- # Let the eclass do the common work
- php5_2-sapi_src_install
-
- einfo
- einfo "Installing SAPI(s) ${PHPSAPIS}"
- einfo
-
- for x in ${PHPSAPIS} ; do
-
- PHPSAPI="${x}"
-
- case ${x} in
- cli)
- einfo "Installing CLI SAPI"
- into ${destdir}
- newbin php-cli php || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- cgi)
- einfo "Installing CGI SAPI"
- into ${destdir}
- dobin php-cgi || die "Unable to install ${x} sapi"
- php5_2-sapi_install_ini
- ;;
- apache2)
- einfo "Installing Apache${APACHE_VERSION} SAPI"
- make INSTALL_ROOT="${D}" install-sapi || die "Unable to install ${x} SAPI"
- if use concurrentmodphp ; then
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5-concurrent (70_mod_php5_concurr.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5_concurr.conf-apache2-r1" "70_mod_php5_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}/php5-ldvs"
-
- # Redefine the extension dir to have the modphp suffix
- PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`-versioned"
- else
- einfo "Installing Apache${APACHE_VERSION} config file for PHP5 (70_mod_php5.conf)"
- insinto ${APACHE_MODULES_CONFDIR}
- newins "${FILESDIR}/70_mod_php5.conf-apache2-r1" "70_mod_php5.conf"
- fi
- php5_2-sapi_install_ini
- ;;
- esac
- done
-
- # Install env.d files
- newenvd "${FILESDIR}/20php5-envd" "20php5"
- sed -e "s|/lib/|/$(get_libdir)/|g" -i "${D}/etc/env.d/20php5"
-}
-
-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- if use concurrentmodphp ; then
- APACHE2_MOD_CONF="70_mod_php5_concurr"
- else
- APACHE2_MOD_CONF="70_mod_php5"
- fi
- apache-module_pkg_postinst
- fi
-
- # Update Apache2 to use mod_php
- if use apache2 ; then
- "${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 2 ]] ; then
- php-select apache2 php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "Apache2 is configured to load a different version of PHP."
- ewarn "To make Apache2 use PHP v5, use php-select:"
- ewarn
- ewarn " php-select apache2 php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cli
- if use cli || phpconfutils_usecheck cli ; then
- "${ROOT}/usr/sbin/php-select" -t php php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php links to a different version of PHP."
- ewarn "To make /usr/bin/php point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-cgi
- if use cgi ; then
- "${ROOT}/usr/sbin/php-select" -t php-cgi php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
- php-select php-cgi php5
- elif [[ ${exitStatus} == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-cgi links to a different version of PHP."
- ewarn "To make /usr/bin/php-cgi point to PHP v5, use php-select:"
- ewarn
- ewarn " php-select php-cgi php5"
- ewarn
- fi
- fi
-
- # Create the symlinks for php-devel
- "${ROOT}/usr/sbin/php-select" -t php-devel php5 > /dev/null 2>&1
- exitStatus=$?
- if [[ $exitStatus == 5 ]] ; then
- php-select php-devel php5
- elif [[ $exitStatus == 4 ]] ; then
- ewarn
- ewarn "/usr/bin/php-config and/or /usr/bin/phpize are linked to a"
- ewarn "different version of PHP. To make them point to PHP v5, use"
- ewarn "php-select:"
- ewarn
- ewarn " php-select php-devel php5"
- ewarn
- fi
-
- php5_2-sapi_pkg_postinst
-}
-
-src_test() {
- vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
- if [[ ! -x "${S}"/php-cli ]]; then
- ewarn "Running the php test suite requires USE=cli"
- return
- fi
-
- export TEST_PHP_EXECUTABLE="${S}"/php-cli
- if [[ -x "${S}"/php-cgi ]]; then
- export TEST_PHP_CGI_EXECUTABLE="${S}"/php-cgi
- fi
- REPORT_EXIT_STATUS=1 "${S}"/php-cli -n "${S}"/run-tests.php -n
-
- if [[ $? != 0 ]] ; then
- eerror "Not all tests were successful!"
- fi
-}
diff --git a/dev-lang/php/php-5.3.10-r1.ebuild b/dev-lang/php/php-5.3.10-r1.ebuild
deleted file mode 100644
index 27d1f94..0000000
--- a/dev-lang/php/php-5.3.10-r1.ebuild
+++ /dev/null
@@ -1,390 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.3.10-r1.ebuild,v 1.1 2012/02/06 13:41:27 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.9-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="1"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="olemarkus"
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.10-r2.ebuild b/dev-lang/php/php-5.3.10-r2.ebuild
deleted file mode 100644
index 595f362..0000000
--- a/dev-lang/php/php-5.3.10-r2.ebuild
+++ /dev/null
@@ -1,390 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.3.10-r2.ebuild,v 1.1 2012/02/06 21:24:03 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.9-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="2"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="olemarkus"
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.10.ebuild b/dev-lang/php/php-5.3.10.ebuild
deleted file mode 100644
index 80c8c36..0000000
--- a/dev-lang/php/php-5.3.10.ebuild
+++ /dev/null
@@ -1,390 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.3.10.ebuild,v 1.1 2012/02/02 22:29:16 mabi Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.9-0.9.10-gentoo"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="gentoo"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="olemarkus"
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.11.ebuild b/dev-lang/php/php-5.3.11.ebuild
deleted file mode 100644
index d13b7e1..0000000
--- a/dev-lang/php/php-5.3.11.ebuild
+++ /dev/null
@@ -1,392 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.3.11.ebuild,v 1.1 2012/04/26 10:22:22 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-RESTRICT="mirror"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.9-0.9.10-gentoo"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${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_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="olemarkus"
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.11_rc2.ebuild b/dev-lang/php/php-5.3.11_rc2.ebuild
deleted file mode 100644
index 835632a..0000000
--- a/dev-lang/php/php-5.3.11_rc2.ebuild
+++ /dev/null
@@ -1,392 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.3.11_rc2.ebuild,v 1.1 2012/04/13 06:43:50 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-RESTRICT="mirror"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.9-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="olemarkus"
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.12.ebuild b/dev-lang/php/php-5.3.12.ebuild
deleted file mode 100644
index 1dff1a9..0000000
--- a/dev-lang/php/php-5.3.12.ebuild
+++ /dev/null
@@ -1,392 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.3.12.ebuild,v 1.1 2012/05/03 20:15:23 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-RESTRICT="mirror"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.9-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${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_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="olemarkus"
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.13.ebuild b/dev-lang/php/php-5.3.13.ebuild
deleted file mode 100644
index fc1618d..0000000
--- a/dev-lang/php/php-5.3.13.ebuild
+++ /dev/null
@@ -1,392 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.13.ebuild,v 1.1 2012/05/08 17:22:11 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-RESTRICT="mirror"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.9-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${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_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="olemarkus"
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.14.ebuild b/dev-lang/php/php-5.3.14.ebuild
deleted file mode 100644
index 37a8ba4..0000000
--- a/dev-lang/php/php-5.3.14.ebuild
+++ /dev/null
@@ -1,392 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.14.ebuild,v 1.1 2012/06/14 22:10:11 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-RESTRICT="mirror"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.9-0.9.10"
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
-
-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}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${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_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="olemarkus"
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.14_rc2.ebuild b/dev-lang/php/php-5.3.14_rc2.ebuild
deleted file mode 100644
index 73a1d8d..0000000
--- a/dev-lang/php/php-5.3.14_rc2.ebuild
+++ /dev/null
@@ -1,392 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.14_rc2.ebuild,v 1.1 2012/06/05 12:34:35 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.9-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${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"
-[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="olemarkus"
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- <dev-libs/libpcre-8.30
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.2.ebuild b/dev-lang/php/php-5.3.2.ebuild
deleted file mode 100644
index a6d1202..0000000
--- a/dev-lang/php/php-5.3.2.ebuild
+++ /dev/null
@@ -1,338 +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/Attic/php-5.3.2.ebuild,v 1.1 2010/05/27 23:05:04 mabi Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid sybase-ct"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-PHP_PATCHSET=""
-SUHOSIN_VERSION="$PV-0.9.9.1"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~amd64 ~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}"
-PHP_RELEASE="php"
-PHP_P="${PN}-${PHP_PV}"
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="${PHP_PATCHSET:-${PR/r/}}";
-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;
-
-SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
-SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
-
-SRC_URI="
- ${PHP_SRC_URI}
- ${PHP_PATCHSET_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-
-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:
-IUSE="${IUSE}
- ${SAPIS}
- concurrentmodphp threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase fileinfo filter firebird
- flatfile ftp gd gd-external gdbm gmp hash iconv imap inifile
- interbase intl iodbc ipv6 json kerberos ldap ldap-sasl libedit
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo phar pic posix postgres qdbm
- readline recode sapdb session sharedext sharedmem
- simplexml snmp soap sockets solid spell sqlite sqlite3 ssl suhosin
- sybase-ct sysvipc tidy tokenizer truetype unicode wddx
- xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
-
-DEPEND="app-admin/php-toolkit
- >=dev-libs/libpcre-7.9[unicode]
- adabas? ( >=dev-db/unixODBC-1.8.13 )
- apache2? ( !threads? ( 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? (
- >=media-libs/jpeg-6b
- 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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- >=media-libs/jpeg-6b
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- firebird? ( dev-db/firebird )
- gd? ( >=media-libs/jpeg-6b 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=]
- virtual/imap-c-client[kolab=]
- )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc >=dev-db/unixODBC-1.8.13 )
- 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 ) )
- mbstring? ( dev-libs/oniguruma )
- mcve? ( >=dev-libs/openssl-0.9.7 )
- mssql? ( dev-db/freetds )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- nls? ( sys-devel/gettext )
- oci8-instant-client? ( dev-db/oracle-instantclient-basic )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- postgres? (
- || (
- >=dev-db/postgresql-base-7.1[threads=]
- (
- || (
- <dev-db/libpq-8
- >=dev-db/libpq-8[threads=]
- )
- )
- )
- )
- 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* ) )
- sqlite3? ( =dev-db/sqlite-3* )
- ssl? ( >=dev-libs/openssl-0.9.7 )
- tidy? ( app-text/htmltidy )
- truetype? (
- =media-libs/freetype-2*
- >=media-libs/t1lib-5.0.0
- !gd? ( !gd-external? (
- >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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
- >=media-libs/jpeg-6b
- 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] )
- mcve? ( $php[ssl] )
- 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] )
- iodbc? ( $php[odbc] )
- sapdb? ( $php[odbc] )
- solid? ( $php[odbc] )
- kolab? ( $php[imap] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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] ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !dev-php${PHP_MV}/pecl-fileinfo )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-DEPEND="${DEPEND}
- >=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 )
- suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php virtual/httpd-php"
-
-SLOT="${PHP_MV}";
-S="${WORKDIR}/${PHP_P}"
-
-PHP_INI_FILE="php.ini"
-PHP_INI_UPSTREAM="php.ini-production"
-
-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 v1
-
-src_prepare() { eblit-run src_prepare v1 ; }
-src_configure() { eblit-run src_configure v1 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v2 ; }
-src_test() { eblit-run src_test v1 ; }
-
-eblit-pkg pkg_postinst v1
diff --git a/dev-lang/php/php-5.3.3-r1.ebuild b/dev-lang/php/php-5.3.3-r1.ebuild
deleted file mode 100644
index da91289..0000000
--- a/dev-lang/php/php-5.3.3-r1.ebuild
+++ /dev/null
@@ -1,337 +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/Attic/php-5.3.3-r1.ebuild,v 1.1 2010/08/08 20:32:23 mabi Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-PHP_PATCHSET="2"
-SUHOSIN_VERSION="${PV}-0.9.10"
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~hppa ~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}"
- ;;
- "ntnu")
- echo "http://folk.ntnu.no/olemarku/gentoo/${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_PATCHSET_LOC="gentoo"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="${PHP_PATCHSET:-${PR/r/}}"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm embed apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- concurrentmodphp threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl suhosin
- sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
- xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
-
-DEPEND="app-admin/php-toolkit
- >=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? (
- >=media-libs/jpeg-6b
- 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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- >=media-libs/jpeg-6b
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- firebird? ( dev-db/firebird )
- fpm? ( >=dev-libs/libevent-1.4.12 )
- gd? ( >=media-libs/jpeg-6b 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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* ) )
- sqlite3? ( =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? (
- >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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
- >=media-libs/jpeg-6b
- 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] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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] ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !dev-php${PHP_MV}/pecl-fileinfo )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-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 )
- suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-SLOT="${PHP_MV}"
-S="${WORKDIR}/${PHP_P}"
-
-PHP_INI_FILE="php.ini"
-PHP_INI_UPSTREAM="php.ini-production"
-
-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 v1
-
-src_prepare() { eblit-run src_prepare v1 ; }
-src_configure() { eblit-run src_configure v1 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v1 ; }
-src_test() { eblit-run src_test v1 ; }
-
-eblit-pkg pkg_postinst v1
diff --git a/dev-lang/php/php-5.3.3-r2.ebuild b/dev-lang/php/php-5.3.3-r2.ebuild
deleted file mode 100644
index 3604257..0000000
--- a/dev-lang/php/php-5.3.3-r2.ebuild
+++ /dev/null
@@ -1,337 +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/Attic/php-5.3.3-r2.ebuild,v 1.1 2010/10/08 18:25:10 olemarkus Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-PHP_PATCHSET="2"
-SUHOSIN_VERSION="${PV}-0.9.10"
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~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}"
- ;;
- "ntnu")
- echo "http://folk.ntnu.no/olemarku/gentoo/${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_PATCHSET_LOC="gentoo"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="${PHP_PATCHSET:-${PR/r/}}"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm 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"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl suhosin
- sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
- xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
-
-DEPEND="!dev-lang/php:5
- app-admin/eselect-php
- >=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? (
- >=media-libs/jpeg-6b
- 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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- >=media-libs/jpeg-6b
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- firebird? ( dev-db/firebird )
- fpm? ( >=dev-libs/libevent-1.4.12 )
- gd? ( >=media-libs/jpeg-6b 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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* ) )
- sqlite3? ( =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? (
- >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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
- >=media-libs/jpeg-6b
- 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] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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] ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !dev-php${PHP_MV}/pecl-fileinfo )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-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 )
- suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-PHP_INI_FILE="php.ini"
-PHP_INI_UPSTREAM="php.ini-production"
-
-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() { eblit-run src_prepare v2 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.3-r3.ebuild b/dev-lang/php/php-5.3.3-r3.ebuild
deleted file mode 100644
index 1d8d0a2..0000000
--- a/dev-lang/php/php-5.3.3-r3.ebuild
+++ /dev/null
@@ -1,346 +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/Attic/php-5.3.3-r3.ebuild,v 1.1 2010/10/31 19:01:55 olemarkus Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase 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.10"
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~amd64 ~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}"
- ;;
- "ntnu")
- echo "http://folk.ntnu.no/olemarku/gentoo/${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_PATCHSET_LOC="gentoo"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="3"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm 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"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl suhosin
- sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
- xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
-
-DEPEND="!dev-lang/php:5
- >=app-admin/eselect-php-0.6
- >=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? (
- >=media-libs/jpeg-6b
- 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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- >=media-libs/jpeg-6b
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- firebird? ( dev-db/firebird )
- fpm? ( >=dev-libs/libevent-1.4.12 )
- gd? ( >=media-libs/jpeg-6b 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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* ) )
- sqlite3? ( =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? (
- >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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
- >=media-libs/jpeg-6b
- 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] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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] ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !dev-php${PHP_MV}/pecl-fileinfo )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-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 )
- suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v2 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.3.ebuild b/dev-lang/php/php-5.3.3.ebuild
deleted file mode 100644
index 867e89d..0000000
--- a/dev-lang/php/php-5.3.3.ebuild
+++ /dev/null
@@ -1,335 +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/Attic/php-5.3.3.ebuild,v 1.1 2010/07/26 12:26:41 mabi Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-PHP_PATCHSET="1"
-SUHOSIN_VERSION="${PV}-0.9.10"
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~hppa ~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}"
-PHP_RELEASE="php"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="gentoo"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="${PHP_PATCHSET:-${PR/r/}}"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm embed apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- concurrentmodphp threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl suhosin
- sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
- xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
-
-DEPEND="app-admin/php-toolkit
- >=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? (
- >=media-libs/jpeg-6b
- 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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- >=media-libs/jpeg-6b
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- firebird? ( dev-db/firebird )
- fpm? ( >=dev-libs/libevent-1.4.12 )
- gd? ( >=media-libs/jpeg-6b 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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* ) )
- sqlite3? ( =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? (
- >=media-libs/jpeg-6b media-libs/libpng sys-libs/zlib ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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
- >=media-libs/jpeg-6b
- 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] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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] ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !dev-php${PHP_MV}/pecl-fileinfo )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-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 )
- suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-# see bug #319623 and new style virtual/httpd-php
-PROVIDE="virtual/php"
-
-SLOT="${PHP_MV}"
-S="${WORKDIR}/${PHP_P}"
-
-PHP_INI_FILE="php.ini"
-PHP_INI_UPSTREAM="php.ini-production"
-
-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 v1
-
-src_prepare() { eblit-run src_prepare v1 ; }
-src_configure() { eblit-run src_configure v1 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v1 ; }
-src_test() { eblit-run src_test v1 ; }
-
-eblit-pkg pkg_postinst v1
diff --git a/dev-lang/php/php-5.3.4-r1.ebuild b/dev-lang/php/php-5.3.4-r1.ebuild
deleted file mode 100644
index 58e2751..0000000
--- a/dev-lang/php/php-5.3.4-r1.ebuild
+++ /dev/null
@@ -1,353 +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/Attic/php-5.3.4-r1.ebuild,v 1.1 2011/01/05 11:23:16 mabi Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase 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.10"
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~amd64 ~arm ~hppa ~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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="gentoo"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm 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"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- firebird? ( dev-db/firebird )
- fpm? ( >=dev-libs/libevent-1.4.12 )
- 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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* ) )
- sqlite3? ( =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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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] )
- 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] )
- mhash? ( $php[hash] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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? ( !fpm? ( !apache2? ( !embed? ( $php[cli] ) ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !<dev-php${PHP_MV}/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && DEPEND="${DEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v2 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.4.ebuild b/dev-lang/php/php-5.3.4.ebuild
deleted file mode 100644
index 689f99b..0000000
--- a/dev-lang/php/php-5.3.4.ebuild
+++ /dev/null
@@ -1,353 +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/Attic/php-5.3.4.ebuild,v 1.1 2010/12/19 14:24:49 mabi Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-#SUHOSIN_VERSION="${PV}-0.9.10"
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~amd64 ~arm ~hppa ~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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="gentoo"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm 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"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6
- >=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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- firebird? ( dev-db/firebird )
- fpm? ( >=dev-libs/libevent-1.4.12 )
- 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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* ) )
- sqlite3? ( =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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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] )
- 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] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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] ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !<dev-php${PHP_MV}/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-
-[[ -n $SUHOSIN_VERSION ]] && DEPEND="${DEPEND} 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 )"
-
-[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v2 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.5-r1.ebuild b/dev-lang/php/php-5.3.5-r1.ebuild
deleted file mode 100644
index a6acfc5..0000000
--- a/dev-lang/php/php-5.3.5-r1.ebuild
+++ /dev/null
@@ -1,353 +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/Attic/php-5.3.5-r1.ebuild,v 1.1 2011/01/29 22:05:22 mabi Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION="5.3.4-0.9.10"
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="gentoo"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="1"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm 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"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- firebird? ( dev-db/firebird )
- fpm? ( >=dev-libs/libevent-1.4.12 )
- 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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* ) )
- sqlite3? ( =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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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] )
- 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] )
- mhash? ( $php[hash] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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? ( !fpm? ( !apache2? ( !embed? ( $php[cli] ) ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !<dev-php${PHP_MV}/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v2 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.5.ebuild b/dev-lang/php/php-5.3.5.ebuild
deleted file mode 100644
index af83429..0000000
--- a/dev-lang/php/php-5.3.5.ebuild
+++ /dev/null
@@ -1,353 +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/Attic/php-5.3.5.ebuild,v 1.1 2011/01/06 23:35:43 mabi Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION="5.3.4-0.9.10"
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="gentoo"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm 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"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- firebird? ( dev-db/firebird )
- fpm? ( >=dev-libs/libevent-1.4.12 )
- 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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* ) )
- sqlite3? ( =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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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] )
- 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] )
- mhash? ( $php[hash] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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? ( !fpm? ( !apache2? ( !embed? ( $php[cli] ) ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !<dev-php${PHP_MV}/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && DEPEND="${DEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v2 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.6-r1.ebuild b/dev-lang/php/php-5.3.6-r1.ebuild
deleted file mode 100644
index 49beeaf..0000000
--- a/dev-lang/php/php-5.3.6-r1.ebuild
+++ /dev/null
@@ -1,351 +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/Attic/php-5.3.6-r1.ebuild,v 1.1 2011/04/19 16:44:56 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.11[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.4 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.4 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.6.ebuild b/dev-lang/php/php-5.3.6.ebuild
deleted file mode 100644
index e250255..0000000
--- a/dev-lang/php/php-5.3.6.ebuild
+++ /dev/null
@@ -1,349 +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/Attic/php-5.3.6.ebuild,v 1.1 2011/03/17 16:36:51 olemarkus Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.11[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.4 ) )
- sqlite3? ( =dev-db/sqlite-3.7.4 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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] )
- 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] )
- mhash? ( $php[hash] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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? ( !fpm? ( !apache2? ( !embed? ( $php[cli] ) ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !<dev-php${PHP_MV}/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.6_rc1.ebuild b/dev-lang/php/php-5.3.6_rc1.ebuild
deleted file mode 100644
index 393f1a3..0000000
--- a/dev-lang/php/php-5.3.6_rc1.ebuild
+++ /dev/null
@@ -1,355 +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/Attic/php-5.3.6_rc1.ebuild,v 1.1 2011/02/18 09:18:38 olemarkus Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm 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"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- firebird? ( dev-db/firebird )
- fpm? ( >=dev-libs/libevent-1.4.12 )
- 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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* ) )
- sqlite3? ( =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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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] )
- 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] )
- mhash? ( $php[hash] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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? ( !fpm? ( !apache2? ( !embed? ( $php[cli] ) ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !<dev-php${PHP_MV}/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v2 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.6_rc2.ebuild b/dev-lang/php/php-5.3.6_rc2.ebuild
deleted file mode 100644
index f8b6cd4..0000000
--- a/dev-lang/php/php-5.3.6_rc2.ebuild
+++ /dev/null
@@ -1,354 +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/Attic/php-5.3.6_rc2.ebuild,v 1.1 2011/03/03 15:44:11 olemarkus Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm 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"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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* ) )
- sqlite3? ( =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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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] )
- 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] )
- mhash? ( $php[hash] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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? ( !fpm? ( !apache2? ( !embed? ( $php[cli] ) ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !<dev-php${PHP_MV}/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v2 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.6_rc3.ebuild b/dev-lang/php/php-5.3.6_rc3.ebuild
deleted file mode 100644
index 2400a13..0000000
--- a/dev-lang/php/php-5.3.6_rc3.ebuild
+++ /dev/null
@@ -1,354 +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/Attic/php-5.3.6_rc3.ebuild,v 1.1 2011/03/10 18:58:47 olemarkus Exp $
-
-EAPI=2
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="cli cgi fpm 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"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.11[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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 )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.4 ) )
- sqlite3? ( =dev-db/sqlite-3.7.4 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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] )
- 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] )
- mhash? ( $php[hash] )
- phar? ( $php[hash] )
- mysqlnd? ( || (
- $php[mysql]
- $php[mysqli]
- $php[pdo]
- ) )
-
- 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? ( !fpm? ( !apache2? ( !embed? ( $php[cli] ) ) ) ) )
-
- enchant? ( !dev-php${PHP_MV}/pecl-enchant )
- fileinfo? ( !<dev-php${PHP_MV}/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php${PHP_MV}/pecl-filter )
- json? ( !dev-php${PHP_MV}/pecl-json )
- phar? ( !dev-php${PHP_MV}/pecl-phar )
- zip? ( !dev-php${PHP_MV}/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Portage doesn't support setting PROVIDE based on the USE flags that
-# have been enabled, so we have to PROVIDE everything for now and hope
-# for the best
-PROVIDE="virtual/php"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v2 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.7.ebuild b/dev-lang/php/php-5.3.7.ebuild
deleted file mode 100644
index 19a2654..0000000
--- a/dev-lang/php/php-5.3.7.ebuild
+++ /dev/null
@@ -1,354 +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/Attic/php-5.3.7.ebuild,v 1.1 2011/08/21 13:58:36 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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/ilia/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.7_rc1.ebuild b/dev-lang/php/php-5.3.7_rc1.ebuild
deleted file mode 100644
index 8fb0df7..0000000
--- a/dev-lang/php/php-5.3.7_rc1.ebuild
+++ /dev/null
@@ -1,351 +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/Attic/php-5.3.7_rc1.ebuild,v 1.1 2011/06/17 10:03:02 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.6.3 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.7_rc2.ebuild b/dev-lang/php/php-5.3.7_rc2.ebuild
deleted file mode 100644
index 3869fdb..0000000
--- a/dev-lang/php/php-5.3.7_rc2.ebuild
+++ /dev/null
@@ -1,351 +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/Attic/php-5.3.7_rc2.ebuild,v 1.1 2011/07/01 11:45:01 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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/ilia/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.6.3 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.7_rc3.ebuild b/dev-lang/php/php-5.3.7_rc3.ebuild
deleted file mode 100644
index 78f1403..0000000
--- a/dev-lang/php/php-5.3.7_rc3.ebuild
+++ /dev/null
@@ -1,354 +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/Attic/php-5.3.7_rc3.ebuild,v 1.1 2011/07/23 10:14:46 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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/ilia/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.6.3 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.7_rc5.ebuild b/dev-lang/php/php-5.3.7_rc5.ebuild
deleted file mode 100644
index 7f86776..0000000
--- a/dev-lang/php/php-5.3.7_rc5.ebuild
+++ /dev/null
@@ -1,354 +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/Attic/php-5.3.7_rc5.ebuild,v 1.1 2011/08/12 07:40:09 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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/ilia/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.8.ebuild b/dev-lang/php/php-5.3.8.ebuild
deleted file mode 100644
index 6250631..0000000
--- a/dev-lang/php/php-5.3.8.ebuild
+++ /dev/null
@@ -1,354 +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/Attic/php-5.3.8.ebuild,v 1.1 2011/08/24 07:08:30 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION="5.3.7-0.9.10"
-FPM_VERSION="builtin"
-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/ilia/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.3.9.ebuild b/dev-lang/php/php-5.3.9.ebuild
deleted file mode 100644
index a748deb..0000000
--- a/dev-lang/php/php-5.3.9.ebuild
+++ /dev/null
@@ -1,390 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.3.9.ebuild,v 1.1 2012/01/11 06:35:28 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.7-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.9_rc1.ebuild b/dev-lang/php/php-5.3.9_rc1.ebuild
deleted file mode 100644
index 320b4dd..0000000
--- a/dev-lang/php/php-5.3.9_rc1.ebuild
+++ /dev/null
@@ -1,415 +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/Attic/php-5.3.9_rc1.ebuild,v 1.1 2011/11/04 10:21:20 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION="5.3.7-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v2 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v2 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.9_rc2.ebuild b/dev-lang/php/php-5.3.9_rc2.ebuild
deleted file mode 100644
index eea2012..0000000
--- a/dev-lang/php/php-5.3.9_rc2.ebuild
+++ /dev/null
@@ -1,414 +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/Attic/php-5.3.9_rc2.ebuild,v 1.1 2011/11/25 09:10:47 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION="5.3.7-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v2 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v2 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.9_rc3.ebuild b/dev-lang/php/php-5.3.9_rc3.ebuild
deleted file mode 100644
index 66a189e..0000000
--- a/dev-lang/php/php-5.3.9_rc3.ebuild
+++ /dev/null
@@ -1,397 +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/Attic/php-5.3.9_rc3.ebuild,v 1.1 2011/12/16 09:02:43 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.7-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[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? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- dbmaker? ( >=dev-db/unixODBC-1.8.13 )
- empress? ( >=dev-db/unixODBC-1.8.13 )
- empress-bcs? ( >=dev-db/unixODBC-1.8.13 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- birdstep? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.3.9_rc4.ebuild b/dev-lang/php/php-5.3.9_rc4.ebuild
deleted file mode 100644
index 1f0b470..0000000
--- a/dev-lang/php/php-5.3.9_rc4.ebuild
+++ /dev/null
@@ -1,390 +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/Attic/php-5.3.9_rc4.ebuild,v 1.1 2011/12/24 08:54:00 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION="5.3.7-0.9.10"
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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-pre"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
- 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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-RDEPEND="${DEPEND}"
-
-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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 "v2"
- 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 v3
-
-src_prepare() { eblit-run src_prepare v3 ; }
-src_configure() { eblit-run src_configure v53 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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
-}
diff --git a/dev-lang/php/php-5.4.0.ebuild b/dev-lang/php/php-5.4.0.ebuild
deleted file mode 100644
index 4630bb7..0000000
--- a/dev-lang/php/php-5.4.0.ebuild
+++ /dev/null
@@ -1,382 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.4.0.ebuild,v 1.1 2012/03/01 21:51:51 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-SLOT="$(get_version_component_range 1-2)"
-
-# 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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="1"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.0_alpha1.ebuild b/dev-lang/php/php-5.4.0_alpha1.ebuild
deleted file mode 100644
index 805ef57..0000000
--- a/dev-lang/php/php-5.4.0_alpha1.ebuild
+++ /dev/null
@@ -1,330 +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/Attic/php-5.4.0_alpha1.ebuild,v 1.1 2011/06/29 06:38:38 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PV/_alpha/alpha}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedext sharedmem
- +simplexml snmp soap sockets spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- 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? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.6.3 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v3 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.4.0_alpha3.ebuild b/dev-lang/php/php-5.4.0_alpha3.ebuild
deleted file mode 100644
index 840d933..0000000
--- a/dev-lang/php/php-5.4.0_alpha3.ebuild
+++ /dev/null
@@ -1,328 +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/Attic/php-5.4.0_alpha3.ebuild,v 1.1 2011/08/08 16:15:47 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PV/_alpha/alpha}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v3 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
diff --git a/dev-lang/php/php-5.4.0_beta1.ebuild b/dev-lang/php/php-5.4.0_beta1.ebuild
deleted file mode 100644
index 6cf1a08..0000000
--- a/dev-lang/php/php-5.4.0_beta1.ebuild
+++ /dev/null
@@ -1,329 +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/Attic/php-5.4.0_beta1.ebuild,v 1.1 2011/09/16 07:04:41 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PV/_alpha/alpha}"
-PHP_PV="${PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v3 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
diff --git a/dev-lang/php/php-5.4.0_beta2.ebuild b/dev-lang/php/php-5.4.0_beta2.ebuild
deleted file mode 100644
index 07c52c9..0000000
--- a/dev-lang/php/php-5.4.0_beta2.ebuild
+++ /dev/null
@@ -1,329 +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/Attic/php-5.4.0_beta2.ebuild,v 1.1 2011/10/20 08:27:33 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PV/_alpha/alpha}"
-PHP_PV="${PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v3 ; }
-src_compile() { eblit-run src_compile v1 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
diff --git a/dev-lang/php/php-5.4.0_pre201104301030.ebuild b/dev-lang/php/php-5.4.0_pre201104301030.ebuild
deleted file mode 100644
index 653ff7c..0000000
--- a/dev-lang/php/php-5.4.0_pre201104301030.ebuild
+++ /dev/null
@@ -1,354 +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/Attic/php-5.4.0_pre201104301030.ebuild,v 1.1 2011/05/01 20:15:53 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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="$(get_version_component_range 4 )"
-PHP_PV="${PHP_PV/pre/trunk-}"
-
-PHP_RELEASE="olemarkus"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}
- "
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="5.4"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.11[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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.7.4 ) )
- sqlite3? ( >=dev-db/sqlite-3.7.4 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare snapshots ; }
-src_configure() { eblit-run src_configure v2 ; }
-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 ; }
diff --git a/dev-lang/php/php-5.4.0_pre201105151030.ebuild b/dev-lang/php/php-5.4.0_pre201105151030.ebuild
deleted file mode 100644
index 9de74a8..0000000
--- a/dev-lang/php/php-5.4.0_pre201105151030.ebuild
+++ /dev/null
@@ -1,353 +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/Attic/php-5.4.0_pre201105151030.ebuild,v 1.1 2011/05/15 19:17:23 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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="$(get_version_component_range 4 )"
-PHP_PV="${PHP_PV/pre/trunk-}"
-
-PHP_RELEASE="olemarkus"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}
- "
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="5.4"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.11[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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-3.7.4 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare snapshots ; }
-src_configure() { eblit-run src_configure snapshots ; }
-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 ; }
diff --git a/dev-lang/php/php-5.4.0_pre201105211430.ebuild b/dev-lang/php/php-5.4.0_pre201105211430.ebuild
deleted file mode 100644
index 5e96f3c..0000000
--- a/dev-lang/php/php-5.4.0_pre201105211430.ebuild
+++ /dev/null
@@ -1,352 +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/Attic/php-5.4.0_pre201105211430.ebuild,v 1.1 2011/05/22 07:17:51 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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/.0_pre/-}"
-
-PHP_RELEASE="olemarkus"
-PHP_P="${PN}${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}
- "
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="5.4"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.11[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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-3.7.4 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare snapshots ; }
-src_configure() { eblit-run src_configure snapshots ; }
-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 ; }
diff --git a/dev-lang/php/php-5.4.0_rc1.ebuild b/dev-lang/php/php-5.4.0_rc1.ebuild
deleted file mode 100644
index 1bedf7d..0000000
--- a/dev-lang/php/php-5.4.0_rc1.ebuild
+++ /dev/null
@@ -1,332 +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/Attic/php-5.4.0_rc1.ebuild,v 1.1 2011/11/11 13:14:36 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v3 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
diff --git a/dev-lang/php/php-5.4.0_rc2.ebuild b/dev-lang/php/php-5.4.0_rc2.ebuild
deleted file mode 100644
index 29e27b2..0000000
--- a/dev-lang/php/php-5.4.0_rc2.ebuild
+++ /dev/null
@@ -1,332 +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/Attic/php-5.4.0_rc2.ebuild,v 1.1 2011/11/25 09:10:47 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v3 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
diff --git a/dev-lang/php/php-5.4.0_rc3.ebuild b/dev-lang/php/php-5.4.0_rc3.ebuild
deleted file mode 100644
index d8fc810..0000000
--- a/dev-lang/php/php-5.4.0_rc3.ebuild
+++ /dev/null
@@ -1,332 +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/Attic/php-5.4.0_rc3.ebuild,v 1.1 2011/12/09 09:45:13 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v3 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
diff --git a/dev-lang/php/php-5.4.0_rc4.ebuild b/dev-lang/php/php-5.4.0_rc4.ebuild
deleted file mode 100644
index 06faff6..0000000
--- a/dev-lang/php/php-5.4.0_rc4.ebuild
+++ /dev/null
@@ -1,390 +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/Attic/php-5.4.0_rc4.ebuild,v 1.1 2011/12/24 08:54:00 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php/pecl-enchant )
- fileinfo? ( !<dev-php/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php/pecl-filter )
- json? ( !dev-php/pecl-json )
- phar? ( !dev-php/pecl-phar )
- zip? ( !dev-php/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.0_rc5.ebuild b/dev-lang/php/php-5.4.0_rc5.ebuild
deleted file mode 100644
index e55e75b..0000000
--- a/dev-lang/php/php-5.4.0_rc5.ebuild
+++ /dev/null
@@ -1,390 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.4.0_rc5.ebuild,v 1.1 2012/01/06 20:54:59 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php/pecl-enchant )
- fileinfo? ( !<dev-php/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php/pecl-filter )
- json? ( !dev-php/pecl-json )
- phar? ( !dev-php/pecl-phar )
- zip? ( !dev-php/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.0_rc6.ebuild b/dev-lang/php/php-5.4.0_rc6.ebuild
deleted file mode 100644
index 143ebbb..0000000
--- a/dev-lang/php/php-5.4.0_rc6.ebuild
+++ /dev/null
@@ -1,390 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.4.0_rc6.ebuild,v 1.1 2012/01/20 14:40:05 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php/pecl-enchant )
- fileinfo? ( !<dev-php/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php/pecl-filter )
- json? ( !dev-php/pecl-json )
- phar? ( !dev-php/pecl-phar )
- zip? ( !dev-php/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.0_rc7-r1.ebuild b/dev-lang/php/php-5.4.0_rc7-r1.ebuild
deleted file mode 100644
index 310eb47..0000000
--- a/dev-lang/php/php-5.4.0_rc7-r1.ebuild
+++ /dev/null
@@ -1,390 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.4.0_rc7-r1.ebuild,v 1.1 2012/02/09 16:59:39 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="1"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php/pecl-enchant )
- fileinfo? ( !<dev-php/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php/pecl-filter )
- json? ( !dev-php/pecl-json )
- phar? ( !dev-php/pecl-phar )
- zip? ( !dev-php/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.0_rc7.ebuild b/dev-lang/php/php-5.4.0_rc7.ebuild
deleted file mode 100644
index 5967486..0000000
--- a/dev-lang/php/php-5.4.0_rc7.ebuild
+++ /dev/null
@@ -1,390 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.4.0_rc7.ebuild,v 1.1 2012/02/03 09:51:09 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php/pecl-enchant )
- fileinfo? ( !<dev-php/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php/pecl-filter )
- json? ( !dev-php/pecl-json )
- phar? ( !dev-php/pecl-phar )
- zip? ( !dev-php/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.0_rc8.ebuild b/dev-lang/php/php-5.4.0_rc8.ebuild
deleted file mode 100644
index 48d9cd2..0000000
--- a/dev-lang/php/php-5.4.0_rc8.ebuild
+++ /dev/null
@@ -1,391 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.4.0_rc8.ebuild,v 1.1 2012/02/16 19:22:11 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-SLOT="$(get_version_component_range 1-2)"
-
-# 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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="1"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- <dev-libs/libpcre-8.30
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php/pecl-enchant )
- fileinfo? ( !<dev-php/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php/pecl-filter )
- json? ( !dev-php/pecl-json )
- phar? ( !dev-php/pecl-phar )
- zip? ( !dev-php/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.1.ebuild b/dev-lang/php/php-5.4.1.ebuild
deleted file mode 100644
index 8f51f92..0000000
--- a/dev-lang/php/php-5.4.1.ebuild
+++ /dev/null
@@ -1,384 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.4.1.ebuild,v 1.1 2012/04/26 11:33:41 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-SLOT="$(get_version_component_range 1-2)"
-
-# 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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="2"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-RDEPEND="${DEPEND}"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.1_rc1.ebuild b/dev-lang/php/php-5.4.1_rc1.ebuild
deleted file mode 100644
index 6cad1d3..0000000
--- a/dev-lang/php/php-5.4.1_rc1.ebuild
+++ /dev/null
@@ -1,384 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.4.1_rc1.ebuild,v 1.1 2012/03/30 11:23:07 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-SLOT="$(get_version_component_range 1-2)"
-
-# 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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="2"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-RDEPEND="${DEPEND}"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.1_rc2.ebuild b/dev-lang/php/php-5.4.1_rc2.ebuild
deleted file mode 100644
index f69152c..0000000
--- a/dev-lang/php/php-5.4.1_rc2.ebuild
+++ /dev/null
@@ -1,384 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.4.1_rc2.ebuild,v 1.1 2012/04/13 06:43:50 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-SLOT="$(get_version_component_range 1-2)"
-
-# 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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="2"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-RDEPEND="${DEPEND}"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.2.ebuild b/dev-lang/php/php-5.4.2.ebuild
deleted file mode 100644
index 8035b3f..0000000
--- a/dev-lang/php/php-5.4.2.ebuild
+++ /dev/null
@@ -1,384 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.4.2.ebuild,v 1.1 2012/05/03 20:15:23 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-SLOT="$(get_version_component_range 1-2)"
-
-# 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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="2"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-RDEPEND="${DEPEND}"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.3.ebuild b/dev-lang/php/php-5.4.3.ebuild
deleted file mode 100644
index 6b29229..0000000
--- a/dev-lang/php/php-5.4.3.ebuild
+++ /dev/null
@@ -1,384 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.3.ebuild,v 1.1 2012/05/08 17:22:11 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-SLOT="$(get_version_component_range 1-2)"
-
-# 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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="2"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-RDEPEND="${DEPEND}"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.4.ebuild b/dev-lang/php/php-5.4.4.ebuild
deleted file mode 100644
index 4325378..0000000
--- a/dev-lang/php/php-5.4.4.ebuild
+++ /dev/null
@@ -1,385 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.4.ebuild,v 1.1 2012/06/14 22:10:11 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-SLOT="$(get_version_component_range 1-2)"
-
-# 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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php"
-[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="2"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-RDEPEND="${DEPEND}"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.4.4_rc2.ebuild b/dev-lang/php/php-5.4.4_rc2.ebuild
deleted file mode 100644
index ca33afe..0000000
--- a/dev-lang/php/php-5.4.4_rc2.ebuild
+++ /dev/null
@@ -1,385 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.4_rc2.ebuild,v 1.1 2012/06/05 17:34:32 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://dev.gentoo.org/~olemarkus/php/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-SLOT="$(get_version_component_range 1-2)"
-
-# 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_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php"
-[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="2"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-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}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- 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
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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 )
- 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 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.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? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-RDEPEND="${DEPEND}"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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 v2
- 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 v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v54 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-
-#Do not use eblit for this because it will not get sourced when installing from
-#binary package (bug #380845)
-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-php/suhosin"
- ewarn
- fi
-}
diff --git a/dev-lang/php/php-5.5.0_pre201105211430.ebuild b/dev-lang/php/php-5.5.0_pre201105211430.ebuild
deleted file mode 100644
index 8b91565..0000000
--- a/dev-lang/php/php-5.5.0_pre201105211430.ebuild
+++ /dev/null
@@ -1,353 +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/Attic/php-5.5.0_pre201105211430.ebuild,v 1.1 2011/05/22 07:17:51 olemarkus Exp $
-
-EAPI=4
-
-PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid"
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-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}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${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="$(get_version_component_range 4 )"
-PHP_PV="${PHP_PV/pre/trunk-}"
-
-PHP_RELEASE="olemarkus"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "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}
- ${PHP_PATCHSET_URI}
- "
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="5.5"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers db2 dbmaker debug doc empress
- empress-bcs enchant esoob exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
- interbase intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls oci8
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode sapdb +session sharedext sharedmem
- +simplexml snmp soap sockets solid spell sqlite ssl
- 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="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.11[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 )
- enchant? ( app-text/enchant )
- esoob? ( >=dev-db/unixODBC-1.8.13 )
- exif? ( !gd? ( !gd-external? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) ) )
- 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=] )
- intl? ( dev-libs/icu )
- 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 ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- 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-3.7.4 )
- 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 ) )
- )
- unicode? ( dev-libs/oniguruma )
- 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}"
-
-REQUIRED_USE="
- truetype? ( || ( gd gd-external ) )
- cjk? ( || ( gd gd-external ) )
- exif? ( || ( gd gd-external ) )
-
- xpm? ( gd )
- gd? ( zlib !gd-external )
- gd-external? ( !gd )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap !oci8 )
- adabas? ( odbc )
- birdstep? ( odbc )
- dbmaker? ( odbc )
- empress-bcs? ( empress )
- empress? ( odbc )
- esoob? ( odbc )
- db2? ( odbc )
- sapdb? ( odbc )
- solid? ( odbc )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- oci8? ( !oci8-instant-client !ldap-sasl )
- oci8-instant-client? ( !oci8 )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- firebird? ( !interbase )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[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 )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-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() { eblit-run src_prepare snapshots ; }
-src_configure() { eblit-run src_configure snapshots ; }
-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 ; }