Import php-5.0.2;

PHP5 is a widely-used general-purpose scripting language 
that is especially suited for Web development and can be 
embedded into HTML.
This commit is contained in:
robert 2004-10-02 11:32:35 +00:00
parent 328779cedd
commit 837cd0d4ce
66 changed files with 1262 additions and 0 deletions

7
www/php5/Makefile Normal file
View File

@ -0,0 +1,7 @@
# $OpenBSD: Makefile,v 1.1.1.1 2004/10/02 11:32:35 robert Exp $
SUBDIR += core
SUBDIR += extensions
SUBDIR += extensions,no_x11
.include <bsd.port.subdir.mk>

68
www/php5/Makefile.inc Normal file
View File

@ -0,0 +1,68 @@
# $OpenBSD: Makefile.inc,v 1.1.1.1 2004/10/02 11:32:35 robert Exp $
# This port currently only works with archs supporting dynamic loading
# and has Apache that supports DSO's.
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
V= 5.0.2
DISTNAME= php-${V}
CATEGORIES= www lang
MAINTAINER= Robert Nagy <robert@openbsd.org>
HOMEPAGE= http://www.php.net/
MASTER_SITES= http://us2.php.net/distributions/ \
http://se.php.net/distributions/ \
http://no.php.net/distributions/ \
http://uk.php.net/distributions/
# UPGRADERS: please read BOTH the PHP and Zend licenses
# and make sure they are safe before an upgrade
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PHP_CONFIG_PATH= /var/www/conf
PHP_CONFIG_FILE= ${PHP_CONFIG_PATH}/php.ini
# where the main php5 module is stored (outside the chroot)
APACHE_MODULE_SUBDIR= lib/php
APACHE_MODULE_DIR= ${LOCALBASE}/${APACHE_MODULE_SUBDIR}
# where the PEAR and extension modules are (inside the chroot)
CHROOT_DIR?= /var/www
PEAR_DIR?= ${CHROOT_DIR}/pear
MODULES_SUBDIR= lib/php/modules
MODULES_DIR= ${CHROOT_DIR}/${MODULES_SUBDIR}
.if ${USE_GCC3:L:Myes}
PHP_LDFLAGS= -lstdc++ -lm
.endif
LIB_DEPENDS+= xml2.8::textproc/libxml
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.52
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib ${PHP_LDFLAGS}" \
EXTENSION_DIR=${MODULES_DIR}
MAKE_ENV= ${CONFIGURE_ENV}
CONFIGURE_ARGS+= --enable-shared \
--disable-static \
--disable-rpath \
--with-config-file-path=${PHP_CONFIG_PATH} \
--enable-inline-optimization \
--with-pic
# default included extensions
CONFIGURE_ARGS+= --with-openssl \
--with-zlib
REGRESS_TARGET= test
REGRESS_FLAGS= NO_INTERACTION=1
CHECKSUM_FILE?= ${PORTSDIR}/www/php5/distinfo
PATCH_LIST= ${PORTSDIR}/www/php5/patches/patch-* \
patch-*

3
www/php5/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (php-5.0.2.tar.gz) = 5467327e0cab6de76a90266933322b59
RMD160 (php-5.0.2.tar.gz) = 71bd044e3de3946099da35dc680eae88ea709920
SHA1 (php-5.0.2.tar.gz) = 63ac32e110958f2cb5b70cd8bd6760a31b7106dd

View File

@ -0,0 +1,288 @@
# $OpenBSD: Makefile,v 1.1.1.1 2004/10/02 11:32:35 robert Exp $
FULLPKGNAME= php5-extensions-${V}
COMMENT= "informational package about PHP5 extensions"
MULTI_PACKAGES=
SUBPACKAGE?=
# extensions get installed under the apache chroot
PREFIX?= ${CHROOT_DIR}
FLAVORS= no_x11
FLAVOR?=
RUN_DEPENDS= :php5-core-${V}:www/php5/core
MODULES= devel/gettext
CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs \
--with-iconv-dir=${LOCALBASE} \
--with-iconv=${LOCALBASE} \
--disable-dom
GRAPHIC_DEPENDS= jpeg.62::graphics/jpeg \
png.3::graphics/png \
tiff.35::graphics/tiff
GRAPHIC_CONFIG= --with-jpeg-dir=${LOCALBASE} \
--with-png-dir=${LOCALBASE} \
--with-tiff-dir=${LOCALBASE} \
--with-zlib-dir=/usr
# bz2
PSEUDO_FLAVORS+= no_bz2
.if ${FLAVOR:L:Mno_bz2}
CONFIGURE_ARGS+= --without-bz2
.else
MULTI_PACKAGES+= -bz2
COMMENT-bz2= "bzip2 compression extensions for php5"
CONFIGURE_ARGS+= --with-bz2=shared,${LOCALBASE}
BZ2_DEPENDS= bz2.10::archivers/bzip2
.endif
# curl
PSEUDO_FLAVORS+= no_curl
.if ${FLAVOR:L:Mno_curl}
CONFIGURE_ARGS+= --without-curl
.else
MULTI_PACKAGES+= -curl
COMMENT-curl= "curl URL library extensions for php5"
CONFIGURE_ARGS+= --with-curl=shared,${LOCALBASE}
CURL_DEPENDS= curl.2::net/curl
.endif
# dba
PSEUDO_FLAVORS+= no_dba
.if ${FLAVOR:L:Mno_dba}
CONFIGURE_ARGS+= --disable-dba
.else
MULTI_PACKAGES+= -dba
COMMENT-dba= "dba GDBM access extensions for php5"
CONFIGURE_ARGS+= --enable-dba=shared --with-gdbm=${LOCALBASE}
DBA_DEPENDS= gdbm.2::databases/gdbm
.endif
# dbase
PSEUDO_FLAVORS+= no_dbase
.if ${FLAVOR:L:Mno_dbase}
CONFIGURE_ARGS+= --disable-dbase
.else
MULTI_PACKAGES+= -dbase
COMMENT-dbase= "dBase database access extensions for php5"
CONFIGURE_ARGS+= --enable-dbase=shared
.endif
# dbx
PSEUDO_FLAVORS+= no_dbx
.if ${FLAVOR:L:Mno_dbx}
CONFIGURE_ARGS+= --disable-dbx
.else
MULTI_PACKAGES+= -dbx
COMMENT-dbx= "dbx database abstraction interface for php5"
CONFIGURE_ARGS+= --enable-dbx=shared
.endif
# filepro
PSEUDO_FLAVORS+= no_filepro
.if ${FLAVOR:L:Mno_filepro}
CONFIGURE_ARGS+= --disable-filepro
.else
MULTI_PACKAGES+= -filepro
COMMENT-filepro= "filepro database access extensions for php5"
CONFIGURE_ARGS+= --enable-filepro=shared
.endif
# gd
PSEUDO_FLAVORS+= no_gd
.if ${FLAVOR:L:Mno_gd}
CONFIGURE_ARGS+= --without-gd --without-xpm-dir --without-ttf \
--without-freetype-dir
.else
MULTI_PACKAGES+= -gd
COMMENT-gd= "image manipulation extensions for php5"
GD_DEPENDS= ttf.1::print/freetype ${GRAPHIC_DEPENDS} \
t1.5::devel/t1lib
CONFIGURE_ARGS+= --with-gd=shared ${GRAPHIC_CONFIG} \
--with-ttf=shared,${LOCALBASE} --without-freetype-dir \
--with-t1lib=${LOCALBASE}
.if !${FLAVOR:L:Mno_x11}
USE_X11= yes
CONFIGURE_ARGS+= --with-xpm-dir=${X11BASE}
.else
CONFIGURE_ARGS+= --without-xpm-dir
FULLPKGNAME-gd= php5-gd-${V}-no_x11
.endif
.endif
# gmp
PSEUDO_FLAVORS+= no_gmp
.if ${FLAVOR:L:Mno_gmp}
CONFIGURE_ARGS+= --without-gmp
.else
MULTI_PACKAGES+= -gmp
COMMENT-gmp= "gmp math library support for php5"
CONFIGURE_ARGS+= --with-gmp=shared,${LOCALBASE}
GMP_DEPENDS= gmp.4::devel/gmp
.endif
# imap
PSEUDO_FLAVORS+= no_imap
.if ${FLAVOR:L:Mno_imap}
CONFIGURE_ARGS+= --without-imap --without-kerberos
.else
MULTI_PACKAGES+= -imap
COMMENT-imap= "imap, pop3 and nntp extensions for php5"
CONFIGURE_ARGS+= --with-imap=shared,${LOCALBASE} \
--with-kerberos=/usr --with-imap-ssl
IMAP_DEPENDS= c-client.3::mail/c-client
.endif
# ldap
PSEUDO_FLAVORS+= no_ldap
.if ${FLAVOR:L:Mno_ldap}
CONFIGURE_ARGS+= --without-ldap
.else
MULTI_PACKAGES+= -ldap
COMMENT-ldap= "ldap protocol extensions for php5"
CONFIGURE_ARGS+= --with-ldap=shared,${LOCALBASE}
LDAP_DEPENDS= ldap.2,lber::databases/openldap
.endif
# mcrypt
PSEUDO_FLAVORS+= no_mcrypt
.if ${FLAVOR:L:Mno_mcrypt}
CONFIGURE_ARGS+= --without-mcrypt
.else
MULTI_PACKAGES+= -mcrypt
COMMENT-mcrypt= "mcrypt encryption/decryption extensions for php5"
CONFIGURE_ARGS+= --with-mcrypt=shared,${LOCALBASE}
MCRYPT_DEPENDS= mcrypt::security/libmcrypt ltdl.1::devel/libtool
.endif
# mhash
PSEUDO_FLAVORS+= no_mhash
.if ${FLAVOR:L:Mno_mhash}
CONFIGURE_ARGS+= --without-mhash
.else
MULTI_PACKAGES+= -mhash
COMMENT-mhash= "mhash extensions for php5"
CONFIGURE_ARGS+= --with-mhash=shared,${LOCALBASE}
MHASH_DEPENDS= mhash.2::security/mhash
.endif
# mysql
PSEUDO_FLAVORS+= no_mysql
.if ${FLAVOR:L:Mno_mysql}
CONFIGURE_ARGS+= --without-mysql
.else
MULTI_PACKAGES+= -mysql
COMMENT-mysql= "mysql database access extensions for php5"
CONFIGURE_ARGS+= --with-mysql=shared,${LOCALBASE}
MYSQL_DEPENDS= lib/mysql/mysqlclient.10::databases/mysql
.endif
# ncurses
PSEUDO_FLAVORS+= no_ncurses
.if ${FLAVOR:L:Mno_ncurses}
CONFIGURE_ARGS+= --without-ncurses
.else
MULTI_PACKAGES+= -ncurses
COMMENT-ncurses= "ncurses extensions for php5"
CONFIGURE_ARGS+= --with-ncurses=shared,${LOCALBASE}
.endif
# odbc
PSEUDO_FLAVORS+= no_odbc
.if ${FLAVOR:L:Mno_odbc}
CONFIGURE_ARGS+= --without-odbc
.else
MULTI_PACKAGES+= -odbc
COMMENT-odbc= "odbc database access extensions for php5"
CONFIGURE_ARGS+= --with-iodbc=shared
ODBC_DEPENDS= iodbc.2::databases/iodbc
.endif
# pgsql
PSEUDO_FLAVORS+= no_pgsql
.if ${FLAVOR:L:Mno_pgsql}
CONFIGURE_ARGS+= --without-pgsql
.else
MULTI_PACKAGES+= -pgsql
COMMENT-pgsql= "pgsql database access extensions for php5"
CONFIGURE_ARGS+= --with-pgsql=shared,${LOCALBASE}
PGSQL_DEPENDS= pq.2:postgresql-client-*:databases/postgresql
.endif
# shmop
PSEUDO_FLAVORS+= no_shmop
.if ${FLAVOR:L:Mno_shmop}
CONFIGURE_ARGS+= --disable-shmop
.else
MULTI_PACKAGES+= -shmop
COMMENT-shmop= "shared memory extensions for php5"
CONFIGURE_ARGS+= --enable-shmop=shared
.endif
# snmp
PSEUDO_FLAVORS+= no_snmp
.if ${FLAVOR:L:Mno_snmp}
CONFIGURE_ARGS+= --without-snmp
.else
MULTI_PACKAGES+= -snmp
COMMENT-snmp= "snmp protocol extensions for php5"
CONFIGURE_ARGS+= --with-snmp=shared,${LOCALBASE} --enable-ucd-snmp-hack
SNMP_DEPENDS= snmp.42::net/ucd-snmp
.endif
# sybase-ct
PSEUDO_FLAVORS+= no_sybase_ct
.if ${FLAVOR:L:Mno_sybase_ct}
CONFIGURE_ARGS+= --without-sybase-ct
.else
MULTI_PACKAGES+= -sybase_ct
COMMENT-sybase_ct= "sybase database access extensions for php5"
CONFIGURE_ARGS+= --with-sybase-ct=shared,${LOCALBASE}
SYBASE_CT_DEPENDS= tds.0,ct.0::databases/freetds
.endif
# xml-rpc
PSEUDO_FLAVORS+= no_xmlrpc
.if ${FLAVOR:L:Mno_xmlrpc}
CONFIGURE_ARGS+= --without-xmlrpc
.else
MULTI_PACKAGES+= -xmlrpc
COMMENT-xmlrpc= "XML RPC functions for php5"
CONFIGURE_ARGS+= --with-xmlrpc=shared
XMLRPC_DEPENDS= expat.2::textproc/expat
.endif
.for i in ${MULTI_PACKAGES}
.if !defined(FULLPKGNAME${i})
FULLPKGNAME${i}= php5${i}-${V}
.endif
.endfor
.if defined(PACKAGING) && !empty(SUBPACKAGE)
MODULE_NAME= ${SUBPACKAGE:S/-//g}
LIB_DEPENDS= ${${MODULE_NAME:U}_DEPENDS}
MESSAGE= ${PKGDIR}/MESSAGE
SUBST_VARS= MODULE_NAME PHP_CONFIG_FILE LOCALBASE
.elif defined(PACKAGING) && empty(SUBPACKAGE)
LIB_DEPENDS=
MESSAGE= ${PKGDIR}/DESCR
SUBST_VARS= V
.else
.for i in ${MULTI_PACKAGES}
LIB_DEPENDS+= ${${i:U:S/-//g}_DEPENDS}
.endfor
.endif
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/${MODULES_SUBDIR}
.for m in ${MULTI_PACKAGES:S/-//g}
${INSTALL_DATA} ${WRKBUILD}/modules/${m}.so \
${PREFIX}/${MODULES_SUBDIR}/${m}.so
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-ext_gd_config_m4,v 1.1.1.1 2004/10/02 11:32:35 robert Exp $
--- ext/gd/config.m4.orig Thu Dec 25 23:12:08 2003
+++ ext/gd/config.m4 Tue Jul 27 00:41:56 2004
@@ -87,13 +87,13 @@
AC_MSG_ERROR([PNG support requires ZLIB. Use --with-zlib-dir=<DIR>])
fi
- if test ! -f $GD_PNG_DIR/include/png.h; then
+ if test ! -f $GD_PNG_DIR/include/libpng/png.h; then
AC_MSG_ERROR([png.h not found.])
fi
PHP_CHECK_LIBRARY(png,png_write_image,
[
- PHP_ADD_INCLUDE($GD_PNG_DIR/include)
+ PHP_ADD_INCLUDE($GD_PNG_DIR/include/libpng)
PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/lib, GD_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(png, $GD_PNG_DIR/lib, GD_SHARED_LIBADD)
],[

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-ext_gd_gdcache_h,v 1.1.1.1 2004/10/02 11:32:35 robert Exp $
--- ext/gd/gdcache.h.orig Sun Dec 28 22:08:46 2003
+++ ext/gd/gdcache.h Tue Jul 27 01:42:24 2004
@@ -41,6 +41,7 @@
/*********************************************************/
#if (!defined(_OSD_POSIX) && !defined(__FreeBSD__)) && HAVE_MALLOC_H
+#elif !defined(__OpenBSD__)
#include <malloc.h>
#else
#include <stdlib.h> /* BS2000/OSD defines malloc() & friends in stdlib.h */

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ext_gd_gdttf_c,v 1.1.1.1 2004/10/02 11:32:35 robert Exp $
--- ext/gd/gdttf.c.orig Tue Jul 27 00:57:58 2004
+++ ext/gd/gdttf.c Tue Jul 27 00:58:59 2004
@@ -712,7 +712,7 @@
}
#if HAVE_LIBGD20
if (im->trueColor) {
- pixel = &im->tpixels[y3][x3];
+ pixel = (unsigned char *)&im->tpixels[y3][x3];
} else
#endif
{

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ext_gd_libgd_gdcache_h,v 1.1.1.1 2004/10/02 11:32:35 robert Exp $
--- ext/gd/libgd/gdcache.h.orig Sun Dec 28 21:11:08 2003
+++ ext/gd/libgd/gdcache.h Tue Jul 27 02:21:28 2004
@@ -41,7 +41,7 @@
/*********************************************************/
#include <stdlib.h>
-#ifdef HAVE_MALLOC_H
+#if (!defined(__OpenBSD__)) && HAVE_MALLOC_H
#include <malloc.h>
#endif
#ifndef NULL

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ext_gd_libgd_gdkanji_c,v 1.1.1.1 2004/10/02 11:32:35 robert Exp $
--- ext/gd/libgd/gdkanji.c.orig Tue Jul 27 01:02:49 2004
+++ ext/gd/libgd/gdkanji.c Tue Jul 27 01:03:21 2004
@@ -362,7 +362,7 @@
from_len = strlen ((const char *) from) + 1;
to_len = BUFSIZ;
- if ((int) iconv(cd, (char **) &from, &from_len, (char **) &to, &to_len) == -1)
+ if ((int) iconv(cd, (const char **) &from, &from_len, (char **) &to, &to_len) == -1)
{
#ifdef HAVE_ERRNO_H
if (errno == EINVAL)

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-ext_imap_config_m4,v 1.1.1.1 2004/10/02 11:32:35 robert Exp $
--- ext/imap/config.m4.orig Mon Feb 23 04:24:58 2004
+++ ext/imap/config.m4 Tue Jul 27 00:43:50 2004
@@ -73,10 +73,9 @@
fi
AC_DEFINE(HAVE_IMAP_KRB,1,[ ])
PHP_ADD_LIBPATH($PHP_KERBEROS_DIR/lib, IMAP_SHARED_LIBADD)
- PHP_ADD_LIBRARY(gssapi_krb5, 1, IMAP_SHARED_LIBADD)
PHP_ADD_LIBRARY(krb5, 1, IMAP_SHARED_LIBADD)
- PHP_ADD_LIBRARY(k5crypto, 1, IMAP_SHARED_LIBADD)
- PHP_ADD_LIBRARY(com_err, 1, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(crypto, 1, IMAP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(gssapi, 1, IMAP_SHARED_LIBADD)
PHP_ADD_INCLUDE($PHP_KERBEROS_DIR/include)
else
AC_EGREP_HEADER(auth_gss, $IMAP_INC_DIR/linkage.h, [

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ext_xmlrpc_libxmlrpc_encodings_c,v 1.1.1.1 2004/10/02 11:32:35 robert Exp $
--- ext/xmlrpc/libxmlrpc/encodings.c.orig Tue Jul 27 01:05:53 2004
+++ ext/xmlrpc/libxmlrpc/encodings.c Tue Jul 27 01:06:08 2004
@@ -70,7 +70,7 @@
if(outbuf) {
out_ptr = (char*)outbuf;
while(inlenleft) {
- st = iconv(ic, (char**)&src, &inlenleft, &out_ptr, &outlenleft);
+ st = iconv(ic, (const char**)&src, &inlenleft, &out_ptr, &outlenleft);
if(st == -1) {
if(errno == E2BIG) {
int diff = out_ptr - outbuf;

View File

@ -0,0 +1,11 @@
This is a place-holder package to inform you that the PHP port is
now split into small sub-packages, designed to allow you to install
modules independently of the main PHP engine.
For example, to install the IMAP module, just pkg_add the
php-imap-${V}.tgz package and activate it using the
'phpxs' command.
This package contains no files or dependencies and may be
safely uninstalled.

View File

@ -0,0 +1,2 @@
The bzip2 functions are used to transparently read and write bzip2
(.bz2) compressed files within PHP5.

View File

@ -0,0 +1,8 @@
PHP supports libcurl, a library created by Daniel Stenberg, that
allows you to connect and communicate to many different types of
servers with many different types of protocols. libcurl currently
supports the http, https, ftp, gopher, telnet, dict, file, and ldap
protocols. libcurl also supports HTTPS certificates, HTTP POST,
HTTP PUT, FTP uploading (this can also be done with PHP's ftp
extension), HTTP form based upload, proxies, cookies, and user+password
authentication.

View File

@ -0,0 +1,8 @@
These functions build the foundation for accessing Berkeley DB style
databases.
This is a general abstraction layer for several file-based databases.
As such, functionality is limited to a common subset of features
supported by modern databases such as Sleepycat Software's DB2.
(This is not to be confused with IBM's DB2 software, which is
supported through the ODBC functions.)

View File

@ -0,0 +1,18 @@
These functions allow you to access records stored in dBase-format
(dbf) databases.
There is no support for indexes or memo fields. There is no support
for locking, too. Two concurrent webserver processes modifying the
same dBase file will very likely ruin your database.
dBase files are simple sequential files of fixed length records.
Records are appended to the end of the file and delete records are
kept until you call dbase_pack().
We recommend that you do not use dBase files as your production
database. Choose any real SQL server instead; MySQL or Postgres are
common choices with PHP. dBase support is here to allow you to
import and export data to and from your web database, because the
file format is commonly understood by Windows spreadsheets and
organizers.

View File

@ -0,0 +1,3 @@
Database abstraction layer, allowing database-independent PHP code
with some semblance of efficiency.

View File

@ -0,0 +1,5 @@
These functions allow read-only access to data stored in filePro
databases.
filePro is a registered trademark of fP Technologies, Inc. You can
find more information about filePro at http://www.fptech.com/

View File

@ -0,0 +1,12 @@
You can use the image functions in PHP to get the size of JPEG,
GIF, PNG, SWF, TIFF and JPEG2000 images.
By using the GD library, you will also be able to create and
manipulate images. Support for TrueType and PostScript fonts
is also included.
The format of images you are able to manipulate depend on the version
of GD you install, and any other libraries GD might need to access
those image formats. Versions of GD older than gd-1.6 support gif
format images, and do not support png, where versions greater than
gd-1.6 support png, not gif.

View File

@ -0,0 +1,2 @@
These functions allow you to work with arbitrary-length integers
using the GNU MP library.

View File

@ -0,0 +1,3 @@
These PHP5 functions are not limited to the IMAP protocol, despite
their name. The underlying c-client library also supports NNTP,
POP3 and local mailbox access methods.

View File

@ -0,0 +1,13 @@
LDAP is the Lightweight Directory Access Protocol, and is a protocol
used to access "Directory Servers". The Directory is a special kind
of database that holds information in a tree structure.
The concept is similar to your hard disk directory structure, except
that in this context, the root directory is "The world" and the
first level subdirectories are "countries". Lower levels of the
directory structure contain entries for companies, organisations
or places, while yet lower still we find directory entries for
people, and perhaps equipment or documents.
The PHP LDAP library allows you to query and set values in remote
and local LDAP databases.

View File

@ -0,0 +1,5 @@
This is an interface to the mcrypt library, which supports a wide
variety of block algorithms such as DES, TripleDES, Blowfish
(default), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 and
GOST in CBC, OFB, CFB and ECB cipher modes. Additionally, it supports
RC6 and IDEA which are considered "non-free".

View File

@ -0,0 +1,5 @@
This is an interface to the mhash library. mhash supports a wide
variety of hash algorithms such as MD5, SHA1, GOST, and many others.
Mhash can be used to create checksums, message digests, message
authentication codes, and more.

View File

@ -0,0 +1,5 @@
These functions allow you to access MySQL database servers. More
information about MySQL can be found at http://www.mysql.com/.
Documentation for MySQL can be found at
http://www.mysql.com/documentation/.

View File

@ -0,0 +1,5 @@
ncurses (new curses) is a free software emulation of curses in
System V Rel 4.0 (and above). It uses terminfo format, supports
pads, colors, multiple highlights, form characters and function key
mapping.

View File

@ -0,0 +1,5 @@
In addition to normal ODBC support, the Unified ODBC functions in
PHP allow you to access several databases that have borrowed the
semantics of the ODBC API to implement their own API. Instead of
maintaining multiple database drivers that were all nearly identical,
these drivers have been unified into a single set of ODBC functions.

View File

@ -0,0 +1,13 @@
Postgres, developed originally in the UC Berkeley Computer Science
Department, pioneered many of the object-relational concepts now
becoming available in some commercial databases. It provides
SQL92/SQL99 language support, transaction integrity and type
extensibility. PostgreSQL is an open source descendant of this
original Berkeley code.
PostgreSQL database is Open Source product and available without
cost. To use PostgreSQL support, you need PostgreSQL 6.5 or later.
PostgreSQL 7.0 or later to enable all PostgreSQL module feature.
PostgreSQL supports many character encoding including multibyte
character encoding. The current version and more information about
PostgreSQL is available at http://www.postgresql.org/.

View File

@ -0,0 +1,2 @@
Shmop is an easy to use set of functions that allows php to read,
write, create and delete UNIX shared memory segments.

View File

@ -0,0 +1,2 @@
This module makes SNMP reading and writing functions accessible
from within PHP.

View File

@ -0,0 +1,3 @@
This PHP5 modules contains functions to access the Sybase database.
It makes use of the FreeTDS implementation to perform the actual
communications.

View File

@ -0,0 +1,4 @@
These functions can be used to write XML-RPC servers and clients.
You can find more information about XML-RPC at http://www.xmlrpc.com/,
and more documentation on this extension and its functions at
http://xmlrpc-epi.sourceforge.net/.

View File

@ -0,0 +1,6 @@
+---------------
| Enable this module in php.ini using the following command:
|
| ${LOCALBASE}/sbin/phpxs -a ${MODULE_NAME}
+---------------

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/
lib/php/
lib/php/modules/

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-bz2,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/bz2.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-curl,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/curl.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-dba,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/dba.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-dbase,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/dbase.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-dbx,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/dbx.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-filepro,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/filepro.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-gd,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/gd.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-gmp,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/gmp.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-imap,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/imap.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-ldap,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/ldap.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-mcrypt,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/mcrypt.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-mhash,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/mhash.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-mysql,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/mysql.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-ncurses,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/ncurses.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-odbc,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/odbc.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-pgsql,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/pgsql.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-shmop,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/shmop.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-snmp,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/snmp.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-sybase_ct,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/sybase_ct.so

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-xmlrpc,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
lib/php/modules/xmlrpc.so

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-aclocal_m4,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
--- aclocal.m4.orig Mon Jul 26 23:06:19 2004
+++ aclocal.m4 Mon Jul 26 23:06:53 2004
@@ -1655,6 +1655,7 @@
PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [
PHP_ADD_LIBRARY(crypto,,$1)
+ PHP_ADD_LIBRARY(des,,$1)
],[
AC_MSG_ERROR([libcrypto not found!])
],[
@@ -3934,7 +3935,7 @@
need_version=no
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
soname_spec='${libname}${release}.so$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ finish_cmds=
shlibpath_var=LD_LIBRARY_PATH
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"

View File

@ -0,0 +1,40 @@
$OpenBSD: patch-configure_in,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
--- configure.in.orig Mon Jul 26 23:07:27 2004
+++ configure.in Mon Jul 26 23:08:27 2004
@@ -31,9 +31,7 @@
AC_INIT(README.CVS-RULES)
PHP_CONFIG_NICE(config.nice)
-for arg in $0 "$@"; do
- CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
-done
+CONFIGURE_COMMAND="Built via the OpenBSD Ports Tree"
AC_CANONICAL_HOST
AC_CONFIG_HEADER(main/php_config.h)
@@ -830,14 +828,14 @@
case $php_build_target in
program|static)
- standard_libtool_flag='-prefer-non-pic -static'
+ standard_libtool_flag='-static'
if test -z "$PHP_MODULES"; then
enable_shared=no
fi
;;
shared)
enable_static=no
- standard_libtool_flag=-prefer-pic
+ standard_libtool_flag=
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module"
;;
esac
@@ -1019,7 +1017,7 @@
EXPANDED_DATADIR=$datadir
EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
-INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
+INCLUDE_PATH=.:$libdir
exec_prefix=$old_exec_prefix
libdir=$old_libdir

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ext_bcmath_libbcmath_src_output_c,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
--- ext/bcmath/libbcmath/src/output.c.orig Mon Jul 26 23:09:43 2004
+++ ext/bcmath/libbcmath/src/output.c Mon Jul 26 23:09:22 2004
@@ -71,7 +71,7 @@
int len, ix;
if (space) (*out_char) (' ');
- sprintf (digits, "%ld", val);
+ snprintf (digits, sizeof digits, "%ld", val);
len = strlen (digits);
while (size > len)
{

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-ext_bcmath_libbcmath_src_rt_c,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
--- ext/bcmath/libbcmath/src/rt.c.orig Mon Jul 26 23:11:15 2004
+++ ext/bcmath/libbcmath/src/rt.c Mon Jul 26 23:11:49 2004
@@ -45,7 +45,7 @@
char error_mesg [255];
va_start (args, mesg);
- vsprintf (error_mesg, mesg, args);
+ vsnprintf (error_mesg, sizeof error_mesg, mesg, args);
va_end (args);
fprintf (stderr, "bc math warning: %s\n", error_mesg);
@@ -58,7 +58,7 @@
char error_mesg [255];
va_start (args, mesg);
- vsprintf (error_mesg, mesg, args);
+ vsnprintf (error_mesg, sizeof error_mesg, mesg, args);
va_end (args);
fprintf (stderr, "bc math error: %s\n", error_mesg);

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ext_calendar_calendar_c,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
--- ext/calendar/calendar.c.orig Mon Jul 26 23:12:25 2004
+++ ext/calendar/calendar.c Mon Jul 26 23:12:43 2004
@@ -277,7 +277,7 @@
calendar->from_jd(jd, &year, &month, &day);
- sprintf(date, "%i/%i/%i", month, day, year);
+ snprintf(date, sizeof date, "%i/%i/%i", month, day, year);
add_assoc_string(return_value, "date", date, 1);
add_assoc_long(return_value, "month", month);

View File

@ -0,0 +1,75 @@
$OpenBSD: patch-ext_iconv_iconv_c,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
--- ext/iconv/iconv.c.orig Mon Jul 26 22:41:02 2004
+++ ext/iconv/iconv.c Mon Jul 26 22:46:24 2004
@@ -267,7 +267,7 @@
out_p = (d)->c + (d)->len;
- if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
+ if (iconv(cd, (const char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
#if ICONV_SUPPORTS_ERRNO
switch (errno) {
case EINVAL:
@@ -427,7 +427,7 @@
out_p = out_buf;
while (in_left > 0) {
- result = iconv(cd, (char **) &in_p, &in_left, (char **) &out_p, &out_left);
+ result = iconv(cd, (const char **) &in_p, &in_left, (char **) &out_p, &out_left);
out_size = bsz - out_left;
if (result == (size_t)(-1)) {
if (errno == E2BIG && in_left > 0) {
@@ -541,7 +541,7 @@
prev_in_left = in_left;
- if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
+ if (iconv(cd, (const char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
if (prev_in_left == in_left) {
break;
}
@@ -641,7 +641,7 @@
prev_in_left = in_left;
- if (iconv(cd1, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
+ if (iconv(cd1, (const char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
if (prev_in_left == in_left) {
break;
}
@@ -772,7 +772,7 @@
prev_in_left = in_left;
- if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
+ if (iconv(cd, (const char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
if (prev_in_left == in_left) {
#if ICONV_SUPPORTS_ERRNO
switch (errno) {
@@ -1025,7 +1025,7 @@
out_left = out_size - out_reserved;
- if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
+ if (iconv(cd, (const char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
#if ICONV_SUPPORTS_ERRNO
switch (errno) {
case EINVAL:
@@ -1125,7 +1125,7 @@
out_p = buf;
out_left = out_size;
- if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
+ if (iconv(cd, (const char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
#if ICONV_SUPPORTS_ERRNO
switch (errno) {
case EINVAL:
@@ -2374,7 +2374,7 @@
tcnt = self->stub_len;
while (tcnt > 0) {
- if (iconv(self->cd, &pt, &tcnt, &pd, &ocnt) == (size_t)-1) {
+ if (iconv(self->cd, (const char **)&pt, &tcnt, &pd, &ocnt) == (size_t)-1) {
#if ICONV_SUPPORTS_ERRNO
switch (errno) {
case EILSEQ:

View File

@ -0,0 +1,44 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
--- ltmain.sh.orig Mon Jul 26 23:13:52 2004
+++ ltmain.sh Mon Jul 26 23:14:18 2004
@@ -4524,40 +4524,6 @@
# Exit here if they wanted silent mode.
test "$show" = ":" && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-main_php_open_temporary_file_c,v 1.1.1.1 2004/10/02 11:32:37 robert Exp $
--- main/php_open_temporary_file.c.orig Mon Jul 26 23:14:59 2004
+++ main/php_open_temporary_file.c Mon Jul 26 23:15:13 2004
@@ -130,7 +130,7 @@
trailing_slash = "/";
}
- (void)snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXX", path, trailing_slash, pfx);
+ (void)snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXXXXXX", path, trailing_slash, pfx);
#ifdef PHP_WIN32
if (GetTempFileName(path, pfx, 0, opened_path)) {

View File

@ -0,0 +1,179 @@
$OpenBSD: patch-php_ini-dist,v 1.1.1.1 2004/10/02 11:32:38 robert Exp $
--- php.ini-dist.orig Tue Aug 10 02:44:23 2004
+++ php.ini-dist Wed Aug 25 16:38:35 2004
@@ -430,10 +430,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
-;include_path = ".:/php/includes"
-;
-; Windows: "\path1;\path2"
-;include_path = ".;c:\php\includes"
+include_path = ".:OPENBSD_INCLUDE_PATH"
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
@@ -447,7 +444,7 @@
user_dir =
; Directory in which the loadable extensions (modules) reside.
-extension_dir = "./"
+extension_dir = "MODULES_DIR"
; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
@@ -505,7 +502,7 @@
;;;;;;;;;;;;;;;;;;
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
-allow_url_fopen = On
+allow_url_fopen = Off
; Define the anonymous ftp password (your email address)
;from="john@doe.com"
@@ -523,76 +520,6 @@
; fgets() and file() will work regardless of the source of the file.
; auto_detect_line_endings = Off
-
-;;;;;;;;;;;;;;;;;;;;;;
-; Dynamic Extensions ;
-;;;;;;;;;;;;;;;;;;;;;;
-;
-; If you wish to have an extension loaded automatically, use the following
-; syntax:
-;
-; extension=modulename.extension
-;
-; For example, on Windows:
-;
-; extension=msql.dll
-;
-; ... or under UNIX:
-;
-; extension=msql.so
-;
-; Note that it should be the name of the module only; no directory information
-; needs to go here. Specify the location of the extension with the
-; extension_dir directive above.
-
-
-;Windows Extensions
-;Note that ODBC support is built in, so no dll is needed for it.
-;
-
-;extension=php_bz2.dll
-;extension=php_cpdf.dll
-;extension=php_curl.dll
-;extension=php_dba.dll
-;extension=php_dbase.dll
-;extension=php_dbx.dll
-;extension=php_exif.dll
-;extension=php_fdf.dll
-;extension=php_filepro.dll
-;extension=php_gd2.dll
-;extension=php_gettext.dll
-;extension=php_iconv.dll
-;extension=php_ifx.dll
-;extension=php_iisfunc.dll
-;extension=php_imap.dll
-;extension=php_interbase.dll
-;extension=php_java.dll
-;extension=php_ldap.dll
-;extension=php_mbstring.dll
-;extension=php_mcrypt.dll
-;extension=php_mhash.dll
-;extension=php_mime_magic.dll
-;extension=php_ming.dll
-;extension=php_mssql.dll
-;extension=php_msql.dll
-;extension=php_mysql.dll
-;extension=php_oci8.dll
-;extension=php_openssl.dll
-;extension=php_oracle.dll
-;extension=php_pdf.dll
-;extension=php_pgsql.dll
-;extension=php_shmop.dll
-;extension=php_snmp.dll
-;extension=php_sockets.dll
-;extension=php_sybase_ct.dll
-;extension=php_tidy.dll
-;extension=php_w32api.dll
-;extension=php_xmlrpc.dll
-;extension=php_xsl.dll
-;extension=php_yaz.dll
-;extension=php_zip.dll
-
-
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
@@ -604,13 +531,6 @@
define_syslog_variables = Off
[mail function]
-; For Win32 only.
-SMTP = localhost
-smtp_port = 25
-
-; For Win32 only.
-;sendmail_from = me@example.com
-
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
@@ -1195,3 +1115,54 @@
; Local Variables:
; tab-width: 4
; End:
+
+;;;;;;;;;;;;;;;;;;;;;;
+; Dynamic Extensions ;
+;;;;;;;;;;;;;;;;;;;;;;
+;
+; If you wish to have an extension loaded automatically, use the following
+; syntax:
+;
+; extension=modulename.so
+;
+; Note that it should be the name of the module only; no directory information
+; needs to go here. Specify the location of the extension with the
+; extension_dir directive above.
+
+;extension=bz2.so
+;extension=cpdf.so
+;extension=crack.so
+;extension=curl.so
+;extension=db.so
+;extension=dba.so
+;extension=dbase.so
+;extension=dbx.so
+;extension=exif.so
+;extension=fbsql.so
+;extension=fdf.so
+;extension=filepro.so
+;extension=gd.so
+;extension=hyperwave.so
+;extension=ifx.so
+;extension=imap.so
+;extension=interbase.so
+;extension=java.so
+;extension=ldap.so
+;extension=mbstring.so
+;extension=mcrypt.so
+;extension=mhash.so
+;extension=ming.so
+;extension=mssql.so
+;extension=mysql.so
+;extension=oci8.so
+;extension=openssl.so
+;extension=oracle.so
+;extension=pdf.so
+;extension=pgsql.so
+;extension=printer.so
+;extension=shmop.so
+;extension=snmp.so
+;extension=sockets.so
+;extension=sybase_ct.so
+;extension=xmlrpc.so
+;extension=yaz.so

View File

@ -0,0 +1,181 @@
$OpenBSD: patch-php_ini-recommended,v 1.1.1.1 2004/10/02 11:32:38 robert Exp $
--- php.ini-recommended.orig Wed Jun 23 10:18:42 2004
+++ php.ini-recommended Tue Jul 27 01:24:10 2004
@@ -437,10 +437,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
-;include_path = ".:/php/includes"
-;
-; Windows: "\path1;\path2"
-;include_path = ".;c:\php\includes"
+include_path = ".:OPENBSD_INCLUDE_PATH"
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
@@ -454,7 +451,7 @@
user_dir =
; Directory in which the loadable extensions (modules) reside.
-extension_dir = "./"
+extension_dir = "MODULES_DIR"
; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
@@ -512,7 +509,7 @@
;;;;;;;;;;;;;;;;;;
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
-allow_url_fopen = On
+allow_url_fopen = Off
; Define the anonymous ftp password (your email address)
;from="john@doe.com"
@@ -530,76 +527,6 @@
; fgets() and file() will work regardless of the source of the file.
; auto_detect_line_endings = Off
-
-;;;;;;;;;;;;;;;;;;;;;;
-; Dynamic Extensions ;
-;;;;;;;;;;;;;;;;;;;;;;
-;
-; If you wish to have an extension loaded automatically, use the following
-; syntax:
-;
-; extension=modulename.extension
-;
-; For example, on Windows:
-;
-; extension=msql.dll
-;
-; ... or under UNIX:
-;
-; extension=msql.so
-;
-; Note that it should be the name of the module only; no directory information
-; needs to go here. Specify the location of the extension with the
-; extension_dir directive above.
-
-
-;Windows Extensions
-;Note that ODBC support is built in, so no dll is needed for it.
-;
-
-;extension=php_bz2.dll
-;extension=php_cpdf.dll
-;extension=php_curl.dll
-;extension=php_dba.dll
-;extension=php_dbase.dll
-;extension=php_dbx.dll
-;extension=php_exif.dll
-;extension=php_fdf.dll
-;extension=php_filepro.dll
-;extension=php_gd2.dll
-;extension=php_gettext.dll
-;extension=php_iconv.dll
-;extension=php_ifx.dll
-;extension=php_iisfunc.dll
-;extension=php_imap.dll
-;extension=php_interbase.dll
-;extension=php_java.dll
-;extension=php_ldap.dll
-;extension=php_mbstring.dll
-;extension=php_mcrypt.dll
-;extension=php_mhash.dll
-;extension=php_mime_magic.dll
-;extension=php_ming.dll
-;extension=php_mssql.dll
-;extension=php_msql.dll
-;extension=php_mysql.dll
-;extension=php_oci8.dll
-;extension=php_openssl.dll
-;extension=php_oracle.dll
-;extension=php_pdf.dll
-;extension=php_pgsql.dll
-;extension=php_shmop.dll
-;extension=php_snmp.dll
-;extension=php_sockets.dll
-;extension=php_sybase_ct.dll
-;extension=php_tidy.dll
-;extension=php_w32api.dll
-;extension=php_xmlrpc.dll
-;extension=php_xsl.dll
-;extension=php_yaz.dll
-;extension=php_zip.dll
-
-
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
@@ -611,13 +538,6 @@
define_syslog_variables = Off
[mail function]
-; For Win32 only.
-SMTP = localhost
-smtp_port = 25
-
-; For Win32 only.
-;sendmail_from = me@example.com
-
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
@@ -1191,6 +1111,53 @@
; instead of original one.
soap.wsdl_cache_ttl=86400
-; Local Variables:
-; tab-width: 4
-; End:
+;;;;;;;;;;;;;;;;;;;;;;
+; Dynamic Extensions ;
+;;;;;;;;;;;;;;;;;;;;;;
+;
+; If you wish to have an extension loaded automatically, use the following
+; syntax:
+;
+; extension=modulename.so
+;
+; Note that it should be the name of the module only; no directory information
+; needs to go here. Specify the location of the extension with the
+; extension_dir directive above.
+
+;extension=bz2.so
+;extension=cpdf.so
+;extension=crack.so
+;extension=curl.so
+;extension=db.so
+;extension=dba.so
+;extension=dbase.so
+;extension=dbx.so
+;extension=exif.so
+;extension=fbsql.so
+;extension=fdf.so
+;extension=filepro.so
+;extension=gd.so
+;extension=hyperwave.so
+;extension=ifx.so
+;extension=imap.so
+;extension=interbase.so
+;extension=java.so
+;extension=ldap.so
+;extension=mbstring.so
+;extension=mcrypt.so
+;extension=mhash.so
+;extension=ming.so
+;extension=mssql.so
+;extension=mysql.so
+;extension=oci8.so
+;extension=openssl.so
+;extension=oracle.so
+;extension=pdf.so
+;extension=pgsql.so
+;extension=printer.so
+;extension=shmop.so
+;extension=snmp.so
+;extension=sockets.so
+;extension=sybase_ct.so
+;extension=xmlrpc.so
+;extension=yaz.so

View File

@ -0,0 +1,9 @@
# $OpenBSD: Makefile.pear,v 1.1.1.1 2004/10/02 11:32:38 robert Exp $
# Default Makefile to install a PHP PEAR module
default:
install:
cp ${WRKDIR}/package.xml ${.CURDIR}
mkdir -p ${PREFIX}/lib/php
${LOCALBASE}/bin/pear install -R ${WRKINST} -n ${.CURDIR}/package.xml

View File

@ -0,0 +1,13 @@
# $OpenBSD: pear.port.mk,v 1.1.1.1 2004/10/02 11:32:38 robert Exp $
# PHP PEAR module
RUN_DEPENDS+= :php5-pear-5.0.*:www/php5/core,-pear
BUILD_DEPENDS+= :php5-pear-5.0.*:www/php5/core,-pear
NO_BUILD= Yes
NO_REGRESS= Yes
MAKE_FILE= ${PORTSDIR}/www/php5/pear/Makefile.pear
FAKE_FLAGS+= WRKINST=${WRKINST} WRKDIR=${WRKDIR}
PREFIX= /var/www