diff options
Diffstat (limited to 'www/cakephp13/Makefile')
-rw-r--r-- | www/cakephp13/Makefile | 199 |
1 files changed, 0 insertions, 199 deletions
diff --git a/www/cakephp13/Makefile b/www/cakephp13/Makefile deleted file mode 100644 index a91799f13dca..000000000000 --- a/www/cakephp13/Makefile +++ /dev/null @@ -1,199 +0,0 @@ -# Created by: Christoph Theis <theis@gmx.at> -# $FreeBSD$ - -PORTNAME= cakephp -PORTVERSION= 1.3.20 -CATEGORIES= www -PKGNAMESUFFIX= 13 - -MAINTAINER= theis@gmx.at -COMMENT= Framework for developing PHP web applications - -LICENSE= MIT - -DEPRECATED= PHP 5.4 EOL reached -EXPIRATION_DATE= 2016-01-15 - -USE_GITHUB= yes - -PORTDOCS= README - -CONFLICTS= cakephp-1[12]-* cakephp-2?-.* cakephp-2.?.* - -NO_BUILD= yes -NO_ARCH= yes -USES= gettext -USE_PHP= session -WANT_PHP_WEB= yes -DEFAULT_VERSIONS+= php=5 - -CAKE_CONF_FILES= \ - app/config/acl.ini.php \ - app/config/bootstrap.php \ - app/config/core.php \ - app/config/database.php \ - app/config/routes.php -CAKE_CONSOLE= cake/console/cake - -OPTIONS_DEFINE= PROD AP MYSQL PGSQL SQLITE APC MEMCACHE DOCS -PROD_DESC= Install for production server (make confighelp) -APC_DESC= APC caching engine -MEMCACHE_DESC= Memcached caching engine client - -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:MAP} -SUB_FILES= pkg-message -USE_APACHE_RUN= 22+ -PKGMESSAGE= pkg-message -APDEP= -.else -SUB_FILES= pkg-message-no-apache -PKGMESSAGE= pkg-message-no-apache -APDEP= "@comment " -.endif - -.if ${PORT_OPTIONS:MPROD} -PROD= production -HTACCESS= "" -.else -PROD= development -EXTRA_PATCHES= ${FILESDIR}/extra-patch-app__config__core.php -HTACCESS= "@comment " -.endif - -CONF= cakephp-${PROD}${CGI_EXT}.conf -SUB_FILES+= ${CONF} - -PLIST_SUB+= CONFDIR=${CONFDIR_REL} ECHO_MSG=${ECHO_MSG} \ - HTACCESS=${HTACCESS} APDEP=${APDEP} \ - WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} - -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 - -.if ${PORT_OPTIONS:MAPC} -USE_PHP+= apc -.endif - -.if ${PORT_OPTIONS:MMEMCACHE} -USE_PHP+= memcache -.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} "" - -post-extract: - @${FIND} ${WRKSRC} -name ._\* -delete - -post-patch: - @${RM} -f ${WRKSRC}/cake/console/cake.orig \ - ${WRKSRC}/app/config/core.php.orig - -# Rename config files so we don't overwrite those in an existing installation - @for i in ${CAKE_CONF_FILES}; do \ - if [ -f ${WRKSRC}/$$i ]; then \ - ${MV} ${WRKSRC}/$$i ${WRKSRC}/$$i.sample; \ - fi \ - done - ${MV} ${WRKSRC}/app/config/database.php.default \ - ${WRKSRC}/app/config/database.php.sample - -do-install: - @cd ${WRKSRC} && ${COPYTREE_SHARE} \ - ".htaccess app cake index.php vendors" ${STAGEDIR}${WWWDIR} - -.if ! ${PORT_OPTIONS:MPROD} -# If installed in development mode, get rid of .htaccess files, -# as noted by: -# http://book.cakephp.org/view/42/The-Configuration-Class#CakePHP-Core-Configuration-Variables-44 - @${FIND} ${STAGEDIR}${WWWDIR} -type f -name .htaccess -exec ${RM} {} \; -.endif - -# Get rid of the empty placeholder files - @${FIND} ${STAGEDIR}${WWWDIR} -type f -name empty -size 0 -exec ${RM} {} \; - - @${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 - @${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 - -# Fix the permissions of the Cake console script - @${CHMOD} 755 ${STAGEDIR}${WWWDIR}/${CAKE_CONSOLE} - -post-install: - @for i in ${CAKE_CONF_FILES}; do \ - if [ ! -f ${WWWDIR}/$$i -a -f ${WRKSRC}/$$i.default ]; then \ - ${INSTALL_DATA} ${WRKSRC}/$$i.default ${STAGEDIR}${WWWDIR}/$$i; \ - fi \ - done -.if ${PORT_OPTIONS:MAP} - @${MKDIR} ${STAGEDIR}${CONFDIR} - @if [ -d "${STAGEDIR}${CONFDIR}" ]; then \ - ${CP} ${WRKDIR}/${CONF} ${STAGEDIR}${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 -.endif - @${INSTALL} -d ${STAGEDIR}${DOCSDIR} - @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} -.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> |