pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/mysql-server Do the chown of MYSQL_DATADIR t...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ea1734cde352
branches: trunk
changeset: 461706:ea1734cde352
user: wiz <wiz%pkgsrc.org@localhost>
date: Fri Sep 19 14:34:57 2003 +0000
description:
Do the chown of MYSQL_DATADIR to MYSQL_USER:MYSQL_GROUP automatically in
the install file instead of only mentioning it in MESSAGE.
Closes PR 22197. tron says ok.
Bump PKGREVISION.
diffstat:
databases/mysql-server/INSTALL | 3 ++-
databases/mysql-server/MESSAGE | 7 +------
databases/mysql-server/Makefile | 6 ++++--
3 files changed, 7 insertions(+), 9 deletions(-)
diffs (53 lines):
diff -r f02021613938 -r ea1734cde352 databases/mysql-server/INSTALL
--- a/databases/mysql-server/INSTALL Fri Sep 19 13:38:08 2003 +0000
+++ b/databases/mysql-server/INSTALL Fri Sep 19 14:34:57 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.4 2003/08/30 20:22:51 jlam Exp $
+# $NetBSD: INSTALL,v 1.5 2003/09/19 14:34:57 wiz Exp $
case ${STAGE} in
POST-INSTALL)
@@ -6,5 +6,6 @@
${ECHO} "Initializing MySQL databases..."
${ECHO} "-------------------------------"
${PKG_PREFIX}/bin/mysql_install_db --force
+ ${CHOWN} -R @MYSQL_USER@:@MYSQL_GROUP@ @MYSQL_DATADIR@
;;
esac
diff -r f02021613938 -r ea1734cde352 databases/mysql-server/MESSAGE
--- a/databases/mysql-server/MESSAGE Fri Sep 19 13:38:08 2003 +0000
+++ b/databases/mysql-server/MESSAGE Fri Sep 19 14:34:57 2003 +0000
@@ -1,10 +1,5 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.6 2003/05/06 17:40:45 jmmv Exp $
-
-The MySQL directory `${MYSQL_DATADIR}' should be owned by the
-user `${MYSQL_USER}' and group `${MYSQL_GROUP}'. This can be done with:
- chown -R ${MYSQL_USER}:${MYSQL_GROUP} ${MYSQL_DATADIR}
-
+$NetBSD: MESSAGE,v 1.7 2003/09/19 14:34:57 wiz Exp $
If this is a new installation, please remember to set a password for
the MySQL root user! This is done by running both:
diff -r f02021613938 -r ea1734cde352 databases/mysql-server/Makefile
--- a/databases/mysql-server/Makefile Fri Sep 19 13:38:08 2003 +0000
+++ b/databases/mysql-server/Makefile Fri Sep 19 14:34:57 2003 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.46 2003/09/18 17:53:50 wiz Exp $
+# $NetBSD: Makefile,v 1.47 2003/09/19 14:34:58 wiz Exp $
PKGNAME= ${DISTNAME:S/-/-server-/}
-PKGREVISION= 5
+PKGREVISION= 6
SVR4_PKGNAME= mysqs
COMMENT= MySQL, a free SQL database (server)
@@ -41,6 +41,8 @@
RCD_SCRIPTS= mysqld
CONFIGURE_ARGS+= --with-mysqld-user=${MYSQL_USER}
FILES_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR}
+FILES_SUBST+= MYSQL_USER=${MYSQL_USER}
+FILES_SUBST+= MYSQL_GROUP=${MYSQL_GROUP}
MESSAGE_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR} \
MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP}
BUILD_DEFS+= MYSQL_DATADIR
Home |
Main Index |
Thread Index |
Old Index