diff options
author | Tom Rhodes <trhodes@FreeBSD.org> | 2006-01-01 13:37:43 +0000 |
---|---|---|
committer | Tom Rhodes <trhodes@FreeBSD.org> | 2006-01-01 13:37:43 +0000 |
commit | 365795074e438b616d29ac86e649ccc9f0051a73 (patch) | |
tree | 5e50e0ed5cdaab40facf73105969d7f093ac977d /mail/milter-skem | |
parent | a38669f695dd5096ffefc65c7bb8ec123bbedcf2 (diff) |
Notes
Diffstat (limited to 'mail/milter-skem')
-rw-r--r-- | mail/milter-skem/Makefile | 8 | ||||
-rw-r--r-- | mail/milter-skem/files/timet.patch | 22 |
2 files changed, 29 insertions, 1 deletions
diff --git a/mail/milter-skem/Makefile b/mail/milter-skem/Makefile index 7be772fd45f1..f77dff599573 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 000000000000..d125f076815b --- /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; |