summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/mysql/mysql-4.1.14.ebuild')
-rw-r--r--dev-db/mysql/mysql-4.1.14.ebuild30
1 files changed, 23 insertions, 7 deletions
diff --git a/dev-db/mysql/mysql-4.1.14.ebuild b/dev-db/mysql/mysql-4.1.14.ebuild
index 2acdaa8cc6a9..7924731bc84e 100644
--- a/dev-db/mysql/mysql-4.1.14.ebuild
+++ b/dev-db/mysql/mysql-4.1.14.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.14.ebuild,v 1.17 2005/10/21 08:58:03 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-4.1.14.ebuild,v 1.18 2005/10/22 14:29:44 vivo Exp $
inherit eutils gnuconfig flag-o-matic versionator
@@ -444,13 +444,14 @@ src_install() {
chown -R mysql:mysql "${D}/${DATADIR}"
fi
- diropts "-m0755"
- dodir "/var/log/mysql"
- touch ${D}/var/log/mysql/mysql.{log,err}
- chmod 0660 ${D}/var/log/mysql/mysql.{log,err}
- keepdir "/var/log/mysql"
- chown -R mysql:mysql "${D}/var/log/mysql"
+ #diropts "-m0755"
+ #dodir "/var/log/mysql"
+ #touch ${D}/var/log/mysql/mysql.{log,err}
+ #chmod 0660 ${D}/var/log/mysql/mysql.{log,err}
+ #keepdir "/var/log/mysql"
+ #chown -R mysql:mysql "${D}/var/log/mysql"
+ diropts "-m0755"
dodir "/var/run/mysqld"
keepdir "/var/run/mysqld"
@@ -594,3 +595,18 @@ pkg_config() {
rm "${sqltmp}"
einfo "done"
}
+
+pkg_postinst() {
+ # mind at FEATURES=collision-protect before to remove this
+ #empty dirs...
+ [ -d "${ROOT}/var/log/mysql" ] \
+ || install -d -m0755 -o mysql -g mysql ${ROOT}/var/log/mysql
+
+ #secure the logfiles... does this bother anybody?
+ touch ${ROOT}/var/log/mysql/mysql.{log,err}
+ chown mysql:mysql ${ROOT}/var/log/mysql/mysql*
+ chmod 0660 ${ROOT}/var/log/mysql/mysql*
+ # secure some directories
+ chmod 0750 ${ROOT}/var/log/mysql
+}
+