diff options
| author | Valery Kartel <valery.kartel@gmail.com> | 2016-01-25 01:01:54 +0200 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-02-02 11:13:17 +0000 |
| commit | e0a970d758b6a0f7cd4101057fd7b74151a43c26 (patch) | |
| tree | 86ce1eebcd2df21c19b21f0ec52d78559d399069 /testing/rmilter/config_dir.patch | |
| parent | 380f84d5ef54b75bda5296d44b07dce2c8152881 (diff) | |
| download | aports-e0a970d758b6a0f7cd4101057fd7b74151a43c26.tar.bz2 aports-e0a970d758b6a0f7cd4101057fd7b74151a43c26.tar.xz | |
testing/rmilter: new aport
Rspamd milter (mail filter for postfix, sendmail etc.)
https://rspamd.com
Diffstat (limited to 'testing/rmilter/config_dir.patch')
| -rw-r--r-- | testing/rmilter/config_dir.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/rmilter/config_dir.patch b/testing/rmilter/config_dir.patch new file mode 100644 index 0000000000..479cd327ce --- /dev/null +++ b/testing/rmilter/config_dir.patch @@ -0,0 +1,26 @@ +--- 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"); |
