ports/54701: maintainer update clamav-devel

Rob rob at debank.tv
Tue Jul 22 09:35:30 UTC 2003


Yen-Ming Lee wrote:
> The following reply was made to PR ports/54701; it has been noted by GNATS.
> 
> From: Yen-Ming Lee <leeym at FreeBSD.org>
> To: freebsd-gnats-submit at FreeBSD.org, rob at debank.tv
> Cc: markun at onohara.to
> Subject: Re: ports/54701: maintainer update clamav-devel
> Date: Tue, 22 Jul 2003 09:01:09 +0800
> 
>  --YiEDa0DAkWCtVeE4
>  Content-Type: text/plain; charset=big5
>  Content-Disposition: inline
>  Content-Transfer-Encoding: 8bit
>  
>  I recommend to enable milter by checking if /usr/include/libmilter/mfapi.h
>  exists instead of checking the OSVERSION.
>  
>  I run 5.1-RELEASE without sendmail, and I met some problems when installing
>  and deinstalling security/clamav[-devel].
>  
>  Index: Makefile
>  ===================================================================
>  RCS file: /home/pcvs/ports/security/clamav-devel/Makefile,v
>  retrieving revision 1.11
>  diff -u -r1.11 Makefile
>  --- Makefile	7 Jul 2003 05:43:35 -0000	1.11
>  +++ Makefile	22 Jul 2003 00:58:08 -0000
>  @@ -6,7 +6,7 @@
>   #
>   
>   PORTNAME=	clamav
>  -PORTVERSION=	20030705
>  +PORTVERSION=	20030720
>   CATEGORIES=	security
>   MASTER_SITES=	http://clamav.elektrapro.com/snapshot/ \
>   		http://clamav.essentkabel.com/snapshot/ \
>  @@ -39,7 +39,7 @@
>   
>   .include <bsd.port.pre.mk>
>   
>  -.if ${OSVERSION} > 500000
>  +.if exists(/usr/include/libmilter/mfapi.h)
>   CONFIGURE_ARGS+=	--enable-milter
>   PLIST_SUB+=	CLAMAV-MILTER:=""
>   .else
>  Index: distinfo
>  ===================================================================
>  RCS file: /home/pcvs/ports/security/clamav-devel/distinfo,v
>  retrieving revision 1.5
>  diff -u -r1.5 distinfo
>  --- distinfo	7 Jul 2003 05:43:35 -0000	1.5
>  +++ distinfo	22 Jul 2003 00:58:08 -0000
>  @@ -1 +1 @@
>  -MD5 (clamav-20030705.tar.gz) = 1fc4f7d79a8ee9acbb30be897c2780d5
>  +MD5 (clamav-20030720.tar.gz) = c41afa07fb6ea7795b3d7c01dc2d219b
>  
>  -- 
>  Yen-Ming Lee [§õ«Û©ú] KeyID: 0x5EB52E51 : www.leeym.com : Taipei, Taiwan
>  leeym@{leeym.com, FreeBSD.org, yahoo-inc.com, ntu.edu.tw, civil.ncku.edu.tw}
>  
>  --YiEDa0DAkWCtVeE4
>  Content-Type: application/pgp-signature
>  Content-Disposition: inline
>  
>  -----BEGIN PGP SIGNATURE-----
>  Version: GnuPG v1.2.2 (FreeBSD)
>  
>  iQCVAwUBPxyM1cnMx0NetS5RAQFCxQQAymxWlv0AZc+jOZ4xJzM9tpkN2CDtM3nI
>  vtld5kwErnQSZ+VCzuLMXOUe5sMz4T0gtRXmNhuiNkWx/tRIT2wfL/BcP/Ka5SE2
>  KzLn7uvO10FC0qXua0ubG27L0dgrNJNw4qWMYYxFMVK6rrrmAOOhmf0+9z5AOlZ9
>  HUMTja/T5Oo=
>  =43il
>  -----END PGP SIGNATURE-----
>  
>  --YiEDa0DAkWCtVeE4--
> _______________________________________________
> freebsd-ports-bugs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
> To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe at freebsd.org"
> 

Thanks for the pointer on sendmail-less installs !
The clamav-milter needs gcc-3.0 or up (that's why it was build by 
default on FBSD50 and higher).
I made a new diff that makes the milter build an option (including 
gcc3.2 for older FBSD systems), people who are not using sendmail just 
shouldn't enable the milter build.
Please let me know what you think of the new patch.

cheers
Rob Evers

---------------------------------------------------

diff -urN clamav-devel.orig/Makefile clamav-devel/Makefile
--- clamav-devel.orig/Makefile  Sun Jul 20 17:19:09 2003
+++ clamav-devel/Makefile       Tue Jul 22 11:28:43 2003
@@ -6,7 +6,7 @@
  #

  PORTNAME=      clamav
-PORTVERSION=   20030705
+PORTVERSION=   20030720
  CATEGORIES=    security
  MASTER_SITES=  http://clamav.elektrapro.com/snapshot/ \
                 http://clamav.essentkabel.com/snapshot/ \
@@ -39,8 +39,9 @@

  .include <bsd.port.pre.mk>

-.if ${OSVERSION} > 500000
-CONFIGURE_ARGS+=       --enable-milter
+.if defined(WITH_MILTER)
+USE_GCC=       3.2
+CONFIGURE_ARGS+=        --enable-milter
  PLIST_SUB+=    CLAMAV-MILTER:=""
  .else
  PLIST_SUB+=    CLAMAV-MILTER:="@comment "
diff -urN clamav-devel.orig/distinfo clamav-devel/distinfo
--- clamav-devel.orig/distinfo  Sun Jul 20 17:19:09 2003
+++ clamav-devel/distinfo       Tue Jul 22 10:55:17 2003
@@ -1 +1 @@
-MD5 (clamav-20030705.tar.gz) = 1fc4f7d79a8ee9acbb30be897c2780d5
+MD5 (clamav-20030720.tar.gz) = c41afa07fb6ea7795b3d7c01dc2d219b



More information about the freebsd-ports-bugs mailing list