cb3f3e38b3
Version 2.11.10 (2013-03-21) ---------------------------- ### Fixed Cast varchar date fields to int when selecting from the database (see #5503). ### Fixed Only unset POST variables if `Widget::submitInput()` returns `true` (see #5474). ### Fixed Strictly compare values when determining whether to save or not (see #5471). ### Updated Updated TinyMCE to version 3.5.8 (see #5329). ### Fixed Correctly show the "invalid date and time" error message (see #5480). ### Fixed Correctly split the words when adding to the search index (see #5363). ### Fixed Correctly load TinyMCE in IE7 and IE8 (see #5346). ### Fixed Send the correct cache headers in "client cache only" mode (see #5358). ### Fixed Remove the session of deleted or disabled users (see #5353). ### Fixed Correctly set the cookie paths (see #5339).
104 lines
3.5 KiB
Makefile
104 lines
3.5 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2013/04/02 15:29:00 taca Exp $
|
|
#
|
|
|
|
DISTNAME= contao-${CT_VERSION}
|
|
PKGNAME= contao${CT_VER}-${CT_PKGVER}
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=contao/}
|
|
DIST_SUBDIR= ${CT_DIST_SUBDIR}
|
|
|
|
MAINTAINER= taca@NetBSD.org
|
|
HOMEPAGE= http://www.contao.org/
|
|
COMMENT= Contao Open Source CMS ${CT_VERBASE}
|
|
LICENSE= gnu-lgpl-v3
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-dom>=5.2.0:../../textproc/php-dom
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.2.0:../../graphics/php-gd
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.2.0:../../converters/php-mbstring
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,mysqli}>=5.2.0:../../databases/php-mysqli
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.2.0:../../security/php-mcrypt
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.2.0:../../net/php-soap
|
|
|
|
CT_VERS= 211
|
|
USE_TOOLS= pax
|
|
NO_BUILD= yes
|
|
|
|
EG_CONFIG= agents.php codeMirror.php config.php countries.php \
|
|
languages.php tcpdf.php timezones.php tinyFlash.php \
|
|
tinyMCE.php tinyNews.php
|
|
EG_DATA= ${WWW_EG_FILES} system/config tl_files
|
|
EG_TEMPLATES= tinymce.css tiny_templates/index.html
|
|
WWW_EG_FILES= robots.txt
|
|
RESTRICT_DIRS= system/html system/logs system/scripts system/tmp \
|
|
templates tl_files
|
|
|
|
CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf
|
|
CONF_FILES+= ${CT_EGDIR}/htaccess.default ${CT_WEBDIR}/.htaccess
|
|
|
|
.for f in ${EG_CONFIG}
|
|
CONF_FILES+= ${CT_EGDIR}/system/config/${f} ${CT_WEBDIR}/system/config/${f}
|
|
.endfor
|
|
|
|
MAKE_DIRS+= ${CT_WEBDIR}/tl_files/tiny_templates
|
|
|
|
.for f in ${EG_TEMPLATES}
|
|
REQD_FILES+= ${CT_EGDIR}/tl_files/${f} ${CT_WEBDIR}/tl_files/${f}
|
|
.endfor
|
|
|
|
.for f in ${WWW_EG_FILES}
|
|
REQD_FILES+= ${CT_EGDIR}/${f} ${CT_WEBDIR}/${f}
|
|
.endfor
|
|
|
|
.for d in ${RESTRICT_DIRS}
|
|
OWN_DIRS_PERMS+= ${CT_WEBDIR}/${d} ${APACHE_USER} ${APACHE_GROUP} 0770
|
|
.endfor
|
|
|
|
SUBST_CLASSES+= conf
|
|
SUBST_FILES.conf+= ${WRKDIR}/contao.conf
|
|
SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX:Q}|g'
|
|
SUBST_SED.conf+= -e 's|@CT_WEBDIR@|${CT_WEBDIR:Q}|g'
|
|
SUBST_STAGE.conf= post-configure
|
|
|
|
WWW_FILES= CHANGELOG.md GPL.txt LGPL.txt README.md \
|
|
contao cron.php index.php plugins share.php templates \
|
|
typolight
|
|
WWW_SYSFILES= config/.htaccess constants.php contao.css drivers \
|
|
functions.php html initialize.php interface.php libraries \
|
|
logs/.htaccess mbstring.php modules scripts/index.html \
|
|
themes tmp/.htaccess utf8_lookup.php
|
|
|
|
INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config
|
|
|
|
PKG_GROUPS_VARS+= APACHE_GROUP
|
|
PKG_USERS_VARS+= APACHE_USER
|
|
|
|
pre-configure:
|
|
${RM} -f ${WRKSRC}/.gitignore ${WRKSRC}/system/tmp/*.txt
|
|
${CP} ${FILESDIR}/contao.conf ${WRKDIR}
|
|
|
|
pre-install:
|
|
cd ${WRKSRC}; ${RM} -rf music_academy.css \
|
|
templates/music_academy.sql tl_files/music_academy
|
|
${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \;
|
|
${FIND} ${WRKSRC}/plugins/tinyMCE -type f -exec ${CHMOD} -x {} \;
|
|
|
|
do-install:
|
|
cd ${WRKSRC}; pax -rw ${WWW_FILES} ${DESTDIR}${PREFIX}/${CT_WEBDIR}
|
|
cd ${WRKSRC}/system; \
|
|
pax -rw ${WWW_SYSFILES} \
|
|
${DESTDIR}${PREFIX}/${CT_WEBDIR}/system; \
|
|
${INSTALL_DATA} config/.htaccess \
|
|
${DESTDIR}${PREFIX}/${CT_WEBDIR}/system/config
|
|
${INSTALL_DATA} ${WRKSRC}/templates/.htaccess \
|
|
${DESTDIR}${PREFIX}/${CT_WEBDIR}/templates
|
|
cd ${WRKSRC}; pax -rw ${EG_DATA} ${DESTDIR}${PREFIX}/${CT_EGDIR}
|
|
rm -f ${DESTDIR}${PREFIX}/${CT_EGDIR}/system/config/.htaccess
|
|
${INSTALL_DATA} ${WRKSRC}/.htaccess.default \
|
|
${DESTDIR}${PREFIX}/${CT_EGDIR}/htaccess.default
|
|
${INSTALL_DATA} ${WRKDIR}/contao.conf ${DESTDIR}${PREFIX}/${CT_EGDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/README \
|
|
${DESTDIR}${PREFIX}/${CT_DOCDIR}
|
|
|
|
.include "../../www/contao/Makefile.common"
|
|
.include "../../lang/php/phpversion.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|