]> 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 18:16:56 +0000 (19:16 +0100)
CMakeLists.txt

index c2b53f30d5f372b6d634eaa85749ad3f7c83f700..eea8470b238528a905cbad943dd758acf37c0a88 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"