summaryrefslogtreecommitdiffstats
path: root/devel/bugzilla2
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2001-10-02 19:37:42 +0000
committerphantom <phantom@FreeBSD.org>2001-10-02 19:37:42 +0000
commitdec5076a0fefaec4b70267d9f61ff66fdb1faac1 (patch)
treefa34c667053c4a2aa096b7003778dd393d271e2c /devel/bugzilla2
parent8958fe899ca96ea5c38c37bb1b049ba53a884957 (diff)
downloadFreeBSD-ports-dec5076a0fefaec4b70267d9f61ff66fdb1faac1.zip
FreeBSD-ports-dec5076a0fefaec4b70267d9f61ff66fdb1faac1.tar.gz
* don't setup README.docs. It's developers resource.
* use ${INSTALL} directly instead of ${INSTALL_DATA} to preserve exec permissions for scripts * add post-install target to display pkg-message * rewrite pkg-message to give minimal quick setup instructions
Diffstat (limited to 'devel/bugzilla2')
-rw-r--r--devel/bugzilla2/Makefile6
-rw-r--r--devel/bugzilla2/pkg-message26
-rw-r--r--devel/bugzilla2/pkg-plist1
3 files changed, 21 insertions, 12 deletions
diff --git a/devel/bugzilla2/Makefile b/devel/bugzilla2/Makefile
index 852decf..4d88435 100644
--- a/devel/bugzilla2/Makefile
+++ b/devel/bugzilla2/Makefile
@@ -52,6 +52,7 @@ 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 {} \;
.for i in ${BONSAIPERLWC}
@${PERL} -pi -e 's@#!/usr/bonsaitools/bin/perl@#!/usr/bin/perl@' \
${WRKSRC}/$i
@@ -65,10 +66,13 @@ pre-install:
do-install:
${MKDIR} ${BUGZILLADIR}
find ${WRKSRC} \! -type d -maxdepth 1 \! -name UPGRADING* -exec \
- ${INSTALL_DATA} {} ${BUGZILLADIR} \;
+ ${INSTALL} ${COPY} -m 700 {} ${BUGZILLADIR} \;
.if !defined(NOPORTSDOCS)
${MKDIR} ${DOCSDIR}
${TAR} -C ${WRKSRC}/docs -cf - . | ${TAR} --unlink -C ${DOCSDIR} -xf -
.endif
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.mk>
diff --git a/devel/bugzilla2/pkg-message b/devel/bugzilla2/pkg-message
index 2d96f15..08e022f 100644
--- a/devel/bugzilla2/pkg-message
+++ b/devel/bugzilla2/pkg-message
@@ -1,16 +1,22 @@
==========================================================================
+ Bugzilla has now been installed. To quick setup you have to:
- Bugzilla has now been installed. To get it up and running you have to:
+ 1. Create database user who has rights on bugs database manipulation
+ by following mysql commands:
- 1. Create bugs database at your MySQL server.
- 2. Run ${PREFIX}/www/data.default/checksetup.pl to create configuration
- file (you need to do it at installation time only)
- 3. Edit newly created ${PREFIX}/www/data.default/localconfig file
- to customize Bugzilla setup for your system
- 4. Run ${PREFIX}/www/data.default/checksetup.pl again to create required
- Bugzilla data directories and fix files permissions.
+ GRANT SELECT,INSERT,UPDATE,DELETE,INDEX, ALTER,CREATE,DROP,REFERENCES \
+ ON <database>.* TO <dbuser>@<host> IDENTIFIED BY '<password>';
+ FLUSH PRIVILEGES;
- For more complete instructions on installation, setup and security notes
- read Bugzilla Guide in ${PREFIX}/share/doc/bugzilla (chapter 3: Installation)
+ 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}/www/data.default
+ 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)
==========================================================================
diff --git a/devel/bugzilla2/pkg-plist b/devel/bugzilla2/pkg-plist
index 85aa9bd..521be93 100644
--- a/devel/bugzilla2/pkg-plist
+++ b/devel/bugzilla2/pkg-plist
@@ -1,4 +1,3 @@
-%%PORTDOCS%%share/doc/bugzilla/README.docs
%%PORTDOCS%%share/doc/bugzilla/html/Bugzilla-Guide.html
%%PORTDOCS%%share/doc/bugzilla/html/about.html
%%PORTDOCS%%share/doc/bugzilla/html/aboutthisguide.html
OpenPOWER on IntegriCloud