freebsd-ports/mail/smfsav-devel/files/patch-smf-sav.c
Danilo G. Baio 004fd3218c New port: mail/smfsav-devel
mail/smfsav -> mail/smfsav-devel

This is a fork of smf-sav which was originally written by Eugene Kurmanin.
It is a "reloaded" version with heavy bugfixes maintained by Gabriele
Maria Plutzar.

WWW: http://smf-sav.anw.at/

PR:		216669
Submitted by:	Kan Sasaki <sasaki@fcc.ad.jp>
2017-08-26 01:18:16 +00:00

53 lines
1.2 KiB
C

--- smf-sav.c.orig 2013-05-25 11:48:52 UTC
+++ smf-sav.c
@@ -20,11 +20,7 @@
#endif
#include <arpa/inet.h>
-#if __linux__ || __sun__
#include <arpa/nameser.h>
-#else
-#include <bind/arpa/nameser.h>
-#endif
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
@@ -33,20 +29,12 @@
#endif
#include <grp.h>
#include <libmilter/mfapi.h>
-#if __linux__ || __sun__
#include <netdb.h>
-#else
-#include <bind/netdb.h>
-#endif
#include <netinet/in.h>
#include <pthread.h>
#include <pwd.h>
#include <regex.h>
-#if __linux__ || __sun__
#include <resolv.h>
-#else
-#include <bind/resolv.h>
-#endif
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -68,7 +56,7 @@
#define hash_size(x) ((unsigned long) 1 << x)
#define hash_mask(x) (hash_size(x) - 1)
-#define CONFIG_FILE "/etc/mail/smfs/smf-sav.conf"
+#define CONFIG_FILE "%%PREFIX%%/etc/smf-sav.conf"
#define PUBLIC_NAME "yourhost.yourdomain.tld"
#define SAFE_CALLBACK "postmaster@yourdomain.tld"
#define SYSLOG_FACILITY LOG_MAIL
@@ -81,7 +69,7 @@
#define TO_PASS_TTL 3600
#define TO_TEMPFAIL_TTL 300
#define TO_FAIL_TTL 3600
-#define WORK_SPACE "/var/run/smfs"
+#define WORK_SPACE "%%SMFSAV_RUN_DIR%%"
#define OCONN "unix:" WORK_SPACE "/smf-sav.sock"
#define USER "smfs"