diff options
author | Daniel Black <daniel.black@au.ibm.com> | 2017-04-28 11:22:30 +1000 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-04-02 11:03:32 +0200 |
commit | 74c9872a9aae825ca6ab73feff048ff2ccb4beb8 (patch) | |
tree | cf5a5b90097607388373c58a4af0d01b8cca1857 /support-files | |
parent | 4975d2539043ed27599a7fe818c0c8c517740bf2 (diff) | |
download | mariadb-git-74c9872a9aae825ca6ab73feff048ff2ccb4beb8.tar.gz |
MDEV-10797 RPM includes init script and a systemd unit
Closes #593
Diffstat (limited to 'support-files')
-rw-r--r-- | support-files/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/support-files/CMakeLists.txt b/support-files/CMakeLists.txt index b5767432fc2..30fe61c3dc4 100644 --- a/support-files/CMakeLists.txt +++ b/support-files/CMakeLists.txt @@ -148,9 +148,11 @@ IF(UNIX) IF (INSTALL_SYSCONFDIR) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mysql-log-rotate DESTINATION ${INSTALL_SYSCONFDIR}/logrotate.d RENAME mysql COMPONENT SupportFiles) - INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/mysql.server - DESTINATION ${INSTALL_SYSCONFDIR}/init.d - RENAME mysql COMPONENT SupportFiles) + IF(NOT HAVE_SYSTEMD) + INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/mysql.server + DESTINATION ${INSTALL_SYSCONFDIR}/init.d + RENAME mysql COMPONENT SupportFiles) + ENDIF() INSTALL(FILES rpm/my.cnf DESTINATION ${INSTALL_SYSCONFDIR} COMPONENT Common) |