From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jan 10 21:40:02 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D7A11065696 for ; Sun, 10 Jan 2010 21:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C57BC8FC14 for ; Sun, 10 Jan 2010 21:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o0ALe1vx064964 for ; Sun, 10 Jan 2010 21:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o0ALe13k064963; Sun, 10 Jan 2010 21:40:01 GMT (envelope-from gnats) Resent-Date: Sun, 10 Jan 2010 21:40:01 GMT Resent-Message-Id: <201001102140.o0ALe13k064963@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sevan Janiyan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8952106566C for ; Sun, 10 Jan 2010 21:32:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D89008FC13 for ; Sun, 10 Jan 2010 21:32:58 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o0ALWwsN090460 for ; Sun, 10 Jan 2010 21:32:58 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o0ALWwBa090459; Sun, 10 Jan 2010 21:32:58 GMT (envelope-from nobody) Message-Id: <201001102132.o0ALWwBa090459@www.freebsd.org> Date: Sun, 10 Jan 2010 21:32:58 GMT From: Sevan Janiyan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/142596: [patch] japanese/bugzilla use $SUB_FILES to dynamically adjust pkg-message X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jan 2010 21:40:02 -0000 >Number: 142596 >Category: ports >Synopsis: [patch] japanese/bugzilla use $SUB_FILES to dynamically adjust pkg-message >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 Jan 10 21:40:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Sevan Janiyan >Release: >Organization: >Environment: >Description: >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/japanese/bugzilla/Makefile,v retrieving revision 1.7 diff -u -r1.7 Makefile --- Makefile 26 Sep 2007 01:40:46 -0000 1.7 +++ Makefile 10 Jan 2010 20:46:06 -0000 @@ -50,7 +50,8 @@ NO_BUILD= yes BINMODE= 700 -PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message +SUB_LIST= BUGZILLADIR=${BUGZILLADIR} PORTDOCS=${PORTDOCS} BUGZILLADIR?= www/data/bugzilla BUGZILLADOCS= html images txt rel_notes.txt @@ -123,11 +124,6 @@ .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} Index: pkg-message =================================================================== RCS file: pkg-message diff -N pkg-message --- pkg-message 2 Mar 2005 22:54:55 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,23 +0,0 @@ -========================================================================== - 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 .* TO @ \ - IDENTIFIED BY ''; - FLUSH PRIVILEGES; - - where is a bugs database name; is a bugs database - owner; is a host there bugzilla is being setup; - 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) -========================================================================== Index: files/pkg-message.in =================================================================== RCS file: files/pkg-message.in diff -N files/pkg-message.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/pkg-message.in 10 Jan 2010 20:46:06 -0000 @@ -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 .* TO @ \ + IDENTIFIED BY ''; + FLUSH PRIVILEGES; + + where is a bugs database name; is a bugs database + owner; is a host there bugzilla is being setup; + 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) +========================================================================== >Release-Note: >Audit-Trail: >Unformatted: