pkgsrc/devel/bugzilla/Makefile
mef 5dc53c472d Update devel/bugzilla from 2.22.7 to 5.0.3
-------------------------------------
- please note devel/bugzilla3 has now 3.6.8
- Below is a Release note for 5.0.1 to 5.0.3 from:
  https://www.bugzilla.org/releases/5.0.3/release-notes.html
-------------------------------------
Bugzilla 5.0.3 Release Notes
  * Introduction
  * Updates in this 5.0.x Release
    ..
     (original has more sections, but omitted, see above URL for more info)

Introduction

Welcome to Bugzilla 5.0! It has been slightly over two years since we
released Bugzilla 4.4 in May of 2013. This new major release comes with many
new features and improvements to WebServices and performance.

If you're upgrading, make sure to read Notes On Upgrading From a Previous
Version. If you are upgrading from a release before 4.4, make sure to read
the release notes for all the previous versions in between your version and
this one, particularly the Upgrading section of each version's release notes.

Updates in this 5.0.x Release

5.0.3

This release fixes one security issue. See the Security Advisory for details.

This release also contains the following bug fixes:
  * A regression in Bugzilla 5.0.2 caused whine.pl to be unable to send
    emails due to a missing subroutine. (Bug 1235395)
  * The Encode module changed the way it encodes strings, causing email
    addresses in emails sent by Bugzilla to be encoded, preventing emails
    from being correctly delivered to recipients. We now encode email headers
    correctly. (Bug 1246228)
  * Fix additional taint issues with Strawberry Perl. (Bug 987742 and bug
    1089448)
  * When exporting a buglist as a CSV file, fields starting with either "=",
    "+", "-" or "@" are preceded by a space to not trigger formula execution
    in Excel. (Bug 1259881)
  * An extension which allows user-controlled data to be used as a link in
    tabs could trigger XSS if the data is not correctly sanitized. Bugzilla
    no longer relies on the extension to do the sanity check. A vanilla
    installation is not affected as no tab is user-controlled. (Bug 1250114)
    * Extensions can now easily override the favicon used for the Bugzilla
    website. (Bug 1250264)

5.0.2
This release fixes two security issues. See the Security Advisory for
details.

This release also contains the following bug fixes:

  * mod_perl now works correctly with mod_access_compat turned off on Apache
    2.4. To regenerate the .htaccess files, you must first delete all
    existing ones in subdirectories:

    find . -mindepth 2 -name .htaccess -exec rm -f {} \;

    You must then run checksetup.pl again to recreate them with the correct
    syntax. (Bug 1223790)
  * Emails sent by Bugzilla are now correctly encoded as UTF-8. (Bug 714724)
  * Strawberry Perl is now fully supported on Windows. (Bug 1089448 and bug
    987742)
  * The XML-RPC API now works with IIS on Windows. (Bug 708252)
  * Some queries should now be faster on PostgreSQL. (Bug 1184431)

5.0.1
This release fixes one security issue. See the Security Advisory for details.

This release also contains the following bug fixes:

  * Users whose login name is not an email address could not log in on
    installations which use LDAP to authenticate users. (Bug 1179160)

  * If a mandatory custom field was hidden, it was not possible to create a
    new bug or to edit existing ones. (Bug 1183398 and bug 1196969)

  * A user editing his login name to point to a non-existent email address
    could cause Bugzilla to stop working, causing a denial of service. (Bug
    1194987)
  * Emails generated during a transaction made PostgreSQL stop working. (Bug
    1186700)
  * Bugs containing a comment with a reference to a bug ID larger than 2^31
    could not be displayed anymore using PostgreSQL. (Bug 1191937)
  * The date picker in the "Time Summary" page was broken. (Bug 1181649)
  * If Test::Taint or any other Perl module required to use the JSON-RPC API
    was not installed or was too old, the UI to tag comments was displayed
    anyway, you could tag comments, but tags were not persistent (they were
    lost on page reload). Now the UI to tag comments is not displayed at all
    until the missing Perl modules are installed and up-to-date. (Bug
    1183227)
  * Custom fields of type INTEGER now accept negative integers. (Bug 1198659)
  * On Windows, the checksetup.pl installation script no longer asks for a
    SMTP server. It can be set after the installation is complete. (Bug
    1191255)
2017-03-17 16:26:30 +00:00

151 lines
6 KiB
Makefile

# $NetBSD: Makefile,v 1.45 2017/03/17 16:26:30 mef Exp $
DISTNAME= bugzilla-5.0.3
CATEGORIES= www devel
MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=webtools/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.bugzilla.org/
COMMENT= Web based bug tracking system
LICENSE= mpl-2.0
# mod_perl
DEPENDS+= ap2[0-9]-perl-[0-9]*:../../www/ap2-perl
DEPENDS+= p5-CGI-[0-9]*:../../www/p5-CGI
DEPENDS+= p5-Digest-SHA-[0-9]*:../../security/p5-Digest-SHA
DEPENDS+= p5-TimeDate-[0-9]*:../../time/p5-TimeDate
DEPENDS+= p5-DateTime-[0-9]*:../../time/p5-DateTime
DEPENDS+= p5-DateTime-TimeZone-[0-9]*:../../time/p5-DateTime-TimeZone
DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI
DEPENDS+= p5-Template-Toolkit-[0-9]*:../../www/p5-Template-Toolkit
DEPENDS+= p5-Email-Sender-[0-9]*:../../mail/p5-Email-Sender
DEPENDS+= p5-Email-MIME-[0-9]*:../../mail/p5-Email-MIME
DEPENDS+= p5-URI-[0-9]*:../../www/p5-URI
DEPENDS+= p5-List-MoreUtils-[0-9]*:../../devel/p5-List-MoreUtils
DEPENDS+= p5-Math-Random-ISAAC-[0-9]*:../../math/p5-Math-Random-ISAAC
DEPENDS+= p5-File-Slurp-[0-9]*:../../devel/p5-File-Slurp
DEPENDS+= p5-JSON-XS-[0-9]*:../../converters/p5-JSON-XS
DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD
DEPENDS+= p5-Chart-[0-9]*:../../graphics/p5-Chart
DEPENDS+= libwww-[0-9]*:../../www/libwww
DEPENDS+= p5-Template-GD-[0-9]*:../../graphics/p5-Template-GD
DEPENDS+= p5-GDTextUtil-[0-9]*:../../graphics/p5-GDTextUtil
DEPENDS+= p5-GDGraph-[0-9]*:../../graphics/p5-GDGraph
DEPENDS+= p5-MIME-tools-[0-9]*:../../mail/p5-MIME-tools
DEPENDS+= p5-XML-Twig-[0-9]*:../../textproc/p5-XML-Twig
DEPENDS+= p5-PatchReader-[0-9]*:../../devel/p5-PatchReader
DEPENDS+= p5-perl-ldap-[0-9]*:../../databases/p5-perl-ldap
DEPENDS+= p5-Authen-SASL-[0-9]*:../../security/p5-Authen-SASL
DEPENDS+= p5-Net-SMTP-SSL-[0-9]*:../../mail/p5-Net-SMTP-SSL
DEPENDS+= p5-RadiusPerl-[0-9]*:../../net/p5-RadiusPerl
DEPENDS+= p5-SOAP-Lite-[0-9]*:../../net/p5-SOAP-Lite
DEPENDS+= p5-XMLRPC-Lite-[0-9]*:../../net/p5-XMLRPC-Lite
DEPENDS+= p5-JSON-RPC-[0-9]*:../../www/p5-JSON-RPC
DEPENDS+= p5-Test-Taint-[0-9]*:../../devel/p5-Test-Taint
DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser
DEPENDS+= p5-HTML-Scrubber-[0-9]*:../../www/p5-HTML-Scrubber
DEPENDS+= p5-Encode-[0-9]*:../../textproc/p5-Encode
DEPENDS+= p5-Encode-Detect-[0-9]*:../../textproc/p5-Encode-Detect
DEPENDS+= p5-Email-Reply-[0-9]*:../../mail/p5-Email-Reply
DEPENDS+= p5-HTML-FormatText-WithLinks-[0-9]*:../../textproc/p5-HTML-FormatText-WithLinks
DEPENDS+= p5-TheSchwartz-[0-9]*:../../devel/p5-TheSchwartz
DEPENDS+= p5-Daemon-Generic-[0-9]*:../../sysutils/p5-Daemon-Generic
DEPENDS+= p5-File-MimeInfo-[0-9]*:../../devel/p5-File-MimeInfo
DEPENDS+= p5-IO-stringy-[0-9]*:../../devel/p5-IO-stringy
DEPENDS+= p5-Cache-Memcached-[0-9]*:../../devel/p5-Cache-Memcached
DEPENDS+= p5-File-Copy-Recursive-[0-9]*:../../sysutils/p5-File-Copy-Recursive
DEPENDS+= p5-File-Which-[0-9]*:../../devel/p5-File-Which
# DEPENDS+= p5-DBI>=1.41:../../databases/p5-DBI
# DEPENDS+= p5-Template-Toolkit>=2.15:../../www/p5-Template-Toolkit
# DEPENDS+= p5-TimeDate>=1.16:../../time/p5-TimeDate
# DEPENDS+= p5-Email-Send>=2.00:../../mail/p5-Email-Send
# DEPENDS+= p5-Email-MIME>=1.903:../../mail/p5-Email-MIME
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
USE_TOOLS+= pax perl:run
NO_BUILD= YES
BZ_WEB_GROUP?= ${APACHE_GROUP}
SENDMAIL?= /usr/sbin/sendmail
CVS?= /usr/bin/cvs
BUILD_DEFS+= SENDMAIL CVS APACHE_USER APACHE_GROUP
PERL5_REQD+= 5.8.1
PKG_USERS_VARS+= APACHE_USER
PKG_GROUPS_VARS+= BZ_WEB_GROUP APACHE_GROUP
MESSAGE_SUBST+= BZDIR=${BZDIR} PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
BZDIR= ${PREFIX}/share/bugzilla
EGDIR= ${PREFIX}/share/examples/bugzilla
DOCDIR= ${PREFIX}/share/doc/bugzilla
CONF_FILES= ${EGDIR}/bugzilla.conf ${PKG_SYSCONFDIR}/bugzilla.conf
CONF_FILES_PERMS= ${EGDIR}/localconfig ${BZDIR}/localconfig \
${APACHE_USER} ${SHAREGRP} 0400
REPLACE_PERL+= *.pl *.cgi docs/makedocs.pl
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-install
SUBST_MESSAGE.conf= Fixing configuration files.
SUBST_FILES.conf= bugzilla.conf localconfig Bugzilla/BugMail.pm
SUBST_SED.conf= -e "s|@BZ_WEB_GROUP@|${BZ_WEB_GROUP}|g"
SUBST_SED.conf+= -e "s|@PREFIX@|${PREFIX}|g"
SUBST_SED.conf+= -e "s|@BZDIR@|${BZDIR}|g"
SUBST_SED.conf+= -e "s|@CVS@|${CVS}|g"
SUBST_SED.conf+= -e "s|@DBDRIVER@|${DBDRIVER}|g"
SUBST_SED.conf+= -e "s|/usr/lib/sendmail|${SENDMAIL}|g"
SUBST_CLASSES+= diff
SUBST_STAGE.diff= post-configure
SUBST_MESSAGE.diff= Fixing diff path used for Patch Viewer (Ignore depending on OS)
SUBST_FILES.diff= localconfig
SUBST_SED.diff= -e "s|\$diffpath = .*|\$diffpath = \'${DIFF}\';|" -e "s|/diff||"
INSTALLATION_DIRS+= ${DOCDIR} ${DOCDIR}/en ${EGDIR} ${BZDIR} ${BZDIR}/Bugzilla
INSTALLATION_DIRS+= ${BZDIR}/js ${BZDIR}/lib ${BZDIR}/template ${BZDIR}/skins
INSTALLATION_DIRS+= ${BZDIR}/docs ${BZDIR}/docs/en ${BZDIR}/docs/en/html
INSTALLATION_DIRS+= ${BZDIR}/images ${BZDIR}/docs/en/html/api
INSTALLATION_DIRS+= ${BZDIR}/docs/en/html/api/Bugzilla
.for i in data contrib t xt template lib graphs skins
INSTALLATION_DIRS+= ${BZDIR}/${i}
.endfor
FILES_SUBST+= WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
BZDIR=${BZDIR}
do-configure:
(cd ${WRKSRC}; ./checksetup.pl)
post-extract:
${CP} ${FILESDIR}/bugzilla.conf ${WRKSRC}
${CP} ${FILESDIR}/localconfig ${WRKSRC}
do-install:
.for i in ${BZDIR} ${EGDIR} ${DOCDIR} ${BZDIR}/lib
${INSTALL_DATA_DIR} ${DESTDIR}${i}
.endfor
(cd ${WRKSRC} ;\
pax -rw -pmp docs ${DESTDIR}${BZDIR} ;\
${INSTALL_SCRIPT} *.cgi *.pl ${DESTDIR}${BZDIR} ;\
${INSTALL_SCRIPT} robots.txt ${DESTDIR}${BZDIR} ;\
${INSTALL_DATA} Bugzilla.pm ${DESTDIR}${BZDIR} ;\
${INSTALL_DATA} README ${DESTDIR}${DOCDIR} ;\
${INSTALL_DATA} localconfig ${DESTDIR}${EGDIR} ;\
${INSTALL_DATA} bugzilla.conf ${DESTDIR}${EGDIR} ;\
${INSTALL_DATA} images/*.png ${DESTDIR}${BZDIR}/images ;\
${INSTALL_DATA} images/favicon.ico ${DESTDIR}${BZDIR} ;\
pax -rw -pmp Bugzilla ${DESTDIR}${BZDIR} ;\
pax -rw -pmp js ${DESTDIR}${BZDIR} ;\
pax -rw -pmp template ${DESTDIR}${BZDIR} ;\
)
${RM} ${DESTDIR}${BZDIR}/Bugzilla/Install/Filesystem.pm.orig
.include "../../mk/apache.mk"
.include "../../mk/bsd.pkg.mk"