head	1.24;
access;
symbols
	RELEASE_8_3_0:1.19
	RELEASE_9_0_0:1.19
	RELEASE_7_4_0:1.15
	RELEASE_8_2_0:1.15
	RELEASE_6_EOL:1.14
	RELEASE_8_1_0:1.12
	RELEASE_7_3_0:1.11
	RELEASE_8_0_0:1.11
	RELEASE_7_2_0:1.10
	RELEASE_7_1_0:1.8
	RELEASE_6_4_0:1.8
	RELEASE_5_EOL:1.5;
locks; strict;
comment	@# @;


1.24
date	2012.11.17.06.02.30;	author svnexp;	state Exp;
branches;
next	1.23;

1.23
date	2012.10.10.21.49.02;	author rakuco;	state Exp;
branches;
next	1.22;

1.22
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.21;

1.21
date	2012.08.14.04.40.46;	author rm;	state Exp;
branches;
next	1.20;

1.20
date	2012.06.15.16.06.08;	author jgh;	state Exp;
branches;
next	1.19;

1.19
date	2011.11.16.07.16.43;	author wen;	state Exp;
branches;
next	1.18;

1.18
date	2011.08.22.17.15.51;	author beech;	state Exp;
branches;
next	1.17;

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

1.16
date	2011.05.03.14.38.10;	author glarkin;	state Exp;
branches;
next	1.15;

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

1.14
date	2010.11.29.05.26.53;	author beech;	state Exp;
branches;
next	1.13;

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

1.12
date	2010.04.11.07.53.19;	author ale;	state Exp;
branches;
next	1.11;

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

1.10
date	2009.02.11.14.16.55;	author glarkin;	state Exp;
branches;
next	1.9;

1.9
date	2008.10.28.18.21.10;	author glarkin;	state Exp;
branches;
next	1.8;

1.8
date	2008.07.18.21.05.18;	author glarkin;	state Exp;
branches;
next	1.7;

1.7
date	2008.07.03.19.51.37;	author beech;	state Exp;
branches;
next	1.6;

1.6
date	2008.06.05.15.51.11;	author miwi;	state Exp;
branches;
next	1.5;

1.5
date	2008.03.05.04.16.07;	author beech;	state Exp;
branches;
next	1.4;

1.4
date	2008.01.30.16.35.07;	author beech;	state Exp;
branches;
next	1.3;

1.3
date	2008.01.21.15.22.00;	author miwi;	state Exp;
branches;
next	1.2;

1.2
date	2008.01.19.19.05.10;	author beech;	state Exp;
branches;
next	1.1;

1.1
date	2008.01.11.04.39.49;	author beech;	state Exp;
branches;
next	;


desc
@@


1.24
log
@Switch exporter over
@
text
@# New ports collection makefile for:	codeigniter
# Date created:        04 January 2008
# Whom:                Greg Larkin <glarkin@@FreeBSD.org>
#
# $FreeBSD: head/www/codeigniter/Makefile 305689 2012-10-10 21:49:02Z rakuco $
#

PORTNAME=	codeigniter
PORTVERSION=	2.1.3
CATEGORIES=	www
MASTER_SITES=	http://downloads.codeigniter.com/reactor/ \
		http://www.codeigniter.org.tw/download_files/
DISTNAME=	CodeIgniter_${PORTVERSION}

MAINTAINER=	appleboy.tw@@gmail.com
COMMENT=	A framework for developing PHP web applications

USE_ZIP=	yes

CONFLICTS=	codeigniter-1.[0-9]*

NO_BUILD=	yes
USE_PHP=	session pcre
WANT_PHP_WEB=	yes

CI_SYS_DIR=	system
CI_CONF_DIR=	application/config
WRKSRC=		${WRKDIR}/${DISTNAME}
WWWDIR=		${PREFIX}/www/codeigniter
PORTDOCS=	*

LATEST_LINK=	codeigniter-devel

# These are all user-configurable files that we'll install
CI_CONF_FILES=	index.php ${CI_CONF_DIR}/autoload.php \
		${CI_CONF_DIR}/config.php ${CI_CONF_DIR}/constants.php \
		${CI_CONF_DIR}/database.php \
		${CI_CONF_DIR}/doctypes.php \
		${CI_CONF_DIR}/foreign_chars.php \
		${CI_CONF_DIR}/hooks.php \
		${CI_CONF_DIR}/mimes.php \
		${CI_CONF_DIR}/migration.php \
		${CI_CONF_DIR}/profiler.php \
		${CI_CONF_DIR}/routes.php ${CI_CONF_DIR}/smileys.php \
		${CI_CONF_DIR}/user_agents.php

# This is the rest of the CodeIgniter installation that doesn't change
STD_BITS=	${CI_CONF_DIR}/index.html \
		application/cache \
		application/controllers \
		application/core \
		application/errors \
		application/helpers \
		application/hooks \
		application/index.html \
		application/language \
		application/libraries \
		application/logs \
		application/models \
		application/third_party \
		application/views \
		${CI_SYS_DIR}/core \
		${CI_SYS_DIR}/database \
		${CI_SYS_DIR}/fonts \
		${CI_SYS_DIR}/helpers \
		${CI_SYS_DIR}/language \
		${CI_SYS_DIR}/libraries

OPTIONS_DEFINE=	APACHE PROD MSSQL MYSQL MYSQLI ODBC PGSQL SQLITE

APACHE_DESC=	Configure for Apache-2.x
PROD_DESC=	Install for production server (see: make confighelp)
MSSQL_DESC=	Install MSSQL support for PHP
MYSQL_DESC=	Install MySQL support for PHP
MYSQLI_DESC=	Install MySQLi support for PHP
ODBC=	Install ODBC support for PHP
PGSQL_DESC=	Install PostgreSQL support for PHP
SQLITE_DESC=	Install SQLite support for PHP

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN=	22+

PLIST_SUB+=	NOAPACHE="" CONFDIR=${CONFDIR_REL}
CONFDIR=	${PREFIX}/${CONFDIR_REL}
CONFDIR_REL=	${APACHEETCDIR}/Includes

PKGMESSAGE=	pkg-message-apache
SUB_FILES=	pkg-message-apache
.else
PLIST_SUB+=	NOAPACHE="@@comment "
PKGMESSAGE=	pkg-message-noapache
SUB_FILES=	pkg-message-noapache
.endif
PLIST_SUB+=	ECHO_MSG=${ECHO_MSG} CI_CONF_DIR=${CI_CONF_DIR}

WITH_PHP_CGI?=	/cgi-bin/php

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

DEFAULT_PHP_VER=5

SUB_LIST+=	PHPCGI=${WITH_PHP_CGI}

.if ${PORT_OPTIONS:MPROD}
PROD=		production
.else
PROD=		development
.endif

.if ${PORT_OPTIONS:MMSSQL}
USE_PHP+=	mssql
.endif

.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+=	mysql
.endif

.if ${PORT_OPTIONS:MMYSQLI}
USE_PHP+=	mysqli
.endif

.if ${PORT_OPTIONS:MODBC}
USE_PHP+=	odbc
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+=	pgsql
.endif

.if ${PORT_OPTIONS:MSQLITE}
USE_PHP+=	sqlite
.endif

.if ${PORT_OPTIONS:MDOCS}
SUB_LIST+=	HASHMARK=\#
.else
SUB_LIST+=	HASHMARK=
.endif

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

confighelp:
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "On a production server, the Apache DocumentRoot is"
	@@${ECHO_MSG} "updated to point to the CodeIgniter webroot directory."
	@@${ECHO_MSG} "In this configuration, the CodeIgniter application is"
	@@${ECHO_MSG} "accessed at http://www.myservername.com/."
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "A non-production server, CodeIgniter is installed at"
	@@${ECHO_MSG} "the /codeigniter URL, and the CodeIgniter application is"
	@@${ECHO_MSG} "accessed at http://www.myservername.com/codeigniter/."
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "For more information, please see:"
	@@${ECHO_MSG} "http://codeigniter.com/user_guide/installation/index.html"
	@@${ECHO_MSG} ""

do-install:
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} "${STD_BITS}" ${WWWDIR}
	@@for i in ${CI_CONF_FILES}; do \
		${INSTALL_DATA} ${WRKSRC}/$$i ${WWWDIR}/$$i.sample; \
	done
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
		${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
	@@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
	@@${ECHO_CMD} '@@exec ${FIND} ${WWWDIR} -type f -print0 | \
		${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
	@@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
	@@${ECHO_CMD} '@@exec ${FIND} ${WWWDIR} -type d -print0 | \
		${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}

post-install:
	@@for i in ${CI_CONF_FILES}; do \
		if [ ! -f ${WWWDIR}/$$i ]; then \
			${CP} -p ${WWWDIR}/$$i.sample ${WWWDIR}/$$i; \
		else \
			${ECHO_MSG} "===> Customized ${WWWDIR}/$$i has not been overwritten"; \
			if [ ! -z "$UPGRADE_TOOL" ]; then \
				${ECHO_MSG} "===> WARNING: You may have to manually merge changes to ${WWWDIR}/$$i.sample into ${WWWDIR}/$$i"; \
			fi; \
		fi; \
	done
.if ${PORT_OPTIONS:MAPACHE}
	@@if [ -d "${CONFDIR}" ]; then \
	  ${CP} ${WRKDIR}/${CONF} ${CONFDIR}/codeigniter.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 codeigniter.conf there!" ; \
	  ${ECHO_MSG} "" ; \
	  ${FALSE} ; \
	fi
.endif
.if ${PORT_OPTIONS:MDOCS}
	@@cd ${WRKSRC}/user_guide && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif

	@@${CAT} ${PKGMESSAGE}

.if ${CGI_EXT} == "-cgi"
	@@${ECHO_MSG}	""
	@@${ECHO_MSG}	"Your CodeIgniter 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.23
log
@SVN rev 305689 on 2012-10-10 21:49:02Z by rakuco

Update to 2.1.3.

PR:		ports/172571
Submitted by:	Bo-Yi Wu <appleboy.tw@@gmail.com> (maintainer)
Feature safe:	yes
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.22
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
@d9 1
a9 1
PORTVERSION=	2.1.2
@


1.21
log
@SVN rev 302489 on 2012-08-14 04:40:46Z by rm

- update to 2.1.2
- add some missing tabs while here

PR:		170591
Submitted by:	Bo-Yi Wu <appleboy.tw at gmail dot com> (maintainer)
@
text
@d83 1
a83 1
USE_APACHE=	20+
@


1.20
log
@- update to 2.1.1
- while here migrate to optionsNG

PR:	ports/169049
Submitted by:	maintainer, appleboy.tw@@gmail.com
@
text
@d9 1
a9 1
PORTVERSION=	2.1.1
d12 1
a12 1
	http://www.codeigniter.org.tw/download_files/
d28 2
a29 2
WRKSRC=	${WRKDIR}/${DISTNAME}
WWWDIR=	${PREFIX}/www/codeigniter
@


1.19
log
@- Update to 2.1.0

PR:		ports/162606
Submitted by:	Bo-Yi Wu <appleboy.tw@@gmail.com> (maintainer)
Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	2.1.0
d69 10
a78 8
OPTIONS=	APACHE "Configure for Apache-2.x" off \
	PROD "Install for production server (see: make confighelp)" Off \
	MSSQL "Install MSSQL support for PHP" Off \
	MYSQL "Install MySQL support for PHP" Off \
	MYSQLI "Install MySQLi support for PHP" Off \
	ODBC "Install ODBC support for PHP" Off \
	PGSQL "Install PostgreSQL support for PHP" Off \
	SQLITE "Install SQLite support for PHP" Off
d82 1
a82 1
.if defined(WITH_APACHE)
d110 1
a110 1
.if defined(WITH_PROD)
d116 1
a116 1
.if defined(WITH_MSSQL)
d120 1
a120 1
.if defined(WITH_MYSQL)
d124 1
a124 1
.if defined(WITH_MYSQLI)
d128 1
a128 1
.if defined(WITH_ODBC)
d132 1
a132 1
.if defined(WITH_PGSQL)
d136 1
a136 1
.if defined(WITH_SQLITE)
d140 1
a140 1
.if defined(NOPORTDOCS)
d190 1
a190 1
.if defined(WITH_APACHE)
d202 1
a202 1
.if !defined(NOPORTDOCS)
@


1.18
log
@- Update to 2.0.3 Release
- Change Source Control form hg to git

PR:		ports/159953
Submitted by:	Bo-Yi Wu <appleboy.tw@@gmail.com> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	2.0.3
PORTREVISION=	2
d42 1
@


1.17
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d10 1
a10 1
PORTREVISION=	1
d12 3
a14 3
MASTER_SITES=	https://bitbucket.org/ellislab/codeigniter-reactor/get/
PKGNAMESUFFIX=	-devel
DISTNAME=	13e8f9b4feba
d29 1
a29 1
WRKSRC=	${WRKDIR}/ellislab-codeigniter-reactor-${DISTNAME}
@


1.16
log
@- Renamed www/codeigniter-devel to www/codeigniter by updating to version
  2.0.3 here
- Added CONFLICTS for www/codeigniter17

Approved by:	appleboy.tw@@gmail.com (maintainer)
@
text
@d10 1
d81 1
a81 1
USE_APACHE=	2.0+
@


1.15
log
@- Updated to 1.7.3
- Removed Upload class patch file - now included in 1.7.3

Version 1.7.3 is a security maintenance release, including a
previously patched file Upload class, and a new security fix
to prevent possible directory traversal in certain circumstances.
There are no other significant changes.

PR:		ports/152878
Submitted by:	Bo-Yi Wu <appleboy dot tw at gmail dot com>
@
text
@d9 1
a9 1
PORTVERSION=	1.7.3
d11 3
a13 3
MASTER_SITES=	http://codeigniter.com/download_files/ \
		LOCAL/glarkin
DISTNAME=	CodeIgniter_${PORTVERSION}
d15 1
a15 1
MAINTAINER=	glarkin@@FreeBSD.org
d20 2
d27 6
a32 1
CI_CONF_DIR=	${CI_SYS_DIR}/application/config
a34 1
# a .sample copy for each.
d38 5
a42 1
		${CI_CONF_DIR}/hooks.php ${CI_CONF_DIR}/mimes.php \
d48 14
a61 11
		${CI_SYS_DIR}/application/controllers \
		${CI_SYS_DIR}/application/errors \
		${CI_SYS_DIR}/application/helpers \
		${CI_SYS_DIR}/application/hooks \
		${CI_SYS_DIR}/application/index.html \
		${CI_SYS_DIR}/application/language \
		${CI_SYS_DIR}/application/libraries \
		${CI_SYS_DIR}/application/models \
		${CI_SYS_DIR}/application/views \
		${CI_SYS_DIR}/cache \
		${CI_SYS_DIR}/codeigniter \
d66 1
a66 4
		${CI_SYS_DIR}/libraries \
		${CI_SYS_DIR}/logs \
		${CI_SYS_DIR}/plugins \
		${CI_SYS_DIR}/scaffolding
d69 7
a75 7
		PROD "Install for production server (see: make confighelp)" Off \
		MSSQL "Install MSSQL support for PHP" Off \
		MYSQL "Install MySQL support for PHP" Off \
		MYSQLI "Install MySQLi support for PHP" Off \
		ODBC "Install ODBC support for PHP" Off \
		PGSQL "Install PostgreSQL support for PHP" Off \
		SQLITE "Install SQLite support for PHP" Off
d200 1
a200 1
	@@cd ${WRKSRC}/user_guide/ && ${COPYTREE_SHARE} . ${DOCSDIR}
@


1.14
log
@Forced commit after repocopy.
@
text
@d9 1
a9 2
PORTVERSION=	1.7.2
PORTREVISION=	1
a150 3
post-patch:
	@@cd ${WRKSRC} && ${RM} system/libraries/Upload.php.orig

@


1.13
log
@- Incorporate vendor patch for file upload class vulnerability
- Bump PORTREVISION

Security:	http://codeigniter.com/news/codeigniter_1.7.2_security_patch/
Security:	0502c1cb-8f81-11df-a0bb-0050568452ac
@
text
@@


1.12
log
@PHP dropped support for Oracle8 client library.
@
text
@d10 1
d152 3
@


1.11
log
@- Updated to 1.7.2

PR:		ports/138848
Submitted by:	appleboy <appleboy.tw@@gmail.com>
Feature safe:	yes
@
text
@a62 1
		OCI8 "Install OCI8 support for PHP" Off \
a114 4
.if defined(WITH_OCI8)
USE_PHP+=	oci8
.endif

@


1.10
log
@- Update to 1.7.1

Security:	83574d5a-f828-11dd-9fdf-0050568452ac
Security:	http://codeigniter.com/bug_tracker/bug/6068/
@
text
@d9 1
a9 1
PORTVERSION=	1.7.1
a18 1
USE_DOS2UNIX=	yes
@


1.9
log
@- Updated to 1.7.0
- Added MASTER_SITES for redundancy
@
text
@d9 1
a9 1
PORTVERSION=	1.7.0
@


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

Approved by:	beech (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	1.6.3
d11 2
a12 1
MASTER_SITES=	http://codeigniter.com/download_files/
@


1.7
log
@- Update to 1.6.3
- Added informational messages about user-configurable files that
  may need merging after a port upgrade

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


1.6
log
@- Update to 1.6.2

PR:		123856
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.6.2
d175 5
d197 1
d199 1
@


1.5
log
@- Update to 1.6.1
- Found all of the CI files that could be modified by the user and
  install .sample versions of each
- Add an informational message when a user-editable config file is
  modified and the port is deinstalled (e.g. the file is preserved)
- Display different pkg-message depending on WITH_APACHE knob

PR:		ports/121358
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.6.1
d30 2
a31 1
		${CI_CONF_DIR}/config.php ${CI_CONF_DIR}/database.php \
@


1.4
log
@- Fix master_sites

PR:		ports/120153
Reported by:	pointyhat via pav
Approved by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.5.4
d18 1
a18 2

USE_APACHE=	2.0+
d24 32
a55 1
SUB_FILES=	pkg-message
d57 2
a58 1
OPTIONS=	PROD "Install for production server (see: make confighelp)" Off \
d67 4
a70 1
PLIST_SUB+=	CONFDIR=${CONFDIR_REL}
d72 1
d76 8
a83 1
.include <bsd.port.pre.mk>
d156 4
a159 1
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} "index.php system" ${WWWDIR}
d161 2
d164 2
d167 2
a168 2
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
		${WWWDIR}' >> ${TMPPLIST}
d171 6
d187 1
@


1.3
log
@- Update MASTER_SITES

PR:		119861
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@d11 1
a11 1
MASTER_SITES=	http://www.codeigniter.com/download_files/
@


1.2
log
@- Fix master_sites (changed)

Reported by:	pointyhat via pav
Approved by:	linimon (mentor)
@
text
@d11 1
a11 1
MASTER_SITES=	http://codeigniter.com/download_files/
@


1.1
log
@- New port codeigniter-1.5.4

- CodeIgniter is a powerful PHP framework with a very small
footprint, built for PHP coders who need a simple and elegant toolkit
to create full-featured web applications.

PR:		ports/119347
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
Approved by:	linimon (mentor)
@
text
@d11 1
a11 1
MASTER_SITES=	http://codeigniter.com/downloads/
@

