diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-16 16:31:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-16 16:31:15 +0100 |
commit | 9b5f1aca6289fe1352c107f2f06b2256852fe50f (patch) | |
tree | 82d45144f2c145f42bdcee039536d0b798de90cd | |
parent | 7a62e828f7867d1035843fa499af810dfc915816 (diff) | |
download | rspamd-9b5f1aca6289fe1352c107f2f06b2256852fe50f.tar.gz rspamd-9b5f1aca6289fe1352c107f2f06b2256852fe50f.zip |
Fix redirector installation.
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d90d9c741..a6bbe1607 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1149,6 +1149,13 @@ INSTALL(FILES "contrib/lua-fun/fun.lua" DESTINATION ${PLUGINSDIR}/lua) INSTALL(FILES "contrib/publicsuffix/effective_tld_names.dat" DESTINATION "${PLUGINSDIR}") +# Redirector +IF(ENABLE_REDIRECTOR MATCHES "ON") + CONFIGURE_FILE(utils/redirector.pl.in utils/redirector.pl @ONLY) + INSTALL(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/utils/redirector.pl" + DESTINATION bin RENAME rspamd-redirector) +ENDIF(ENABLE_REDIRECTOR MATCHES "ON") + # Lua config INSTALL(CODE "FILE(MAKE_DIRECTORY \$ENV{DESTDIR}${CONFDIR}/lua)") FILE(GLOB_RECURSE LUA_CONFIGS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/conf/lua" |