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 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867
|
# $Id: /local/php5.1/debian/packages 784 2005-09-29T11:04:18.587835Z dexter $
# 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/php$VERSION-common/README.Debian.gz
# if you want to edit or rebuild the package.
# Environment variables:
# backport for Debian woody
# with_debian_woody=%{with_debian_woody}
# backport for Debian sarge
# with_debian_sarge=%{with_debian_sarge}
# backport for Ubuntu hoary
# with_ubuntu_hoary=%{with_ubuntu_hoary}
# backport for Ubuntu breezy
# with_ubuntu_breezy=%{with_ubuntu_breezy}
# Conditional macros:
%define with_apache 1
# for: sid, sarge, breezy, hoary
%if %{without_debian_woody}
%define with_apache2 1
%define with_firebird2_dev 1
%define with_libc_client_dev 1
%define with_libdb4_2_dev 1
%define with_libgd2_xpm_dev 1
%define with_libgdbm_dev 1
%define with_libpcre3_dev 1
%define with_libpng12_dev 1
%define with_libsasl2_dev 1
%define with_libsqlite0_dev 1
%define with_libsqlite3_dev 1
%define with_libt1_dev 1
%define with_libxpm_dev 1
%define with_tidy 1
%define with_tinycdb 1
%define with_unixodbc_dev 1
%endif
# for: woody
%if %{with_debian_woody}
%define with_libc_client_ssl2001_dev 1
%define with_libgdbmg1_dev 1
%define with_libmysqlclient10_dev 1
%define with_libpng2_dev 1
%define with_libsnmp4_2_dev 1
%define with_libsqlite_dev 1
%endif
# for: sarge, breezy, hoary
%if %{with_debian_sarge}%{with_ubuntu_hoary}%{with_ubuntu_breezy}
%define with_libmysqlclient12_dev 1
%define with_libsnmp5_dev 1
%endif
# for: sid, breezy
%if %{without_debian_woody}
%if %{without_debian_sarge}
%if %{without_ubuntu_hoary}
%define with_libqdbm_dev 1
%endif
%endif
%endif
# for: sid
%if %{without_debian_woody}
%if %{without_debian_sarge}
%if %{without_ubuntu_hoary}
%if %{without_ubuntu_breezy}
%define with_libedit 1
%define with_libmysqlclient14_dev 1
%define with_libsnmp9_dev 1
%endif
%endif
%endif
%endif
# for: sid, sarge, breezy
%if %{without_debian_woody}
%if %{without_debian_sarge}
%if %{without_ubuntu_hoary}
%define with_libct3 1
%endif
%endif
%endif
# with_apache=%{with_apache}
# with_apache2=%{with_apache2}
# with_firebird2_dev=%{with_firebird2_dev}
# with_libc_client_dev=%{with_libc_client_dev}
# with_libc_client_ssl2001_dev=%{with_libc_client_ssl2001_dev}
# with_libdb4_2_dev=%{with_libdb4_2_dev}
# with_libgd2_xpm_dev=%{with_libgd2_xpm_dev}
# with_libgdbm_dev=%{with_libgdbm_dev}
# with_libgdbmg1_dev=%{with_libgdbmg1_dev}
# with_libmysqlclient10_dev=%{with_libmysqlclient10_dev}
# with_libmysqlclient12_dev=%{with_libmysqlclient12_dev}
# with_libmysqlclient14_dev=%{with_libmysqlclient14_dev}
# with_libpcre3_dev=%{with_libpcre3_dev}
# with_libpng12_dev=%{with_libpng12_dev}
# with_libpng2_dev=%{with_libpng2_dev}
# with_libqdbm_dev=%{with_libqdbm_dev}
# with_libsasl2_dev=%{with_libsasl2_dev}
# with_libsnmp5_dev=%{with_libsnmp5_dev}
# with_libsnmp9_dev=%{with_libsnmp9_dev}
# with_libsqlite_dev=%{with_libsqlite_dev}
# with_libsqlite0_dev=%{with_libsqlite0_dev}
# with_libsqlite3_dev=%{with_libsqlite3_dev}
# with_libt1_dev=%{with_libt1_dev}
# with_libxpm_dev=%{with_libxpm_dev}
# with_mono=%{with_mono}
# with_libct3=%{with_libct3}
# with_libedit=%{with_libedit}
# with_tidy=%{with_tidy}
# with_tinycdb=%{with_tinycdb}
# with_unixodbc_dev=%{with_unixodbc_dev}
# Other macros:
%define apache2_dev_package apache2-prefork-dev
%define autoconf_version 2.13
%define automake_version 1.4
%if %{without_debian_woody}
%define openssl_version 0.9.7
%else
%define openssl_version 0.9.6
%endif
%define php_alternative_level 10
%define php_pkg_version %`echo %{SOURCE} | sed 's/^php//'`
%define php_major_version %`echo %{php_pkg_version} | sed 's/\..*//'`
%if %{with_apache}
%define apache_version %`dpkg -s apache-dev | grep ^Version | sed 's/^Version: //'`
%endif
%if %{with_apache2}
%define apache2_version %`dpkg -s %{apache2_dev_package} | grep ^Version | sed 's/^Version: //'`
%endif
%define phpapi_version %`egrep -h '^#define ZEND_EXTENSION_API_NO|^#define ZEND_MODULE_API_NO|#define PHP_API_VERSION' ./Zend/zend_extensions.h ./Zend/zend_modules.h ./main/php.h | while read f1 f2 f3; do echo $f3; done | sed -e 's/.*\([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]\)$/\1/' | sort -n | tail -n 1`
%define debian_in_files \
debian/conf/*.in debian/data/*.in debian/doc/*.in debian/scripts/*.in
%define replace_path_files \
php.ini-dist php.ini-recommended \
sapi/cli/php.1.in \
scripts/Makefile.frag scripts/php-config.in scripts/phpize.in
%define backup_files \
aclocal.m4 config.guess config.sub configure configure.in ltmain.sh \
build/libtool.m4 build/shtool \
main/php_config.h.in main/php_version.h \
sapi/apache_hooks/mod_php5.c sapi/apache2filter/sapi_apache2.c \
%{replace_path_files}
%define clean_files \
autom4te.cache \
config.cache generated_lists php_test_results_* \
ext/mbstring/libmbfl/config.h ext/mbstring/oniguruma/config.h \
sapi/apache2filter/mod_php5_filter.c sapi/apache_hooks/mod_php5_hooks.c \
debian/conf/*.out debian/data/*.out debian/scripts/*.out
# apache2_dev_package=%{apache2_dev_package}
# autoconf_version=%{autoconf_version}
# automake_version=%{automake_version}
# openssl_version=%{openssl_version}
# php_alternative_level=%{php_alternative_level}
# php_pkg_version=%{php_pkg_version}
# php_major_version=%{php_major_version}
# apache_version=%{apache_version}
# apache2_version=%{apache2_version}
# phpapi_version=%{phpapi_version}
# debian_in_files=%{debian_in_files}
# replace_path_files=%{replace_path_files}
# backup_files=%{backup_files}
# clean_files=%{clean_files}
Source: php%{php_pkg_version}
Section: interpreters
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.2
Upstream-Source: <URL:http://www.php.net/downloads.php>
Home-Page: <URL:http://www.php.net/>
Description: server-side, HTML-embedded scripting language
PHP %{php_pkg_version} 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/php%{php_pkg_version}/
.
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)
# uudecode
Build-Depends: sharutils
# 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
# shtool
Build-Depends: shtool
# 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 %{with_libfcgi_dev}
# --enable-fastcgi
Build-Depends: libfcgi-dev
%endif
%if %{with_apache}
# --with-apxs
Build-Depends: apache-dev (>= 1.3.23)
%endif
%if %{with_apache2}
# --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
%if %{with_libqdbm_dev}
# --with-qdbm
Build-Depends: libqdbm-dev
%endif
# --with-gdbm
%if %{with_libgdbm_dev}
Build-Depends: libgdbm-dev
%endif
%if %{with_libgdbmg1_dev}
Build-Depends: libgdbmg1-dev
%endif
%if %{with_libdb4_2_dev}
# --with-db4
Build-Depends: libdb4.2-dev
%endif
%if %{with_tinycdb}
# --with-cdb
Build-Depends: tinycdb
%endif
%if %{with_libmm_dev}
# --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)
%if %{with_libgd2_xpm_dev}
# --with-gd
Build-Depends: libgd2-xpm-dev (>= 2.0.28-3)
%endif
# --with-jpeg-dir
Build-Depends: libjpeg62-dev
# --with-png-dir
%if %{with_libpng12_dev}
Build-Depends: libpng12-dev
%endif
%if %{with_libpng2_dev}
Build-Depends: libpng2-dev
%endif
# --with-xpm-dir
%if %{with_libxpm_dev}
Build-Depends: libxpm-dev
%else
Build-Depends: xlibs-dev
%endif
# --with-ttf
Build-Depends: libttf-dev
# --with-freetype-dir
Build-Depends: libfreetype6-dev
%if %{with_libt1_dev}
# --with-t1lib
Build-Depends: libt1-dev
%endif
# --with-gettext
Build-Depends: gettext
# --with-gmp
Build-Depends: libgmp3-dev
# --with-imap
%if %{with_libc_client_dev}
Build-Depends: libc-client-dev
%endif
%if %{with_libc_client_ssl2001_dev}
Build-Depends: libc-client-ssl2001-dev
%endif
# --with-kerberos
Build-Depends: libkrb5-dev
%if %{with_firebird2_dev}
# --with-interbase
Build-Depends: firebird2-dev [i386]
%endif
# --with-ldap
Build-Depends: libldap2-dev
%if %{with_libsasl2_dev}
Build-Depends: libsasl2-dev
%endif
# --with-mcrypt
Build-Depends: libmcrypt-dev (>= 2.5.6)
# --with-mhash
Build-Depends: libmhash-dev (>= 0.8.8)
%if %{with_libming_dev}
# --with-ming
Build-Depends: libming-dev
%endif
%if %{with_mono}
# --with-mono
Build-Depends: libmono-dev
%endif
# --with-mssql, --with-sybase-ct
Build-Depends: freetds-dev
%if %{with_tidy}
# --with-tidy
Build-Depends: libtidy-dev
%endif
# --with-mysql, --with-mysqli
%if %{with_libmysqlclient14_dev}
Build-Depends: libmysqlclient14-dev (>= 4.1.14-3)
%endif
%if %{with_libmysqlclient12_dev}
Build-Depends: libmysqlclient12-dev
%endif
%if %{with_libmysqlclient10_dev}
Build-Depends: libmysqlclient10-dev
%endif
# --with-ncurses
Build-Depends: libncurses5-dev
%if %{with_unixodbc_dev}
# --with-unixODBC
Build-Depends: unixodbc-dev
%endif
%if %{with_libpcre3_dev}
# --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
%if %{with_libedit}
# --with-libedit
Build-Depends: libedit-dev (>= 2.9.cvs.20050518-2.2)
%endif
# --with-snmp
%if %{with_libsnmp9_dev}
Build-Depends: libsnmp9-dev
%endif
%if %{with_libsnmp5_dev}
Build-Depends: libsnmp5-dev
%endif
%if %{with_libsnmp4_2_dev}
Build-Depends: libsnmp4.2-dev
%endif
Build-Depends: libwrap0-dev
# --with-sqlite
%if %{with_libsqlite0_dev}
Build-Depends: libsqlite0-dev
%endif
%if %{with_libsqlite_dev}
Build-Depends: libsqlite-dev
%endif
%if %{with_libsqlite3_dev}
# --with-pdo-sqlite
Build-Depends: libsqlite3-dev
%endif
# --with-xsl, libxslt version 1.0.18 or greater required.
Build-Depends: libxslt1-dev (>= 1.0.18)
# 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=.:/etc/php:/usr/local/share/php%{php_pkg_version}:/usr/local/share/php%{php_major_version}:/usr/local/share/php:/usr/share/php%{php_pkg_version}:/usr/share/php%{php_major_version}:/usr/share/php
EXTENSION_DIR=/usr/local/lib/php%{php_pkg_version}/%{phpapi_version}:/usr/local/lib/php%{php_major_version}/%{phpapi_version}:/usr/local/lib/php:/usr/lib/php%{php_pkg_version}/%{phpapi_version}:/usr/lib/php%{php_major_version}/%{phpapi_version}
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" ] || \
[ "$DEB_HOST_GNU_TYPE" = "powerpc64-linux" ]; then
CFLAGS="$CFLAGS -g"
else
CFLAGS="$CFLAGS -gstabs"
fi
.
COMMON_CONFIG="\
--cache-file=../config.cache \
--disable-debug \
--enable-dom \
--enable-gd-jis-conv \
--enable-gd-native-ttf \
--enable-libxml \
--enable-mbstring=shared \
--disable-rpath \
--enable-simplexml \
--enable-spl \
--disable-static \
--enable-xml \
--mandir=/usr/share/man \
--prefix=/usr \
--with-exec-dir=/usr/lib/php%{php_pkg_version}/libexec \
--without-expat-dir \
--with-iconv \
--with-kerberos=/usr \
--with-layout=GNU \
--with-libxml-dir=/usr \
--with%{!?with_libmm_dev:out}-mm \
--with-pcre-regex%{?with_libpcre3_dev:=/usr} \
--with-xmlrpc"
COMMON_SAPI_CONFIG="\
--disable-bcmath \
--disable-ctype \
--disable-exif \
--disable-ftp \
--disable-pdo \
--disable-posix \
--disable-session \
--disable-shmop \
--disable-sockets \
--disable-static \
--disable-sysvmsg \
--disable-sysvsem \
--disable-sysvshm \
--disable-tokenizer \
--without-cdb \
--without-db2 \
--without-db3 \
--without-db4 \
--without-flatfile \
--without-qdbm \
--without-gdbm \
--without-gettext \
--without-inifile \
--without-mime-magic \
--without-mono \
--without-mysql \
--with-regex=php \
--without-sqlite \
--without-sybase-ct \
--without-xmlreader \
--without-zlib \
--without-zlib-dir"
.
if ! [ -f backup-stamp ]; then
for f in %{backup_files}; do
cp -a $f $f.bak
done
sleep 1 && touch backup-stamp
fi
.
if ! [ autoconf-stamp -nt backup-stamp ]; then
rm -f aclocal.m4 configure
cp -f /usr/bin/shtool build
debian_out_files=
for f in %{debian_in_files}; do
cp -f "$f" "${f%.in}"
debian_out_files="$debian_out_files ${f%.in}"
done
for f in %{replace_path_files} $debian_out_files; do
sed -i.bak -e 's/@PHP_PKG_VERSION@/%{php_pkg_version}/g' \
-e 's/@PHP_MAJOR_VERSION@/%{php_major_version}/g' \
-e 's/@PHPAPI_VERSION@/%{phpapi_version}/g' \
-e 's#@INCLUDE_PATH@#'"$INCLUDE_PATH"'#g' \
-e 's#@EXTENSION_DIR@#'"$EXTENSION_DIR"'#g' \
$f
done
sed -i.bak -e 's/EXTRA_VERSION="\(.*\)"/EXTRA_VERSION="\1'"-Debian-${VERSION##*-}"'"/' configure.in
./buildconf --force
sleep 1 && touch autoconf-stamp
fi
.
if ! [ configure-cli-stamp -nt autoconf-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 \
--disable-cgi \
--with-config-file-path=/etc/php%{php_pkg_version}/cli \
--with-config-file-scan-dir=/etc/php%{php_pkg_version}/cli/conf.d \
$COMMON_CONFIG \
$COMMON_SAPI_CONFIG
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
sleep 1 && touch configure-cli-stamp
fi
.
%if %{with_libedit}
if ! [ configure-cli-shell-stamp -nt autoconf-stamp ]; then
if [ -d cli-shell-build ]; then
rm -rf cli-shell-build
fi
mkdir cli-shell-build
pushd cli-shell-build
CFLAGS="$CFLAGS" PROG_SENDMAIL="$PROG_SENDMAIL" \
INCLUDE_PATH="$INCLUDE_PATH" \
EXPANDED_EXTENSION_DIR="$EXTENSION_DIR" \
../configure \
--disable-cgi \
--with-config-file-path=/etc/php%{php_pkg_version}/cli \
--with-config-file-scan-dir=/etc/php%{php_pkg_version}/cli/conf.d \
--with-libedit=/usr \
$COMMON_CONFIG \
$COMMON_SAPI_CONFIG
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
sleep 1 && touch configure-cli-shell-stamp
fi
%endif
.
if ! [ configure-cgi-stamp -nt autoconf-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 \
--disable-cli \
--disable-discard-path \
--disable-fastcgi \
--enable-force-cgi-redirect \
--with-config-file-path=/etc/php%{php_pkg_version}/cgi \
--with-config-file-scan-dir=/etc/php%{php_pkg_version}/cgi/conf.d \
$COMMON_CONFIG \
$COMMON_SAPI_CONFIG
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
sleep 1 && touch configure-cgi-stamp
fi
.
if ! [ configure-fcgi-stamp -nt autoconf-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 \
--disable-cli \
--disable-force-cgi-redirect \
--enable-discard-path \
--enable-fastcgi \
--with-config-file-path=/etc/php%{php_pkg_version}/fcgi \
--with-config-file-scan-dir=/etc/php%{php_pkg_version}/fcgi/conf.d \
$COMMON_CONFIG \
$COMMON_SAPI_CONFIG
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
sleep 1 && touch configure-fcgi-stamp
fi
.
%if %{with_apache}
if ! [ configure-apache-stamp -nt autoconf-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 \
--disable-cgi \
--disable-cli \
--with-apxs=/usr/bin/apxs \
--with-config-file-path=/etc/php%{php_pkg_version}/apache \
--with-config-file-scan-dir=/etc/php%{php_pkg_version}/apache/conf.d \
$COMMON_CONFIG \
$COMMON_SAPI_CONFIG
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
sleep 1 && touch configure-apache-stamp
fi
.
if ! [ configure-apache_hooks-stamp -nt autoconf-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 \
--disable-cgi \
--disable-cli \
--with-apache_hooks=/usr/bin/apxs \
--with-config-file-path=/etc/php%{php_pkg_version}/apache \
--with-config-file-scan-dir=/etc/php%{php_pkg_version}/apache/conf.d \
$COMMON_CONFIG \
$COMMON_SAPI_CONFIG
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
sleep 1 && touch configure-apache_hooks-stamp
fi
%endif
.
%if %{with_apache2}
if ! [ configure-apache2handler-stamp -nt autoconf-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 \
--disable-cgi \
--disable-cli \
--with-apxs2=/usr/bin/apxs2 \
--with-config-file-path=/etc/php%{php_pkg_version}/apache2 \
--with-config-file-scan-dir=/etc/php%{php_pkg_version}/apache2/conf.d \
$COMMON_CONFIG \
$COMMON_SAPI_CONFIG
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
sleep 1 && touch configure-apache2handler-stamp
fi
.
if ! [ configure-apache2filter-stamp -nt autoconf-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 \
--disable-cgi \
--disable-cli \
--with-apxs2filter=/usr/bin/apxs2 \
--with-config-file-path=/etc/php%{php_pkg_version}/apache2 \
--with-config-file-scan-dir=/etc/php%{php_pkg_version}/apache2/conf.d \
$COMMON_CONFIG \
$COMMON_SAPI_CONFIG
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
sleep 1 && touch configure-apache2filter-stamp
fi
%endif
.
if ! [ configure-modules-stamp -nt autoconf-stamp ]; then
if [ -d modules-build ]; then
rm -rf modules-build
fi
mkdir modules-build
pushd modules-build
if [ "$DEB_BUILD_ARCH" = "i386" ]; then
BUILD_ARCH_CONFIG="\
%{?with_firebird2_dev:--with-interbase=shared,/usr} \
%{?with_firebird2_dev:--with-pdo-firebird=shared,/usr}"
fi
CFLAGS="$CFLAGS" PROG_SENDMAIL="$PROG_SENDMAIL" \
INCLUDE_PATH="$INCLUDE_PATH" \
EXPANDED_EXTENSION_DIR="$EXTENSION_DIR" \
../configure \
--enable-bcmath=shared \
--enable-calendar=shared \
--disable-cgi \
--enable-cli \
--enable-ctype=shared \
--enable-dba=shared \
--enable-exif=shared \
--enable-filepro=shared \
--enable-ftp=shared \
--enable-pcntl=shared \
--enable-pdo=shared \
--disable-pear \
--enable-posix=shared \
--enable-session=shared \
--enable-shmop=shared \
--enable-soap=shared \
--enable-sockets=shared \
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--enable-tokenizer=shared \
--enable-wddx=shared \
--with-bz2=shared,/usr \
--with-cdb%{?with_tinycdb:=/usr} \
--with-curl=shared,/usr \
%{?with_libdb4_2_dev:--with-db4=/usr} \
--with-flatfile \
--with-freetype-dir=shared,/usr \
--with-gdbm=/usr \
--with-gd=shared%{?with_libgd2_xpm_dev:,/usr} \
--with-gettext=shared,/usr \
--with-gmp=shared,/usr \
--with-imap=shared,/usr \
--with-imap-ssl \
--with-inifile \
--with-jpeg-dir=shared,/usr \
--with-ldap=shared,/usr \
%{?with_libsasl2_dev:--with-ldap-sasl} \
--with-mcrypt=shared,/usr \
--with-mhash=shared,/usr \
--with-mime-magic=shared,/usr/share/php5/magic.mime \
%{?with_libming_dev:--with-ming=shared,/usr} \
%{?with_mono:--with-mono=shared,/usr} \
--with-mssql=shared,/usr \
--with-mysql=shared,/usr \
%{?with_libmysqlclient14_dev:--with-mysqli=shared,/usr/bin/mysql_config} \
--with-ncurses=shared,/usr \
--with-openssl=shared,/usr \
--with-openssl=shared,/usr \
--without-pdo-oci \
%{?with_libct3:--with-pdo-dblib=shared,/usr} \
--with-pdo-mysql=shared,/usr \
%{?with_unixodbc_dev:--with-pdo-odbc=shared,unixodbc,/usr} \
--with-pdo-pgsql=shared,/usr \
--with-pdo-sqlite=shared%{?with_libsqlite3_dev:,/usr} \
--with-pgsql=shared,/usr \
--with-png-dir=shared,/usr \
--with-pspell=shared,/usr \
%{?with_libqdbm_dev:--with-qdbm=/usr} \
--with-regex=php \
--with-snmp=shared,/usr \
--with-sqlite=shared%{?with_libsqlite0_dev:,/usr} \
--with-sybase-ct=shared,/usr \
%{?with_libt1_dev:--with-t1lib=/usr} \
%{?with_tidy:--with-tidy=shared,/usr} \
--with-ttf=shared,/usr \
%{?with_unixodbc_dev:--with-unixODBC=shared,/usr} \
--with-xmlreader=shared \
--with-xpm-dir=shared,/usr/X11R6 \
--with-xsl=shared \
--with-zlib-dir=/usr \
--with-zlib=shared \
$COMMON_CONFIG \
$BUILD_ARCH_CONFIG
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
sleep 1 && touch configure-modules-stamp
fi
.
if ! [ build-cli-stamp -nt configure-cli-stamp ]; then
pushd cli-build
make
cp -f ../debian/scripts/php-modconf php%{php_pkg_version}-modconf
pod2man php%{php_pkg_version}-modconf --section=8 --center=" " --release=" " --date=" " \
> php%{php_pkg_version}-modconf.8
popd
sleep 1 && touch build-cli-stamp
fi
.
%if %{with_libedit}
if ! [ build-cli-shell-stamp -nt configure-cli-shell-stamp ]; then
pushd cli-shell-build
make
popd
sleep 1 && touch build-cli-shell-stamp
fi
%endif
.
if ! [ build-cgi-stamp -nt configure-cgi-stamp ]; then
pushd cgi-build
make
mv sapi/cgi/php sapi/cgi/cgi-bin.php%{php_pkg_version}
# 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
sleep 1 && touch ../ext/standard/info.c
sleep 1 && touch ../sapi/cgi/cgi_main.c
make
mv sapi/cgi/php sapi/cgi/usr.bin.php%{php_pkg_version}-cgi
mv -f main/php_config.h.bak main/php_config.h
mv -f main/build-defs.h.bak main/build-defs.h
sleep 1 && touch ../ext/standard/info.c
sleep 1 && 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
sleep 1 && touch build-cgi-stamp
fi
.
if ! [ build-fcgi-stamp -nt configure-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
sleep 1 && touch build-fcgi-stamp
fi
.
%if %{with_apache}
if ! [ build-apache-stamp -nt configure-apache-stamp ]; then
pushd apache-build
make
popd
sleep 1 && touch build-apache-stamp
fi
.
if ! [ build-apache_hooks-stamp -nt configure-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
sleep 1 && touch build-apache_hooks-stamp
fi
%endif
.
%if %{with_apache2}
if ! [ build-apache2handler-stamp -nt configure-apache2handler-stamp ]; then
pushd apache2handler-build
make
popd
sleep 1 && touch build-apache2handler-stamp
fi
.
if ! [ build-apache2filter-stamp -nt configure-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
sleep 1 && touch build-apache2filter-stamp
fi
%endif
.
if ! [ build-modules-stamp -nt configure-modules-stamp ]; then
pushd modules-build
make
popd
sleep 1 && touch build-modules-stamp
fi
Clean: sh
for f in %{backup_files}; do
test -f $f.bak && mv -f $f.bak $f
done
for f in %{debian_in_files}; do
rm -f "${f%.in}"
done
rm -rf %{clean_files} || true
rm -rf *-build || true
rm -f *-stamp || true
Package: php%{php_pkg_version}
Provides: php%{php_major_version}
Architecture: all
%if %{with_apache}
%if %{with_apache2}
Depends: libapache2-mod-php%{php_pkg_version} (>= ${Source-Version}) | libapache-mod-php%{php_pkg_version} (>= ${Source-Version}) | php%{php_pkg_version}-cgi (>= ${Source-Version}) | php%{php_pkg_version}-fcgi (>= ${Source-Version})
%else
Depends: libapache-mod-php%{php_pkg_version} (>= ${Source-Version}) | php%{php_pkg_version}-cgi (>= ${Source-Version}) | php%{php_pkg_version}-fcgi (>= ${Source-Version})
%endif
%else
%if %{with_apache2}
Depends: libapache2-mod-php%{php_pkg_version} (>= ${Source-Version}) | php%{php_pkg_version}-cgi (>= ${Source-Version}) | php%{php_pkg_version}-fcgi (>= ${Source-Version})
%else
Depends: php%{php_pkg_version}-cgi (>= ${Source-Version}) | php%{php_pkg_version}-fcgi (>= ${Source-Version})
%endif
%endif
Depends: php%{php_pkg_version}-common (>= ${Source-Version})
Recommends: php%{php_pkg_version}-cli
Recommends: php%{php_pkg_version}-cgi
Recommends: php%{php_pkg_version}-session
Recommends: php%{php_pkg_version}-zlib
Suggests: php%{php_pkg_version}-curl
Suggests: php%{php_pkg_version}-exif
Suggests: php%{php_pkg_version}-ftp
Suggests: php%{php_pkg_version}-gd
Suggests: php%{php_pkg_version}-gettext
Suggests: php%{php_pkg_version}-mysql
Suggests: php%{php_pkg_version}-sqlite
Suggests: php-pear
Doc-Depends: php%{php_pkg_version}-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 PHP %{php_pkg_version}
interpreter installed. Removing this package won't remove PHP %{php_pkg_version} from your
system, however it may remove other packages that depend on this one.
Package: php%{php_pkg_version}-common
Provides: php%{php_major_version}-common
Architecture: any
Depends: ucf (>= 0.8)
Depends: []
Description: common files for packages built from the php%{php_pkg_version} source
This package contains the documentation and example files relevant to all
the other packages built from the php%{php_pkg_version} source.
.
This package also provides `php%{php_pkg_version}-modconf' utility to administer which
modules has to be loaded or not.
Install: sh
yada install -dir /usr/lib/php%{php_pkg_version}/libexec /var/lib/php%{php_pkg_version}
.
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/php%{php_pkg_version} debian/scripts/maxlifetime
.
yada install -sscript cli-build/php%{php_pkg_version}-modconf
yada install -man cli-build/php%{php_pkg_version}-modconf.8
.
yada install -data -into /usr/share/php%{php_pkg_version} 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/php%{php_pkg_version}
Templates:
Template: php%{php_pkg_version}-shared/extensions
Type: multiselect
Choices: ${choices}
_Description: Please select the modules that ${flavour} will load
.
Template: php%{php_pkg_version}-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/php%{php_pkg_version}: crontab fragment for php%{php_pkg_version}
# 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/php%{php_pkg_version}/maxlifetime
.
# Look for and purge old sessions every 30 minutes
09,39 * * * * root [ -d /var/lib/php%{php_pkg_version} ] && find /var/lib/php%{php_pkg_version}/ -type f -cmin +$(/usr/share/php%{php_pkg_version}/maxlifetime) -print0 | xargs -r -0 rm
Postrm: sh
if [ "$1" = "purge" ]; then
rm -rf /var/lib/php%{php_pkg_version}
fi
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
Overrides:
non-standard-dir-perm var/lib/php%{php_pkg_version}/ 1733 != 0755
no-debconf-config
debconf-is-not-a-registry ./usr/sbin/php%{php_pkg_version}-modconf
%define sapi cli
Package: php%{php_pkg_version}-cli
Provides: php%{php_major_version}-cli
Provides: phpapi-%{phpapi_version}
Architecture: any
Depends: php%{php_pkg_version}-common (= ${Source-Version}), []
Description: command-line interpreter for the PHP %{php_pkg_version} scripting language
This package provides the /usr/bin/php%{php_pkg_version} 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.
%if %{with_libedit}
.
The package contains also the /usr/bin/phpsh%{php_pkg_version} interpreter, which
provides interactive shell if `phpsh -a' is called. This utility has compiled
in readline extension.
%endif
.
Compiled in extensions include: date, dom, iconv, libxml, readline (only for
phpsh), simplexml, spl, standard, xml and xmlrpc.
Install: sh
yada install -bin -as php%{php_pkg_version} cli-build/sapi/cli/php
yada install -man -as php%{php_pkg_version}.1 cli-build/sapi/cli/php.1
.
%if %{with_libedit}
yada install -bin -as phpsh%{php_pkg_version} cli-shell-build/sapi/cli/php
yada symlink -man -as phpsh%{php_pkg_version}.1 php%{php_pkg_version}.1
%endif
.
yada install -doc sapi/cli/[CRT]*
Alternatives:
/usr/bin/php -> php -> /usr/bin/php%{php_pkg_version} (%{php_alternative_level})
>> /usr/share/man/man1/php.1.gz -> php.1.gz -> /usr/share/man/man1/php%{php_pkg_version}.1.gz
%include sapi.packages
%define sapi cgi
Package: php%{php_pkg_version}-cgi
Provides: php%{php_major_version}-cgi
Provides: phpapi-%{phpapi_version}
Architecture: any
Depends: php%{php_pkg_version}-common (= ${Source-Version}), []
Recommends: php%{php_pkg_version}-session
Suggests: php-pear
Description: HTML-embedded scripting language (CGI binary)
This package provides the /usr/lib/cgi-bin/php%{php_pkg_version} 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-php%{php_pkg_version} or libapache2-mod-php%{php_pkg_version} packages.
.
Compiled in extensions include: date, dom, iconv, libxml, simplexml, spl,
standard, xml and xmlrpc.
Install: sh
yada install -bin -into /usr/lib/cgi-bin -as php%{php_pkg_version} cgi-build/sapi/cgi/cgi-bin.php%{php_pkg_version}
yada install -bin -as php%{php_pkg_version}-cgi cgi-build/sapi/cgi/usr.bin.php%{php_pkg_version}-cgi
.
yada install -conf -ucf -into /etc/php%{php_pkg_version}/%{sapi} -as apache.conf debian/conf/php-cgi-apache.conf
.
yada install -man -as php%{php_pkg_version}-cgi.1 cgi-build/sapi/cgi/php.1
.
yada install -doc sapi/cgi/[C]*
Alternatives:
/usr/bin/php-cgi -> php-cgi -> /usr/bin/php%{php_pkg_version}-cgi (%{php_alternative_level})
>> /usr/share/man/man1/php-cgi.1.gz -> php-cgi.1.gz -> /usr/share/man/man1/php%{php_pkg_version}-cgi.1.gz
/usr/lib/cgi-bin/php -> php-cgi-bin -> /usr/lib/cgi-bin/php%{php_pkg_version} (%{php_alternative_level})
Overrides:
description-synopsis-starts-with-a-capital-letter
%include sapi.packages
Postinst: sh
%include reload_apache.packages
if [ "$1" = "configure" ]; then
for webserver in apache apache-ssl apache-perl apache2; do
if [ -d /etc/$webserver/conf.d ] && [ ! -f /etc/$webserver/conf.d/$PACKAGE.conf ] && [ ! -h /etc/$webserver/conf.d/$PACKAGE.conf ]; then
ln -s /etc/php%{php_pkg_version}/%{sapi}/apache.conf /etc/$webserver/conf.d/$PACKAGE.conf
reload_apache $webserver
fi
done
fi
Postinst: sh
%include reload_apache.packages
if [ "$1" = "configure" ]; then
for webserver in apache apache-ssl apache-perl apache2; do
if [ -d /etc/$webserver/conf.d ] && [ ! -f /etc/$webserver/conf.d/$PACKAGE.conf ] && [ ! -h /etc/$webserver/conf.d/$PACKAGE.conf ]; then
ln -s /etc/php%{php_pkg_version}/%{sapi}/apache.conf /etc/$webserver/conf.d/$PACKAGE.conf
reload_apache $webserver
fi
done
fi
Prerm: sh
%include reload_apache.packages
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
for webserver in apache apache-ssl apache-perl apache2; do
if [ -h /etc/$webserver/conf.d/$PACKAGE.conf ]; then
rm -f /etc/$webserver/conf.d/$PACKAGE.conf || true
reload_apache $webserver
fi
done
fi
%define sapi fcgi
Package: php%{php_pkg_version}-fcgi
Provides: php%{php_major_version}-fcgi
Provides: phpapi-%{phpapi_version}
Architecture: any
Depends: php%{php_pkg_version}-common (= ${Source-Version}), []
Recommends: php%{php_pkg_version}-session
Recommends: daemon
Suggests: libapache2-mod-fcgid, php-pear
Description: HTML-embedded scripting language (FastCGI binary)
This package provides the /usr/bin/php%{php_pkg_version}-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 php%{php_pkg_version}-cgi package.
.
Compiled in extensions include: date, dom, iconv, libxml, simplexml, spl,
standard, xml and xmlrpc.
Install: sh
yada install -dir /var/run/php%{php_pkg_version}-fcgi
.
yada install -bin -as php%{php_pkg_version}-fcgi fcgi-build/sapi/cgi/php
.
yada install -man -as php%{php_pkg_version}-fcgi.1 fcgi-build/sapi/cgi/php.1
.
yada install -conf -ucf -into /etc/php%{php_pkg_version}/%{sapi} -as apache.conf debian/conf/php-fcgi-apache.conf
.
yada install -doc sapi/cgi/[CR]*
%include reload_apache.packages
if [ "$1" = "configure" ]; then
chown www-data:www-data /var/run/php%{php_pkg_version}-fcgi || true
fi
.
if [ "$1" = "configure" ]; then
for webserver in apache apache-ssl apache-perl apache2; do
if [ -d /etc/$webserver/conf.d ] && [ ! -f /etc/$webserver/conf.d/$PACKAGE.conf ] && [ ! -h /etc/$webserver/conf.d/$PACKAGE.conf ]; then
ln -s /etc/php%{php_pkg_version}/%{sapi}/apache.conf /etc/$webserver/conf.d/$PACKAGE.conf
reload_apache $webserver
fi
done
fi
Prerm: sh
%include reload_apache.packages
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
for webserver in apache apache-ssl apache-perl apache2; do
if [ -h /etc/$webserver/conf.d/$PACKAGE.conf ]; then
rm -f /etc/$webserver/conf.d/$PACKAGE.conf || true
reload_apache $webserver
fi
done
fi
Init: sh
defaults
.
DAEMON=/usr/bin/php%{php_pkg_version}-fcgi
NAME=php%{php_pkg_version}-fcgi
DESC="php%{php_pkg_version} external FastCGI server"
.
PIDFILE=/var/run/php%{php_pkg_version}-fcgi/php%{php_pkg_version}-fcgi.pid
SUPERVISOR=/usr/bin/daemon
SUPERVISORNAME=daemon
SUPERVISORARGS="--name=$NAME --pidfile=$PIDFILE --user=${PHP_FCGI_USER:-www-data}.${PHP_FCGI_GROUP:-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 ${PHP_FCGI_USER:-www-data}:${PHP_FCGI_GROUP:-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 php%{php_pkg_version}-fcgi
ENABLED=0
.
# Change to one to start php%{php_pkg_version}-fcgi supervised with /usr/bin/daemon
SUPERVISED=1
.
# Bind Path for external FastCGI Server mode
BIND="127.0.0.1:8002"
.
# Additional options, see `php%{php_pkg_version}-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
.
# System account to run the PHP processes under.
# If empty the PHP will run as www-data.
PHP_FCGI_USER=
.
# System group to run the PHP processes under.
# If empty the PHP will run as www-data.
PHP_FCGI_GROUP=
Alternatives:
/usr/bin/php-fcgi -> php-fcgi -> /usr/bin/php%{php_pkg_version}-fcgi (%{php_alternative_level})
>> /usr/share/man/man1/php-fcgi.1.gz -> php-fcgi.1.gz -> /usr/share/man/man1/php%{php_pkg_version}-fcgi.1.gz
Overrides:
description-synopsis-starts-with-a-capital-letter
%include sapi.packages
%if %{with_apache}
%define sapi apache
Package: libapache-mod-php%{php_pkg_version}
Provides: libapache-mod-php%{php_major_version}
Provides: phpapi-%{phpapi_version}
Architecture: any
Depends: php%{php_pkg_version}-common (= ${Source-Version})
Depends: apache-common (>= %{apache_version}), []
Recommends: php%{php_pkg_version}-session
Suggests: php-pear
Description: HTML-embedded scripting language (apache 1.3 module)
This package provides the php%{php_pkg_version} module for the Apache 1.3 webserver (as
found in the apache, apache-ssl, and apache-perl packages). To use php%{php_pkg_version}
with Apache 2.0, you probably want libapache2-mod-php%{php_pkg_version} instead.
.
There are available standard Apache 1.3 module as mod_php%{php_pkg_version}.so and module
which uses Apache hooks API as mod_php%{php_pkg_version}_hooks.so.
.
Compiled in extensions include: date, dom, iconv, libxml, simplexml, spl,
standard, xml and xmlrpc.
Install: sh
yada install -lib -into $(apxs -q LIBEXECDIR) -as mod_php%{php_pkg_version}.so apache-build/.libs/libphp%{php_major_version}.so
yada install -lib -into $(apxs -q LIBEXECDIR) -as mod_php%{php_pkg_version}_hooks.so apache_hooks-build/.libs/libphp%{php_major_version}.so
.
yada install -data -into $(apxs -q LIBEXECDIR) -as 500mod_php%{php_pkg_version}.info debian/data/libapache-mod-php.500mod_php.info
yada install -data -into $(apxs -q LIBEXECDIR) -as 500mod_php%{php_pkg_version}_hooks.info debian/data/libapache-mod-php.500mod_php_hooks.info
.
yada install -conf -ucf -into /etc/php%{php_pkg_version}/%{sapi} -as apache.conf debian/conf/libapache-mod-php.conf
.
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
%include reload_apache.packages
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_php%{php_pkg_version})" = "mod_php%{php_pkg_version}" ] || \
[ "$(apache-modconf $webserver query mod_php%{php_pkg_version}_hooks)" = "mod_php%{php_pkg_version}_hooks" ]; then
reload_apache $webserver
fi
else
# fresh
if ! grep -qs "^LoadModule php" /etc/$webserver/modules.conf >/dev/null 2>&1; then
if [ -d /etc/$webserver/conf.d ] && [ ! -f /etc/$webserver/conf.d/$PACKAGE.conf ] && [ ! -h /etc/$webserver/conf.d/$PACKAGE.conf ]; then
ln -s /etc/php%{php_pkg_version}/%{sapi}/apache.conf /etc/$webserver/conf.d/$PACKAGE.conf
fi
apache-modconf $webserver enable mod_php%{php_pkg_version}
fi
fi
fi
done
fi
fi
Prerm: sh
%include reload_apache.packages
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
if [ -x /usr/sbin/apache-modconf ]; then
for webserver in apache apache-ssl apache-perl; do
if [ -e /etc/$webserver/conf.d/$PACKAGE.conf ]; then
rm -f /etc/$webserver/conf.d/$PACKAGE.conf || true
fi
if [ -x /usr/sbin/$webserver ]; then
apache-modconf $webserver disable mod_php%{php_pkg_version} quiet
apache-modconf $webserver disable mod_php%{php_pkg_version}_hooks quiet
fi
done
fi
fi
Overrides:
description-synopsis-starts-with-a-capital-letter
package-name-doesnt-match-sonames libphp%{php_major_version}.so
%include sapi.packages
%endif
%if %{with_apache2}
%define sapi apache2
Package: libapache2-mod-php%{php_pkg_version}
Provides: libapache2-mod-php%{php_major_version}
Provides: phpapi-%{phpapi_version}
Architecture: any
Depends: php%{php_pkg_version}-common (= ${Source-Version})
Depends: apache2-common (>= %{apache2_version}), apache2-mpm-prefork, []
Recommends: php%{php_pkg_version}-session
Suggests: php-pear
Description: HTML-embedded scripting language (apache 2.0 module)
This package provides the PHP %{php_pkg_version} module for the Apache 2.0 webserver.
To use PHP %{php_pkg_version} with Apache 1.3, you probably want libapache-mod-php%{php_pkg_version}
instead.
.
There are available standard Apache 2.0 handler API module as mod_php%{php_pkg_version}.so
and filter API module as mod_php%{php_pkg_version}_filter.so.
.
Compiled in extensions include: date, dom, iconv, libxml, simplexml, spl,
standard, xml and xmlrpc.
Install: sh
yada install -lib -into $(apxs2 -q LIBEXECDIR) -as mod_php%{php_pkg_version}.so apache2handler-build/.libs/libphp%{php_major_version}.so
yada install -lib -into $(apxs2 -q LIBEXECDIR) -as mod_php%{php_pkg_version}_filter.so apache2filter-build/.libs/libphp%{php_major_version}.so
.
yada install -conf -into /etc/apache2/mods-available -as php%{php_pkg_version}.conf debian/conf/libapache2-mod-php.conf
yada install -conf -into /etc/apache2/mods-available -as php%{php_pkg_version}.load debian/conf/libapache2-mod-php.load
yada install -conf -into /etc/apache2/mods-available -as php%{php_pkg_version}_filter.conf debian/conf/libapache2-mod-php-filter.conf
yada install -conf -into /etc/apache2/mods-available -as php%{php_pkg_version}_filter.load debian/conf/libapache2-mod-php-filter.load
.
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
%include reload_apache.packages
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/php%{php_pkg_version}.load ] || \
[ -e /etc/apache2/mods-enabled/php%{php_pkg_version}_filter.load ]; then
reload_apache apache2
fi
exit 0
elif [ -e /etc/apache2/apache2.conf ]; then
a2enmod php%{php_pkg_version} >/dev/null || true
reload_apache apache2
fi
Prerm: sh
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
if [ -e /etc/apache2/apache2.conf ]; then
a2dismod php%{php_pkg_version} || true
a2dismod php%{php_pkg_version}_filter || true
fi
fi
Overrides:
description-synopsis-starts-with-a-capital-letter
package-name-doesnt-match-sonames libphp%{php_major_version}.so
%include sapi.packages
%endif
%define package bcmath
%define extname BCMath
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for bc style precision math functions.
%define package bz2
%define extname BZip2
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module to create and parse bzip2 compressed data.
%define package calendar
%define extname Calendar
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module with calendar support in PHP scripts.
%define package ctype
%define extname ctype
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module with ctype support in PHP scripts.
%define package curl
%define extname CURL
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for CURL library functions in PHP.
.
CURL is a library for getting files from FTP, GOPHER, HTTP server.
%define package dba
%define extname DBA
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for general abstraction layer for several
file-based databases.
%define package exif
%define extname EXIF
%define depends_exif mbstring
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides access to information stored in headers of JPEG and
TIFF images.
%define package filepro
%define extname filePro
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for filePro database access support in PHP
scripts.
%define package ftp
%define extname FTP
%define depends_ftp openssl
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for File Transfer Protocol functions in PHP
scripts.
.
The module requires openssl.so module loaded to work.
%define package gd
%define extname GD
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for handling graphics directly from PHP
scripts. It supports the PNG, JPEG, XPM and ttf fonts.
%define package gettext
%define extname gettext
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for gettext support in PHP scripts.
%define package gmp
%define extname GMP
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for multiprecision arithmetic library functions
in PHP scripts.
%define package imap
%define extname IMAP
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for IMAP functions in PHP scripts.
%if %{with_firebird2_dev}
%define package interbase
%define extname InterBase
%define architecture_interbase i386
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for Firebird - a RDBMS based on InterBase 6.0
database.
%endif
%define package ldap
%define extname LDAP
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for LDAP functions in PHP scripts.
%define package mbstring
%define extname mbstring
%define priority_mbstring 100
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for multi-byte string handling functions in
PHP scripts.
%define package mcrypt
%define extname MCrypt
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for MCrypt functions in PHP scripts.
%define package mhash
%define extname MHASH
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for mhash functions in PHP scripts.
%define package mime-magic
%define extname mime_magic
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module which adds support for MIME type lookup via
file magic numbers using magic.mime database.
%if %{with_mono}
%define package mono
%define extname Mono
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module which allows to access .NET assemblies from
PHP scripts.
%endif
%define package mssql
%define extname MSSQL
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for Microsoft SQL Server database connections
directly from PHP scripts.
%define package mysql
%define extname MySQL
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for MySQL database connections directly from
PHP scripts.
%if %{with_libmysqlclient14_dev}
%define package mysqli
%define extname MySQLi
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a new interface module for MySQL database connections
directly from PHP scripts.
%endif
%if %{with_libming_dev}
%define package ming
%define extname Ming
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for handling Flash animations
directly from PHP scripts.
%endif
%define package ncurses
%define extname ncurses
%define sapilist_ncurses cli
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides an ncurses support in PHP scripts (only for CLI).
%if %{with_unixodbc_dev}
%define package odbc
%define extname ODBC
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for database access through ODBC drivers.
It uses the unixODBC library as an ODBC provider.
%endif
%define package openssl
%define extname OpenSSL
%define priority_openssl 300
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for the OpenSSL functions in PHP scripts.
%define package pcntl
%define extname Process Control
%define sapilist_pcntl cli
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module that will add process spawning and control
support. It supports functions like fork(), waitpid(), signal() etc.
%define package pdo
%define extname PDO
%define priority_pdo 400
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a PHP Data Objects Interface, a uniform data access
interface, sporting advanced features such as prepared statements and bound
parameters.
%if %{with_libct3}
%define package pdo-dblib
%define extname PDO Sybase-DB driver
%define dsoname_pdo_dblib pdo_dblib
%define depends_pdo_dblib pdo
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides the unified Sybase-DB style driver for PDO.
%endif
%if %{with_firebird2_dev}
%define package pdo-firebird
%define extname PDO Firebird driver
%define dsoname_pdo_firebird pdo_firebird
%define depends_pdo_firebird pdo
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides the Firebird driver for PDO.
%endif
%define package pdo-mysql
%define extname PDO MySQL driver
%define dsoname_pdo_mysql pdo_mysql
%define depends_pdo_mysql pdo
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides the MySQL driver for PDO.
%if %{with_unixodbc_dev}
%define package pdo-odbc
%define extname PDO ODBC v3 driver
%define dsoname_pdo_odbc pdo_odbc
%define depends_pdo_odbc pdo
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides the ODBC v3 driver for PDO.
%endif
%define package pdo-pgsql
%define extname PDO PostgreSQL driver
%define dsoname_pdo_pgsql pdo_pgsql
%define depends_pdo_pgsql pdo
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides the PostgreSQL driver for PDO.
%define package pdo-sqlite
%define extname PDO SQLite v3 driver
%define dsoname_pdo_sqlite pdo_sqlite
%define depends_pdo_sqlite pdo
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides the SQLite v3 driver for PDO.
%define package pgsql
%define extname PostgreSQL
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for PostgreSQL database connections directly
from PHP scripts.
%define package posix
%define extname POSIX
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for POSIX functions support in PHP scripts.
%define package pspell
%define extname pspell
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for portable spell checking interface (pspell)
directly from PHP scripts.
%define package session
%define extname session
%define priority_session 200
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for session support in PHP scripts.
%define package shmop
%define extname shmop
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for Shared Memory Operation support in PHP
scripts.
%define package snmp
%define extname SNMP
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for SNMP functions in PHP scripts.
%define package soap
%define extname SOAP
%define depends_soap session
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for the SOAP protocol functions in PHP
scripts.
%define package sockets
%define extname sockets
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for sockets support in PHP scripts.
%define package sqlite
%define extname SQLite
%define depends_sqlite pdo session
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
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 module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for Sybase and Microsoft SQL Server database
connections directly from PHP scripts.
%define package sysvmsg
%define extname SysV msg
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for SysV message queues support in PHP scripts.
%define package sysvsem
%define extname SysV mem
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for SysV semaphores support in PHP scripts.
%define package sysvshm
%define extname SysV shm
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for SysV Shared Memory support in PHP scripts.
%if %{with_tidy}
%define package tidy
%define extname Tidy
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for handling and validating (X)HTML
documents directly from PHP scripts.
%endif
%define package tokenizer
%define extname tokenizer
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for PHP Source code tokenizer support in
PHP scripts.
%define package wddx
%define extname WDDX
%define depends_wddx session
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for the WDDX serialization functions in PHP
scripts.
%define package xmlreader
%define extname xmlReader
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides the libxml xmlReader API functions in PHP scripts.
%define package xsl
%define extname XSL
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module for an XSL parser.
%define package zlib
%define extname zlib
%include module.packages
Description: %{extname} module for PHP %{php_pkg_version}
This package provides a module to create and parse gzip compressed data.
Package: php%{php_pkg_version}-dev
Provides: php-dev, php%{php_major_version}-dev
Depends: autoconf%{autoconf_version}, automake%{automake_version}, libtool (>= 1.4), shtool
Depends: php%{php_pkg_version}-common (>= ${Source-Version})
Recommends: php%{php_pkg_version}-cli
Conflicts: php4-dev (<< 4:4.3.10-9)
Section: devel
Architecture: any
Description: files for php%{php_pkg_version} module development
This package provides the files from the PHP %{php_pkg_version} source needed for
compiling additional modules.
Install: bash
pushd cli-build
make install-headers install-build install-programs INSTALL_ROOT=$ROOT program_suffix=\"\"%{php_pkg_version}
popd
.
for i in Makefile.global acinclude.m4 mkdep.awk phpize.m4 scan_makefile_in.awk; do
chmod 644 $ROOT/usr/lib/php%{php_pkg_version}/build/$i
done
.
yada install -doc \
README.EXT_SKEL README.PARAMETER_PARSING_API \
README.SELF-CONTAINED-EXTENSIONS README.STREAMS \
README.TESTING README.TESTING2 README.input_filter
.
yada symlink -into /usr/lib/php%{php_pkg_version}/build \
/usr/share/misc/config.guess \
/usr/share/misc/config.sub \
/usr/share/libtool/libtool.m4 \
/usr/bin/shtool
.
yada rename -man -as phpize%{php_pkg_version}.1 phpize.1
yada rename -man -as php-config%{php_pkg_version}.1 php-config.1
Alternatives:
/usr/bin/phpize -> phpize -> /usr/bin/phpize%{php_pkg_version} (%{php_alternative_level})
>> /usr/share/man/man1/phpize.1.gz -> phpize.1.gz -> /usr/share/man/man1/phpize%{php_pkg_version}.gz
/usr/bin/php-config -> php-config -> /usr/bin/php-config%{php_pkg_version} (%{php_alternative_level})
>> /usr/share/man/man1/php-config.1.gz -> php-config.1.gz -> /usr/share/man/man1/php-config%{php_pkg_version}.gz
|