summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2006-01-01 13:37:43 +0000
committertrhodes <trhodes@FreeBSD.org>2006-01-01 13:37:43 +0000
commit118a1f8ba7709cd16423f858a594066b54c2bd97 (patch)
tree3293190f80be046d7489b27ea8a2b028a54c39e7 /mail
parent5e4e987aacad2fc52aebfdde73d78e71480e88c2 (diff)
downloadFreeBSD-ports-118a1f8ba7709cd16423f858a594066b54c2bd97.zip
FreeBSD-ports-118a1f8ba7709cd16423f858a594066b54c2bd97.tar.gz
Fix build after time_t change.
Requested by: kris Apologies to: mi
Diffstat (limited to 'mail')
-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