Bug 89896

Summary: [PATCH] Add support for multiple versions of php
Product: Ports & Packages Reporter: Melvyn Sopacua <melvyn>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me CC: ale
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Melvyn Sopacua 2005-12-03 21:30:02 UTC
	Currently, only one version of php can be installed using ports. This patch
	adds support to install both php4 and php5 using the ports system, for people
	that know what they're doing(tm).
	While it is possible, to install a different version by yourself, this does
	not take advantage of the patches and research done by the ports maintainers as
	well as portaudit's security features.

Fix: Using the following MAKE_ARGS in pkgtools.conf and provided patch it is now
	possible to have a 'stable' apache/php4 installation in ${LOCALBASE} and an
	'expirimental' installation in /usr/local/apache2. Very convenient for
	developers who want to test the code on their laptops by just changing the
	port number of the website :p

	MAKE_ARGS = {
	'*/php5-*'	=> [
				'DISABLE_CONFLICTS=yes',
				'PHP_PREFIX=/usr/local/apache2',
			],
	'lang/php5'	=> [
				'WITH_APACHE2=yes',
				'APXS=/usr/local/apache2/sbin/apxs',
				'PREFIX=/usr/local/apache2',
				'DISABLE_CONFLICTS=yes',
			],
	'www/apache2*'	=> [
				'DISABLE_CONFLICTS=yes',
				'PREFIX=/usr/local/apache2',
			],
	}

	Patch:
How-To-Repeat: 	Install php4 and try to install php5 with extensions.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-03 21:41:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

over to maitnainer.
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2006-09-04 09:04:01 UTC
State Changed
From-To: open->closed