1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Fix crashing of milter by turning off SESSION support [1]

- Fix build when libmilter was built with LDAP [2]

PR:		ports/77255 [1], ports/77235 [2]
Submitted by:	Sergey N. Voronkov <serg@tmn.ru> [1],
		Lewis Thompson <lewiz@compsoc.man.ac.uk> [2]
Approved by:	Rob Evers <rob@debank.tv> (maintainer)
This commit is contained in:
Pav Lucistnik 2005-02-09 09:19:54 +00:00
parent 36b0cd4182
commit 088df5b060
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=128353
2 changed files with 20 additions and 2 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= clamav
PORTVERSION= ${DISTVERSION:C/([a-z])[a-z]*/.\1/g:S/-/./g}
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= clamav
@ -56,6 +57,14 @@ CPPFLAGS+= -I${LOCALBASE}/include \
${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib \
${PTHREAD_LIBS}
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_LDAP) && exists(${LOCALBASE}/lib/libldap.so)
USE_OPENLDAP= yes
LDFLAGS+= -lldap
.endif
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
MAN1= clamscan.1 freshclam.1 sigtool.1 clamdscan.1
@ -101,8 +110,6 @@ SED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
PLIST_SUB+= RC_DIR=${RC_DIR} \
RC_SUFX=${RC_SUFX}
.include <bsd.port.pre.mk>
.if defined(WITH_MILTER)
.if !exists(/usr/lib/libmilter.a)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail

View File

@ -0,0 +1,11 @@
--- clamav-milter/clamav-milter.c.orig Sun Feb 6 21:35:29 2005
+++ clamav-milter/clamav-milter.c Wed Feb 9 10:00:06 2005
@@ -643,7 +643,7 @@
#define VERSION_LENGTH 128
-#define SESSION /*
+/* #define SESSION
* Keep one command connection open to clamd, otherwise a new
* command connection is created for each new email
*