Bug 111478 - change-request: security/clamav: Add support to gethostbyname_r on FreeBSD 6 systems
Summary: change-request: security/clamav: Add support to gethostbyname_r on FreeBSD 6 ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-11 15:50 UTC by Anderson S. Ferreira
Modified: 2007-04-13 18:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anderson S. Ferreira 2007-04-11 15:50:04 UTC

Fix: 

---
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".--OREkV4yXMXifBFnrZYurpDaw1HGoMZjpc79wNFFxqAvid43S
Content-Type: text/plain; name="clamav.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="clamav.patch"

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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-04-11 15:50:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->garga

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-04-13 18:49:15 UTC
garga       2007-04-13 17:49:09 UTC

  FreeBSD ports repository

  Modified files:
    security/clamav      Makefile distinfo pkg-plist 
    security/clamav/files clamav-milter.in 
  Added files:
    security/clamav/files patch-libclamav__matcher-ac.c 
  Log:
  - Update to 0.90.2
  - Add a patch to increase performance of clamd in threaded systems [1]
  - Change clamav-milter rc.d script to use a var to determine seconds of timeout
    to wait clamd socket be started [2]
  - Add support to gethostbyname_r() on FreeBSD 6 and above [3]
  - Install clamav-config.h [3]
  - Fix all dependencies for klamav work fine [3]
  
  PR:             ports/111130 [2], ports/111478 [3]
  Submitted by:   Anton Yuzhaninov <citrin@rambler-co.ru> [1]
                  Denis Eremenko <moonshade@pnhz.kz> [2]
                  Anderson S. Ferreira <anderson@cnpm.embrapa.br> [3]
  Obtained from:  https://wwws.clamav.net/bugzilla/show_bug.cgi?id=434 [1]
  
  Revision  Changes    Path
  1.96      +8 -3      ports/security/clamav/Makefile
  1.38      +3 -3      ports/security/clamav/distinfo
  1.3       +15 -2     ports/security/clamav/files/clamav-milter.in
  1.1       +65 -0     ports/security/clamav/files/patch-libclamav__matcher-ac.c (new)
  1.32      +2 -1      ports/security/clamav/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2007-04-13 18:50:24 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!