From abce371ad97db16e662803a8f2bc73fda5248033 Mon Sep 17 00:00:00 2001 From: garga Date: Tue, 16 Sep 2008 12:11:43 +0000 Subject: - UNBREAK: Fix build with clamav 0.94 - Bump PORTREVISION PR: ports/127421 Submitted by: maintainer Approved by: portmgr (pav) --- security/klamav/Makefile | 3 +-- security/klamav/files/patch-src_klammail_clamdmail.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 security/klamav/files/patch-src_klammail_clamdmail.c (limited to 'security/klamav') diff --git a/security/klamav/Makefile b/security/klamav/Makefile index 755ff025ad78..080a18ddecb9 100644 --- a/security/klamav/Makefile +++ b/security/klamav/Makefile @@ -7,6 +7,7 @@ PORTNAME= klamav PORTVERSION= 0.44 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SF DISTNAME= ${PORTNAME}-${PORTVERSION}-source @@ -36,8 +37,6 @@ CONFIGURE_ARGS+=--with-qt-dir=${QT_PREFIX} \ USE_KDELIBS_VER= 3 -BROKEN= Doesn't build with clamav-0.94 - .include pre-configure: diff --git a/security/klamav/files/patch-src_klammail_clamdmail.c b/security/klamav/files/patch-src_klammail_clamdmail.c new file mode 100644 index 000000000000..77a6257aa95b --- /dev/null +++ b/security/klamav/files/patch-src_klammail_clamdmail.c @@ -0,0 +1,11 @@ +--- src/klammail/clamdmail.c.orig 2008-09-16 08:46:48.000000000 -0300 ++++ src/klammail/clamdmail.c 2008-09-16 08:47:25.000000000 -0300 +@@ -160,7 +160,7 @@ + if(fsync(fd) == -1) { + // cli_dbgmsg("fsync() failed for descriptor %d\n", fd); + close(fd); +- return CL_EFSYNC; ++ return CL_EIO; + } + + close(fd); -- cgit