<?xml version="1.0"?>
<package name="php">
	<description>PHP</description>
	<releases>
		<release version="8.5.8" revision="1">
			<deps>
				<dep name="bzip2"/>
				<dep name="curl"/>
				<dep name="freetype"/>
				<dep name="gmp"/>
				<dep name="httpd"/>
				<dep name="icu"/>
				<dep name="jpeg"/>
				<dep name="libpng"/>
				<dep name="libwebp"/>
				<dep name="libxml2"/>
				<dep name="libxslt"/>
				<dep name="libzip"/>
				<dep name="mariadb"/>
				<dep name="oniguruma"/>
				<dep name="openldap"/>
				<dep name="openssl"/>
				<dep name="postgresql"/>
				<dep name="readline"/>
				<dep name="unzip"/>
				<dep name="zlib"/>
			</deps>
			<build>
				<script>
					<archive name="$NAME-$VERSION">
						<cmd>./configure --with-layout=GNU --with-apxs2=/usr/bin/apxs --with-config-file-path=/etc --disable-cgi --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --enable-exif --enable-ftp --with-gmp --enable-intl --with-ldap --with-gettext --with-mysqli --with-pdo-mysql=mysqlnd --with-curl=/usr --with-jpeg=/usr --with-freetype=/usr --with-pgsql=/usr --with-readline=/usr --with-xsl --with-iconv --enable-mbstring=all --enable-mbregex --enable-soap --enable-pcntl --with-pear --enable-gd --with-zip --with-webp</cmd>
						<cmd>make</cmd>
						<cmd>make install</cmd>
						<cmd>sed -i "/php_module/d" /etc/apache2/httpd.conf</cmd>
						<cmd>rm -f /etc/apache2/httpd.conf.bak</cmd>
						<cmd>mkdir -p $DOCDIR</cmd>
						<cmd>cp -v php.ini-production $DOCDIR/php.ini.paldo</cmd>
						<install name="php.conf-20230509" dest="/usr/lib/apache2/conf.modules.d/php.conf"/>
					</archive>
					<archive name="Log-1.13.1">
						<cmd>rm -f ../packages.xml</cmd>
						<cmd>cp -a Log.php Log /usr/share/pear/PEAR/</cmd>
					</archive>
				</script>
				<ignore>
					<file>/etc/apache2/httpd.conf</file>
				</ignore>
			</build>
			<config>
				<configfile default="$DOCDIR/php.ini.paldo" dest="/etc/php.ini"/>
			</config>
		</release>
	</releases>
</package>
