aports/testing/rmilter/config_dir.patch
Valery Kartel e0a970d758 testing/rmilter: new aport
Rspamd milter (mail filter for postfix, sendmail etc.)
https://rspamd.com
2016-02-02 11:13:17 +00:00

27 lines
568 B
Diff

--- old/include/cfg_file.h
+++ new/include/cfg_file.h
@@ -43,6 +43,12 @@
#include <dkim.h>
#endif
+#ifndef RMILTER_CONFDIR
+#define RMILTER_CONFDIR "/etc/rmilter"
+#endif
+
+#define FIXED_CONFIG_FILE RMILTER_CONFDIR "/rmilter.conf"
+
#define COND_CONNECT_FLAG 0x1
#define COND_HELO_FLAG 0x2
#define COND_ENVFROM_FLAG 0x4
--- old/src/main.c
+++ new/src/main.c
@@ -208,7 +208,7 @@
init_defaults (cfg);
if (cfg_file == NULL) {
- cfg_file = strdup ("/usr/local/etc/rmilter.conf");
+ cfg_file = strdup (FIXED_CONFIG_FILE);
}
f = fopen (cfg_file, "r");