diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-09-15 20:05:19 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-09-15 20:05:19 +0400 |
commit | 1c5d98dc2f7b717cf95ca9602320498557b805f6 (patch) | |
tree | 833800b345757dcf040087af1bc2bc7b2b61eae3 /CMakeLists.txt | |
parent | 084fbe13f3fe730128023e0addaab78dc344a20d (diff) | |
download | rspamd-1c5d98dc2f7b717cf95ca9602320498557b805f6.tar.gz rspamd-1c5d98dc2f7b717cf95ca9602320498557b805f6.zip |
* Add start script for linux systems
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 17d826465..81d8bf58d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -762,6 +762,11 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E make_directory ${DESTDIR}/var/run/rspamd/)") INSTALL(CODE "EXECUTE_PROCESS(COMMAND chown ${RSPAMD_USER}:${RSPAMD_GROUP} ${DESTDIR}/var/run/rspamd/)") ENDIF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") +IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") + INSTALL(PROGRAMS linux/rspamd DESTINATION etc/init.d) + INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E make_directory ${DESTDIR}/var/run/rspamd/)") + INSTALL(CODE "EXECUTE_PROCESS(COMMAND chown ${RSPAMD_USER}:${RSPAMD_GROUP} ${DESTDIR}/var/run/rspamd/)") +ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux") # CPack section SET(CPACK_DEBIAN_PACKAGE_DEPENDS libevent1 libgmime-2.0-2a) |