aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [Minor] contrib/libev: avoid absolute path for headerPeter Wu2020-01-201-2/+3
| | | | | * Avoid including the absolute header path to permit reproducible builds invariant of the build direvtory.
* [Minor] Debian: set fixfilepath reproducible build optionPeter Wu2020-01-201-0/+1
| | | | | | | | | * Enable -ffile-prefix-map to ensure that assert statements in contrib/libev/ev.c and other places do not store the full file path. This ensures reproducible builds, invariant of the build directory. Supported since dpkg 1.19.1, including Debian buster and Ubuntu 19.04. * Enable all hardening features while at it, this adds bindnow only. See https://manpages.debian.org/buster/dpkg-dev/dpkg-buildflags.1.en.html
* [Minor] debian/rules: move makefile targets (no functional change)Peter Wu2020-01-201-7/+5
| | | | | Remove .PHONY marker for consistency. Move override_dh_strip before the target dh_makeshlibs as is is executed right before that.
* [Minor] Debian: update arches and versions in build dependenciesPeter Wu2020-01-202-5/+13
| | | | | | | | | | | | * glib 2.28 is the current minimum declared in CMakeLists.txt, but even Jessie satisfies that requirement. Remove it. * Use DEB_HOST_ARCH for "The Debian architecture of the host machine" instead of DEB_TARGET_ARCH which is relevant for cross-compiling only. * Update luajit arches based on https://packages.debian.org/sid/luajit * Added arm64, mips64el, ppc64, ppc64el (stretch-backports / buster). * Removed kfreebsd-i386 and 32-bit powerpc (removed in Jessie). * Removed powerpcspe (unofficial port with outdated luajit). * Maintained mips (removed after buster).
* Merge pull request #3226 from Lekensteyn/dist-simplifyVsevolod Stakhov2020-01-201-18/+14
|\ | | | | [Minor] Simplify creation of dist tarball that is reproducible
| * [Minor] Simplify creation of dist tarball that is reproduciblePeter Wu2020-01-181-18/+14
| | | | | | | | | | | | Instead of archiving files from the working tree, distribute files as committed. Use the 'git archive' command to achieve this, it results in a reproducible tarball with the same timestamp as the latest commit.
* | [Minor] Lua_logger: Fix printing of sparse tablesVsevolod Stakhov2020-01-201-3/+18
| |
* | [Minor] Filter crap from javascriptVsevolod Stakhov2020-01-201-4/+4
| |
* | [Minor] Update docsVsevolod Stakhov2020-01-201-0/+8
| |
* | [Minor] Lua_text: Support patternsVsevolod Stakhov2020-01-201-0/+48
| |
* | [Minor] Lua_text: Add exclude_chars methodVsevolod Stakhov2020-01-201-0/+77
| |
* | [Project] Lua_content: Rework JS parsingVsevolod Stakhov2020-01-201-61/+53
| |
* | [Minor] Lua_content: Implement plain strings unescapeVsevolod Stakhov2020-01-191-2/+19
| |
* | [Minor] Lua_content: Make text/urls extraction optionalVsevolod Stakhov2020-01-191-3/+13
| |
* | Merge pull request #3227 from Lekensteyn/debian-packagingVsevolod Stakhov2020-01-192-7/+26
|\ \ | | | | | | Bring Debian packaging up-to-date
| * | [Minor] Debian: remove unnecessary packagesPeter Wu2020-01-181-3/+1
| | | | | | | | | | | | | | | | | | dh-systemd is a transitional package and moved into debhelper, so remove it. This is supported since Debian Stretch. This change has to be reversed if Debian Jessie or Ubuntu Xenial have to be supported.
| * | [Minor] Debian: use non-deprecated libpcre2-dev packagePeter Wu2020-01-181-1/+1
| | | | | | | | | | | | See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911935
| * | [Minor] Debian: Expand Build-Depends line and sort itPeter Wu2020-01-181-1/+19
| | |
| * | [Minor] Debian: remove unused cmake optionsPeter Wu2020-01-181-4/+0
| | | | | | | | | | | | | | | GD (off by default) and TORCH (on by default) were removed in 2.0, the examples option (off by default) was removed in 2.2.
| * | [Minor] Debian: add missing sodium dependencyPeter Wu2020-01-181-1/+1
| | | | | | | | | | | | | | | Required since rspamd 2.0. Even Debian Jessie ships 1.0.0, so add it unconditionally.
| * | [Minor] Debian: Enable Hyperscan and parallel buildsPeter Wu2020-01-182-3/+10
| |/ | | | | | | | | | | | | | | | | Debian 9 (Stretch) ships with Hyperscan 4.4.1, Ubuntu 18.04 ships with Hyperscan 4.7.0. Follow rspamd's official recommendation and enable support for these. The --parallel option has been supported since 2009 and works perfectly with CMake, so enable it by default.
* | [Project] Lua_content: Implement JS extraction from PDFVsevolod Stakhov2020-01-181-3/+73
| |
* | [Minor] Check type of resourcesVsevolod Stakhov2020-01-181-0/+7
|/
* Merge pull request #3224 from korgoth1/masterVsevolod Stakhov2020-01-171-6/+0
|\ | | | | [Test] excluding external relay ip example from spf.conf
| * [Test] excluding external relay ip example from spf.confkorgoth12020-01-171-6/+0
| |
* | Merge pull request #3220 from cgzones/compiler_warningsVsevolod Stakhov2020-01-173-12/+13
|\ \ | | | | | | [Minor] Fix some compiler warnings
| * | [Minor] do not pass invalid C warnings to C++ flagsChristian Göttsche2020-01-161-2/+4
| | | | | | | | | | | | | | | cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++ cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
| * | [Minor] use modern name -Wextra instead of -WChristian Göttsche2020-01-161-5/+5
| | |
| * | [Minor] silence redefinition of macroChristian Göttsche2020-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [74/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpprint.c.o In file included from ../contrib/lua-lpeg/lpprint.c:11: ../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined 15 | #define NDEBUG | <command-line>: note: this is the location of the previous definition [75/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpcap.c.o In file included from ../contrib/lua-lpeg/lpcap.h:9, from ../contrib/lua-lpeg/lpcap.c:9: ../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined 15 | #define NDEBUG | <command-line>: note: this is the location of the previous definition [77/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpvm.c.o In file included from ../contrib/lua-lpeg/lpcap.h:9, from ../contrib/lua-lpeg/lpvm.c:15: ../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined 15 | #define NDEBUG | <command-line>: note: this is the location of the previous definition [79/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpcode.c.o In file included from ../contrib/lua-lpeg/lpcode.c:12: ../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined 15 | #define NDEBUG | <command-line>: note: this is the location of the previous definition [81/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lptree.c.o In file included from ../contrib/lua-lpeg/lptree.c:15: ../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined 15 | #define NDEBUG | <command-line>: note: this is the location of the previous definition
| * | [Minor] silence -Wmisleading-indentation in contrib/snowball/Christian Göttsche2020-01-161-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ../contrib/snowball/compiler/analyser.c: In function ‘check_name_type’: ../contrib/snowball/compiler/analyser.c:210:19: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 210 | case 'r': if (p->type == t_routine || | ^~ ../contrib/snowball/compiler/analyser.c:211:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 211 | p->type == t_external) return; break; | ^~~~~ ../contrib/snowball/compiler/analyser.c: In function ‘read_program’: ../contrib/snowball/compiler/analyser.c:859:21: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 859 | if (q->used && q->definition == 0) error4(a, q); break; | ^~ ../contrib/snowball/compiler/analyser.c:859:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 859 | if (q->used && q->definition == 0) error4(a, q); break; | ^~~~~ ../contrib/snowball/compiler/analyser.c:861:21: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 861 | if (q->used && q->grouping == 0) error4(a, q); break; | ^~ ../contrib/snowball/compiler/analyser.c:861:68: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 861 | if (q->used && q->grouping == 0) error4(a, q); break; | ^~~~~
* | | [Minor] Another try to fix shiftingVsevolod Stakhov2020-01-172-3/+6
| | |
* | | [Minor] Fix race condition in slow timerVsevolod Stakhov2020-01-171-9/+24
| | |
* | | [Minor] Another try to fix urls shifting when decodingVsevolod Stakhov2020-01-172-4/+17
| | |
* | | [Minor] Reset slow flag on checks pauseVsevolod Stakhov2020-01-171-0/+10
| | |
* | | [Minor] Forgot in the previous commitVsevolod Stakhov2020-01-171-0/+9
| | |
* | | Merge pull request #3223 from moisseev/webuiVsevolod Stakhov2020-01-177-1/+17
|\ \ \ | | | | | | | | [WebUI] Update favicon
| * | | [WebUI] Update faviconmoisseev2020-01-167-1/+17
| | | | | | | | | | | | | | | | Issue #3207
* | | | [Minor] Postpone log closing unless we have opened a new oneVsevolod Stakhov2020-01-171-6/+39
| | | |
* | | | Merge pull request #3215 from korgoth1/masterVsevolod Stakhov2020-01-165-12/+16
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| [Feature] SPF: Convert external IP to a map
| * | [Test] SPF external IP mapkorgoth12020-01-161-4/+5
| | |
| * | [Test] SPF external IP mapkorgoth12020-01-163-7/+5
| | |
| * | [Test] SPF external IP mapkorgoth12020-01-163-30/+3
| | |
| * | [Test] SPF external IP mapkorgoth12020-01-151-1/+831
| | |
| * | [Test] SPF external IP mapkorgoth12020-01-155-833/+35
| | |
* | | [Minor] Lua_task: Remove unused crapVsevolod Stakhov2020-01-161-23/+6
| |/ |/| | | | | Issue: #3220
* | Merge pull request #3219 from cgzones/interface_cruftVsevolod Stakhov2020-01-162-20/+0
|\ \ | | | | | | [Minor] remove cruft files from webui
| * | [Minor] remove cruft files from webuiChristian Göttsche2020-01-162-20/+0
| | |
* | | Merge pull request #3218 from cgzones/no_replxxVsevolod Stakhov2020-01-161-0/+6
|\ \ \ | | | | | | | | [Minor] fix compilation without replxx
| * | | [Minor] fix compilation without replxxChristian Göttsche2020-01-161-0/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ../src/rspamadm/lua_repl.c: In function ‘rspamadm_lua_run_repl’: ../src/rspamadm/lua_repl.c:615:8: warning: unused variable ‘i’ [-Wunused-variable] 615 | gsize i; | ^ ../src/rspamadm/lua_repl.c:614:11: warning: unused variable ‘tb’ [-Wunused-variable] 614 | GString *tb = NULL; | ^~ ../src/rspamadm/lua_repl.c:613:11: warning: unused variable ‘is_multiline’ [-Wunused-variable] 613 | gboolean is_multiline = FALSE; | ^~~~~~~~~~~~ ../src/rspamadm/lua_repl.c: In function ‘rspamadm_lua’: ../src/rspamadm/lua_repl.c:1007:3: warning: implicit declaration of function ‘replxx_set_max_history_size’ [-Wimplicit-function-declaration] 1007 | replxx_set_max_history_size (rx_instance, max_history); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/rspamadm/lua_repl.c:1007:32: error: ‘rx_instance’ undeclared (first use in this function) 1007 | replxx_set_max_history_size (rx_instance, max_history); | ^~~~~~~~~~~ ../src/rspamadm/lua_repl.c:1007:32: note: each undeclared identifier is reported only once for each function it appears in ../src/rspamadm/lua_repl.c:1008:3: warning: implicit declaration of function ‘replxx_history_load’ [-Wimplicit-function-declaration] 1008 | replxx_history_load (rx_instance, histfile); | ^~~~~~~~~~~~~~~~~~~ ../src/rspamadm/lua_repl.c:1010:3: warning: implicit declaration of function ‘replxx_history_save’ [-Wimplicit-function-declaration] 1010 | replxx_history_save (rx_instance, histfile); | ^~~~~~~~~~~~~~~~~~~
* | | Merge pull request #3217 from cgzones/exampledirVsevolod Stakhov2020-01-163-8/+1
|\ \ \ | | | | | | | | [Minor] remove unused examplesdir