Browse Source

fake:


			
			
				rocklinux
			
			
		
fake 20 years ago
parent
commit
be2ae21639
3 changed files with 17 additions and 16 deletions
  1. +6
    -4
      package/alessandro/php/config.in
  2. +9
    -10
      package/alessandro/php/php.conf
  3. +2
    -2
      package/alessandro/php/php.desc

+ 6
- 4
package/alessandro/php/config.in

@ -23,16 +23,18 @@
if pkgcheck php X ; then
menu_begin MENU_PKG_PHP 'PHP Package Options'
bool 'Force usage of shared modules' ROCKCFG_PKG_PHP_FORCESHARED 0
bool 'Build PHP with Mysql support' ROCKCFG_PKG_PHP_mysql 0
for xpkg in postgresql openldap openssl ; do
for xpkg in postgresql openssl mysql libgd ; do
if pkgcheck $xpkg X ; then
bool "Build PHP with $xpkg support" ROCKCFG_PKG_PHP_$xpkg 0
bool "Build PHP with $xpkg support" ROCKCFG_PKG_PHP_$xpkg 1
fi
done
if pkgcheck pine X ; then
bool "Build PHP with imap support" ROCKCFG_PKG_PHP_imap 1
fi
bool "Build PHP with mcrypt support" ROCKCFG_PKG_PHP_mcrypt 0
bool "Build PHP with mhash support" ROCKCFG_PKG_PHP_mhash 0
bool "Build PHP with gd support" ROCKCFG_PKG_PHP_gd 0
menu_end
fi

+ 9
- 10
package/alessandro/php/php.conf

@ -23,7 +23,7 @@
var_append extraconfopt " " "--with-apxs2=$root/opt/apache/sbin/apxs"
var_append extraconfopt " " "--with-zlib --with-bz2"
if [ "$ROCKCFG_PKG_PHP_mysql" = 1 ] ; then
if [ "$ROCKCFG_PKG_PHP_mysql" == 1 ] ; then
if [ "$ROCKCFG_PKG_PHP_FORCESHARED" -eq 1 ]; then
pkg_php_shared="=$root/${pkg_mysql_prefix}"
elif pkginstalled mysql; then
@ -34,17 +34,16 @@ if [ "$ROCKCFG_PKG_PHP_mysql" = 1 ] ; then
var_append extraconfopt " " "--with-mysql$pkg_php_shared"
fi
[ "$ROCKCFG_PKG_PHP_postgresql" = 1 ] && var_append extraconfopt " " "--with-pgsql=$root/${pkg_postgresql_prefix}"
[ "$ROCKCFG_PKG_PHP_openldap" = 1 ] && var_append extraconfopt " " "--with-ldap=$root/${pkg_openldap_prefix}"
[ "$ROCKCFG_PKG_PHP_openssl" = 1 ] && var_append extraconfopt " " "--with-openssl"
[ "$ROCKCFG_PKG_PHP_postgresql" == 1 ] && var_append extraconfopt " " "--with-pgsql=$root/${pkg_postgresql_prefix}"
[ "$ROCKCFG_PKG_PHP_openldap" == 1 ] && var_append extraconfopt " " "--with-ldap=$root/${pkg_openldap_prefix}"
[ "$ROCKCFG_PKG_PHP_openssl" == 1 ] && var_append extraconfopt " " "--with-openssl"
[ "$ROCKCFG_PKG_PHP_mcrypt" = 1 ] && var_append extraconfopt " " "--with-mcrypt"
[ "$ROCKCFG_PKG_PHP_mcrypt" = 1 ] && var_append extraconfopt " " "--with-mhash"
[ "$ROCKCFG_PKG_PHP_gd" = 1 ] && var_append extraconfopt " " "--with-gd"
[ "$ROCKCFG_PKG_PHP_mcrypt" == 1 ] && var_append extraconfopt " " "--with-mcrypt"
[ "$ROCKCFG_PKG_PHP_mcrypt" == 1 ] && var_append extraconfopt " " "--with-mhash"
[ "$ROCKCFG_PKG_PHP_libgd" == 1 ] && var_append extraconfopt " " "--with-gd"
pkginstalled courier-imap || pkginstalled bincimap && \
var_append extraconfopt " " "--with-imap" \
&& pkginstalled openssl && var_append extraconfopt " " "--with-imap-ssl"
[ "$ROCKCFG_PKG_PHP_imap" == 1 ] && var_append extraconfopt " " "--with-imap"
[ "$ROCKCFG_PKG_PHP_imap" == 1 -a "$ROCKCFG_PKG_PHP_openssl" == 1 ] && var_append extraconfopt " " "--with-imap-ssl" ;
pkginstalled libxml2 && var_append extraconfopt " " "--with-dom"
pkginstalled libxslt && var_append extraconfopt " " "--with-dom-xslt"

+ 2
- 2
package/alessandro/php/php.desc

@ -36,8 +36,8 @@
[L] OpenSource
[S] Stable
[V] 4.3.9
[V] 4.3.10
[P] X -?---5---9 178.300
[D] 2335548844 php-4.3.9.tar.bz2 http://static.php.net/www.php.net/distributions/
[D] 1523172590 php-4.3.10.tar.bz2 http://static.php.net/www.php.net/distributions/

Loading…
Cancel
Save