ports/142596: [patch] japanese/bugzilla use $SUB_FILES to dynamically adjust pkg-message
Sevan Janiyan
venture37 at geeklan.co.uk
Sun Jan 10 21:40:02 UTC 2010
>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 <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)
-==========================================================================
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 <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)
+==========================================================================
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list