Commit graph

83 commits

Author SHA1 Message Date
wiz
6d6fdb9cd1 Let MASTER_SITES be overridden, if a package using this Makefile
fragment really wants to (like php4-apc).
Closes PR 20293 by Soren Jacobsen.
2003-03-22 01:18:20 +00:00
lukem
600b084e41 Fix for wordwrap() buffer overflow, per
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-1396
(Patch obtained from RedHat's php-4.2.2-8.0.7.src.rpm.)

Bump PKGREVISION.
2003-02-21 05:39:03 +00:00
jlam
48ead3a5dd Bump PKGREVISION of www/php4 to 1. This fixes a problem reported on
tech-pkg@ where the incorrect libtoolize was being invoked.  We now pass
in the path to libtoolize via the environment, much like how the other
GNU auto* tools are found in pkgsrc.
2003-02-03 23:53:24 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
christos
fdd5cb1cad new patch-aj 2003-01-14 21:39:54 +00:00
christos
967e9831cd make sure that gettext does not core dump on bad params. 2003-01-14 21:39:38 +00:00
christos
d8128632ae update checksum 2003-01-12 14:46:52 +00:00
christos
5070233956 PR/19207, PR/19681, PR/19367: package does not compile because threads
are required for ZTS. Disable ZTS if no threads.
2003-01-12 14:31:58 +00:00
christos
dbef88eab9 PR/18693: Simon Schubert: Remove stat stuff that breaks with apache2 virtual
paths.
2003-01-12 14:29:07 +00:00
jlam
6df0e56b17 Make php4 and ap-php4 actually use our libtool again. 2003-01-08 01:52:41 +00:00
wiz
588dc0cd8d Improve message, as suggested by Daniel Eggert. 2002-12-21 13:39:25 +00:00
tron
a27501212c Backout last change. It makes PHP unusable with Apache 1.3.x. 2002-11-22 20:16:23 +00:00
martti
9ef7dbabf1 - make this work with apache2
- buildlink2
2002-11-05 07:33:13 +00:00
wiz
bff4abaef8 Unused. 2002-10-25 16:58:01 +00:00
martti
a9e061798a Updated php to 4.2.3
* lots of bug fixes
* experimental apache2 support
* added IPv6 support to gethostbyaddr()

ATTENTION!! register_globals defaults to 'off' now
2002-10-14 06:21:05 +00:00
wiz
933435a1e6 Pass in some env. variables for phpize. Reported missing by lukem. 2002-10-05 10:54:12 +00:00
wiz
6aedfe3b0f Make modules use automake.mk. Bump PKGREVISION for phpize change. 2002-10-02 23:48:07 +00:00
agc
cb0e38446b Apply patches from Lubomir Sedlacik <salo@Xtrmntr.org> in PR 18115 to
generalise the linker flags used to export symbols by setting them on
a per-OS basis.

> many packages force -Wl,-export-dynamic which is not portable outside GNU ld
> and cause problems e.g. on Solaris.  some of these packages use if
> conditionals either only for NetBSD or except SunOS, but the state is not
> coherent and it may complicate later when support for new OS is added to
> pkgsrc (e.g. ongoing work on HP-UX support).
>
> jlam proposed the following framework in discussion on tech-pkg:
>
>   http://mail-index.netbsd.org/tech-pkg/2002/06/21/0009.html
>
> now, ${EXPORT_SYMBOLS_LDFLAGS} is used instead of directly defining
> -Wl,-export-dynamic which is set in appropriate defs.*.mk to reasonable
> values.  packages should be converted to this framework by:
>
> 1) replacing LDFLAGS+= -Wl,-export-dynamic and LIBS+= -export-dynamic with:
>
>    LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
>
> 2) for use in patchfiles, add this variable to MAKE_ENV if needed:
>
>    MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS}
>
> 3) replace occurances of -Wl,-export-dynamic and -export-dynamic in patch
>    files with:
>
>    $(EXPORT_SYMBOLS_LDFLAGS)
2002-09-04 14:47:32 +00:00
grant
1debbed618 backout previous, the problem seems to lie with our Apache pkg on Solaris. 2002-08-26 00:42:34 +00:00
grant
4032b2d34c fix configure problem on Solaris while calling apxs. 2002-08-26 00:32:22 +00:00
grant
1073ef32e7 The Solaris linker doesn't understand --export-dynamic, so give this a
chance of working by only passing -Wl,--export-dynamic if we are not
on SunOS.
2002-08-26 00:16:57 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
jlam
d9dcf3ad2d Give PHP4 distfile a make variable name. 2002-04-12 17:59:57 +00:00
jlam
f2e9870864 Replace some = with ?= so that the values may be overridden in PHP4 module
package Makefiles.  This fixes breakage in php4-apc noted by Jon Buller
in private e-mail.
2002-03-01 22:51:42 +00:00
jlam
1cc929effe Update php4 and ap-php4 to 4.1.2. Changes from version 4.1.1 include:
- Fixed start up failure when mm save handler is used and there is multiple
  SAPIs are working at the same time. (Yasuo)
- Fixed a buffer overflow in the RFC-1867 file upload code (Stefan)

			<===> SECURITY NOTE <===>

Note that the buffer overflow fix is a major security fix.  Quoting from
the security advisory at:

	http://security.e-matters.de/advisories/012002.html

"PHP supports multipart/form-data POST requests (as described in RFC1867)
known as POST fileuploads. Unfourtunately there are several flaws in the
php_mime_split function that could be used by an attacker to execute
arbitrary code. During our research we found out that not only PHP4 but
also older versions from the PHP3 tree are vulnerable.

[...]

"If you are running PHP 4.0.3 or above one way to workaround these bugs is
to disable the fileupload support within your php.ini (file_uploads = Off).
If you are running php as module keep in mind to restart the webserver.
Anyway you should better install the fixed or a properly patched version to
be safe."
2002-02-28 06:14:45 +00:00
skrll
08bdd44549 mkdir -> ${MKDIR}
rmdir -> ${RMDIR}
rm -> ${RM} (${RM} added to PLIST_SUBST)
chmod -> ${CHMOD}
chown -> ${CHOWN}
2002-02-15 10:12:28 +00:00
jlam
1f7bfc6d12 Remove references to the example php.ini files. The recommended one is
automatically installed, and the example files are in the obvious place.
2002-01-11 22:27:05 +00:00
jlam
fb596783ba Update www/php4 to 4.1.1. Changes from version 4.1.0 include:
- Fixed bug that caused crashes or error notices on shutdown on threaded
  platforms. (Zeev)
- Fixed bug in gmmktime() which was one hour off during standard time -
  bug #9878. Patch by bfoddy@mediaone.net. (jmoore)
- Fixed a bug where the is_file() family of functions would in-correctly give
  an error when they were given filenames that didn't exist. (Sterling)
- Fixed a bug in the strtotime() function where it was incorrectly recognizing
  GMT +0100 and GMT -0100. (Derick)
2002-01-06 19:57:13 +00:00
jlam
a407f5cb9e Update www/php4 to 4.1.0. Major changes from version 4.0.6 include:
- Introduced a new $_REQUEST array, which includes any GET, POST or COOKIE
  variables.  Like the other new variables, this variable is also available
  regardless of the context.
- Introduced $_GET, $_POST, $_COOKIE, $_SERVER and $_ENV variables, which
  deprecate the old $HTTP_*_VARS arrays.  In addition to be much shorter to
  type - these variables are also available regardless of the scope, and
  there's no need to import them using the 'global' statement.

Other relevant changes include:

- Bug fixes to prevent crashes on unexpected input.
- Huge performance improvements, especially in thread-safe code.
- Introduced extension version numbers.
- Added support for single dimensional SafeArrays and Enumerations.
  Added an is_enum() function to check if a component implements an
  enumeration.
- Improved speed of the serializer/deserializer.
- Floating point numbers are better detected when converting from strings.
- Added import_request_variables(), to allow users to safely import form
  variables to the global scope
- Add config option (always_populate_raw_post_data) which when enabled
  will always populate $HTTP_RAW_POST_DATA regardless of the post mime
  type
- Added getmygid() and safe_mode_gid ini directive to allow safe mode to do
  a gid check instead of a uid check.
- Assigning to a string offset beyond the end of the string now automatically
  increases the string length by padding it with spaces, and performs the
  assignment.
2001-12-31 23:54:24 +00:00
jlam
5725a8578b Missed a PHP_PKG_VERS -> PKGREVISION conversion. 2001-12-11 06:12:44 +00:00
jlam
8cc6055063 Use PKGREVISION to manage the package-specific version number when it
differs from the distfile version number.  G/C some the unused variables
in php4/Makefile.common related to the old way of handling version numbers.
2001-12-03 08:30:58 +00:00
jlam
55ffb37406 bsd.pkg.install.mk calls the INSTALL script at the right times
automatically, so no need to do it ourselves.
2001-12-02 06:56:38 +00:00
jlam
6e896e42e0 Forgot a CONFDIR -> PKG_SYSCONFDIR replacement. 2001-11-26 07:30:44 +00:00
jlam
ffceca11a9 PKG_SYSCONFDIR is where the configuration files for a package may be found.
This value may be customized in various ways:

PKG_SYSCONFBASE is the main config directory under which all package
	configuration files are to be found.

PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the
	configuration files for a particular package may be found.

PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a
	particular package.

Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the
default location of ${PREFIX}/etc.

This obsoletes the use of CONFDIR, which was active for only 6 days, so no
need to have a workaround to still accept old CONFDIR settings.
2001-11-25 18:59:45 +00:00
jlam
b23d2e8626 Adapt to use shared INSTALL/DEINSTALL scripts by using the logic in
bsd.pkg.install.mk:

	* Remove old DEINSTALL/INSTALL scripts.
	* Move some text printed at POST-INSTALL time into the MESSAGE file.
	* Adjust rc.d scripts to respect rc.conf settings, so that the
	  script may be directly copied into /etc/rc.d.
2001-11-19 16:23:08 +00:00
jlam
d42be0e08f Move MESSAGE.module from pkg/ to top-level package directory. 2001-11-01 19:34:52 +00:00
jlam
1ea58d26e3 Change reachover references into another package's pkg/ directory into
references to the other package's base directory.  This is needed after
the files in the pkg/ directory were dispersed into the base directory.
2001-11-01 09:41:13 +00:00
zuntum
c736340585 Move pkg/ files into package's toplevel directory 2001-11-01 02:25:33 +00:00
zuntum
431e7a7dda Move pkg/ files into package's toplevel directory 2001-11-01 02:15:23 +00:00
wiz
fbe0cf14ce Correct package names by adding '4' before the '-', and add
php4-posix, which seems to be needed for mail/imp, as noted by
Olaf Seibert in private mail.
2001-10-30 13:56:55 +00:00
jlam
c99b206439 Only link -lgcc whole-archive on NetBSD ELF platforms, to allow a.out
platforms to correctly links this package.
2001-10-20 17:46:50 +00:00
jlam
6a3d2fa2cc Support for linking some PHP4 extensions statically into the php CGI and
into the apache mod_php.so DSO.

PHP4_CONFIGURE_ARGS should contain GNU configure options, a complete
list of which may be found at:

	http://www.php.net/manual/en/install.configure.php

Note that this is generally not needed as many of the extensions (session,
mysql, pgsql, pcre) may be dynamically loaded, and are separately packaged
in pkgsrc.
2001-10-18 17:16:43 +00:00
jlam
7f7ccb1970 Note additional PHP4 packages that the user may want to install. 2001-10-18 17:07:10 +00:00
tron
809b4e9229 Replace "../php4" with "../../www/php4" at various locations to fix
build problems in PHP module packages outside "pkgsrc/www".
2001-10-16 12:44:16 +00:00
tron
da3330d42e Fix module makefile which didn't work with PHP module packages outside of
"pkgsrc/www".
2001-10-16 12:33:46 +00:00
jlam
53b15a28fd Update ap-php and php to 4.0.6. Changes from version 4.0.5 include:
- Bug fixes (memory leaks and other errors)
- Made $HTTP_SESSION_VARS['foo'] and $foo be references to the same value
  when register_globals is on. (Andrei)
- Added is_callable() function that can be used to find out whether
  its argument is a valid callable construct. (Andrei)
- Added pg_last_notice() function. (Rasmus from suggestion by Dirk@rackspace.com)
- Added support to getimagesize to return dimensions of BMP and PSD
  files. (Derick)
- Added Japanese multibyte string functions support. (Rui)
- Added key_exists() to check if a given key or index exists in an
  array or object. (David Croft)
- Added -C command-line option to avoid chdir to the script's directory. (Stig)
- printf argnum (parameter swapping) support. (Morten Poulsen, Rasmus)
- Modified get_parent_class() and get_class_methods() to accept a class name as
  well as a class instance. (Andrei, Zend Engine)
- Added array_map() function that applies a callback to the elements
  of given arrays and returns the result. It can also be used with a
  null callback to transpose arrays. (Andrei)
- Added array_filter(), which allows filtering of array elements via
  the specified callback. (Andrei)
2001-10-16 04:54:23 +00:00
jlam
f79573370a Mechanical changes to 375 files to change dependency patterns of the form
foo-* to foo-[0-9]*.  This is to cause the dependencies to match only the
packages whose base package name is "foo", and not those named "foo-bar".
A concrete example is p5-Net-* matching p5-Net-DNS as well as p5-Net.  Also
change dependency examples in Packages.txt to reflect this.
2001-09-27 23:17:41 +00:00
jlam
9820a22a90 In package Makefiles, create FILES_SUBST instead of duplicating sed
expression for substituting in DEINSTALL/INSTALL scripts.  Use "${CMP} -s"
instead of "diff -q" since the former is more portable across OSes.
2001-07-13 07:09:17 +00:00
kim
aa23164d61 Hyphens in module names are replaced with underscores in the file system. 2001-06-21 22:44:03 +00:00
explorer
79b0f5f360 enable sockets in php4. 2001-06-13 06:20:28 +00:00