2007-12-22 08:22:04 +01:00
|
|
|
# $NetBSD: Makefile,v 1.27 2007/12/22 07:22:06 obache Exp $
|
2005-01-02 14:39:52 +01:00
|
|
|
#
|
|
|
|
|
2007-08-25 11:49:33 +02:00
|
|
|
DISTNAME= bugzilla-2.22.3
|
2005-01-02 14:39:52 +01:00
|
|
|
CATEGORIES= www devel
|
2007-12-22 08:22:04 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=webtools/}
|
2005-01-02 14:39:52 +01:00
|
|
|
|
|
|
|
MAINTAINER= adrianp@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.bugzilla.org/
|
|
|
|
COMMENT= Web based bug tracking system
|
|
|
|
|
|
|
|
DEPENDS+= p5-AppConfig>=1.52:../../devel/p5-AppConfig
|
|
|
|
DEPENDS+= p5-CGI>=2.93:../../www/p5-CGI
|
2005-10-26 12:16:09 +02:00
|
|
|
DEPENDS+= p5-DBI>=1.38:../../databases/p5-DBI
|
2005-01-02 14:39:52 +01:00
|
|
|
DEPENDS+= p5-File-Temp-[0-9]*:../../devel/p5-File-Temp
|
2006-10-15 14:36:05 +02:00
|
|
|
DEPENDS+= p5-Template-Toolkit>=2.10:../../www/p5-Template-Toolkit
|
2005-01-02 14:39:52 +01:00
|
|
|
DEPENDS+= p5-Text-Tabs+Wrap>=2001.0131:../../textproc/p5-Text-Tabs+Wrap
|
2005-10-26 12:16:09 +02:00
|
|
|
DEPENDS+= p5-Storable-[0-9]*:../../devel/p5-Storable
|
|
|
|
DEPENDS+= p5-TimeDate>=1.16:../../time/p5-TimeDate
|
2006-10-15 14:21:13 +02:00
|
|
|
DEPENDS+= p5-MailTools>=1.74:../../mail/p5-MailTools
|
|
|
|
DEPENDS+= p5-MIME-Base64>=3.01:../../converters/p5-MIME-Base64
|
|
|
|
DEPENDS+= p5-MIME-tools>=5.406:../../mail/p5-MIME-tools
|
2005-01-02 14:39:52 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "options.mk"
|
|
|
|
|
2006-07-08 00:10:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2005-01-02 14:39:52 +01:00
|
|
|
NO_BUILD= YES
|
|
|
|
|
2005-10-26 12:16:09 +02:00
|
|
|
BZ_WEB_GROUP?= ${APACHE_GROUP}
|
2005-01-02 14:39:52 +01:00
|
|
|
SENDMAIL?= /usr/sbin/sendmail
|
2006-10-15 14:21:13 +02:00
|
|
|
CVS?= /usr/bin/cvs
|
2005-01-02 14:39:52 +01:00
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
BUILD_DEFS+= SENDMAIL CVS
|
|
|
|
|
|
|
|
PKG_USERS_VARS+= APACHE_USER
|
|
|
|
PKG_GROUPS_VARS+= BZ_WEB_GROUP APACHE_GROUP
|
2005-01-02 14:39:52 +01:00
|
|
|
|
Update to 2.20.1
Make pkglint happer
This also fixes a number of security issues:
http://www.securityfocus.com/archive/1/425584/30/0/threaded
> Version 2.20.1
> --------------
>
> + Many PostgreSQL fixes, including fixing whine.pl on Pg 8
> (bug 301062) and fixing the --regenerate option of collectstats.pl
> for all versions of Pg (bug 316971). However, users who want full
> PostgreSQL support are encouraged to use the 2.22 series, as
> certain PostgreSQL bugs were discovered that will not be fixed
> in 2.20 (their fixes were too complex).
>
> + In Bugzilla 2.20, the "administrator" user created by checksetup.pl
> would not ever be sent email, because their email preferences were
> left blank. This has been fixed for 2.20.1. However, if you created
> this administrative user with Bugzilla 2.20, make sure to go back
> and enable their Email Preferences. (bug 317489)
>
> + The bzdbcopy.pl script mentioned in these release notes
> has now actually been checked-in to the 2.20 branch, and so
> it's included in this release. (bug 291776)
>
> + When there's only one Classification, you now won't be required
> to pick a Classification on bug entry. (bug 311489)
>
> + You can no longer add dependencies on bugs you can't see.
> (bug 141593)
>
> + The CC list is included in "New" bug emails, again. (bug 313661)
>
> + In the original 2.20, certain scripts were not correctly using
> the "shadow database," if it was specified. This has been fixed
> in 2.20.1. (bug 313695)
>
> + "Saved Searches" that were saved before Bugzilla 2.20, would throw
> an error if they contained "Days Since Bug Changed." as part of their
> criteria. This has been fixed in Bugzilla 2.20.1. (bug 302599)
>
> + You can now successfully delete a product even when Target Milestones
> are turned off. (bug 317025)
>
> + checksetup.pl now correctly pre-compiles templates for languages other
> than English. (bug 304417)
>
> + The "All Closed" chart that is created by default in New Charts
> now actually represents all closed bugs, and not all bugs in the
> product. (bug 300473)
>
> + CSV bug lists with more than 1000 dates now work properly. (bug 257813)
>
> + Various bugs with upgrading from previous versions of Bugzilla
> have been fixed. (bug 307662, bug 311047, bug 310108)
>
> + Many, many other bug fixes. See http://www.bugzilla.org/status/changes.html
> for details on what was fixed between 2.20 and 2.20.1.
2006-02-21 17:48:55 +01:00
|
|
|
MESSAGE_SUBST+= BZDIR=${BZDIR:Q} PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
|
2005-01-02 14:39:52 +01:00
|
|
|
|
|
|
|
BZDIR= ${PREFIX}/share/bugzilla
|
|
|
|
EGDIR= ${PREFIX}/share/examples/bugzilla
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/bugzilla
|
2007-06-15 16:18:38 +02:00
|
|
|
CONF_FILES= ${EGDIR}/bugzilla.conf ${PKG_SYSCONFDIR}/bugzilla.conf
|
|
|
|
CONF_FILES_PERMS= ${EGDIR}/localconfig ${BZDIR}/localconfig \
|
|
|
|
${APACHE_USER} ${SHAREGRP} 0400
|
2005-10-26 12:16:09 +02:00
|
|
|
PAX_DIRS= Bugzilla skins template
|
2005-01-02 14:39:52 +01:00
|
|
|
|
Update to 2.20.1
Make pkglint happer
This also fixes a number of security issues:
http://www.securityfocus.com/archive/1/425584/30/0/threaded
> Version 2.20.1
> --------------
>
> + Many PostgreSQL fixes, including fixing whine.pl on Pg 8
> (bug 301062) and fixing the --regenerate option of collectstats.pl
> for all versions of Pg (bug 316971). However, users who want full
> PostgreSQL support are encouraged to use the 2.22 series, as
> certain PostgreSQL bugs were discovered that will not be fixed
> in 2.20 (their fixes were too complex).
>
> + In Bugzilla 2.20, the "administrator" user created by checksetup.pl
> would not ever be sent email, because their email preferences were
> left blank. This has been fixed for 2.20.1. However, if you created
> this administrative user with Bugzilla 2.20, make sure to go back
> and enable their Email Preferences. (bug 317489)
>
> + The bzdbcopy.pl script mentioned in these release notes
> has now actually been checked-in to the 2.20 branch, and so
> it's included in this release. (bug 291776)
>
> + When there's only one Classification, you now won't be required
> to pick a Classification on bug entry. (bug 311489)
>
> + You can no longer add dependencies on bugs you can't see.
> (bug 141593)
>
> + The CC list is included in "New" bug emails, again. (bug 313661)
>
> + In the original 2.20, certain scripts were not correctly using
> the "shadow database," if it was specified. This has been fixed
> in 2.20.1. (bug 313695)
>
> + "Saved Searches" that were saved before Bugzilla 2.20, would throw
> an error if they contained "Days Since Bug Changed." as part of their
> criteria. This has been fixed in Bugzilla 2.20.1. (bug 302599)
>
> + You can now successfully delete a product even when Target Milestones
> are turned off. (bug 317025)
>
> + checksetup.pl now correctly pre-compiles templates for languages other
> than English. (bug 304417)
>
> + The "All Closed" chart that is created by default in New Charts
> now actually represents all closed bugs, and not all bugs in the
> product. (bug 300473)
>
> + CSV bug lists with more than 1000 dates now work properly. (bug 257813)
>
> + Various bugs with upgrading from previous versions of Bugzilla
> have been fixed. (bug 307662, bug 311047, bug 310108)
>
> + Many, many other bug fixes. See http://www.bugzilla.org/status/changes.html
> for details on what was fixed between 2.20 and 2.20.1.
2006-02-21 17:48:55 +01:00
|
|
|
REPLACE_PERL+= *.pl *.cgi
|
2005-01-02 14:39:52 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
SUBST_CLASSES+= conf
|
2005-01-02 14:39:52 +01:00
|
|
|
SUBST_STAGE.conf= pre-install
|
Update to 2.20.1
Make pkglint happer
This also fixes a number of security issues:
http://www.securityfocus.com/archive/1/425584/30/0/threaded
> Version 2.20.1
> --------------
>
> + Many PostgreSQL fixes, including fixing whine.pl on Pg 8
> (bug 301062) and fixing the --regenerate option of collectstats.pl
> for all versions of Pg (bug 316971). However, users who want full
> PostgreSQL support are encouraged to use the 2.22 series, as
> certain PostgreSQL bugs were discovered that will not be fixed
> in 2.20 (their fixes were too complex).
>
> + In Bugzilla 2.20, the "administrator" user created by checksetup.pl
> would not ever be sent email, because their email preferences were
> left blank. This has been fixed for 2.20.1. However, if you created
> this administrative user with Bugzilla 2.20, make sure to go back
> and enable their Email Preferences. (bug 317489)
>
> + The bzdbcopy.pl script mentioned in these release notes
> has now actually been checked-in to the 2.20 branch, and so
> it's included in this release. (bug 291776)
>
> + When there's only one Classification, you now won't be required
> to pick a Classification on bug entry. (bug 311489)
>
> + You can no longer add dependencies on bugs you can't see.
> (bug 141593)
>
> + The CC list is included in "New" bug emails, again. (bug 313661)
>
> + In the original 2.20, certain scripts were not correctly using
> the "shadow database," if it was specified. This has been fixed
> in 2.20.1. (bug 313695)
>
> + "Saved Searches" that were saved before Bugzilla 2.20, would throw
> an error if they contained "Days Since Bug Changed." as part of their
> criteria. This has been fixed in Bugzilla 2.20.1. (bug 302599)
>
> + You can now successfully delete a product even when Target Milestones
> are turned off. (bug 317025)
>
> + checksetup.pl now correctly pre-compiles templates for languages other
> than English. (bug 304417)
>
> + The "All Closed" chart that is created by default in New Charts
> now actually represents all closed bugs, and not all bugs in the
> product. (bug 300473)
>
> + CSV bug lists with more than 1000 dates now work properly. (bug 257813)
>
> + Various bugs with upgrading from previous versions of Bugzilla
> have been fixed. (bug 307662, bug 311047, bug 310108)
>
> + Many, many other bug fixes. See http://www.bugzilla.org/status/changes.html
> for details on what was fixed between 2.20 and 2.20.1.
2006-02-21 17:48:55 +01:00
|
|
|
SUBST_MESSAGE.conf= Fixing configuration files.
|
2006-06-17 21:03:05 +02:00
|
|
|
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"
|
2006-10-15 14:21:13 +02:00
|
|
|
SUBST_SED.conf+= -e "s|@CVS@|${CVS}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|@DBDRIVER@|${DBDRIVER}|g"
|
2006-06-17 21:03:05 +02:00
|
|
|
SUBST_SED.conf+= -e "s|/usr/lib/sendmail|${SENDMAIL}|g"
|
2005-01-02 14:39:52 +01:00
|
|
|
|
|
|
|
post-extract:
|
2006-06-17 21:03:05 +02:00
|
|
|
${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}
|
2005-01-02 14:39:52 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${BZDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${BZDIR}/Bugzilla
|
2005-10-26 12:16:09 +02:00
|
|
|
|
2005-01-02 14:39:52 +01:00
|
|
|
${INSTALL_DATA_DIR} ${BZDIR}/js
|
|
|
|
${INSTALL_DATA_DIR} ${BZDIR}/template
|
|
|
|
${INSTALL_DATA_DIR} ${BZDIR}/skins
|
2005-10-26 12:16:09 +02:00
|
|
|
${INSTALL_DATA_DIR} ${BZDIR}/docs
|
2005-01-02 14:39:52 +01:00
|
|
|
${INSTALL_DATA_DIR} ${BZDIR}/docs/html
|
2005-10-26 12:16:09 +02:00
|
|
|
${INSTALL_DATA_DIR} ${BZDIR}/images
|
|
|
|
|
2005-01-02 14:39:52 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/txt/Bugzilla-Guide.txt ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/rel_notes.txt ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/QUICKSTART ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/UPGRADING ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/UPGRADING-pre-2.8 ${DOCDIR}
|
2005-10-26 12:16:09 +02:00
|
|
|
|
2005-01-02 14:39:52 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.cgi ${BZDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.pl ${BZDIR}
|
2005-10-26 12:16:09 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.js ${BZDIR}
|
2005-01-02 14:39:52 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/robots.txt ${BZDIR}
|
2005-10-26 12:16:09 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/bugzilla.dtd ${BZDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/duplicates.xul ${BZDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Bugzilla.pm ${BZDIR}
|
|
|
|
|
2005-01-02 14:39:52 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/bugzilla.conf ${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/localconfig ${EGDIR}
|
2005-10-26 12:16:09 +02:00
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/images/*.png ${BZDIR}/images
|
2005-01-02 14:39:52 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/js/*.js ${BZDIR}/js
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/html/*.html ${BZDIR}/docs/html
|
2005-10-26 12:16:09 +02:00
|
|
|
|
2006-06-17 21:03:05 +02:00
|
|
|
.for i in ${PAX_DIRS}
|
|
|
|
cd ${WRKSRC}/${i} && ${PAX} -rw . ${BZDIR}/${i}
|
|
|
|
${FIND} ${BZDIR}/${i} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
${FIND} ${BZDIR}/${i} -type d | ${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${BZDIR}/${i}
|
|
|
|
.endfor
|
2005-10-26 12:16:09 +02:00
|
|
|
|
2007-02-03 18:21:02 +01:00
|
|
|
${CHMOD} ${SHAREMODE} ${BZDIR}/globals.pl
|
|
|
|
|
2006-10-15 14:21:13 +02:00
|
|
|
.include "../../mk/apache.mk"
|
2005-01-02 14:39:52 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|