pkgsrc/devel/mantis/Makefile
ryoon 0e40f931e9 Update to 2.4.1
* This version works with PHP 7.1.5

Changelog:
2.4.1:
0022428: [markdown] CSV and Excel exports with markdown on (vboctor)
0022906: [security] CVE-2017-7620: Open redirection vulnerability in /login_page.php (dregad)
0022909: [security] CVE-2017-7620: CSRF - Arbitrary Permalink Injection (dregad)
0022867: [markdown] Markdown formatting is broken for notes column on View Issues page (vboctor)

2.4.0:
0021558: [ui] log destination for page produces messed output (syncguru)
0022665: [documentation] Wrong documentation of option bug_resolution_fixed_threshold (atrol)
0022689: [bugtracker] HTTP_X_FORWARDED_PROTO is not honored when loading Gravatar (vboctor)
0022744: [signup] Signup is not working on mantisbt.org/bugs (vboctor)
0022740: [performance] Allowed memory size of 268435456 bytes exhausted (vboctor)
0004235: [authentication] Support Generic Authentication through Plug-ins (vboctor)
0022140: [administration] Getting error dialog when reporting issues and file upload is disabled (cproensa)
0022635: [time tracking] Empty notes with time tracking show as empty notes for users that can't view time tracking (vboctor)
0022673: [attachments] Dropzone uploads files when submitting other forms (cproensa)
0022762: [api rest] Bug in error handling when user doesn't have access level to handle issue (vboctor)
2017-05-21 07:16:49 +00:00

74 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.50 2017/05/21 07:16:49 ryoon Exp $
DISTNAME= mantisbt-2.4.1
PKGNAME= ${DISTNAME:S/mantisbt/mantis/}
CATEGORIES= devel www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mantisbt/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mantisbt.org/
COMMENT= PHP/MySQL/web based bugtracking system
LICENSE= gnu-gpl-v2
#PHP_VERSIONS_ACCEPTED= 56
DEPENDS+= ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json
NO_BUILD= YES
USE_TOOLS+= bash:run pax
APACHE_USER?= www
BUILD_DEFS+= APACHE_USER
PKG_USERS_VARS+= APACHE_USER
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
MANTIS_HOME= ${PREFIX}/share/mantis
EGDIR= ${PREFIX}/share/examples/mantis
CONF_FILES+= ${EGDIR}/mantis.conf ${PKG_SYSCONFDIR}/mantis.conf
CONF_FILES_PERMS+= ${EGDIR}/config_inc.php \
${MANTIS_HOME}/config/config_inc.php \
${APACHE_USER} ${SHAREGRP} 0400
MANTIS_EG= config_inc.php mantis.conf mantis_offline.php.sample
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-install
SUBST_FILES.conf= mantis.conf
SUBST_SED.conf= -e "s|@MANTIS_HOME@|${MANTIS_HOME}|g"
SUBST_MESSAGE.conf= Fixing configuration files.
REPLACE_BASH+= scripts/travis_before_script.sh
REPLACE_INTERPRETER+= php
REPLACE.php.old= /usr/bin/php
REPLACE.php.new= ${PREFIX}/bin/php
REPLACE_FILES.php= scripts/*.php
INSTALLATION_DIRS+= share/doc/mantis ${EGDIR} ${MANTIS_HOME}
.include "options.mk"
post-extract:
${CP} ${FILESDIR}/mantis.conf ${WRKSRC}
do-install:
cd ${WRKSRC}/doc && \
pax -rwpppm en-US ${DESTDIR}${PREFIX}/share/doc/mantis
${MV} ${WRKSRC}/config/config_inc.php.sample \
${WRKSRC}/config_inc.php
.for f in ${MANTIS_EG}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EGDIR}
${RM} ${WRKSRC}/${f}
.endfor
cd ${WRKSRC} && ${FIND} . -name .cvsignore -print | ${XARGS} ${RM} -f
cd ${WRKSRC} && pax -rwpppm . ${DESTDIR}${MANTIS_HOME}
cd ${DESTDIR}${MANTIS_HOME} && \
${FIND} . -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"