From d6b1bf98238fba5aa1c626b66998ec6509eea8cf Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 11 Sep 2014 14:06:09 +0100 Subject: [PATCH] Release 0.7.0. * Use HTTP protocol for all operatiosn * Webui worker is now removed and controller works as webui * Allow to serve static files via controller by option `static_dir` * Rspamd interface is now a part of rspamd * Rspamc client has been rewritten to use HTTP and non-blocking mode allowing to start multiple operations simultaneously (see `-n` option) * Lua API was completely reworked to satisfy modern standards of LUA: * Module `lua-message` was removed * Reduced number of superglobals registered by rspamd * Many functions has been redesigned * Symbols registration is now more convenient * Users settings has been rewritten as lua plugin * Reworked headers system as gmime's based one misses many headers and is very slow to get headers values * Reorganized code and removed embedded jannsson by using UCL for all json parsing * Migrated to `librdns` for DNS resolving that improves concurrency for DNS requests significantly * Fixed tonns of bugs in MIME processing * Improved metrcis and default symbol's weights * Added new RBL's * Fixed a number of issues in the modules * Removed several memory leaks found * Fix unicode processing * Fix fuzzy checking for unicode parts * Significantly improve documentation and especially LUA API docs * See migration notes at https://rspamd.com/doc/migration.html Signed-off-by: Vsevolod Stakhov --- src/CMakeLists.txt | 1 - src/client/CMakeLists.txt | 3 --- src/libmime/CMakeLists.txt | 1 - src/libserver/CMakeLists.txt | 1 - src/libutil/CMakeLists.txt | 1 - src/lua/CMakeLists.txt | 1 - 6 files changed, 8 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ca5bc8779..df8d6c14b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -103,7 +103,6 @@ TARGET_LINK_LIBRARIES(rspamd rspamd-mime) TARGET_LINK_LIBRARIES(rspamd rspamd-server) TARGET_LINK_LIBRARIES(rspamd rspamd-util) TARGET_LINK_LIBRARIES(rspamd rspamd-lua) -ADD_PRECOMPILED_HEADER(rspamd "${CMAKE_BINARY_DIR}/src/config.h") TARGET_LINK_LIBRARIES(rspamd event) IF(HAVE_LIBEVENT2) diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 979aa8607..00e48a931 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -7,8 +7,6 @@ ELSE(NO_SHARED MATCHES "OFF") ADD_LIBRARY(rspamdclient STATIC ${LIBRSPAMDCLIENTSRC}) ENDIF(NO_SHARED MATCHES "OFF") ADD_LIBRARY(rspamdclient_static STATIC ${LIBRSPAMDCLIENTSRC}) -ADD_PRECOMPILED_HEADER(rspamdclient_static "${CMAKE_BINARY_DIR}/src/config.h") -ADD_PRECOMPILED_HEADER(rspamdclient "${CMAKE_BINARY_DIR}/src/config.h") SET_TARGET_PROPERTIES(rspamdclient PROPERTIES COMPILE_FLAGS "-fPIC") SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES COMPILE_FLAGS "-fPIC") @@ -31,7 +29,6 @@ ENDIF(NO_SHARED MATCHES "OFF") SET(RSPAMCSRC rspamc.c) ADD_EXECUTABLE(rspamc ${RSPAMCSRC}) -ADD_PRECOMPILED_HEADER(rspamc "${CMAKE_BINARY_DIR}/src/config.h") SET_TARGET_PROPERTIES(rspamc PROPERTIES COMPILE_FLAGS "-I${CMAKE_SOURCE_DIR}/lib") TARGET_LINK_LIBRARIES(rspamc rspamd-util) IF(ENABLE_STATIC MATCHES "ON") diff --git a/src/libmime/CMakeLists.txt b/src/libmime/CMakeLists.txt index 0635bb3b0..368597df6 100644 --- a/src/libmime/CMakeLists.txt +++ b/src/libmime/CMakeLists.txt @@ -19,7 +19,6 @@ TARGET_LINK_LIBRARIES(rspamd-mime rspamd-util) IF(CMAKE_COMPILER_IS_GNUCC) SET_TARGET_PROPERTIES(rspamd-mime PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB -fno-strict-aliasing") ENDIF(CMAKE_COMPILER_IS_GNUCC) -ADD_PRECOMPILED_HEADER(rspamd-mime "${CMAKE_BINARY_DIR}/src/config.h") IF(NO_SHARED MATCHES "OFF") INSTALL(TARGETS rspamd-mime diff --git a/src/libserver/CMakeLists.txt b/src/libserver/CMakeLists.txt index ee0174ee4..02713af79 100644 --- a/src/libserver/CMakeLists.txt +++ b/src/libserver/CMakeLists.txt @@ -37,7 +37,6 @@ SET(CLASSIFIERSSRC ../classifiers/classifiers.c #ENDIF(WITH_SQLITE) ADD_LIBRARY(rspamd-server ${LINK_TYPE} ${LIBRSPAMDSERVERSRC} ${TOKENIZERSSRC} ${CLASSIFIERSSRC}) -ADD_PRECOMPILED_HEADER(rspamd-server "${CMAKE_BINARY_DIR}/src/config.h") IF(NOT DEBIAN_BUILD) SET_TARGET_PROPERTIES(rspamd-server PROPERTIES VERSION ${RSPAMD_VERSION}) ENDIF(NOT DEBIAN_BUILD) diff --git a/src/libutil/CMakeLists.txt b/src/libutil/CMakeLists.txt index 7597a9f6e..7a8b3add5 100644 --- a/src/libutil/CMakeLists.txt +++ b/src/libutil/CMakeLists.txt @@ -21,7 +21,6 @@ IF(CMAKE_COMPILER_IS_GNUCC) SET_TARGET_PROPERTIES(rspamd-util PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") ENDIF(CMAKE_COMPILER_IS_GNUCC) -ADD_PRECOMPILED_HEADER(rspamd-util "${CMAKE_BINARY_DIR}/src/config.h") TARGET_LINK_LIBRARIES(rspamd-util ${RSPAMD_REQUIRED_LIBRARIES}) TARGET_LINK_LIBRARIES(rspamd-util pcre) TARGET_LINK_LIBRARIES(rspamd-util ucl) diff --git a/src/lua/CMakeLists.txt b/src/lua/CMakeLists.txt index 5e2df2419..b3d8bc340 100644 --- a/src/lua/CMakeLists.txt +++ b/src/lua/CMakeLists.txt @@ -18,7 +18,6 @@ SET(LUASRC lua_common.c lua_ip.c) ADD_LIBRARY(rspamd-lua ${LINK_TYPE} ${LUASRC}) -ADD_PRECOMPILED_HEADER(rspamd-lua "${CMAKE_BINARY_DIR}/src/config.h") SET_TARGET_PROPERTIES(rspamd-lua PROPERTIES VERSION ${RSPAMD_VERSION}) TARGET_LINK_LIBRARIES(rspamd-lua rspamd-util) TARGET_LINK_LIBRARIES(rspamd-lua hiredis) -- 2.39.5