Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2004 01:28:20 +0900 (JST)
From:      TAKATSU Tomonari <tota@rtfm.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62545: [PATCH] devel/bugzilla: for slave port japanese/bugzilla
Message-ID:  <200402081628.i18GSKTm002237@photon.rtfm.jp>
Resent-Message-ID: <200402081630.i18GUKAB036291@freefall.freebsd.org>

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

>Number:         62545
>Category:       ports
>Synopsis:       [PATCH] devel/bugzilla: for slave port japanese/bugzilla
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 08 08:30:20 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     TAKATSU Tomonari
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
none (personal)
>Environment:
System: FreeBSD photon.rtfm.jp 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Fri Feb  6 20:44:51 JST
>Description:
preparing to add a slave port: japanese/bugzilla

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

begin 644 bugzilla-2.16.4_1.patch
diff -urN bugzilla.orig/Makefile bugzilla/Makefile
--- bugzilla.orig/Makefile	Fri Feb  6 04:17:40 2004
+++ bugzilla/Makefile	Mon Feb  9 01:15:28 2004
@@ -7,31 +7,34 @@
 
 PORTNAME=	bugzilla
 PORTVERSION=	2.16.4
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_MOZILLA}
 MASTER_SITE_SUBDIR=	webtools
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Bug-tracking system developed by Mozilla Project
+MAINTAINER?=	ports@FreeBSD.org
+COMMENT?=	Bug-tracking system developed by Mozilla Project
 
-RUN_DEPENDS=	${PERL_SITEDIR}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-Mysql \
-		${PERL_SITEDIR}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate \
-		${PERL_SITEDIR}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit \
-		${PERL_SITEDIR}/Text/Wrap.pm:${PORTSDIR}/textproc/p5-Text-Tabs+Wrap
+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+=	${PERL_SITEDIR}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD \
-		${PERL_SITEDIR}/Chart/Base.pm:${PORTSDIR}/graphics/p5-chart
+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+=	${PERL_SITEDIR}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools
+RUN_DEPENDS+=	${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools
 .endif
 
 .if defined(WITH_BUG_EXPORT_AND_IMPORT)
-RUN_DEPENDS+=	${PERL_SITEDIR}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
+RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
 .endif
 
+CONFLICTS?=	ja-bugzilla-*
+
 .if defined(WITH_CONTRIB)
 PLIST_SUB+=	CONTRIB=""
 .else
@@ -44,8 +47,6 @@
 BINMODE=	700
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
-PERL_SITEDIR=	${SITE_PERL}
-
 BUGZILLADIR?=	www/data/bugzilla
 BUGZILLADOCS=	html images txt rel_notes.txt
 BONSAIPERLWC=	*.cgi *.pl *.pm processmail syncshadowdb contrib/*.pl
@@ -117,7 +118,11 @@
 .endif
 
 post-install:
-	@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" pkg-message >${PKGMESSAGE}
+	@${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}
diff -urN bugzilla.orig/pkg-message bugzilla/pkg-message
--- bugzilla.orig/pkg-message	Tue May 20 16:26:34 2003
+++ bugzilla/pkg-message	Sun Feb  8 23:52:10 2004
@@ -12,11 +12,11 @@
            owner; <host> is a host there bugzilla is being setup;
            <password> is a database owner's password;
 
-  2. Change working directory to %%PREFIX%%/%%BUGZILLADIR%%/bugzilla
+  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
-  %%PREFIX%%/share/doc/bugzilla (chapter 3: Installation)
+  %%PORTDOCS%%%%DOCSDIR%% (chapter 3: Installation)
 ==========================================================================
end

>Release-Note:
>Audit-Trail:
>Unformatted:



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