1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

- Update to version 1.7

* August 6 2001 -- vbsfilter-1.7
 * Various fixes for the case where headers and/or body are empty.
 * Patch sent in by Sergiy Zhuk <serge@yahoo-inc.com>
 *
 * Update "dangerous extension" list.
 * Noted by David F. Russell <David.F.Russell@ncmail.net>
 *
 * July 25 2001 -- vbsfilter-1.6
 * Also recognise 'name=blah' as well as the more usual 'name="blah"'.
 * Patch sent in by Andrea Adams <andrea@vividimage.com>
 *
 * July 9 2001 -- vbsfilter-1.5
 * Add support to reject arbitrary extensions.
 *
 * March 31 2001 -- vbsfilter-1.4
 * Update for sendmail-8.12
 *
This commit is contained in:
Dirk Meyer 2001-08-13 19:20:39 +00:00
parent 9e291238c6
commit cdce4b7280
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46207
3 changed files with 9 additions and 25 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= vbsfilter
PORTVERSION= 1.3
PORTVERSION= 1.7
CATEGORIES= mail
MASTER_SITES= http://aeschi.ch.eu.org/milter/
DISTNAME= ${PORTNAME}-${PORTVERSION}
@ -17,7 +17,7 @@ MAINTAINER= dinoex@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
CTARGETS+= vbsfilter-1.3
CTARGETS+= vbsfilter-${PORTVERSION}
CFLAGS+= -Wall -I$(LOCALBASE)/include ${PTHREAD_CFLAGS:S=""==}
FLAGS+= ${PTHREAD_LIBS}
LDFLAGS+= -L$(LOCALBASE)/lib
@ -41,7 +41,7 @@ pre-fetch:
do-extract:
@${MKDIR} ${WRKSRC}
@${CP} ${_DISTDIR}vbsfilter-1.3.c ${WRKSRC}
@${CP} ${_DISTDIR}vbsfilter-${PORTVERSION}.c ${WRKSRC}
@${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/vbsfilter.sh \
> ${WRKSRC}/vbsfilter.sh
@ -55,7 +55,8 @@ ${i}:
do-build: ${CTARGETS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vbsfilter-1.3 ${PREFIX}/libexec/vbsfilter
${INSTALL_PROGRAM} ${WRKSRC}/vbsfilter-${PORTVERSION} \
${PREFIX}/libexec/vbsfilter
${INSTALL_DATA} ${WRKSRC}/vbsfilter.sh \
${PREFIX}/etc/rc.d/vbsfilter.sh.sample

View File

@ -1 +1 @@
MD5 (vbsfilter-1.3.c) = da70a84416927d0ba0a0c4e69cc4532e
MD5 (vbsfilter-1.7.c) = 222402e7aec99ca633955cbffba9318a

View File

@ -1,6 +1,6 @@
--- 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 @@
--- vbsfilter-1.7.c.orig Mon Aug 13 21:11:36 2001
+++ vbsfilter-1.7.c Mon Aug 13 21:15:05 2001
@@ -9,6 +9,10 @@
#include <stdio.h>
#include <string.h>
#include <sysexits.h>
@ -11,20 +11,3 @@
#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;