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
|
###############################################################################
# Generated by arch-phpbs: https://github.com/lamskoy/arch-phpbs
#
# Maintaining/co-maintaining on AUR: all packages from php56 up to php84
#
# Thanks to:
#
# AUR php80 Co-maintainer: Timo Sarawinski
# AUR php70 and php71 Co-maintainer: William Gathoye <william@gathoye.be>
# AUR php74 Co-maintainer: Tomasz Gruszka <tompear79@gmail.com>
# AUR php73 Co-maintainer: Matt Harrison <matt@harrison.us.com>
# AUR php73 and php56 Contributor: Pierre Schmitz <pierre@archlinux.de>
# AUR php56 Contributor: Chris Severance aur.severach aATt spamgourmet dott com
# AUR php56 Contributor: Thore Bödecker <me@foxxx0.de>
# AUR php56 Contributor: Jörg Schuck <joerg_schuck [at] web.de>
# AUR php55 Contributor: Raphaël Doursenaud <rdoursenaud@gmail.com>
# AUR php53 Contriburor: Felix Yan <felixonmars@archlinux.org>
###############################################################################
_phpbase="73"
_suffix=""
pkgver="7.3.33"
pkgbase_rc=""
pkgrel="16"
pkgbase="php73"
pkgdesc="PHP 7.3.33 compiled as to not conflict with mainline php"
_cppflags=" -DU_USING_ICU_NAMESPACE=1 -DU_DEFINE_FALSE_AND_TRUE=1 "
_build_apache_cfg="etc/httpd/conf/extra"
_build_bundled_gd="0"
_build_conf_d="etc/php73/conf.d"
_build_forced_openssl_11="0"
_build_fpm_name="php-fpm73"
_build_fpm_service_name="php73-fpm"
_build_icu_src_dir="icu/source"
_build_ini_per_sapi="0"
_build_mysql_socket="/run/mysqld/mysqld.sock"
_build_openssl_v11_patch="0"
_build_phpdbg="1"
_build_sapi_ini_apache="etc/php73"
_build_sapi_ini_cgi="etc/php73"
_build_sapi_ini_cli="etc/php73"
_build_sapi_ini_embed="etc/php73"
_build_sapi_ini_fpm="etc/php73"
_build_sapi_ini_litespeed="etc/php73"
_build_sapi_ini_phpdbg="etc/php73"
_build_sapi_litespeed="--with-litespeed"
_build_shared_gd="1"
_build_shared_json="1"
_build_shared_libedit="0"
_build_shared_mysqlnd="1"
_build_shared_openssl="0"
_build_shared_pdo="1"
_build_system_timezonedb="1"
_build_update_sqlite="0"
_build_uses_argon="1"
_build_uses_lmdb="1"
_priority_default="20"
_priority_dom="16"
_priority_json="15"
_priority_mysqlnd="10"
_priority_opcache="10"
_priority_openssl="05"
_priority_pdo="10"
_priority_xml="15"
_suffix=""
_suffix_so="7"
pkgname=(
"php73"
"php73-cli"
"php73-cgi"
"php73-fpm"
"php73-embed"
"php73-apache"
"php73-litespeed"
"php73-pear"
"php73-pecl"
"php73-phpdbg"
"php73-xml"
"php73-xsl"
"php73-xmlreader"
"php73-xmlwriter"
"php73-wddx"
"php73-dom"
"php73-simplexml"
"php73-pdo"
"php73-mysql"
"php73-phar"
"php73-pcntl"
"php73-posix"
"php73-shmop"
"php73-sockets"
"php73-sysvmsg"
"php73-sysvsem"
"php73-sysvshm"
"php73-tokenizer"
"php73-dba"
"php73-pgsql"
"php73-odbc"
"php73-firebird"
"php73-interbase"
"php73-dblib"
"php73-sqlite"
"php73-gd"
"php73-exif"
"php73-tidy"
"php73-iconv"
"php73-xmlrpc"
"php73-bcmath"
"php73-gmp"
"php73-zip"
"php73-bz2"
"php73-json"
"php73-fileinfo"
"php73-ctype"
"php73-recode"
"php73-mbstring"
"php73-pspell"
"php73-enchant"
"php73-intl"
"php73-calendar"
"php73-gettext"
"php73-soap"
"php73-ftp"
"php73-curl"
"php73-snmp"
"php73-ldap"
"php73-imap"
"php73-sodium"
"php73-opcache"
)
source=(
"make-tests.patch"
"php-makefile-patcher.php"
"php-apache.conf"
"pear-config-patcher.php"
"https://php.net/distributions/php-${pkgver}.tar.xz"
"libxml-pear.patch"
"php-libxml.patch"
"libxml-21200-php-7.0.patch"
"litespeed-phpheader.patch"
"php71-phar-names.patch"
"openssl-sslv3-consts.patch"
"fpm-numeric-uid-gid.patch"
"fpm-reload-sighup.patch"
"mysql-socket-php7.1.patch"
"php-enchant-php5.3.patch"
"php-enchant-depr.patch"
"php-freetype-2.9.1.patch"
"php-icu-php7.3.patch"
"recode-php5.3.patch"
"debian-php-7.3.33.patch"
"php-phpinfo.patch"
"timezonedb-guess.patch"
"timezonedb-php7.3.patch"
)
depends=(
)
makedepends=(
"acl"
"libtool"
"autoconf"
"automake"
"patchelf"
"gawk"
"sed"
"bash"
"python"
"libxml2"
"pam"
"krb5"
"zlib"
"libedit"
"smtp-forwarder"
"pcre"
"apache"
"ncurses"
"libxcrypt"
"systemd"
"systemd-libs"
"coreutils"
"findutils"
"argon2"
"libxslt"
"e2fsprogs"
"openssl"
"lmdb"
"db5.3"
"postgresql-libs"
"unixodbc"
"libfbclient"
"libfbclient"
"freetds"
"sqlite"
"gd"
"tidy"
"gmp"
"libzip"
"recode"
"aspell"
"enchant"
"libvoikko"
"hspell"
"hunspell"
"nuspell"
"aspell"
"icu"
"curl"
"net-snmp"
"libsasl"
"libldap"
"c-client"
"pam"
"libsodium"
)
arch=(
)
_patches=(
"libxml-pear.patch"
"php-libxml.patch"
"libxml-21200-php-7.0.patch"
"litespeed-phpheader.patch"
"php71-phar-names.patch"
"openssl-sslv3-consts.patch"
"fpm-numeric-uid-gid.patch"
"fpm-reload-sighup.patch"
"mysql-socket-php7.1.patch"
"php-enchant-php5.3.patch"
"php-enchant-depr.patch"
"php-freetype-2.9.1.patch"
"php-icu-php7.3.patch"
"recode-php5.3.patch"
"debian-php-7.3.33.patch"
"php-phpinfo.patch"
"timezonedb-guess.patch"
"timezonedb-php7.3.patch"
)
_sapi_depends=(
"libxml2"
"pcre2"
"libedit"
"argon2"
)
_ext_depends_snmp=(
"php73=7.3.33"
"net-snmp"
"openssl"
)
_ext_depends_ftp=(
"php73=7.3.33"
"openssl"
)
_ext_depends_intl=(
"php73=7.3.33"
"icu"
)
_ext_depends_imap=(
"php73=7.3.33"
"pam"
"krb5"
"c-client"
"libxcrypt"
"openssl"
)
_ext_depends_gd=(
"php73=7.3.33"
"gd"
)
_ext_depends_mysql=(
"php73=7.3.33"
"php73-pdo=7.3.33"
)
_ext_depends_dba=(
"php73=7.3.33"
"db5.3"
"lmdb"
)
_ext_depends_odbc=(
"php73=7.3.33"
"unixodbc"
"php73-pdo=7.3.33"
)
_ext_depends_pgsql=(
"php73=7.3.33"
"postgresql-libs"
"php73-pdo=7.3.33"
)
_ext_depends_firebird=(
"php73=7.3.33"
"libfbclient"
"php73-pdo=7.3.33"
)
_ext_depends_sqlite=(
"php73=7.3.33"
"sqlite"
"php73-pdo=7.3.33"
)
_ext_depends_mbstring=(
"php73=7.3.33"
)
_ext_depends_openssl=(
"php73=7.3.33"
"krb5"
"e2fsprogs"
"openssl"
)
_phpconfig="\
--prefix=/usr \
--sbindir=/usr/bin \
--localstatedir=/var \
--with-layout=GNU \
--disable-debug \
--mandir=/usr/share/man \
--srcdir=../php-${pkgver} \
--libdir=/usr/lib/php${_phpbase}${_suffix} \
--datadir=/usr/share/php${_phpbase}${_suffix} \
--program-suffix=${_phpbase}${_suffix} \
--with-config-file-scan-dir=/${_build_conf_d} \
--enable-filter \
--enable-session \
--with-pear \
--with-mhash=/usr \
--with-kerberos \
--with-mysql-sock=${_build_mysql_socket} \
--enable-mysqlnd-compression-support \
--datarootdir=/usr/share/php${_phpbase}${_suffix} \
--with-zlib \
--enable-libxml \
--with-pcre-regex=/usr \
--with-password-argon2=/usr \
--disable-rpath \
--config-cache \
--with-system-tzdata \
--with-openssl=/usr \
--enable-phpdbg-readline \
--with-libedit"
_phpextensions="\
--enable-xml=shared \
--with-xsl=shared \
--enable-xmlreader=shared \
--enable-xmlwriter=shared \
--enable-wddx=shared \
--enable-dom=shared \
--enable-simplexml=shared \
--enable-pdo=shared \
--enable-mysqlnd=shared \
--with-mysqli=shared,mysqlnd \
--with-pdo-mysql=shared,mysqlnd \
--enable-phar=shared \
--enable-pcntl=shared \
--enable-posix=shared \
--enable-shmop=shared \
--enable-sockets=shared \
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--enable-tokenizer=shared
--enable-dba=shared \
--with-db4=/usr \
--without-gdbm \
--with-cdb \
--with-lmdb=/usr \
--with-pgsql=shared,/usr \
--with-pdo-pgsql=shared,/usr \
--with-unixODBC=shared,/usr \
--with-pdo-odbc=shared,unixODBC,/usr \
--with-pdo-firebird=shared,/usr \
--with-interbase=shared,/usr \
--with-pdo-dblib=shared,/usr \
--with-pdo-sqlite=shared,/usr \
--with-sqlite3=shared,/usr \
--with-gd=shared,/usr
--with-webp-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-xpm-dir=/usr \
--with-freetype-dir=/usr \
--enable-exif=shared \
--with-tidy=shared,/usr \
--with-iconv=shared \
--with-xmlrpc=shared \
--enable-bcmath=shared \
--with-gmp=shared,/usr \
--enable-zip=shared \
--with-libzip=/usr \
--with-bz2=shared,/usr \
--enable-json=shared \
--enable-fileinfo=shared \
--enable-ctype=shared \
--with-recode=shared \
--enable-mbstring=shared \
--enable-mbregex \
--enable-mbregex-backtrack \
--with-pspell=shared,/usr \
--with-enchant=shared,/usr \
--enable-intl=shared \
--enable-calendar=shared \
--with-gettext=shared,/usr \
--enable-soap=shared \
--enable-ftp=shared \
--with-curl=shared,/usr \
--with-snmp=shared,/usr \
--with-ldap=shared,/usr \
--with-ldap-sasl=/usr \
--with-imap=shared,/usr \
--with-imap-ssl=yes \
--with-sodium=shared \
--enable-opcache \
--enable-huge-code-pages"
_phpextensions_fpm="\
--with-fpm-user=http \
--with-fpm-group=http \
--with-fpm-systemd \
--with-fpm-acl"
options=('!lto')
arch=("$CARCH")
checkdepends=('procps-ng' 'smtp-forwarder')
license=('PHP')
url='http://www.php.net'
################################################################################
# Prepare it
################################################################################
prepare() {
pushd "php-${pkgver}"
echo "[SED] scripts/phpize.in"
sed -E "s|(includedir[\t ]*=.*/php)|\1${_phpbase}${_suffix}|g" \
-i scripts/phpize.in
echo "[SED] scripts/phpize.m4"
sed -e "s|\[php-config\]|\[php-config${_phpbase}${_suffix}\]|g" \
-e "s|\(PHP_ARG_WITH(\[php-config\)${_phpbase}${_suffix}\]|\1]|g" \
-e "s|php-config, no|php-config${_phpbase}${_suffix}, no|g" \
-i "scripts/phpize.m4"
echo "[SED] scripts/Makefile.frag"
sed -E "s|(phpincludedir[\t ]*=.*/php)|\1${_phpbase}${_suffix}|g" \
-i scripts/Makefile.frag
echo "[SED] scripts/php-config.in"
sed -E "s|(include_dir[\t ]*=.*php)|\1${_phpbase}${_suffix}|g" \
-i scripts/php-config.in
echo "[SED] sapi/apache2handler/config.m4"
sed -e '/APACHE_THREADED_MPM=/d' \
-i sapi/apache2handler/config.m4
echo "[SED] sapi/fpm/Makefile.frag"
# sed -e 's#php-fpm\$(program_suffix)#php\$(program_suffix)-fpm#'
sed -e 's/.conf.default/.conf/g' \
-i sapi/fpm/Makefile.frag
echo "[SED] sapi/fpm/php-fpm.service.in"
sed -E "s|ExecStart[\s]?=[\s]?@([a-zA-Z_]+)@/php-fpm|ExecStart=@\1@/${_build_fpm_name}|g; \
s|PIDFile[\s]?=[\s]?@([a-zA-Z_]+)@/run/php-fpm.pid|PIDFile=/run/${_build_fpm_service_name}/php-fpm.pid|g" \
-i sapi/fpm/php-fpm.service.in
local _check_files=("sapi/fpm/www.conf.in" "sapi/fpm/php-fpm.conf.in");
for file_conf in "${_check_files[@]}"; do
if [[ ! -f $file_conf ]]; then
continue;
fi
echo "[SED] ${file_conf}"
sed -e "s#^listen =.*#listen = /run/${_build_fpm_service_name}/php-fpm.sock#" \
-e "s#run/php-fpm.pid#/run/${_build_fpm_service_name}/php-fpm.pid#" \
-e 's#^;*[ \t]*listen.owner =#listen.owner =#' \
-e 's#^;*[ \t]*listen.group =#listen.group =#' \
-e 's#^;*[ \t]*error_log =.*#error_log = syslog#' \
-e 's#^;*[ \t]*chdir =.*#;chdir = /srv/http#' \
-i "${file_conf}"
done
echo "[SED] php.ini-production"
sed -e 's#^;*[ \t]*extension_dir[\t ]*=.*/.*$#extension_dir = "___EXTENSIONDIR___"#' \
-e "s#___EXTENSIONDIR___#/usr/lib/${pkgbase}/modules#g" \
-e "s#^;*[ \t]*extension=#;extension=#g" \
-e "s#^;*[ \t]*session.save_path[\t ]*=.*#session.save_path=___SESSIONS___#g" \
-e "s#___SESSIONS___#/var/lib/${pkgbase}/sessions#g" \
-i php.ini-production
for patch_name in "${_patches[@]}"; do
echo "[PATCH] Applying source patch ${patch_name}";
patch -p1 -i "../${patch_name}"
done
./buildconf --force
rm -f tests/output/stream_isatty_*.phpt
rm -f Zend/tests/arginfo_zpp_mismatch*.phpt
rm -f Zend/tests/bug79919.phpt
popd
}
_build_sapi() {
_sapi="${1}"
_commands="${2}"
if (( _sapi == "cli" )); then
if [[ ! -d "build-${_sapi}" ]]; then
mkdir "build-${_sapi}"
fi
pushd "build-${_sapi}"
if [[ -L configure ]]; then
rm configure
fi
ln -s "../php-${pkgver}/configure"
popd
else
cp -Ta "build-cli" "build-${_sapi}"
fi
pushd "build-${_sapi}"
./configure ${_phpconfig} ${_commands}
patch -p1 -i "${srcdir}/make-tests.patch"
if (($_sapi != "cli")); then
make clean
elif ((_phpbase < 82)); then
sed -i 's/\(-Iext\/intl\/.*\)-std=c++11\(.*\)/\1-std=c++17\2/g' Makefile
fi
sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=LIBTOOL_IS_BROKED|g' \
libtool
make
popd
}
################################################################################
# BUILD them all
################################################################################
build() {
if ((_phpbase <= 80)); then
export CFLAGS="${CFLAGS} -fPIC -Wno-error=incompatible-pointer-types -Wno-implicit-function-declaration -fpermissive"
export CXXFLAGS="${CXXFLAGS} -fPIC -Wno-error=incompatible-pointer-types -std=c++17 -Wno-implicit-function-declaration -fpermissive"
else
export CFLAGS="${CFLAGS} -fPIC -Wno-error=incompatible-pointer-types"
export CXXFLAGS="${CXXFLAGS} -fPIC -Wno-error=incompatible-pointer-types -std=c++17"
fi
export EXTENSION_DIR="/usr/lib/${pkgbase}/modules"
if ((_build_forced_openssl_11)); then
export PHP_OPENSSL_DIR="/usr/lib/openssl-1.1"
export PKG_CONFIG_PATH="/usr/lib/openssl-1.1/pkgconfig"
fi
if [[ ! -z "${_cppflags}" ]]; then
CPPFLAGS+=" $_cppflags "
fi
if ((_build_ini_per_sapi)); then
# CLI
_cli_addons=''
# CGI enabled here only for tests passing, then overriden later by cgi build
_cli_addons+=" --enable-cgi "
_build_sapi "cli" "\
--sysconfdir=/${_build_sapi_ini_cli} \
--with-config-file-path=/${_build_sapi_ini_cli} \
--enable-cli \
${_phpextensions} \
${_cli_addons} \
--disable-fpm \
--disable-embed \
--disable-phpdbg \
"
# phpdbg
if ((_build_phpdbg)); then
_sapi="phpdbg"
_build_sapi "phpdbg" "\
--sysconfdir=/${_build_sapi_ini_phpdbg} \
--with-config-file-path=/${_build_sapi_ini_phpdbg} \
--disable-all \
--enable-phpdbg \
--disable-cgi \
--disable-cli \
--disable-fpm \
--disable-embed \
"
fi
# embed
_build_sapi "embed" "\
--sysconfdir=/${_build_sapi_ini_embed} \
--with-config-file-path=/${_build_sapi_ini_embed} \
--disable-all \
--enable-embed=shared \
--disable-cgi \
--disable-cli \
--disable-fpm \
--disable-phpdbg \
"
# cgi
_build_sapi "cgi" "\
--sysconfdir=/${_build_sapi_ini_cgi} \
--with-config-file-path=/${_build_sapi_ini_cgi} \
--disable-all \
--enable-cgi \
--disable-cli \
--disable-fpm \
--disable-embed \
--disable-phpdbg \
"
# litespeed
_cflags="${CFLAGS}"
export CFLAGS="${CFLAGS} -Wno-error=format-security"
_build_sapi "litespeed" "\
--sysconfdir=/${_build_sapi_ini_litespeed} \
--with-config-file-path=/${_build_sapi_ini_litespeed} \
--disable-all \
--disable-cgi \
--disable-cli \
--disable-fpm \
--disable-embed \
--disable-phpdbg \
${_build_sapi_litespeed} \
"
export CFLAGS="${_cflags}"
# fpm
_build_sapi "fpm" "\
--sysconfdir=/${_build_sapi_ini_fpm} \
--with-config-file-path=/${_build_sapi_ini_fpm} \
--disable-all \
--enable-fpm \
${_phpextensions_fpm} \
--disable-cli \
--disable-cgi \
--disable-embed \
--disable-phpdbg \
"
else
# CLI
if ((_build_phpdbg)); then
_cli_addons+=" --enable-phpdbg "
fi
_build_sapi "cli" "\
--sysconfdir=/${_build_sapi_ini_cli} \
--with-config-file-path=/${_build_sapi_ini_cli} \
--enable-cli \
${_phpextensions} \
${_cli_addons} \
--enable-fpm \
--enable-cgi \
--enable-embed=shared \
--enable-fpm \
${_phpextensions_fpm} \
${_build_sapi_litespeed} \
"
fi
# apache
_build_sapi "apache" "\
--disable-all \
--disable-cli \
--disable-cgi \
--disable-fpm \
--disable-embed \
--disable-phpdbg \
--with-apxs2 \
--sysconfdir=/${_build_sapi_ini_apache} \
--with-config-file-path=/${_build_sapi_ini_apache} \
"
}
check() {
export CFLAGS="${CFLAGS} -fPIC"
export CXXFLAGS="${CXXFLAGS} -fPIC"
pushd "build-cli"
# Check if sendmail was configured correctly (FS#47600)
export REPORT_EXIT_STATUS=1
export NO_INTERACTION=1
export SKIP_ONLINE_TESTS=1
export SKIP_SLOW_TESTS=1
export TESTS='tests Zend'
if ((_phpbase > 73)); then
export TEST_PHP_ARGS="-j$(nproc)"
fi
# Patch tests to run PHP modules in needed order
sapi/cli/php -n ../php-makefile-patcher.php Makefile
make test
popd
}
################################################################################
# Custom code
################################################################################
_install_module_ini() {
local extension=$(echo "${1}" | sed 's/\.so//')
local priority="${_priority_default}"
case "${extension}" in
"json")
priority="${_priority_json}"
;;
"xml")
priority="${_priority_xml}"
;;
"openssl")
priority="${_priority_openssl}"
;;
"mysqlnd")
priority="${_priority_mysqlnd}"
;;
"pdo")
priority="${_priority_pdo}"
;;
"opcache")
priority="${_priority_opcache}"
;;
"dom")
priority="${_priority_dom}"
;;
esac
local extension_type="extension"
case "${extension}" in
"opcache" | "xdebug")
extension_type="zend_extension"
;;
"recode")
extension_type=";extension"
;;
esac
if [[ ! -d "${pkgdir}/${_build_conf_d}" ]]; then
mkdir -p "${pkgdir}/${_build_conf_d}"
fi
echo "${extension_type}=${extension}.so" > "${pkgdir}/${_build_conf_d}/${priority}-${extension}.ini"
chmod 0644 "$pkgdir/${_build_conf_d}/${priority}-${extension}.ini"
_last_priority=${priority}
_last_extension=${extension}
}
_install_module() {
if [[ -f "build-cli/modules/${1}.so" ]]; then
install -D -m755 "build-cli/modules/${1}.so" "${pkgdir}/usr/lib/${pkgbase}/modules/${1}.so";
_install_module_ini "${1}"
else
echo "[DEBUG]: Install_module can't find ${1}.so, skipped"
fi
}
###############################################################################
# PHP: SAPI's
###############################################################################
# Main package
package_php73() {
# Binary names
pkgdesc='PHP. A general-purpose scripting language that is especially suited to web development'
depends=('zlib' 'pcre' 'libedit')
# Install session dir
install -d -m1733 "${pkgdir}/var/lib/${pkgbase}/sessions"
# conf.d dir with shared modules
install -d -m755 "${pkgdir}/${_build_conf_d}/"
pushd "build-cli"
make -j1 INSTALL_ROOT=${pkgdir} install-{modules,build,headers,programs}
# Cleanup for CGI"
rm -rf "${pkgdir}/usr/bin/${pkgbase}-cgi"
popd
pushd "${pkgdir}/usr/lib/${pkgbase}/modules/"
# remove static modules
rm -f *.a
# remove modules provided by subpackages
rm -f {enchant,imap,intl,pspell,snmp,tidy,curl,ldap,bz2,bcmath,soap,zip,gmp,dba,opcache,json,gd,mcrypt,sodium,recode}.so
rm -f {pdo_dblib,mssql}.so
rm -f {dom,simplexml,xml,xmlreader,xmlwriter,xsl,wddx,xmlrpc}.so
rm -f {pgsql,pdo_pgsql}.so
rm -f {odbc,pdo_odbc}.so
rm -f {pdo_sqlite,sqlite3}.so
rm -f {pdo_firebird.so,interbase.so}
rm -f {mysqli,pdo_mysql,mysqlnd,mysql}.so
rm -f {openssl,ffi,pcntl,ftp,calendar,ctype,fileinfo,iconv,mbstring,exif,pdo,phar,posix,shmop}.so
rm -f {sockets,tokenizer,gettext,sysvmsg,sysvsem,sysvshm}.so
popd
pushd build-cli
if (( ! _build_ini_per_sapi )); then
backup=("${_build_sapi_ini_cli}/php.ini")
install -d -m755 "${pkgdir}/${_build_sapi_ini_cli}"
install -D -m644 "../php-${pkgver}/php.ini-production" "${pkgdir}/${_build_sapi_ini_cli}/php.ini"
fi
popd
}
# Cli + phar
package_php73-cli() {
_sapi="cli"
pkgdesc="cli (command-line executable) version for ${pkgbase}"
depends=("${pkgbase}=${pkgver}")
depends+=("${_sapi_depends[@]}")
pushd "build-${_sapi}"
make -j1 INSTALL_ROOT="${pkgdir}" install-cli
make -j1 INSTALL_ROOT="${pkgdir}" install-pharcmd
if ((_build_ini_per_sapi)); then
backup=("${_build_sapi_ini_cli}/php.ini")
install -d -m755 "${pkgdir}/${_build_sapi_ini_cli}"
install -D -m644 "../php-${pkgver}/php.ini-production" "${pkgdir}/${_build_sapi_ini_cli}/php.ini"
fi
# Cleanup for CGI
rm -rf "${pkgdir}/usr/bin/${pkgbase}-cgi"
popd
}
# End cli
# CGI
package_php73-cgi() {
_sapi="cgi"
pkgdesc="CGI and FCGI SAPI for ${pkgbase}"
depends=("${pkgbase}=${pkgver}")
depends+=("${_sapi_depends[@]}")
if ((_build_ini_per_sapi)); then
pushd "build-${_sapi}"
else
pushd "build-cli"
fi
if ((_build_ini_per_sapi)); then
install -D -m644 "../php-${pkgver}/php.ini-production" "${pkgdir}/${_build_sapi_ini_cgi}/php.ini"
backup=("${_build_sapi_ini_cgi}/php.ini")
fi
make -j1 INSTALL_ROOT="${pkgdir}" install-cgi
popd
}
# CGI end
# Apache
package_php73-apache() {
_sapi="apache"
_build_mod_php_so="libphp${_suffix_so}.so"
_build_mod_php_module="php${_suffix_so}_module"
_build_build_php_script_name="php${_suffix_so}-script"
_apache_module_conf="${pkgbase}-module.conf"
pkgdesc="Apache SAPI for ${pkgbase}"
depends=("${pkgbase}=${pkgver}" 'apache')
depends+=("${_sapi_depends[@]}")
depends+=('libxcrypt');
depends+=('ncurses');
backup=("${_build_apache_cfg}/${_apache_module_conf}")
echo "# End of LoadModule in httpd.conf - see ArchWiki Apache HTTP Server"
echo "LoadModule ${_build_mod_php_module} modules/lib${pkgbase}.so"
echo "AddHandler ${_build_php_script_name} .php"
echo "# End of Include List"
echo "Include conf/extra/${_apache_module_conf}"
pushd "build-${_sapi}"
if ((_build_ini_per_sapi)); then
backup+=("${_build_sapi_ini_apache}/php.ini")
install -d -m755 "${pkgdir}/${_build_sapi_ini_apache}"
install -D -m644 "../php-${pkgver}/php.ini-production" "${pkgdir}/${_build_sapi_ini_apache}/php.ini"
fi
install -D -m755 "libs/${_build_mod_php_so}" "${pkgdir}/usr/lib/httpd/modules/lib${pkgbase}.so"
patchelf --set-soname \
"lib${pkgbase}.so" \
"${pkgdir}/usr/lib/httpd/modules/lib${pkgbase}.so"
popd
install -D -m644 "php-apache.conf" "${pkgdir}/${_build_apache_cfg}/${_apache_module_conf}"
echo "[SED] ${pkgdir}/${_build_apache_cfg}/${_apache_module_conf}"
sed -e "s#@MODULE@#${_build_mod_php_module}#" \
-i "${pkgdir}/${_build_apache_cfg}/${_apache_module_conf}"
}
# Apache end
# FPM
package_php73-fpm() {
_sapi="fpm"
install="php-fpm.install"
pkgdesc="FastCGI Process Manager for ${pkgbase}"
depends=("${pkgbase}=${pkgver}" 'systemd-libs' 'acl')
depends+=("${_sapi_depends[@]}")
backup=("${_build_sapi_ini_fpm}/php-fpm.conf")
if ((_phpbase >= 70)); then
backup+=("${_build_sapi_ini_fpm}/php-fpm.d/www.conf")
fi
options=('!emptydirs')
if ((_build_ini_per_sapi)); then
pushd "build-${_sapi}"
else
pushd "build-cli"
fi
if ((_build_ini_per_sapi)); then
backup+=("${_build_sapi_ini_fpm}/php.ini")
install -d -m755 "${pkgdir}/${_build_sapi_ini_fpm}/"
install -D -m644 "../php-${pkgver}/php.ini-production" "${pkgdir}/${_build_sapi_ini_fpm}/php.ini"
fi
make -j1 INSTALL_ROOT="${pkgdir}" install-fpm
install -D -m644 "sapi/fpm/php-fpm.service" "${pkgdir}/usr/lib/systemd/system/${_build_fpm_service_name}.service"
echo "d /run/${_build_fpm_service_name} 755 root root" > php-fpm.tmpfiles
install -D -m644 "php-fpm.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${_build_fpm_service_name}.conf"
popd
}
# FPM end
# embed sapi
package_php73-embed() {
_sapi="embed"
pkgdesc="Embedded PHP SAPI library for ${pkgbase}"
depends=("${pkgbase}=${pkgver}" 'ncurses' 'systemd-libs' 'libxcrypt' 'acl' 'ncurses')
depends+=("${_sapi_depends[@]}")
options=('!emptydirs')
if ((_build_ini_per_sapi)); then
pushd "build-${_sapi}"
else
pushd "build-cli"
fi
install -d -m755 "${pkgdir}/${_build_sapi_ini_embed}"
if ((_build_ini_per_sapi)); then
install -D -m644 "../php-${pkgver}/php.ini-production" "${pkgdir}/${_build_sapi_ini_embed}/php.ini"
backup=("${_build_sapi_ini_embed}/php.ini")
fi
make -j1 INSTALL_ROOT="${pkgdir}" PHP_SAPI=embed install-sapi
if ((_phpbase < 84)); then
mv "${pkgdir}/usr/lib/libphp${_suffix_so}.so" "${pkgdir}/usr/lib/lib${pkgbase}.so"
else
mv "${pkgdir}/usr/lib/${pkgbase}/libphp${_suffix_so}.so" "${pkgdir}/usr/lib/lib${pkgbase}.so"
fi
popd
patchelf --set-soname "lib${pkgbase}.so" "${pkgdir}/usr/lib/lib${pkgbase}.so"
}
# embed sapi end
# phpdbg sapi
package_php73-phpdbg() {
_sapi="phpdbg"
options=('!emptydirs')
pkgdesc="Interactive PHP debugger for ${pkgbase}"
depends=("${pkgbase}=${pkgver}")
depends+=("${_sapi_depends[@]}")
if ((_build_ini_per_sapi)); then
pushd "build-${_sapi}"
else
pushd "build-cli"
fi
if ((_build_ini_per_sapi)); then
backup=("${_build_sapi_ini_phpdbg}/php.ini")
install -d -m755 "${pkgdir}/${_build_sapi_ini_phpdbg}"
install -D -m644 "../php-${pkgver}/php.ini-production" "${pkgdir}/${_build_sapi_ini_phpdbg}/php.ini"
fi
make -j1 INSTALL_ROOT="${pkgdir}" "install-${_sapi}"
popd
}
# phpdbg sapi end
# litespeed sapi
package_php73-litespeed() {
_sapi="litespeed"
pkgdesc="LiteSpeed SAPI for ${pkgbase}"
depends=("${pkgbase}=${pkgver}")
depends+=("${_sapi_depends[@]}")
if ((_build_ini_per_sapi)); then
pushd "build-${_sapi}"
else
pushd "build-cli"
fi
if ((_build_ini_per_sapi)); then
install -D -m644 "../php-${pkgver}/php.ini-production" "${pkgdir}/${_build_sapi_ini_cgi}/php.ini"
backup=("${_build_sapi_ini_cgi}/php.ini")
fi
case "${_phpbase}" in
*)
install -D -m755 sapi/litespeed/php "${pkgdir}/usr/bin/ls${pkgbase}"
;;
esac
popd
}
# litespeed sapi end
###############################################################################
# PEAR + PECL
###############################################################################
# PEAR
package_php73-pear() {
pkgdesc="PHP Extension and Application Repository (PEAR) for ${pkgbase}"
depends=(
"${pkgbase}=${pkgver}"
"php${_phpbase}-xml${_suffix}=${pkgver}"
"php${_phpbase}-cli${_suffix}=${pkgver}"
"php${_phpbase}-phar${_suffix}=${pkgver}"
)
#backup=("${_build_sapi_ini_cli}/pear.conf")
install -d "${pkgdir}/usr/share/${pkgbase}/pear/htdocs"
install -d "${pkgdir}/usr/share/${pkgbase}/pear/data"
install -d "${pkgdir}/usr/share/${pkgbase}/pear/doc"
install -d "${pkgdir}/usr/share/${pkgbase}/pear/test"
install -d "${pkgdir}/usr/share/${pkgbase}/pear/cfg"
install -d "${pkgdir}/var/lib/${pkgbase}/pear/cache"
install -d "${pkgdir}/var/lib/${pkgbase}/pear/metadata"
install -d "${pkgdir}/var/lib/${pkgbase}/pear/download"
install -d "${pkgdir}/var/lib/${pkgbase}/pear/temp"
export PHP_PEAR_SYSCONF_DIR="${_build_sapi_ini_cli}"
pushd build-cli
cp "${srcdir}/php-${pkgver}/pear/install-pear-nozlib.phar" "pear/install-pear-nozlib.phar"
INSTALL_ROOT="${pkgdir}/" ./sapi/cli/php -n \
-d extension=modules/xml.so \
-d extension=modules/phar.so \
-d date.timezone=UTC -d memory_limit=64M -d short_open_tag=0 -d safe_mode=0 \
-d 'error_reporting=E_ALL&~E_DEPRECATED' -d detect_unicode=0 "pear/install-pear-nozlib.phar" \
-ds "${_phpbase}${_suffix}" \
--php "/usr/bin/${pkgbase}" \
--bin "/usr/bin" \
--man "/usr/share/man" \
--dir "/usr/share/${pkgbase}/pear" \
--data "/usr/share/${pkgbase}/pear/data" \
--doc "/usr/share/${pkgbase}/pear/doc" \
--test "/usr/share/${pkgbase}/pear/test" \
--www "/usr/share/${pkgbase}/pear/htdocs" \
--config "/usr/share/${pkgbase}/pear/cfg" \
--force
# fix pear.conf with unserialize
# first arg: path to pear.conf
# second arg: PEAR base /var path
./sapi/cli/php -n ../pear-config-patcher.php \
"${pkgdir}/${_build_sapi_ini_cli}/pear.conf" \
"/var/lib/${pkgbase}/pear"
popd
# remove unneeded files
rm -rf "${pkgdir}"/.{channels,depdb,depdblock,filemap,lock,registry}
#rename binaries
for i in pear peardev pecl; do
_target="${pkgbase/php/$i}"
# fix hardcoded paths
sed "s|PHP=php|PHP=\"/usr/bin/${pkgbase}\"|g; s|\"/usr/bin/php\"|\"/usr/bin/${pkgbase}\"|g; s| -n | |g" \
-i "${pkgdir}/usr/bin/${i}"
if [[ "$i" == "pecl" ]]; then
echo "Moving ${pkgdir}/usr/bin/${i} => ${srcdir}/${pkgbase}-pecl-bin/"
mkdir -p "${srcdir}/${pkgbase}-pecl-bin/"
mv "${pkgdir}/usr/bin/pecl" "${srcdir}/${pkgbase}-pecl-bin/"
else
echo "Moving ${pkgdir}/usr/bin/${i} => ${pkgdir}/usr/bin/${_target}"
mv "${pkgdir}/usr/bin/${i}" "${pkgdir}/usr/bin/${_target}"
fi
done
}
# PEAR end
# PECL
package_php73-pecl() {
pkgdesc="PHP Extension Community Library (PECL) for ${pkgbase}"
depends=("php${_phpbase}-pear${_suffix}=${pkgver}")
_target="${pkgbase/php/pecl}"
install -D -m755 "${srcdir}/${pkgbase}-pecl-bin/pecl" "${pkgdir}/usr/bin/${_target}"
}
###############################################################################
# PHP Modules: First need
###############################################################################
# OpenSSL
package_php73-openssl() {
pkgdesc="OpenSSL module for php73"
depends=("${_ext_depends_openssl[@]}")
_install_module openssl
}
# Json
package_php73-json() {
pkgdesc="json module for php73"
depends=("php73=${pkgver}")
_install_module json
}
# pdo
package_php73-pdo() {
pkgdesc="pdo module for php73"
depends=("php73=${pkgver}")
_install_module pdo
}
# mbstring
package_php73-mbstring() {
pkgdesc="mbstring module for php73"
depends=("${_ext_depends_mbstring[@]}")
_install_module mbstring
}
# phar
package_php73-phar() {
pkgdesc="phar module for php73"
depends=("php73=${pkgver}")
_install_module phar
}
###############################################################################
# PHP modules: XML
###############################################################################
# XML modules combined package
package_php73-xml() {
pkgdesc="xml modules for php73"
depends=("php73=${pkgver}" 'libxml2')
_install_module xml
}
package_php73-wddx() {
pkgdesc="wddx module for php73"
depends=("php${_phpbase}-xml${_suffix}=${pkgver}")
_install_module wddx
}
package_php73-simplexml() {
pkgdesc="simplexml module for php73"
depends=("php${_phpbase}-xml${_suffix}=${pkgver}")
_install_module simplexml
}
package_php73-dom() {
pkgdesc="dom module for php73"
depends=("php${_phpbase}-xml${_suffix}=${pkgver}")
_install_module dom
}
package_php73-xmlreader() {
pkgdesc="xmlreader module for php73"
depends=("php${_phpbase}-xml${_suffix}=${pkgver}")
_install_module xmlreader
}
package_php73-xmlwriter() {
pkgdesc="xmlwriter module for php73"
depends=("php${_phpbase}-xml${_suffix}=${pkgver}")
_install_module xmlwriter
}
# Tidy
package_php73-tidy() {
pkgdesc="tidy module for php73"
depends=("php73=${pkgver}" 'tidy')
_install_module tidy
}
# XSL
package_php73-xsl() {
pkgdesc="xsl module for php73"
depends=("php${_phpbase}-xml${_suffix}=${pkgver}" "php${_phpbase}-dom${_suffix}=${pkgver}")
depends+=('libxslt')
_install_module xsl
}
###############################################################################
# PHP modules: Databases
###############################################################################
# MySQL
package_php73-mysql() {
pkgdesc="MySQL modules for php73"
depends=("${_ext_depends_mysql[@]}")
_install_module mysqlnd
_install_module mysql
_install_module mysqli
_install_module pdo_mysql
}
# pdo_sqlite + sqlite3
package_php73-sqlite() {
pkgdesc="sqlite module for php73"
depends=("${_ext_depends_sqlite[@]}")
_install_module sqlite3
_install_module pdo_sqlite
}
# ODBC
package_php73-odbc() {
pkgdesc="ODBC modules for php73"
depends=("${_ext_depends_odbc[@]}")
_install_module odbc
_install_module pdo_odbc
}
# PostgreSQL
package_php73-pgsql() {
pkgdesc="PostgreSQL modules for php73"
depends=("${_ext_depends_pgsql[@]}")
_install_module pgsql
_install_module pdo_pgsql
}
# interbase
package_php73-interbase() {
pkgdesc="interbase module for php73"
depends=("php73=${pkgver}" "libfbclient")
_install_module interbase
}
# firebird
package_php73-firebird() {
pkgdesc="pdo_firebird module for php73"
depends=("${_ext_depends_firebird[@]}")
_install_module pdo_firebird
}
# pdo_dblib
package_php73-dblib() {
depends=("php73=${pkgver}" 'freetds')
pkgdesc="pdo_dblib module for php73"
_install_module pdo_dblib
}
# mssql
package_php73-mssql() {
depends=("php73=${pkgver}" 'freetds')
pkgdesc="mssql module for php73"
_install_module mssql
}
# Dba
package_php73-dba() {
pkgdesc="dba module for php73"
depends=("${_ext_depends_dba[@]}")
_install_module dba
}
###############################################################################
# PHP Modules: internationalization, text, datetime
###############################################################################
# Intl
package_php73-intl() {
pkgdesc="intl module for php73"
depends=("${_ext_depends_intl[@]}")
_install_module intl
}
# Recode
package_php73-recode() {
pkgdesc="recode module for php73"
depends=("php73=${pkgver}" 'recode')
_install_module recode
}
# gettext
package_php73-gettext() {
pkgdesc="gettext module for php73"
depends=("php73=${pkgver}")
_install_module gettext
}
# iconv
package_php73-iconv() {
pkgdesc="iconv module for php73"
depends=("php73=${pkgver}")
_install_module iconv
}
# calendar
package_php73-calendar() {
pkgdesc="calendar module for php73"
depends=("php73=${pkgver}")
_install_module calendar
}
###############################################################################
# PHP Modules: multimedia
###############################################################################
# GD
package_php73-gd() {
pkgdesc="gd module for php73"
depends=("${_ext_depends_gd[@]}")
_install_module gd
}
# exif
package_php73-exif() {
pkgdesc="exif module for php73"
depends=("php73=${pkgver}")
_install_module exif
}
# fileinfo
package_php73-fileinfo() {
pkgdesc="fileinfo module for php73"
depends=("php73=${pkgver}")
_install_module fileinfo
}
###############################################################################
# PHP modules: math
###############################################################################
# bcmath
package_php73-bcmath() {
pkgdesc="bcmath module for php73"
depends=("php73")
_install_module bcmath
}
# gmp
package_php73-gmp() {
pkgdesc="gmp module for php73"
depends=("php73=${pkgver}" 'gmp')
_install_module gmp
}
###############################################################################
# PHP modules: spell checking
###############################################################################
# Enchant
package_php73-enchant() {
pkgdesc="enchant module for php73"
depends=("php73=${pkgver}" 'enchant' 'libvoikko' 'hspell' 'hunspell' 'nuspell' 'aspell')
_install_module enchant
}
# Pspell
package_php73-pspell() {
pkgdesc="pspell module for php73"
depends=("php73=${pkgver}" 'aspell')
_install_module pspell
}
###############################################################################
# PHP modules: compression
###############################################################################
# bz2
package_php73-bz2() {
pkgdesc="bz2 module for php73"
depends=("php73=${pkgver}" 'bzip2')
_install_module bz2
}
# Zip
package_php73-zip() {
pkgdesc="zip module for php73"
depends=("php73=${pkgver}" 'libzip')
_install_module zip
}
###############################################################################
# PHP modules: network client/servers
###############################################################################
# curl
package_php73-curl() {
pkgdesc="curl module for php73"
depends=("php73=${pkgver}" "curl")
_install_module curl
}
# SOAP
package_php73-soap() {
pkgdesc="soap module for php73"
depends=("php73=${pkgver}" 'libxml2')
_install_module soap
}
# FTP
package_php73-ftp() {
pkgdesc="FTP module for php73"
depends=("${_ext_depends_ftp[@]}")
_install_module ftp
}
# ldap
package_php73-ldap() {
pkgdesc="ldap module for php73"
depends=("php73=${pkgver}" 'libldap' 'libsasl')
_install_module ldap
}
# SNMP
package_php73-snmp() {
pkgdesc="snmp module for php73"
depends=("${_ext_depends_snmp[@]}")
_install_module snmp
}
# XML-RPC
package_php73-xmlrpc() {
pkgdesc="xmlrpc module for php73"
depends=("php73=${pkgver}" 'libxml2')
_install_module xmlrpc
}
# Imap
package_php73-imap() {
pkgdesc="imap module for php73"
depends=("${_ext_depends_imap[@]}")
_install_module imap
}
# sockets
package_php73-sockets() {
pkgdesc="sockets module for php73"
depends=("php73=${pkgver}")
_install_module sockets
}
###############################################################################
# PHP Modules: cryptography
###############################################################################
# Sodium
package_php73-sodium() {
pkgdesc="sodium (libsodium) module for php73"
depends=("php73=${pkgver}" "libsodium")
_install_module sodium
}
# Mcrypt
package_php73-mcrypt() {
pkgdesc="mcrypt module for php73"
depends=("php73=${pkgver}" 'libmcrypt')
_install_module mcrypt
}
###############################################################################
# PHP Zend modules: opcache/jit
###############################################################################
# Opcache
package_php73-opcache() {
pkgdesc="opcache zend module for php73"
depends=("php73=${pkgver}")
_install_module opcache
}
###############################################################################
# PHP posix, pcntl, shmop and System V modules
###############################################################################
# posix
package_php73-posix() {
pkgdesc="posix module for php73"
depends=("php73=${pkgver}")
_install_module posix
}
# pcntl
package_php73-pcntl() {
pkgdesc="pcntl module for php73"
depends=("php73=${pkgver}")
_install_module pcntl
}
# shmop
package_php73-shmop() {
pkgdesc="shmop module for php73"
depends=("php73=${pkgver}")
_install_module shmop
}
# sysvmsg
package_php73-sysvmsg() {
pkgdesc="sysvmsg module for php73"
depends=("php73=${pkgver}")
_install_module sysvmsg
}
# sysvsem
package_php73-sysvsem() {
pkgdesc="sysvsem module for php73"
depends=("php73=${pkgver}")
_install_module sysvsem
}
# sysvshm
package_php73-sysvshm() {
pkgdesc="sysvshm module for php73"
depends=("php73=${pkgver}")
_install_module sysvshm
}
###############################################################################
# PHP Misc modules
###############################################################################
# Ffi
package_php73-ffi() {
pkgdesc="ffi module for php73"
depends=("php73=${pkgver}" 'libffi')
_install_module ffi
}
# ctype
package_php73-ctype() {
pkgdesc="ctype module for php73"
depends=("php73=${pkgver}")
_install_module ctype
}
# tokenizer
package_php73-tokenizer() {
pkgdesc="tokenizer module for php73"
depends=("php73=${pkgver}")
_install_module tokenizer
}
# libedit/readline
package_php73-readline() {
pkgdesc="readline (libedit version) module for php73"
depends=("php73=${pkgver}" 'libedit')
_install_module readline
}
sha256sums=('e6b8530d747000eebb0089249ec70a3b14add7b501337046700544883f62b17b'
'ba72fc64f77822755a469314160d5889d5298f4eb5758dd7939dac9b811afe52'
'6d0ad9becb5470ce8e5929d7d45660b0f32579038978496317544c5310281a91'
'0b7e98dca9c996ec10cb9b3f6296bb7547c68797fd5f35006fdfd3e97700672d'
'166eaccde933381da9516a2b70ad0f447d7cec4b603d07b9a916032b215b90cc'
'b5a6b99214dce395a058f40bffee50511adaf58ee84ee6fbb7ca7bdc3c07cb3c'
'e757f84d2d72ea39259450c32f3a83c72262da4294152ae3e9fbc0cada622bba'
'b913755c16e33615bbe820fb6c7e4d5dcd87ca69828af6ca94fcf2ee8c98b31e'
'c397a96905011907a2efa51dc9ea447dcf1a204f24fb190b9be156dbaae15dde'
'ee6529d441b2446d784e80aba23aa956541e541bd73ad54aee480d4a1a6117ca'
'aecd8dff7022e956718407a5b98dec19acdceef08b0a58e7266b483bc3845de6'
'd175f0c14fdb22855090c93f76e18f04320d7bf15afc057ffde947f9bb361242'
'f5ae925036744a5e88cea2698879aea0498e1e23aee7801923d90f16be383908'
'0a3a6e8ff04ff1e0869befcf2c7bca4e886d94065da6d7a10b809a4750b961a0'
'52c5a93fb03fa8f3f99438eb803b3182766ee04e0e6b76f00b0bc848d03ff6a6'
'3049b76460c65a70017ba2aac8f8c45725df2bbea458a96ec7164db63639e87f'
'e07ebf146cea8e734c7704ba94f18279642df2b2f09d868781746d165041b8d5'
'68517bf6fd6ab2890877252f4233f1f7134b412b29d2dba20ef14d6fd1ac368b'
'c9f3b0dff07a7e9688f60b92a2a15817bd7cd59a8c5278cae629d856be66de5c'
'398486597b10dcd388dfb45486e575023d0b4b78ef0d6d0f3404826829300cdf'
'558e780e93dfa861a366c49b4d156d8fc43f17898f001ae6033ec63c33d5d41c'
'40bcc1e5058602302198d0925e431495391d8469499593af477f59d84d32f764'
'1cb8f76b465e3c5cd383450bc1f898859f58270d3645fb7405f93d0e06cddac7')
|