1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Fix the fix of the compilation of the milter interface.

This commit is contained in:
Jean-Yves Lefort 2005-06-28 18:57:42 +00:00
parent 685d5f84cc
commit d873ba09a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138132
2 changed files with 28 additions and 30 deletions

View File

@ -1,28 +0,0 @@
--- clamav-milter/clamav-milter.c.orig Tue Jun 28 00:20:39 2005
+++ clamav-milter/clamav-milter.c Tue Jun 28 00:22:33 2005
@@ -1054,9 +1054,11 @@
if(cfgopt(copt, "LogVerbose")) {
logVerbose = 1;
+#if defined(SENDMAIL_VERSION_A) && defined(SENDMAIL_VERSION_B)
#if ((SENDMAIL_VERSION_A > 8) || ((SENDMAIL_VERSION_A == 8) && (SENDMAIL_VERSION_B >= 13)))
smfi_setdbg(6);
#endif
+#endif
}
use_syslog = 1;
@@ -1573,11 +1575,13 @@
return EX_UNAVAILABLE;
}
+#if defined(SENDMAIL_VERSION_A) && defined(SENDMAIL_VERSION_B)
#if ((SENDMAIL_VERSION_A > 8) || ((SENDMAIL_VERSION_A == 8) && (SENDMAIL_VERSION_B >= 13)))
if(smfi_opensocket(1) == MI_FAILURE) {
cli_errmsg("Can't open/create %s\n", port);
return EX_CONFIG;
}
+#endif
#endif
signal(SIGPIPE, SIG_IGN); /* libmilter probably does this as well */

View File

@ -1,5 +1,5 @@
--- configure.orig Sun Jun 19 21:56:23 2005
+++ configure Thu Jun 23 14:57:09 2005
--- configure.orig Thu Jun 23 23:12:00 2005
+++ configure Tue Jun 28 20:53:10 2005
@@ -10914,6 +10914,9 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
@ -20,3 +20,29 @@
#include <resolv.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
@@ -11195,19 +11201,25 @@
sendmailver_c=`echo $sendmailver | awk -F. '{printf $3}'`
+if echo "$sendmailver_a" | egrep -q '^[0-9]+$'; then
cat >>confdefs.h <<_ACEOF
#define SENDMAIL_VERSION_A $sendmailver_a
_ACEOF
+fi
+if echo "$sendmailver_b" | egrep -q '^[0-9]+$'; then
cat >>confdefs.h <<_ACEOF
#define SENDMAIL_VERSION_B $sendmailver_b
_ACEOF
+fi
+if echo "$sendmailver_c" | egrep -q '^[0-9]+$'; then
cat >>confdefs.h <<_ACEOF
#define SENDMAIL_VERSION_C $sendmailver_c
_ACEOF
+fi
fi
fi