head	1.22;
access;
symbols
	RELEASE_8_3_0:1.18
	RELEASE_9_0_0:1.18
	RELEASE_7_4_0:1.15
	RELEASE_8_2_0:1.15
	RELEASE_6_EOL:1.15
	RELEASE_8_1_0:1.15
	RELEASE_7_3_0:1.15
	RELEASE_8_0_0:1.12
	old_RELEASE_7_2_0:1.11
	old_RELEASE_7_1_0:1.11
	old_RELEASE_6_4_0:1.11
	old_RELEASE_5_EOL:1.10
	old_RELEASE_7_0_0:1.8
	old_RELEASE_6_3_0:1.8
	old_PRE_XORG_7:1.3;
locks; strict;
comment	@# @;


1.22
date	2013.03.22.15.52.26;	author svnexp;	state Exp;
branches;
next	1.21;

1.21
date	2012.11.17.06.02.29;	author svnexp;	state Exp;
branches;
next	1.20;

1.20
date	2012.08.22.19.58.26;	author ohauer;	state Exp;
branches;
next	1.19;

1.19
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.18;

1.18
date	2011.08.20.17.27.36;	author ohauer;	state Exp;
branches;
next	1.17;

1.17
date	2011.04.22.18.30.34;	author glarkin;	state Exp;
branches;
next	1.16;

1.16
date	2011.03.31.20.21.32;	author pav;	state Exp;
branches;
next	1.15;

1.15
date	2009.12.05.02.40.37;	author glarkin;	state Exp;
branches;
next	1.14;

1.14
date	2009.09.30.14.25.40;	author glarkin;	state Exp;
branches;
next	1.13;

1.13
date	2009.09.29.20.28.31;	author glarkin;	state Exp;
branches;
next	1.12;

1.12
date	2009.09.23.16.56.08;	author glarkin;	state Exp;
branches;
next	1.11;

1.11
date	2008.07.18.21.05.18;	author glarkin;	state Exp;
branches;
next	1.10;

1.10
date	2008.01.09.14.05.35;	author tabthorpe;	state Exp;
branches;
next	1.9;

1.9
date	2008.01.03.18.57.12;	author tabthorpe;	state Exp;
branches;
next	1.8;

1.8
date	2007.10.29.22.54.21;	author miwi;	state Exp;
branches;
next	1.7;

1.7
date	2007.09.12.01.04.58;	author tabthorpe;	state Exp;
branches;
next	1.6;

1.6
date	2007.07.19.16.05.25;	author rafan;	state Exp;
branches;
next	1.5;

1.5
date	2007.07.09.18.03.21;	author miwi;	state Exp;
branches;
next	1.4;

1.4
date	2007.07.06.06.45.16;	author miwi;	state Exp;
branches;
next	1.3;

1.3
date	2007.04.06.14.30.22;	author rafan;	state Exp;
branches;
next	1.2;

1.2
date	2007.02.21.05.58.05;	author rafan;	state Exp;
branches;
next	1.1;

1.1
date	2007.02.21.05.07.30;	author rafan;	state Exp;
branches;
next	;


desc
@@


1.22
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314915
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Greg Larkin <glarkin@@FreeBSD.org>
# $FreeBSD: head/www/cakephp11/Makefile 314915 2013-03-22 11:53:34Z bapt $

PORTNAME=	cakephp
PORTVERSION=	1.1.19.6305
PORTREVISION=	4
CATEGORIES=	www
MASTER_SITES=	http://www.sourcehosting.net/freebsd/distfiles/ \
		LOCAL/glarkin
DISTNAME=	cake_${PORTVERSION}

MAINTAINER=	glarkin@@FreeBSD.org
COMMENT=	A framework for developing PHP web applications

LATEST_LINK=	cakephp11

USE_BZIP2=	yes

USE_APACHE_RUN=	22+
SLAVE_PORT_MODULES=	REWRITE

CONFLICTS=	cakephp-1.[23].*
NO_BUILD=	yes

USE_PHP=	pcre session
WANT_PHP_WEB=	yes
DEFAULT_PHP_VER=5
IGNORE_WITH_PHP=4

SUB_FILES=	pkg-message

WRKSRC=		${WRKDIR}/cake_${DISTVERSION}

OPTIONS_DEFINE=	PROD MYSQL PGSQL SQLITE DOCS
PROD_DESC=	Install for production server (see: make confighelp)

PLIST_SUB+=	CONFDIR=${CONFDIR_REL}

CONFDIR=	${PREFIX}/${CONFDIR_REL}
CONFDIR_REL=	${APACHEETCDIR}/Includes

.include <bsd.port.pre.mk>

WITH_PHP_CGI?=	/cgi-bin/php

.if ${PHP_SAPI:Mcgi} == "cgi" && ${PHP_SAPI:Mmod} == ""
CGI_EXT=	-cgi
.else
CGI_EXT=
.endif

SUB_LIST+=	PHPCGI=${WITH_PHP_CGI}

.if ${PORT_OPTIONS:MPROD}
PROD=		production
.else
PROD=		development
EXTRA_PATCHES=	${FILESDIR}/development-app-config-core.php.patch
.endif

CONF=		cakephp-${PROD}${CGI_EXT}.conf
SUB_FILES+=	${CONF}

DB_DEFINED=	no

.if ${PORT_OPTIONS:MMYSQL}
DB_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_mysql.so:${PORTSDIR}/databases/php5-pdo_mysql
DB_DEFINED=	yes
.endif

.if ${PORT_OPTIONS:MPGSQL}
DB_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql
DB_DEFINED=	yes
.endif

.if ${PORT_OPTIONS:MSQLITE}
DB_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_sqlite.so:${PORTSDIR}/databases/php5-pdo_sqlite
DB_DEFINED=	yes
.endif

.if ${DB_DEFINED} == "yes"
RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo.so:${PORTSDIR}/databases/php5-pdo \
		${DB_DEPENDS}
.endif

confighelp:
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "On a production server, the Apache DocumentRoot is"
	@@${ECHO_MSG} "updated to point to the CakePHP webroot directory."
	@@${ECHO_MSG} "In this configuration, the CakePHP application is"
	@@${ECHO_MSG} "accessed at http://www.myservername.com/."
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "A non-production server, CakePHP is installed at"
	@@${ECHO_MSG} "the /cakephp URL, and the CakePHP application is"
	@@${ECHO_MSG} "accessed at http://www.myservername.com/cakephp/."
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "For more information, please see:"
	@@${ECHO_MSG} "http://manual.cakephp.org/chapter/installing"
	@@${ECHO_MSG} ""

do-install:
	@@${MKDIR} ${WWWDIR}
	@@${CP} -R ${WRKSRC}/.htaccess \
			${WRKSRC}/app \
			${WRKSRC}/cake \
			${WRKSRC}/index.php \
			${WRKSRC}/vendors ${WWWDIR}
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
	@@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
	@@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755

post-install:
	@@if [ -d "${CONFDIR}" ]; then \
	  ${CP} ${WRKDIR}/${CONF} ${CONFDIR}/cakephp.conf; \
	else \
	  ${ECHO_MSG} "" ; \
	  ${ECHO_MSG} "Please check your Apache 2.x installation -" ; \
	  ${ECHO_MSG} "${CONFDIR} doesn't exist," ; \
	  ${ECHO_MSG} "so I cannot install cakephp.conf there!" ; \
	  ${ECHO_MSG} "" ; \
	  ${FALSE} ; \
	fi
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DOCSDIR}
.endif
	@@${CAT} ${PKGMESSAGE}
.if ${CGI_EXT} == "-cgi"
	@@${ECHO_MSG}	""
	@@${ECHO_MSG}	"Your CakePHP installation was configured to use the PHP CGI binary."
	@@${ECHO_MSG}	"The PHP CGI binary is expected to be referenced by the URL:"
	@@${ECHO_MSG}	""
	@@${ECHO_MSG}	"	${WITH_PHP_CGI}"
	@@${ECHO_MSG}	""
	@@${ECHO_MSG}	"If this is incorrect, reinstall the port with the WITH_PHP_CGI knob"
	@@${ECHO_MSG}	"set to the correct URL."
.endif
	@@${ECHO_MSG}	"*********************************************************************"

.include <bsd.port.post.mk>
@


1.21
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	cakephp
# Date created:        19 January 2007
# Whom:                Greg Larkin <glarkin@@FreeBSD.org>
#
# $FreeBSD: head/www/cakephp11/Makefile 302962 2012-08-22 19:58:26Z ohauer $
#
d34 2
a35 4
OPTIONS=	PROD "Install for production server (see: make confighelp)" Off \
		MYSQL "Check for/install MySQL support in PHP" Off \
		PGSQL "Check for/install PostgreSQL support in PHP" Off \
		SQLITE "Check for/install SQLite support in PHP" Off
d54 1
a54 1
.if defined(WITH_PROD)
d66 1
a66 1
.if defined(WITH_MYSQL)
d71 1
a71 1
.if defined(WITH_PGSQL)
d76 1
a76 1
.if defined(WITH_SQLITE)
d123 1
a123 1
.if !defined(NOPORTDOCS)
@


1.20
log
@SVN rev 302962 on 2012-08-22 19:58:26Z by ohauer

- use UPPERCASE for SLAVE_PORT_MODULES (www/cakephp*)

  Note: SLAVE_PORT_MODULES is target to remove, since
        with new options framework it can lead to
	a defect pkg-plist (leftovers).

- update supported USE_APACHE version
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.19
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@d24 1
a24 1
SLAVE_PORT_MODULES=	rewrite
@


1.18
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d23 1
a23 1
USE_APACHE=	22+
@


1.17
log
@- Unbreak - make fetchable
- Quiet the installation commands
- Update recommended Apache version

Reported by:	pointyhat (via pav)
@
text
@d23 1
a23 1
USE_APACHE=	2.2+
@


1.16
log
@- Mark BROKEN: unfetchable

Reported by:	pointyhat
@
text
@d12 2
a13 1
MASTER_SITES=	http://cakeforge.org/frs/download.php/591/
a18 2
BROKEN=		unfetchable

a21 3
DISTFILE_SUFFIX=/donation=complete
FETCH_BEFORE_ARGS=	-o ${DISTDIR}/${TARGET_DISTFILE}
TARGET_DISTFILE=${DISTNAME}${EXTRACT_SUFX}
d23 1
a23 1
USE_APACHE=	2.0+
a91 5
do-fetch:
.if !exists(${DISTDIR}/${TARGET_DISTFILE})
	${FETCH_CMD} ${FETCH_BEFORE_ARGS} -1 ${MASTER_SITES:S|$|${TARGET_DISTFILE}${DISTFILE_SUFFIX}|g}
.endif

d109 1
a109 1
	${CP} -R ${WRKSRC}/.htaccess \
d114 3
a116 3
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
	${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
	${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@


1.15
log
@- Moved various PHP-related directives ahead of bsd.port.pre.mk
- Bumped PORTREVISION on affected ports

PR:		ports/135674
Submitted by:	yzlin
@
text
@d18 2
@


1.14
log
@- Added LATEST_LINK to avoid conflict with cakephp12
- Bumped PORTREVISION

Requested by:	erwin
Feature safe:	yes
@
text
@d10 1
a10 1
PORTREVISION=	3
d30 1
d33 2
a59 3
DEFAULT_PHP_VER=5
IGNORE_WITH_PHP=4

@


1.13
log
@- Updated CONFLICTS after repomove
- Bumped PORTREVISION

Feature safe:	yes
@
text
@d10 1
a10 1
PORTREVISION=	2
d18 2
@


1.12
log
@- Repocopy from www/cakephp to www/cakephp11 has been completed

PR:		ports/138899
Approved by:	marcus (portmgr hat)
Feature safe:	yes
@
text
@d10 1
a10 1
PORTREVISION=	1
d26 1
a26 1
CONFLICTS=	cakephp-devel-[0-9]*
@


1.11
log
@Changed my MAINTAINER address to
glarkin@@FreeBSD.org.

Approved by:	beech (mentor)
@
text
@@


1.10
log
@- Add CONFLICT with www/cakephp-devel
- Bump PORTREVSION

PR:		ports/119322
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@d3 1
a3 1
# Whom:                Greg Larkin <glarkin@@sourcehosting.net>
d15 1
a15 1
MAINTAINER=	glarkin@@sourcehosting.net
@


1.9
log
@- Update to 1.1.19.6305

PR:		ports/119278
Submitted by:	Greg Larkin <glarkin sourcehosting.net> (maintainer)
@
text
@d10 1
d26 1
@


1.8
log
@- Update to 1.1.18.5850

PR:		117636
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.1.18.5850
d11 1
a11 1
MASTER_SITES=	http://cakeforge.org/frs/download.php/549/
@


1.7
log
@- Update to 1.1.17.5612

PR:		ports/116285
Submitted by:	Greg Larkin <glarkin_AT_sourcehosting.net> (maintainer)
Approved by:	clsung (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	1.1.17.5612
d11 1
a11 1
MASTER_SITES=	http://cakeforge.org/frs/download.php/503/
@


1.6
log
@- Update to 1.1.16.5421

PR:		ports/114707
Submitted by:	Greg Larkin <glarkin at sourcehosting.net> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.1.16.5421
d11 1
a11 1
MASTER_SITES=	http://cakeforge.org/frs/download.php/485/
@


1.5
log
@The use of "find ... -print0/xargs -0 ..." is faster than
"find ... -print/xargs -n1 ...", so use that here to fix file
and directory permissions after installation.

PR:		114445
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	1.1.15.5144
PORTREVISION=	1
d11 1
a11 1
MASTER_SITES=	http://cakeforge.org/frs/download.php/410/
@


1.4
log
@- Update to 1.1.15.5144
- Use WWWDIR

PR:		114138
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@d10 1
d119 2
a120 2
	${FIND} ${WWWDIR} -type f -print | ${XARGS} -n1 ${CHMOD} 644
	${FIND} ${WWWDIR} -type d -print | ${XARGS} -n1 ${CHMOD} 755
@


1.3
log
@- Add support for PHP running in CGI mode
  The location of PHP CGI can be set via WITH_PHP_CGI, e.g. /cgi-bin/php

PR:		ports/111295 (based on)
Submitted by:	Greg Larkin <glarkin at sourcehosting.net> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	1.1.13.4450
PORTREVISION=	1
d11 1
a11 1
MASTER_SITES=	http://cakeforge.org/frs/download.php/326/
d65 1
a65 1
CONF=		cakephp-${PROD}${CGI_EXT}.conf 
d111 1
a111 1
	@@${MKDIR} ${DATADIR}
d116 4
a119 4
			${WRKSRC}/vendors ${DATADIR}
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DATADIR}
	${FIND} ${DATADIR} -type f -print | ${XARGS} -n1 ${CHMOD} 644
	${FIND} ${DATADIR} -type d -print | ${XARGS} -n1 ${CHMOD} 755
@


1.2
log
@- Add missing TARGET_DISTFILE definition.
@
text
@d10 1
d28 1
a28 1
WANT_PHP_MOD=	yes
a30 1
SUB_LIST=	DATADIR=${DATADIR}
d39 4
a42 3
.if !defined(NOPORTDOCS)
INSTALL_TARGET=	install install-docs
.endif
d46 8
d55 3
a57 1
IGNORE_WITH_PHP=4.0 4.1 4.2 4.3.1
d60 1
a60 1
SUB_FILES+=	cakephp-production.conf
d62 1
a62 1
SUB_FILES+=	cakephp-development.conf
d66 3
d123 10
a132 13
.if exists(${PREFIX}/etc/apache2/Includes)
.if defined(WITH_PROD)
	@@${CP} ${WRKDIR}/cakephp-production.conf ${PREFIX}/etc/apache2/Includes/cakephp.conf
.else
	@@${CP} ${WRKDIR}/cakephp-development.conf ${PREFIX}/etc/apache2/Includes/cakephp.conf
.endif
.else
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "Please check your Apache 2.x installation -"
	@@${ECHO_MSG} "${PREFIX}/etc/apache2/Includes doesn't exist,"
	@@${ECHO_MSG} "so I cannot install cakephp.conf there!"
	@@${ECHO_MSG} ""
.endif
d138 11
@


1.1
log
@Add cakephp 1.1.13.4450, a framework for developing PHP web
applications.

PR:		ports/109331
Submitted by:	Greg Larkin <glarkin at sourcehosting.net>
@
text
@d20 1
@

