File: php5.packages

package info (click to toggle)
yada 0.34
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,160 kB
  • ctags: 83
  • sloc: perl: 3,554; makefile: 26; sh: 12
file content (1725 lines) | stat: -rw-r--r-- 61,084 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
# $Id:  $

# If the debian/rules or debian/control file is missing, rebuild the file:
#
#   $ yada rebuild control
#   $ yada rebuild rules

# See debian/doc/README.Debian or /usr/share/doc/php5-common/README.Debian.gz
# if you want to edit or rebuild the package.


# Environment variables:
#   with_test=%{$with_test}  - run `make test'
#   with_debian_woody=%{$with_debian_woody}  - backport for woody

%define with_test %{?$with_test:1}%{!?$with_test:0}
%define with_debian_woody %{?$with_debian_woody:1}%{!?$with_debian_woody:0}

%define without_test %{!?with_test:1}%{?with_test:0}
%define without_debian_woody %{!?with_debian_woody:1}%{?with_debian_woody:0}

# Macro switches:
#   with_test=%{with_test} without_test=%{without_test}
#   with_debian_woody=%{with_debian_woody} without_debian_woody=%{without_debian_woody}


%define apache2_dev_package apache2-threaded-dev

%define autoconf_version 2.13
%define automake_version 1.4
%define openssl_version %{?without_debian_woody:0.9.7}%{?with_debian_woody:0.9.6}

%define apache_version %`dpkg -s apache-dev | grep ^Version | sed 's/^Version: //'`
%if %{without_debian_woody}
%define apache2_version %`dpkg -s %{apache2_dev_package} | grep ^Version | sed 's/^Version: //'`
%endif

%define zendmoduleapi_version %`egrep '\#define ZEND_MODULE_API_NO ' ./Zend/zend_modules.h | sed 's/\#define ZEND_MODULE_API_NO //'`
%define zendextensionapi_version %`egrep '\#define ZEND_EXTENSION_API_NO[[:space:]]*' ./Zend/zend_extensions.h | sed 's/\#define ZEND_EXTENSION_API_NO[[:space:]]*//'`
%define phpapi_version %`grep '\#define PHP_API_VERSION ' ./main/php.h | sed 's/\#define PHP_API_VERSION //'`

# Other macros:
#   apache2_dev_package=%{apache2_dev_package}
#   autoconf_version=%{autoconf_version}
#   automake_version=%{automake_version}
#   apache_version=%{apache_version}
%if %{without_debian_woody}
#   apache2_version=%{apache2_version}
%endif
#   zendmoduleapi_version=%{zendmoduleapi_version}
#   zendextensionapi_version=%{zendextensionapi_version}
#   phpapi_version=%{phpapi_version}


Source: php5
Section: interpreters
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.1
Upstream-Source: <URL:http://www.php.net/downloads.php>
Home-Page: <URL:http://www.php.net/>
Description: server-side, HTML-embedded scripting language
 PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed
 from C, Java and Perl with a couple of unique PHP-specific features thrown
 in. The goal of the language is to allow web developers to write
 dynamically generated pages quickly.
 .
 Homepage: http://www.php.net/
Copyright: .
 The package is based on PHP packages from Debian, Mandrake, Redhat and PLD
 distributions.
 .
 The source package is available at
 svn://svn.debian.org/svn/pear-package/trunk/php5/
 .
 Upstream Authors: The PHP group for PHP5
 .
 Two different licences apply to this package, one for PHP5, the other for
 libzend. Both licences are shown here below.
 .
 .
%`sed -e 's/^[[:space:]]*$/./' -e 's/^/ /' LICENSE`
 .
 .
%`sed -e 's/^[[:space:]]*$/./' -e 's/^/ /' Zend/LICENSE`
# DebConf i18n
Build-Depends: po-debconf
# sed -i
Build-Depends: sed (>= 4.1.1-1)
# pod2man
Build-Depends: perl
# ./buildconf
Build-Depends: autoconf%{autoconf_version}, automake%{automake_version}
Build-Depends: libtool (>= 1.4.2a), libtool (<< 1.6)
Build-Depends: libltdl3-dev
# chrpath -d
Build-Depends: chrpath
%if %{with_test}
# shtool
Build-Depends: shtool
%endif
# You will need bison if you want to regenerate the PHP parsers.
Build-Depends: bison
# You will need flex 2.5.4 or later if you want to regenerate Zend/PHP lexical parsers.
Build-Depends: flex (>= 2.5.4)
# PHP_PROG_RE2C
Build-Depends: re2c
# HAVE_LIBPAM
Build-Depends: libpam0g-dev
# HAVE_XMLTOK_H
Build-Depends: libxmltok1-dev
%if 0%{?with_libfcgi_dev:1}
# --enable-fastcgi
Build-Depends: libfcgi-dev
%endif
# --with-apxs
Build-Depends: apache-dev (>= 1.3.23)
%if %{without_debian_woody}
# --with-apxs2
Build-Depends: %{apache2_dev_package} (>= 2.0.50-10)
%endif
# --with-openssl
Build-Depends: libssl-dev (>= %{openssl_version})
# --with-zlib
Build-Depends: zlib1g-dev (>= 1.0.9)
# --with-bz2
Build-Depends: libbz2-dev (>= 1.0.0)
# --with-curl
Build-Depends: libcurl3-dev
# --with-gdbm
%if %{without_debian_woody}
Build-Depends: libgdbm-dev
%else
Build-Depends: libgdbmg1-dev
%endif
%if %{without_debian_woody}
# --with-db4
Build-Depends: libdb4.2-dev
%endif
%if %{without_debian_woody}
# --with-cdb
Build-Depends: tinycdb
%endif
%if 0%{?with_libmm_dev:1}
# --with-mm
Build-Depends: libmm-dev
%endif
# --with-libxml-dir, libxml2 version 2.5.10 or greater required.
Build-Depends: libxml2-dev (>= 2.5.10)
# --with-fam
Build-Depends: libfam-dev
%if %{without_debian_woody}
# --with-gd
Build-Depends: libgd2-xpm-dev (>= 2.0.28-3)
%endif
# --with-jpeg-dir
Build-Depends: libjpeg62-dev
# --with-png-dir
%if %{without_debian_woody}
Build-Depends: libpng12-dev
%else
Build-Depends: libpng2-dev
%endif
# --with-xpm-dir
%if %{without_debian_woody}
Build-Depends: libxpm-dev
%else
Build-Depends: xlibs-dev
%endif
# --with-ttf
Build-Depends: libttf-dev
# --with-freetype-dir
Build-Depends: libfreetype6-dev
%if %{without_debian_woody}
# --with-t1lib
Build-Depends: libt1-dev
%endif
# --with-gettext
Build-Depends: gettext
# --with-gmp
Build-Depends: libgmp3-dev
# --with-imap
%if %{without_debian_woody}
Build-Depends: libc-client-dev
%else
Build-Depends: libc-client-ssl2001-dev
%endif
# --with-kerberos
Build-Depends: libkrb5-dev
# --with-ldap
Build-Depends: libldap2-dev
%if %{without_debian_woody}
Build-Depends: libsasl2-dev
%endif
# --with-mcrypt
Build-Depends: libmcrypt-dev (>= 2.5.6)
# --with-mhash
Build-Depends: libmhash-dev (>= 0.8.8)
%if 0%{?with_libming_dev:1}
# --with-ming
Build-Depends: libming-dev
%endif
%if %{without_debian_woody}
# --with-mnogosearch
Build-Depends: mnogosearch-dev, mnogosearch-sqlite
%endif
# --with-mssql, --with-sybase-ct
Build-Depends: freetds-dev
%if %{without_debian_woody}
# --with-tidy
Build-Depends: libtidy-dev
%endif
# --with-mysql, --with-mysqli
%if %{without_debian_woody}
Build-Depends: libmysqlclient14-dev
Build-Conflicts: libmysqlclient-dev
%else
Build-Depends: libmysqlclient-dev
%endif
# --with-ncurses
Build-Depends: libncurses5-dev
# --with-unixODBC
Build-Depends: unixodbc-dev
%if %{without_debian_woody}
# --with-pcre-regex
Build-Depends: libpcre3-dev (>= 4.3-1)
%endif
# --with-pgsql
Build-Depends: postgresql-dev (>= 7.2-4)
# --with-pspell
Build-Depends: libpspell-dev
# --with-libedit
Build-Depends: libedit-dev
# --with-snmp
%if %{without_debian_woody}
Build-Depends: libsnmp5-dev
%else
Build-Depends: libsnmp4.2-dev
%endif
Build-Depends: libwrap0-dev
# --with-sqlite
%if %{without_debian_woody}
Build-Depends: libsqlite0-dev
%else
Build-Depends: libsqlite-dev
%endif
# --with-xsl, libxslt version 1.0.18 or greater required.
Build-Depends: libxslt1-dev (>= 1.0.18)
# --with-expat-dir
Build-Depends: libexpat1-dev (>= 1.95.2-2.1)
# this supposedly causes unresolved symbols, see changelog for php4-4.0.4pl1-4
Build-Conflicts: bind-dev
Patches: patches/*.patch
Major-Changes:
%`cd debian/patches; ls *.patch | sed -e 's/^/ /'`
Build: bash
 PROG_SENDMAIL=/usr/sbin/sendmail
 INCLUDE_PATH=.:/usr/share/php:/usr/local/share/php
 EXTENSION_DIR=/usr/lib/php5/%{zendmoduleapi_version}:/usr/local/lib/php5:/usr/local/lib/php
 CFLAGS="-O2 -Wall -fsigned-char -fno-strict-aliasing"
 LFSFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
 .
 # Enable IEEE-conformant floating point math on alphas (not the default)
 if [ "$DEB_HOST_GNU_TYPE" = "alpha-linux" ]; then
     CFLAGS="$CFLAGS -mieee"
 fi
 .
 if [ "$DEB_HOST_GNU_TYPE" = "ia64-linux" ]; then
     CFLAGS="$CFLAGS -g"
 else
     CFLAGS="$CFLAGS -gstabs"
 fi
 .
 COMMON_CONFIG="--disable-debug \
                --enable-bcmath \
                --enable-calendar \
                --enable-dbx \
                --enable-filepro \
                --enable-gd-native-ttf \
                --enable-gd-jis-conv \
                --enable-shmop \
                --enable-sockets \
                --enable-sysvsem \
                --enable-sysvshm \
                --enable-sysvmsg \
                --enable-memory-limit \
                --with-layout=GNU \
                --with-exec-dir=/usr/lib/php5/libexec
                --with-libxml-dir=/usr \
                --with-zlib \
                --with-zlib-dir=/usr \
                --with-gettext \
                --with-kerberos=/usr \
                --with-mime-magic=/usr/share/php5/magic.mime \
                %{?without_debian_woody:--with-pcre-regex=/usr}%{?with_debian_woody:--with-pcre-regex} \
                --with-expat-dir=/usr"
 .
 if ! [ -f backup-stamp ]; then
     for f in \
         aclocal.m4 config.guess config.sub configure configure.in ltmain.sh \
         build/libtool.m4 \
         main/php_config.h.in main/php_version.h \
         sapi/apache_hooks/mod_php5.c sapi/apache2filter/sapi_apache2.c
     do
         cp -a $f $f.bak
     done
     touch backup-stamp
 fi
 .
 if ! [ -f autoconf-stamp ]; then
     rm -f aclocal.m4 configure
     sed -i.bak -e 's/EXTRA_VERSION="\(.*\)"/EXTRA_VERSION="\1'"-${VERSION##*-}"'"/' configure.in
     ./buildconf --force
     touch autoconf-stamp
 fi
 .
 if ! [ -f configure-cli-stamp ]; then
     if [ -d cli-build ]; then
         rm -rf cli-build
     fi
     mkdir cli-build
     pushd cli-build
         CFLAGS="$CFLAGS" PROG_SENDMAIL="$PROG_SENDMAIL" \
         INCLUDE_PATH="$INCLUDE_PATH" \
         EXPANDED_EXTENSION_DIR="$EXTENSION_DIR" \
             ../configure \
                 --prefix=/usr \
                 --disable-cgi \
                 --with-config-file-path=/etc/php5/cli \
                 --disable-rpath \
                 $COMMON_CONFIG \
                 %{?with_libmm_dev:--with-mm}%{!?with_libmm_dev:--without-mm} \
                 --enable-libxml \
                 --disable-dom \
                 --disable-exif \
                 --disable-simplexml \
                 --disable-spl \
                 --disable-ftp \
                 --enable-pcntl \
                 --without-iconv \
                 --with-ncurses=/usr \
                 --without-sqlite \
                 --with-regex=php \
                 --without-mysql \
                 --without-sybase-ct \
                 --enable-xml \
                 --without-gdbm \
                 --without-db4 \
                 --without-cdb \
                 --without-inifile \
                 --without-flatfile \
                 --with-pear=/usr/share/php \
                 --disable-static
         cp ../Zend/zend_ini_scanner.c ../Zend/zend_language_scanner.c \
            ../Zend/zend_ini_parser.h ../Zend/zend_language_parser.h \
            ../Zend/zend_ini_parser.c ../Zend/zend_language_parser.c \
            Zend/
     popd
     touch configure-cli-stamp
 fi
 .
 if ! [ -f configure-cgi-stamp ]; then
     if [ -d cgi-build ]; then
         rm -rf cgi-build
     fi
     mkdir cgi-build
     pushd cgi-build
         CFLAGS="$CFLAGS" PROG_SENDMAIL="$PROG_SENDMAIL" \
         INCLUDE_PATH="$INCLUDE_PATH" \
         EXPANDED_EXTENSION_DIR="$EXTENSION_DIR" \
             ../configure \
                 --prefix=/usr \
                 --disable-cli \
                 --enable-force-cgi-redirect \
                 --disable-discard-path \
                 --disable-fastcgi \
                 --with-config-file-path=/etc/php5/cgi \
                 --disable-rpath \
                 $COMMON_CONFIG \
                 %{?with_libmm_dev:--with-mm}%{!?with_libmm_dev:--without-mm} \
                 --disable-libxml \
                 --disable-dom \
                 --disable-exif \
                 --disable-simplexml \
                 --disable-spl \
                 --disable-ftp \
                 --without-iconv \
                 --without-sqlite \
                 --with-regex=php \
                 --without-mysql \
                 --without-sybase-ct \
                 --disable-xml \
                 --without-gdbm \
                 --without-db4 \
                 --without-cdb \
                 --without-inifile \
                 --without-flatfile \
                 --disable-pear \
                 --disable-static
         cp ../Zend/zend_ini_scanner.c ../Zend/zend_language_scanner.c \
            ../Zend/zend_ini_parser.h ../Zend/zend_language_parser.h \
            ../Zend/zend_ini_parser.c ../Zend/zend_language_parser.c \
            Zend/
     popd
     touch configure-cgi-stamp
 fi
 .
 if ! [ -f configure-fcgi-stamp ]; then
     if [ -d fcgi-build ]; then
         rm -rf fcgi-build
     fi
     mkdir fcgi-build
     pushd fcgi-build
         CFLAGS="$CFLAGS" PROG_SENDMAIL="$PROG_SENDMAIL" \
         INCLUDE_PATH="$INCLUDE_PATH" \
         EXPANDED_EXTENSION_DIR="$EXTENSION_DIR" \
             ../configure \
                 --prefix=/usr \
                 --disable-cli \
                 --disable-force-cgi-redirect \
                 --enable-discard-path \
                 --enable-fastcgi \
                 --with-config-file-path=/etc/php5/fcgi \
                 --disable-rpath \
                 $COMMON_CONFIG \
                 %{?with_libmm_dev:--with-mm}%{!?with_libmm_dev:--without-mm} \
                 --disable-libxml \
                 --disable-dom \
                 --disable-exif \
                 --disable-simplexml \
                 --disable-spl \
                 --disable-ftp \
                 --without-iconv \
                 --without-sqlite \
                 --with-regex=php \
                 --without-mysql \
                 --without-sybase-ct \
                 --disable-xml \
                 --without-gdbm \
                 --without-db4 \
                 --without-cdb \
                 --without-inifile \
                 --without-flatfile \
                 --disable-pear \
                 --disable-static
         cp ../Zend/zend_ini_scanner.c ../Zend/zend_language_scanner.c \
            ../Zend/zend_ini_parser.h ../Zend/zend_language_parser.h \
            ../Zend/zend_ini_parser.c ../Zend/zend_language_parser.c \
            Zend/
     mkdir -p sapi/cgi/libfcgi
     popd
     touch configure-fcgi-stamp
 fi
 .
 if ! [ -f configure-apache-stamp ]; then
     if [ -d apache-build ]; then
         rm -rf apache-build
     fi
     mkdir apache-build
     pushd apache-build
         CFLAGS="$CFLAGS" PROG_SENDMAIL="$PROG_SENDMAIL" \
         INCLUDE_PATH="$INCLUDE_PATH" \
         EXPANDED_EXTENSION_DIR="$EXTENSION_DIR" \
             ../configure \
                 --prefix=/usr \
                 --disable-cli \
                 --disable-cgi \
                 --with-apxs=/usr/bin/apxs \
                 --with-config-file-path=/etc/php5/apache \
                 --disable-rpath \
                 $COMMON_CONFIG \
                 %{?with_libmm_dev:--with-mm}%{!?with_libmm_dev:--without-mm} \
                 --disable-libxml \
                 --disable-dom \
                 --disable-exif \
                 --disable-simplexml \
                 --disable-spl \
                 --disable-ftp \
                 --without-iconv \
                 --without-sqlite \
                 --with-regex=php \
                 --without-mysql \
                 --without-sybase-ct \
                 --disable-xml \
                 --without-gdbm \
                 --without-db4 \
                 --without-cdb \
                 --without-inifile \
                 --without-flatfile \
                 --disable-pear \
                 --disable-static
         cp ../Zend/zend_ini_scanner.c ../Zend/zend_language_scanner.c \
            ../Zend/zend_ini_parser.h ../Zend/zend_language_parser.h \
            ../Zend/zend_ini_parser.c ../Zend/zend_language_parser.c \
            Zend/
     popd
     touch configure-apache-stamp
 fi
 .
 if ! [ -f configure-apache_hooks-stamp ]; then
     if [ -d apache_hooks-build ]; then
         rm -rf apache_hooks-build
     fi
     mkdir apache_hooks-build
     pushd apache_hooks-build
         CFLAGS="$CFLAGS" PROG_SENDMAIL="$PROG_SENDMAIL" \
         INCLUDE_PATH="$INCLUDE_PATH" \
         EXPANDED_EXTENSION_DIR="$EXTENSION_DIR" \
             ../configure \
                 --prefix=/usr \
                 --disable-cli \
                 --disable-cgi \
                 --with-apache_hooks=/usr/bin/apxs \
                 --with-config-file-path=/etc/php5/apache \
                 --disable-rpath \
                 $COMMON_CONFIG \
                 %{?with_libmm_dev:--with-mm}%{!?with_libmm_dev:--without-mm} \
                 --disable-libxml \
                 --disable-dom \
                 --disable-exif \
                 --disable-simplexml \
                 --disable-spl \
                 --disable-ftp \
                 --without-iconv \
                 --without-sqlite \
                 --with-regex=php \
                 --without-mysql \
                 --without-sybase-ct \
                 --disable-xml \
                 --without-gdbm \
                 --without-db4 \
                 --without-cdb \
                 --without-inifile \
                 --without-flatfile \
                 --disable-pear \
                 --disable-static
         cp ../Zend/zend_ini_scanner.c ../Zend/zend_language_scanner.c \
            ../Zend/zend_ini_parser.h ../Zend/zend_language_parser.h \
            ../Zend/zend_ini_parser.c ../Zend/zend_language_parser.c \
            Zend/
     popd
     touch configure-apache_hooks-stamp
 fi
 .
%if %{without_debian_woody}
 if ! [ -f configure-apache2handler-stamp ]; then
     if [ -d apache2handler-build ]; then
         rm -rf apache2handler-build
     fi
     mkdir apache2handler-build
     pushd apache2handler-build
         CFLAGS="$CFLAGS" PROG_SENDMAIL="$PROG_SENDMAIL" \
         INCLUDE_PATH="$INCLUDE_PATH" \
         EXPANDED_EXTENSION_DIR="$EXTENSION_DIR" \
             ../configure \
                 --prefix=/usr \
                 --disable-cli \
                 --disable-cgi \
                 --with-apxs2=/usr/bin/apxs2 \
                 --with-config-file-path=/etc/php5/apache2 \
                 --disable-rpath \
                 $COMMON_CONFIG \
                 %{?with_libmm_dev:--with-mm}%{!?with_libmm_dev:--without-mm} \
                 --disable-libxml \
                 --disable-dom \
                 --disable-exif \
                 --disable-simplexml \
                 --disable-spl \
                 --disable-ftp \
                 --without-iconv \
                 --without-sqlite \
                 --with-regex=php \
                 --without-mysql \
                 --without-sybase-ct \
                 --disable-xml \
                 --without-gdbm \
                 --without-db4 \
                 --without-cdb \
                 --without-inifile \
                 --without-flatfile \
                 --disable-pear \
                 --disable-static
         cp ../Zend/zend_ini_scanner.c ../Zend/zend_language_scanner.c \
            ../Zend/zend_ini_parser.h ../Zend/zend_language_parser.h \
            ../Zend/zend_ini_parser.c ../Zend/zend_language_parser.c \
            Zend/
     popd
     touch configure-apache2handler-stamp
 fi
 .
 if ! [ -f configure-apache2filter-stamp ]; then
     if [ -d apache2filter-build ]; then
         rm -rf apache2filter-build
     fi
     mkdir apache2filter-build
     pushd apache2filter-build
         CFLAGS="$CFLAGS" PROG_SENDMAIL="$PROG_SENDMAIL" \
         INCLUDE_PATH="$INCLUDE_PATH" \
         EXPANDED_EXTENSION_DIR="$EXTENSION_DIR" \
             ../configure \
                 --prefix=/usr \
                 --disable-cli \
                 --disable-cgi \
                 --with-apxs2filter=/usr/bin/apxs2 \
                 --with-config-file-path=/etc/php5/apache2 \
                 --disable-rpath \
                 $COMMON_CONFIG \
                 %{?with_libmm_dev:--with-mm}%{!?with_libmm_dev:--without-mm} \
                 --disable-libxml \
                 --disable-dom \
                 --disable-exif \
                 --disable-simplexml \
                 --disable-spl \
                 --disable-ftp \
                 --without-iconv \
                 --without-sqlite \
                 --with-regex=php \
                 --without-mysql \
                 --without-sybase-ct \
                 --disable-xml \
                 --without-gdbm \
                 --without-db4 \
                 --without-cdb \
                 --without-inifile \
                 --without-flatfile \
                 --disable-pear \
                 --disable-static
         cp ../Zend/zend_ini_scanner.c ../Zend/zend_language_scanner.c \
            ../Zend/zend_ini_parser.h ../Zend/zend_language_parser.h \
            ../Zend/zend_ini_parser.c ../Zend/zend_language_parser.c \
            Zend/
     popd
     touch configure-apache2filter-stamp
 fi
%endif
 .
 if ! [ -f configure-modules-stamp ]; then
     if [ -d modules-build ]; then
         rm -rf modules-build
     fi
     mkdir modules-build
     pushd modules-build
         CFLAGS="$CFLAGS" PROG_SENDMAIL="$PROG_SENDMAIL" \
         INCLUDE_PATH="$INCLUDE_PATH" \
         EXPANDED_EXTENSION_DIR="$EXTENSION_DIR" \
             ../configure \
                 --prefix=/usr \
                 --enable-cli \
                 --disable-cgi \
                 --disable-rpath \
                 $COMMON_CONFIG \
                 --disable-static \
                 %{?with_libmm_dev:--with-mm}%{!?with_libmm_dev:--without-mm} \
                 --enable-libxml=shared \
                 --with-openssl=shared,/usr \
                 --with-curl=shared,/usr \
                 --with-openssl=shared,/usr \
                 --with-bz2=shared,/usr \
                 %{?without_debian_woody:--enable-dba=shared} \
                 --enable-dio=shared \
                 --enable-dom=shared \
                 --enable-exif=shared \
                 --with-fam=shared,/usr \
                 %{?without_debian_woody:--with-gd=shared,/usr}%{?with_debian_woody:--with-gd=shared} \
                 --with-jpeg-dir=shared,/usr \
                 --with-png-dir=shared,/usr \
                 --with-xpm-dir=shared,/usr/X11R6 \
                 --with-ttf=shared,/usr \
                 --with-freetype-dir=shared,/usr \
                 %{?without_debian_woody:--with-t1lib=/usr} \
                 --with-gmp=shared,/usr \
                 --with-iconv=shared \
                 --with-imap=shared,/usr \
                 --with-imap-ssl \
                 --with-ldap=shared,/usr \
                 %{?without_debian_woody:--with-ldap-sasl} \
                 --enable-mbstring=shared \
                 --with-mcrypt=shared,/usr \
                 --with-mhash=shared,/usr \
                 %{?with_libming_dev:--with-ming=shared,/usr} \
                 %{?without_debian_woody:--with-mnogosearch=shared,/usr} \
                 --with-mssql=shared,/usr \
                 --with-mysql=shared,/usr \
                 %{?without_debian_woody:--with-mysqli=shared,/usr/bin/mysql_config} \
                 --with-unixODBC=shared,/usr \
                 --with-pgsql=shared,/usr \
                 --with-pspell=shared,/usr \
                 --enable-simplexml=shared \
                 --enable-spl=shared \
                 --with-libedit=shared,/usr \
                 --with-snmp=shared,/usr \
                 --enable-ftp=shared \
                 --enable-soap=shared \
                 %{?without_debian_woody:--with-sqlite=shared,/usr}%{?with_debian_woody:--with-sqlite=shared} \
                 --with-regex=php \
                 --with-sybase-ct=shared,/usr \
                 %{?without_debian_woody:--with-tidy=shared,/usr} \
                 --enable-wddx=shared \
                 --enable-xml=shared \
                 --with-xsl=shared \
                 --with-xmlrpc=shared \
                 --enable-yp=shared \
                 --with-gdbm=shared,/usr \
                 %{?without_debian_woody:--with-db4=shared,/usr}%{?with_debian_woody:--with-db2=shared,/usr} \
                 %{?without_debian_woody:--with-cdb=shared,/usr}%{?with_debian_woody:--with-cdb} \
                 --with-inifile \
                 --with-flatfile \
                 --disable-pear
         cp ../Zend/zend_ini_scanner.c ../Zend/zend_language_scanner.c \
            ../Zend/zend_ini_parser.h ../Zend/zend_language_parser.h \
            ../Zend/zend_ini_parser.c ../Zend/zend_language_parser.c \
            Zend/
         mkdir -p ext/sqlite/libsqlite/src
     popd
     touch configure-modules-stamp
 fi
 .
 if ! [ -f build-cli-stamp ]; then
     pushd cli-build
         make
         for package in ../pear/package-*.xml ../pear/packages/*.tar; do
             sapi/cli/php -n -C -q -d include_path=../pear \
                 ../pear/scripts/pearcmd.php \
                 -v \
                 -c $(pwd)/.pearrc \
                 -d bin_dir=/usr/bin \
                 -d doc_dir=/usr/share/php/docs \
                 -d php_dir=/usr/share/php \
                 -d data_dir=/usr/share/php/data \
                 -d php_bin=/usr/bin/php5 \
                 -d test_dir=/usr/share/php/tests \
                 -d include_path=/usr/share/php \
                 install --installroot=$(pwd)/tmp-pear --force --nodeps $package
             name=$(sapi/cli/php -n -C -q -d include_path=../pear \
                 ../pear/scripts/pearcmd.php \
                 -c $(pwd)/.pearrc \
                 info $package \
                 | grep ^Package | tee | sed 's/^Package[[:space:]]*//')
             test -n "$name"
             sapi/cli/php -n -C -q -d include_path=../pear \
                 ../pear/scripts/pearcmd.php \
                 -c $(pwd)/.pearrc \
                 info $package \
                 > $name.txt
         done
         cat << END | while read key val; do
 bin_dir    /usr/local/bin
 doc_dir    /usr/local/share/php/docs
 ext_dir    /usr/local/lib/php5
 php_dir    /usr/local/share/php
 cache_dir  /var/cache/pear
 data_dir   /usr/local/share/php/data
 php_bin    /usr/bin/php5
 test_dir   /usr/local/share/php/data
 sig_keydir /etc/pear
 END
             sapi/cli/php -n -C -q -d include_path=../pear \
                 ../pear/scripts/pearcmd.php \
                 -c $(pwd)/pear.conf \
                 config-set $key $val
         done
         sed 's/@zendmoduleapi_version@/%{zendmoduleapi_version}/' \
            ../debian/scripts/php5-modconf > php5-modconf
         pod2man php5-modconf --section=8 --center=" " --release=" " --date=" " \
            > php5-modconf.8
     popd
     touch build-cli-stamp
 fi
 .
 if ! [ -f build-cgi-stamp ]; then
     pushd cgi-build
         make
         mv sapi/cgi/php sapi/cgi/cgi-bin.php5
         # Dirty hack to not rebuild everything twice
         sed -i.bak -e 's/FORCE_CGI_REDIRECT 1/FORCE_CGI_REDIRECT 0/' \
                -e 's/DISCARD_PATH 0/DISCARD_PATH 1/' main/php_config.h
         sed -i.bak -e 's/--enable-force-cgi-redirect/--enable-discard-path/' main/build-defs.h
         touch ../ext/standard/info.c
         touch ../sapi/cgi/cgi_main.c
         make
         mv sapi/cgi/php sapi/cgi/usr.bin.php5-cgi
         mv -f main/php_config.h.bak main/php_config.h
         mv -f main/build-defs.h.bak main/build-defs.h
         touch ../ext/standard/info.c
         touch ../sapi/cgi/cgi_main.c
         sed -e "s/@PHP_VERSION@/$VERSION/g" \
             -e "s/PHP Command Line Interface 'CLI'/PHP Common Gateway Interface 'CGI'/" \
             ../sapi/cli/php.1.in > sapi/cgi/php.1
     popd
     touch build-cgi-stamp
 fi
 .
 if ! [ -f build-fcgi-stamp ]; then
     pushd fcgi-build
         make
         sed -e "s/@PHP_VERSION@/$VERSION/g" \
             -e "s/PHP Command Line Interface 'CLI'/PHP Fast Common Gateway Interface 'FastCGI'/" \
             ../sapi/cli/php.1.in > sapi/cgi/php.1
     popd
     touch build-fcgi-stamp
 fi
 .
 if ! [ -f build-apache-stamp ]; then
     pushd apache-build
         make
     popd
     touch build-apache-stamp
 fi
 .
 if ! [ -f build-apache_hooks-stamp ]; then
     rm -f sapi/apache_hooks/mod_php5.c sapi/apache_hooks/mod_php5_hooks.c
     cp -f sapi/apache_hooks/mod_php5.c.bak sapi/apache_hooks/mod_php5_hooks.c
     echo '#include "mod_php5_hooks.c"' > sapi/apache_hooks/mod_php5.c
     pushd apache_hooks-build
         make
     popd
     touch build-apache_hooks-stamp
 fi
 .
%if %{without_debian_woody}
 if ! [ -f build-apache2handler-stamp ]; then
     pushd apache2handler-build
         make
     popd
     touch build-apache2handler-stamp
 fi
 .
 if ! [ -f build-apache2filter-stamp ]; then
     rm -f sapi/apache2filter/sapi_apache2.c sapi/apache2filter/mod_php5_filter.c
     cp -f sapi/apache2filter/sapi_apache2.c.bak sapi/apache2filter/mod_php5_filter.c
     echo '#include "mod_php5_filter.c"' > sapi/apache2filter/sapi_apache2.c
     pushd apache2filter-build
         make
     popd
     touch build-apache2filter-stamp
 fi
%endif
 .
 if ! [ -f build-modules-stamp ]; then
     pushd modules-build
         make
%if %{with_test}
         echo "extension_dir=$(pwd)/modules" > php.ini
         for i in \
             libxml simplexml openssl xml bz2 curl dba dio dom exif fam ftp \
             gd gmp iconv imap ldap mbstring mcrypt mhash mnogosearch \
             mysql odbc pgsql pspell readline soap spl sqlite tidy wddx \
             xmlrpc xsl yp
         do
             echo "extension=$i.so" >> php.ini
         done
         echo s | \
             TEST_PHP_EXECUTABLE="$TMPROOT/modules-build/sapi/cli/php -c $(pwd)" \
             TEST_PHP_CGI_EXECUTABLE="$TMPROOT/cgi-build/sapi/cgi/cgi-bin.php5 -c $(pwd)" \
                 make test
         ln ../php_test_results_* php_test_results.txt
         cat php_test_results.txt
%endif
         for ext in modules/*.so; do
             chrpath $ext && chrpath -d $ext
         done
     popd
     touch build-modules-stamp
 fi
Clean: sh
 for f in \
     aclocal.m4 config.guess config.sub configure configure.in ltmain.sh \
     build/libtool.m4 \
     main/php_config.h.in main/php_version.h \
     sapi/apache_hooks/mod_php5.c sapi/apache2filter/sapi_apache2.c
 do
     test -f $f.bak && mv -f $f.bak $f
 done
 rm -f ext/mbstring/libmbfl/config.h ext/mbstring/oniguruma/config.h || true
 rm -f sapi/apache2filter/mod_php5_filter.c sapi/apache_hooks/mod_php5_hooks.c
 rm -f *-stamp || true
 rm -rf *-build || true
 rm -f php_test_results_* 061.csv || true
 rm -rf autom4te.cache || true
 rm -f generated_lists || true

Package: php5
Architecture: all
Depends: libapache-mod-php5 (>= ${Source-Version}) | libapache2-mod-php5 (>= ${Source-Version}) | php5-fcgi (>= ${Source-Version})
Depends: php5-common (>= ${Source-Version})
Recommends: php5-cli, php5-cgi, php5-dba, php5-spl
Doc-Depends: php5-common
Description: server-side, HTML-embedded scripting language (meta-package)
 This package is a meta-package that, when installed, guarantees that you
 have at least one of the three server-side versions of the PHP5 interpreter
 installed.  Removing this package won't remove PHP5 from your system, however
 it may remove other packages that depend on this one.

Package: php5-common
Architecture: any
Depends: ucf (>= 0.8)
Depends: []
Description: common files for packages built from the php5 source
 This package contains the documentation and example files relevant to all
 the other packages built from the php5 source.
Install: sh
 yada install -dir /usr/lib/php5/libexec /var/lib/php5
 .
 yada install -dir /usr/share/doc/$PACKAGE/examples
 yada install -doc -subdir examples php.ini-dist php.ini-recommended
 .
 yada install -script -into /usr/share/php5 debian/scripts/maxlifetime
 .
 yada install -sscript cli-build/php5-modconf
 yada install -man cli-build/php5-modconf.8
 .
 yada install -data -into /usr/share/php5 debian/data/magic.mime
 .
 yada install -doc \
     CODING_STANDARDS CREDITS EXTENSIONS NEWS README.CVS-RULES \
     README.PHP4-TO-PHP5-THIN-CHANGES README.SELF-CONTAINED-EXTENSIONS \
     README.SUBMITTING_PATCH README.Zeus \
     TODO TODO-5.1 TODO-PHP5
 yada install -doc debian/doc/README.Debian debian/doc/README.ext.Debian debian/doc/TODO.Debian
Finalise: sh
 chmod 01733 $ROOT/var/lib/php5
Templates:
 Template: php5-shared/extensions
 Type: multiselect
 Choices: ${choices}
 _Description: Please select the modules that ${flavour} will load
 .
 Template: php5-shared/restart-webserver
 Type: boolean
 Default: false
 _Description: Do you want me to restart ${flavour} now?
  Remember that in order to activate the new configuration
  ${flavour} has to be restarted. You can also restart ${flavour}
  manually executing /etc/init.d/${flavour} restart
Config: sh
 # Just install templates
Cron:
 # /etc/cron.d/php5: crontab fragment for php5
 #  This purges session files older than X, where X is defined in seconds
 #  as the largest value of session.gc_maxlifetime from all your php.ini
 #  files, or 24 minutes if not defined.  See /usr/lib/php5/maxlifetime
 .
 # Look for and purge old sessions every 30 minutes
 09,39 *     * * *     root   [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/share/php5/maxlifetime) -print0 | xargs -r -0 rm
Postrm: sh
 if [ "$1" = "purge" ]; then
     rm -rf /var/lib/php5
 fi
 if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
     . /usr/share/debconf/confmodule
     db_purge
 fi
Overrides:
 non-standard-dir-perm var/lib/php5/ 1733 != 0755
 no-debconf-config
 debconf-is-not-a-registry ./usr/sbin/php5-modconf

Package: php5-cli
Architecture: any
Depends: php5-common (= ${Source-Version}), []
Provides: phpapi-%{phpapi_version}
Provides: zendmoduleapi-%{zendmoduleapi_version}
Provides: zendextensionapi-%{zendextensionapi_version}
Provides: php5-libxml, php5-xml
Conflicts: php3 (<= 3.0.18-1)
Description: command-line interpreter for the php5 scripting language
 This package provides the /usr/bin/php5 command interpreter, useful for
 testing PHP scripts from a shell, or perhaps even performing general
 shell scripting tasks, if you're frightened of perl and python.
 .
 Compiled in extensions include: bcmath, calendar, ctype, dbx, filepro,
 gettext, libxml, mime_magic, ncurses, pcntl, pcre, posix, session, shmop,
 sockets, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml and zlib.
Install: sh
 yada install -bin -as php5 cli-build/sapi/cli/php
 yada install -man -as php5.1 cli-build/sapi/cli/php.1
 .
 yada install -conf -ucf -into /etc/php5/cli -as php.ini php.ini-dist
 .
 yada install -doc sapi/cli/[CRT]*
Postrm: sh
 if [ "$1" = "purge" ]; then
     rm -rf /etc/php5/cli
     if [ -d /etc/php5 ]; then
         rmdir --ignore-fail-on-non-empty /etc/php5
     fi
 fi
Alternatives:
 /usr/bin/php -> php -> /usr/bin/php5 (50)
 >> /usr/share/man/man1/php.1.gz -> php.1.gz -> /usr/share/man/man1/php5.1.gz

Package: php5-cgi
Architecture: any
Depends: php5-common (= ${Source-Version}), []
Provides: phpapi-%{phpapi_version}
Provides: zendmoduleapi-%{zendmoduleapi_version}
Provides: zendextensionapi-%{zendextensionapi_version}
Conflicts: php3 (<= 3.0.18-1)
Suggests: php5-pear
Description: HTML-embedded scripting language (CGI binary)
 This package provides the /usr/lib/cgi-bin/php5 CGI interpreter built
 for use in apache 1.3 or apache 2.0 with mod_actions, or any other CGI
 httpd that supports a similar mechanism.  Note that MOST apache users
 probably want the libapache-mod-php5 or libapache2-mod-php5 packages.
 .
 Compiled in extensions include: bcmath, calendar, ctype, dbx, filepro,
 gettext, mime_magic, pcre, posix, session, shmop, sockets, standard, sysvmsg,
 sysvsem, sysvshm, tokenizer and zlib.
Install: sh
 yada install -bin -into /usr/lib/cgi-bin -as php5 cgi-build/sapi/cgi/cgi-bin.php5
 yada install -bin -as php5-cgi cgi-build/sapi/cgi/usr.bin.php5-cgi
 .
 for webserver in apache apache-perl apache-ssl; do
     yada install -conf -ucf -into /etc/$webserver/conf.d -as php5-cgi.conf debian/conf/php5-cgi-apache.conf
 done
 yada install -conf -ucf -into /etc/apache2/conf.d -as php5-cgi.conf debian/conf/php5-cgi-apache2.conf
 .
 yada install -man -as php5-cgi.1 cgi-build/sapi/cgi/php.1
 .
 yada install -conf -ucf -into /etc/php5/cgi -as php.ini php.ini-dist
 .
 yada install -doc sapi/cgi/[C]*
Postrm: sh
 if [ "$1" = "purge" ]; then
     rm -rf /etc/php5/cgi
     if [ -d /etc/php5 ]; then
         rmdir --ignore-fail-on-non-empty /etc/php5
     fi
 fi
Alternatives:
 /usr/bin/php-cgi -> php-cgi -> /usr/bin/php5-cgi (50)
 >> /usr/share/man/man1/php-cgi.1.gz -> php-cgi.1.gz -> /usr/share/man/man1/php5-cgi.1.gz
 /usr/lib/cgi-bin/php -> php-cgi-bin -> /usr/lib/cgi-bin/php5 (50)
Overrides:
 description-synopsis-starts-with-a-capital-letter

Package: php5-fcgi
Architecture: any
Depends: php5-common (= ${Source-Version}), []
Provides: phpapi-%{phpapi_version}
Provides: zendmoduleapi-%{zendmoduleapi_version}
Provides: zendextensionapi-%{zendextensionapi_version}
Conflicts: php3 (<= 3.0.18-1)
Recommends: daemon
Suggests: libapache2-mod-fcgid, php5-pear
Description: HTML-embedded scripting language (FastCGI binary)
 This package provides the /usr/bin/php5-fcgi FastCGI interpreter built
 for use as external FastCGI server.
 .
 In this setup, PHP can be started as a separate process entirely from the web
 server. It will listen on a socket for new FastCGI requests, and deliver PHP
 pages as appropriate.
 .
 This package is useful only with libapache-mod-fastcgi or
 libapache2-mod-fastcgi package and special configuration both PHP and HTTP
 server. For using PHP in normal CGI mode, see php5-cgi package.
 .
 Compiled in extensions include: bcmath, calendar, ctype, dbx, filepro,
 gettext, mime_magic, pcre, posix, session, shmop, sockets, standard, sysvmsg,
 sysvsem, sysvshm, tokenizer and zlib.
Install: sh
 yada install -dir /var/run/php5-fcgi
 .
 yada install -bin -as php5-fcgi fcgi-build/sapi/cgi/php
 .
 yada install -man -as php5-fcgi.1 fcgi-build/sapi/cgi/php.1
 .
 for webserver in apache apache-perl apache-ssl; do
     yada install -conf -ucf -into /etc/$webserver/conf.d -as php5-fcgi.conf debian/conf/php5-fcgi-apache.conf
 done
 yada install -conf -ucf -into /etc/apache2/conf.d -as php5-fcgi.conf debian/conf/php5-fcgi-apache2.conf
 .
 yada install -conf -ucf -into /etc/php5/fcgi -as php.ini php.ini-dist
 .
 yada install -doc sapi/cgi/[CR]*
Postinst: sh
 if [ "$1" = "configure" ]; then
     chown www-data:www-data /var/run/php5-fcgi || true
 fi
Postrm: sh
 if [ "$1" = "purge" ]; then
     rm -rf /etc/php5/fcgi
     if [ -d /etc/php5 ]; then
         rmdir --ignore-fail-on-non-empty /etc/php5
     fi
 fi
Init: sh
 defaults
 .
 DAEMON=/usr/bin/php5-fcgi
 NAME=php5-fcgi
 DESC="PHP5 external FastCGI server"
 .
 PIDFILE=/var/run/php5-fcgi/php5-fcgi.pid
 SUPERVISOR=/usr/bin/daemon
 SUPERVISORNAME=daemon
 SUPERVISORARGS="--name=$NAME --pidfile=$PIDFILE --user=www-data.www-data --respawn --delay=10"
 .
 test "$ENABLED" = 1 || exit 0
 test -x $DAEMON || exit 0
 .
 ARGS="-b $BIND $OPTIONS"
 .
 export FCGI_WEB_SERVER_ADDRS PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS
 .
 set -e
 .
 case "$1" in
   start)
         echo -n "Starting $DESC: "
         if [ "$SUPERVISED" = 1 ] && [ -x $SUPERVISOR ]; then
             echo -n "(supervised) $NAME"
             $SUPERVISOR $SUPERVISORARGS $DAEMON -- $ARGS
         else
             echo -n "$NAME"
             start-stop-daemon --start --quiet --name $NAME \
                 --pidfile $PIDFILE --make-pidfile \
                 --chuid www-data:www-data \
                 --background --exec $DAEMON -- $ARGS
         fi
         echo "."
         ;;
   stop)
         echo -n "Stopping $DESC: "
         if [ "$SUPERVISED" = 1 ] && [ -x $SUPERVISOR ]; then
             echo -n "(supervised) $NAME"
             start-stop-daemon --stop --quiet --name $SUPERVISORNAME \
                 --pidfile $PIDFILE
         else
             echo -n "$NAME"
             start-stop-daemon --stop --quiet --name $NAME \
                 --pidfile $PIDFILE \
                 && rm -f $PIDFILE
         fi
         echo "."
         ;;
   restart|force-reload)
         $0 stop
         sleep 1
         $0 start
         ;;
   *)
         N=/etc/init.d/$NAME
         echo "Usage: $N {start|stop|restart|force-reload}" >&2
         exit 1
         ;;
 esac
Default:
 # Change to one to enable php5-fcgi
 ENABLED=0
 .
 # Change to one to start php5-fcgi supervised with /usr/bin/daemon
 SUPERVISED=1
 .
 # Bind Path for external FastCGI Server mode
 BIND="127.0.0.1:8002"
 .
 # Additional options, see `php5-fcgi --help'
 OPTIONS=""
 .
 # Comma separated list of IP addresses to control who can connect
 FCGI_WEB_SERVER_ADDRS="127.0.0.1"
 .
 # How many child processes the PHP process spawns
 PHP_FCGI_CHILDREN=8
 .
 # How many requests each child process will handle before exitting
 PHP_FCGI_MAX_REQUESTS=500
Alternatives:
 /usr/bin/php-fcgi -> php-fcgi -> /usr/bin/php5-fcgi (50)
 >> /usr/share/man/man1/php-fcgi.1.gz -> php-fcgi.1.gz -> /usr/share/man/man1/php5-fcgi.1.gz
Overrides:
 description-synopsis-starts-with-a-capital-letter

Package: libapache-mod-php5
Architecture: any
Depends: php5-common (= ${Source-Version})
Depends: apache-common (>= %{apache_version}), []
Provides: phpapi-%{phpapi_version}
Provides: zendmoduleapi-%{zendmoduleapi_version}
Provides: zendextensionapi-%{zendextensionapi_version}
Conflicts: php3, php4 (<< 4:4.3.8-6)
Suggests: php5-pear
Description: HTML-embedded scripting language (apache 1.3 module)
 This package provides the PHP5 module for the Apache 1.3 webserver (as
 found in the apache, apache-ssl, and apache-perl packages).  To use php5
 with Apache 2.0, you probably want libapache2-mod-php5 instead.
 .
 There are available standard Apache 1.3 module as mod_php5.so and module
 which uses Apache hooks API as mod_php5_hooks.so.
 .
 Compiled in extensions include: bcmath, calendar, ctype, dbx, filepro,
 gettext, mime_magic, pcre, posix, session, shmop, sockets, standard, sysvmsg,
 sysvsem, sysvshm, tokenizer and zlib.
Install: sh
 yada install -lib -into $(apxs -q LIBEXECDIR) -as mod_php5.so apache-build/.libs/libphp5.so
 yada install -lib -into $(apxs -q LIBEXECDIR) -as mod_php5_hooks.so apache_hooks-build/.libs/libphp5.so
 .
 yada install -data -into $(apxs -q LIBEXECDIR) -as 500mod_php5.info debian/data/libapache-mod-php5.500mod_php5.info
 yada install -data -into $(apxs -q LIBEXECDIR) -as 500mod_php5_hooks.info debian/data/libapache-mod-php5.500mod_php5_hooks.info
 .
 for webserver in apache apache-perl apache-ssl; do
     yada install -conf -into /etc/$webserver/conf.d -as php5.conf debian/conf/libapache-mod-php5.conf
 done
 .
 yada install -conf -ucf -into /etc/php5/apache -as php.ini php.ini-dist
 .
 for i in sapi/apache/[CR]*; do
     yada install -doc -as $(basename $i).apache $i
 done
 for i in sapi/apache/[CR]*; do
     yada install -doc -as $(basename $i).apache_hooks $i
 done
Postinst: sh
 reload_apache()
 {
     webserver=$1
     if ${webserver}ctl configtest 2>/dev/null; then
         invoke-rc.d $webserver force-reload || true
     else
         echo "Your $webserver configuration is broken, so we're not restarting it for you."
     fi
 }
 .
 if [ "$1" = "configure" ]; then
     if [ -x /usr/sbin/apache-modconf ]; then
         for webserver in apache apache-ssl apache-perl; do
             if [ -x /usr/sbin/$webserver ]; then
                 if [ -n "$2" ]; then
                     # we're upgrading. test if we're enabled, and if so, restart to reload the module.
                     if [ "$(apache-modconf $webserver query mod_php5)" = "mod_php5" ] || \
                        [ "$(apache-modconf $webserver query mod_php5_hooks)" = "mod_php5_hooks" ]; then
                         reload_apache $webserver
                     fi
                 else
                     # fresh
                     if [ "$(apache-modconf $webserver query mod_php4)" != "mod_php4" ]; then
                         apache-modconf $webserver enable mod_php5
                     fi
                 fi
             fi
         done
     fi
 fi
Prerm: sh
 if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
     if [ -x /usr/sbin/apache-modconf ]; then
         for webserver in apache apache-ssl apache-perl; do
             if [ -x /usr/sbin/$webserver ]; then
                 apache-modconf $webserver disable mod_php5 quiet
                 apache-modconf $webserver disable mod_php5_hooks quiet
             fi
         done
     fi
 fi
Postrm: sh
 if [ "$1" = "purge" ]; then
     rm -rf /etc/php5/apache
     if [ -d /etc/php5 ]; then
         rmdir --ignore-fail-on-non-empty /etc/php5
     fi
 fi
Overrides:
 description-synopsis-starts-with-a-capital-letter

%if %{without_debian_woody}
Package: libapache2-mod-php5
Architecture: any
Depends: php5-common (= ${Source-Version})
Depends: apache2-common (>= %{apache2_version}), apache2-mpm-prefork, []
Provides: phpapi-%{phpapi_version}
Provides: zendmoduleapi-%{zendmoduleapi_version}
Provides: zendextensionapi-%{zendextensionapi_version}
Suggests: php5-pear
Description: HTML-embedded scripting language (apache 2.0 module)
 This package provides the PHP5 module for the Apache 2.0 webserver.
 To use php5 with Apache 1.3, you probably want libapache-mod-php5 instead.
 .
 There are available standard Apache 2.0 handler API module as mod_php5.so
 and filter API module as mod_php5_filter.so.
 .
 Compiled in extensions include: bcmath, calendar, ctype, dbx, filepro,
 gettext, mime_magic, pcre, posix, session, shmop, sockets, standard, sysvmsg,
 sysvsem, sysvshm, tokenizer and zlib.
Install: sh
 yada install -lib -into $(apxs2 -q LIBEXECDIR) -as mod_php5.so apache2handler-build/.libs/libphp5.so
 yada install -lib -into $(apxs2 -q LIBEXECDIR) -as mod_php5_filter.so apache2filter-build/.libs/libphp5.so
 .
 yada install -conf -into /etc/apache2/mods-available -as php5.conf debian/conf/libapache2-mod-php5.conf
 yada install -conf -into /etc/apache2/mods-available -as php5.load debian/conf/libapache2-mod-php5.load
 yada install -conf -into /etc/apache2/mods-available -as php5_filter.conf debian/conf/libapache2-mod-php5-filter.conf
 yada install -conf -into /etc/apache2/mods-available -as php5_filter.load debian/conf/libapache2-mod-php5-filter.load
 .
 yada install -conf -ucf -into /etc/php5/apache2 -as php.ini php.ini-dist
 .
 for i in sapi/apache2handler/[CER]*; do
     yada install -doc -as $(basename $i).apache2handler $i
 done
 for i in sapi/apache2filter/[CER]*; do
     yada install -doc -as $(basename $i).apache2filter $i
 done
Postinst: sh
 reload_apache()
 {
     if apache2ctl configtest 2>/dev/null; then
         invoke-rc.d apache2 force-reload || true
     else
         echo "Your apache2 configuration is broken, so we're not restarting it for you."
     fi
 }
 .
 if [ -n "$2" ]; then
     # we're upgrading. test if we're enabled, and if so, restart to reload the module.
     if [ -e /etc/apache2/mods-enabled/php5.load ] || \
        [ -e /etc/apache2/mods-enabled/php5_filter.load ]; then
         reload_apache
     fi
     exit 0
 elif [ -e /etc/apache2/apache2.conf ]; then
     a2enmod php5 >/dev/null || true
     reload_apache
 fi
Prerm: sh
 if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
     if [ -e /etc/apache2/apache2.conf ]; then
         a2dismod php5 || true
         a2dismod php5_filter || true
     fi
 fi
Postrm: sh
 if [ "$1" = "purge" ]; then
     rm -rf /etc/php5/apache2
     if [ -d /etc/php5 ]; then
         rmdir --ignore-fail-on-non-empty /etc/php5
     fi
 fi
Overrides:
 description-synopsis-starts-with-a-capital-letter
%endif

%define package bz2
%define extname BZip2
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module to create and parse bzip2 compressed data.

%define package curl
%define extname CURL
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for CURL library functions in PHP.
 .
 CURL is a library for getting files from FTP, GOPHER, HTTP server.

%if %{without_debian_woody}
%define package dba
%define extname DBA
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for general abstraction layer for several
 file-based databases.
%endif

%define package dio
%define extname Direct I/O
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for direct I/O functions in PHP.

%define package dom
%define extname DOM XML
%define depends_dom libxml
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for DOM XML functions in PHP.
 .
 The module requires libxml.so module loaded to work.

%define package gd
%define extname GD
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for handling graphics directly from PHP
 scripts. It supports the PNG, JPEG, XPM and ttf fonts.

%define package fam
%define extname FAM
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for client library to control the FAM daemon
 in PHP scripts.

%define package exif
%define extname EXIF
%include php5-module.packages
Description: %{extname} module for php5
 This package provides access to information stored in headers of JPEG and
 TIFF images.

%define package ftp
%define extname FTP
%define depends_ftp openssl
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for File Transfer Protocol functions in PHP
 scripts.
 .
 The module requires openssl.so module loaded to work.

%define package gmp
%define extname GMP
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for multiprecision arithmetic library functions
 in PHP scripts.

%define package iconv
%define extname iconv
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for iconv functions in PHP scripts.

%define package imap
%define extname IMAP
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for IMAP functions in PHP scripts.

%define package ldap
%define extname LDAP
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for LDAP functions in PHP scripts.

%define package libxml
%define extname libXML
%define sapilist_libxml apache apache2 cgi fcgi
%define priority_libxml 100
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for libXML functions in PHP scripts.

%define package mbstring
%define extname mbstring
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for multi-byte string handling functions in
 PHP scripts.

%define package mcrypt
%define extname MCrypt
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for MCrypt functions in PHP scripts.

%define package mhash
%define extname MHASH
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for mhash functions in PHP scripts.

%if %{without_debian_woody}
%define package mnogosearch
%define extname mnoGoSearch
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for mnoGoSearch support in PHP scripts.
Finalise: sh
 sed -i 's/mnogosearch-sqlite/mnogosearch | &/' $CONTROL/control
%endif

%define package mssql
%define extname MSSQL
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for Microsoft SQL Server database connections
 directly from PHP scripts.

%define package mysql
%define extname MySQL
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for MySQL database connections directly from
 PHP scripts.

%if %{without_debian_woody}
%define package mysqli
%define extname MySQLi
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a new interface module for MySQL database connections
 directly from PHP scripts.
%endif

%if 0%{?with_libming_dev:1}
%define package ming
%define extname Ming
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for handling Flash animations
 directly from PHP scripts.
%endif

%define package odbc
%define extname ODBC
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for database access through ODBC drivers.
 It uses the unixODBC library as an ODBC provider.

%define package openssl
%define extname OpenSSL
%define priority_openssl 300
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for the OpenSSL functions in PHP scripts.

%define package pgsql
%define extname PostgreSQL
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for PostgreSQL database connections directly
 from PHP scripts.

%define package pspell
%define extname pspell
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for portable spell checking interface (pspell)
 directly from PHP scripts.

%define package readline
%define extname Readline
%define sapilist_readline cli
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for Readline library functions in PHP scripts.
 .
 The module is linked with editline library, the BSD replacement for GNU
 Readline.

%define package simplexml
%define extname SimpleXML
%define depends_simplexml libxml
%define priority_simplexml 200
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for the SimpleXML functions in PHP scripts.
 .
 The module requires libxml.so module loaded to work.

%define package soap
%define extname SOAP
%define depends_soap libxml
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for the SOAP protocol functions in PHP
 scripts.

%define package spl
%define extname SPL
%define depends_spl simplexml
%include php5-module.packages
Description: %{extname} module for php5
 This package provides the Standard PHP Library. SPL is a collection of
 interfaces and classes that are meant to solve standard problems.
 .
 The module requires simplexml.so module loaded to work.

%define package snmp
%define extname SNMP
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for SNMP functions in PHP scripts.

%define package sqlite
%define extname SQLite
%include php5-module.packages
Description: %{extname} module for php5
 This package provides access to SQLite databases from within PHP.
 .
 SQLite is a C library that implements an embeddable SQL database engine.
 Programs that link with the SQLite library can have SQL database access
 without running a separate RDBMS process.

%define package sybase
%define extname Sybase
%define dsoname_sybase sybase_ct
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for Sybase and Microsoft SQL Server database
 connections directly from PHP scripts.

%if %{without_debian_woody}
%define package tidy
%define extname Tidy
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for handling and validating (X)HTML
 documents directly from PHP scripts.
%endif

%define package wddx
%define extname WDDX
%define depends_wddx xml
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for the WDDX serialization functions in PHP
 scripts.
 .
 The module requires xml.so module loaded to work.

%define package xml
%define extname XML Parsing
%define sapilist_xml apache apache2 cgi fcgi
%define priority_xml 200
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for the XML parsing functions in PHP scripts.

%define package xmlrpc
%define extname XML-RPC
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for the XML-RPC protocol functions in PHP
 scripts.

%define package xsl
%define extname XSL
%define depends_xsl libxml
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for an XSL parser.
 .
 The module requires libxml.so module loaded to work.

%define package yp
%define extname YP/NIS
%include php5-module.packages
Description: %{extname} module for php5
 This package provides a module for the YP/NIS functions in PHP scripts.

Package: php5-pear
Architecture: all
Conflicts: php4-pear
Depends: php5-cli, php5-common (>= ${Source-Version})
Suggests: php5-dev
Description: PEAR - PHP Extension and Application Repository
 PEAR is a code repository for PHP extensions and PHP library code
 similar to TeX's CTAN and Perl's CPAN.
 .
 This package provides the bundled base PEAR classes and installer.
Install: sh
 mkdir -p $ROOT/usr/share/doc/$PACKAGE
 cp -a cli-build/tmp-pear/* $ROOT
 test -d $ROOT/usr/share/php/docs && mkdir $ROOT/usr/share/doc/$PACKAGE/docs
 test -d $ROOT/usr/share/php/docs/*/docs && cp -a $ROOT/usr/share/php/docs/*/docs $ROOT/usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/docs/*/docs
 test -d $ROOT/usr/share/php/docs/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/docs/*
 test -d $ROOT/usr/share/php/docs/* && cp -a $ROOT/usr/share/php/docs/*/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/docs/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/docs/*
 test -d $ROOT/usr/share/php/docs && cp -a $ROOT/usr/share/php/docs/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/docs
 test -d $ROOT/usr/share/php/tests && mkdir $ROOT/usr/share/doc/$PACKAGE/tests
 test -d $ROOT/usr/share/php/tests/*/tests && cp -a $ROOT/usr/share/php/tests/*/tests $ROOT/usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/tests/*/tests
 test -d $ROOT/usr/share/php/tests/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/tests/*
 test -d $ROOT/usr/share/php/tests/* && cp -a $ROOT/usr/share/php/tests/*/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/tests/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/tests/*
 test -d $ROOT/usr/share/php/tests && cp -a $ROOT/usr/share/php/tests/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/tests
 find $ROOT -name '.*' -print0 | xargs -0 -r rm -rf
 .
 yada install -script debian/scripts/pear
 .
 yada install -doc cli-build/*.txt pear/README
 .
 yada install -doc -as README.Debian debian/doc/php5-pear.README.Debian
 .
 yada install -dir /var/cache/pear
 yada install -conf -subdir pear cli-build/pear.conf
 .
 yada undocumented pear.1
Postrm: sh
 if [ "$1" = "purge" ]; then
     find /var/cache/pear -maxdepth 1 -name 'xmlrpc_cache_*' -print0 | xargs -r -0 rm -f || true
     rmdir --ignore-fail-on-non-empty /var/cache/pear || true
 fi
Overrides:
 description-synopsis-starts-with-a-capital-letter

Package: php5-dev
Provides: php-dev
Depends: autoconf%{autoconf_version}, automake%{automake_version}, libtool (>= 1.4)
Depends: php5-common (>= ${Source-Version})
Recommends: php5-cli
Conflicts: php4-dev (<< 4:4.3.10-9)
Section: devel
Architecture: any
Description: files for PHP5 module development
 This package provides the files from the PHP5 source needed for compiling
 additional modules.
Install: bash
 pushd cli-build
     make install-headers install-build install-programs INSTALL_ROOT=$ROOT program_suffix=\"\"5
 popd
 .
 yada install -script -as ext_skel5 ext/ext_skel
 .
 for i in Makefile.global acinclude.m4 mkdep.awk phpize.m4 scan_makefile_in.awk; do
     chmod 644 $ROOT/usr/lib/php5/build/$i
 done
 .
 yada copy -into /usr/lib/php5 ext/skeleton
 .
 yada install -doc \
     README.EXT_SKEL README.PARAMETER_PARSING_API \
     README.SELF-CONTAINED-EXTENSIONS README.STREAMS \
     README.TESTING README.TESTING2 README.input_filter
 .
 yada undocumented \
     ext_skel5.1 php-config5.1 phpextdist5.1 phpize5.1
Alternatives:
 /usr/bin/phpize -> phpize -> /usr/bin/phpize5 (50)
 >> /usr/share/man/man1/phpize.1.gz -> phpize.1.gz -> /usr/share/man/man1/phpize5.1.gz
 /usr/bin/php-config -> php-config -> /usr/bin/php-config5 (50)
 >> /usr/share/man/man1/php-config.1.gz -> php-config.1.gz -> /usr/share/man/man1/php-config5.1.gz
 /usr/bin/ext_skel -> ext_skel -> /usr/bin/ext_skel5 (50)
 >> /usr/share/man/man1/ext_skel.1.gz -> ext_skel.1.gz -> /usr/share/man/man1/ext_skel5.1.gz
 /usr/bin/phpextdist -> phpextdist -> /usr/bin/phpextdist5 (50)
 >> /usr/share/man/man1/phpextdist.1.gz -> phpextdist.1.gz -> /usr/share/man/man1/phpextdist5.1.gz