aboutsummaryrefslogtreecommitdiffstats
path: root/devel/bugzilla2/Makefile
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2001-10-01 21:18:55 +0800
committerphantom <phantom@FreeBSD.org>2001-10-01 21:18:55 +0800
commit68eb6d9773d6fae3cdb7ca05546bf4756f75bfc8 (patch)
tree007606ea6522b6019eadfe236cf2709cd018de61 /devel/bugzilla2/Makefile
parent15e7d3364366cb7214517ca68e721092bd9f9418 (diff)
downloadfreebsd-ports-gnome-68eb6d9773d6fae3cdb7ca05546bf4756f75bfc8.tar.gz
freebsd-ports-gnome-68eb6d9773d6fae3cdb7ca05546bf4756f75bfc8.tar.zst
freebsd-ports-gnome-68eb6d9773d6fae3cdb7ca05546bf4756f75bfc8.zip
Add bugzilla 2.14, bug-tracking system developed by Mozilla Project
Diffstat (limited to 'devel/bugzilla2/Makefile')
-rw-r--r--devel/bugzilla2/Makefile74
1 files changed, 74 insertions, 0 deletions
diff --git a/devel/bugzilla2/Makefile b/devel/bugzilla2/Makefile
new file mode 100644
index 000000000000..71f30035ad9e
--- /dev/null
+++ b/devel/bugzilla2/Makefile
@@ -0,0 +1,74 @@
+# New ports collection makefile for: bugzilla
+# Date created: 28 September 2001
+# Whom: Alexey Zelkin <phantom@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bugzilla
+PORTVERSION= 2.14
+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
+
+.if defined(WITH_BUG_CHARTING_MODULES)
+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
+
+NO_BUILD= yes
+SHAREOWN= nobody
+SHAREGRP= nogroup
+
+PERL_SITEDIR= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
+
+BUGZILLADIR= ${PREFIX}/www/data.default/bugzilla
+BUGZILLADOCS= html images txt rel_notes.txt
+BONSAIPERLWC= *.cgi *.pl *.pm processmail syncshadowdb
+
+pre-everything:
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "You may use the following options:"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} " WITH_BUG_CHARTING_MODULES install perl modules required for bug"
+ @${ECHO_MSG} " charting support"
+ @${ECHO_MSG} " WITH_BUG_MAILING_MODULES install perl modules required for bug mailing"
+ @${ECHO_MSG} " support (contrib/bug_email.pl) interface"
+ @${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 {} \;
+.for i in ${BONSAIPERLWC}
+ @${PERL} -pi -e 's@#!/usr/bonsaitools/bin/perl@#!/usr/bin/perl@' \
+ ${WRKSRC}/$i
+.endfor
+
+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 \
+ ${INSTALL_DATA} {} ${BUGZILLADIR} \;
+.if !defined(NOPORTSDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${TAR} -C ${WRKSRC}/docs -cf - . | ${TAR} --unlink -C ${DOCSDIR} -xf -
+.endif
+
+.include <bsd.port.mk>