diff options
Diffstat (limited to 'mail/sendmail/files')
-rw-r--r-- | mail/sendmail/files/patch-aa | 27 | ||||
-rw-r--r-- | mail/sendmail/files/pkg-milter | 2 | ||||
-rw-r--r-- | mail/sendmail/files/sharedlibrary.m4 | 35 |
3 files changed, 50 insertions, 14 deletions
diff --git a/mail/sendmail/files/patch-aa b/mail/sendmail/files/patch-aa index fabf2051d2cb..8f725c56dc42 100644 --- a/mail/sendmail/files/patch-aa +++ b/mail/sendmail/files/patch-aa @@ -104,19 +104,19 @@ diff -ur mail.local/mail.local.8.orig mail.local/mail.local.8 getservbyname(3), comsat(8), diff -ur mail.local/mail.local.c.orig mail.local/mail.local.c ---- mail.local/mail.local.c.orig Mon Nov 3 19:38:29 2003 -+++ mail.local/mail.local.c Tue May 18 07:56:42 2004 +--- mail.local/mail.local.c.orig Mon Nov 1 21:42:42 2004 ++++ mail.local/mail.local.c Thu Dec 16 05:25:26 2004 @@ -144,6 +144,8 @@ bool HoldErrs = false; /* Hold errors in ErrBuf */ bool LMTPMode = false; bool BounceQuota = false; /* permanent error when over quota */ +bool NoBiff = false; +bool NoFsync = false; + bool CloseMBDB = false; char *HomeMailFile = NULL; /* store mail in homedir */ - #if HASHSPOOL -@@ -205,9 +207,9 @@ - exit(EX_CONFIG); +@@ -223,9 +225,9 @@ + sm_exit(EX_CONFIG); } #if HASHSPOOL - while ((ch = getopt(argc, argv, "7bdD:f:h:r:lH:p:n")) != -1) @@ -127,7 +127,7 @@ diff -ur mail.local/mail.local.c.orig mail.local/mail.local.c #endif /* HASHSPOOL */ { switch(ch) -@@ -216,6 +218,10 @@ +@@ -234,6 +236,10 @@ EightBitMime = false; break; @@ -138,7 +138,7 @@ diff -ur mail.local/mail.local.c.orig mail.local/mail.local.c case 'b': /* bounce mail when over quota. */ BounceQuota = true; break; -@@ -307,6 +313,10 @@ +@@ -325,6 +331,10 @@ break; #endif /* HASHSPOOL */ @@ -149,7 +149,7 @@ diff -ur mail.local/mail.local.c.orig mail.local/mail.local.c case '?': default: usage(); -@@ -316,7 +326,8 @@ +@@ -334,7 +344,8 @@ argv += optind; /* initialize biff structures */ @@ -159,7 +159,7 @@ diff -ur mail.local/mail.local.c.orig mail.local/mail.local.c err = sm_mbdb_initialize(mbdbname); if (err != EX_OK) -@@ -1239,6 +1250,7 @@ +@@ -1256,6 +1267,7 @@ /* Get the starting offset of the new message */ curoff = lseek(mbfd, (off_t) 0, SEEK_END); @@ -167,7 +167,7 @@ diff -ur mail.local/mail.local.c.orig mail.local/mail.local.c (void) sm_snprintf(biffmsg, sizeof(biffmsg), "%s@%lld\n", name, (LONGLONG_T) curoff); -@@ -1301,7 +1313,7 @@ +@@ -1318,7 +1330,7 @@ } /* Flush to disk, don't wait for update. */ @@ -176,7 +176,7 @@ diff -ur mail.local/mail.local.c.orig mail.local/mail.local.c { mailerr("450 4.2.0", "%s: %s", path, sm_errstring(errno)); err3: -@@ -1368,7 +1380,7 @@ +@@ -1385,7 +1397,7 @@ /* Attempt to truncate back to pre-write size */ goto err3; } @@ -185,14 +185,13 @@ diff -ur mail.local/mail.local.c.orig mail.local/mail.local.c notifybiff(biffmsg); if (setreuid(0, 0) < 0) -@@ -1547,7 +1559,8 @@ +@@ -1564,7 +1576,7 @@ usage() { ExitVal = EX_USAGE; - mailerr(NULL, "usage: mail.local [-7] [-b] [-d] [-l] [-f from|-r from] [-h filename] user ..."); + mailerr(NULL, "usage: mail.local [-7] [-b] [-B] [-d] [-l] [-s] [-f from|-r from] [-h filename] user ..."); -+ - exit(ExitVal); + sm_exit(ExitVal); } diff -ur rmail/rmail.c src/contrib/sendmail/rmail/rmail.c diff --git a/mail/sendmail/files/pkg-milter b/mail/sendmail/files/pkg-milter index ef14e1b504df..dd4fa3e02f13 100644 --- a/mail/sendmail/files/pkg-milter +++ b/mail/sendmail/files/pkg-milter @@ -1,6 +1,8 @@ include/libmilter/mfapi.h include/libmilter/mfdef.h lib/libmilter.a +%%MILTER_SHARED%%lib/libmilter.so.%%MILTER_SOVER%% +%%MILTER_SHARED%%lib/libmilter.so @dirrm include/libmilter %%PORTDOCS%%share/doc/sendmail/MILTER %%PORTDOCS%%share/doc/sendmail/libmilter/api.html diff --git a/mail/sendmail/files/sharedlibrary.m4 b/mail/sendmail/files/sharedlibrary.m4 new file mode 100644 index 000000000000..6bc06b598ab0 --- /dev/null +++ b/mail/sendmail/files/sharedlibrary.m4 @@ -0,0 +1,35 @@ +divert(-1) +# +# Copyright (c) 1999-2001 Sendmail, Inc. and its suppliers. +# All rights reserved. +# +# By using this file, you agree to the terms and conditions set +# forth in the LICENSE file which can be found at the top level of +# the sendmail distribution. +# +# +# Definitions for Makefile construction for sendmail +# +# $Id: library.m4,v 8.10 2001/02/14 04:39:38 gshapiro Exp $ +# +divert(0)dnl +include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/links.m4')dnl +bldLIST_PUSH_ITEM(`bldC_PRODUCTS', bldCURRENT_PRODUCT)dnl +bldPUSH_TARGET(bldCURRENT_PRODUCT.so)dnl +bldPUSH_INSTALL_TARGET(`install-'bldCURRENT_PRODUCT)dnl +bldPUSH_CLEAN_TARGET(bldCURRENT_PRODUCT`-clean')dnl + +include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/defines.m4') +divert(bldTARGETS_SECTION) +bldCURRENT_PRODUCT.so: ${BEFORE} ${bldCURRENT_PRODUCT`OBJS'} + ${LD} ${LDOPTS_SO} confSONAME bldCURRENT_PRODUCT.so.${MILTER_SOVER} -o bldCURRENT_PRODUCT.so ${bldCURRENT_PRODUCT`OBJS'} +ifdef(`bldLINK_SOURCES', `bldMAKE_SOURCE_LINKS(bldLINK_SOURCES)') + +install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT.so +ifdef(`bldINSTALLABLE', ` ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} bldCURRENT_PRODUCT.so ${DESTDIR}${LIBDIR}/bldCURRENT_PRODUCT.so.${MILTER_SOVER}') + +bldCURRENT_PRODUCT-clean: + rm -f ${OBJS} bldCURRENT_PRODUCT.so ${MANPAGES} + +divert(0) +COPTS+= confCCOPTS_SO |