summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/mysql/mysql-4.1.13-r1.ebuild')
-rw-r--r--dev-db/mysql/mysql-4.1.13-r1.ebuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/dev-db/mysql/mysql-4.1.13-r1.ebuild b/dev-db/mysql/mysql-4.1.13-r1.ebuild
index b8f070c9c2a2..482ac4c27dab 100644
--- a/dev-db/mysql/mysql-4.1.13-r1.ebuild
+++ b/dev-db/mysql/mysql-4.1.13-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-4.1.13-r1.ebuild,v 1.3 2005/07/29 11:39:14 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-4.1.13-r1.ebuild,v 1.4 2005/08/18 00:47:43 vivo Exp $
inherit eutils gnuconfig flag-o-matic versionator
@@ -280,11 +280,15 @@ src_compile() {
src_install() {
make install DESTDIR="${D}" benchdir_root="/usr/share/mysql" || die
+ enewgroup mysql 60 || die "problem adding group mysql"
+ enewuser mysql 60 /bin/false /dev/null mysql \
+ || die "problem adding user mysql"
+
diropts "-m0750"
if [[ "${PREVIOUS_DATADIR}" != "yes" ]] ; then
dodir "${DATADIR}"
keepdir "${DATADIR}"
- chown -R "${D}/${DATADIR}"
+ chown -R mysql:mysql "${D}/${DATADIR}"
fi
dodir /var/log/mysql
@@ -481,12 +485,6 @@ pkg_config() {
einfo "done"
}
-pkg_preinst() {
- enewgroup mysql 60 || die "problem adding group mysql"
- enewuser mysql 60 /bin/false /var/lib/mysql mysql \
- || die "problem adding user mysql"
-}
-
pkg_postinst() {
mysql_get_datadir