diff options
author | lukem <lukem@pkgsrc.org> | 2003-01-29 22:17:06 +0000 |
---|---|---|
committer | lukem <lukem@pkgsrc.org> | 2003-01-29 22:17:06 +0000 |
commit | 20cf1f2d1b588a2cf431b39674756c236d78d654 (patch) | |
tree | 3f3e0e4589bb77fd67cdb620541b2848a26ab2b6 /databases | |
parent | 319635ce28f5141c7f392d8a296bd9d6227cf636 (diff) | |
download | pkgsrc-20cf1f2d1b588a2cf431b39674756c236d78d654.tar.gz |
add explicit reminder about ${MYSQL_DATADIR} ownership
Diffstat (limited to 'databases')
-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 |