diff options
author | lukem <lukem> | 2003-01-29 22:17:06 +0000 |
---|---|---|
committer | lukem <lukem> | 2003-01-29 22:17:06 +0000 |
commit | 257d78b720662d7484a49616bf54c425a1a86eb9 (patch) | |
tree | 3f3e0e4589bb77fd67cdb620541b2848a26ab2b6 /databases/mysql-server | |
parent | d83fb242333a9eec96bdbfcd58139f1293f4a6d5 (diff) | |
download | pkgsrc-257d78b720662d7484a49616bf54c425a1a86eb9.tar.gz |
add explicit reminder about ${MYSQL_DATADIR} ownership
Diffstat (limited to 'databases/mysql-server')
-rw-r--r-- | databases/mysql-server/MESSAGE | 5 | ||||
-rw-r--r-- | databases/mysql-server/Makefile | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/databases/mysql-server/MESSAGE b/databases/mysql-server/MESSAGE index 325ec08525e..579740d9a02 100644 --- a/databases/mysql-server/MESSAGE +++ b/databases/mysql-server/MESSAGE @@ -4,3 +4,8 @@ the MySQL root user! This is done by running both: ${PREFIX}/bin/mysqladmin -h `hostname` -u root -p password 'new-password' See the manual for more instructions. + +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} + diff --git a/databases/mysql-server/Makefile b/databases/mysql-server/Makefile index c6becc99f72..ce48ce97e74 100644 --- a/databases/mysql-server/Makefile +++ b/databases/mysql-server/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.35 2003/01/28 22:03:12 jlam Exp $ +# $NetBSD: Makefile,v 1.36 2003/01/29 22:17:06 lukem Exp $ PKGNAME= ${DISTNAME:S/-/-server-/} PKGREVISION= 3 @@ -42,6 +42,8 @@ PKG_GROUPS= ${MYSQL_GROUP} RCD_SCRIPTS= mysqld CONFIGURE_ARGS+= --with-mysqld-user=${MYSQL_USER} FILES_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR} +MESSAGE_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR} \ + MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP} BUILD_DEFS+= MYSQL_DATADIR MAKE_DIRS_PERMS+= ${MYSQL_DATADIR} ${MYSQL_USER} ${MYSQL_GROUP} 0700 |