summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/milter-skem/Makefile8
-rw-r--r--mail/milter-skem/files/timet.patch22
2 files changed, 29 insertions, 1 deletions
diff --git a/mail/milter-skem/Makefile b/mail/milter-skem/Makefile
index 7be772f..f77dff5 100644
--- a/mail/milter-skem/Makefile
+++ b/mail/milter-skem/Makefile
@@ -28,7 +28,11 @@ OPTIONS= SKEM_MILTER421 "Sendmail was built with -D_FFR_MILTER_421" off \
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 700011
+EXTRA_PATCHES= files/timet.patch
+.endif
.if defined(PTHREAD_LIBS)
MAKE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
@@ -42,3 +46,5 @@ MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
MAKE_ARGS+= -D$o
. endif
.endfor
+
+.include <bsd.port.post.mk>
diff --git a/mail/milter-skem/files/timet.patch b/mail/milter-skem/files/timet.patch
new file mode 100644
index 0000000..d125f07
--- /dev/null
+++ b/mail/milter-skem/files/timet.patch
@@ -0,0 +1,22 @@
+--- cleanup.c Sun Jan 1 08:19:39 2006
++++ newcleanup.c Sun Jan 1 08:19:18 2006
+@@ -15,6 +15,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <sys/types.h>
++#include <inttypes.h>
+ #include <dirent.h>
+ #include <sys/stat.h>
+ #include <sys/time.h>
+@@ -50,9 +51,9 @@
+ return NULL;
+ }
+ }
+- syslog(LOG_DEBUG, "periodic cleanup: period %ld seconds%s, "
++ syslog(LOG_DEBUG, "periodic cleanup: period %jd seconds%s, "
+ "permanent bans removed after %u seconds since last seen",
+- O.cleanupperiod.tv_sec,
++ (intmax_t)O.cleanupperiod.tv_sec,
+ O.cleanupperiod.tv_sec ? "" : " (one shot)",
+ O.permcleanup);
+ for (result = 0, select_failures = 0;
OpenPOWER on IntegriCloud