From f937577fb883c64586367ee22e0048b055a2ec40 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 16 Jun 2015 16:31:15 +0100 Subject: [PATCH] Fix redirector installation. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2b53f30d..eea8470b2 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" -- 2.39.5