mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
SENDMAIL_WITH_MILTER support
sample filter is build. GPL attachmentfilter ist build.
This commit is contained in:
parent
bd8f0fd12f
commit
75a197a7a1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39377
27
mail/sendmail-old/files/Makefile.milter
Normal file
27
mail/sendmail-old/files/Makefile.milter
Normal file
@ -0,0 +1,27 @@
|
||||
# Generic Makefile for libmilter filters
|
||||
CC = gcc -Wall
|
||||
|
||||
# point this at your sendmail source tree
|
||||
# SENDMAIL_SOURCE = /usr/local/src/sendmail-8.11.1
|
||||
|
||||
IFLAGS+= -I$(SENDMAIL_SOURCE)/sendmail -I$(SENDMAIL_SOURCE)/include
|
||||
FLAGS+= -pthread
|
||||
LDFLAGS+= -L$(SENDMAIL_OBJECT)/libmilter -L$(SENDMAIL_OBJECT)/libsmutil
|
||||
LIBS+= -lmilter -lsmutil
|
||||
|
||||
TARGETS?= sample vbsfilter-1.3
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
.for i in ${TARGETS}
|
||||
${i}:
|
||||
$(CC) $(IFLAGS) $(LDFLAGS) -o ${i} ${i}.c $(LIBS) $(FLAGS)
|
||||
|
||||
.endfor
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS)
|
||||
|
||||
install:
|
||||
$(INSTALL) -c $(TARGETS) $(DEST)
|
||||
|
2
mail/sendmail-old/files/site.config.m4.milter
Normal file
2
mail/sendmail-old/files/site.config.m4.milter
Normal file
@ -0,0 +1,2 @@
|
||||
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER=1')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_MILTER=1')
|
30
mail/sendmail-old/files/vbsfilter-1.3.c.patch
Normal file
30
mail/sendmail-old/files/vbsfilter-1.3.c.patch
Normal file
@ -0,0 +1,30 @@
|
||||
--- vbsfilter-1.3.c.neu.orig Wed Feb 14 10:45:06 2001
|
||||
+++ vbsfilter-1.3.c Wed Feb 14 12:40:38 2001
|
||||
@@ -2,6 +2,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sysexits.h>
|
||||
+#include <ctype.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <netdb.h>
|
||||
+#include <unistd.h>
|
||||
#include "libmilter/mfapi.h"
|
||||
|
||||
/*
|
||||
@@ -172,7 +176,7 @@
|
||||
sfsistat mlfi_body(SMFICTX *ctx, u_char *bodyp, size_t bodylen) {
|
||||
struct mlfiPriv *priv = MLFIPRIV;
|
||||
|
||||
- priv->body = (char *) realloc(priv->body, priv->len + bodylen);
|
||||
+ priv->body = (char *) realloc(priv->body, priv->len + bodylen + 1);
|
||||
|
||||
if (!priv->body) {
|
||||
/* can't accept this message right now */
|
||||
@@ -181,6 +185,7 @@
|
||||
|
||||
memcpy((u_char*)(priv->body+priv->len), bodyp, bodylen);
|
||||
priv->len += bodylen;
|
||||
+ priv->body[priv->len] = 0;
|
||||
|
||||
/* continue processing */
|
||||
return SMFIS_CONTINUE;
|
27
mail/sendmail/files/Makefile.milter
Normal file
27
mail/sendmail/files/Makefile.milter
Normal file
@ -0,0 +1,27 @@
|
||||
# Generic Makefile for libmilter filters
|
||||
CC = gcc -Wall
|
||||
|
||||
# point this at your sendmail source tree
|
||||
# SENDMAIL_SOURCE = /usr/local/src/sendmail-8.11.1
|
||||
|
||||
IFLAGS+= -I$(SENDMAIL_SOURCE)/sendmail -I$(SENDMAIL_SOURCE)/include
|
||||
FLAGS+= -pthread
|
||||
LDFLAGS+= -L$(SENDMAIL_OBJECT)/libmilter -L$(SENDMAIL_OBJECT)/libsmutil
|
||||
LIBS+= -lmilter -lsmutil
|
||||
|
||||
TARGETS?= sample vbsfilter-1.3
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
.for i in ${TARGETS}
|
||||
${i}:
|
||||
$(CC) $(IFLAGS) $(LDFLAGS) -o ${i} ${i}.c $(LIBS) $(FLAGS)
|
||||
|
||||
.endfor
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS)
|
||||
|
||||
install:
|
||||
$(INSTALL) -c $(TARGETS) $(DEST)
|
||||
|
2
mail/sendmail/files/site.config.m4.milter
Normal file
2
mail/sendmail/files/site.config.m4.milter
Normal file
@ -0,0 +1,2 @@
|
||||
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER=1')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_MILTER=1')
|
30
mail/sendmail/files/vbsfilter-1.3.c.patch
Normal file
30
mail/sendmail/files/vbsfilter-1.3.c.patch
Normal file
@ -0,0 +1,30 @@
|
||||
--- vbsfilter-1.3.c.neu.orig Wed Feb 14 10:45:06 2001
|
||||
+++ vbsfilter-1.3.c Wed Feb 14 12:40:38 2001
|
||||
@@ -2,6 +2,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sysexits.h>
|
||||
+#include <ctype.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <netdb.h>
|
||||
+#include <unistd.h>
|
||||
#include "libmilter/mfapi.h"
|
||||
|
||||
/*
|
||||
@@ -172,7 +176,7 @@
|
||||
sfsistat mlfi_body(SMFICTX *ctx, u_char *bodyp, size_t bodylen) {
|
||||
struct mlfiPriv *priv = MLFIPRIV;
|
||||
|
||||
- priv->body = (char *) realloc(priv->body, priv->len + bodylen);
|
||||
+ priv->body = (char *) realloc(priv->body, priv->len + bodylen + 1);
|
||||
|
||||
if (!priv->body) {
|
||||
/* can't accept this message right now */
|
||||
@@ -181,6 +185,7 @@
|
||||
|
||||
memcpy((u_char*)(priv->body+priv->len), bodyp, bodylen);
|
||||
priv->len += bodylen;
|
||||
+ priv->body[priv->len] = 0;
|
||||
|
||||
/* continue processing */
|
||||
return SMFIS_CONTINUE;
|
27
mail/sendmail811/files/Makefile.milter
Normal file
27
mail/sendmail811/files/Makefile.milter
Normal file
@ -0,0 +1,27 @@
|
||||
# Generic Makefile for libmilter filters
|
||||
CC = gcc -Wall
|
||||
|
||||
# point this at your sendmail source tree
|
||||
# SENDMAIL_SOURCE = /usr/local/src/sendmail-8.11.1
|
||||
|
||||
IFLAGS+= -I$(SENDMAIL_SOURCE)/sendmail -I$(SENDMAIL_SOURCE)/include
|
||||
FLAGS+= -pthread
|
||||
LDFLAGS+= -L$(SENDMAIL_OBJECT)/libmilter -L$(SENDMAIL_OBJECT)/libsmutil
|
||||
LIBS+= -lmilter -lsmutil
|
||||
|
||||
TARGETS?= sample vbsfilter-1.3
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
.for i in ${TARGETS}
|
||||
${i}:
|
||||
$(CC) $(IFLAGS) $(LDFLAGS) -o ${i} ${i}.c $(LIBS) $(FLAGS)
|
||||
|
||||
.endfor
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS)
|
||||
|
||||
install:
|
||||
$(INSTALL) -c $(TARGETS) $(DEST)
|
||||
|
2
mail/sendmail811/files/site.config.m4.milter
Normal file
2
mail/sendmail811/files/site.config.m4.milter
Normal file
@ -0,0 +1,2 @@
|
||||
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER=1')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_MILTER=1')
|
30
mail/sendmail811/files/vbsfilter-1.3.c.patch
Normal file
30
mail/sendmail811/files/vbsfilter-1.3.c.patch
Normal file
@ -0,0 +1,30 @@
|
||||
--- vbsfilter-1.3.c.neu.orig Wed Feb 14 10:45:06 2001
|
||||
+++ vbsfilter-1.3.c Wed Feb 14 12:40:38 2001
|
||||
@@ -2,6 +2,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sysexits.h>
|
||||
+#include <ctype.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <netdb.h>
|
||||
+#include <unistd.h>
|
||||
#include "libmilter/mfapi.h"
|
||||
|
||||
/*
|
||||
@@ -172,7 +176,7 @@
|
||||
sfsistat mlfi_body(SMFICTX *ctx, u_char *bodyp, size_t bodylen) {
|
||||
struct mlfiPriv *priv = MLFIPRIV;
|
||||
|
||||
- priv->body = (char *) realloc(priv->body, priv->len + bodylen);
|
||||
+ priv->body = (char *) realloc(priv->body, priv->len + bodylen + 1);
|
||||
|
||||
if (!priv->body) {
|
||||
/* can't accept this message right now */
|
||||
@@ -181,6 +185,7 @@
|
||||
|
||||
memcpy((u_char*)(priv->body+priv->len), bodyp, bodylen);
|
||||
priv->len += bodylen;
|
||||
+ priv->body[priv->len] = 0;
|
||||
|
||||
/* continue processing */
|
||||
return SMFIS_CONTINUE;
|
27
mail/sendmail812/files/Makefile.milter
Normal file
27
mail/sendmail812/files/Makefile.milter
Normal file
@ -0,0 +1,27 @@
|
||||
# Generic Makefile for libmilter filters
|
||||
CC = gcc -Wall
|
||||
|
||||
# point this at your sendmail source tree
|
||||
# SENDMAIL_SOURCE = /usr/local/src/sendmail-8.11.1
|
||||
|
||||
IFLAGS+= -I$(SENDMAIL_SOURCE)/sendmail -I$(SENDMAIL_SOURCE)/include
|
||||
FLAGS+= -pthread
|
||||
LDFLAGS+= -L$(SENDMAIL_OBJECT)/libmilter -L$(SENDMAIL_OBJECT)/libsmutil
|
||||
LIBS+= -lmilter -lsmutil
|
||||
|
||||
TARGETS?= sample vbsfilter-1.3
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
.for i in ${TARGETS}
|
||||
${i}:
|
||||
$(CC) $(IFLAGS) $(LDFLAGS) -o ${i} ${i}.c $(LIBS) $(FLAGS)
|
||||
|
||||
.endfor
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS)
|
||||
|
||||
install:
|
||||
$(INSTALL) -c $(TARGETS) $(DEST)
|
||||
|
2
mail/sendmail812/files/site.config.m4.milter
Normal file
2
mail/sendmail812/files/site.config.m4.milter
Normal file
@ -0,0 +1,2 @@
|
||||
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER=1')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_MILTER=1')
|
30
mail/sendmail812/files/vbsfilter-1.3.c.patch
Normal file
30
mail/sendmail812/files/vbsfilter-1.3.c.patch
Normal file
@ -0,0 +1,30 @@
|
||||
--- vbsfilter-1.3.c.neu.orig Wed Feb 14 10:45:06 2001
|
||||
+++ vbsfilter-1.3.c Wed Feb 14 12:40:38 2001
|
||||
@@ -2,6 +2,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sysexits.h>
|
||||
+#include <ctype.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <netdb.h>
|
||||
+#include <unistd.h>
|
||||
#include "libmilter/mfapi.h"
|
||||
|
||||
/*
|
||||
@@ -172,7 +176,7 @@
|
||||
sfsistat mlfi_body(SMFICTX *ctx, u_char *bodyp, size_t bodylen) {
|
||||
struct mlfiPriv *priv = MLFIPRIV;
|
||||
|
||||
- priv->body = (char *) realloc(priv->body, priv->len + bodylen);
|
||||
+ priv->body = (char *) realloc(priv->body, priv->len + bodylen + 1);
|
||||
|
||||
if (!priv->body) {
|
||||
/* can't accept this message right now */
|
||||
@@ -181,6 +185,7 @@
|
||||
|
||||
memcpy((u_char*)(priv->body+priv->len), bodyp, bodylen);
|
||||
priv->len += bodylen;
|
||||
+ priv->body[priv->len] = 0;
|
||||
|
||||
/* continue processing */
|
||||
return SMFIS_CONTINUE;
|
Loading…
Reference in New Issue
Block a user