diff options
author | Ryan Phillips <rphillips@gentoo.org> | 2002-07-03 17:38:45 +0000 |
---|---|---|
committer | Ryan Phillips <rphillips@gentoo.org> | 2002-07-03 17:38:45 +0000 |
commit | 770675f5c3689bfd44759236213266532f535206 (patch) | |
tree | daec4ae1b70e0ccc97906d0e4d0b408b7c3fa2eb /dev-php | |
parent | added dev-php (diff) | |
download | gentoo-2-770675f5c3689bfd44759236213266532f535206.tar.gz gentoo-2-770675f5c3689bfd44759236213266532f535206.tar.bz2 gentoo-2-770675f5c3689bfd44759236213266532f535206.zip |
added new dev-php directory... currently in testing.
Diffstat (limited to 'dev-php')
-rw-r--r-- | dev-php/mod_php/ChangeLog | 217 | ||||
-rw-r--r-- | dev-php/mod_php/files/digest-mod_php-4.2.1 | 1 | ||||
-rw-r--r-- | dev-php/mod_php/files/digest-mod_php-4.2.1-r1 | 1 | ||||
-rw-r--r-- | dev-php/mod_php/files/digest-mod_php-4.2.1-r2 | 1 | ||||
-rw-r--r-- | dev-php/mod_php/files/mod_php.conf | 6 | ||||
-rw-r--r-- | dev-php/mod_php/mod_php-4.2.1-r1.ebuild | 210 | ||||
-rw-r--r-- | dev-php/mod_php/mod_php-4.2.1-r2.ebuild | 210 | ||||
-rw-r--r-- | dev-php/mod_php/mod_php-4.2.1.ebuild | 210 | ||||
-rw-r--r-- | dev-php/php/ChangeLog | 28 | ||||
-rw-r--r-- | dev-php/php/files/digest-php-4.2.0 | 1 | ||||
-rw-r--r-- | dev-php/php/files/digest-php-4.2.1 | 1 | ||||
-rw-r--r-- | dev-php/php/files/digest-php-4.2.1-r1 | 1 | ||||
-rw-r--r-- | dev-php/php/php-4.2.0.ebuild | 166 | ||||
-rw-r--r-- | dev-php/php/php-4.2.1-r1.ebuild | 160 | ||||
-rw-r--r-- | dev-php/php/php-4.2.1.ebuild | 160 | ||||
-rw-r--r-- | dev-php/phpdbg/files/digest-phpdbg-2.10 | 1 | ||||
-rw-r--r-- | dev-php/phpdbg/phpdbg-2.10.ebuild | 22 |
17 files changed, 1396 insertions, 0 deletions
diff --git a/dev-php/mod_php/ChangeLog b/dev-php/mod_php/ChangeLog new file mode 100644 index 000000000000..eec618be3fcb --- /dev/null +++ b/dev-php/mod_php/ChangeLog @@ -0,0 +1,217 @@ +# ChangeLog for dev-lang/php +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/dev-php/mod_php/ChangeLog,v 1.1 2002/07/03 17:38:44 rphillips Exp $ + + 27 Apr 2002; Ryan Phillips <rphillips@gentoo.org> : + + There is a compilation problem with the --with-gettext + variable being passed to configure from within portage. + + 25 Apr 2002; Donny Davies <woodchip@gentoo.org> : + + Clarify the pkg_postinst() message. + + 16 Apr 2002; Seemant Kulleen <seemant@gentoo.org> : + + I caused the gettext bug. The configure options do not like --with-gettext + set. They only like --without-gettext set. Who knew? + + Hmm, and I did not edit the ChangeLog for some reason to say that the mhash + and mcrypt flags are encapsulated by the crypt flag now. + +*mod_php-4.2.1-r2 (26 June 2002) + + 26 June 2002; Roman Weber <gentoo@gonzo.ch> mod_php-4.2.1-r2.ebuild : + + Added 'use' variables: freetype, jpeg, tiff, png and gd (Bug #3900) + +*mod_php-4.2.1-r1 (17 June 2002) + + 17 June 2002; Roman Weber <gentoo@gonzo.ch> mod_php-4.2.1-r1.ebuild : + + Fixed 'use nls' issue. (Bug #2895) + +*php-4.2.1-r1 (21 May 2002) + + 5 June 2002; Ryan Phillips <rphillips@gentoo.org> php-4.2.1-r1.ebuild : + + Added support for firebird + + 21 May 2002; Roman Weber <gentoo@gonzo.ch> php-4.2.1-r1.ebuild : + + Added XSLT sablotron to XML USE variable. Bug #2863 + Fixed symlink to extensions directory. Bug #2886 + +*php-4.2.1 (17 May 2002) + + 19 May 2002; Ryan Phillips <rphillips@gentoo.org> php-4.2.1.ebuild: + + Changed --with-png-dir=/usr/lib \ to + --with-png-dir=/usr \ + + 17 May 2002; Roman Weber <gentoo@gonzo.ch> php-4.2.1.ebuild : + + New release + Fixed flash ming issue. Bug #2707 + Fixed mysql issue. Bug #2711 + Set register_globals = On in php.ini. Lower security but more + compatibility. See http://www.php.net/release_4_1_2.php + Readded curl/snmp/bz2/ssl. Tnx Todd + Symlinked php.ini to old place. Tnx Todd. + Disabled Java in ebuild. I'm not glad about it but it's imho the only + way to fix a nasty bug. Perhaps it will work with an extra ebuild + for the java extension. Bug #2708 + +*php-4.2.0 (12 May 2002) + + 12 May 2002; Ryan Phillips <rphillips@gentoo.org> php-4.2.0.ebuild : + + Added a message to warn the user that setting the register_globals + option to off may break compatibility with some scripts. + + 8 May 2002; Ryan Phillips <rphillips@gentoo.org> php-4.2.0.ebuild : + + New release + +*php-4.1.2-r9 (5 May 2002) + + 5 May 2002; Ryan Phillips <rphillips@gentoo.org> php-4.1.2-r9.ebuild : + + Added support for SSL, snmp, curl, and bzip2 to package. Fixes #2468 + +*php-4.1.2-r8 (28 Apr 2002) + + 27 Apr 2002; Ryan Phillips <rphillips@gentoo.org> php-4.1.2-r7.ebuild : + + for some reason --with-gettext doesn't find the libraries it needs. + ./configure --with-gettext from the commandline works fine. reopening + bug report. + +*php-4.1.2-r8 (27 Apr 2002) + + 27 Apr 2002; Ryan Phillips <rphillips@gentoo.org> php-4.1.2-r7.ebuild : + + Tweaked ebuild to include --with-gettext support. This fixes #2106, but + does it break anything else? + +*php-4.1.2-r7 (15 Apr 2002) + + 15 Apr 2002; Jared H. Hudson <jhhudso@gentoo.org> php-4.1.2-r7.ebuild : + + Fixed php to check for imap with ssl support when compiling the imap + extension. Bug #1254 + Fixed bug where php couldn't find path to javac. Bug #1401 + Modified the ebuild so it DEPENDs on net-mail/uw-imap instead of + the old virtual/imapUW + +*php-4.1.2-r6 (12 Apr 2002) + + 12 Apr 2002; Spider <spider@gentoo.org> + + update -r to force rebuild with updated libpng + +*php-4.1.2-r5 php-4.1.1-r5 (12 Apr 2002) + + 12 Apr 2002; Seemant Kulleen <seemant@gentoo.org> php-4.1.2-r5.ebuild, + php-4.1.1-r5.ebuild : + + Changed the "gettext" USE flag to "nls" since that is the same thing. + +*php-4.1.2-r5 (10 Apr 2002) + + 10 Apr 2002; Donny Davies <woodchip@gentoo.org> php-4.1.2-r5.ebuild, + files/mod_php.conf : + + Added a mod_php.conf file, which installs into the apache addon-modules config + directory. This eliminates the need to "sed" the apache config file in order + to "turn on" the php mime types. Removed some stale ebuilds/digests. + + Ooops, round two for today: fix the php.ini location with a symlink. + Keeps things tidy. + +*php-4.1.2-r4 (9 Apr 2002) + + 9 Apr 2002; Donny Davies <woodchip@gentoo.org> : + + Small updates to fit in with the reworked apache package. + +*php-4.1.2-r3 (13 Mar 2002) + + 13 Mar 2002; Grant Goodyear <g2boojum@gentoo.org> : + + Minor update to fix bug # 1042. + +*php-4.1.2 (28 Feb 2002) + + 28 Feb 2002; Bruce A. Locke <blocke@shivan.org> php-4.1.2.ebuild : + + Major security fixes in this version. All php users are urged + to upgrade to this version. + +*php-4.1.1-r5 ( 25 Feb 2002 ) + + 25 Feb 2002; Karl Trygve Kalleberg <karltk@gentoo.org> php-4.1.1-r5.ebuild + + Fixed a bug that made compiling with libpng bug out on some + installations. + + Old revisions removed. + +*php-4.1.1-r4 ( 22 Feb 2002 ) + + 22 Feb 2002; Grant Goodyear <g2boojum@gentoo.org> php-4.1.1-r4.ebuild + + Now imap support should work. Building php w/ imap support requires + the uw-imap library and headers (from uw-imap or pine). Annoying + problem that uw-imap or pine needs to be compiled w/ SSL; otherwise + the php build will fail due to header problems. + +*php-4.0.6-r5 ( 18 Feb 2002 ) + + 18 Feb 2002; Karl Trygve Kalleberg <karltk@gentoo.org> php-4.0.6-r4.ebuild + + As Java support fails to work with Blackdown, and the fix seems non-trivial, + Java support is removed from PHP 4.0.6 altogether. + + Old revisions have been removed. + +*php-4.0.6-r4 ( 12 Feb 2002 ) + + 12 Feb 2002; Karl Trygve Kalleberg <karltk@gentoo.org> php-4.0.6-r4.ebuild + + Java support is back. The ebuild also tries harder to follow the style + guide. + + Old revisions have been removed. + +*php-4.1.1-r3 ( 18 Feb 2002 ) + + 18 Feb 2002; Karl Trygve Kalleberg <karltk@gentoo.org> php-4.1.1-r3.ebuild + + Java is still here, but now it actually works with Blackdown as well. + + Old revisions have been removed. + +*php-4.1.1-r2 ( 12 Feb 2002 ) + + 12 Feb 2002; Karl Trygve Kalleberg <karltk@gentoo.org> php-4.1.1-r2.ebuild + + Java support is back. The ebuild also tries harder to follow the style + guide. + + Old revisions have been removed. + +*php-4.1.1 (1 Feb 2002) + + 6 Feb 2002; Grant Goodyear <g2boojum@gentoo.org>: + + Added a new -r1 revision of the php-4.1.1 ebuild that adds + two new USE variables, mcrypt and mhash. + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/dev-php/mod_php/files/digest-mod_php-4.2.1 b/dev-php/mod_php/files/digest-mod_php-4.2.1 new file mode 100644 index 000000000000..ceaa1d27083e --- /dev/null +++ b/dev-php/mod_php/files/digest-mod_php-4.2.1 @@ -0,0 +1 @@ +MD5 654983196a94ca91c272a00e877b2b40 php-4.2.1.tar.gz 3376494 diff --git a/dev-php/mod_php/files/digest-mod_php-4.2.1-r1 b/dev-php/mod_php/files/digest-mod_php-4.2.1-r1 new file mode 100644 index 000000000000..ceaa1d27083e --- /dev/null +++ b/dev-php/mod_php/files/digest-mod_php-4.2.1-r1 @@ -0,0 +1 @@ +MD5 654983196a94ca91c272a00e877b2b40 php-4.2.1.tar.gz 3376494 diff --git a/dev-php/mod_php/files/digest-mod_php-4.2.1-r2 b/dev-php/mod_php/files/digest-mod_php-4.2.1-r2 new file mode 100644 index 000000000000..ceaa1d27083e --- /dev/null +++ b/dev-php/mod_php/files/digest-mod_php-4.2.1-r2 @@ -0,0 +1 @@ +MD5 654983196a94ca91c272a00e877b2b40 php-4.2.1.tar.gz 3376494 diff --git a/dev-php/mod_php/files/mod_php.conf b/dev-php/mod_php/files/mod_php.conf new file mode 100644 index 000000000000..6f1f47494bf3 --- /dev/null +++ b/dev-php/mod_php/files/mod_php.conf @@ -0,0 +1,6 @@ +<IfModule mod_php4.c> + +AddType application/x-httpd-php .php .php4 .php3 .phtml +AddType application/x-httpd-php-source .phps + +</IfModule> diff --git a/dev-php/mod_php/mod_php-4.2.1-r1.ebuild b/dev-php/mod_php/mod_php-4.2.1-r1.ebuild new file mode 100644 index 000000000000..37de376dbc18 --- /dev/null +++ b/dev-php/mod_php/mod_php-4.2.1-r1.ebuild @@ -0,0 +1,210 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Tools Team <tools@gentoo.org> +# Author: Achim Gottinger <achim@gentoo.org> +# Update: Roman Weber <gentoo@gonzo.ch> +# $Header: /var/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.2.1-r1.ebuild,v 1.1 2002/07/03 17:38:44 rphillips Exp $ + +A=php-${PV}.tar.gz +S=${WORKDIR}/php-${PV} +DESCRIPTION="HTML embedded scripting language" +SRC_URI="http://www.php.net/distributions/${A}" +HOMEPAGE="http://www.php.net/" +SLOT="0" + +DEPEND=">=dev-libs/gmp-3.1.1 + ~media-libs/freetype-1.3.1 + >=media-libs/jpeg-6b + >=media-libs/tiff-3.5.5 + >=media-libs/libpng-1.2.1 + >=media-libs/libgd-1.8.3 + >=media-libs/t1lib-1.3.1 + >=net-www/apache-1.3.24-r1 + X? ( virtual/x11 ) + qt? ( =x11-libs/qt-2.3* ) + nls? ( sys-devel/gettext ) + pam? ( >=sys-libs/pam-0.75 ) + xml? ( >=app-text/sablotron-0.44 ) + ssl? ( >=dev-libs/openssl-0.9.5 ) + curl? ( >=net-ftp/curl-7.8.1 ) + snmp? ( >=net-analyzer/ucd-snmp-4.2.3 ) + imap? ( >=net-mail/uw-imap-2001a-r1 ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + odbc? ( >=dev-db/unixODBC-1.8.13 ) + xml2? ( dev-libs/libxml2 ) + crypt? ( >=dev-libs/libmcrypt-2.4 + >=app-crypt/mhash-0.8 ) + mysql? ( >=dev-db/mysql-3.23.26 ) + flash? ( media-libs/libswf >=media-libs/ming-0.2a ) + berkdb? ( >=sys-libs/db-3 ) + libwww? ( >=net-libs/libwww-5.3.2 ) + firebird? ( >=dev-db/firebird-1.0 ) + pdflib? ( >=media-libs/pdflib-4.0.1-r2 ) + postgres? ( >=dev-db/postgresql-7.1 )" +# java? ( virtual/jdk ) +# Only needed by CGI-Version +# readline? ( >=sys-libs/ncurses-5.1 +# >=sys-libs/readline-4.1 )" + +RDEPEND="${DEPEND} + qt? ( >=x11-libs/qt-2.3.0 ) + xml? ( >=app-text/sablotron-0.44 )" + +src_unpack() { + unpack ${A} + cd ${S} + +# if [ "`use java`" ] ; then +# +# cp configure configure.orig +# cat configure.orig | \ +# sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf $LIBS"/' \ +# > configure +# +# cp ext/gd/gd.c ext/gd/gd.c.orig +# cat ext/gd/gd.c.orig | \ +# sed -e "s/typedef FILE gdIOCtx;//" \ +# > ext/gd/gd.c +# if [ "$JAVAC" ]; +# then +# cp ext/java/Makefile.in ext/java/Makefile.in.orig +# cat ext/java/Makefile.in.orig | \ +# sed -e "s/^\tjavac/\t\$(JAVAC)/" \ +# > ext/java/Makefile.in +# fi +# fi + +} + +src_compile() { + + local myconf + + # readline can only be used w/ CGI build, so I'll turn it off + #if [ "`use readline`" ] ; then + # myconf="--with-readline" + #fi + + myconf="--without-readline " + use pam && myconf="${myconf} --with-pam" + use nls && myconf="${myconf} --with-gettext" || myconf="${myconf} --without-gettext" + use ssl && myconf="${myconf} --with-openssl" + use curl && myconf="${myconf} --with-curl" + use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack" + use gdbm && myconf="${myconf} --with-gdbm=/usr" + use berkdb && myconf="${myconf} --with-db3=/usr" + use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql" + use postgres && myconf="${myconf} --with-pgsql=/usr" + use odbc && myconf="${myconf} --with-unixODBC=/usr" + use ldap && myconf="${myconf} --with-ldap" + use pdflib && myconf="${myconf} --with-pdflib=/usr" + use firebird && myconf="${myconf} --with-interbase=/opt/interbase" + + use qt && ( \ + export QTDIR=/usr/qt/2 #hope this helps - danarmak + myconf="${myconf} --with-qtdom" + ) + + if [ "`use imap`" ] ; then + if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \ + | grep ssl_onceonlyinit`" ] ; then + echo "Compiling imap with SSL support" + myconf="${myconf} --with-imap --with-imap-ssl" + else + echo "Compiling imap without SSL support" + myconf="${myconf} --with-imap" + fi + fi + use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml" + use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr" + + if [ "`use xml`" ] ; then + export LIBS="-lxmlparse -lxmltok" + myconf="${myconf} --with-sablot=/usr" + myconf="${myconf} --enable-xslt" + myconf="${myconf} --with-xslt-sablot" + fi + + use xml2 && myconf="${myconf} --with-dom" + use crypt && myconf="${myconf} --with-mcrypt --with-mhash" +# use java && myconf="${myconf} --with-java=${JDK_HOME}" + + LDFLAGS="$LDFLAGS -ltiff -ljpeg" + + if [ "`use X`" ] ; then + myconf="${myconf} --with-xpm-dir=/usr/X11R6" + LDFLAGS="$LDFLAGS -L/usr/X11R6/lib" + fi + + ./configure \ + --prefix=/usr \ + --with-gd \ + --with-gmp \ + --with-bz2 \ + --with-ttf \ + --enable-ftp \ + --with-t1lib \ + --enable-dbase \ + --with-zlib=yes \ + --enable-bcmath \ + --enable-sysvsem \ + --enable-sysvshm \ + --enable-calendar \ + --enable-trans-sid \ + --enable-safe-mode \ + --enable-versioning \ + --enable-track-vars \ + --with-png-dir=/usr \ + --with-jpeg-dir=/usr/lib \ + --enable-inline-optimization \ + --with-apxs="/usr/sbin/apxs -ltiff" \ + --with-exec-dir="/usr/lib/apache/bin" \ + --with-config-file-path=/etc/php4 \ + --host=${CHOST} ${myconf} || die "bad ./configure" + + make || die "compile problem" +} + + +src_install() { + make INSTALL_ROOT=${D} install-pear || die + + dodoc CODING_STANDARDS LICENSE EXTENSIONS + dodoc RELEASE_PROCESS README.* TODO NEWS + dodoc ChangeLog* *.txt + + exeinto /usr/lib/apache-extramodules + doexe .libs/libphp4.so + + insinto /etc/apache/conf/addon-modules + doins ${FILESDIR}/mod_php.conf + insinto /etc/php4 + cat php.ini-dist | sed "s/register_globals = Off/register_globals = On/g" > php.ini + doins php.ini + dosym /etc/php4/php.ini /etc/apache/conf/php.ini + dosym /etc/php4/php.ini /etc/apache/conf/addon-modules/php.ini + dosym /usr/lib/php/extensions/no-debug-non-zts-20020429 /etc/php4/lib +} + +pkg_postinst() { + einfo + einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + einfo "to have your apache.conf auto-updated for use with this module." + einfo "You should then edit your /etc/conf.d/apache file to suit." + einfo + einfo "Please remeber:" + einfo "This install of PHP has set register_globals = On (lower security)" + einfo "Please read http://www.php.net/release_4_1_2.php (Section: External variables)" + einfo "for further informations." + einfo +} + +pkg_config() { + ${ROOT}/usr/sbin/apacheaddmod \ + ${ROOT}/etc/apache/conf/apache.conf \ + extramodules/libphp4.so mod_php4.c php4_module \ + before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf + :; +} + diff --git a/dev-php/mod_php/mod_php-4.2.1-r2.ebuild b/dev-php/mod_php/mod_php-4.2.1-r2.ebuild new file mode 100644 index 000000000000..a4c000e2a14b --- /dev/null +++ b/dev-php/mod_php/mod_php-4.2.1-r2.ebuild @@ -0,0 +1,210 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Tools Team <tools@gentoo.org> +# Author: Achim Gottinger <achim@gentoo.org> +# Update: Roman Weber <gentoo@gonzo.ch> +# $Header: /var/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.2.1-r2.ebuild,v 1.1 2002/07/03 17:38:44 rphillips Exp $ + +A=php-${PV}.tar.gz +S=${WORKDIR}/php-${PV} +DESCRIPTION="HTML embedded scripting language" +SRC_URI="http://www.php.net/distributions/${A}" +HOMEPAGE="http://www.php.net/" +LICENSE="PHP" +SLOT="0" + +DEPEND=">=dev-libs/gmp-3.1.1 + >=net-www/apache-1.3.24-r1 + freetype ( ~media-libs/freetype-1.3.1 >=media-libs/t1lib-1.3.1 ) + jpeg ( >=media-libs/jpeg-6b ) + tiff ( >=media-libs/tiff-3.5.5 ) + png ( >=media-libs/libpng-1.2.1 ) + gd ( >=media-libs/libgd-1.8.3 ) + X? ( virtual/x11 ) + qt? ( =x11-libs/qt-2.3* ) + nls? ( sys-devel/gettext ) + pam? ( >=sys-libs/pam-0.75 ) + xml? ( >=app-text/sablotron-0.44 ) + ssl? ( >=dev-libs/openssl-0.9.5 ) + curl? ( >=net-ftp/curl-7.8.1 ) + snmp? ( >=net-analyzer/ucd-snmp-4.2.3 ) + imap? ( >=net-mail/uw-imap-2001a-r1 ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + odbc? ( >=dev-db/unixODBC-1.8.13 ) + xml2? ( dev-libs/libxml2 ) + crypt? ( >=dev-libs/libmcrypt-2.4 + >=app-crypt/mhash-0.8 ) + mysql? ( >=dev-db/mysql-3.23.26 ) + flash? ( media-libs/libswf >=media-libs/ming-0.2a ) + berkdb? ( >=sys-libs/db-3 ) + libwww? ( >=net-libs/libwww-5.3.2 ) + firebird? ( >=dev-db/firebird-1.0 ) + pdflib? ( >=media-libs/pdflib-4.0.1-r2 ) + postgres? ( >=dev-db/postgresql-7.1 )" +# java? ( virtual/jdk ) +# Only needed by CGI-Version +# readline? ( >=sys-libs/ncurses-5.1 +# >=sys-libs/readline-4.1 )" + +RDEPEND="${DEPEND} + qt? ( >=x11-libs/qt-2.3.0 ) + xml? ( >=app-text/sablotron-0.44 )" + +src_unpack() { + unpack ${A} + cd ${S} + +# if [ "`use java`" ] ; then +# +# cp configure configure.orig +# cat configure.orig | \ +# sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf $LIBS"/' \ +# > configure +# +# cp ext/gd/gd.c ext/gd/gd.c.orig +# cat ext/gd/gd.c.orig | \ +# sed -e "s/typedef FILE gdIOCtx;//" \ +# > ext/gd/gd.c +# if [ "$JAVAC" ]; +# then +# cp ext/java/Makefile.in ext/java/Makefile.in.orig +# cat ext/java/Makefile.in.orig | \ +# sed -e "s/^\tjavac/\t\$(JAVAC)/" \ +# > ext/java/Makefile.in +# fi +# fi + +} + +src_compile() { + + local myconf + + # readline can only be used w/ CGI build, so I'll turn it off + #if [ "`use readline`" ] ; then + # myconf="--with-readline" + #fi + + myconf="--without-readline " + use pam && myconf="${myconf} --with-pam" + use nls && myconf="${myconf} --with-gettext" || myconf="${myconf} --without-gettext" + use ssl && myconf="${myconf} --with-openssl" + use curl && myconf="${myconf} --with-curl" + use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack" + use gdbm && myconf="${myconf} --with-gdbm=/usr" + use berkdb && myconf="${myconf} --with-db3=/usr" + use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql" + use postgres && myconf="${myconf} --with-pgsql=/usr" + use odbc && myconf="${myconf} --with-unixODBC=/usr" + use ldap && myconf="${myconf} --with-ldap" + use pdflib && myconf="${myconf} --with-pdflib=/usr" + use firebird && myconf="${myconf} --with-interbase=/opt/interbase" + use gd && myconf="${myconf} --with-gd" + use freetype && myconf="${myconf} --with-ttf --with-t1lib" + use jpeg && myconf="${myconf} --with-jpeg-dir=/usr/lib" + use png && myconf="${myconf} --with-png-dir=/usr" + use tiff && myconf="${myconf} --with-tiff-dir=/usr" + + use qt && ( \ + export QTDIR=/usr/qt/2 #hope this helps - danarmak + myconf="${myconf} --with-qtdom" + ) + + if [ "`use imap`" ] ; then + if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \ + | grep ssl_onceonlyinit`" ] ; then + echo "Compiling imap with SSL support" + myconf="${myconf} --with-imap --with-imap-ssl" + else + echo "Compiling imap without SSL support" + myconf="${myconf} --with-imap" + fi + fi + use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml" + use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr" + + if [ "`use xml`" ] ; then + export LIBS="-lxmlparse -lxmltok" + myconf="${myconf} --with-sablot=/usr" + myconf="${myconf} --enable-xslt" + myconf="${myconf} --with-xslt-sablot" + fi + + use xml2 && myconf="${myconf} --with-dom" + use crypt && myconf="${myconf} --with-mcrypt --with-mhash" +# use java && myconf="${myconf} --with-java=${JDK_HOME}" + + LDFLAGS="$LDFLAGS -ltiff -ljpeg" + + if [ "`use X`" ] ; then + myconf="${myconf} --with-xpm-dir=/usr/X11R6" + LDFLAGS="$LDFLAGS -L/usr/X11R6/lib" + fi + + ./configure \ + --prefix=/usr \ + --with-gmp \ + --with-bz2 \ + --enable-ftp \ + --enable-dbase \ + --with-zlib=yes \ + --enable-bcmath \ + --enable-sysvsem \ + --enable-sysvshm \ + --enable-calendar \ + --enable-trans-sid \ + --enable-safe-mode \ + --enable-versioning \ + --enable-track-vars \ + --enable-inline-optimization \ + --with-apxs="/usr/sbin/apxs -ltiff" \ + --with-exec-dir="/usr/lib/apache/bin" \ + --with-config-file-path=/etc/php4 \ + --host=${CHOST} ${myconf} || die "bad ./configure" + + make || die "compile problem" +} + + +src_install() { + make INSTALL_ROOT=${D} install-pear || die + + dodoc CODING_STANDARDS LICENSE EXTENSIONS + dodoc RELEASE_PROCESS README.* TODO NEWS + dodoc ChangeLog* *.txt + + exeinto /usr/lib/apache-extramodules + doexe .libs/libphp4.so + + insinto /etc/apache/conf/addon-modules + doins ${FILESDIR}/mod_php.conf + insinto /etc/php4 + cat php.ini-dist | sed "s/register_globals = Off/register_globals = On/g" > php.ini + doins php.ini + dosym /etc/php4/php.ini /etc/apache/conf/php.ini + dosym /etc/php4/php.ini /etc/apache/conf/addon-modules/php.ini + dosym /usr/lib/php/extensions/no-debug-non-zts-20020429 /etc/php4/lib +} + +pkg_postinst() { + einfo + einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + einfo "to have your apache.conf auto-updated for use with this module." + einfo "You should then edit your /etc/conf.d/apache file to suit." + einfo + einfo "Please remeber:" + einfo "This install of PHP has set register_globals = On (lower security)" + einfo "Please read http://www.php.net/release_4_1_2.php (Section: External variables)" + einfo "for further informations." + einfo +} + +pkg_config() { + ${ROOT}/usr/sbin/apacheaddmod \ + ${ROOT}/etc/apache/conf/apache.conf \ + extramodules/libphp4.so mod_php4.c php4_module \ + before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf + :; +} + diff --git a/dev-php/mod_php/mod_php-4.2.1.ebuild b/dev-php/mod_php/mod_php-4.2.1.ebuild new file mode 100644 index 000000000000..3f5248439872 --- /dev/null +++ b/dev-php/mod_php/mod_php-4.2.1.ebuild @@ -0,0 +1,210 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Tools Team <tools@gentoo.org> +# Author: Achim Gottinger <achim@gentoo.org> +# Update: Roman Weber <gentoo@gonzo.ch> +# $Header: /var/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.2.1.ebuild,v 1.1 2002/07/03 17:38:45 rphillips Exp $ + +A=php-${PV}.tar.gz +S=${WORKDIR}/php-${PV} +DESCRIPTION="HTML embedded scripting language" +SRC_URI="http://www.php.net/distributions/${A}" +HOMEPAGE="http://www.php.net/" +SLOT="0" + +DEPEND=">=dev-libs/gmp-3.1.1 + ~media-libs/freetype-1.3.1 + >=media-libs/jpeg-6b + >=media-libs/tiff-3.5.5 + >=media-libs/libpng-1.2.1 + >=media-libs/libgd-1.8.3 + >=media-libs/t1lib-1.3.1 + >=net-www/apache-1.3.24-r1 + X? ( virtual/x11 ) + qt? ( =x11-libs/qt-2.3* ) + nls? ( sys-devel/gettext ) + pam? ( >=sys-libs/pam-0.75 ) + xml? ( >=app-text/sablotron-0.44 ) + ssl? ( >=dev-libs/openssl-0.9.5 ) + curl? ( >=net-ftp/curl-7.8.1 ) + snmp? ( >=net-analyzer/ucd-snmp-4.2.3 ) + imap? ( >=net-mail/uw-imap-2001a-r1 ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + odbc? ( >=dev-db/unixODBC-1.8.13 ) + xml2? ( dev-libs/libxml2 ) + crypt? ( >=dev-libs/libmcrypt-2.4 + >=app-crypt/mhash-0.8 ) + mysql? ( >=dev-db/mysql-3.23.26 ) + flash? ( media-libs/libswf >=media-libs/ming-0.2a ) + berkdb? ( >=sys-libs/db-3 ) + libwww? ( >=net-libs/libwww-5.3.2 ) + firebird? ( >=dev-db/firebird-1.0 ) + pdflib? ( >=media-libs/pdflib-4.0.1-r2 ) + postgres? ( >=dev-db/postgresql-7.1 )" +# java? ( virtual/jdk ) +# Only needed by CGI-Version +# readline? ( >=sys-libs/ncurses-5.1 +# >=sys-libs/readline-4.1 )" + +RDEPEND="${DEPEND} + qt? ( >=x11-libs/qt-2.3.0 ) + xml? ( >=app-text/sablotron-0.44 )" + +src_unpack() { + unpack ${A} + cd ${S} + +# if [ "`use java`" ] ; then +# +# cp configure configure.orig +# cat configure.orig | \ +# sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf $LIBS"/' \ +# > configure +# +# cp ext/gd/gd.c ext/gd/gd.c.orig +# cat ext/gd/gd.c.orig | \ +# sed -e "s/typedef FILE gdIOCtx;//" \ +# > ext/gd/gd.c +# if [ "$JAVAC" ]; +# then +# cp ext/java/Makefile.in ext/java/Makefile.in.orig +# cat ext/java/Makefile.in.orig | \ +# sed -e "s/^\tjavac/\t\$(JAVAC)/" \ +# > ext/java/Makefile.in +# fi +# fi + +} + +src_compile() { + + local myconf + + # readline can only be used w/ CGI build, so I'll turn it off + #if [ "`use readline`" ] ; then + # myconf="--with-readline" + #fi + + myconf="--without-readline " + use pam && myconf="${myconf} --with-pam" + use nls || myconf="${myconf} --without-gettext" + use ssl && myconf="${myconf} --with-openssl" + use curl && myconf="${myconf} --with-curl" + use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack" + use gdbm && myconf="${myconf} --with-gdbm=/usr" + use berkdb && myconf="${myconf} --with-db3=/usr" + use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql" + use postgres && myconf="${myconf} --with-pgsql=/usr" + use odbc && myconf="${myconf} --with-unixODBC=/usr" + use ldap && myconf="${myconf} --with-ldap" + use pdflib && myconf="${myconf} --with-pdflib=/usr" + use firebird && myconf="${myconf} --with-interbase=/opt/interbase" + + use qt && ( \ + export QTDIR=/usr/qt/2 #hope this helps - danarmak + myconf="${myconf} --with-qtdom" + ) + + if [ "`use imap`" ] ; then + if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \ + | grep ssl_onceonlyinit`" ] ; then + echo "Compiling imap with SSL support" + myconf="${myconf} --with-imap --with-imap-ssl" + else + echo "Compiling imap without SSL support" + myconf="${myconf} --with-imap" + fi + fi + use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml" + use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr" + + if [ "`use xml`" ] ; then + export LIBS="-lxmlparse -lxmltok" + myconf="${myconf} --with-sablot=/usr" + myconf="${myconf} --enable-xslt" + myconf="${myconf} --with-xslt-sablot" + fi + + use xml2 && myconf="${myconf} --with-dom" + use crypt && myconf="${myconf} --with-mcrypt --with-mhash" +# use java && myconf="${myconf} --with-java=${JDK_HOME}" + + LDFLAGS="$LDFLAGS -ltiff -ljpeg" + + if [ "`use X`" ] ; then + myconf="${myconf} --with-xpm-dir=/usr/X11R6" + LDFLAGS="$LDFLAGS -L/usr/X11R6/lib" + fi + + ./configure \ + --prefix=/usr \ + --with-gd \ + --with-gmp \ + --with-bz2 \ + --with-ttf \ + --enable-ftp \ + --with-t1lib \ + --enable-dbase \ + --with-zlib=yes \ + --enable-bcmath \ + --enable-sysvsem \ + --enable-sysvshm \ + --enable-calendar \ + --enable-trans-sid \ + --enable-safe-mode \ + --enable-versioning \ + --enable-track-vars \ + --with-png-dir=/usr \ + --with-jpeg-dir=/usr/lib \ + --enable-inline-optimization \ + --with-apxs="/usr/sbin/apxs -ltiff" \ + --with-exec-dir="/usr/lib/apache/bin" \ + --with-config-file-path=/etc/php4 \ + --host=${CHOST} ${myconf} || die "bad ./configure" + + make || die "compile problem" +} + + +src_install() { + make INSTALL_ROOT=${D} install-pear || die + + dodoc CODING_STANDARDS LICENSE EXTENSIONS + dodoc RELEASE_PROCESS README.* TODO NEWS + dodoc ChangeLog* *.txt + + exeinto /usr/lib/apache-extramodules + doexe .libs/libphp4.so + + insinto /etc/apache/conf/addon-modules + doins ${FILESDIR}/mod_php.conf + insinto /etc/php4 + cat php.ini-dist | sed "s/register_globals = Off/register_globals = On/g" > php.ini + doins php.ini + dosym /etc/php4/php.ini /etc/apache/conf/php.ini + dosym /etc/php4/php.ini /etc/apache/conf/addon-modules/php.ini + dosym /usr/lib/php/extensions/no-debug-non-zts-20020429 /etc/php4/lib +} + +pkg_postinst() { + einfo + einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + einfo "to have your apache.conf auto-updated for use with this module." + einfo "You should then edit your /etc/conf.d/apache file to suit." + einfo + einfo "Please remeber:" + einfo "This install of PHP has set register_globals = On (lower security)" + einfo "Please read http://www.php.net/release_4_1_2.php (Section: External variables)" + einfo "for further informations." + einfo +} + +pkg_config() { + ${ROOT}/usr/sbin/apacheaddmod \ + ${ROOT}/etc/apache/conf/apache.conf \ + extramodules/libphp4.so mod_php4.c php4_module \ + before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf + :; +} + diff --git a/dev-php/php/ChangeLog b/dev-php/php/ChangeLog new file mode 100644 index 000000000000..89f49b37dd33 --- /dev/null +++ b/dev-php/php/ChangeLog @@ -0,0 +1,28 @@ +# ChangeLog for dev-lang/phpcgi +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/dev-php/php/ChangeLog,v 1.1 2002/07/03 17:38:45 rphillips Exp $ + +*php-4.2.1-r1 (26 June 2002) + + 26 June 2002; Roman Weber <gentoo@gonzo.ch> php-4.2.1-r1.ebuild : + + Added 'use' variables: freetype, jpeg, tiff, png and gd (Bug #3900) + +*php-4.2.1 (17 June 2002) + + 17 June 2002; Roman Weber <gentoo@gonzo.ch> ChangeLog: + + Update to actual 4.2.1 release. + +*phpcgi-4.2.0 (23 Apr 2002) + + 23 Apr 2002; Ryan Phillips <rphillips@gentoo.org> ChangeLog : + + Please don't use this package on a webserver. + There is no security compiled in. + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/dev-php/php/files/digest-php-4.2.0 b/dev-php/php/files/digest-php-4.2.0 new file mode 100644 index 000000000000..592a4bd225b9 --- /dev/null +++ b/dev-php/php/files/digest-php-4.2.0 @@ -0,0 +1 @@ +MD5 88d55481de32ab0168aa580f7b611022 php-4.2.0.tar.gz 3442616 diff --git a/dev-php/php/files/digest-php-4.2.1 b/dev-php/php/files/digest-php-4.2.1 new file mode 100644 index 000000000000..ceaa1d27083e --- /dev/null +++ b/dev-php/php/files/digest-php-4.2.1 @@ -0,0 +1 @@ +MD5 654983196a94ca91c272a00e877b2b40 php-4.2.1.tar.gz 3376494 diff --git a/dev-php/php/files/digest-php-4.2.1-r1 b/dev-php/php/files/digest-php-4.2.1-r1 new file mode 100644 index 000000000000..ceaa1d27083e --- /dev/null +++ b/dev-php/php/files/digest-php-4.2.1-r1 @@ -0,0 +1 @@ +MD5 654983196a94ca91c272a00e877b2b40 php-4.2.1.tar.gz 3376494 diff --git a/dev-php/php/php-4.2.0.ebuild b/dev-php/php/php-4.2.0.ebuild new file mode 100644 index 000000000000..bb9a84af1e64 --- /dev/null +++ b/dev-php/php/php-4.2.0.ebuild @@ -0,0 +1,166 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Roman Weber <gentoo.org@gonzo.ch> +# $Header: /var/cvsroot/gentoo-x86/dev-php/php/php-4.2.0.ebuild,v 1.1 2002/07/03 17:38:45 rphillips Exp $ + +S=${WORKDIR}/php-${PV} +DESCRIPTION="PHP embedded scripting language (Commandline Use) - + usable in shell scripts and crontabs" +SRC_URI="http://www.php.net/distributions/php-${PV}.tar.gz" +HOMEPAGE="http://www.php.net/" +SLOT="0" + +DEPEND=">=dev-libs/gmp-3.1.1 + ~media-libs/freetype-1.3.1 + >=media-libs/jpeg-6b + >=media-libs/tiff-3.5.5 + >=media-libs/libpng-1.2.1 + >=media-libs/libgd-1.8.3 + >=media-libs/t1lib-1.0.1 + X? ( virtual/x11 ) + qt? ( =x11-libs/qt-2.3* ) + nls? ( sys-devel/gettext ) + pam? ( >=sys-libs/pam-0.75 ) + xml? ( >=app-text/sablotron-0.44 ) + imap? ( >=net-mail/uw-imap-2001a-r1 ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + java? ( virtual/jdk ) + ldap? ( >=net-nds/openldap-1.2.11 ) + odbc? ( >=dev-db/unixODBC-1.8.13 ) + xml2? ( dev-libs/libxml2 ) + crypt? ( >=dev-libs/libmcrypt-2.4 + >=app-crypt/mhash-0.8 ) + mysql? ( >=dev-db/mysql-3.23.26 ) + flash? ( media-libs/libswf media-libs/ming ) + berkdb? ( >=sys-libs/db-3 ) + libwww? ( >=net-libs/libwww-5.3.2 ) + pdflib? ( >=media-libs/pdflib-4.0.1-r2 ) + postgres? ( >=dev-db/postgresql-7.1 ) + readline? ( >=sys-libs/ncurses-5.1 + >=sys-libs/readline-4.1 )" + +RDEPEND="${DEPEND} + qt? ( >=x11-libs/qt-2.3.0 ) + xml? ( >=app-text/sablotron-0.44 )" + +src_unpack() { + unpack php-${PV}.tar.gz + cd ${S} + if [ "`use java`" ] ; then + + cp configure configure.orig + cat configure.orig | \ + sed -e 's/LIBS="-lttf $LIBS"/LIBS="-lttf -lhpi $LIBS"/' \ + > configure + + cp ext/gd/gd.c ext/gd/gd.c.orig + cat ext/gd/gd.c.orig | \ + sed -e "s/typedef FILE gdIOCtx;//" \ + > ext/gd/gd.c + if [ "$JAVAC" ]; + then + cp ext/java/Makefile.in ext/java/Makefile.in.orig + cat ext/java/Makefile.in.orig | \ + sed -e "s/^\tjavac/\t\$(JAVAC)/" \ + > ext/java/Makefile.in + fi + fi +} + +src_compile() { + + local myconf + + # t1lib support seems to be broken: gcc: /usr/lib/.libs/libt1.so: No such file or directory + + myconf="--without-t1lib" + use readline && myconf="${myconf} --with-readline" + use pam && myconf="${myconf} --with-pam" + use nls || myconf="${myconf} --without-gettext" + use gdbm && myconf="${myconf} --with-gdbm=/usr" + use berkdb && myconf="${myconf} --with-db3=/usr" + use mysql && myconf="${myconf} --with-mysql=/usr" + use postgres && myconf="${myconf} --with-pgsql=/usr" + use odbc && myconf="${myconf} --with-unixODBC=/usr" + use ldap && myconf="${myconf} --with-ldap" + use pdflib && myconf="${myconf} --with-pdflib" + + use qt && ( \ + export QTDIR=/usr/qt/2 #hope this helps - danarmak + myconf="${myconf} --with-qtdom" + ) + + if [ "`use imap`" ] ; then + if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \ + | grep ssl_onceonlyinit`" ] ; then + echo "Compiling imap with SSL support" + myconf="${myconf} --with-imap --with-imap-ssl" + else + echo "Compiling imap without SSL support" + myconf="${myconf} --with-imap" + fi + fi + use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml" + use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr" + + if [ "`use xml`" ] ; then + export LIBS="-lxmlparse -lxmltok" + myconf="${myconf} --with-sablot=/usr" + fi + + use xml2 && myconf="${myconf} --with-dom" + use crypt && myconf="${myconf} --with-mcrypt --with-mhash" + use java && myconf="${myconf} --with-java=${JDK_HOME}" + + LDFLAGS="$LDFLAGS -ltiff -ljpeg" + + if [ "`use X`" ] ; then + myconf="${myconf} --with-xpm-dir=/usr/X11R6" + LDFLAGS="$LDFLAGS -L/usr/X11R6/lib" + fi + + ./configure \ + --prefix=/usr \ + --with-gd \ + --with-gmp \ + --with-ttf \ + --enable-ftp \ + --enable-dbase \ + --with-zlib=yes \ + --enable-bcmath \ + --enable-sysvsem \ + --enable-sysvshm \ + --enable-calendar \ + --enable-trans-sid \ + --enable-versioning \ + --enable-track-vars \ + --with-png-dir=/usr/lib \ + --with-jpeg-dir=/usr/lib \ + --enable-inline-optimization \ + --with-config-file-path=/etc/apache/conf/addon-modules || die "bad ./configure" + + make || die "compile problem" +} + + +src_install() { + make INSTALL_ROOT=${D} install-pear || die + + dodoc CODING_STANDARDS LICENSE EXTENSIONS + dodoc RELEASE_PROCESS README.* TODO NEWS + dodoc ChangeLog* *.txt + + exeinto /usr/bin + doexe php + + insinto /etc/apache/conf/addon-modules + newins php.ini-dist php.ini + dosym /etc/apache/conf/addon-modules/php.ini /etc/apache/conf/php.ini +} + +pkg_postinst () { + + einfo "Please don't use this package on a webserver." + einfo "There is no security compiled in." + +} diff --git a/dev-php/php/php-4.2.1-r1.ebuild b/dev-php/php/php-4.2.1-r1.ebuild new file mode 100644 index 000000000000..44805e89836f --- /dev/null +++ b/dev-php/php/php-4.2.1-r1.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Tools Team <tools@gentoo.org> +# Author: Achim Gottinger <achim@gentoo.org> +# Update: Roman Weber <gentoo@gonzo.ch> +# $Header: /var/cvsroot/gentoo-x86/dev-php/php/php-4.2.1-r1.ebuild,v 1.1 2002/07/03 17:38:45 rphillips Exp $ + +A=php-${PV}.tar.gz +S=${WORKDIR}/php-${PV} +DESCRIPTION="HTML embedded scripting language" +SRC_URI="http://www.php.net/distributions/${A}" +HOMEPAGE="http://www.php.net/" +LICENSE="PHP" +SLOT="0" + +DEPEND=">=dev-libs/gmp-3.1.1 + freetype ( ~media-libs/freetype-1.3.1 >=media-libs/t1lib-1.3.1 ) + jpeg ( >=media-libs/jpeg-6b ) + tiff ( >=media-libs/tiff-3.5.5 ) + png ( >=media-libs/libpng-1.2.1 ) + gd ( >=media-libs/libgd-1.8.3 ) + X? ( virtual/x11 ) + qt? ( =x11-libs/qt-2.3* ) + nls? ( sys-devel/gettext ) + pam? ( >=sys-libs/pam-0.75 ) + xml? ( >=app-text/sablotron-0.44 ) + ssl? ( >=dev-libs/openssl-0.9.5 ) + curl? ( >=net-ftp/curl-7.8.1 ) + snmp? ( >=net-analyzer/ucd-snmp-4.2.3 ) + imap? ( >=net-mail/uw-imap-2001a-r1 ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + odbc? ( >=dev-db/unixODBC-1.8.13 ) + xml2? ( dev-libs/libxml2 ) + crypt? ( >=dev-libs/libmcrypt-2.4 + >=app-crypt/mhash-0.8 ) + mysql? ( >=dev-db/mysql-3.23.26 ) + flash? ( media-libs/libswf >=media-libs/ming-0.2a ) + berkdb? ( >=sys-libs/db-3 ) + libwww? ( >=net-libs/libwww-5.3.2 ) + firebird? ( >=dev-db/firebird-1.0 ) + pdflib? ( >=media-libs/pdflib-4.0.1-r2 ) + postgres? ( >=dev-db/postgresql-7.1 ) + readline? ( >=sys-libs/ncurses-5.1 + >=sys-libs/readline-4.1 )" + +RDEPEND="${DEPEND} + qt? ( >=x11-libs/qt-2.3.0 ) + xml? ( >=app-text/sablotron-0.44 )" + +src_unpack() { + unpack ${A} + cd ${S} + +} + +src_compile() { + + local myconf + + use readline && myconf="${myconf} --with-readline" + use pam && myconf="${myconf} --with-pam" + use nls && myconf="${myconf} --with-gettext" || myconf="${myconf} --without-gettext" + use ssl && myconf="${myconf} --with-openssl" + use curl && myconf="${myconf} --with-curl" + use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack" + use gdbm && myconf="${myconf} --with-gdbm=/usr" + use berkdb && myconf="${myconf} --with-db3=/usr" + use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql" + use postgres && myconf="${myconf} --with-pgsql=/usr" + use odbc && myconf="${myconf} --with-unixODBC=/usr" + use ldap && myconf="${myconf} --with-ldap" + use pdflib && myconf="${myconf} --with-pdflib=/usr" + use firebird && myconf="${myconf} --with-interbase=/opt/interbase" + use gd && myconf="${myconf} --with-gd" + use freetype && myconf="${myconf} --with-ttf --with-t1lib" + use jpeg && myconf="${myconf} --with-jpeg-dir=/usr/lib" + use png && myconf="${myconf} --with-png-dir=/usr" + use tiff && myconf="${myconf} --with-tiff-dir=/usr" + + use qt && ( \ + export QTDIR=/usr/qt/2 #hope this helps - danarmak + myconf="${myconf} --with-qtdom" + ) + + if [ "`use imap`" ] ; then + if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \ + | grep ssl_onceonlyinit`" ] ; then + echo "Compiling imap with SSL support" + myconf="${myconf} --with-imap --with-imap-ssl" + else + echo "Compiling imap without SSL support" + myconf="${myconf} --with-imap" + fi + fi + use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml" + use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr" + + if [ "`use xml`" ] ; then + export LIBS="-lxmlparse -lxmltok" + myconf="${myconf} --with-sablot=/usr" + myconf="${myconf} --enable-xslt" + myconf="${myconf} --with-xslt-sablot" + fi + + use xml2 && myconf="${myconf} --with-dom" + use crypt && myconf="${myconf} --with-mcrypt --with-mhash" + + LDFLAGS="$LDFLAGS -ltiff -ljpeg" + + if [ "`use X`" ] ; then + myconf="${myconf} --with-xpm-dir=/usr/X11R6" + LDFLAGS="$LDFLAGS -L/usr/X11R6/lib" + fi + + ./configure \ + --prefix=/usr \ + --with-gmp \ + --with-bz2 \ + --enable-ftp \ + --enable-dbase \ + --with-zlib=yes \ + --enable-bcmath \ + --enable-sysvsem \ + --enable-sysvshm \ + --enable-calendar \ + --enable-trans-sid \ + --enable-versioning \ + --enable-track-vars \ + --enable-inline-optimization \ + --with-config-file-path=/etc/php4 \ + --host=${CHOST} ${myconf} || die "bad ./configure" + + make || die "compile problem" +} + + +src_install() { + make INSTALL_ROOT=${D} install-pear || die + + dodoc CODING_STANDARDS LICENSE EXTENSIONS + dodoc RELEASE_PROCESS README.* TODO NEWS + dodoc ChangeLog* *.txt + + exeinto /usr/bin + doexe php + + insinto /etc/php4 + cat php.ini-dist | sed "s/register_globals = Off/register_globals = On/g" > php.ini + doins php.ini + dosym /usr/lib/php/extensions/no-debug-non-zts-20020429 /etc/php4/lib +} + +pkg_postinst() { + einfo + einfo "Please don't use this package on a webserver." + einfo "There is no security compiled in." + einfo +} + diff --git a/dev-php/php/php-4.2.1.ebuild b/dev-php/php/php-4.2.1.ebuild new file mode 100644 index 000000000000..d2292878abd9 --- /dev/null +++ b/dev-php/php/php-4.2.1.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Tools Team <tools@gentoo.org> +# Author: Achim Gottinger <achim@gentoo.org> +# Update: Roman Weber <gentoo@gonzo.ch> +# $Header: /var/cvsroot/gentoo-x86/dev-php/php/php-4.2.1.ebuild,v 1.1 2002/07/03 17:38:45 rphillips Exp $ + +A=php-${PV}.tar.gz +S=${WORKDIR}/php-${PV} +DESCRIPTION="HTML embedded scripting language" +SRC_URI="http://www.php.net/distributions/${A}" +HOMEPAGE="http://www.php.net/" +SLOT="0" + +DEPEND=">=dev-libs/gmp-3.1.1 + ~media-libs/freetype-1.3.1 + >=media-libs/jpeg-6b + >=media-libs/tiff-3.5.5 + >=media-libs/libpng-1.2.1 + >=media-libs/libgd-1.8.3 + >=media-libs/t1lib-1.3.1 + X? ( virtual/x11 ) + qt? ( =x11-libs/qt-2.3* ) + nls? ( sys-devel/gettext ) + pam? ( >=sys-libs/pam-0.75 ) + xml? ( >=app-text/sablotron-0.44 ) + ssl? ( >=dev-libs/openssl-0.9.5 ) + curl? ( >=net-ftp/curl-7.8.1 ) + snmp? ( >=net-analyzer/ucd-snmp-4.2.3 ) + imap? ( >=net-mail/uw-imap-2001a-r1 ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + odbc? ( >=dev-db/unixODBC-1.8.13 ) + xml2? ( dev-libs/libxml2 ) + crypt? ( >=dev-libs/libmcrypt-2.4 + >=app-crypt/mhash-0.8 ) + mysql? ( >=dev-db/mysql-3.23.26 ) + flash? ( media-libs/libswf >=media-libs/ming-0.2a ) + berkdb? ( >=sys-libs/db-3 ) + libwww? ( >=net-libs/libwww-5.3.2 ) + firebird? ( >=dev-db/firebird-1.0 ) + pdflib? ( >=media-libs/pdflib-4.0.1-r2 ) + postgres? ( >=dev-db/postgresql-7.1 ) + readline? ( >=sys-libs/ncurses-5.1 + >=sys-libs/readline-4.1 )" + +RDEPEND="${DEPEND} + qt? ( >=x11-libs/qt-2.3.0 ) + xml? ( >=app-text/sablotron-0.44 )" + +src_unpack() { + unpack ${A} + cd ${S} + +} + +src_compile() { + + local myconf + + use readline && myconf="${myconf} --with-readline" + use pam && myconf="${myconf} --with-pam" + use nls && myconf="${myconf} --with-gettext" || myconf="${myconf} --without-gettext" + use ssl && myconf="${myconf} --with-openssl" + use curl && myconf="${myconf} --with-curl" + use snmp && myconf="${myconf} --with-snmp --enable-ucd-snmp-hack" + use gdbm && myconf="${myconf} --with-gdbm=/usr" + use berkdb && myconf="${myconf} --with-db3=/usr" + use mysql && myconf="${myconf} --with-mysql=/usr" || myconf="${myconf} --without-mysql" + use postgres && myconf="${myconf} --with-pgsql=/usr" + use odbc && myconf="${myconf} --with-unixODBC=/usr" + use ldap && myconf="${myconf} --with-ldap" + use pdflib && myconf="${myconf} --with-pdflib=/usr" + use firebird && myconf="${myconf} --with-interbase=/opt/interbase" + + use qt && ( \ + export QTDIR=/usr/qt/2 #hope this helps - danarmak + myconf="${myconf} --with-qtdom" + ) + + if [ "`use imap`" ] ; then + if [ "`use ssl`" ] && [ "`strings ${ROOT}/usr/lib/c-client.a \ + | grep ssl_onceonlyinit`" ] ; then + echo "Compiling imap with SSL support" + myconf="${myconf} --with-imap --with-imap-ssl" + else + echo "Compiling imap without SSL support" + myconf="${myconf} --with-imap" + fi + fi + use libwww && myconf="${myconf} --with-xml" || myconf="${myconf} --disable-xml" + use flash && myconf="${myconf} --with-swf=/usr --with-ming=/usr" + + if [ "`use xml`" ] ; then + export LIBS="-lxmlparse -lxmltok" + myconf="${myconf} --with-sablot=/usr" + myconf="${myconf} --enable-xslt" + myconf="${myconf} --with-xslt-sablot" + fi + + use xml2 && myconf="${myconf} --with-dom" + use crypt && myconf="${myconf} --with-mcrypt --with-mhash" + + LDFLAGS="$LDFLAGS -ltiff -ljpeg" + + if [ "`use X`" ] ; then + myconf="${myconf} --with-xpm-dir=/usr/X11R6" + LDFLAGS="$LDFLAGS -L/usr/X11R6/lib" + fi + + ./configure \ + --prefix=/usr \ + --with-gd \ + --with-gmp \ + --with-bz2 \ + --with-ttf \ + --enable-ftp \ + --with-t1lib \ + --enable-dbase \ + --with-zlib=yes \ + --enable-bcmath \ + --enable-sysvsem \ + --enable-sysvshm \ + --enable-calendar \ + --enable-trans-sid \ + --enable-versioning \ + --enable-track-vars \ + --with-png-dir=/usr \ + --with-jpeg-dir=/usr/lib \ + --enable-inline-optimization \ + --with-config-file-path=/etc/php4 \ + --host=${CHOST} ${myconf} || die "bad ./configure" + + make || die "compile problem" +} + + +src_install() { + make INSTALL_ROOT=${D} install-pear || die + + dodoc CODING_STANDARDS LICENSE EXTENSIONS + dodoc RELEASE_PROCESS README.* TODO NEWS + dodoc ChangeLog* *.txt + + exeinto /usr/bin + doexe php + + insinto /etc/php4 + cat php.ini-dist | sed "s/register_globals = Off/register_globals = On/g" > php.ini + doins php.ini + dosym /usr/lib/php/extensions/no-debug-non-zts-20020429 /etc/php4/lib +} + +pkg_postinst() { + einfo + einfo "Please don't use this package on a webserver." + einfo "There is no security compiled in." + einfo +} + diff --git a/dev-php/phpdbg/files/digest-phpdbg-2.10 b/dev-php/phpdbg/files/digest-phpdbg-2.10 new file mode 100644 index 000000000000..5250baceee80 --- /dev/null +++ b/dev-php/phpdbg/files/digest-phpdbg-2.10 @@ -0,0 +1 @@ +MD5 7fcd33a3a869bd0ade8def9e642cfa04 dbg-2.10pl3.tar.gz 34496 diff --git a/dev-php/phpdbg/phpdbg-2.10.ebuild b/dev-php/phpdbg/phpdbg-2.10.ebuild new file mode 100644 index 000000000000..4bc1aee4c720 --- /dev/null +++ b/dev-php/phpdbg/phpdbg-2.10.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/dev-php/phpdbg/phpdbg-2.10.ebuild,v 1.1 2002/07/03 17:38:45 rphillips Exp $ + +PL="pl3" +S=${WORKDIR}/dbg-${PV}${PL} +DESCRIPTION="Ruby/DBI - a database independent interface for accessing databases - similar to Perl's DBI" +SRC_URI="http://dd.cron.ru/dbg/dnld/dbg-${PV}${PL}.tar.gz" +HOMEPAGE="http://dd.cron.ru/dbg/" + +DEPEND="" + +src_compile() { + phpize + ./configure --with-extensions-flag + make +} + +src_install () { + echo test +} + |