ports/111478: [change-request] security/clamav: Add support to gethostbyname_r on FreeBSD 6 systems
Anderson S. Ferreira
anderson at cnpm.embrapa.br
Wed Apr 11 14:50:05 UTC 2007
>Number: 111478
>Category: ports
>Synopsis: [change-request] security/clamav: Add support to gethostbyname_r on FreeBSD 6 systems
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 11 14:50:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Anderson S. Ferreira
>Release: FreeBSD 6.2-STABLE amd64
>Organization:
Embrapa Monitoramento por Satélite
>Environment:
System: FreeBSD caraiba.cnpm.embrapa.br 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Apr 8 22:53:19 BRT 2007 root at caraiba.cnpm.embrapa.br:/usr/src/sys/amd64/compile/CARAIBA amd64
This patch adds support to gethostbyname_r() on FreeBSD 6 and above, and install clamav-config.h in ${PREFIX}/include.
The changes are needed by klamav port.
>Description:
>How-To-Repeat:
>Fix:
--- clamav.patch begins here ---
diff -Nru clamav/Makefile clamav.new/Makefile
--- clamav/Makefile Fri Mar 16 16:16:32 2007
+++ clamav/Makefile Wed Apr 11 11:34:16 2007
@@ -7,7 +7,7 @@
PORTNAME= clamav
PORTVERSION= 0.90.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= SF
@@ -47,7 +47,6 @@
--disable-clamuko \
--disable-clamav \
--enable-bigstack \
- --disable-gethostbyname_r \
--enable-readdir_r \
--disable-dependency-tracking
CPPFLAGS+= -I${LOCALBASE}/include \
@@ -99,6 +98,12 @@
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 600000
+CONFIGURE_ARGS+= --disable-gethostbyname_r
+.else
+CONFIGURE_ARGS+= --enable-gethostbyname_r
+.endif
+
# This port has a problem with -pthread,
# force to use -lthr until it's not fixed.
.if ${OSVERSION} >= 601000
@@ -162,6 +167,8 @@
.for c in clamd freshclam
@[ -f ${PREFIX}/etc/${c}.conf ] || \
${CP} ${PREFIX}/etc/${c}.conf.default ${PREFIX}/etc/${c}.conf
+ @${CP} ${WRKSRC}/clamav-config.h ${PREFIX}/include
+
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/html
diff -Nru clamav/pkg-plist clamav.new/pkg-plist
--- clamav/pkg-plist Tue Mar 13 17:11:16 2007
+++ clamav/pkg-plist Wed Apr 11 11:03:10 2007
@@ -8,6 +8,7 @@
%%CLAMAV-MILTER%%sbin/clamav-milter
sbin/clamd
include/clamav.h
+include/clamav-config.h
lib/libclamav.so.2
lib/libclamav.so
lib/libclamav.a
--- clamav.patch ends here ---
---
Aviso de confidencialidade:
- Esta mensagem da Empresa Brasileira de Pesquisa Agropecuária (Embrapa), empresa pública federal regida pelo disposto na Lei Federal nº 5.851, de 7 de dezembro de 1972, é enviada exclusivamente a seu destinatário e pode conter informações confidenciais, protegidas por sigilo profissional. Sua utilização desautorizada é ilegal e sujeita o infrator às penas da lei. Se você a recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente, esclarecendo o equívoco.
Confidentiality note:
- "This message from Empresa Brasileira de Pesquisa Agropecuária (Embrapa), a government company established under Brazilian law (5.851/72), is directed exclusively to its addressee and may contain confidential data, protected under professional secrecy rules. Its unauthorized use is illegal and may subject the transgressor to the law's penalties. If you are not the addressee, please send it back, elucidating the failure".
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list