summaryrefslogtreecommitdiff
path: root/security/clamav-devel
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2006-05-26 16:49:53 +0000
committerRenato Botelho <garga@FreeBSD.org>2006-05-26 16:49:53 +0000
commit01a61f0371ed45762f6622cabcbb981d12fd18cc (patch)
treec23520cccb14bedb7875415c17ebb91f0f1905d0 /security/clamav-devel
parent- Update to 0.9.2 (diff)
- Add an option to print logs on stderr instead stdout, it's useful to catch
logs and use on smtp log. In preparation to update spamcontro to 2.4 series. - s/unarj/arj/ on clamscan man [1] - Bump PORTREVISION because man change Reported by: Anton Yuzhaninov <citrin at citrin.ru> [1]
Notes
Notes: svn path=/head/; revision=163504
Diffstat (limited to 'security/clamav-devel')
-rw-r--r--security/clamav-devel/Makefile10
-rw-r--r--security/clamav-devel/files/extra-patch-shared_output.c17
2 files changed, 26 insertions, 1 deletions
diff --git a/security/clamav-devel/Makefile b/security/clamav-devel/Makefile
index c079b38f2515..97c5a0da64e1 100644
--- a/security/clamav-devel/Makefile
+++ b/security/clamav-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= clamav
PORTVERSION= 20060525
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.clamav.net/snapshot/ \
http://www.galle.com.br/~garga/clamav-devel/
@@ -25,7 +26,8 @@ RUN_DEPENDS= lha:${PORTSDIR}/archivers/lha \
unzip:${PORTSDIR}/archivers/unzip
OPTIONS= MILTER "Compile the milter interface" Off \
- CURL "Support URL downloading" Off
+ CURL "Support URL downloading" Off \
+ STDERR "Print logs to stderr instead of stdout" Off
USE_AUTOTOOLS= libtool:15
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@@ -125,11 +127,17 @@ CONFIGURE_ARGS+= --with-libcurl
CONFIGURE_ARGS+= --without-libcurl
.endif
+.if defined(WITH_STDERR)
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-shared_output.c
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's,$$(libdir)/pkgconfig,$$(prefix)/libdata/pkgconfig,' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-pthread -lc_r|${PTHREAD_LIBS}|g' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+ @${REINPLACE_CMD} -e 's,unarj,arj,g' \
+ ${WRKSRC}/docs/man/clamscan.1
pre-build:
@if ${LDCONFIG} -r | ${GREP} -qw -e -lclamav; then \
diff --git a/security/clamav-devel/files/extra-patch-shared_output.c b/security/clamav-devel/files/extra-patch-shared_output.c
new file mode 100644
index 000000000000..ddb4ab029f38
--- /dev/null
+++ b/security/clamav-devel/files/extra-patch-shared_output.c
@@ -0,0 +1,17 @@
+--- shared/output.c.orig Thu May 18 22:10:40 2006
++++ shared/output.c Thu May 18 22:12:43 2006
+@@ -236,7 +236,13 @@
+ return;
+ }
+
+- fd = stdout;
++/* fd = stdout; (missing flag 'mprintf_stdout') --eh. */
++
++ if(mprintf_stdout)
++ fd = stdout;
++ else
++ fd = stderr;
++
+
+ /* legend:
+ * ! - error