Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2005 22:52:25 +0900 (JST)
From:      TAKATSU Tomonari <tota@rtfm.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/78195: [security update] japanese/bugzilla: update to 2.16.8
Message-ID:  <200502281352.j1SDqPld060818@www9.inetd.co.jp>
Resent-Message-ID: <200502281400.j1SE0WDv040318@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         78195
>Category:       ports
>Synopsis:       [security update] japanese/bugzilla: update to 2.16.8
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 28 14:00:32 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     TAKATSU Tomonari
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
none (personal)
>Environment:
System: FreeBSD photon.rtfm.jp 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Dec  4 16:11:13 JST
>Description:
- Update to 2.16.8 based on devel/bugzilla Revision 1.32

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

diff -urN japanese/bugzilla.orig/Makefile japanese/bugzilla/Makefile
--- japanese/bugzilla.orig/Makefile	Tue Jan 25 18:40:51 2005
+++ japanese/bugzilla/Makefile	Mon Feb 28 22:21:48 2005
@@ -6,23 +6,131 @@
 #
 
 PORTNAME=	bugzilla
-PORTVERSION=	2.16.6
+PORTVERSION=	2.16.8
 CATEGORIES=	japanese devel
+MASTER_SITES=	${MASTER_SITE_MOZILLA}
+MASTER_SITE_SUBDIR=	webtools webtools/archived
 
 PATCH_SITES=	http://hp.vector.co.jp/authors/VA013241/webapp/bugzilla/
-PATCHFILES=	${PORTNAME}-${PORTVERSION}-to-${PORTNAME}-${PORTVERSION}-ja-${PATCHVERSION}.diff.gz
+PATCHFILES=	${PORTNAME}-${PORTVERSION}-to-${PORTVERSION}-ja-${PATCHVERSION}.diff.gz
 PATCH_DIST_STRIP=	-p1
 
 MAINTAINER=	tota@rtfm.jp
 COMMENT=	Bug-tracking system with Japanese patch
 
-BROKEN=		does not work with bugzilla-2.18 masterport
+RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-Mysql \
+		${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate \
+		${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit \
+		${SITE_PERL}/Text/Wrap.pm:${PORTSDIR}/textproc/p5-Text-Tabs+Wrap
+
+.if !defined(WITHOUT_BUG_CHARTING_MODULES)
+RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD \
+		${SITE_PERL}/Chart/Base.pm:${PORTSDIR}/graphics/p5-chart
+.endif
+
+.if defined(WITH_BUG_MAILING_MODULES)
+RUN_DEPENDS+=	${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools
+.endif
+
+.if defined(WITH_BUG_EXPORT_AND_IMPORT)
+RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
+.endif
 
 CONFLICTS=	bugzilla-2.*
-PATCHVERSION=	20040714
+PATCHVERSION=	20050218
 
-MASTERDIR=	${.CURDIR}/../../devel/bugzilla
-MD5_FILE=	${.CURDIR}/distinfo
-PLIST=		${.CURDIR}/pkg-plist
+.if defined(WITH_CONTRIB)
+PLIST_SUB+=	CONTRIB=""
+.else
+PLIST_SUB+=	CONTRIB="@comment "
+.endif
+
+USE_REINPLACE=	yes
+
+NO_BUILD=	yes
+BINMODE=	700
+PKGMESSAGE=	${WRKDIR}/pkg-message
+
+BUGZILLADIR?=	www/data/bugzilla
+BUGZILLADOCS=	html images txt rel_notes.txt
+BONSAIPERLWC=	*.cgi *.pl *.pm processmail syncshadowdb contrib/*.pl
+SENDMAILWC=	*.pl *.pm processmail contrib/*.pl
+
+PLIST_SUB+=	BUGZILLADIR=${BUGZILLADIR}
+
+pre-everything::
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "You may use the following options:"
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "  WITHOUT_BUG_CHARTING_MODULES do not install perl modules required for bug"
+	@${ECHO_MSG} "                               charting support"
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "  WITH_BUG_MAILING_MODULES     install perl modules required for bug mailing"
+	@${ECHO_MSG} "                               support (contrib/bug_email.pl) interface"
+	@${ECHO_MSG} ""
+	@${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"
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "  WITH_CONTRIB                 to install various user-contributed scripts,"
+	@${ECHO_MSG} "                               e.g. to import bugs from other databases, to"
+	@${ECHO_MSG} "                               allow follow-ups/submissions by e-mail etc."
+	@${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 {} \;
+	@${FIND} ${WRKSRC} -name README.docs -type f -exec ${RM} -f {} \;
+	@${FIND} ${WRKSRC} -name \*.orig -type f -exec ${RM} -f {} \;
+.for i in ${BONSAIPERLWC}
+	@${REINPLACE_CMD} -e 's@#!/usr/bonsaitools/bin/perl@#!/usr/bin/perl@' \
+		${WRKSRC}/$i
+.endfor
+.for i in ${SENDMAILWC}
+	@${REINPLACE_CMD} -e 's@/usr/lib/sendmail@/usr/sbin/sendmail@' \
+		${WRKSRC}/$i
+.endfor
+	@${FIND} ${WRKSRC} -name \*.bak -type f -exec ${RM} -f {} \;
+
+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} ${PREFIX}/${BUGZILLADIR}
+	${FIND} ${WRKSRC} \! -type d -maxdepth 1 \! -name UPGRADING* -exec \
+		${INSTALL_SCRIPT} {} ${PREFIX}/${BUGZILLADIR} \;
+	${TAR} -C ${WRKSRC} -cf - template css | ${TAR} --unlink -C ${PREFIX}/${BUGZILLADIR} -xf -
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+	${TAR} -C ${WRKSRC}/docs -cf - . | ${TAR} --unlink -C ${DOCSDIR} -xf -
+.endif
+.if defined(WITH_CONTRIB)
+	${MKDIR} ${PREFIX}/${BUGZILLADIR}/contrib ${PREFIX}/${BUGZILLADIR}/contrib/cmdline
+	cd ${WRKSRC}/contrib; ${INSTALL_SCRIPT} BugzillaEmail.pm bug_email.pl \
+		bugzilla_email_append.pl cvs-update.sh gnats2bz.pl jb2bz.py \
+		mysqld-watcher.pl yp_nomail.sh ${PREFIX}/${BUGZILLADIR}/contrib
+	cd ${WRKSRC}/contrib/cmdline; ${INSTALL_SCRIPT} buglist bugs \
+		query.conf ${PREFIX}/${BUGZILLADIR}/contrib/cmdline
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}/contrib
+	cd ${WRKSRC}/contrib; ${INSTALL_DATA} README README.Mailif \
+		bugmail_help.html bugzilla.procmailrc ${DOCSDIR}/contrib
+.endif
+.endif
+
+post-install:
+	@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
+		-e "s:%%BUGZILLADIR%%:${BUGZILLADIR}:g" \
+		-e "s:%%PORTDOCS%%:${PORTDOCS}:g" \
+		-e "s:%%DOCSDIR%%:${DOCSDIR}:g" \
+		${MASTERDIR}/pkg-message >${PKGMESSAGE}
+.if !defined(BATCH)
+	@${ECHO_MSG}
+	@${CAT} ${PKGMESSAGE}
+	@${ECHO_MSG}
+.endif
 
-.include "${MASTERDIR}/Makefile"
+.include <bsd.port.mk>
diff -urN japanese/bugzilla.orig/distinfo japanese/bugzilla/distinfo
--- japanese/bugzilla.orig/distinfo	Sat Jul 17 14:24:57 2004
+++ japanese/bugzilla/distinfo	Mon Feb 28 22:21:48 2005
@@ -1,4 +1,4 @@
-MD5 (bugzilla-2.16.6.tar.gz) = 5b694df8739be175f0358507f844b71d
-SIZE (bugzilla-2.16.6.tar.gz) = 1365080
-MD5 (bugzilla-2.16.6-to-bugzilla-2.16.6-ja-20040714.diff.gz) = 7882c3073b89312ced1847a4e265c5fa
-SIZE (bugzilla-2.16.6-to-bugzilla-2.16.6-ja-20040714.diff.gz) = 170046
+MD5 (bugzilla-2.16.8.tar.gz) = 192cf7daa231a9e162a688aeebfc873c
+SIZE (bugzilla-2.16.8.tar.gz) = 1735613
+MD5 (bugzilla-2.16.8-to-2.16.8-ja-20050218.diff.gz) = 5b4610883b8a6bcac11afc0feff98ded
+SIZE (bugzilla-2.16.8-to-2.16.8-ja-20050218.diff.gz) = 170881
diff -urN japanese/bugzilla.orig/files/patch-checksetup.pl japanese/bugzilla/files/patch-checksetup.pl
--- japanese/bugzilla.orig/files/patch-checksetup.pl	Thu Jan  1 09:00:00 1970
+++ japanese/bugzilla/files/patch-checksetup.pl	Mon Feb 28 22:21:48 2005
@@ -0,0 +1,11 @@
+--- checksetup.pl~	Fri Apr 16 02:48:51 2004
++++ checksetup.pl	Thu Jul 15 23:37:09 2004
+@@ -399,7 +399,7 @@
+ # and you cannot set this up any other way. YOU HAVE BEEN WARNED.
+ # If you set this to anything besides "", you will need to run checksetup.pl
+ # as root, or as a user who is a member of the specified group.
+-$webservergroup = "apache";
++$webservergroup = "www";
+ ');
+ 
+ 
diff -urN japanese/bugzilla.orig/files/patch-runtests.sh japanese/bugzilla/files/patch-runtests.sh
--- japanese/bugzilla.orig/files/patch-runtests.sh	Thu Jan  1 09:00:00 1970
+++ japanese/bugzilla/files/patch-runtests.sh	Mon Feb 28 22:21:48 2005
@@ -0,0 +1,8 @@
+--- runtests.sh~	Tue Jan  8 12:58:39 2002
++++ runtests.sh	Tue Jan  8 12:58:47 2002
+@@ -9,4 +9,4 @@
+   fi
+ done
+ 
+-/usr/bonsaitools/bin/perl -e "${PART1}${TEST_VERBOSE}${PART2}" t/*.t
++/usr/bin/perl -e "${PART1}${TEST_VERBOSE}${PART2}" t/*.t
diff -urN japanese/bugzilla.orig/files/patch-t-002goodperl.t japanese/bugzilla/files/patch-t-002goodperl.t
--- japanese/bugzilla.orig/files/patch-t-002goodperl.t	Thu Jan  1 09:00:00 1970
+++ japanese/bugzilla/files/patch-t-002goodperl.t	Mon Feb 28 22:21:48 2005
@@ -0,0 +1,11 @@
+--- t/002goodperl.t~	Mon Feb  3 20:29:23 2003
++++ t/002goodperl.t	Mon Feb  3 20:29:37 2003
+@@ -60,7 +60,7 @@
+     $file =~ m/.*\.(.*)/;
+     my $ext = $1;
+ 
+-    if ($file_line1 !~ /\/usr\/bonsaitools\/bin\/perl/) {
++    if ($file_line1 !~ /\/usr\/bin\/perl/) {
+         ok(1,"$file does not have a shebang");	
+     } else {
+         my $flags;
diff -urN japanese/bugzilla.orig/pkg-descr japanese/bugzilla/pkg-descr
--- japanese/bugzilla.orig/pkg-descr	Thu Jan  1 09:00:00 1970
+++ japanese/bugzilla/pkg-descr	Mon Feb 28 22:21:48 2005
@@ -0,0 +1,22 @@
+Bugzilla is one example of a class of programs called "Defect Tracking
+Systems", or, more commonly, "Bug-Tracking Systems". Defect Tracking
+Systems allow individual or groups of developers to keep track of
+outstanding bugs in their product effectively.
+
+Bugzilla has matured immensely, and now boasts many advanced features.
+These include:
+
+  * integrated, product-based granular security schema
+  * inter-bug dependencies and dependency graphing
+  * advanced reporting capabilities
+  * a robust, stable RDBMS back-end
+  * extensive configurability
+  * a very well-understood and well-thought-out natural bug resolution
+    protocol
+  * email, XML, console, and HTTP APIs
+  * available integration with automated software configuration
+    management systems, including Perforce and CVS (through the
+    Bugzilla email interface and checkin/checkout scripts)
+  * too many more features to list
+
+WWW: http://www.mozilla.org/projects/bugzilla/
diff -urN japanese/bugzilla.orig/pkg-message japanese/bugzilla/pkg-message
--- japanese/bugzilla.orig/pkg-message	Thu Jan  1 09:00:00 1970
+++ japanese/bugzilla/pkg-message	Mon Feb 28 22:21:48 2005
@@ -0,0 +1,23 @@
+==========================================================================
+  Bugzilla has now been installed.  To quick setup you have to:
+
+  1. Create database user who has rights on bugs database manipulation
+     by following mysql commands:
+
+     GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP,REFERENCES,\
+	   LOCK TABLES ON <database>.* TO <dbuser>@<host> \
+	   IDENTIFIED BY '<password>';
+     FLUSH PRIVILEGES;
+
+     where <database> is a bugs database name; <dbuser> is a bugs database
+           owner; <host> is a host there bugzilla is being setup;
+           <password> is a database owner's password;
+
+  2. Change working directory to %%PREFIX%%/%%BUGZILLADIR%%
+  3. Run "./checksetup.pl" script as root user
+  4. Read output carefully and follow all instructions
+
+  For more complete database setup and post-installation instructions
+  and security tips/notes please read Bugzilla Guide in
+  %%PORTDOCS%%%%DOCSDIR%% (chapter 4: Installation)
+==========================================================================
diff -urN japanese/bugzilla.orig/pkg-plist japanese/bugzilla/pkg-plist
--- japanese/bugzilla.orig/pkg-plist	Sat Jul 17 14:24:57 2004
+++ japanese/bugzilla/pkg-plist	Mon Feb 28 22:21:48 2005
@@ -58,9 +58,11 @@
 %%PORTDOCS%%%%DOCSDIR%%/html/whatis.html
 %%PORTDOCS%%%%DOCSDIR%%/html/why.html
 %%PORTDOCS%%%%DOCSDIR%%/html/win32.html
+%%PORTDOCS%%%%DOCSDIR%%/images/bzLifecycle.png
+%%PORTDOCS%%%%DOCSDIR%%/images/bzLifecycle.xml
 %%PORTDOCS%%%%DOCSDIR%%/images/caution.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/dbschema.cdr
 %%PORTDOCS%%%%DOCSDIR%%/images/dbschema.jpg
-%%PORTDOCS%%%%DOCSDIR%%/images/dbschema.ps
 %%PORTDOCS%%%%DOCSDIR%%/images/note.gif
 %%PORTDOCS%%%%DOCSDIR%%/images/tip.gif
 %%PORTDOCS%%%%DOCSDIR%%/images/warning.gif
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502281352.j1SDqPld060818>