]> source.dussan.org Git - rspamd.git/commitdiff
Fix redirector installation.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 16 Jun 2015 15:31:15 +0000 (16:31 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 16 Jun 2015 15:31:15 +0000 (16:31 +0100)
CMakeLists.txt

index d90d9c7411c4edb31538ec282e5daf3e67afe9c5..a6bbe1607cd16a97e66348725c7208d21fcfb8d2 100644 (file)
@@ -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"