]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- first portion of triggers
authorPaweł Gołaszewski <blues@pld-linux.org>
Wed, 26 May 2004 20:06:17 +0000 (20:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql.spec -> 1.210

mysql.spec

index 5ace5534df4349179d2650f2ede828d69a80fdbb..8676a19768973c29b35598be890efe874d4593c3 100644 (file)
@@ -1,6 +1,7 @@
 # TODO:
 # - trigger that prepares system from pre-cluster into cluster
-# - trigger to new cluster scheme
+# - trigger /etc/mysqld.conf into /etc/mysql/mysqld.conf. Solve possible 
+#   conflict with /var/lib/mysql/mysqld.conf
 #
 # Conditional build:
 %bcond_with    bdb     # Berkeley DB support
@@ -16,7 +17,7 @@ Summary(zh_CN):       MySQL
 Name:          mysql
 Group:         Applications/Databases
 Version:       4.0.20
-Release:       2.1
+Release:       2.2
 License:       GPL/LGPL
 Source0:       http://mysql.linux.cz/Downloads/MySQL-4.0/mysql-%{version}.tar.gz
 # Source0-md5: 7c75ac74e23396bd228dbc2c2d1131df
@@ -477,6 +478,21 @@ fi
 %post   libs -p /sbin/ldconfig
 %postun libs -p /sbin/ldconfig
 
+# For clusters in /etc/mysql/clusters.conf
+%triggerpostun -- mysql <= 4.0.20-2
+if [ -f "/etc/sysconfig/mysql" ]; then
+       . /etc/sysconfig/mysql
+       if [ "$MYSQL_DB_CLUSTERS" ]; then
+               for i in "$MYSQL_DB_CLUSTERS"; do
+                       echo "$i/mysqld.conf=$i" >> /etc/mysql/clusters.conf
+               done
+               echo "Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
+               echo "USE /etc/mysql/clusters.conf instead" >> /etc/sysconfig/mysql
+               echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/mysql/clusters.conf"
+               echo "Take a look at that"
+       fi
+fi
+
 %files
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/logrotate.d/mysql
This page took 0.201952 seconds and 4 git commands to generate.