2013-06-21 00:21:36 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bugzilla
|
2015-12-23 12:25:37 +01:00
|
|
|
PORTVERSION= 4.4.11
|
2013-06-21 00:21:36 +02:00
|
|
|
CATEGORIES= devel
|
2015-06-09 16:24:41 +02:00
|
|
|
MASTER_SITES= MOZILLA/webtools MOZILLA/webtools/archived
|
2013-06-21 00:21:36 +02:00
|
|
|
|
2014-09-06 01:09:27 +02:00
|
|
|
MAINTAINER= bz-ports@FreeBSD.org
|
2013-06-21 00:21:36 +02:00
|
|
|
COMMENT= Bug-tracking system developed by Mozilla Project
|
|
|
|
|
|
|
|
LICENSE= MPL
|
|
|
|
|
2014-12-21 11:29:27 +01:00
|
|
|
# see Bugzilla/Install/Requirements.pm
|
2013-06-21 00:21:36 +02:00
|
|
|
RUN_DEPENDS= \
|
2015-04-25 18:12:19 +02:00
|
|
|
p5-CGI>=3.51:${PORTSDIR}/www/p5-CGI \
|
2015-01-26 21:28:45 +01:00
|
|
|
p5-DBI>=1.614:${PORTSDIR}/databases/p5-DBI \
|
2014-12-21 11:29:27 +01:00
|
|
|
p5-DateTime-TimeZone>=1.64:${PORTSDIR}/devel/p5-DateTime-TimeZone \
|
|
|
|
p5-DateTime>=0.75:${PORTSDIR}/devel/p5-DateTime \
|
2013-06-21 00:21:36 +02:00
|
|
|
p5-Email-MIME>=1.904:${PORTSDIR}/mail/p5-Email-MIME \
|
|
|
|
p5-Email-Send>=2.04:${PORTSDIR}/mail/p5-Email-Send \
|
|
|
|
p5-Encode-Detect>=0:${PORTSDIR}/converters/p5-Encode-Detect \
|
2014-12-21 11:29:27 +01:00
|
|
|
p5-List-MoreUtils>=0.32:${PORTSDIR}/lang/p5-List-MoreUtils \
|
2013-06-21 00:21:36 +02:00
|
|
|
p5-Math-Random-ISAAC>=1.001:${PORTSDIR}/math/p5-Math-Random-ISAAC \
|
2015-05-31 18:07:58 +02:00
|
|
|
p5-Template-Toolkit>=2.24:${PORTSDIR}/www/p5-Template-Toolkit \
|
2014-12-21 11:29:27 +01:00
|
|
|
p5-TimeDate>=2.23:${PORTSDIR}/devel/p5-TimeDate \
|
|
|
|
p5-URI>=1.55:${PORTSDIR}/net/p5-URI
|
2013-06-21 00:21:36 +02:00
|
|
|
|
2015-07-12 09:38:53 +02:00
|
|
|
USES= cpe perl5
|
2015-05-31 18:07:58 +02:00
|
|
|
USE_PERL5= run
|
2013-06-21 00:21:36 +02:00
|
|
|
|
2014-10-07 06:38:07 +02:00
|
|
|
CPE_VENDOR= mozilla
|
|
|
|
|
2013-06-21 00:21:36 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
DATA_DIRS_LIST= images js skins
|
|
|
|
|
|
|
|
# checksetup will fail if these directories are not present!
|
|
|
|
EMPTY_DIRS_LIST=data graphs contrib lib t xt
|
|
|
|
|
|
|
|
.include "${.CURDIR}/Makefile.common"
|
|
|
|
.include "${.CURDIR}/Makefile.options"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2014-12-02 00:19:07 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} >= 501800
|
2014-12-18 19:35:34 +01:00
|
|
|
# PR 194782: silence Module::Pluggable deprecated warnings
|
2014-12-02 00:19:07 +01:00
|
|
|
RUN_DEPENDS+= p5-Module-Pluggable>=5.1:${PORTSDIR}/devel/p5-Module-Pluggable
|
2014-12-18 19:35:34 +01:00
|
|
|
# PR 196060,196100: explicitly depend on textproc/p5-Text-Tabv
|
|
|
|
RUN_DEPENDS+= p5-Text-Tabs+Wrap>=2013.0523:${PORTSDIR}/textproc/p5-Text-Tabs+Wrap
|
2014-12-02 00:19:07 +01:00
|
|
|
.endif
|
|
|
|
|
2013-06-21 00:21:36 +02:00
|
|
|
.if ${PORT_OPTIONS:MMODPERL}
|
|
|
|
USE_APACHE_RUN= 22+
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
|
|
USE_MYSQL= yes
|
|
|
|
RUN_DEPENDS+= p5-DBD-mysql>=4.0001:${PORTSDIR}/databases/p5-DBD-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2014-10-06 21:16:42 +02:00
|
|
|
USES+= pgsql
|
2014-12-21 11:29:27 +01:00
|
|
|
RUN_DEPENDS+= p5-DBD-Pg>=3.4.2:${PORTSDIR}/databases/p5-DBD-Pg
|
2013-06-21 00:21:36 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSQLITE}
|
|
|
|
USE_SQLITE= yes
|
|
|
|
RUN_DEPENDS+= p5-DBD-SQLite>=1.29:${PORTSDIR}/databases/p5-DBD-SQLite \
|
|
|
|
sqlite3>=3:${PORTSDIR}/databases/sqlite3
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGRAPH_REPORTS}
|
|
|
|
RUN_DEPENDS+= p5-GD>=1.20:${PORTSDIR}/graphics/p5-GD \
|
|
|
|
p5-GD-Graph>=0:${PORTSDIR}/graphics/p5-GD-Graph \
|
|
|
|
p5-GD-TextUtil>=0:${PORTSDIR}/graphics/p5-GD-TextUtil \
|
|
|
|
p5-Template-GD>=0:${PORTSDIR}/www/p5-Template-GD
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MCHARTING_MODULES}
|
2015-05-31 18:07:58 +02:00
|
|
|
RUN_DEPENDS+= p5-Chart>=2.4.10:${PORTSDIR}/graphics/p5-Chart
|
2013-06-21 00:21:36 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPATCH_VIEWER}
|
|
|
|
RUN_DEPENDS+= p5-PatchReader>=0.9.6:${PORTSDIR}/devel/p5-PatchReader \
|
|
|
|
interdiff:${PORTSDIR}/misc/patchutils
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMORE_HTML}
|
2015-01-26 21:28:45 +01:00
|
|
|
RUN_DEPENDS+= p5-HTML-Parser>=3.67:${PORTSDIR}/www/p5-HTML-Parser \
|
2013-06-21 00:21:36 +02:00
|
|
|
p5-HTML-Scrubber>=0:${PORTSDIR}/www/p5-HTML-Scrubber
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MINBOUND_EMAIL}
|
|
|
|
RUN_DEPENDS+= p5-Email-MIME-Attachment-Stripper>=0:${PORTSDIR}/mail/p5-Email-MIME-Attachment-Stripper \
|
|
|
|
p5-Email-Reply>=0:${PORTSDIR}/mail/p5-Email-Reply \
|
|
|
|
p5-HTML-FormatText-WithLinks>=0.13:${PORTSDIR}/textproc/p5-HTML-FormatText-WithLinks
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMAIL_QUEUEING}
|
2014-12-21 11:29:27 +01:00
|
|
|
RUN_DEPENDS+= p5-TheSchwartz>=1.10:${PORTSDIR}/devel/p5-TheSchwartz \
|
|
|
|
p5-Daemon-Generic>=0:${PORTSDIR}/net/p5-Daemon-Generic \
|
|
|
|
p5-File-Slurp>=9999.13:${PORTSDIR}/devel/p5-File-Slurp
|
2013-06-21 00:21:36 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMOVE_BUGZ}
|
2014-12-21 11:29:27 +01:00
|
|
|
RUN_DEPENDS+= p5-MIME-Tools>=5.406:${PORTSDIR}/mail/p5-MIME-Tools \
|
2013-06-21 00:21:36 +02:00
|
|
|
p5-XML-Twig>=0:${PORTSDIR}/textproc/p5-XML-Twig
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MBMP2PNG}
|
|
|
|
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
.endif
|
|
|
|
|
2015-07-12 09:38:53 +02:00
|
|
|
# Note: XML-RPC and JSON-RPC are deprecated in favor of REST
|
|
|
|
# and will likely be removed in the Bugzilla 7.0 release.
|
2013-06-21 00:21:36 +02:00
|
|
|
.if ${PORT_OPTIONS:MXMLRPC} || ${PORT_OPTIONS:MJSONRPC}
|
2014-12-21 11:29:27 +01:00
|
|
|
RUN_DEPENDS+= p5-Test-Taint>=1.06:${PORTSDIR}/devel/p5-Test-Taint
|
2013-06-21 00:21:36 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MXMLRPC}
|
2014-12-21 11:29:27 +01:00
|
|
|
RUN_DEPENDS+= p5-XMLRPC-Lite>=0.712:${PORTSDIR}/net/p5-XMLRPC-Lite
|
|
|
|
# XXX SOAP::Lite can be removed if upstream officially depends on
|
|
|
|
# XMLRPC::Lite>=0.717, see Bugzilla/Install/Requirements.pm
|
2013-06-21 00:21:36 +02:00
|
|
|
RUN_DEPENDS+= p5-SOAP-Lite>=0.712:${PORTSDIR}/net/p5-SOAP-Lite
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MJSONRPC}
|
|
|
|
RUN_DEPENDS+= p5-JSON-RPC>=0:${PORTSDIR}/devel/p5-JSON-RPC \
|
|
|
|
p5-JSON-XS>=2.0:${PORTSDIR}/converters/p5-JSON-XS
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMODPERL}
|
|
|
|
RUN_DEPENDS+= ${APACHE_PKGNAMEPREFIX}mod_perl2>=0:${PORTSDIR}/www/mod_perl2 \
|
|
|
|
p5-Apache-DBI>=0:${PORTSDIR}/www/p5-Apache-DBI
|
|
|
|
.endif
|
|
|
|
|
2014-04-18 20:52:42 +02:00
|
|
|
.if ${PORT_OPTIONS:MGRAPHVIZ}
|
2013-06-21 00:21:36 +02:00
|
|
|
RUN_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MEXPORT_IMPORT}
|
|
|
|
RUN_DEPENDS+= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \
|
|
|
|
p5-XML-Twig>=0:${PORTSDIR}/textproc/p5-XML-Twig
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
|
|
RUN_DEPENDS+= p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MRADIUS}
|
|
|
|
RUN_DEPENDS+= p5-Authen-Radius>=0:${PORTSDIR}/security/p5-Authen-Radius
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSMTP_AUTH}
|
|
|
|
RUN_DEPENDS+= p5-Authen-SASL>=2.16:${PORTSDIR}/security/p5-Authen-SASL
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSMTP_SSL}
|
|
|
|
RUN_DEPENDS+= p5-Net-SMTP-SSL>=1.01:${PORTSDIR}/mail/p5-Net-SMTP-SSL
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMIME_SNIFF}
|
|
|
|
RUN_DEPENDS+= p5-File-MimeInfo>=0.16:${PORTSDIR}/devel/p5-File-MimeInfo \
|
|
|
|
p5-IO-stringy>=2.110:${PORTSDIR}/devel/p5-IO-stringy
|
|
|
|
.endif
|
|
|
|
|
2014-04-20 19:26:52 +02:00
|
|
|
post-extract:
|
2015-07-12 09:38:53 +02:00
|
|
|
${RM} -r ${WRKSRC}/.git
|
|
|
|
${RM} ${WRKSRC}/.bzrignore ${WRKSRC}/.gitignore ${WRKSRC}/.gitrev \
|
2014-07-25 16:15:55 +02:00
|
|
|
${WRKSRC}/docs/en/README.docs ${WRKSRC}/docs/en/html/Bugzilla-Guide.proc \
|
2015-05-31 18:07:58 +02:00
|
|
|
${WRKSRC}/.travis.yml ${WRKSRC}/Build.PL ${WRKSRC}/MANIFEST.SKIP \
|
|
|
|
${WRKSRC}/taskgraph.json
|
2014-04-20 19:26:52 +02:00
|
|
|
|
2013-06-21 00:21:36 +02:00
|
|
|
post-patch:
|
2015-05-31 18:07:58 +02:00
|
|
|
${REINPLACE_CMD} -e 's/apache/www/' ${WRKSRC}/Bugzilla/Install/Localconfig.pm
|
|
|
|
${REINPLACE_CMD} -e 's|/opt/bugzilla|${WWWDIR}|' ${WRKSRC}/importxml.pl \
|
|
|
|
${WRKSRC}/docs/en/html/api/importxml.html
|
|
|
|
${FIND} ${WRKSRC} -type f \( -name \*.cgi -o -name \*.html -o -name \*.pl -o -name \*.pm -o -name \*.t -o -name \*.txt -o -name \*.xml \) \
|
2015-05-31 19:40:24 +02:00
|
|
|
-exec ${SED} -i '' -e "s=/usr/bin/perl=${PERL}=g; \
|
|
|
|
s!/usr/lib/sendmail!/usr/sbin/sendmail!g; \
|
2015-05-31 18:07:58 +02:00
|
|
|
s!/var/www/html/bugzilla!${WWWDIR}!" {} \+
|
2013-06-21 00:21:36 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL} && ! ${PORT_OPTIONS:MMYSQL}
|
2015-05-31 19:40:24 +02:00
|
|
|
${REINPLACE_CMD} -e "s/'mysql'/'Pg'/" ${WRKSRC}/Bugzilla/Install/Localconfig.pm
|
2013-06-21 00:21:36 +02:00
|
|
|
.endif
|
2014-04-20 19:26:52 +02:00
|
|
|
|
|
|
|
pre-install:
|
2014-07-25 16:15:55 +02:00
|
|
|
${FIND} ${WRKSRC} -type f \( -name "*.orig" -or -name "*.bak" \) -delete
|
2013-06-21 00:21:36 +02:00
|
|
|
|
|
|
|
do-install: .SILENT
|
2015-05-31 18:07:58 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
2013-06-21 00:21:36 +02:00
|
|
|
${FIND} ${WRKSRC} \! -type d -maxdepth 1 \! -name "UPGRADING*" -exec \
|
2013-09-26 21:00:40 +02:00
|
|
|
${INSTALL_SCRIPT} {} ${STAGEDIR}${WWWDIR} \;
|
|
|
|
@${MKDIR} ${DATA_DIRS_LIST:S!^!${STAGEDIR}${WWWDIR}/!}
|
2013-06-21 00:21:36 +02:00
|
|
|
.for D in ${DATA_DIRS_LIST}
|
2013-09-26 21:00:40 +02:00
|
|
|
(cd ${WRKSRC}/${D} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/${D})
|
2013-06-21 00:21:36 +02:00
|
|
|
.endfor
|
2013-09-26 21:00:40 +02:00
|
|
|
${TAR} -C ${WRKSRC} -cf - Bugzilla template | ${TAR} --unlink -C ${STAGEDIR}${WWWDIR} -xf -
|
|
|
|
@${MKDIR} ${EMPTY_DIRS_LIST:S!^!${STAGEDIR}${WWWDIR}/!}
|
2014-04-20 19:26:52 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2015-05-31 18:07:58 +02:00
|
|
|
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
2013-06-21 00:21:36 +02:00
|
|
|
|
2015-12-23 12:25:37 +01:00
|
|
|
do-install-CONTRIB-on:
|
2014-07-25 16:15:55 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}/contrib
|
|
|
|
(cd ${WRKSRC}/contrib && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/contrib)
|
2013-06-21 00:21:36 +02:00
|
|
|
|
2014-12-02 00:19:07 +01:00
|
|
|
.include <bsd.port.post.mk>
|