diff options
Diffstat (limited to 'www/mod_php3')
-rw-r--r-- | www/mod_php3/Makefile | 113 | ||||
-rw-r--r-- | www/mod_php3/distinfo | 4 | ||||
-rw-r--r-- | www/mod_php3/files/patch-aa | 10 | ||||
-rw-r--r-- | www/mod_php3/files/patch-aq | 56 | ||||
-rw-r--r-- | www/mod_php3/files/patch-ar | 29 | ||||
-rw-r--r-- | www/mod_php3/files/patch-at | 8 | ||||
-rw-r--r-- | www/mod_php3/files/patch-functions::mysql.c | 52 | ||||
-rw-r--r-- | www/mod_php3/pkg-descr | 4 | ||||
-rw-r--r-- | www/mod_php3/pkg-message | 20 | ||||
-rw-r--r-- | www/mod_php3/pkg-plist | 4 | ||||
-rw-r--r-- | www/mod_php3/pkg-plist.standalone | 3 | ||||
-rw-r--r-- | www/mod_php3/scripts/configure.php | 186 |
12 files changed, 0 insertions, 489 deletions
diff --git a/www/mod_php3/Makefile b/www/mod_php3/Makefile deleted file mode 100644 index f9a94b12277d..000000000000 --- a/www/mod_php3/Makefile +++ /dev/null @@ -1,113 +0,0 @@ -# New ports collection makefile for: mod_php3 -# Date created: Wed Feb 23 11:28:12 CEST 2000 -# Whom: Dirk Froemberg <dirk@FreeBSD.org> -# -# $FreeBSD$ -# - -PORTNAME?= mod_php3 -PORTVERSION= 3.0.18 -PORTREVISION?= 4 -CATEGORIES?= www -MASTER_SITES= ${MASTER_SITE_PHP} -MASTER_SITE_SUBDIR= distributions -DISTNAME= php-${PORTVERSION} - -PATCH_SITES= ${MASTER_SITE_PHP} -PATCH_SITE_SUBDIR= distributions -PATCHFILES= mime.c.diff-3.0.gz - -MAINTAINER= apache@FreeBSD.org -COMMENT?= PHP3 module for Apache - -BROKEN= "Conflicting dependencies (mysql 3.x and 4.x)" -EXPIRATION_DATE=2005-02-18 -DEPRECATED= "${BROKEN}" - -.if !defined(STANDALONE) -USE_APACHE= yes -.endif - -PATCH_DIST_ARGS= -d ${WRKSRC}/functions - -SLAVEDIRS= lang/php3 - -USE_SUBMAKE= yes -GNU_CONFIGURE= yes - -.if !defined(BATCH) && !defined(PACKAGE_BUILDING) -IS_INTERACTIVE= yes -.endif - -.if defined(STANDALONE) -CONFIGURE_ARGS= --with-config-file-path=${PREFIX}/etc/php.standalone \ - --enable-discard-path -.else -CONFIGURE_ARGS= --with-apxs=${APXS} \ - --with-config-file-path=${PREFIX}/etc -.endif - -CONFIGURE_ARGS+=--enable-versioning \ - --with-system-regex \ - --disable-debug \ - --enable-track-vars \ - --without-gd - -SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ - TOUCH="${TOUCH}" \ - MKDIR="${MKDIR}" \ - CAT="${CAT}" \ - REALCURDIR="${.CURDIR}" - -AP_LIBEXEC= ${PREFIX}/libexec/apache - -PLIST_SUB= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///} - -.include <bsd.port.pre.mk> - -.if ${ARCH} != "i386" && ${ARCH} != "alpha" -BROKEN= "Does not compile on !i386 and !alpha" -.endif - -pre-fetch: - @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php - -post-install: -.if !defined(STANDALONE) - @${INSTALL_DATA} ${WRKSRC}/php3.ini-dist ${PREFIX}/etc -.else - @${MKDIR} ${PREFIX}/etc/php.standalone - @${INSTALL_DATA} ${WRKSRC}/php3.ini-dist ${PREFIX}/etc/php.standalone -.endif - -.if !defined(STANDALONE) - @${ECHO} "*****************************************************************************" - @${ECHO} "Make sure the mime.types are connected to the php module properly and" - @${ECHO} "index.php3 is part of your DirectoryIndex." - @${ECHO} "" - @${ECHO} "The following should be in your Apache configuration file:" - @${ECHO} "[...]" - @${ECHO} "DirectoryIndex index.php3 index.html" - @${ECHO} "[...]" - @${ECHO} "AddType application/x-httpd-php3 .php3" - @${ECHO} "AddType application/x-httpd-php3-source .php3s" - @${ECHO} "[...]" - @${ECHO} "*****************************************************************************" -.endif - -post-clean: - @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc - -.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) -.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" -.endif - -# XXX: -# Has to be kept in sync with the defaults in configure.php -.ifndef(WITHOUT_MYSQL) -.ifmake describe -USE_MYSQL= yes -.endif -.endif - -.include <bsd.port.post.mk> diff --git a/www/mod_php3/distinfo b/www/mod_php3/distinfo deleted file mode 100644 index 3b1db4ac4a77..000000000000 --- a/www/mod_php3/distinfo +++ /dev/null @@ -1,4 +0,0 @@ -MD5 (php-3.0.18.tar.gz) = b4b8f7f1151ce66d5f3910a066651133 -SIZE (php-3.0.18.tar.gz) = 2219410 -MD5 (mime.c.diff-3.0.gz) = b4826b2d7968553f808ddb80269d87a0 -SIZE (mime.c.diff-3.0.gz) = 488 diff --git a/www/mod_php3/files/patch-aa b/www/mod_php3/files/patch-aa deleted file mode 100644 index 11e68467a5d2..000000000000 --- a/www/mod_php3/files/patch-aa +++ /dev/null @@ -1,10 +0,0 @@ ---- functions/imap.c.orig Sat Sep 30 19:32:44 2000 -+++ functions/imap.c Sun Oct 22 14:22:54 2000 -@@ -61,7 +61,6 @@ - #include "imap.h" - #include "mail.h" - #include "rfc822.h" --#include "utf8.h" - #include "modules.h" - #if (WIN32|WINNT) - #include "winsock.h" diff --git a/www/mod_php3/files/patch-aq b/www/mod_php3/files/patch-aq deleted file mode 100644 index f30fea192773..000000000000 --- a/www/mod_php3/files/patch-aq +++ /dev/null @@ -1,56 +0,0 @@ ---- configure.orig Fri Oct 20 21:05:17 2000 -+++ configure Mon Feb 26 13:09:58 2001 -@@ -1626,7 +1626,7 @@ - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" -- ac_dummy="$PATH /usr/bin /usr/sbin /usr/etc /etc /usr/ucblib" -+ ac_dummy="$PATH:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then -@@ -4634,7 +4634,7 @@ - - echo "$ac_t""no" 1>&6 - BINNAME=php -- INSTALL_IT="cp $BINNAME \$(bindir)" -+ INSTALL_IT="cp $BINNAME \$(bindir)/php3" - - fi - -@@ -5157,8 +5157,8 @@ - fi - if test "$withval" != "no" && test "$withval" != "yes"; then - IMAP_DIR=$withval -- if test -f $IMAP_DIR/include/imap/mail.h; then -- IMAP_INC_DIR=$IMAP_DIR/include/imap -+ if test -f $IMAP_DIR/include/c-client/mail.h; then -+ IMAP_INC_DIR=$IMAP_DIR/include/c-client - else - IMAP_INC_DIR=$withval/include - fi -@@ -9231,7 +9231,7 @@ - fi - SYBASE_CT_INCLUDE=-I$SYBASE_CT_INCDIR - SYBASE_CT_LFLAGS="-L$SYBASE_CT_LIBDIR" -- SYBASE_CT_LIBS="-lcs -lct -lcomn -lintl" -+ SYBASE_CT_LIBS="-lct" - old_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -L$SYBASE_CT_LIBDIR" - echo $ac_n "checking for netg_errstr in -ltcl""... $ac_c" 1>&6 -@@ -9272,7 +9272,6 @@ - SYBASE_CT_LIBS="$SYBASE_CT_LIBS -ltcl" - else - echo "$ac_t""no" 1>&6 -- SYBASE_CT_LIBS="$SYBASE_CT_LIBS -lsybtcl" - fi - - echo $ac_n "checking for insck__getVdate in -linsck""... $ac_c" 1>&6 -@@ -9671,7 +9670,6 @@ - PGSQL_INCDIR=$withval/include - test -d $withval/include/pgsql && PGSQL_INCDIR=$withval/include/pgsql - test -d $withval/pgsql/include && PGSQL_INCDIR=$withval/pgsql/include -- test -d $withval/include/postgresql && PGSQL_INCDIR=$withval/include/postgresql - PGSQL_LIBDIR=$withval/lib - test -d $withval/lib/pgsql && PGSQL_LIBDIR=$withval/lib/pgsql - test -d $withval/pgsql/lib && PGSQL_LIBDIR=$withval/pgsql/lib diff --git a/www/mod_php3/files/patch-ar b/www/mod_php3/files/patch-ar deleted file mode 100644 index 32fca3c5a7f0..000000000000 --- a/www/mod_php3/files/patch-ar +++ /dev/null @@ -1,29 +0,0 @@ ---- functions/sybase.c.orig Tue Feb 8 00:54:51 2000 -+++ functions/sybase.c Tue Feb 29 22:01:07 2000 -@@ -366,7 +366,7 @@ - RETURN_FALSE; - } - /* create the link */ -- if ((sybase.link=dbopen(sybase.login,host))==FAIL) { -+ if ((sybase.link=tdsdbopen(sybase.login,host))==FAIL) { - /*php3_error(E_WARNING,"Sybase: Unable to connect to server: %s",sybase_error(sybase));*/ - efree(hashed_details); - dbloginfree(sybase.login); -@@ -408,7 +408,7 @@ - #if BROKEN_SYBASE_PCONNECTS - log_error("PHP/Sybase: Persistent link died, trying to reconnect...",php3_rqst->server); - #endif -- if ((sybase_ptr->link=dbopen(sybase_ptr->login,host))==FAIL) { -+ if ((sybase_ptr->link=tdsdbopen(sybase_ptr->login,host))==FAIL) { - #if BROKEN_SYBASE_PCONNECTS - log_error("PHP/Sybase: Unable to reconnect!",php3_rqst->server); - #endif -@@ -464,7 +464,7 @@ - RETURN_FALSE; - } - -- if ((sybase.link=dbopen(sybase.login,host))==NULL) { -+ if ((sybase.link=tdsdbopen(sybase.login,host))==NULL) { - /*php3_error(E_WARNING,"Sybase: Unable to connect to server: %s",sybase_error(sybase));*/ - efree(hashed_details); - RETURN_FALSE; diff --git a/www/mod_php3/files/patch-at b/www/mod_php3/files/patch-at deleted file mode 100644 index add66733a3e1..000000000000 --- a/www/mod_php3/files/patch-at +++ /dev/null @@ -1,8 +0,0 @@ ---- php.map.orig Sat Sep 11 00:19:26 1999 -+++ php.map Tue Dec 26 14:27:56 2000 -@@ -1,4 +1,5 @@ - PHP3 { - global: php3_module; -+ mm_*; - local: *; - }; diff --git a/www/mod_php3/files/patch-functions::mysql.c b/www/mod_php3/files/patch-functions::mysql.c deleted file mode 100644 index cbf509ecb039..000000000000 --- a/www/mod_php3/files/patch-functions::mysql.c +++ /dev/null @@ -1,52 +0,0 @@ ---- functions/mysql.c.orig Thu Jun 3 13:17:04 2004 -+++ functions/mysql.c Thu Jun 3 13:17:09 2004 -@@ -785,7 +785,9 @@ - void php3_mysql_create_db(INTERNAL_FUNCTION_PARAMETERS) - { - pval *db,*mysql_link; -- int id,type; -+ int id,type,res; -+ char *qbuf; -+ size_t qsize; - MYSQL *mysql; - MySQL_TLS_VARS; - -@@ -818,7 +820,12 @@ - } - - convert_to_string(db); -- if (mysql_create_db(mysql,db->value.str.val)==0) { -+ qsize = strlen(db->value.str.val) + 20; -+ qbuf = (char *)emalloc(qsize); -+ snprintf(qbuf, qsize, "CREATE DATABASE %s", db->value.str.val); -+ res = mysql_real_query(mysql,qbuf,strlen(qbuf)); -+ efree(qbuf); -+ if (res) { - RETURN_TRUE; - } else { - RETURN_FALSE; -@@ -831,7 +838,9 @@ - void php3_mysql_drop_db(INTERNAL_FUNCTION_PARAMETERS) - { - pval *db,*mysql_link; -- int id,type; -+ int id,type,res; -+ char *qbuf; -+ size_t qsize; - MYSQL *mysql; - MySQL_TLS_VARS; - -@@ -864,7 +873,12 @@ - } - - convert_to_string(db); -- if (mysql_drop_db(mysql,db->value.str.val)==0) { -+ qsize = strlen(db->value.str.val) + 20; -+ qbuf = (char *)emalloc(qsize); -+ snprintf(qbuf, qsize, "DROP DATABASE %s", db->value.str.val); -+ res = mysql_real_query(mysql,qbuf,strlen(qbuf)); -+ efree(qbuf); -+ if (res) { - RETURN_TRUE; - } else { - RETURN_FALSE; diff --git a/www/mod_php3/pkg-descr b/www/mod_php3/pkg-descr deleted file mode 100644 index cea408b8d551..000000000000 --- a/www/mod_php3/pkg-descr +++ /dev/null @@ -1,4 +0,0 @@ -Server-side, cross-platform, HTML embedded scripting language which -offers easy database integration. - -WWW: http://www.php.net/ diff --git a/www/mod_php3/pkg-message b/www/mod_php3/pkg-message deleted file mode 100644 index 8741171455f2..000000000000 --- a/www/mod_php3/pkg-message +++ /dev/null @@ -1,20 +0,0 @@ -***************************************************************************** -You have installed the mod_php3 package. - -Have a look at the mod_php3 _port_ if you need additional support for -databases other than MySQL, e. g. - -You can find it at -ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/ports/www/mod_php3.tar - -Make sure the mime.types are connected to the php module properly and -index.php3 is part of your DirectoryIndex. - -The following should be in your Apache configuration file: -[...] -DirectoryIndex index.php3 index.html -[...] -AddType application/x-httpd-php3 .php3 -AddType application/x-httpd-php3-source .php3s -[...] -***************************************************************************** diff --git a/www/mod_php3/pkg-plist b/www/mod_php3/pkg-plist deleted file mode 100644 index a27e2833d8ba..000000000000 --- a/www/mod_php3/pkg-plist +++ /dev/null @@ -1,4 +0,0 @@ -etc/php3.ini-dist -%%AP_LIBEXEC%%/libphp3.so -@exec %D/sbin/apxs -e -A -n php3 %f -@unexec %D/sbin/apxs -e -A -n php3 %f diff --git a/www/mod_php3/pkg-plist.standalone b/www/mod_php3/pkg-plist.standalone deleted file mode 100644 index 051d2ac5d3bc..000000000000 --- a/www/mod_php3/pkg-plist.standalone +++ /dev/null @@ -1,3 +0,0 @@ -bin/php3 -etc/php.standalone/php3.ini-dist -@unexec rmdir %D/etc/php.standalone 2>/dev/null || true diff --git a/www/mod_php3/scripts/configure.php b/www/mod_php3/scripts/configure.php deleted file mode 100644 index af41539f1fa5..000000000000 --- a/www/mod_php3/scripts/configure.php +++ /dev/null @@ -1,186 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -if [ -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc ]; then - exit -fi - -tempfile=`/usr/bin/mktemp -t checklist` - -if [ "${BATCH}" ]; then - set \"zlib\" \"MySQL\" -else - /usr/bin/dialog --title "configuration options" --clear \ - --checklist "\n\ -Please select desired options:" -1 -1 16 \ -GD "GD library support" OFF \ -FreeType "TrueType font rendering (implies GD)" OFF \ -zlib "zlib library support" ON \ -mcrypt "Encryption support" OFF \ -mhash "Crypto-hashing support" OFF \ -IMAP "IMAP support" OFF \ -MySQL "MySQL database support" ON \ -PostgreSQL "PostgreSQL database support" OFF \ -SybaseDB "Sybase/MS-SQL database support (DB-lib)" OFF \ -SybaseCT "Sybase/MS-SQL database support (CT-lib)" OFF \ -Interbase "Interbase 6 database support (Firebird)" OFF \ -dBase "dBase database support" OFF \ -OpenLDAP "OpenLDAP support" OFF \ -SNMP "SNMP support" OFF \ -XML "XML support" OFF \ -FTP "File Transfer Protocol support" OFF \ -gettext "gettext library support" OFF \ -YP "YP/NIS support" OFF \ -sysvsem "System V semaphore support" OFF \ -sysvshm "System V shared memory support" OFF \ -2> $tempfile - - retval=$? - - if [ -s $tempfile ]; then - set `cat $tempfile` - fi - rm -f $tempfile - - case $retval in - 0) if [ -z "$*" ]; then - echo "Nothing selected" - fi - ;; - 1) echo "Cancel pressed." - exit 1 - ;; - esac -fi - -${MKDIR} ${WRKDIRPREFIX}${REALCURDIR} -exec > ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc - -while [ "$1" ]; do - case $1 in - \"GD\") - echo "LIB_DEPENDS+= gd.4:\${PORTSDIR}/graphics/gd" - echo "CONFIGURE_ARGS+=--with-gd=\${PREFIX}" - GD=1 - ;; - \"FreeType\") - echo "LIB_DEPENDS+= ttf.4:\${PORTSDIR}/print/freetype" - echo "CONFIGURE_ARGS+=--with-ttf=\${PREFIX}" - if [ -z "$GD" ]; then - set $* \"GD\" - fi - ;; - \"zlib\") - echo "CONFIGURE_ARGS+=--with-zlib" - ZLIB=1 - ;; - \"mcrypt\") - echo "mcrypt support doesn't compile at the moment. Ignoring." > /dev/stderr - ;; - \"nothing\") - echo "LIB_DEPENDS+= mcrypt.8:\${PORTSDIR}/security/libmcrypt" - echo "CONFIGURE_ARGS+=--with-mcrypt=\${PREFIX}" - ;; - \"mhash\") - echo "LIB_DEPENDS+= mhash.2:\${PORTSDIR}/security/mhash" - echo "CONFIGURE_ARGS+=--with-mhash=\${PREFIX}" - ;; - \"IMAP\") - echo "LIB_DEPENDS+= c-client4.8:\${PORTSDIR}/mail/cclient" - echo "CONFIGURE_ARGS+=--with-imap=\${PREFIX}" - ;; - \"MySQL\") - echo "USE_MYSQL= yes" - echo "CONFIGURE_ARGS+=--with-mysql=\${PREFIX}" - MYSQL=1 - ;; - \"PostgreSQL\") - echo "POSTGRESQL_PORT?= databases/postgresql7" - echo "LIB_DEPENDS+= pq.3:\${PORTSDIR}/\${POSTGRESQL_PORT}" - echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}" - if /usr/bin/ldd ${PREFIX}/bin/postgres | /usr/bin/grep -q "libssl"; then - LIBS="-lcrypto -lssl" - fi - ;; - \"SybaseDB\") - echo "LIB_DEPENDS+= sybdb.1:\${PORTSDIR}/databases/freetds" - echo "LIB_DEPENDS+= iconv.3:\${PORTSDIR}/converters/libiconv" - echo "CONFIGURE_ARGS+=--with-sybase=\${PREFIX}" - LIBS="${LIBS} -L\${LOCALBASE}/lib -liconv" - if [ "$SYBASECT" ]; then - echo "SybaseDB and SybaseCT are mutually exclusive." > /dev/stderr - rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc - exit 1 - fi - SYBASEDB=1 - ;; - \"SybaseCT\") - echo "LIB_DEPENDS+= ct.0:\${PORTSDIR}/databases/freetds" - echo "LIB_DEPENDS+= iconv.3:\${PORTSDIR}/converters/libiconv" - echo "CONFIGURE_ARGS+=--with-sybase-ct=\${PREFIX}" - LIBS="${LIBS} -L\${LOCALBASE}/lib -liconv" - if [ "$SYBASEDB" ]; then - echo "SybaseDB and SybaseCT are mutually exclusive." > /dev/stderr - rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc - exit 1 - fi - SYBASECT=1 - ;; - \"Interbase\") - echo "LIB_DEPENDS+= gds.1:\${PORTSDIR}/databases/firebird" - echo "CONFIGURE_ARGS+=--with-interbase=\${PREFIX}/firebird" - LIBS="${LIBS} -L\${PREFIX}/firebird/lib" - ;; - \"dBase\") - echo "CONFIGURE_ARGS+=--with-dbase" - ;; - \"OpenLDAP\") - echo "LIB_DEPENDS+= ldap.1:\${PORTSDIR}/net/openldap12" - echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap12" - echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}" - if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then - LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib" - fi - ;; - \"SNMP\") - echo "LIB_DEPENDS+= snmp.4:\${PORTSDIR}/net/net-snmp" - echo "CONFIGURE_ARGS+=--with-snmp=\${PREFIX} --enable-ucd-snmp-hack" - ;; - \"XML\") - echo "BUILD_DEPENDS+= \${PREFIX}/lib/libexpat.a:\${PORTSDIR}/textproc/expat" - echo "BUILD_DEPENDS+= \${PREFIX}/include/xml/xmlparse.h:\${PORTSDIR}/textproc/expat" - echo "BUILD_DEPENDS+= \${PREFIX}/include/xml/xmltok.h:\${PORTSDIR}/textproc/expat" - echo "CONFIGURE_ARGS+=--with-xml=\${PREFIX}" - ;; - \"FTP\") - echo "CONFIGURE_ARGS+=--with-ftp" - ;; - \"gettext\") - echo "LIB_DEPENDS+= intl.5:\${PORTSDIR}/devel/gettext" - echo "CONFIGURE_ARGS+=--with-gettext=\${PREFIX}" - ;; - \"YP\") - echo "CONFIGURE_ARGS+=--with-yp" - ;; - \"sysvsem\") - echo "CONFIGURE_ARGS+=--enable-sysvsem" - ;; - \"sysvshm\") - echo "CONFIGURE_ARGS+=--enable-sysvshm" - ;; - *) - echo "Invalid option(s): $*" > /dev/stderr - rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc - exit 1 - ;; - esac - shift -done - -if [ "${LIBS}" ]; then - echo "CONFIGURE_ENV+= LIBS='${LIBS}'" -fi - -if [ -z "${MYSQL}" ]; then - echo "WITHOUT_MYSQL= 1" -fi |