pkgsrc/www/contao30/Makefile
taca f0f514d442 Update contao30 to 3.0.6.
pkgsrc change: stop using DIST_SUBDIR.

Version 3.0.6 (2013-03-21)
--------------------------

### Fixed
Do not add links to news, events, FAQs or newsletters to the sitemap if the
target page has not been published (see #5520).

### Fixed
Include the local configuration file twice, once before and once after the
module configuration files are parsed (see #5490). This will make settings like
the debug or safe mode work properly.

### Fixed
Correctly set the RSS feed self-reference (see #5478).

### Fixed
Remove `­` and ` ` from RSS and Atom feeds (see #5473).

### Fixed
Do not remove the grid column margin on mobile devices (see #5475).

### Fixed
Store the relative path to the installation in the `pathconfig.php` (see #5339).

### Fixed
Correctly send the comment moderation mails (see #5443).

### Fixed
Correctly create the user home directory upon registration (see #5437).

### Improved
Made the `.htaccess` files Apache 2.4 ready (see #5032).

### Fixed
Also truncate opened files in `File::truncate()` (see #5459).

### Fixed
Added the "allowTransparency" attribute to the mediabox script (see #5077).

### Fixed
The submit button label was not shown in the `FormSubmit` widget (see #5434).

### Fixed
Show invisible elements in the back end preview (see #5449).

### Fixed
Allow to create forward pages without a specific target (see #5453).

### Fixed
Updated the TinyMCE typolinks plugin (see #5329).

### Fixed
Correctly initialize the user's pagemounts (see #5454).

### Fixed
Support loading static JavaScripts in the `config.php` files (see #4890).

### Fixed
Show all articles if the article list module is in the same column (see #5373).

### Fixed
Do not show `mail_` templates from theme folders (see #5379).

### Fixed
Consider only published events when finding the calendar boundaries and only
render the previous and next links if there are events (see #5426).

### Fixed
Do not override the header and footer height in the layout builder (see #5368).

### Fixed
Correctly reset fallback, default and "do not copy" fields (see #5252).
2013-04-02 15:34:35 +00:00

101 lines
3.3 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2013/04/02 15:34:35 taca Exp $
#
DISTNAME= contao-${CT_VERSION}
PKGNAME= contao${CT_VER}-${CT_PKGVER}
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=contao/}
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"