summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2012-07-23 23:54:57 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2012-07-23 23:54:57 +0200
commit13f6783f75117cd090b7deac450d3ed82405f3ff (patch)
treeed439221ebb81210907071135b02b0910b6d1167 /cmake
parentcb4bf952142c546fbf9c8ddf74c42d4d5db7f3fe (diff)
downloadmariadb-git-13f6783f75117cd090b7deac450d3ed82405f3ff.tar.gz
MDEV-409 : /etc/my.cnf config file overwritten during RPM installation
Fix : use attribute %config(noreplace) for /etc/my.cnf , instead of (automatically generated) %config
Diffstat (limited to 'cmake')
-rw-r--r--cmake/cpack_rpm.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/cpack_rpm.cmake b/cmake/cpack_rpm.cmake
index 8e70af6c5a9..e915e732612 100644
--- a/cmake/cpack_rpm.cmake
+++ b/cmake/cpack_rpm.cmake
@@ -65,6 +65,7 @@ SET(CPACK_RPM_SPEC_MORE_DEFINE "${CPACK_RPM_SPEC_MORE_DEFINE}
SET(CPACK_RPM_PACKAGE_REQUIRES "MariaDB-common")
SET(CPACK_RPM_server_USER_FILELIST "%ignore /etc" "%ignore /etc/init.d")
+SET(CPACK_RPM_common_USER_FILELIST "%config(noreplace) /etc/my.cnf")
SET(CPACK_RPM_client_PACKAGE_OBSOLETES "mysql-client MySQL-client MySQL-OurDelta-client")
SET(CPACK_RPM_client_PACKAGE_PROVIDES "MariaDB-client MySQL-client mysql-client")