51aaf15054
upstream changes ---------------- Dotclear 2.23.1 - 2022-08-13 =========================================================== * Fix: Adding a new comment was buggy (front/back) Dotclear 2.23 - 2022-08-13 =========================================================== * PHP 7.4+ is required, PHP 8.0/8.1 compliance * Remove Iconset management * Admin UI: Harmonize font size on different support (laptop, tablet, mobile) * Admin UX: Group more logically buttons on CKEditor toolbar * Core: New constant DC_DEFAULT_THEME, set to 'berlin' * Core: Use predefined constants for post statuses (dcBlog::POST_*) * Core: Use predefined constants for comment statuses (dcBlog::COMMENT_*) * Core: Deprecated global $core (or $GLOBALS['core']), use dcCore::app() instead * Core: Deprecated global $_ctx, use dcCore::app()->ctx instead * Core: Deprecated global $_lang, use dcCore::app()->lang instead * Core: Deprecated global $mod_files, use dcCore::app()->cache['mod_files'] instead * Core: Deprecated global $mod_ts, use dcCore::app()->cache['mod_ts'] instead * Core: Deprecated global $_menu, use dcCore::app()->menu instead * Core: Deprecated global $__resources, use dcCore::app()->resources instead * Core: REST server now accepts JSON format (experimental) * Fix: Use relative URL for attachments as far as possible * Fix: Remove select hiding mechanism when help is displayed * Fix: Loading of modules (plugins/themes) in safe mode * Fix: Message position on Quick entry submit (dashboard) * Fix: Select appearance on Safari (webkit engine) * Lib: Update CKEditor to 4.19.1 * Lib: Update Codemirror to 5.65.7 * Various bugs, a11y concerns and typos fixed * Some locales and cosmetic adjustments * Warning: Internet Explorer is not more officially supported (may still work weirdly)
97 lines
4.2 KiB
Makefile
97 lines
4.2 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2022/09/19 03:34:15 triaxx Exp $
|
|
|
|
DISTNAME= dotclear-2.23.1
|
|
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
|
|
CATEGORIES= www
|
|
MASTER_SITES= https://download.dotclear.org/latest/ \
|
|
https://download.dotclear.org/attic/
|
|
|
|
MAINTAINER= triaxx@NetBSD.org
|
|
HOMEPAGE= https://dotclear.org/
|
|
COMMENT= Open-source web publising software
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=${PHP_BASE_VERS}:../../converters/php-mbstring
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-iconv>=${PHP_BASE_VERS}:../../converters/php-iconv
|
|
.if ${PKG_PHP_MAJOR_VERS} < 8
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-json>=${PHP_BASE_VERS}:../../textproc/php-json
|
|
.endif
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=${PHP_BASE_VERS}:../../archivers/php-zlib
|
|
|
|
NO_BUILD= yes
|
|
USE_TOOLS+= find pax sed
|
|
WRKSRC= ${WRKDIR}/dotclear
|
|
BUILD_DEFS+= PKG_SYSCONFBASE VARBASE
|
|
|
|
.include "options.mk"
|
|
|
|
PHP_VERSIONS_ACCEPTED= 81 80 74
|
|
|
|
PKG_SYSCONFSUBDIR= dotclear
|
|
|
|
DOTCLEAR_USER?= dotclear
|
|
DOTCLEAR_GROUP?= dotclear
|
|
DOTCLEAR_SHAREDIR?= ${PREFIX}/share/dotclear
|
|
DOTCLEAR_CACHEDIR?= ${VARBASE}/cache/dotclear
|
|
DOTCLEAR_DBDIR?= ${VARBASE}/db/dotclear
|
|
DOTCLEAR_LOGDIR?= ${VARBASE}/log/dotclear
|
|
DOTCLEAR_PUBDIR?= ${DOTCLEAR_DBDIR}/public
|
|
DOTCLEAR_PLUGDIR?= ${DOTCLEAR_DBDIR}/plugins
|
|
|
|
REQD_FILES_PERMS+= ${EGDIR}/config.php.in ${PKG_SYSCONFDIR}/config.php.in \
|
|
${DOTCLEAR_USER} ${DOTCLEAR_GROUP} 644
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR} ${DOTCLEAR_USER} ${DOTCLEAR_GROUP} 770
|
|
OWN_DIRS_PERMS+= ${DOTCLEAR_CACHEDIR} ${DOTCLEAR_USER} ${DOTCLEAR_GROUP} 775
|
|
OWN_DIRS_PERMS+= ${DOTCLEAR_DBDIR} ${DOTCLEAR_USER} ${DOTCLEAR_GROUP} 775
|
|
OWN_DIRS_PERMS+= ${DOTCLEAR_PUBDIR} ${DOTCLEAR_USER} ${DOTCLEAR_GROUP} 775
|
|
OWN_DIRS_PERMS+= ${DOTCLEAR_PLUGDIR} ${DOTCLEAR_USER} ${DOTCLEAR_GROUP} 775
|
|
OWN_DIRS_PERMS+= ${DOTCLEAR_LOGDIR} ${DOTCLEAR_USER} ${DOTCLEAR_GROUP} 775
|
|
|
|
PKG_GROUPS+= ${DOTCLEAR_GROUP}
|
|
PKG_USERS+= ${DOTCLEAR_USER}:${DOTCLEAR_GROUP}
|
|
PKG_GECOS.${DOTCLEAR_USER}= Dotclear user
|
|
|
|
EGDIR= ${PREFIX}/share/examples/dotclear
|
|
|
|
INSTALLATION_DIRS= ${DOTCLEAR_SHAREDIR} ${EGDIR}
|
|
|
|
SUBST_CLASSES+= cfg
|
|
SUBST_STAGE.cfg= do-configure
|
|
SUBST_MESSAGE.cfg= Adapting files to use pkgsrc directories.
|
|
SUBST_FILES.cfg= admin/install/index.php admin/install/wizard.php
|
|
SUBST_FILES.cfg+= inc/config.php.in inc/core/class.dc.core.php
|
|
SUBST_FILES.cfg+= inc/load_plugin_file.php inc/prepend.php
|
|
SUBST_VARS.cfg= PKG_SYSCONFDIR DOTCLEAR_SHAREDIR DOTCLEAR_CACHEDIR DOTCLEAR_DBDIR
|
|
SUBST_VARS.cfg+= DOTCLEAR_PUBDIR DOTCLEAR_PLUGDIR DOTCLEAR_LOGDIR
|
|
|
|
pre-configure:
|
|
${SED} -e 's|@DOTCLEAR_SHAREDIR@|${DOTCLEAR_SHAREDIR}|g' \
|
|
-e 's|@DOTCLEAR_PUBDIR@|${DOTCLEAR_PUBDIR}|g' ${FILESDIR}/apache24.conf > ${WRKSRC}/apache24.conf
|
|
${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/initdb-mysql.sh > ${WRKSRC}/initdb-mysql.sh
|
|
${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/initdb-pgsql.sh > ${WRKSRC}/initdb-pgsql.sh
|
|
${SED} -e 's|@DOTCLEAR_SHAREDIR@|${DOTCLEAR_SHAREDIR}|g' \
|
|
-e 's|@DOTCLEAR_PUBDIR@|${DOTCLEAR_PUBDIR}|g' \
|
|
-e 's|@VARBASE@|${VARBASE}|g' ${FILESDIR}/lighttpd.conf > ${WRKSRC}/lighttpd.conf
|
|
${SED} -e 's|@DOTCLEAR_SHAREDIR@|${DOTCLEAR_SHAREDIR}|g' \
|
|
-e 's|@DOTCLEAR_PUBDIR@|${DOTCLEAR_PUBDIR}|g' \
|
|
-e 's|@VARBASE@|${VARBASE}|g' ${FILESDIR}/nginx.conf > ${WRKSRC}/nginx.conf
|
|
${SED} -e 's|@VARBASE@|${VARBASE}|g' ${FILESDIR}/php-fpm.conf > ${WRKSRC}/php-fpm.conf
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/index.php ${DESTDIR}${DOTCLEAR_SHAREDIR}/index.php
|
|
.for d in admin inc locales plugins themes
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${DOTCLEAR_SHAREDIR}/${d}
|
|
cd ${WRKSRC}/${d} && ${FIND} . -type f \! -name '*.orig' -print | \
|
|
${PAX} -rw ${DESTDIR}${DOTCLEAR_SHAREDIR}/${d}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/inc/config.php.in ${DESTDIR}${EGDIR}/config.php.in
|
|
${RM} -f ${DESTDIR}${DOTCLEAR_SHAREDIR}/inc/config.php.in
|
|
${INSTALL_DATA} ${WRKSRC}/apache24.conf ${DESTDIR}${EGDIR}/apache24.conf
|
|
${INSTALL_DATA} ${WRKSRC}/initdb-mysql.sh ${DESTDIR}${EGDIR}/initdb-mysql.sh
|
|
${INSTALL_DATA} ${WRKSRC}/initdb-pgsql.sh ${DESTDIR}${EGDIR}/initdb-pgsql.sh
|
|
${INSTALL_DATA} ${WRKSRC}/lighttpd.conf ${DESTDIR}${EGDIR}/lighttpd.conf
|
|
${INSTALL_DATA} ${WRKSRC}/nginx.conf ${DESTDIR}${EGDIR}/nginx.conf
|
|
${INSTALL_DATA} ${WRKSRC}/php-fpm.conf ${DESTDIR}${EGDIR}/php-fpm.conf
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|