2001-10-01 13:18:55 +00:00
|
|
|
# New ports collection makefile for: bugzilla
|
|
|
|
# Date created: 28 September 2001
|
|
|
|
# Whom: Alexey Zelkin <phantom@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bugzilla
|
2002-07-08 15:03:44 +00:00
|
|
|
PORTVERSION= 2.14.2
|
2001-10-01 13:18:55 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://ftp.mozilla.org/pub/${MASTER_SITE_SUBDIR}/ \
|
|
|
|
${MASTER_SITE_MOZILLA}
|
|
|
|
MASTER_SITE_SUBDIR= webtools
|
|
|
|
|
|
|
|
MAINTAINER= phantom@FreeBSD.org
|
|
|
|
|
|
|
|
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
|
|
RUN_DEPENDS= ${PERL_SITEDIR}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
|
|
|
|
${PERL_SITEDIR}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-Mysql \
|
|
|
|
${PERL_SITEDIR}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate
|
|
|
|
|
2001-10-08 18:42:23 +00:00
|
|
|
.if !defined(WITHOUT_BUG_CHARTING_MODULES)
|
2001-10-01 13:18:55 +00:00
|
|
|
RUN_DEPENDS+= ${PERL_SITEDIR}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD \
|
|
|
|
${PERL_SITEDIR}/Chart/Base.pm:${PORTSDIR}/graphics/p5-chart
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_BUG_MAILING_MODULES)
|
|
|
|
RUN_DEPENDS+= ${PERL_SITEDIR}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools
|
|
|
|
.endif
|
|
|
|
|
2001-10-08 18:42:23 +00:00
|
|
|
.if defined(WITH_BUG_EXPORT_AND_IMPORT)
|
|
|
|
RUN_DEPENDS+= ${PERL_SITEDIR}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
|
|
|
|
.endif
|
|
|
|
|
2002-07-08 15:23:24 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2001-10-01 13:18:55 +00:00
|
|
|
NO_BUILD= yes
|
2001-10-08 18:42:23 +00:00
|
|
|
BINMODE= 700
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2001-10-01 13:18:55 +00:00
|
|
|
|
|
|
|
PERL_SITEDIR= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
|
|
|
|
|
|
|
|
BUGZILLADIR= ${PREFIX}/www/data.default/bugzilla
|
|
|
|
BUGZILLADOCS= html images txt rel_notes.txt
|
2001-12-20 17:55:20 +00:00
|
|
|
BONSAIPERLWC= *.cgi *.pl *.pm processmail syncshadowdb contrib/*.pl
|
|
|
|
SENDMAILWC= *.pl *.pm processmail contrib/*.pl
|
2001-10-01 13:18:55 +00:00
|
|
|
|
2001-10-01 14:35:19 +00:00
|
|
|
pre-everything::
|
2001-10-01 13:18:55 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "You may use the following options:"
|
|
|
|
@${ECHO_MSG} ""
|
2001-12-20 17:55:20 +00:00
|
|
|
@${ECHO_MSG} " WITHOUT_BUG_CHARTING_MODULES do not install perl modules required for bug"
|
|
|
|
@${ECHO_MSG} " charting support"
|
2001-10-08 18:42:23 +00:00
|
|
|
@${ECHO_MSG} ""
|
2001-12-20 17:55:20 +00:00
|
|
|
@${ECHO_MSG} " WITH_BUG_MAILING_MODULES install perl modules required for bug mailing"
|
|
|
|
@${ECHO_MSG} " support (contrib/bug_email.pl) interface"
|
2001-10-08 18:42:23 +00:00
|
|
|
@${ECHO_MSG} ""
|
2001-12-20 17:55:20 +00:00
|
|
|
@${ECHO_MSG} " WITH_BUG_EXPORT_AND_IMPORT install perl modules required for bug"
|
|
|
|
@${ECHO_MSG} " export/import feature to move bugs to or from"
|
|
|
|
@${ECHO_MSG} " other bugzilla installations"
|
2001-10-01 13:18:55 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@find -d ${WRKSRC} -name CVS -type d -exec ${RM} -rf {} \;
|
|
|
|
@find -d ${WRKSRC} -name sgml -type d -exec ${RM} -rf {} \;
|
|
|
|
@find ${WRKSRC} -name .cvsignore -type f -exec ${RM} -f {} \;
|
2001-10-02 19:37:42 +00:00
|
|
|
@find ${WRKSRC} -name README.docs -type f -exec ${RM} -f {} \;
|
2001-10-08 18:42:23 +00:00
|
|
|
@find ${WRKSRC} -name \*.orig -type f -exec ${RM} -f {} \;
|
2001-10-01 13:18:55 +00:00
|
|
|
.for i in ${BONSAIPERLWC}
|
2002-07-08 15:23:24 +00:00
|
|
|
@${REINPLACE_CMD} -e 's@#!/usr/bonsaitools/bin/perl@#!/usr/bin/perl@' \
|
2001-10-01 13:18:55 +00:00
|
|
|
${WRKSRC}/$i
|
|
|
|
.endfor
|
2001-12-20 17:55:20 +00:00
|
|
|
.for i in ${SENDMAILWC}
|
2002-07-08 15:23:24 +00:00
|
|
|
@${REINPLACE_CMD} -e 's@/usr/lib/sendmail@/usr/sbin/sendmail@' \
|
2001-12-20 17:55:20 +00:00
|
|
|
${WRKSRC}/$i
|
|
|
|
.endfor
|
2001-10-01 13:18:55 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@find ${WRKSRC}/docs -type d -exec ${CHMOD} 755 {} \;
|
|
|
|
@find ${WRKSRC}/docs -type f -exec ${CHMOD} ${MANMODE} {} \;
|
|
|
|
@find ${WRKSRC}/docs -type f -exec ${CHOWN} root:wheel {} \;
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${BUGZILLADIR}
|
|
|
|
find ${WRKSRC} \! -type d -maxdepth 1 \! -name UPGRADING* -exec \
|
2001-10-08 18:42:23 +00:00
|
|
|
${INSTALL_SCRIPT} {} ${BUGZILLADIR} \;
|
2001-10-01 13:18:55 +00:00
|
|
|
.if !defined(NOPORTSDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${TAR} -C ${WRKSRC}/docs -cf - . | ${TAR} --unlink -C ${DOCSDIR} -xf -
|
|
|
|
.endif
|
|
|
|
|
2001-10-02 19:37:42 +00:00
|
|
|
post-install:
|
2001-10-08 18:42:23 +00:00
|
|
|
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" pkg-message >${PKGMESSAGE}
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@${ECHO}
|
2001-10-02 19:37:42 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-10-08 18:42:23 +00:00
|
|
|
@${ECHO}
|
|
|
|
.endif
|
2001-10-02 19:37:42 +00:00
|
|
|
|
2001-10-01 13:18:55 +00:00
|
|
|
.include <bsd.port.mk>
|
2001-10-08 18:42:23 +00:00
|
|
|
|