From fdc07b22fe8bc707624bcb2ede74015234dfefb5 Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Thu, 23 Oct 2008 11:52:18 +0200 Subject: [PATCH] mysql: added /etc/ld.so.conf.d/mysql.conf --- mysql/.footprint | 2 ++ mysql/Pkgfile | 5 ++++- mysql/README | 7 +++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/mysql/.footprint b/mysql/.footprint index ad541c1f9..bb2c7327e 100644 --- a/mysql/.footprint +++ b/mysql/.footprint @@ -1,4 +1,6 @@ drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/ld.so.conf.d/ +-rw-r--r-- root/root etc/ld.so.conf.d/mysql.conf -rw------- root/root etc/my.cnf drwxr-xr-x root/root etc/rc.d/ -rwxr-xr-x root/root etc/rc.d/mysqld diff --git a/mysql/Pkgfile b/mysql/Pkgfile index fca5e36bb..f01329822 100644 --- a/mysql/Pkgfile +++ b/mysql/Pkgfile @@ -5,7 +5,7 @@ name=mysql version=5.0.67 -release=1 +release=2 source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.0/$name-$version.tar.gz \ my.cnf mysqld) @@ -37,4 +37,7 @@ build () { install -d -m 700 -o daemon -g daemon $PKG/var/lib/mysql install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld install -m 600 $SRC/my.cnf $PKG/etc + + install -d $PKG/etc/ld.so.conf.d + echo "/usr/lib/mysql" > $PKG/etc/ld.so.conf.d/mysql.conf } diff --git a/mysql/README b/mysql/README index 9200c85b8..cc895ceb3 100644 --- a/mysql/README +++ b/mysql/README @@ -5,13 +5,12 @@ REQUIREMENTS PRE-INSTALL POST-INSTALL -1. append /usr/lib/mysql to ld.so.conf and run ldconfig -2. run 'mysql_install_db' to build the system database +1. run 'mysql_install_db' to build the system database in /var/lib/mysql -3. run 'mysql_upgrade' to add new privileges and features +2. run 'mysql_upgrade' to add new privileges and features to the MySQL privilege tables if you have 4.x or 3.x databases -4. Set a password for the mysql root user: +3. Set a password for the mysql root user: mysqladmin -u root password PRECAUTION