pkgsrc/devel/bugzilla3/Makefile
abs 29d5520100 Updated devel/bugzilla3 to 3.2.3
Security fix:
 * Attachment editing was vulnerable to a cross-site request forgery.
   Note that this issue was only fixed for 3.2.3 and 3.3.4 even though
   all versions of Bugzilla are affected (see below for an explanation).

bug fixes:
 * Bugzilla is now compatible with MySQL 5.1.x versions 5.1.31
   and greater. (Bug 480001)
 * On Windows, Bugzilla sometimes would send mangled emails (that
   would often fail to send). (Bug 467920)
 * recode.pl would sometimes crash when trying to convert databases
   from older versions of Bugzilla. (Bug 431201)
 * Running a saved search with Unicode characters in its name would
   cause Bugzilla to crash. (Bug 477513)
 * Bugzilla clients like Mylyn can now update bugs again (the bug
   XML format now contains a "token" element that can be used when
   updating a bug). (Bug 476678)
 * For installations using the shadowdb parameter, Bugzilla was
   accidentally writing to the "tokens" table in the shadow database
   (instead of the master database) when using the "Change Several
   Bugs at Once" page. (Bug 476943)
2009-04-20 09:28:28 +00:00

106 lines
4 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2009/04/20 09:28:28 abs Exp $
#
DISTNAME= bugzilla-3.2.3
CATEGORIES= www devel
MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=webtools/}
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.bugzilla.org/
COMMENT= Web based bug tracking system
DEPENDS+= p5-CGI>=3.21:../../www/p5-CGI
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.861:../../mail/p5-Email-MIME
DEPENDS+= p5-Email-MIME-Modifier>=1.442:../../mail/p5-Email-MIME-Modifier
PKG_DESTDIR_SUPPORT= user-destdir
.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:Q} PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
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
PAX_DIRS= Bugzilla skins template
REPLACE_PERL+= *.pl *.cgi
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"
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
post-extract:
${FIND} ${WRKSRC} -type d -name CVS | ${XARGS} ${RM} -rf
${FIND} ${WRKSRC} -type f -name ".cvsignore" | ${XARGS} ${RM} -f
${CP} ${FILESDIR}/bugzilla.conf ${WRKSRC}
${CP} ${FILESDIR}/localconfig ${WRKSRC}
do-install:
${INSTALL_DATA} ${WRKSRC}/docs/en/txt/Bugzilla-Guide.txt ${DESTDIR}${DOCDIR}/en
${INSTALL_DATA} ${WRKSRC}/docs/en/rel_notes.txt ${DESTDIR}${DOCDIR}/en
${INSTALL_DATA} ${WRKSRC}/QUICKSTART ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/UPGRADING ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/UPGRADING-pre-2.8 ${DESTDIR}${DOCDIR}
${INSTALL_SCRIPT} ${WRKSRC}/*.cgi ${DESTDIR}${BZDIR}
${INSTALL_SCRIPT} ${WRKSRC}/*.pl ${DESTDIR}${BZDIR}
${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${BZDIR}
${INSTALL_DATA} ${WRKSRC}/bugzilla.dtd ${DESTDIR}${BZDIR}
${INSTALL_DATA} ${WRKSRC}/duplicates.xul ${DESTDIR}${BZDIR}
${INSTALL_DATA} ${WRKSRC}/Bugzilla.pm ${DESTDIR}${BZDIR}
${INSTALL_DATA} ${WRKSRC}/bugzilla.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/localconfig ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/images/*.png ${DESTDIR}${BZDIR}/images
${INSTALL_DATA} ${WRKSRC}/js/*.js ${DESTDIR}${BZDIR}/js
${INSTALL_DATA} ${WRKSRC}/docs/en/html/*.html ${DESTDIR}${BZDIR}/docs/en/html
${INSTALL_DATA} ${WRKSRC}/docs/en/html/api/*.html ${DESTDIR}${BZDIR}/docs/en/html/api
${INSTALL_DATA} ${WRKSRC}/docs/en/html/api/Bugzilla/*.html ${DESTDIR}${BZDIR}/docs/en/html/api/Bugzilla
.for i in ${PAX_DIRS}
cd ${WRKSRC}/${i} && pax -rw . ${DESTDIR}${BZDIR}/${i}
${FIND} ${DESTDIR}${BZDIR}/${i} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
${FIND} ${DESTDIR}${BZDIR}/${i} -type d | ${XARGS} ${CHMOD} ${PKGDIRMODE}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${BZDIR}/${i}
.endfor
.include "../../mk/apache.mk"
.include "../../mk/bsd.pkg.mk"