Commit graph

46 commits

Author SHA1 Message Date
jlam
3ebe053d90 LIBTOOL_OVERRIDE and SHLIBTOOL_OVERRIDE are now lists of shell globs
relative to ${WRKSRC}.  Remove redundant LIBTOOL_OVERRIDE settings that
are automatically handled by the default setting in bsd.pkg.mk.
2004-02-14 17:21:49 +00:00
cjep
1b39677b6e Remove unnecessary blank lines. 2004-01-12 09:46:04 +00:00
cjep
cef581dfc0 Whitespace fix 2003-12-30 23:40:12 +00:00
jdolecek
98cd00ba4e update MESSAGE with instructions for Apache 2.x, which needs AddHandler
rather than AddType

problem reported in pkg/23536 by Makoto Fujiwara
2003-12-17 20:10:41 +00:00
grant
b5c7f9cad2 not all platforms build libphp4.so in ${WRKSRC}/.libs, so install
if it exists, else install ${WRKSRC}/libs/libphp4.so.
2003-11-22 08:24:40 +00:00
grant
ac2754dcb7 kill all references to gcc.buildlink2.mk and compiler.mk, and define
USE_GCC2 or USE_GCC3 where appropriate.

the functionality of the old gcc.buildlink2.mk has been rolled into
compiler.mk now, which is automatically used.

more changes to come later...
2003-09-12 20:07:06 +00:00
erh
081c50fd51 Use the newly added apache.mk to allow this package to work with any of
the variants of apache.
2003-09-04 03:06:59 +00:00
jdolecek
90c1c1709f Update PHP to final 4.3.3
Some highlights of changes since 4.2.3:
* PCRE updated to 4.3, GD to 2.0.15
* improved Apache2 support
* much improved stream & URL wrapper support, output compression support
* added CLI (Command Line Interface) SAPI
* debug_backtrace() backported from ZendEngine2
* faster build system
* huge number of other bug fixes and improvements

Packaging changes:
* 'pcre', 'xml', and 'session' modules folded back into main package -
  'pcre' and 'xml' is required by PEAR, and 'session' is just too essential
  to be separate
* 'gd' module now uses bundled PHP GD library, which is better integrated
* PHP modules use shared distinfo when possible to ease future PHP updates
* ${PREFIX}/bin/php is now CLI version, ${PREFIX}/libexec/cgi-big/php
  remains CGI version
2003-08-31 19:55:21 +00:00
jdolecek
bac7b53c7f include some additional information about PHP language 2003-08-31 19:00:38 +00:00
grant
a5e4918525 improve COMMENT. 2003-08-23 14:22:43 +00:00
grant
11658a59b4 include mk/gcc.buildlink2.mk so this can find gcc3's libgcc. 2003-05-31 17:15:14 +00:00
salo
7a80998230 Bump PKGREVISION: www/php4 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.)

Addresses PR pkg/20912 by Todd Vierling.
2003-03-28 02:28:16 +00:00
jlam
2705582ec7 Build with shlibtool instead of libtool, like php4 really wants. 2003-01-10 22:10:18 +00:00
jlam
6df0e56b17 Make php4 and ap-php4 actually use our libtool again. 2003-01-08 01:52:41 +00:00
zuntum
cbccfd05f7 Include "pkgsrc/www/php4/Makefile.php" again, because the package does not build
with it. The line seems to have accidentally been removed when linker flags patch
went in.
2002-09-05 12:39:41 +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
b9e3298441 format and word Apache module MESSAGEs consistently. 2002-08-26 00:12:46 +00:00
jlam
a020ed9056 Merge packages from the buildlink2 branch back into the main trunk that
have been converted to USE_BUILDLINK2.
2002-08-25 21:50:52 +00:00
jlam
e48eed927a Note that these modules only work with Apache 1.3.* and not the forthcoming
Apache 2.x servers.
2002-02-28 18:32:18 +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
jlam
3b2ee66b8a Update www/ap-php4 to 4.1.0. Changes from version 4.0.6 include:
- Fixed a bug which caused set_time_limit() to affect all subsequent requests
  to running Apache child process. (Zeev)
- Added peak memory logging. Use --enable-memory-limit to create a new Apache
  1.x logging directive "{mod_php_memory_usage}n" which will log the peak
  amount of memory used by the script. (Thies)
2001-12-31 23:54:37 +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
zuntum
431e7a7dda Move pkg/ files into package's toplevel directory 2001-11-01 02:15:23 +00:00
veego
4a942570c0 'LDFLAGS+=-Wl,--export-dynamic' doesn't work on Solaris. 2001-10-19 09:55:31 +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
jonb
6c1b257916 Make all the ap-* packages work with apache6 as well as apache
(except for ap-ssl, of course)
2001-05-20 05:23:26 +00:00
jlam
a457d71ef9 Update php4 and modules to 4.0.5. Changes from version 4.0.4.1nb1 include
many general bugfixes, important fixes to the pgsql module to support
PostgreSQL transactions correctly, speedups, and a zlib output compressor.
2001-05-14 14:12:27 +00:00
jlam
41dc957e4a Use --export-dynamic instead of -E as it's recognized by both the old
and new ld on both a.out and ELF, on advice from skrll.netbsd.org.
2001-05-03 14:31:00 +00:00
jlam
749befd222 Only pass -Wl,-E to linker on ELF platforms. This fixes build problems
on a.out platforms pointed out by rh@netbsd.org.
2001-05-03 13:40:33 +00:00
jlam
a06b6353c3 Share common distinfo file with www/php4 2001-05-02 22:47:30 +00:00
jlam
5f2fb1b9ff Ensure we export symbols when linking mod_ssl.so. Also use PERL5_REQD
instead of hardcoding perl-5.* in build dependency.
2001-04-30 03:27:30 +00:00
skrll
aa3c03b75a Move to sha1 digests, and add distfile sizes. 2001-04-20 12:02:30 +00:00
agc
8f972b049a + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 12:12:16 +00:00
jlam
339cb17632 Missed committing this file along with others with changing version
numbering scheme for PHP4 modules.  No pkgsrc-visible changes.
2001-03-28 17:56:09 +00:00
hubertf
e32afb6fea Change BUILD_DEPENDS semantics:
first component is now a package name+version/pattern, no more
executable/patchname/whatnot.

While there, introduce BUILD_USES_MSGFMT as shorthand to pull in
devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current).

Patch by Alistair Crooks <agc@netbsd.org>
2001-03-27 03:19:43 +00:00
wiz
a0745845b3 Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:21:28 +00:00
jlam
552a0310e6 Update to ap-php-4.0.4.1 as a result of updating php4 package. 2001-01-15 16:46:01 +00:00
jlam
aa21263716 Add build dependency on perl, needed for apxs. 2000-12-19 07:49:41 +00:00
jlam
d4d1b7c68c Remove from lang category 2000-12-17 21:04:20 +00:00
jlam
be0250fb02 Add 'www' to common CATEGORIES.
Patches to find imap-uw headers and libraries in correct location.
2000-12-17 17:18:01 +00:00
jlam
d833c7ea56 Update ap-php4 to 4.0.3pl1nb1. Changes from version 4.0.3pl1:
* Move most of Makefile logic into ../php4/Makefile.common.
	* Move patches and files into ../php4.
	* Depend on php-4.0.3pl1.

The version number bump was necessary as php4 conflicts with the old
ap-php4-4.0.3pl1 package.
2000-12-17 09:26:08 +00:00
wiz
38400cc75f Update to 4.0.3pl1, inspired by Jared D. McNeill's pkg/11665. 2000-12-08 13:16:13 +00:00
wiz
abe3402bb3 regen 2000-11-09 12:39:10 +00:00
jdolecek
d5dcad8fd8 avoid unnecessary dependency on libpam - PAM is not used here
reported by Hubert Feyrer on tech-pkg
2000-11-01 11:33:17 +00:00
jdolecek
49c20320d9 refer to mod_php4.so, not mod_php3.so 2000-10-25 13:42:49 +00:00
jdolecek
5999169cc8 PHP4 (Apache module) package. Based upon www/php3 package a lot. 2000-10-25 13:28:41 +00:00