mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
Add php 3.0.16, a standalone PHP interpreter.
PR: 21094 Submitted by: roam (oops :-)
This commit is contained in:
parent
ae65d62fa3
commit
513c0e84e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36123
@ -82,6 +82,7 @@
|
||||
SUBDIR += perl5
|
||||
SUBDIR += pfe-devel
|
||||
SUBDIR += pgcc
|
||||
SUBDIR += php
|
||||
SUBDIR += pike
|
||||
SUBDIR += pm3-base
|
||||
SUBDIR += pm3-forms
|
||||
|
61
lang/php/Makefile
Normal file
61
lang/php/Makefile
Normal file
@ -0,0 +1,61 @@
|
||||
# New ports collection makefile for: php3
|
||||
# Date created: 7 Sep 2000
|
||||
# Whom: Peter Pentchev <roam@orbitel.bg>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= php
|
||||
PORTVERSION= 3.0.16
|
||||
CATEGORIES= lang www
|
||||
MASTER_SITES= ftp://ftp.php.net/pub/${PHP_DISTDIR}/ \
|
||||
http://us.php.net/${PHP_DISTDIR}/ \
|
||||
http://php.he.net/${PHP_DISTDIR}/ \
|
||||
http://www.php3.de/${PHP_DISTDIR}/ \
|
||||
http://au.php.net:81/${PHP_DISTDIR}/ \
|
||||
http://at.php.net/${PHP_DISTDIR}/ \
|
||||
http://br.php.net/${PHP_DISTDIR}/ \
|
||||
http://php.easydns.com/${PHP_DISTDIR}/ \
|
||||
http://www.php.cz/${PHP_DISTDIR}/ \
|
||||
http://php3.globe.de/${PHP_DISTDIR}/
|
||||
|
||||
MAINTAINER= roam@orbitel.bg
|
||||
|
||||
PHP_DISTDIR= distributions
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --without-apache \
|
||||
--with-system-regex \
|
||||
--with-config-file-path=${PREFIX}/etc \
|
||||
--disable-debug \
|
||||
--enable-track-vars \
|
||||
--without-gd
|
||||
|
||||
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
||||
TOUCH="${TOUCH}" \
|
||||
MKDIR="${MKDIR}"
|
||||
|
||||
PHPDOCDIR= ${PREFIX}/share/doc/php
|
||||
PLIST_SUB= PHPDOCDIR=${PHPDOCDIR:S/^${PREFIX}\///}
|
||||
|
||||
pre-fetch:
|
||||
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
|
||||
|
||||
post-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/php3.ini-dist ${PREFIX}/etc
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${PHPDOCDIR}
|
||||
.for i in CODING_STANDARDS LICENSE
|
||||
@${INSTALL_DATA} ${WRKSRC}/$i ${PHPDOCDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
post-clean:
|
||||
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
||||
|
||||
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
||||
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
lang/php/distinfo
Normal file
1
lang/php/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (php-3.0.16.tar.gz) = 0dc379181f625c30f635c2cf3080acb1
|
19
lang/php/files/patch-configure
Normal file
19
lang/php/files/patch-configure
Normal file
@ -0,0 +1,19 @@
|
||||
--- configure.orig Fri Feb 25 21:49:48 2000
|
||||
+++ configure Tue Feb 29 22:29:05 2000
|
||||
@@ -8961,7 +8945,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
|
||||
@@ -9002,7 +8986,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
|
29
lang/php/files/patch-sybase.c
Normal file
29
lang/php/files/patch-sybase.c
Normal file
@ -0,0 +1,29 @@
|
||||
--- 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;
|
1
lang/php/pkg-comment
Normal file
1
lang/php/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
PHP3 stand-alone script interpreter
|
4
lang/php/pkg-descr
Normal file
4
lang/php/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
Server-side, cross-platform, HTML embedded scripting language which
|
||||
offers easy database integration.
|
||||
|
||||
WWW: http://www.php.net/
|
10
lang/php/pkg-message
Normal file
10
lang/php/pkg-message
Normal file
@ -0,0 +1,10 @@
|
||||
*****************************************************************************
|
||||
You have installed the php3 package.
|
||||
|
||||
Have a look at the 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/php3.tar
|
||||
|
||||
*****************************************************************************
|
5
lang/php/pkg-plist
Normal file
5
lang/php/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
bin/php
|
||||
etc/php3.ini-dist
|
||||
%%PHPDOCDIR%%/CODING_STANDARDS
|
||||
%%PHPDOCDIR%%/LICENSE
|
||||
@dirrm %%PHPDOCDIR%%
|
169
lang/php/scripts/configure.php
Normal file
169
lang/php/scripts/configure.php
Normal file
@ -0,0 +1,169 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD: /tmp/pcvs/ports/lang/php/scripts/Attic/configure.php,v 1.1 2000-12-19 14:00:03 will Exp $
|
||||
|
||||
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "${BATCH}" ]; then
|
||||
set \"GDBM\" \"zlib\" \"MySQL\"
|
||||
else
|
||||
/usr/bin/dialog --title "configuration options" --clear \
|
||||
--checklist "\n\
|
||||
Please select desired options:" -1 -1 16 \
|
||||
GD "GD library support" OFF \
|
||||
GDBM "GNU gdbm database support" ON \
|
||||
FreeType "TrueType font rendering (implies GD)" OFF \
|
||||
zlib "zlib library support" ON \
|
||||
mcrypt "Encryption support" OFF \
|
||||
mhash "Crypto-hashing support" OFF \
|
||||
pdflib "pdflib support (implies zlib)" OFF \
|
||||
IMAP "IMAP support" OFF \
|
||||
MySQL "MySQL database support" ON \
|
||||
PostgreSQL "PostgreSQL database support" OFF \
|
||||
mSQL "mSQL database support" OFF \
|
||||
SybaseDB "Sybase/MS-SQL database support (DB-lib)" OFF \
|
||||
SybaseCT "Sybase/MS-SQL database support (CT-lib)" 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 \
|
||||
2> /tmp/checklist.tmp.$$
|
||||
|
||||
retval=$?
|
||||
|
||||
if [ -s /tmp/checklist.tmp.$$ ]; then
|
||||
set `cat /tmp/checklist.tmp.$$`
|
||||
fi
|
||||
rm -f /tmp/checklist.tmp.$$
|
||||
|
||||
case $retval in
|
||||
0) if [ -z "$*" ]; then
|
||||
echo "Nothing selected"
|
||||
fi
|
||||
;;
|
||||
1) echo "Cancel pressed."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
|
||||
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
||||
|
||||
while [ "$1" ]; do
|
||||
case $1 in
|
||||
\"GD\")
|
||||
echo "LIB_DEPENDS+= gd.1:\${PORTSDIR}/graphics/gd"
|
||||
echo "CONFIGURE_ARGS+=--with-gd=\${PREFIX}"
|
||||
GD=1
|
||||
;;
|
||||
\"GDBM\")
|
||||
echo "LIB_DEPENDS+= gdbm.2:\${PORTSDIR}/databases/gdbm"
|
||||
echo "CONFIGURE_ARGS+=--with-gdbm=\{$PREFIX\}"
|
||||
;;
|
||||
\"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 "LIB_DEPENDS+= mcrypt-2.2.2:\${PORTSDIR}/security/libmcrypt"
|
||||
echo "CONFIGURE_ARGS+=--with-mcrypt=\${PREFIX}"
|
||||
;;
|
||||
\"mhash\")
|
||||
echo "mhash is DISABLED for now. Ignoring." > /dev/stderr
|
||||
;;
|
||||
\"nothing\")
|
||||
echo "LIB_DEPENDS+= mhash.1:\${PORTSDIR}/security/mhash"
|
||||
echo "CONFIGURE_ARGS+=--with-mhash=\${PREFIX}"
|
||||
;;
|
||||
\"pdflib\")
|
||||
echo "LIB_DEPENDS+= pdf.2:\${PORTSDIR}/print/pdflib"
|
||||
echo "CONFIGURE_ARGS+=--with-pdflib=\${PREFIX} \\"
|
||||
echo " --with-jpeg-dir=\${PREFIX} \\"
|
||||
echo " --with-tiff-dir=\${PREFIX}"
|
||||
if [ -z "$ZLIB" ]; then
|
||||
set $* \"zlib\"
|
||||
fi
|
||||
;;
|
||||
\"IMAP\")
|
||||
echo "LIB_DEPENDS+= c-client4.7:\${PORTSDIR}/mail/cclient"
|
||||
echo "CONFIGURE_ARGS+=--with-imap=\${PREFIX}"
|
||||
;;
|
||||
\"MySQL\")
|
||||
echo "LIB_DEPENDS+= mysqlclient.6:\${PORTSDIR}/databases/mysql322-client"
|
||||
echo "CONFIGURE_ARGS+=--with-mysql=\${PREFIX}"
|
||||
;;
|
||||
\"PostgreSQL\")
|
||||
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7"
|
||||
echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql"
|
||||
;;
|
||||
\"mSQL\")
|
||||
echo "BUILD_DEPENDS+= msql:\${PORTSDIR}/databases/msql"
|
||||
echo "CONFIGURE_ARGS+=--with-msql=\${PREFIX}"
|
||||
;;
|
||||
\"SybaseDB\")
|
||||
echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds"
|
||||
echo "CONFIGURE_ARGS+=--with-sybase=\${PREFIX}"
|
||||
if [ "$SYBASECT" ]; then
|
||||
echo "SybaseDB and SybaseCT are mutually exclusive." > /dev/stderr
|
||||
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
||||
exit 1
|
||||
fi
|
||||
SYBASEDB=1
|
||||
;;
|
||||
\"SybaseCT\")
|
||||
echo "LIB_DEPENDS+= ct.0:\${PORTSDIR}/databases/freetds"
|
||||
echo "CONFIGURE_ARGS+=--with-sybase-ct=\${PREFIX}"
|
||||
if [ "$SYBASEDB" ]; then
|
||||
echo "SybaseDB and SybaseCT are mutually exclusive." > /dev/stderr
|
||||
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
||||
exit 1
|
||||
fi
|
||||
SYBASECT=1
|
||||
;;
|
||||
\"dBase\")
|
||||
echo "CONFIGURE_ARGS+=--with-dbase"
|
||||
;;
|
||||
\"OpenLDAP\")
|
||||
echo "LIB_DEPENDS+= ldap.1:\${PORTSDIR}/net/openldap"
|
||||
echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap"
|
||||
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
|
||||
echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'"
|
||||
fi
|
||||
;;
|
||||
\"SNMP\")
|
||||
echo "LIB_DEPENDS+= snmp.4:\${PORTSDIR}/net/ucd-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.1:${PORTSDIR}/devel/gettext"
|
||||
echo "CONFIGURE_ARGS+=--with-gettext=${PREFIX}"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid option(s): $*" > /dev/stderr
|
||||
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
Loading…
Reference in New Issue
Block a user