pkgsrc/www/contao30/Makefile
taca 1ee3ee26a8 Update contao30 to 3.0.4.
This relase contains fix for CVE-2012-6112(TinyMCE), too.

Version 3.0.4 (2013-02-14)
--------------------------

### Fixed
Correctly split the words when adding to the search index (see #5363).

### Fixed
If an eagerly loaded relation does not exist, return `null` instead of an empty
model in `Model::getRelated()` (see #5356).

### Fixed
Throw an exception if the file system and the database are out of sync and
show a meaningful error message (see #5101).

### Fixed
Return an associative array in `Model_Collection::fetchEach()` if the requested
field is **not** `id` (see #5134).

### Fixed
Make eagerly loaded "pageTree" fields mandatory again (see #4866).

### Fixed
Do not use forward pages as upper page in the book navigation (see #5074).

### Fixed
Correctly show the "empty news list" note (see #5304).

### Fixed
Correctly sort values by an external order field (see #5322).

### Fixed
Define the login status constants in the back end (see #4099, #5279).

### Fixed
Make sure the drag'n'drop hints do not overlay the field labels (see #5338).

### Fixed
Apply the color picker to single fields as well (see #5240).

### Fixed
Correctly close the SimpleModal overlay with the escape key (see #5297).

### Updated
Update TinyMCE to version 3.5.8 (see #5273).

### Fixed
Correctly check for nested arrays in `Widget::isValidOption()` (see #5328).

### Fixed
Preserve the order of multi source fields when exporting a theme (see #5237).

### Fixed
Also check whether the target exists when creating new folders (see #5260).

### Fixed
Load the core `autoload.php` files first (see #5261).

### Fixed
Support `null` as column default value in the DCA (see #5252).

### New
Added the `$blnDoNotCreate` option to the `Files` class, which makes the class
write to a temporary file first and then move it to its destination in one
atomic operation. This fixes some cache issues (see #5307).

### Fixed
Handle `@` blocks when importing style sheets (see #5250).

### Fixed
Show the newsletter list even if there is no jumpTo page configured in the
channel and show the enclosures in the newsletter reader (see #5233).

### Fixed
Added an option to load model relations uncached (see #5248, #5102). Also fixed
the `array_merge()` order so the default options can be overriden.

### Updated
Updated SimplePie to version 1.3.1 (see #5207).

### Updated
Updated SwiftMailer to version 4.3.0 (see #5263).

### Fixed
The jQuery accordion script did not work with minified markup (see #5245).

### Fixed
Removed the "spaceToUnderscore" option from all alias fields (see #5266).

### Fixed
The media content element now supports .ogg files (see #5282).

### Fixed
Do not rewrite requests for .mp3, .mp4, .webm or .ogv files (see #5258, #5284).

### Fixed
Correctly determin the last run of the command scheduler (see #5278).

### Fixed
Make the jQuery accordion behave like the MooTools version (see #5251).

### Fixed
Added support for more advanced media queries (see #5236).

### Fixed
Added the missing `UserGroupModel` class (see #5218).

### Fixed
Handle the case that `glob()` returns `false` (see #5226).

### Fixed
The table sorter did not work if jQuery and MooTools were active (see #5228).

### Fixed
Copy all content elements if pages are duplicated with childs (see #5241).

### Fixed
Added lazy template loading for newsletter mail templates.
2013-02-15 15:42:15 +00:00

102 lines
3.3 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2013/02/15 15:42:16 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_VERSION}
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= 30
USE_TOOLS= bash pax
NO_BUILD= yes
EG_CONFIG= agents.php codeMirror.php constants.php countries.php \
default.php languages.php tcpdf.php timezones.php \
tinyFlash.php tinyMCE.php tinyNews.php
EG_DATA= ${WWW_EG_FILES} system/config files
EG_TEMPLATES= tinymce.css tiny_templates/index.html
WWW_EG_FILES= robots.txt
RESTRICT_DIRS= system/cache system/logs system/tmp templates 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}/files/tiny_templates
REPLACE_BASH= system/bin/minify
.for f in ${EG_TEMPLATES}
REQD_FILES+= ${CT_EGDIR}/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
SUBST_CLASSES+= php
SUBST_FILES.php+= ${WRKSRC}/system/bin/transifex
SUBST_SED.php+= -e "s|\#!/.*php|\#!${PREFIX}/bin/php|"
SUBST_STAGE.php= post-configure
WWW_FILES= .gitignore README.md assets contao index.php share templates
WWW_SYSFILES= .htaccess bin cache/.htaccess cron docs helper \
initialize.php logs/.htaccess modules themes tmp/.htaccess \
vendor
INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config
PKG_GROUPS_VARS+= APACHE_GROUP
PKG_USERS_VARS+= APACHE_USER
pre-configure:
cd ${WRKSRC} && ${RM} -f assets/css/*.css
${CP} ${FILESDIR}/contao.conf ${WRKDIR}
pre-install:
cd ${WRKSRC}; ${RM} -fr files/music_academy templates/music_academy.sql
${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \;
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} ${WRKSRC}/templates/.htaccess \
# ${DESTDIR}${PREFIX}/${CT_WEBDIR}/templates
cd ${WRKSRC}; pax -rw ${EG_DATA} ${DESTDIR}${PREFIX}/${CT_EGDIR}
${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"