summaryrefslogtreecommitdiff
path: root/mail/rspamd/patches
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2015-01-23 21:47:44 +0000
committerwiedi <wiedi@pkgsrc.org>2015-01-23 21:47:44 +0000
commit8b36f34a89c2ccf5f9f002c90aab3a439055c419 (patch)
tree0ce3aa9c81c8ed1c78aaa5f2f4a619cfbef364c7 /mail/rspamd/patches
parentc787cd64b6f2a685a3b194a400fac4031643d3cd (diff)
downloadpkgsrc-8b36f34a89c2ccf5f9f002c90aab3a439055c419.tar.gz
Update rspamd to 0.8.1
Remove patches that have been integrated upstream. 0.8.1: * Add sqlite and perl as dependencies for RPM/Debian packages (by @fatalbanana) * Remove whitelist.lua from RPM file list (by @fatalbanana) * Make Exim pass hostnames to rspamd (by @fatalbanana) * Fix building on Fedora (by @fatalbanana) * Add toggle for disabling installation of systemd units on Linux (by @fatalbanana) * Fix double format rounding that caused output corruption (reported by @fatalbanana) * Revert broken change for destructors ordering that led to memory corruption * Do not reset symbols case of settings if parsed from lua (reported by @andrejzverev) * Fix build on SunOS (by @wiedi) * Fix multiple crashes on broken DKIM DNS records * Fix critical issue with composites weights removing * Fix memory corruption in composites processing code * Ignore non-SPF TXT records when parsing SPF includes
Diffstat (limited to 'mail/rspamd/patches')
-rw-r--r--mail/rspamd/patches/patch-src_client_rspamc.c32
-rw-r--r--mail/rspamd/patches/patch-src_lua_lua__task.c15
2 files changed, 0 insertions, 47 deletions
diff --git a/mail/rspamd/patches/patch-src_client_rspamc.c b/mail/rspamd/patches/patch-src_client_rspamc.c
deleted file mode 100644
index 6515a555b3f..00000000000
--- a/mail/rspamd/patches/patch-src_client_rspamc.c
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-src_client_rspamc.c,v 1.1 2015/01/17 17:34:07 wiedi Exp $
-the struct dirent d_type is not available on SunOS
-
---- src/client/rspamc.c.orig 2014-12-22 17:57:39.000000000 +0000
-+++ src/client/rspamc.c
-@@ -853,6 +853,9 @@ rspamc_process_dir (struct event_base *e
- DIR *d;
- gint cur_req = 0;
- struct dirent *ent;
-+#if defined(__sun)
-+ struct stat sb;
-+#endif
- FILE *in;
- char filebuf[PATH_MAX];
-
-@@ -860,9 +863,14 @@ rspamc_process_dir (struct event_base *e
-
- if (d != NULL) {
- while ((ent = readdir (d))) {
-+ rspamd_snprintf (filebuf, sizeof (filebuf), "%s%c%s",
-+ name, G_DIR_SEPARATOR, ent->d_name);
-+#if defined(__sun)
-+ if (stat (filebuf, &sb)) continue;
-+ if (S_ISREG (sb.st_mode)) {
-+#else
- if (ent->d_type == DT_REG || ent->d_type == DT_UNKNOWN) {
-- rspamd_snprintf (filebuf, sizeof (filebuf), "%s%c%s",
-- name, G_DIR_SEPARATOR, ent->d_name);
-+#endif
- if (access (filebuf, R_OK) != -1) {
- in = fopen (filebuf, "r");
- if (in == NULL) {
diff --git a/mail/rspamd/patches/patch-src_lua_lua__task.c b/mail/rspamd/patches/patch-src_lua_lua__task.c
deleted file mode 100644
index a2ab23644eb..00000000000
--- a/mail/rspamd/patches/patch-src_lua_lua__task.c
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_lua_lua__task.c,v 1.1 2015/01/17 17:34:07 wiedi Exp $
-
-tm_gmtoff is not a POSIX field
---- src/lua/lua_task.c.orig 2015-01-02 11:07:18.000000000 +0000
-+++ src/lua/lua_task.c
-@@ -1765,7 +1765,9 @@ lua_task_get_date (lua_State *L)
-
- tt = tim;
- localtime_r (&tt, &t);
-+#if !defined(__sun)
- t.tm_gmtoff = 0;
-+#endif
- t.tm_isdst = 0;
- tim = mktime (&t);
- }