sm-spell-submit AT lists.ibiblio.org
Subject: Submit list for new spells
List archive
Re: [SM-Spell-Submit] Updates for pcre (few changes), postgresql and php (many changes)
- From: "Sergey A. Lipnevich" <sergey AT optimaltec.com>
- To: "Julian v. Bock" <julian AT openit.de>, sm-spell-submit <sm-spell-submit AT lists.ibiblio.org>
- Cc:
- Subject: Re: [SM-Spell-Submit] Updates for pcre (few changes), postgresql and php (many changes)
- Date: Tue, 03 Jun 2003 18:15:52 -0400
My apologies, here's the correct PHP patch (./configure switch for PCRE has changed).
Sergey A. Lipnevich wrote:
Hi Julian,
Could you please review these? Regarding PostgreSQL and PHP changes, I've been running the spells changed like this for months, so they're pretty stable. BTW, I did find how to make p4 generate diffutils-compliant difference using P4DIFF variable, so you can actually apply these to your working copy of the grimoire.
==== //sgl/devel/grimoire/devel/php/BUILD#8 -
/home/sergey/smgl-p4/devel/grimoire/devel/php/BUILD ====
--- /tmp/tmp.22375.0 2003-06-03 18:13:49.000000000 -0400
+++ /home/sergey/smgl-p4/devel/grimoire/devel/php/BUILD 2003-06-03
18:01:30.000000000 -0400
@@ -1,54 +1,52 @@
(
-
- if spell_installed apache ||
- spell_installed apache-mod_ssl
- then WITH_APACHE="--with-apxs"
- elif spell_installed apache2
- then WITH_APACHE="--with-apxs2" &&
- patch -p0 < $SCRIPT_DIRECTORY/php.apache2.diff
- fi
-
- if spell_installed xfree86
- then ARGS="$ARGS --with-xpm-dir=/usr/X11R6"
+ if httpd -v | grep -q "Apache/2\."; then
+ message "${MESSAGE_COLOR}Configuring for Apache 2.x${DEFAULT_COLOR}" &&
+ OPTS="$OPTS --with-apxs2"
+ else
+ message "${MESSAGE_COLOR}Configuring for Apache 1.x${DEFAULT_COLOR}" &&
+ OPTS="$OPTS --with-apxs"
+ fi &&
+
+ if [ "$php_SAFEMODE" == "y" ]; then
+ OPTS="$OPTS --enable-safe-mode"
+ fi &&
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-exec-dir=/usr/bin \
+ --with-config-file-path=/etc \
+ --enable-cli \
+ --disable-static \
+ --disable-debug \
+ --disable-rpath \
+ --enable-inline-optimization \
+ --enable-pic \
+ --enable-bcmath \
+ --enable-magic-quotes \
+ --enable-sysvsem \
+ --enable-sysvshm \
+ --enable-force-cgi-redirect \
+ --enable-yp \
+ --enable-ftp \
+ --enable-wddx \
+ --enable-filepro \
+ --enable-dbase \
+ --enable-sockets \
+ --enable-calendar \
+ --with-regex=system \
+ --with-versioning \
+ --with-mod_charset \
+ --with-pear \
+ --with-layout=GNU \
+ --with-x-includes=/usr/X11/include \
+ --with-x-libraries=/usr/X11/lib \
+ $OPTS &&
+ make &&
+ prepare_install &&
+ make install &&
+ if ! [ -e /etc/php.ini ]; then
+ cp php.ini-dist /etc/php.ini
fi
- patch -p0 < $SCRIPT_DIRECTORY/php.ldap.diff &&
-
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --with-exec-dir=/usr/bin \
- --with-config-file-path=/etc \
- --disable-static \
- --disable-debug \
- --disable-rpath \
- --enable-inline-optimization \
- --enable-pic \
- --enable-bcmath \
- --enable-magic-quotes \
- --enable-sysvsem \
- --enable-sysvshm \
- --enable-force-cgi-redirect \
- --enable-yp \
- --enable-ftp \
- --enable-wddx \
- --enable-filepro \
- --enable-dbase \
- --with-regex=system \
- --with-versioning \
- --with-mod_charset \
- --with-layout=GNU \
- --with-zlib \
- --with-x-includes=/usr/X11/include \
- --with-x-libraries=/usr/X11/lib \
- $WITH_APACHE \
- $OPTS &&
- make &&
- prepare_install &&
- make install &&
- if ! [ -e /etc/php.ini ]
- then cp php.ini-dist /etc/php.ini
- fi
-
-
) > $C_FIFO 2>&1
==== //sgl/devel/grimoire/devel/php/CONFIGURE#7 -
/home/sergey/smgl-p4/devel/grimoire/devel/php/CONFIGURE ====
--- /tmp/tmp.22375.1 2003-06-03 18:13:49.000000000 -0400
+++ /home/sergey/smgl-p4/devel/grimoire/devel/php/CONFIGURE 2003-06-03
17:50:25.000000000 -0400
@@ -1,24 +1,18 @@
-if ! grep -q CONFIGURED $SPELL_CONFIG; then
-
- if query "Is MySQL already intalled? If yes, answer y now and n when
asked again" y
- then echo 'OPTS="$OPTS --with-mysql=/usr"' >> $SPELL_CONFIG
- fi
-
- if query "Enable sockets support (experimental)?" y
- then echo 'OPTS="$OPTS --enable-sockets"' >> $SPELL_CONFIG
+function configure_set_bool() {
+ if [ -z "$1" ] || [ -z "$2" ]; then
+ return
fi
- if query "Enable PHP variable tracking?" y
- then echo 'OPTS="$OPTS --enable-track-vars"' >> $SPELL_CONFIG
+ if ! grep -q "$1=" $SPELL_CONFIG; then
+ local VALUE="$1=n"
+ query "$2" "${3:-y}" && VALUE="$1=y"
+ echo "$VALUE" >> $SPELL_CONFIG
fi
+}
- if query "Enable PHP safe mode?" y
- then echo 'OPTS="$OPTS --enable-safe-mode"' >> $SPELL_CONFIG
- fi
+if ! grep -q CONFIGURED $SPELL_CONFIG; then
- if query "Enable PHP transparent session id?" y
- then echo 'OPTS="$OPTS --enable-trans-sid"' >> $SPELL_CONFIG
- fi
+ configure_set_bool php_SAFEMODE "Enable PHP safe mode?" n
if query "Do you want imap support?" n
then echo 'OPTS="$OPTS --with-imap"' >> $SPELL_CONFIG
@@ -32,6 +26,6 @@
then requires mail-transport-agent
fi
- echo 'CONFIGURED="y"' >> $SPELL_CONFIG
+ echo 'CONFIGURED=y' >> $SPELL_CONFIG
fi
==== //sgl/devel/grimoire/devel/php/DEPENDS#9 -
/home/sergey/smgl-p4/devel/grimoire/devel/php/DEPENDS ====
--- /tmp/tmp.22375.2 2003-06-03 18:13:49.000000000 -0400
+++ /home/sergey/smgl-p4/devel/grimoire/devel/php/DEPENDS 2003-06-03
18:06:18.000000000 -0400
@@ -1,28 +1,105 @@
-depends zlib &&
+requires webserver &&
-optional_depends "pspell" "--with-pspell" "" "for spelling
functions" &&
-optional_depends "bzip2" "--with-bz2" "" "for compression
support" &&
-optional_depends "mhash" "--with-mhash" "" "for hash functions
support" &&
-optional_depends "mcrypt" "--with-mcrypt" "" "for crypto
library" &&
-optional_depends "curl" "--with-curl" "" "for transferring
files using URL syntax" &&
-optional_depends "gmp" "--with-gmp" "" "GNU multi
precision library support" &&
-optional_depends "openssl" "--with-openssl" "" "for OpenSSL
support" &&
-optional_depends "gettext" "--with-gettext" "" "for GNU gettext
support" &&
-optional_depends "postgresql" "--with-pgsql=/usr" "" "for native
Postgresql support" &&
-optional_depends "mysql" "--with-mysql=/usr" "" "for native MySQL
support" &&
-optional_depends "gdbm" "--with-gdbm" "" "database routines
that use extensible hashing" &&
-optional_depends "mm" "--with-mm" "" "for sharing memory
between related processes" &&
-optional_depends "openldap" "--with-ldap" "" "for LDAP support"
&&
-
-optional_depends "expat" "--with-xml --with-expat-dir=/usr" ""
"expat is a XML parsing library" &&
-optional_depends "t1lib" "--with-t1lib=/usr/share/t1lib" "" "for
t1lib support" &&
-
-optional_depends "gd" \
- "--with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr
--with-png-dir=/usr \
- --with-freetype-dir=/usr/lib " \
- "" "for on the fly graphics creation" &&
-
-optional_depends "apache" "" "" "for Apache 1.3.x
support" &&
-optional_depends "apache-mod_ssl" "" "" "for Apache 1.3.x support
with SSL" &&
-optional_depends "apache2" "" "" "for Apache 2.0.x support
(experimental)" &&
-optional_depends "httpd-dev" "" "" "for Apache devel snapshot
support (experimental)"
+optional_depends zlib \
+ '--with-zlib --with-zlib-dir=/usr' \
+ '--without-zlib' \
+ 'for LZ compression support' &&
+optional_depends bzip2 \
+ '--with-bz2=/usr' \
+ '--without-bz2' \
+ 'for compression support' &&
+optional_depends pspell \
+ '--with-pspell=/usr' \
+ '--without-pspell' \
+ 'for spelling functions' &&
+optional_depends mhash \
+ '--with-mhash=/usr' \
+ '--without-mhash' \
+ 'for hash functions support' &&
+optional_depends mcrypt \
+ '--with-mcrypt=/usr' \
+ '--without-mcrypt' \
+ 'for crypto library' &&
+optional_depends curl \
+ '--with-curl=/usr' \
+ '--without-curl' \
+ 'for transferring files using URL syntax' &&
+optional_depends gmp \
+ '--with-gmp=/usr' \
+ '--without-gmp' \
+ 'GNU multi precision library support' &&
+optional_depends openssl \
+ '--with-openssl=/usr' \
+ '--without-openssl' \
+ 'for OpenSSL support' &&
+optional_depends gettext \
+ '--with-gettext=/usr' \
+ '--without-gettext' \
+ 'for GNU gettext support' &&
+optional_depends pcre \
+ '--with-pcre-regex=/usr' \
+ '--without-pcre-regex' \
+ 'for Perl regex support' &&
+optional_depends postgresql \
+ '--with-pgsql=/usr' \
+ '--without-pgsql' \
+ 'for native Postgresql support' &&
+optional_depends mysql \
+ '--with-mysql=/usr' \
+ '--without-mysql' \
+ 'for native MySQL support' &&
+optional_depends gdbm \
+ '--with-gdbm=/usr' \
+ '--without-gdbm' \
+ 'database routines that use extensive hashing' &&
+optional_depends mm \
+ '--with-mm=/usr' \
+ '--without-mm' \
+ 'for sharing memory between related processes' &&
+optional_depends openldap \
+ '--with-ldap=/usr' \
+ '--without-ldap' \
+ 'for LDAP support' &&
+optional_depends libiconv \
+ '--with-iconv-dir=/usr --with-xmlrpc' \
+ '--without-iconv' \
+ 'for iconv() support' &&
+optional_depends expat \
+ '--enable-xml --with-expat-dir=/usr' \
+ '--disable-xml' \
+ 'for XML parsing' &&
+optional_depends Sablot \
+ '--enable-xslt --with-xslt-sablot=/usr' \
+ '--disable-xslt' \
+ 'for XSLT support' &&
+optional_depends libxml2 \
+ '--with-dom=/usr' \
+ '--without-dom' \
+ 'for DOM XML support' &&
+optional_depends libxslt \
+ '--with-dom-xslt=/usr --with-dom-exslt=/usr' \
+ '--without-dom-xslt --without-dom-exslt' \
+ 'for DOM XSLT support' &&
+optional_depends t1lib \
+ '--with-t1lib=/usr/share/t1lib' \
+ '--without-tlib' \
+ 'for t1lib support' &&
+optional_depends jpeg \
+ '--with-jpeg-dir=/usr' \
+ '--without-jpeg-dir' \
+ 'for JPEG support (also required for GD)' &&
+optional_depends libpng \
+ '--with-png-dir=/usr' \
+ '--without-png-dir' \
+ 'for PNG support (also required for GD)' &&
+optional_depends gd
\
+ '--with-gd --enable-gd-native-ttf
--with-freetype-dir=/usr/lib' \
+ '--without-gd'
\
+ 'for on the fly graphics creation (GD support)'
&&
+optional_depends xfree86 \
+ '--with-xpm-dir=/usr/X11R6' \
+ '' \
+ 'for XFree86 support'
+
+#imap_ssl=$(spell_installed openssl && echo '--with-imap-ssl')
+#optional_depends imap "--with-imap $imap_ssl" '--without-imap' 'for IMAP
protocol support'
==== //sgl/devel/grimoire/devel/php/DETAILS#12 -
/home/sergey/smgl-p4/devel/grimoire/devel/php/DETAILS ====
--- /tmp/tmp.22375.3 2003-06-03 18:13:49.000000000 -0400
+++ /home/sergey/smgl-p4/devel/grimoire/devel/php/DETAILS 2003-06-03
17:49:57.000000000 -0400
@@ -1,14 +1,14 @@
- SPELL=php
- VERSION=4.3.1
- SOURCE=$SPELL-$VERSION.tar.gz
+ SPELL=php
+ VERSION=4.3.2
+ SOURCE=$SPELL-$VERSION.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
SOURCE_URL[0]=http://www.php.net/distributions/$SOURCE
- MD5[0]=6f2d655ad590957f8db3191c11e920ab
+ MD5[0]=a7d663c63c5f59f7d1ac36426d3c679e
LICENSE[0]=http://www.php.net/license/3_0.txt
- WEB_SITE=http://www.php.net
+ WEB_SITE=http://www.php.net/
ENTERED=20011024
- UPDATED=20020514
- SHORT="php is the personal home page scripting language."
+ UPDATED=20030223
+ SHORT='PHP is the Personal Home Page scripting language'
cat << EOF
PHP is a widely-used Open Source general-purpose scripting language
that is especially suited for Web development and can be embedded
==== //sgl/devel/grimoire/devel/php/HISTORY#22 -
/home/sergey/smgl-p4/devel/grimoire/devel/php/HISTORY ====
--- /tmp/tmp.22375.4 2003-06-03 18:13:50.000000000 -0400
+++ /home/sergey/smgl-p4/devel/grimoire/devel/php/HISTORY 2003-02-23
19:05:34.000000000 -0500
@@ -26,6 +26,21 @@
* CONFIGURE: imap build fix (thanks to Eric Sandall).
+2002-11-11 Sergey Lipnevich <sergeyli AT pisem.net>
+
+ "Variable tracking" and "transparent session id" removed
because
+ these options are not supported by ./configure anymore.
+ "Socket support" option integrated into BUILD.
+ Enabled calendar functions.
+ Safe mode disabled by default because otherwise PEAR might
have
+ problems installing itself at the end of installation routine.
+
+2002-10-10 Sergey Lipnevich <sergeyli AT pisem.net>
+
+ Introduced optional dependency on Sablotron for XSLT support,
+ adjusted IMAP support option to account for situation where
+ IMAP client library is compiled with SSL support.
+
2002-10-09 Julian v. Bock <julian AT wongr.net>
* php.apache2.diff: update for apache2. thanks to Eric
Sandall.
==== //sgl/devel/grimoire/devel/php/POST_INSTALL#5 -
/home/sergey/smgl-p4/devel/grimoire/devel/php/POST_INSTALL ====
--- /tmp/tmp.22375.5 2003-06-03 18:13:50.000000000 -0400
+++ /home/sergey/smgl-p4/devel/grimoire/devel/php/POST_INSTALL 2003-02-23
21:15:47.000000000 -0500
@@ -8,7 +8,7 @@
LoadModule php4_module libexec/libphp4.so"
grep -q "$INC" $MOD || echo "$INC" >> $MOD
- /usr/sbin/apachectl start
+ httpd -t && /usr/sbin/apachectl start
fi
if [ -e /etc/httpsd/httpd.conf ]
@@ -17,5 +17,5 @@
LoadModule php4_module libexec/libphp4.so"
grep -q "$INC" $MOD || echo "$INC" >> $MOD
- /usr/sbin/apachectl startssl
+ httpd -t && /usr/sbin/apachectl startssl
fi
==== //sgl/devel/grimoire/devel/php/POST_REMOVE#3 -
/home/sergey/smgl-p4/devel/grimoire/devel/php/POST_REMOVE ====
--- /tmp/tmp.22375.6 2003-06-03 18:13:50.000000000 -0400
+++ /home/sergey/smgl-p4/devel/grimoire/devel/php/POST_REMOVE 2003-02-23
19:12:20.000000000 -0500
@@ -5,7 +5,7 @@
grep -v "AddType application/x-httpd-php .php .html"
/tmp/conf.tmp1 > /tmp/conf.tmp2
grep -v "AddModule mod_php4.c" /tmp/conf.tmp2 > /etc/httpd/httpd.conf
rm -f /tmp/httpd.conf /tmp/conf.tmp*
- /usr/sbin/apachectl restart
+ httpd -t && /usr/sbin/apachectl restart
fi
if [ -e /etc/httpsd/httpd.conf ]
@@ -15,6 +15,6 @@
grep -v "AddType application/x-httpd-php .php .html"
/tmp/conf.tmp1 > /tmp/conf.tmp2
grep -v "AddModule mod_php4.c" /tmp/conf.tmp2 > /etc/httpsd/httpd.conf
rm -f /tmp/httpd.conf /tmp/conf.tmp*
- /usr/sbin/apachectl restart
+ httpd -t && /usr/sbin/apachectl restart
fi
-
[SM-Spell-Submit] Updates for pcre (few changes), postgresql and php (many changes),
Sergey A. Lipnevich, 06/03/2003
- Re: [SM-Spell-Submit] Updates for pcre (few changes), postgresql and php (many changes), Sergey A. Lipnevich, 06/03/2003
Archive powered by MHonArc 2.6.24.