-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp.yaml
243 lines (227 loc) · 6.75 KB
/
php.yaml
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
package:
name: php
version: 8.2.7
epoch: 1
description: "the PHP programming language"
copyright:
- license: PHP-3.01
dependencies:
runtime:
- libxml2
environment:
contents:
repositories:
- https://packages.wolfi.dev/bootstrap/stage3
- https://packages.wolfi.dev/os
keyring:
- https://packages.wolfi.dev/bootstrap/stage3/wolfi-signing.rsa.pub
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
packages:
- build-base
- busybox
- file
- bison
- libtool
- ca-certificates-bundle
- bzip2-dev
- libxml2-dev
- curl-dev
- openssl-dev
- readline-dev
- sqlite-dev
- libsodium-dev
- libpng-dev
- libjpeg-dev
- libavif-dev
- libwebp-dev
- libxpm-dev
- libx11-dev
- freetype-dev
- gmp-dev
- icu-dev
- openldap-dev
- oniguruma-dev
- libxslt-dev
- postgresql-15-dev
- zip
pipeline:
- uses: fetch
with:
uri: https://www.php.net/distributions/php-${{package.version}}.tar.gz
expected-sha256: 7046f939f0e5116285341d55c06af1d50907e107ac2c70defc32ef880f88cde4
extract: false
- name: Prepare Build Folder
runs: |
set -x
mv php-${{package.version}}.tar.gz $HOME/
tar zxf $HOME/php-${{package.version}}.tar.gz
- name: Configure
runs: |
set -x
cd $HOME/php-${{package.version}}
EXTENSION_DIR=/usr/lib/php/modules ./configure \
--prefix=/usr \
--libdir=/usr/lib/php \
--datadir=/usr/share/php \
--sysconfdir=/etc/php \
--localstatedir=/var \
--with-layout=GNU \
--with-pic \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
--enable-cli \
--enable-ctype=shared \
--enable-bcmath=shared \
--with-curl=shared \
--enable-dom=shared \
--enable-fileinfo=shared \
--with-iconv=shared \
--with-openssl=shared \
--with-readline \
--with-sodium=shared \
--enable-fpm \
--with-pear \
--enable-gd=shared \
--with-avif \
--with-freetype \
--with-jpeg \
--with-webp \
--with-xpm \
--disable-gd-jis-conv \
--with-libxml \
--enable-phar=shared \
--enable-mbstring=shared \
--with-mysqli=shared \
--with-mysql-sock=/run/mysqld/mysqld.sock \
--enable-mysqlnd=shared \
--enable-pdo=shared \
--with-pdo-mysql=shared,mysqlnd \
--with-pdo-sqlite=shared \
--enable-pcntl=shared \
--enable-sockets=shared \
--with-bz2=shared \
--enable-calendar=shared \
--enable-exif=shared \
--with-gettext=shared \
--with-gmp=shared \
--enable-intl=shared \
--with-ldap=shared \
--enable-opcache=shared \
--enable-soap=shared \
--with-xsl=shared \
--with-zlib \
--enable-xml=shared \
--enable-simplexml=shared \
--enable-xml=shared \
--enable-xmlreader=shared \
--enable-xmlwriter=shared \
--enable-posix=shared \
--with-pgsql=shared
- uses: autoconf/make
with:
dir: $HOME/php-${{package.version}}
- name: Make Install
runs: |
set -x
cd $HOME/php-${{package.version}}
INSTALL_ROOT=${{targets.destdir}} DESTDIR=${{targets.destdir}} make install
- uses: strip
- name: Copy configuration
runs: |
mkdir -p "${{targets.destdir}}/etc/php/conf.d"
mv $HOME/php-${{package.version}}/php.ini-production ${{targets.destdir}}/etc/php/php.ini
data:
- name: extensions
items:
bz2: Bzip2
curl: cURL
gd: GD imaging
gmp: GNU GMP support
ldap: LDAP
mysqlnd: MySQLnd
openssl: OpenSSL
pdo_mysql: MySQL driver for PDO
pdo_sqlite: SQLite 3.x driver for PDO
soap: SOAP
sodium: Sodium
calendar: Calendar
exif: EXIF
gettext: GetText
intl: Internationalization
mbstring: Multibyte String Functions
opcache: Opcache
pcntl: pcntl
pdo: PHP Data Objects
phar: PHP Archive
sockets: Sockets
xsl: XSL
bcmath: BC Math
ctype: ctype
iconv: Iconv
dom: DOM
pgsql: PostgreSQL
posix: Posix
simplexml: SimpleXML
mysqli: MySQLi
xml: XML
xmlreader: XMLReader
xmlwriter: XMLWriter
fileinfo: fileinfo
subpackages:
- range: extensions
name: "php-${{range.key}}"
description: "The ${{range.value}} extension"
pipeline:
- runs: |
export EXTENSIONS_DIR=usr/lib/php/modules
export CONF_DIR="${{targets.subpkgdir}}/etc/php/conf.d"
mkdir -p "${{targets.subpkgdir}}"/$EXTENSIONS_DIR $CONF_DIR
mv "${{targets.destdir}}/$EXTENSIONS_DIR/${{range.key}}.so" \
"${{targets.subpkgdir}}/$EXTENSIONS_DIR/${{range.key}}.so"
prefix=
[ "${{range.key}}" != "opcache" ] || prefix="zend_"
echo "${prefix}extension=${{range.key}}.so" > $CONF_DIR/"${{range.key}}.ini"
- name: php-dev
description: PHP 8.2 development headers
pipeline:
- uses: split/dev
- name: php-cgi
description: PHP 8.2 CGI
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
mv ${{targets.destdir}}/usr/bin/php-cgi ${{targets.subpkgdir}}/usr/bin/
- name: php-dbg
description: Interactive PHP Debugger
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
mv ${{targets.destdir}}/usr/bin/phpdbg ${{targets.subpkgdir}}/usr/bin/
- name: php-fpm
description: PHP 8.2 FastCGI Process Manager (FPM)
pipeline:
- runs: |
set -x
mkdir -p ${{targets.subpkgdir}}/usr/sbin ${{targets.subpkgdir}}/etc/php/php-fpm.d
mv ${{targets.destdir}}/usr/sbin/php-fpm ${{targets.subpkgdir}}/usr/sbin/
mv ${{targets.destdir}}/etc/php/php-fpm.conf.default ${{targets.subpkgdir}}/etc/php/php-fpm.conf
mv ${{targets.destdir}}/etc/php/php-fpm.d/www.conf.default ${{targets.subpkgdir}}/etc/php/php-fpm.d/www.conf \
&& { \
echo '[global]'; \
echo 'error_log = /proc/self/fd/2'; \
echo 'daemonize = no'; \
echo; \
echo '[www]'; \
echo 'listen = [::]:9000'; \
echo 'access.log = /proc/self/fd/2'; \
echo; \
echo 'clear_env = no'; \
echo; \
echo 'catch_workers_output = yes'; \
echo; \
echo 'decorate_workers_output = no'; \
} | tee ${{targets.subpkgdir}}/etc/php/php-fpm.d/zz-apko.conf
update:
enabled: true
release-monitor:
identifier: 3627