Update to php4-pear-4.3.1; the 'pear' command line stuff now works, so

you can add/remove pear modules via pear.php.net

Note that some pear modules which were bundled with the old version of
this package are now separate ports (pear-Log especially)
This commit is contained in:
avsm 2003-04-03 10:29:03 +00:00
parent ea684538ac
commit a1be2fd83f
8 changed files with 256 additions and 65 deletions

View File

@ -1,14 +1,23 @@
# $OpenBSD: Makefile,v 1.2 2002/06/24 19:40:55 avsm Exp $
# $OpenBSD: Makefile,v 1.3 2003/04/03 10:29:03 avsm Exp $
COMMENT= "collection of base classes for common PHP tasks"
PKGNAME= php4-pear-${V}
HOMEPAGE= http://pear.php.net/
ALL_TARGET= pear
CONFIGURE_ARGS= --with-pear --without-mysql --without-xml
CONFIGURE_ARGS= --with-pear=${PEAR_DIR} --disable-all
do-install:
cd ${WRKSRC}/pear && env INSTALL_ROOT=${DESTDIR} make install
cd ${PREFIX}/lib && tar -zxvf ${FILESDIR}/pear-412-421.tgz
PATCH_LIST= ${PORTSDIR}/www/php4/core/patches/patch-* \
patch-*
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= php::www/php4/core
NO_REGRESS= Yes
INSTALL_TARGET= install-pear install-headers install-build install-programs
FAKE_FLAGS= INSTALL_ROOT=${DESTDIR}
pre-fake:
${INSTALL_DATA_DIR} ${PREFIX}/lib/php
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (php-4.2.3.tar.gz) = 2a4a963d79d97ea2725c860c77e908a2
RMD160 (php-4.2.3.tar.gz) = 37a2ede463cd9af1874fec4a5cfc874dead865ca
SHA1 (php-4.2.3.tar.gz) = 3e57e8c056bd2f173bba8705293cdfa15aeb93bc
MD5 (php-4.3.1.tar.gz) = d4a34efe145b43ed10dbd95825686065
RMD160 (php-4.3.1.tar.gz) = be60c86f7d285ba7ad899524b077fe013fd1a7fe
SHA1 (php-4.3.1.tar.gz) = eb6bec44b0ae23f474724ccb053acb7ef10047bb

View File

@ -0,0 +1,9 @@
# $OpenBSD: Makefile.pear,v 1.1 2003/04/03 10:29:03 avsm 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

Binary file not shown.

View File

@ -0,0 +1,12 @@
# $OpenBSD: pear.port.mk,v 1.1 2003/04/03 10:29:03 avsm Exp $
# PHP PEAR module
RUN_DEPENDS= pear:php4-pear-4.3.*:www/php4/pear
BUILD_DEPENDS= ${RUN_DEPENDS}
NO_BUILD= Yes
NO_REGRESS= Yes
NO_CONFIGURE= Yes
MAKE_FILE= ${PORTSDIR}/www/php4/pear/files/Makefile.pear
FAKE_FLAGS+= WRKINST=${WRKINST} WRKDIR=${WRKDIR}

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-pear_Makefile_frag,v 1.1 2003/04/03 10:29:03 avsm Exp $
--- pear/Makefile.frag.orig Tue Nov 19 14:43:42 2002
+++ pear/Makefile.frag Sat Feb 15 17:09:24 2003
@@ -11,11 +11,11 @@ peardir=$(PEAR_INSTALLDIR)
# Skip all php.ini files altogether
PEAR_INSTALL_FLAGS = -n -dsafe_mode=0
-install-pear-installer: $(top_builddir)/sapi/cli/php
- @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.php $(srcdir)/package-*.xml
+install-pear-installer:
+ $(LOCALBASE)/bin/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.php $(srcdir)/package-*.xml
-install-pear-packages: $(top_builddir)/sapi/cli/php
- @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.php $(srcdir)/packages/*.tar
+install-pear-packages:
+ $(LOCALBASE)/bin/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.php $(srcdir)/packages/*.tar
install-pear:
@echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"

View File

@ -0,0 +1,50 @@
$OpenBSD: patch-pear_PEAR_Config_php,v 1.1 2003/04/03 10:29:03 avsm Exp $
--- pear/PEAR/Config.php.orig Sat Feb 15 21:08:35 2003
+++ pear/PEAR/Config.php Sun Feb 16 01:20:55 2003
@@ -81,7 +81,7 @@ if (isset($_ENV['PHP_PEAR_DOC_DIR'])) {
define('PEAR_CONFIG_DEFAULT_DOC_DIR', $_ENV['PHP_PEAR_DOC_DIR']);
} else {
define('PEAR_CONFIG_DEFAULT_DOC_DIR',
- PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'docs');
+ PHP_PREFIX.'/share/doc/pear');
}
// Default for bin_dir
@@ -96,7 +96,7 @@ if (isset($_ENV['PHP_PEAR_DATA_DIR'])) {
define('PEAR_CONFIG_DEFAULT_DATA_DIR', $_ENV['PHP_PEAR_DATA_DIR']);
} else {
define('PEAR_CONFIG_DEFAULT_DATA_DIR',
- PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'data');
+ PHP_PREFIX.'/share/pear');
}
// Default for test_dir
@@ -104,7 +104,7 @@ if (isset($_ENV['PHP_PEAR_TEST_DIR'])) {
define('PEAR_CONFIG_DEFAULT_TEST_DIR', $_ENV['PHP_PEAR_TEST_DIR']);
} else {
define('PEAR_CONFIG_DEFAULT_TEST_DIR',
- PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'tests');
+ PHP_PREFIX.'/share/pear/tests');
}
// Default for cache_dir
@@ -112,8 +112,7 @@ if (isset($_ENV['PHP_PEAR_CACHE_DIR']))
define('PEAR_CONFIG_DEFAULT_CACHE_DIR', $_ENV['PHP_PEAR_CACHE_DIR']);
} else {
define('PEAR_CONFIG_DEFAULT_CACHE_DIR',
- System::tmpdir() . DIRECTORY_SEPARATOR . 'pear' .
- DIRECTORY_SEPARATOR . 'cache');
+ '/var/www/pear/cache');
}
// Default for php_bin
@@ -164,8 +163,7 @@ if (isset($_ENV['PHP_PEAR_SIG_BIN'])) {
define('PEAR_CONFIG_DEFAULT_SIG_BIN', $_ENV['PHP_PEAR_SIG_BIN']);
} else {
define('PEAR_CONFIG_DEFAULT_SIG_BIN',
- System::which(
- 'gpg', OS_WINDOWS ? 'c:\gnupg\gpg.exe' : '/usr/local/bin/gpg'));
+ PHP_PREFIX . '/bin/gpg');
}
// Default for sig_keydir

View File

@ -1,16 +1,16 @@
@comment $OpenBSD: PLIST,v 1.2 2002/09/11 23:16:48 avsm Exp $
@comment $OpenBSD: PLIST,v 1.3 2003/04/03 10:29:03 avsm Exp $
bin/pear
bin/pearize
bin/php-config
bin/phpextdist
bin/phpize
bin/phptar
include/php/TSRM/TSRM.h
include/php/TSRM/acconfig.h
include/php/TSRM/readdir.h
include/php/TSRM/tsrm_config.h
include/php/TSRM/tsrm_config.nw.h
include/php/TSRM/tsrm_config.w32.h
include/php/TSRM/tsrm_config_common.h
include/php/TSRM/tsrm_nw.h
include/php/TSRM/tsrm_strtok_r.h
include/php/TSRM/tsrm_virtual_cwd.h
include/php/TSRM/tsrm_win32.h
@ -27,6 +27,7 @@ include/php/Zend/zend_constants.h
include/php/Zend/zend_dynamic_array.h
include/php/Zend/zend_errors.h
include/php/Zend/zend_execute.h
include/php/Zend/zend_execute_globals.h
include/php/Zend/zend_execute_locks.h
include/php/Zend/zend_extensions.h
include/php/Zend/zend_fast_cache.h
@ -44,20 +45,34 @@ include/php/Zend/zend_language_scanner.h
include/php/Zend/zend_list.h
include/php/Zend/zend_llist.h
include/php/Zend/zend_modules.h
include/php/Zend/zend_multibyte.h
include/php/Zend/zend_operators.h
include/php/Zend/zend_ptr_stack.h
include/php/Zend/zend_qsort.h
include/php/Zend/zend_stack.h
include/php/Zend/zend_static_allocator.h
include/php/Zend/zend_types.h
include/php/Zend/zend_variables.h
include/php/acconfig.h
include/php/ext/mbstring/cp932_table.h
include/php/ext/mbstring/mbfilter.h
include/php/ext/mbstring/mbfilter_cn.h
include/php/ext/mbstring/mbfilter_ja.h
include/php/ext/mbstring/mbfilter_kr.h
include/php/ext/mbstring/mbfilter_ru.h
include/php/ext/mbstring/mbfilter_tw.h
include/php/ext/mbstring/mbregex.h
include/php/ext/mbstring/mbstring.h
include/php/ext/mbstring/php_mbregex.h
include/php/ext/mbstring/php_unicode.h
include/php/ext/mbstring/unicode_data.h
include/php/ext/mbstring/unicode_table.h
include/php/ext/mbstring/unicode_table_cn.h
include/php/ext/mbstring/unicode_table_ja.h
include/php/ext/mbstring/unicode_table_kr.h
include/php/ext/mbstring/unicode_table_ru.h
include/php/ext/mbstring/unicode_table_tw.h
include/php/ext/pgsql/php_pgsql.h
include/php/ext/session/mod_files.h
include/php/ext/session/mod_mm.h
include/php/ext/session/mod_user.h
@ -69,6 +84,7 @@ include/php/ext/standard/crc32.h
include/php/ext/standard/credits.h
include/php/ext/standard/credits_ext.h
include/php/ext/standard/credits_sapi.h
include/php/ext/standard/css.h
include/php/ext/standard/cyr_convert.h
include/php/ext/standard/datetime.h
include/php/ext/standard/dl.h
@ -114,6 +130,7 @@ include/php/ext/standard/php_versioning.h
include/php/ext/standard/quot_print.h
include/php/ext/standard/reg.h
include/php/ext/standard/scanf.h
include/php/ext/standard/sha1.h
include/php/ext/standard/uniqid.h
include/php/ext/standard/url.h
include/php/ext/standard/url_scanner.h
@ -132,7 +149,7 @@ include/php/ext/xml/expat/xmltok_impl.h
include/php/ext/xml/php_xml.h
include/php/main/SAPI.h
include/php/main/build-defs.h
include/php/main/config.w32.h
include/php/main/config.nw.h
include/php/main/fopen_wrappers.h
include/php/main/internal_functions_registry.h
include/php/main/logos.h
@ -141,10 +158,12 @@ include/php/main/php3_compat.h
include/php/main/php_compat.h
include/php/main/php_config.h
include/php/main/php_content_types.h
include/php/main/php_embed.h
include/php/main/php_globals.h
include/php/main/php_ini.h
include/php/main/php_logos.h
include/php/main/php_main.h
include/php/main/php_memory_streams.h
include/php/main/php_network.h
include/php/main/php_open_temporary_file.h
include/php/main/php_output.h
@ -158,6 +177,7 @@ include/php/main/php_version.h
include/php/main/rfc1867.h
include/php/main/safe_mode.h
include/php/main/snprintf.h
include/php/main/spprintf.h
include/php/main/win95nt.h
include/php/php_version.h
include/php/regex/cclass.h
@ -166,12 +186,21 @@ include/php/regex/regex.h
include/php/regex/regex2.h
include/php/regex/regex_extra.h
include/php/regex/utils.h
lib/php/.registry/Archive_Tar.reg
lib/php/.registry/Console_Getopt.reg
lib/php/.registry/DB.reg
lib/php/.registry/HTTP.reg
lib/php/.registry/Mail.reg
lib/php/.registry/Net_SMTP.reg
lib/php/.registry/Net_Socket.reg
lib/php/.registry/PEAR.reg
lib/php/.registry/XML_Parser.reg
lib/php/.registry/XML_RPC.reg
lib/php/Archive/Tar.php
lib/php/Console/Getopt.php
lib/php/Crypt/CBC.php
lib/php/Crypt/HCEMD5.php
lib/php/DB.php
lib/php/DB/common.php
lib/php/DB/dbase.php
lib/php/DB/fbsql.php
lib/php/DB/ibase.php
lib/php/DB/ifx.php
@ -183,49 +212,21 @@ lib/php/DB/odbc.php
lib/php/DB/pgsql.php
lib/php/DB/storage.php
lib/php/DB/sybase.php
lib/php/Date/Calc.php
lib/php/Date/Human.php
lib/php/File.php
lib/php/File/CSV.php
lib/php/File/Find.php
lib/php/File/Passwd.php
lib/php/File/SearchReplace.php
lib/php/HTML/Common.php
lib/php/HTML/Form.php
lib/php/HTML/IT.php
lib/php/HTML/ITX.php
lib/php/HTML/IT_Error.php
lib/php/HTML/Page.php
lib/php/HTML/Processor.php
lib/php/HTML/Select.php
lib/php/HTML/Table.php
lib/php/HTTP.php
lib/php/HTTP/Compress.php
lib/php/Log.php
lib/php/Log/composite.php
lib/php/Log/console.php
lib/php/Log/file.php
lib/php/Log/mcal.php
lib/php/Log/observer.php
lib/php/Log/sql.php
lib/php/Log/syslog.php
lib/php/Mail.php
lib/php/Mail/RFC822.php
lib/php/Mail/mime.php
lib/php/Mail/mimeDecode.php
lib/php/Mail/mimePart.php
lib/php/Mail/mail.php
lib/php/Mail/sendmail.php
lib/php/Mail/smtp.php
lib/php/Mail/xmail.dtd
lib/php/Mail/xmail.xsl
lib/php/Net/Curl.php
lib/php/Net/Dig.php
lib/php/Net/SMTP.php
lib/php/Net/Socket.php
lib/php/OS/Guess.php
lib/php/PEAR.php
lib/php/PEAR/Autoloader.php
lib/php/PEAR/Builder.php
lib/php/PEAR/Command.php
lib/php/PEAR/Command/Auth.php
lib/php/PEAR/Command/Build.php
lib/php/PEAR/Command/Common.php
lib/php/PEAR/Command/Config.php
lib/php/PEAR/Command/Install.php
@ -240,47 +241,138 @@ lib/php/PEAR/Installer.php
lib/php/PEAR/Packager.php
lib/php/PEAR/Registry.php
lib/php/PEAR/Remote.php
lib/php/Schedule/At.php
lib/php/System.php
lib/php/XML/Parser.php
lib/php/XML/RPC.php
lib/php/XML/RPC/Server.php
lib/php/build/Makefile.global
lib/php/build/acinclude.m4
lib/php/build/dynlib.m4
lib/php/build/dynlib.mk
lib/php/build/fastgen.sh
lib/php/build/library.mk
lib/php/build/ltlib.mk
lib/php/build/mkdep.awk
lib/php/build/pear.m4
lib/php/build/program.mk
lib/php/build/rules.mk
lib/php/build/rules_common.mk
lib/php/build/rules_pear.mk
lib/php/build/scan_makefile_in.awk
lib/php/build/shtool
share/doc/pear/Archive_Tar/docs/Archive_Tar.txt
share/doc/pear/DB/DB/IDEAS
share/doc/pear/DB/DB/MAINTAINERS
share/doc/pear/DB/DB/STATUS
share/doc/pear/DB/DB/TESTERS
share/pear/PEAR/package.dtd
share/pear/PEAR/template.spec
share/pear/tests/DB/tests/db_error.phpt
share/pear/tests/DB/tests/db_error2.phpt
share/pear/tests/DB/tests/db_factory.phpt
share/pear/tests/DB/tests/db_ismanip.phpt
share/pear/tests/DB/tests/db_parsedsn.phpt
share/pear/tests/DB/tests/driver/01connect.phpt
share/pear/tests/DB/tests/driver/02fetch.phpt
share/pear/tests/DB/tests/driver/03simplequery.phpt
share/pear/tests/DB/tests/driver/04numcols.phpt
share/pear/tests/DB/tests/driver/05sequences.phpt
share/pear/tests/DB/tests/driver/06prepexec.phpt
share/pear/tests/DB/tests/driver/08affectedrows.phpt
share/pear/tests/DB/tests/driver/09numrows.phpt
share/pear/tests/DB/tests/driver/10errormap.phpt
share/pear/tests/DB/tests/driver/13limit.phpt
share/pear/tests/DB/tests/driver/14fetchmode_object.phpt
share/pear/tests/DB/tests/driver/15quote.phpt
share/pear/tests/DB/tests/ibase/01connect.phpt
share/pear/tests/DB/tests/ibase/02fetch.phpt
share/pear/tests/DB/tests/ibase/03simplequery.phpt
share/pear/tests/DB/tests/ibase/04numcols.phpt
share/pear/tests/DB/tests/ibase/05sequences.phpt
share/pear/tests/DB/tests/ibase/06prepexec.phpt
share/pear/tests/DB/tests/ibase/10errormap.phpt
share/pear/tests/DB/tests/mysql/01connect.phpt
share/pear/tests/DB/tests/mysql/02fetch.phpt
share/pear/tests/DB/tests/mysql/03simplequery.phpt
share/pear/tests/DB/tests/mysql/04numcols.phpt
share/pear/tests/DB/tests/mysql/05sequences.phpt
share/pear/tests/DB/tests/mysql/06prepexec.phpt
share/pear/tests/DB/tests/mysql/07errornative.phpt
share/pear/tests/DB/tests/mysql/08affectedrows.phpt
share/pear/tests/DB/tests/mysql/09numrows.phpt
share/pear/tests/DB/tests/mysql/10errormap.phpt
share/pear/tests/DB/tests/mysql/12tableinfo.phpt
share/pear/tests/DB/tests/mysql/13limit.phpt
share/pear/tests/DB/tests/mysql/14fetchmode_object.phpt
share/pear/tests/DB/tests/oci8/01connect.phpt
share/pear/tests/DB/tests/oci8/02fetch.phpt
share/pear/tests/DB/tests/oci8/03simplequery.phpt
share/pear/tests/DB/tests/oci8/04numcols.phpt
share/pear/tests/DB/tests/oci8/05sequences.phpt
share/pear/tests/DB/tests/oci8/06prepexec.phpt
share/pear/tests/DB/tests/oci8/07errornative.phpt
share/pear/tests/DB/tests/oci8/08affectedrows.phpt
share/pear/tests/DB/tests/oci8/09numrows.phpt
share/pear/tests/DB/tests/oci8/10errormap.phpt
share/pear/tests/DB/tests/oci8/13limit.phpt
share/pear/tests/DB/tests/odbc/01connect.phpt
share/pear/tests/DB/tests/odbc/02fetch.phpt
share/pear/tests/DB/tests/odbc/03simplequery.phpt
share/pear/tests/DB/tests/odbc/04numcols.phpt
share/pear/tests/DB/tests/odbc/06prepexec.phpt
share/pear/tests/DB/tests/odbc/07errornative.phpt
share/pear/tests/DB/tests/odbc/09numrows.phpt
share/pear/tests/DB/tests/odbc/10errormap.phpt
share/pear/tests/DB/tests/pgsql/01connect.phpt
share/pear/tests/DB/tests/pgsql/02fetch.phpt
share/pear/tests/DB/tests/pgsql/03simplequery.phpt
share/pear/tests/DB/tests/pgsql/04numcols.phpt
share/pear/tests/DB/tests/pgsql/05sequences.phpt
share/pear/tests/DB/tests/pgsql/06prepexec.phpt
share/pear/tests/DB/tests/pgsql/07errornative.phpt
share/pear/tests/DB/tests/pgsql/08affectedrows.phpt
share/pear/tests/DB/tests/pgsql/09numrows.phpt
share/pear/tests/DB/tests/pgsql/10errormap.phpt
share/pear/tests/DB/tests/pgsql/11transact.phpt
share/pear/tests/DB/tests/pgsql/13limit.phpt
share/pear/tests/DB/tests/pgsql/14fetchmode_object.phpt
share/pear/tests/XML_Parser/tests/001.phpt
share/pear/tests/XML_Parser/tests/002.phpt
share/pear/tests/XML_Parser/tests/003.phpt
share/pear/tests/XML_Parser/tests/004.phpt
share/pear/tests/XML_Parser/tests/005.phpt
share/pear/tests/XML_Parser/tests/test2.xml
share/pear/tests/XML_Parser/tests/test3.xml
@dirrm share/pear/tests/XML_Parser/tests
@dirrm share/pear/tests/XML_Parser
@dirrm share/pear/tests/DB/tests/pgsql
@dirrm share/pear/tests/DB/tests/odbc
@dirrm share/pear/tests/DB/tests/oci8
@dirrm share/pear/tests/DB/tests/mysql
@dirrm share/pear/tests/DB/tests/ibase
@dirrm share/pear/tests/DB/tests/driver
@dirrm share/pear/tests/DB/tests
@dirrm share/pear/tests/DB
@dirrm share/pear/tests
@dirrm share/pear/PEAR
@dirrm share/pear
@dirrm share/doc/pear/DB/DB
@dirrm share/doc/pear/DB
@dirrm share/doc/pear/Archive_Tar/docs
@dirrm share/doc/pear/Archive_Tar
@dirrm share/doc/pear
@dirrm lib/php/build
@dirrm lib/php/XML/RPC
@dirrm lib/php/XML
@dirrm lib/php/Schedule
@dirrm lib/php/PEAR/Frontend
@dirrm lib/php/PEAR/Command
@dirrm lib/php/PEAR
@dirrm lib/php/OS
@dirrm lib/php/Net
@dirrm lib/php/Mail
@dirrm lib/php/Log
@exec mkdir -p %D/lib/php/Image
@dirrm lib/php/Image
@dirrm lib/php/HTTP
@dirrm lib/php/HTML
@dirrm lib/php/File
@dirrm lib/php/Date
@dirrm lib/php/DB
@dirrm lib/php/Crypt
@dirrm lib/php/Console
@dirrm lib/php/Archive
@dirrm lib/php/.registry
@dirrm lib/php
@dirrm include/php/regex
@dirrm include/php/main
@dirrm include/php/ext/xml/expat
@dirrm include/php/ext/xml
@dirrm include/php/ext/standard
@dirrm include/php/ext/session
@dirrm include/php/ext/pgsql
@dirrm include/php/ext/mbstring
@dirrm include/php/ext
@dirrm include/php/Zend