head	1.179;
access;
symbols
	RELEASE_8_3_0:1.170
	RELEASE_9_0_0:1.169
	RELEASE_7_4_0:1.159
	RELEASE_8_2_0:1.159
	RELEASE_6_EOL:1.155
	RELEASE_8_1_0:1.143
	RELEASE_7_3_0:1.134
	RELEASE_8_0_0:1.132
	RELEASE_7_2_0:1.130
	RELEASE_7_1_0:1.123
	RELEASE_6_4_0:1.123
	RELEASE_5_EOL:1.111
	RELEASE_7_0_0:1.109
	RELEASE_6_3_0:1.106
	PRE_XORG_7:1.98
	RELEASE_4_EOL:1.86
	RELEASE_6_2_0:1.82
	RELEASE_6_1_0:1.71
	RELEASE_5_5_0:1.71
	RELEASE_6_0_0:1.64
	RELEASE_5_4_0:1.51
	RELEASE_4_11_0:1.43
	RELEASE_5_3_0:1.39
	RELEASE_4_10_0:1.31
	RELEASE_5_2_1:1.15
	RELEASE_5_2_0:1.15
	RELEASE_4_9_0:1.9
	RELEASE_5_1_0:1.4
	RELEASE_4_8_0:1.3;
locks; strict;
comment	@# @;


1.179
date	2013.03.16.18.18.35;	author svnexp;	state Exp;
branches;
next	1.178;

1.178
date	2013.02.11.01.21.52;	author svnexp;	state Exp;
branches;
next	1.177;

1.177
date	2012.11.17.06.01.01;	author svnexp;	state Exp;
branches;
next	1.176;

1.176
date	2012.10.05.12.41.45;	author garga;	state Exp;
branches;
next	1.175;

1.175
date	2012.09.17.20.01.25;	author garga;	state Exp;
branches;
next	1.174;

1.174
date	2012.08.03.15.34.45;	author garga;	state Exp;
branches;
next	1.173;

1.173
date	2012.06.29.19.44.17;	author garga;	state Exp;
branches;
next	1.172;

1.172
date	2012.06.22.19.25.41;	author scheidell;	state Exp;
branches;
next	1.171;

1.171
date	2012.06.15.13.29.43;	author garga;	state Exp;
branches;
next	1.170;

1.170
date	2012.03.17.15.21.39;	author garga;	state Exp;
branches;
next	1.169;

1.169
date	2011.11.19.14.22.25;	author garga;	state Exp;
branches;
next	1.168;

1.168
date	2011.10.19.12.07.37;	author garga;	state Exp;
branches;
next	1.167;

1.167
date	2011.10.18.14.03.25;	author garga;	state Exp;
branches;
next	1.166;

1.166
date	2011.09.23.22.25.09;	author amdmi3;	state Exp;
branches;
next	1.165;

1.165
date	2011.07.26.22.24.21;	author garga;	state Exp;
branches;
next	1.164;

1.164
date	2011.07.06.00.16.03;	author garga;	state Exp;
branches;
next	1.163;

1.163
date	2011.06.15.10.27.30;	author garga;	state Exp;
branches;
next	1.162;

1.162
date	2011.05.19.11.35.28;	author garga;	state Exp;
branches;
next	1.161;

1.161
date	2011.02.23.15.14.35;	author garga;	state Exp;
branches;
next	1.160;

1.160
date	2011.02.21.11.35.52;	author garga;	state Exp;
branches;
next	1.159;

1.159
date	2011.02.08.12.13.53;	author garga;	state Exp;
branches;
next	1.158;

1.158
date	2011.01.26.11.04.40;	author garga;	state Exp;
branches;
next	1.157;

1.157
date	2010.12.16.17.43.46;	author garga;	state Exp;
branches;
next	1.156;

1.156
date	2010.12.04.07.33.22;	author ade;	state Exp;
branches;
next	1.155;

1.155
date	2010.12.01.11.46.30;	author garga;	state Exp;
branches;
next	1.154;

1.154
date	2010.10.25.19.53.09;	author garga;	state Exp;
branches;
next	1.153;

1.153
date	2010.09.28.17.27.49;	author garga;	state Exp;
branches;
next	1.152;

1.152
date	2010.09.27.16.59.07;	author garga;	state Exp;
branches;
next	1.151;

1.151
date	2010.09.20.17.54.22;	author garga;	state Exp;
branches;
next	1.150;

1.150
date	2010.09.13.11.30.16;	author garga;	state Exp;
branches;
next	1.149;

1.149
date	2010.09.03.11.27.22;	author garga;	state Exp;
branches;
next	1.148;

1.148
date	2010.08.24.16.42.59;	author garga;	state Exp;
branches;
next	1.147;

1.147
date	2010.08.16.11.38.11;	author garga;	state Exp;
branches;
next	1.146;

1.146
date	2010.08.13.11.29.48;	author garga;	state Exp;
branches;
next	1.145;

1.145
date	2010.08.13.11.05.04;	author garga;	state Exp;
branches;
next	1.144;

1.144
date	2010.08.10.13.24.48;	author garga;	state Exp;
branches;
next	1.143;

1.143
date	2010.05.21.12.28.24;	author garga;	state Exp;
branches;
next	1.142;

1.142
date	2010.05.19.16.15.57;	author garga;	state Exp;
branches;
next	1.141;

1.141
date	2010.05.04.16.08.10;	author garga;	state Exp;
branches;
next	1.140;

1.140
date	2010.04.12.13.04.18;	author garga;	state Exp;
branches;
next	1.139;

1.139
date	2010.04.12.12.53.52;	author garga;	state Exp;
branches;
next	1.138;

1.138
date	2010.04.09.18.48.18;	author garga;	state Exp;
branches;
next	1.137;

1.137
date	2010.04.06.17.53.20;	author garga;	state Exp;
branches;
next	1.136;

1.136
date	2010.04.06.17.24.13;	author garga;	state Exp;
branches;
next	1.135;

1.135
date	2010.04.06.12.01.13;	author garga;	state Exp;
branches;
next	1.134;

1.134
date	2010.01.27.16.56.35;	author garga;	state Exp;
branches;
next	1.133;

1.133
date	2009.10.29.10.46.26;	author garga;	state Exp;
branches;
next	1.132;

1.132
date	2009.06.12.11.50.56;	author garga;	state Exp;
branches;
next	1.131;

1.131
date	2009.04.21.13.43.34;	author garga;	state Exp;
branches;
next	1.130;

1.130
date	2009.04.08.18.15.42;	author garga;	state Exp;
branches;
next	1.129;

1.129
date	2009.04.03.13.56.35;	author garga;	state Exp;
branches;
next	1.128;

1.128
date	2009.03.27.11.52.21;	author garga;	state Exp;
branches;
next	1.127;

1.127
date	2009.03.23.12.54.39;	author mm;	state Exp;
branches;
next	1.126;

1.126
date	2008.11.26.16.46.24;	author garga;	state Exp;
branches;
next	1.125;

1.125
date	2008.11.17.19.10.38;	author garga;	state Exp;
branches;
next	1.124;

1.124
date	2008.11.03.22.48.53;	author garga;	state Exp;
branches;
next	1.123;

1.123
date	2008.09.15.20.36.53;	author garga;	state Exp;
branches;
next	1.122;

1.122
date	2008.09.15.19.58.34;	author garga;	state Exp;
branches;
next	1.121;

1.121
date	2008.09.15.19.56.36;	author garga;	state Exp;
branches;
next	1.120;

1.120
date	2008.08.21.14.25.33;	author garga;	state Exp;
branches;
next	1.119;

1.119
date	2008.08.21.06.18.13;	author rafan;	state Exp;
branches;
next	1.118;

1.118
date	2008.08.18.18.44.19;	author garga;	state Exp;
branches;
next	1.117;

1.117
date	2008.07.07.20.37.37;	author garga;	state Exp;
branches;
next	1.116;

1.116
date	2008.06.17.11.20.03;	author garga;	state Exp;
branches;
next	1.115;

1.115
date	2008.06.16.19.28.23;	author garga;	state Exp;
branches;
next	1.114;

1.114
date	2008.06.09.23.55.20;	author garga;	state Exp;
branches;
next	1.113;

1.113
date	2008.06.09.23.51.16;	author garga;	state Exp;
branches;
next	1.112;

1.112
date	2008.06.09.16.13.25;	author garga;	state Exp;
branches;
next	1.111;

1.111
date	2008.05.20.18.06.34;	author garga;	state Exp;
branches;
next	1.110;

1.110
date	2008.04.16.16.05.54;	author garga;	state Exp;
branches;
next	1.109;

1.109
date	2008.02.21.13.19.50;	author garga;	state Exp;
branches;
next	1.108;

1.108
date	2008.02.13.15.37.26;	author garga;	state Exp;
branches;
next	1.107;

1.107
date	2008.01.24.17.04.37;	author garga;	state Exp;
branches;
next	1.106;

1.106
date	2007.12.19.23.08.36;	author garga;	state Exp;
branches;
next	1.105;

1.105
date	2007.11.26.17.45.55;	author ade;	state Exp;
branches;
next	1.104;

1.104
date	2007.08.21.16.03.49;	author garga;	state Exp;
branches;
next	1.103;

1.103
date	2007.07.23.09.36.27;	author rafan;	state Exp;
branches;
next	1.102;

1.102
date	2007.07.17.12.27.47;	author garga;	state Exp;
branches;
next	1.101;

1.101
date	2007.07.11.15.44.30;	author garga;	state Exp;
branches;
next	1.100;

1.100
date	2007.06.01.17.09.09;	author garga;	state Exp;
branches;
next	1.99;

1.99
date	2007.05.28.14.39.03;	author garga;	state Exp;
branches;
next	1.98;

1.98
date	2007.04.16.11.18.26;	author garga;	state Exp;
branches;
next	1.97;

1.97
date	2007.04.13.18.25.19;	author garga;	state Exp;
branches;
next	1.96;

1.96
date	2007.04.13.17.49.08;	author garga;	state Exp;
branches;
next	1.95;

1.95
date	2007.03.16.19.16.32;	author garga;	state Exp;
branches;
next	1.94;

1.94
date	2007.03.16.12.20.45;	author mbr;	state Exp;
branches;
next	1.93;

1.93
date	2007.03.16.12.04.04;	author mbr;	state Exp;
branches;
next	1.92;

1.92
date	2007.03.13.20.11.16;	author garga;	state Exp;
branches;
next	1.91;

1.91
date	2007.03.01.16.02.14;	author garga;	state Exp;
branches;
next	1.90;

1.90
date	2007.03.01.15.54.37;	author garga;	state Exp;
branches;
next	1.89;

1.89
date	2007.02.18.16.12.37;	author garga;	state Exp;
branches;
next	1.88;

1.88
date	2007.02.16.11.20.24;	author garga;	state Exp;
branches;
next	1.87;

1.87
date	2007.02.16.00.19.32;	author garga;	state Exp;
branches;
next	1.86;

1.86
date	2006.12.13.12.41.33;	author roam;	state Exp;
branches;
next	1.85;

1.85
date	2006.12.12.17.03.24;	author mnag;	state Exp;
branches;
next	1.84;

1.84
date	2006.11.06.11.03.43;	author garga;	state Exp;
branches;
next	1.83;

1.83
date	2006.11.06.10.54.54;	author garga;	state Exp;
branches;
next	1.82;

1.82
date	2006.10.16.14.18.52;	author mnag;	state Exp;
branches;
next	1.81;

1.81
date	2006.08.08.19.33.04;	author garga;	state Exp;
branches;
next	1.80;

1.80
date	2006.08.08.11.23.51;	author garga;	state Exp;
branches;
next	1.79;

1.79
date	2006.07.03.12.42.52;	author garga;	state Exp;
branches;
next	1.78;

1.78
date	2006.05.26.16.49.53;	author garga;	state Exp;
branches;
next	1.77;

1.77
date	2006.05.24.12.34.22;	author garga;	state Exp;
branches;
next	1.76;

1.76
date	2006.05.23.19.21.41;	author garga;	state Exp;
branches;
next	1.75;

1.75
date	2006.05.10.14.46.46;	author ale;	state Exp;
branches;
next	1.74;

1.74
date	2006.04.30.01.07.00;	author garga;	state Exp;
branches;
next	1.73;

1.73
date	2006.04.07.10.06.52;	author garga;	state Exp;
branches;
next	1.72;

1.72
date	2006.04.06.15.20.18;	author garga;	state Exp;
branches;
next	1.71;

1.71
date	2006.02.23.10.38.52;	author ade;	state Exp;
branches;
next	1.70;

1.70
date	2006.01.11.10.27.29;	author ehaupt;	state Exp;
branches;
next	1.69;

1.69
date	2005.11.15.06.50.54;	author ade;	state Exp;
branches;
next	1.68;

1.68
date	2005.11.05.14.12.26;	author mnag;	state Exp;
branches;
next	1.67;

1.67
date	2005.10.14.13.40.26;	author mnag;	state Exp;
branches;
next	1.66;

1.66
date	2005.10.12.10.05.11;	author vsevolod;	state Exp;
branches;
next	1.65;

1.65
date	2005.10.11.23.07.39;	author vsevolod;	state Exp;
branches;
next	1.64;

1.64
date	2005.09.20.08.09.03;	author pav;	state Exp;
branches;
next	1.63;

1.63
date	2005.08.30.21.47.46;	author pav;	state Exp;
branches;
next	1.62;

1.62
date	2005.07.27.17.22.04;	author sem;	state Exp;
branches;
next	1.61;

1.61
date	2005.07.25.13.43.33;	author sem;	state Exp;
branches;
next	1.60;

1.60
date	2005.06.24.18.25.37;	author lawrance;	state Exp;
branches;
next	1.59;

1.59
date	2005.06.24.08.02.03;	author sem;	state Exp;
branches;
next	1.58;

1.58
date	2005.06.23.13.08.06;	author jylefort;	state Exp;
branches;
next	1.57;

1.57
date	2005.06.22.10.49.00;	author jylefort;	state Exp;
branches;
next	1.56;

1.56
date	2005.05.17.13.44.45;	author novel;	state Exp;
branches;
next	1.55;

1.55
date	2005.05.13.08.16.39;	author jylefort;	state Exp;
branches;
next	1.54;

1.54
date	2005.05.03.09.15.53;	author vanilla;	state Exp;
branches;
next	1.53;

1.53
date	2005.04.12.03.26.27;	author obrien;	state Exp;
branches;
next	1.52;

1.52
date	2005.04.11.08.03.56;	author obrien;	state Exp;
branches;
next	1.51;

1.51
date	2005.02.17.22.57.31;	author pav;	state Exp;
branches;
next	1.50;

1.50
date	2005.02.09.09.19.54;	author pav;	state Exp;
branches;
next	1.49;

1.49
date	2005.02.08.07.54.20;	author sem;	state Exp;
branches;
next	1.48;

1.48
date	2005.02.06.09.51.56;	author krion;	state Exp;
branches;
next	1.47;

1.47
date	2005.01.30.17.44.03;	author obraun;	state Exp;
branches;
next	1.46;

1.46
date	2005.01.27.12.28.08;	author yar;	state Exp;
branches;
next	1.45;

1.45
date	2005.01.12.18.13.08;	author yar;	state Exp;
branches;
next	1.44;

1.44
date	2005.01.12.17.57.58;	author yar;	state Exp;
branches;
next	1.43;

1.43
date	2004.12.22.02.10.11;	author edwin;	state Exp;
branches;
next	1.42;

1.42
date	2004.11.06.13.01.29;	author pav;	state Exp;
branches;
next	1.41;

1.41
date	2004.10.18.10.11.15;	author eik;	state Exp;
branches;
next	1.40;

1.40
date	2004.10.14.09.30.47;	author eik;	state Exp;
branches;
next	1.39;

1.39
date	2004.08.08.14.05.38;	author pav;	state Exp;
branches;
next	1.38;

1.38
date	2004.07.28.18.15.54;	author pav;	state Exp;
branches;
next	1.37;

1.37
date	2004.07.04.11.01.50;	author eik;	state Exp;
branches;
next	1.36;

1.36
date	2004.06.15.10.04.48;	author eik;	state Exp;
branches;
next	1.35;

1.35
date	2004.06.04.12.51.29;	author eik;	state Exp;
branches;
next	1.34;

1.34
date	2004.05.26.10.15.19;	author pav;	state Exp;
branches;
next	1.33;

1.33
date	2004.05.22.06.45.18;	author silby;	state Exp;
branches;
next	1.32;

1.32
date	2004.05.20.09.02.07;	author krion;	state Exp;
branches;
next	1.31;

1.31
date	2004.04.19.15.21.33;	author eik;	state Exp;
branches;
next	1.30;

1.30
date	2004.04.12.08.57.39;	author eik;	state Exp;
branches;
next	1.29;

1.29
date	2004.04.01.16.38.37;	author eik;	state Exp;
branches;
next	1.28;

1.28
date	2004.04.01.16.36.28;	author eik;	state Exp;
branches;
next	1.27;

1.27
date	2004.03.27.18.30.18;	author pav;	state Exp;
branches;
next	1.26;

1.26
date	2004.03.25.01.46.54;	author eik;	state Exp;
branches;
next	1.25;

1.25
date	2004.03.24.20.59.17;	author ade;	state Exp;
branches;
next	1.24;

1.24
date	2004.03.06.20.50.28;	author eik;	state Exp;
branches;
next	1.23;

1.23
date	2004.03.06.20.45.46;	author eik;	state Exp;
branches;
next	1.22;

1.22
date	2004.02.28.15.06.39;	author pav;	state Exp;
branches;
next	1.21;

1.21
date	2004.02.10.14.06.49;	author eik;	state Exp;
branches;
next	1.20;

1.20
date	2004.02.04.05.08.43;	author marcus;	state Exp;
branches;
next	1.19;

1.19
date	2004.02.03.06.46.21;	author glewis;	state Exp;
branches;
next	1.18;

1.18
date	2004.01.30.15.19.22;	author netchild;	state Exp;
branches;
next	1.17;

1.17
date	2003.12.09.17.07.26;	author netchild;	state Exp;
branches;
next	1.16;

1.16
date	2003.12.08.14.06.49;	author netchild;	state Exp;
branches;
next	1.15;

1.15
date	2003.11.30.07.19.15;	author silby;	state Exp;
branches;
next	1.14;

1.14
date	2003.11.28.05.58.48;	author silby;	state Exp;
branches;
next	1.13;

1.13
date	2003.11.19.17.40.04;	author marcus;	state Exp;
branches;
next	1.12;

1.12
date	2003.10.25.20.52.32;	author dinoex;	state Exp;
branches;
next	1.11;

1.11
date	2003.09.28.13.29.28;	author dinoex;	state Exp;
branches;
next	1.10;

1.10
date	2003.09.25.02.51.45;	author dinoex;	state Exp;
branches;
next	1.9;

1.9
date	2003.07.07.07.37.08;	author nork;	state Exp;
branches;
next	1.8;

1.8
date	2003.06.24.16.34.05;	author obraun;	state Exp;
branches;
next	1.7;

1.7
date	2003.06.18.09.43.05;	author nork;	state Exp;
branches;
next	1.6;

1.6
date	2003.06.11.16.58.37;	author nork;	state Exp;
branches;
next	1.5;

1.5
date	2003.06.08.16.16.49;	author leeym;	state Exp;
branches;
next	1.4;

1.4
date	2003.05.18.02.40.47;	author foxfair;	state Exp;
branches;
next	1.3;

1.3
date	2003.02.21.13.26.42;	author knu;	state Exp;
branches;
next	1.2;

1.2
date	2003.02.05.13.09.19;	author edwin;	state Exp;
branches;
next	1.1;

1.1
date	2003.01.20.03.41.52;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.179
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314319
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: markun@@onohara.to
# $FreeBSD: head/security/clamav/Makefile 314319 2013-03-15 17:14:10Z garga $

PORTNAME=	clamav
PORTVERSION=	0.97.7
CATEGORIES=	security
MASTER_SITES=	SF

MAINTAINER=	garga@@FreeBSD.org
COMMENT=	Command line virus scanner written entirely in C

LICENSE=	GPLv2

OPTIONS_DEFINE=	ARC ARJ LHA UNZOO UNRAR LLVM TESTS MILTER LDAP ICONV STDERR \
		EXPERIMENTAL DOCS

ARC_DESC=		Enable arch archives support
ARJ_DESC=		Enable arj archives support
LHA_DESC=		Enable lha archives support
UNZOO_DESC=		Enable zoo archives support
UNRAR_DESC=		Enable rar archives support
LLVM_DESC=		Enable JIT Bytecode compiler (bundled LLVM)
TESTS_DESC=		Run compile-time tests (req. python)
MILTER_DESC=		Compile the milter interface
STDERR_DESC=		Print logs to stderr instead of stdout
EXPERIMENTAL_DESC=	Build experimental code

OPTIONS_DEFAULT=	ARC ARJ LHA UNZOO UNRAR LLVM TESTS DOCS

GNU_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes
USE_LDCONFIG=	yes
USE_GCC=	any
USE_RC_SUBR=	clamav-clamd clamav-freshclam
CLAM_CONF_FILES=	clamd freshclam

PORTDOCS=	*

DBDIR=		/var/db/clamav
LOGDIR=		/var/log/clamav
RUNDIR=		/var/run/clamav
PLIST_SUB+=	DBDIR=${DBDIR} LOGDIR=${LOGDIR} RUNDIR=${RUNDIR}
PY_NO_THREAD=	${WRKDIR}/.python-has-no-threads
USE_AUTOTOOLS=	libltdl

CONFIGURE_ARGS=	--libdir=${PREFIX}/lib \
		--with-dbdir=${DBDIR} \
		--with-zlib=/usr \
		--disable-clamuko \
		--disable-clamav \
		--enable-bigstack \
		--enable-readdir_r \
		--enable-gethostbyname_r \
		--disable-dependency-tracking \
		--enable-clamdtop
CPPFLAGS+=	-I${LOCALBASE}/include \
		${PTHREAD_CFLAGS}
LDFLAGS+=	-L${LOCALBASE}/lib \
		${PTHREAD_LIBS}

# This port has a problem with -pthread,
# force to use -lthr until it's not fixed.
PTHREAD_LIBS=	-lthr

MAN1=		clambc.1 \
		clamconf.1 \
		clamscan.1 \
		freshclam.1 \
		sigtool.1 \
		clamdscan.1 \
		clamdtop.1
MAN5=		clamav-milter.conf.5 \
		clamd.conf.5 \
		freshclam.conf.5
MAN8=		clamd.8 \
		clamav-milter.8

CONFLICTS?=	clamav-devel-[0-9]* clamav-milter-[0-9]*

CLAMAVUSER?=	clamav
CLAMAVGROUP?=	clamav

CLAMAV_CLAMD_SOCKET?=	${RUNDIR}/clamd.sock
CLAMAV_MILTER_SOCKET?=	${RUNDIR}/clmilter.sock

SUB_FILES=	pkg-install pkg-deinstall
SUB_LIST+=	DBDIR=${DBDIR} \
		LOGDIR=${LOGDIR} \
		RUNDIR=${RUNDIR} \
		CLAMAVUSER=${CLAMAVUSER} \
		CLAMAVGROUP=${CLAMAVGROUP} \
		CLAMAV_CLAMD_SOCKET=${CLAMAV_CLAMD_SOCKET} \
		CLAMAV_MILTER_SOCKET=${CLAMAV_MILTER_SOCKET} \
		CHMOD=${CHMOD} \
		CHOWN=${CHOWN}

SED_CONF=	-E -e 's|^\#?(Example)$$|\#\1|' \
		-e 's|^\#?((Update)?LogFile) .*/([a-z]+\.log)$$|\1 ${LOGDIR}/\3|' \
		-e 's|^\#?(PidFile) .*/([a-z\-]+\.pid)$$|\1 ${RUNDIR}/\2|' \
		-e 's|^\#?(LocalSocket) .*$$|\1 ${CLAMAV_CLAMD_SOCKET}|' \
		-e 's|^\#?(User) .*$$|\1 ${CLAMAVUSER}|' \
		-e 's|^\#?(AllowSupplementaryGroups).*$$|\1 yes|' \
		-e 's|^\#?(ScanMail).*$$|\1 yes|' \
		-e 's|^\#?(DatabaseDirectory) .*$$|\1 ${DBDIR}|' \
		-e 's|^\#?(DatabaseOwner) .*$$|\1 ${CLAMAVUSER}|' \
		-e 's|^\#?(FixStaleSocket).*$$|\1 yes|' \
		-e 's|^\#?(NotifyClamd) .*$$|\1 ${PREFIX}/etc/clamd.conf|' \
		-e 's|^\#?(MilterSocket) */tmp.*$$|\1 ${CLAMAV_MILTER_SOCKET}|' \
		-e 's|^\#?(ClamdSocket).*$$|\1 unix:${CLAMAV_CLAMD_SOCKET}|'

PLIST_SUB+=	CLAMAVUSER=${CLAMAVUSER} \
		CLAMAVGROUP=${CLAMAVGROUP}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MARC}
RUN_DEPENDS+=	arc:${PORTSDIR}/archivers/arc
.endif
.if ${PORT_OPTIONS:MARJ}
RUN_DEPENDS+=	arj:${PORTSDIR}/archivers/arj
.endif
.if ${PORT_OPTIONS:MLHA}
RUN_DEPENDS+=	lha:${PORTSDIR}/archivers/lha
.endif
.if ${PORT_OPTIONS:MUNZOO}
RUN_DEPENDS+=	unzoo:${PORTSDIR}/archivers/unzoo
.endif
.if ${PORT_OPTIONS:MUNRAR}
PLIST_SUB+=	UNRAR=""
.else
PLIST_SUB+=	UNRAR="@@comment "
CONFIGURE_ARGS+=--disable-unrar
.endif
.if ${PORT_OPTIONS:MICONV}
CONFIGURE_ARGS+=--with-iconv
USE_ICONV=	yes
.else
CONFIGURE_ARGS+=--without-iconv
.endif

.if ${PORT_OPTIONS:MLLVM} && ( ${ARCH} == "i386" || ${ARCH} == "amd64" )
CONFIGURE_ARGS+=--enable-llvm
. if defined(WITH_TESTS)
USE_PYTHON_BUILD=	yes
. endif
.else
CONFIGURE_ARGS+=--disable-llvm
.endif

.if ${PORT_OPTIONS:MMILTER}
USE_RC_SUBR+=	clamav-milter
CLAM_CONF_FILES+=	clamav-milter
. if ${PORT_OPTIONS:MLDAP} && exists(${LOCALBASE}/lib/libldap.so)
USE_OPENLDAP=	yes
LDFLAGS+=	-lldap
. endif

. if !exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a)
BUILD_DEPENDS+=	${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
CONFIGURE_ARGS+=--with-sendmail=${LOCALBASE}/sbin/sendmail
. else
CONFIGURE_ARGS+=--with-sendmail=/usr/sbin/sendmail
. endif

CONFIGURE_ARGS+=--enable-milter
PLIST_SUB+=	CLAMAV-MILTER=""
.else
PLIST_SUB+=	CLAMAV-MILTER="@@comment "
.endif

.if ${PORT_OPTIONS:MSTDERR}
EXTRA_PATCHES+=		${FILESDIR}/extra-patch-shared_output.c
.endif

.if ${PORT_OPTIONS:MEXPERIMENTAL}
CONFIGURE_ARGS+=--enable-experimental
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
CFLAGS+=	-march=i486
.endif

.if ${PORT_OPTIONS:MTESTS} && ${OSVERSION} >= 700000
BUILD_DEPENDS+=	${LOCALBASE}/include/check.h:${PORTSDIR}/devel/libcheck
CONFIGURE_ARGS+=--enable-check
.else
CONFIGURE_ARGS+=--disable-check
.endif

post-patch:
	@@${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
		${WRKSRC}/${CONFIGURE_SCRIPT}
	@@${REINPLACE_CMD} -e 's,^\(pkgconfigdir = \).*$$,\1$$\(prefix\)/libdata/pkgconfig,g' \
		${WRKSRC}/Makefile.in
	@@${REINPLACE_CMD} ${SED_CONF} \
		${WRKSRC}/etc/clamd.conf \
		${WRKSRC}/etc/freshclam.conf \
		${WRKSRC}/etc/clamav-milter.conf
	@@${REINPLACE_CMD} -e 's|0x100000000|0x100000000ULL|g' \
		${WRKSRC}/libclamunrar/unrar.c

.if ${PORT_OPTIONS:MLLVM} && ${PORT_OPTIONS:MTESTS}
pre-configure:
	@@if ! ${PYTHON_CMD} -c "import thread" >/dev/null 2>&1; then \
		${ECHO_MSG} ""; \
		${ECHO_MSG} "==========================================================================="; \
		${ECHO_MSG} "= Unit tests REQUIRES python built with thread support, and yours is not. ="; \
		${ECHO_MSG} "= It will not be called during this build                                 ="; \
		${ECHO_MSG} "==========================================================================="; \
		${ECHO_MSG} ""; \
		${TOUCH} ${PY_NO_THREAD}; \
	fi
.endif

.if ${PORT_OPTIONS:MTESTS} && ${OSVERSION} >= 700000
post-build:
	@@if [ ! -f "${PY_NO_THREAD}" ]; then \
		${MAKE} -C ${WRKSRC} check; \
	fi
.endif

pre-su-install:
	@@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL

post-install:
	${INSTALL_DATA} ${WRKSRC}/clamav-config.h ${PREFIX}/include
.for c in ${CLAM_CONF_FILES}
	@@[ -f ${PREFIX}/etc/${c}.conf ] || \
		${CP} -v ${PREFIX}/etc/${c}.conf.default ${PREFIX}/etc/${c}.conf
.endfor
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}/html
	${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/ChangeLog ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/html/* ${DOCSDIR}/html
.endif
	@@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.post.mk>
@


1.178
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312036
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/security/clamav/Makefile 312036 2013-02-11 00:56:21Z garga $
d5 1
a5 1
PORTVERSION=	0.97.6
@


1.177
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/security/clamav/Makefile 305298 2012-10-05 12:41:45Z garga $
d33 1
@


1.176
log
@SVN rev 305298 on 2012-10-05 12:41:45Z by garga

Change headers of all ports maintained by me to new format
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.175
log
@SVN rev 304418 on 2012-09-17 20:01:25Z by garga

Update to 0.97.6
@
text
@d1 1
a1 4
# New ports collection makefile for:	clamav
# Date created:		15 July 2002
# Whom:			markun@@onohara.to
#
a2 1
#
@


1.174
log
@SVN rev 301957 on 2012-08-03 15:34:45Z by garga

Add DOCS, EXAMPLES and NLS to OPTIONS_DEFINE to my ports
@
text
@d9 1
a9 2
PORTVERSION=	0.97.5
PORTREVISION=	1
@


1.173
log
@- Move to OPTIONSng
- Remove LLVM_PORT option, it requires llvm 2.9 and we have 3.1
- Remove GMAKE, it's not really necessary
@
text
@d20 1
a20 1
		EXPERIMENTAL
d33 1
a33 1
OPTIONS_DEFAULT=	ARC ARJ LHA UNZOO UNRAR LLVM TESTS
@


1.172
log
@- Fix CL_FORMAT bug introducted by clamav in version 0.97.5 (their bug #5252)

Submitted by:	scheidell@@ (me)
Approved by:	Renato Botelho <garga@@FreeBSD.org> (maintainer, via private email)
Obtained from:	https://bugzilla.clamav.net/show_bug.cgi?id=5252
@
text
@d19 15
a33 13
OPTIONS=	ARC "Enable arch archives support" On \
		ARJ "Enable arj archives support" On \
		LHA "Enable lha archives support" On \
		UNZOO "Enable zoo archives support" On \
		UNRAR "Enable rar archives support" On \
		LLVM "Enable JIT Bytecode compiler (bundled LLVM)" On \
		LLVM_PORTS "Enable JIT Bytecode compiler (from Ports)" Off \
		TESTS "Run compile-time tests (req. python)" On \
		MILTER "Compile the milter interface" Off \
		LDAP "libmilter was built with LDAP" Off \
		ICONV "Enable ICONV support" Off \
		STDERR "Print logs to stderr instead of stdout" Off \
		EXPERIMENTAL "Build experimental code" Off
d120 1
a120 1
.if defined(WITH_ARC)
d123 1
a123 1
.if defined(WITH_ARJ)
d126 1
a126 1
.if defined(WITH_LHA)
d129 1
a129 1
.if defined(WITH_UNZOO)
d132 1
a132 1
.if defined(WITH_UNRAR)
d138 1
a138 1
.if defined(WITH_ICONV)
d145 1
a145 5
.if defined(WITH_LLVM_PORTS)
BROKEN=		Does not build with LLVM 3.0
.endif

.if (defined(WITH_LLVM) || defined(WITH_LLVM_PORTS)) && ( ${ARCH} == "i386" || ${ARCH} == "amd64" )
a146 8
USE_GMAKE=	yes
. if defined(WITH_LLVM_PORTS)
BUILD_DEPENDS+=	${LOCALBASE}/bin/llvm-config:${PORTSDIR}/devel/llvm
CONFIGURE_ARGS+=-with-system-llvm=${LOCALBASE}/bin/llvm-config
. endif
. if defined(WITH_LLVM) && defined(WITH_LLVM_PORTS)
IGNORE=Select only one LLVM
. endif
d154 1
a154 1
.if defined(WITH_MILTER)
d157 1
a157 1
. if defined(WITH_LDAP) && exists(${LOCALBASE}/lib/libldap.so)
d175 1
a175 1
.if defined(WITH_STDERR)
d179 1
a179 1
.if defined(WITH_EXPERIMENTAL)
d189 1
a189 1
.if defined(WITH_TESTS) && ${OSVERSION} >= 700000
d208 1
a208 1
.if (defined(WITH_LLVM) || defined(WITH_LLVM_PORTS)) && defined(WITH_TESTS)
d221 1
a221 1
.if defined(WITH_TESTS) && ${OSVERSION} >= 700000
d237 1
a237 1
.if !defined(NOPORTDOCS)
@


1.171
log
@Update to 0.97.5
@
text
@d10 1
@


1.170
log
@- Update to 0.97.4
- Mark WITH_LLVM_PORTS as broken since it doesn't build with llvm 3.0
- Move LICENSE to correct place

PR:		ports/166160 (based on)
Submitted by:	scheidell@@
Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	0.97.4
@


1.169
log
@- Remove unecessary dependency (libcheck) when option TESTS is off [1]
- Add clamav-milter as CONFLICTS, this new meta port will be added soon

PR:		ports/161872
Submitted by:	Alexey Markov <redrat@@mail.ru>
Feature safe:	yes
@
text
@d9 1
a9 2
PORTVERSION=	0.97.3
PORTREVISION=	1
d16 2
a37 2
LICENSE=	GPLv2

d142 4
@


1.168
log
@Clamav project people offers a new version tarball for package maintainers
few days before the release, i made tests with that tarball, but it was
changed before release, and the distinfo was wrong.

I compared both tarballs and the difference was part of this commit [1] was
missing on the one i used.

Update distinfo to match 0.97.3 official tarball and bump PORTREVISION

Reported by:	many people
@
text
@d80 1
a80 1
CONFLICTS=	clamav-devel-[0-9]*
d195 1
a195 1
.if ${OSVERSION} >= 700000
@


1.167
log
@- Update to 0.97.3
- Fix build with external llvm [1]

PR:		ports/160185 [1]
Submitted by:	Volodymyr Kostyrko <c.kworr@@gmail.com> [1]
@
text
@d10 1
@


1.166
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d9 1
a9 1
PORTVERSION=	0.97.2
@


1.165
log
@- Update to 0.97.2

PR:		ports/159185 (based on)
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
@
text
@a46 2
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" \
		LDFLAGS="${LDFLAGS}"
@


1.164
log
@Fix build with llvm from ports

PR:		ports/157147
Submitted by:	Lapo Luchini <lapo@@lapo.it>
@
text
@d9 1
a9 1
PORTVERSION=	0.97.1
@


1.163
log
@- Update to 0.97.1
- Mark OPTION LLVM_PORTS as BROKEN since it's not building with llvm-2.9
  from ports

PR:		ports/157736
Submitted by:	Gary Palmer <freebsd-gnats@@in-addr.com>
@
text
@a149 1
BROKEN=	Not building with last llvm version
@


1.162
log
@- s/CONF_FILES/CLAM_CONF_FILES/ to avoid a conflict in the future with new
  options with the same name that will be added to bsd.port.mk

PR:		ports/157161, ports/157162
Submitted by:	Chris Rees <utisoft@@gmail.com>
@
text
@d9 1
a9 1
PORTVERSION=	0.97
d68 2
a69 1
MAN1=		clamconf.1 \
d150 1
@


1.161
log
@Add a new option to build JIT bytecode compiler using llvm installed from ports
instead of build clamav's own llvm. The option is off by default, so, no
PORTREVISION bum is required

PR:		ports/154900
Submitted by:	Denny Lin <dennylin93@@hs.ntnu.edu.tw>
@
text
@d34 1
a34 1
CONF_FILES=	clamd freshclam
d162 1
a162 1
CONF_FILES+=	clamav-milter
d239 1
a239 1
.for c in ${CONF_FILES}
@


1.160
log
@Fix detection if python was built with threads support and run make check
accordingly

PR:		ports/154848
Submitted by:	Martin Simmons <martin@@lispworks.com>
@
text
@d21 2
a22 1
		LLVM "Enable JIT Bytecode compiler" On \
d143 1
a143 1
.if defined(WITH_LLVM) && ( ${ARCH} == "i386" || ${ARCH} == "amd64" )
d146 7
d214 1
a214 1
.if defined(WITH_LLVM) && defined(WITH_TESTS)
@


1.159
log
@Update to 0.97

Feature safe:	yes
@
text
@d221 1
a221 1
	@@if [ -f "${PY_NO_THREAD}" ]; then \
@


1.158
log
@Restrict LLVM to i386 and amd64 since it doesn't build on sparc64, ia64 and
probably on ppc

Submitted by:	Anton Shterenlikht <mexas@@bristol.ac.uk>
Feature safe:	yes
@
text
@d9 1
a9 2
PORTVERSION=	0.96.5
PORTREVISION=	1
@


1.157
log
@- On 0.96.5, clamav was leaving some zombie proccess of freshclam, fix it.
- Bump PORTREVISION

Submitted by:	Herbert J. Skuhra <h.skuhra@@gmail.com>
Obtained from:	http://git.clamav.net/gitweb?p=clamav-devel.git;a=commitdiff;h=2e136dcd0d7c34dc742475529db022d80d0dde2e
		http://git.clamav.net/gitweb?p=clamav-devel.git;a=commitdiff;h=3c91587c8c894e898345086ef8e7a072fdf7b1bc
@
text
@d143 1
a143 1
.if defined(WITH_LLVM) && ${ARCH} != "sparc64"
@


1.156
log
@Sync to new bsd.autotools.mk
@
text
@d10 1
@


1.155
log
@Update to 0.96.5
@
text
@d44 1
a44 1
USE_AUTOTOOLS=	libltdl:22
@


1.154
log
@Update to 0.96.4
@
text
@d9 1
a9 1
PORTVERSION=	0.96.4
@


1.153
log
@Fix a mmap() error scanning PDF files, as described on clamav's git repo commit
log:

off_t is 64-bit, size_t is still 32-bit and that causes unexpected integer
promotion here:
map_off = map->len - 2048

First the unsigned subtraction is performed, and then the unsigned (!) value
is sign-extended to 64-bit. Hence a negative value becomes positive, which is
wrong.

Reported by:	Franz Schwartau <franz@@electromail.org>
Obtained from:	https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2300
@
text
@d9 1
a9 2
PORTVERSION=	0.96.3
PORTREVISION=	2
@


1.152
log
@- Remove GCC 4.2+ dependency, now it builds file with 3.4.6
- Add a new OPTION to TESTS, since it requires python on build time and some
  people don't like this. Leave it ON by default to run tests on package
  building
- Bump PORTREVISION because gcc dependency has changed

PR:		ports/150984 (based on)
Submitted by:	Eugene Grosbein <eugen@@grosbein.pp.ru>
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.151
log
@Update to 0.96.3
@
text
@d9 2
a10 1
DISTVERSION=	0.96.3
d23 1
d30 5
a34 5
GNU_CONFIGURE=		yes
MAKE_JOBS_SAFE=		yes
USE_LDCONFIG=		yes
USE_RC_SUBR=		clamav-clamd clamav-freshclam
CONF_FILES=		clamd freshclam
d145 2
d148 1
a148 2
USE_GMAKE=		yes
USE_GCC=		4.2+
d207 1
a207 1
.if defined(WITH_LLVM)
d220 1
a220 1
.if ${OSVERSION} >= 700000
@


1.150
log
@- Add missing dependency (libltdl) to clamav and clamav-devel ports
- Bump PORTREVISION

PR:		ports/150512
Submitted by:	Philippe Pepiot <phil@@philpep.org>
@
text
@d9 1
a9 2
DISTVERSION=	0.96.2
PORTREVISION=	3
@


1.149
log
@- Fix bytecode problem on FreeBSD 7.1
- Bump PORTREVISION

PR:		ports/150243
Submitted by:	Frank Wall <fw@@moov.de>
Obtained from:	https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2235
@
text
@d10 1
a10 1
PORTREVISION=	2
d44 1
@


1.148
log
@Add LICENSE
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.147
log
@- Fix CPU assumptions for amd64
- Bump PORTREVISION

PR:		ports/149637
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
Obtained from:	https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2201
@
text
@d35 2
@


1.146
log
@pav@@ noted LICENSE code don't work fine with ports using @@cwd in plist, and
it'll be fixed soon. Remove LICENSE from clamav ports for now.
@
text
@d10 1
@


1.145
log
@Update to 0.96.2
@
text
@a33 2
LICENSE=	GPLv2

@


1.144
log
@Add LICENSE
@
text
@d9 1
a9 1
DISTVERSION=	0.96.1
@


1.143
log
@Gcc 4.2+ is only needed to build clamav with LLVM/JIT support, remove this
dependency when LLVM is not set.

Submitted by:	Guy Antony Halse <G.Halse@@ru.ac.za>
@
text
@d34 2
@


1.142
log
@Update to 0.96.1
@
text
@a27 1
USE_GCC=		4.2+
d142 1
@


1.141
log
@Disable LLVM/JIT build for sparc64, it should unbreak it on this arch
@
text
@d9 1
a9 2
DISTVERSION=	0.96
PORTREVISION=	1
d70 2
a71 1
MAN5=		clamd.conf.5 \
@


1.140
log
@- Use ${TOUCH} instead of touch
- Fix pkg-plist to delete directories installed out of PREFIX (on /var) [1]
- Bump PORTREVISION because of [1]

PR:		ports/145448 [1]
Submitted by:	sahil@@ [1]
@
text
@d139 1
a139 1
.if defined(WITH_LLVM)
@


1.139
log
@Unit tests require python built with thread support, disable make check when
local python doesn't have this

PR:		ports/145520
Submitted by:	Michael Scheidell <scheidell at secnap.net>
@
text
@d10 1
d210 1
a210 1
		touch ${PY_NO_THREAD}; \
@


1.138
log
@Python and gmaker are needed just if LLVM option is set
@
text
@d41 1
d200 13
d215 3
a217 1
	@@${MAKE} -C ${WRKSRC} check
@


1.137
log
@- Reduce differences between it and security/clamav-devel
- Make JIT bytecode compiler as an OPTION, On by default [1]

PR:		ports/145435 [1]
Submitted by:	Alexander Wittig <alexander at wittig.name> [1]
@
text
@a28 2
USE_PYTHON_BUILD=	yes
USE_GMAKE=		yes
d110 1
a110 12
.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
CFLAGS+=	-march=i486
.endif

.if ${OSVERSION} >= 700000
BUILD_DEPENDS+=	${LOCALBASE}/include/check.h:${PORTSDIR}/devel/libcheck
CONFIGURE_ARGS+=--enable-check
.else
CONFIGURE_ARGS+=--disable-check
.endif
d139 2
d174 13
@


1.136
log
@- Remove duplicated BUILD_DEPENDS
@
text
@d21 1
d55 1
a55 2
		--enable-clamdtop \
		--enable-llvm
d119 2
a120 2
BUILD_DEPENDS+=		${LOCALBASE}/include/check.h:${PORTSDIR}/devel/libcheck
CONFIGURE_ARGS+=	--enable-check
d122 1
a122 1
CONFIGURE_ARGS+=	--disable-check
d141 1
a141 1
CONFIGURE_ARGS+=	--disable-unrar
d150 6
d166 1
a166 1
CONFIGURE_ARGS+=	--with-sendmail=${LOCALBASE}/sbin/sendmail
d168 1
a168 1
CONFIGURE_ARGS+=	--with-sendmail=/usr/sbin/sendmail
d171 1
a171 1
CONFIGURE_ARGS+=	--enable-milter
d182 1
a182 1
CONFIGURE_ARGS+=	--enable-experimental
@


1.135
log
@- Update to 0.96
- Fix error on make check when LC_ALL != en and subversion is installed [1]

PR:		ports/145340 [1]
Submitted by:	Alexander Wittig <alexander@@wittig.name> [1]
Obtained from:	https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1922 [1]
@
text
@a15 2
BUILD_DEPENDS=	${LOCALBASE}/include/check.h:${PORTSDIR}/devel/libcheck

@


1.134
log
@Execute a "make check" at post-build target, add libcheck as a dependency for it
@
text
@d9 1
a9 1
PORTVERSION=	0.95.3
d29 8
a36 5
GNU_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes
USE_LDCONFIG=	yes
USE_RC_SUBR=	clamav-clamd clamav-freshclam
CONF_FILES=	clamd freshclam
d55 3
a57 2
		--enable-check \
		--disable-dependency-tracking
d116 11
d193 1
d196 1
@


1.133
log
@Update to 0.95.3
@
text
@d16 2
d52 1
d178 3
@


1.132
log
@- Update to 0.95.2

PR:		ports/135501
Submitted by:	Alexey V.Degtyarev <alexey@@renatasystems.org>
@
text
@d9 1
a9 1
PORTVERSION=	0.95.2
@


1.131
log
@- Add reload option to startup script, it calls clamdscan --reload, a faster
  way to reload clam data without need restart
- Bump PORTREVISION

PR:		ports/133868
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
@
text
@d9 1
a9 2
PORTVERSION=	0.95.1
PORTREVISION=	1
@


1.130
log
@- Update to 0.95.1 and fix clamav-milter
@
text
@d10 1
@


1.129
log
@- Mark clamav-milter as BROKEN since it's not working. I updated clamav-devel
  to a version that have the fix and won't update it anymore until 0.95.1 is
  released
@
text
@d9 1
a9 1
PORTVERSION=	0.95
a134 1
BROKEN=		clamav-milter doesn't work fine on 0.95, clamav-devel already have the fix
@


1.128
log
@- Update to 0.95
@
text
@d135 1
@


1.127
log
@- Mark MAKE_JOBS_SAFE for SMP compilation

PR:		ports/132969
Approved by:	garga (maintainer, via ICQ)
@
text
@d9 1
a9 1
DISTVERSION=	0.94.2
a15 2
LIB_DEPENDS=	gmp.7:${PORTSDIR}/math/libgmp4

d31 1
d64 2
a65 1
		clamdscan.1
d92 1
a92 1
		-e 's|^\#?(PidFile) .*/([a-z]+\.pid)$$|\1 ${RUNDIR}/\2|' \
d100 3
a102 1
		-e 's|^\#?(NotifyClamd) .*$$|\1 ${PREFIX}/etc/clamd.conf|'
d136 1
d166 1
a166 1
	@@${REINPLACE_CMD} -E 's,^(pkgconfigdir = ).*$$,\1$$(prefix)/libdata/pkgconfig,g' \
d170 2
a171 1
		${WRKSRC}/etc/freshclam.conf
d180 1
a180 1
.for c in clamd freshclam
a187 3
. if defined(WITH_MILTER)
	${INSTALL_DATA} ${WRKSRC}/clamav-milter/INSTALL ${DOCSDIR}/INSTALL.clamav-milter
. endif
@


1.126
log
@- Update to 0.94.2
@
text
@d30 1
@


1.125
log
@- Remove libtools from depends and use its own version, without it next
  versions will stop building
- Remove --disable-zlib-vcheck from CONFIGURE_ARGS to fix a warning on
  configure
@
text
@d9 1
a9 1
DISTVERSION=	0.94.1
@


1.124
log
@- Update to 0.94.1
- Add --libdir to CONFIGURE_ARGS to fix libdir detection under 6.x
@
text
@d29 1
a29 1
USE_AUTOTOOLS=	libtool:15
a44 1
		--disable-zlib-vcheck \
@


1.123
log
@- Fix pkg-plist
- Bump PORTREVISION

Reported by:	QAT
Approved by:	portmgr (pav)
@
text
@d9 1
a9 2
PORTVERSION=	0.94
PORTREVISION=	1
d42 2
a43 1
CONFIGURE_ARGS=	--with-dbdir=${DBDIR} \
@


1.122
log
@- Forced commit to note the Security vulnerability fixed on last commit

Approved by:	portmgr (pav)
Security:	CVE-2008-1389
		https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1089
@
text
@d10 1
@


1.121
log
@- Update security/clamav to 0.94 [1] and fix a remote DoS [2]
- Chase libclamav version bump on all dependant ports
- Bump necessary PORTREVISIONS
- Fix some BROKEN messages from ports that were already broken with clamav-0.93
- Mark security/klamav as BROKEN since it doesn't build with clamav-0.94

PR:		ports/127122 [1], ports/127310 [2]
Submitted by:	Gary Palmer <freebsd-gnats@@in-addr.com> [1], delphij [2]
Approved by:	portmgr (pav)
@
text
@@


1.120
log
@- Change pre-install: target to pre-su-install: since user and group are
  created there (via pkg-install), and it must be done as root.
- While i'm here, fix the same on clamav-devel port

PR:		ports/126701
Submitted by:	grog
@
text
@d9 1
a9 1
PORTVERSION=	0.93.3
@


1.119
log
@Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
@
text
@d170 1
a170 1
pre-install:
@


1.118
log
@- Permit to ser owner and group to clamav milter socket [1]
- Remove @@ to show some install commands, and add -v to cp
- Install clamav-milter doc
- User CHOWN and CHMOD from bsd.commands.mk

PR:		ports/126069 [1]
Submitted by:	Matthew D. Fuller <fullermd@@over-yonder.net> [1]
@
text
@a29 1
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@


1.117
log
@- Update to 0.93.3
- Change clamav-milter startup script to wait clamav-milter socket be created
  before try to chmod it [1]

PR:		ports/124643 [1]
Submitted by:	Adrian Thearle <adrian@@thearle.com.au> [1]
@
text
@d86 3
a88 1
		CLAMAV_MILTER_SOCKET=${CLAMAV_MILTER_SOCKET}
d175 1
a175 1
	@@${INSTALL_DATA} ${WRKSRC}/clamav-config.h ${PREFIX}/include
d178 1
a178 1
		${CP} ${PREFIX}/etc/${c}.conf.default ${PREFIX}/etc/${c}.conf
d182 5
a186 2
	@@${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/ChangeLog ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKSRC}/docs/html/* ${DOCSDIR}/html
@


1.116
log
@- Fix checking of database viruses at startup script that i broke on last
  commit
- Bump PORTREVISION again

Submitted by:	George L. Yermulnik <yz@@iptcom.net>
Pointyhat to:	me
@
text
@d9 1
a9 2
PORTVERSION=	0.93.1
PORTREVISION=	2
@


1.115
log
@- Fix clamd startup script to support cld containers for virus databases
- Bump PORTREVISION

Reported by:	Robert Huff <roberthuff@@rcn.com>
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.114
log
@- Forgot to remove one conditional about PTHREAD_LIB on last commit
@
text
@d10 1
@


1.113
log
@- Remove < 6.1 conditional since it's no longer supported
@
text
@d57 4
a104 8
# This port has a problem with -pthread,
# force to use -lthr until it's not fixed.
.if ${OSVERSION} >= 601000
PTHREAD_LIBS=	-lthr
.else
PTHREAD_LIBS=	-lpthread
.endif

@


1.112
log
@- Update to 0.93.1
@
text
@d50 1
a100 6
.if ${OSVERSION} < 601103
CONFIGURE_ARGS+=	--disable-gethostbyname_r
.else
CONFIGURE_ARGS+=	--enable-gethostbyname_r
.endif

@


1.111
log
@- Fix default clamd socket name: clamd -> clamd.sock
- Some cosmetic changes (indentation)
- sort pkg-plist
- Add option on clamav-milter startup script to change socket permissions
  (tested on clamav-devel)
- Bump PORTREVISION
@
text
@d9 1
a9 2
PORTVERSION=	0.93
PORTREVISION=	1
@


1.110
log
@- Update to 0.93

This version fixes lock problem reported at ports/122534

Most important changes:
 *libclamav:
   - New logic in scan limits: provides much more efficient protection against
     DoS attacks but also results in different command line and config options
     to clamscan and clamd (see below)
   - New/improved modules: unzip, SIS, cabinet, CHM, SZDD, text normalisator,
     entity converter
   - Improved filetype detection; filetype definitions can be remotely updated
   - Support for .cld containers (which replace .inc directories)
   - Improved pattern matcher and signature formats
   - More efficient scanning of HTML files
   - Many other improvements

 * clamd:
   - NEW CONFIG FILE OPTIONS: MaxScanSize, MaxFileSize, MaxRecursion, MaxFiles
   - ** THE FOLLOWING OPTIONS ARE NO LONGER SUPPORTED **: MailMaxRecursion,
     ArchiveMaxFileSize, ArchiveMaxRecursion, ArchiveMaxFiles,
     ArchiveMaxCompressionRatio, ArchiveBlockMax

 * clamscan:
   - NEW CMDLINE OPTIONS: --max-filesize, --max-scansize
   - REMOVED OPTIONS: --block-max, --max-space, --max-ratio

 * freshclam:
   - NEW CONFIG OPTION CompressLocalDatabase
   - NEW CMDLINE SWITCH --no-warnings
   - main.inc and daily.inc directories are no longer used by ClamAV; please
     remove them manually from your database directory

PR:		ports/122770 [1] (based on)
		ports/122534 [2]
Submitted by:	Michael Scheidell <scheidell@@secnap.net> [1]
		Sebastian Inacker <inacker@@fmsweb.de> [2]
Security:	http://secunia.com/advisories/29000
@
text
@d10 1
d72 1
a72 1
CLAMAV_CLAMD_SOCKET?=	${RUNDIR}/clamd
d142 1
a142 1
.if defined(WITH_LDAP) && exists(${LOCALBASE}/lib/libldap.so)
d145 3
a147 2
.endif
.if !exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a)
d150 1
a150 1
.else
d152 2
a153 1
.endif
@


1.109
log
@- Fix a thread problem on FreeBSD 5.x forcing it to use -lpthread [1]
- Fix a problem on pkg-install, when umask is not default, it create dirs with
  wrong permissions [2]
- Bump PORTREVISION

PR:		ports/120885 [2]
Submitted by:	dmx@@dmx.org.ru [2]
Noticed by:	havp pointyhat via pav
@
text
@d9 1
a9 2
PORTVERSION=	0.92.1
PORTREVISION=	1
@


1.108
log
@- Update to 0.92.1 (bugfix release) [1]
- Fix distinfo, removing unrar.diff entry since this file don't exist more. [2]

PR:		ports/120547 [1], ports/120574 [2]
Submitted by:	Michael Scheidell <scheidell@@secnap.net> [1], delphij [2]
@
text
@d10 1
d111 2
@


1.107
log
@- Add an OPTION ICONV to fix a problem that can be caused by auto detection.
  No PORTREVISION bump necessary since it's off by default.
@
text
@d9 1
a9 1
PORTVERSION=	0.92
@


1.106
log
@- Update security/clamav to 0.92
- Add a new OPTION (RAR) because unrar code is optional to fix a license
  issue
- Some cosmetic changes
- Chase library version bump and bump PORTREVISION of all dependant ports

Approved by:	portmgr (pav)
Security:	CVE-2007-6335, CVE-2007-6336, CVE-2007-6337
@
text
@d25 1
d130 6
@


1.105
log
@Unbreak pthread-related issues on 5.x

Approved by:	portmgr
@
text
@d9 1
a9 2
PORTVERSION=	0.91.2
PORTREVISION=	1
d21 2
d111 1
a111 1
.if !defined(WITHOUT_ARC)
d114 1
a114 1
.if !defined(WITHOUT_ARJ)
d117 1
a117 1
.if !defined(WITHOUT_LHA)
d120 9
a160 2
	@@${REINPLACE_CMD} -e 's|0x100000000|0x100000000ULL|g' \
		${WRKSRC}/libclamav/unrar/unrar.c
d164 2
@


1.104
log
@- Update to 0.91.2

PR:		ports/115682
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
@
text
@d10 1
a108 6
# Maybe the port is broken for
# FreeBSD 5.2.1 since -lc_r
# and -pthread have both issues there.
.if ${OSVERSION} == 502010
PTHREAD_LIBS=	-pthread
.endif
@


1.103
log
@- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
  supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
@
text
@d9 1
a9 1
PORTVERSION=	0.91.1
@


1.102
log
@- Update to 0.91.1

PR:		ports/114643
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
@
text
@a41 1
		--mandir=${MANPREFIX}/man \
@


1.101
log
@- Update to 0.91
- Remove CURL option because it's not needed anymore
@
text
@d9 1
a9 1
PORTVERSION=	0.91
@


1.100
log
@- Update to 0.90.3
- Remove unzoo support (clam doesn't support it anymore)

PR:		ports/113174
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
@
text
@d9 1
a9 1
PORTVERSION=	0.90.3
a22 1
		CURL "Support URL downloading" Off \
a143 7
.if defined(WITH_CURL)
LIB_DEPENDS+=		curl.4:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+=	--with-libcurl
.else
CONFIGURE_ARGS+=	--without-libcurl
.endif

@


1.99
log
@- Make arc, arj, lha and unzoo achives support dependency as OPTIONS enabled by
  default. Clamav can run fine without these guys. PORTREVISION bump is not
  needed since final package is the same.

PR:		ports/113087
Submitted by:	baptiste.daroussin@@gmail.com
@
text
@d9 1
a9 2
PORTVERSION=	0.90.2
PORTREVISION=	1
a20 1
		UNZOO "Enavle zoo archives support" On \
a125 3
.if !defined(WITHOUT_UNZOO)
RUN_DEPENDS+=	unzoo:${PORTSDIR}/archivers/unzoo
.endif
@


1.98
log
@- Fix build with gethostbyname_r just after 601103 instead 600000
- Bump PORTREVISION

Reported by:	security <security@@jim-liesl.org>
Submitted by:	Craig Butler <craig001@@lerwick.hopto.org>
@
text
@a17 4
RUN_DEPENDS=	lha:${PORTSDIR}/archivers/lha \
		arj:${PORTSDIR}/archivers/arj \
		unzoo:${PORTSDIR}/archivers/unzoo \
		arc:${PORTSDIR}/archivers/arc
d19 5
a23 1
OPTIONS=	MILTER "Compile the milter interface" Off \
d119 13
@


1.97
log
@Forced commit to note last commit fix a security problem.

Security:	CVE-2007-2029
@
text
@d10 1
d101 1
a101 1
.if ${OSVERSION} < 600000
@


1.96
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]
@
text
@@


1.95
log
@Bump PORTREVISION for last changes

Pointy Hat to:	mbr
@
text
@d9 1
a9 2
PORTVERSION=	0.90.1
PORTREVISION=	1
a48 1
		--disable-gethostbyname_r \
d100 6
d166 1
@


1.94
log
@And unbreak support for older FreeBSDs where libthr/libpthread did not exist.

PR:	110334
@
text
@d10 1
@


1.93
log
@Only use libthr for FreeBSD > 6.1
@
text
@a32 4
# This port has a problem with -pthread,
# force to use -lthr until it's not fixed.
PTHREAD_LIBS=	-lthr

d101 9
a109 1
.if ${OSVERSION} < 601000
@


1.92
log
@- Update clamav to 0.90.1
- Use -lthr to build clamav since it has problems with libpthread
- Bump PORTREVISION of dependant ports, libclamav version was bumped
- Fix clamcour to build with clamav-0.90.x using patch sent by maintainer
@
text
@d105 1
a105 1
.if ${OSVERSION} == 502010
@


1.91
log
@Change the way to patch configure to respect ${PTHREAD_LIBS} to a better one.
@
text
@d9 1
a9 2
PORTVERSION=	0.90
PORTREVISION=	3
d33 4
@


1.90
log
@- Fix problems with thread caused by a bad REINPLACE_CMD.
- Bump PORTREVISION

Reported by:	many users
@
text
@d140 1
a140 1
	@@${REINPLACE_CMD} -e 's|-lpthread -lc_r|${PTHREAD_LIBS}|g' \
@


1.89
log
@- Fix 'integer constant is too large for "long" type' warning [1]
- Convert one patch to REINPLACE_CMD
- Force to use ${PREFIX}/lib/libmilter.a if it's installed
- Fix sendmail binary detection using --with-sendmail instead SENDMAIL envvar
- Add EXPERIMENTAL OPTION to build with --enable-experimental
- Remove DESTDIR/TARGETDIR since it's useless for now
- Bump PORTREVISION

Submitted by:	stas@@ at #bsdports [1]
Thanks to:	stas@@ and simon@@ [1]
@
text
@d10 1
a10 1
PORTREVISION=	2
d140 1
a140 1
	@@${REINPLACE_CMD} -e 's|-pthread -lc_r|${PTHREAD_LIBS}|g' \
@


1.88
log
@- Fix sed used on (clamd|freshclam).conf to new format
- Add LDAP as an OPTION
- Bump PORTREVISION

Spoted by:	ache@@
@
text
@d10 1
a10 1
PORTREVISION=	1
d26 2
a27 1
		STDERR "Print logs to stderr instead of stdout" Off
d41 2
d45 1
a45 1
		--mandir=${MANPREFIX:S/^${DESTDIR}//}/man \
a57 2
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" \
		LDFLAGS="${LDFLAGS}"
d77 1
a77 2
SUB_LIST+=	DESTDIR=${DESTDIR} \
		DBDIR=${DBDIR} \
d112 1
a112 1
.if !exists(/usr/lib/libmilter.a)
d114 1
a114 1
CONFIGURE_ENV+=	SENDMAIL="${LOCALBASE}/sbin/sendmail"
d116 1
a116 1
CONFIGURE_ENV+=	SENDMAIL="/usr/sbin/sendmail"
d135 4
d141 8
a148 5
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
	@@${REINPLACE_CMD} -e 's,unarj,arj,g' \
		${WRKSRC}/docs/man/clamscan.1
	@@${REINPLACE_CMD} ${SED_CONF} ${BUILD_WRKSRC}/etc/clamd.conf
	@@${REINPLACE_CMD} ${SED_CONF} ${BUILD_WRKSRC}/etc/freshclam.conf
d151 1
a151 2
	@@${SETENV} PKG_PREFIX=${PREFIX} \
		${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
d155 2
a156 2
	@@[ -f ${TARGETDIR}/etc/${c}.conf ] || \
		${CP} ${TARGETDIR}/etc/${c}.conf.default ${TARGETDIR}/etc/${c}.conf
d160 2
a161 2
	@@${INSTALL_DATA} ${INSTALL_WRKSRC}/NEWS ${INSTALL_WRKSRC}/ChangeLog ${DOCSDIR}
	@@${INSTALL_DATA} ${INSTALL_WRKSRC}/docs/html/* ${DOCSDIR}/html
@


1.87
log
@- Update to 0.90
- Cleanup a little bit

PR:		ports/109185 (Based on)
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
@
text
@d10 1
d24 1
d90 2
a91 2
		-e 's|^\#?(AllowSupplementaryGroups)$$|\1|' \
		-e 's|^\#?(ScanMail)$$|\1|' \
d94 1
a94 1
		-e 's|^\#?(FixStaleSocket)$$|\1|' \
d108 1
a108 1
.if !defined(WITHOUT_LDAP) && exists(${LOCALBASE}/lib/libldap.so)
@


1.86
log
@Update the ftp/curl port to 7.16.0.
Bump PORTREVISION of all dependent ports.
Fix the build errors in the few ports that still use the long deprecated,
and now obsoleted, cURL options.

Thanks to everyone who took the time to look over the patch!

Discussed on:	-ports
@
text
@d9 1
a9 2
PORTVERSION=	0.88.7
PORTREVISION=	1
d20 1
a20 2
		arc:${PORTSDIR}/archivers/arc \
		unzip:${PORTSDIR}/archivers/unzip
a23 1
		LIBUNRAR "Support for external Unrar library" Off \
d31 1
a31 1
PORTDOCS=	NEWS ChangeLog html
d55 9
a63 3
MAN1=		clamscan.1 freshclam.1 sigtool.1 clamdscan.1
MAN5=		clamd.conf.5 freshclam.conf.5
MAN8=		clamd.8 clamav-milter.8
d69 1
a89 1
		-e 's|^\#?(NotifyClamd)$$|\1|' \
d92 2
a93 1
		-e 's|^\#?(FixStaleSocket)$$|\1|'
a128 10
.if defined(WITH_LIBUNRAR)
CFLAGS+=		-DUNRAR3
LDFLAGS+=		-lunrar
LIB_DEPENDS+=		unrar.3:${PORTSDIR}/archivers/libunrar
EXTRA_PATCHES=		${FILESDIR}/extra-patch-libunrar
.else
RUN_DEPENDS+=		unrar:${PORTSDIR}/archivers/unrar
EXTRA_PATCHES=		${FILESDIR}/extra-patch-libclamav__unrarlib.h
.endif

a137 9

pre-build:
	@@if ${LDCONFIG} -r | ${GREP} -qw -e -lclamav; then \
		${ECHO_MSG} "===>  *** WARNING ***"; \
		${ECHO_MSG} "      Installed version of libclamav found."; \
		${ECHO_MSG} "      This might cause build problems."; \
	fi

post-build:
a145 1
	@@${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DESTDIR}${DBDIR}
a150 3
	@@${MKDIR} ${DOCSDIR}
	@@${INSTALL_DATA} ${INSTALL_WRKSRC}/NEWS ${INSTALL_WRKSRC}/ChangeLog \
		${DOCSDIR}
d152 2
a153 2
	@@${INSTALL_DATA} ${INSTALL_WRKSRC}/docs/html/*.* \
		${DOCSDIR}/html
d155 1
a155 2
	@@${SETENV} PKG_PREFIX=${PREFIX} \
		${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@


1.85
log
@- Update clamav to 0.88.7

PR:		106620
Submitted by:	Michael Scheidell <scheidell___secnap.net>
Approved by:	maintainer timeout (18 hours)
With hat:	secteam
Security:	http://secunia.com/advisories/23347/, http://www.quantenblog.net/security/virus-scanner-bypass
@
text
@d10 1
d119 1
a119 1
LIB_DEPENDS+=		curl.3:${PORTSDIR}/ftp/curl
@


1.84
log
@Forced commit to note las one was:

PR:		ports/105198
Submitted by:	Samm & <root@@ukrlex.net>
@
text
@d9 1
a9 1
PORTVERSION=	0.88.6
@


1.83
log
@Update to 0.88.6
@
text
@@


1.82
log
@- Update to 0.88.5
- portlint(1)

Approved by:	portmgr (mnag with secteam hat), garga (maintainer)
Security:	http://lurker.clamav.net/message/20061016.015114.dc6a8930.en.html,
		http://secunia.com/advisories/22370/
@
text
@d9 1
a9 1
PORTVERSION=	0.88.5
@


1.81
log
@Respect DESTDIR

Reworked by:	gabor
Tested by:	gabor
@
text
@d9 1
a9 1
PORTVERSION=	0.88.4
@


1.80
log
@- Update to 0.88.4
- Use USE_LDCONFIG instead obsolete INSTALLS_SHLIB
- Use new MASTER_SITES magic to SF

Security:	http://www.clamav.net/security/0.88.4.html
@
text
@d42 1
a42 1
		--mandir=${MANPREFIX}/man \
d69 2
a70 1
SUB_LIST=	DBDIR=${DBDIR} \
d156 2
a157 2
	@@${SETENV} PKG_PREFIX=${PREFIX} PKG_DESTDIR=${DESTDIR} \
		${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL
d162 2
a163 2
	@@[ -f ${DESTDIR}${PREFIX}/etc/${c}.conf ] || \
		${CP} ${DESTDIR}${PREFIX}/etc/${c}.conf.default ${DESTDIR}${PREFIX}/etc/${c}.conf
d166 1
a166 1
	@@${MKDIR} ${DESTDIR}${DOCSDIR}
d168 2
a169 2
		${DESTDIR}${DOCSDIR}
	@@${MKDIR} ${DESTDIR}${DOCSDIR}/html
d171 1
a171 1
		${DESTDIR}${DOCSDIR}/html
d173 2
a174 2
	@@${SETENV} PKG_PREFIX=${PREFIX} PKG_DESTDIR=${DESTDIR} \
		${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL
@


1.79
log
@Update to 0.88.3
@
text
@d9 1
a9 1
PORTVERSION=	0.88.3
d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR=	clamav
d30 1
a30 1
INSTALLS_SHLIB=	yes
@


1.78
log
@- 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]
@
text
@d9 1
a9 2
PORTVERSION=	0.88.2
PORTREVISION=	4
d43 1
@


1.77
log
@Depend of archivers/arj instead archivers/unarj
@
text
@d10 1
a10 1
PORTREVISION=	3
d27 2
a28 1
		LIBUNRAR "Support for external Unrar library" Off
d134 4
d141 2
@


1.76
log
@Use archivers/unzoo on DEPENDS instead zoo

Proposed by:	Anton Yuzhaninov <citrin at citrin.ru>
@
text
@d10 1
a10 1
PORTREVISION=	2
d20 1
a20 1
		unarj:${PORTSDIR}/archivers/unarj \
@


1.75
log
@Chase gmp library and bump PORTREVISION.
@
text
@d10 1
a10 1
PORTREVISION=	1
d21 1
a21 1
		zoo:${PORTSDIR}/archivers/zoo \
@


1.74
log
@Update to 0.88.2
@
text
@d10 1
d18 1
a18 1
LIB_DEPENDS=	gmp.6:${PORTSDIR}/math/libgmp4
@


1.73
log
@Take over maintainership

Approved by:	maintainer by email
@
text
@d9 1
a9 1
PORTVERSION=	0.88.1
@


1.72
log
@- Update to 0.88.1 -- Fix multiple vulnerabilities
 * CVE-2006-1614
    Damian Put discovered an integer overflow in the PE header parser.
    This is only exploitable if the ArchiveMaxFileSize option is disabled.
 * CVE-2006-1615
    Format string vulnerabilities in the logging code have been discovered,
    which might lead to the execution of arbitrary code.
 * CVE-2006-1630
    David Luyer discovered, that ClamAV can be tricked into an invalid
    memory access in the cli_bitset_set() function, which may lead to
    a denial of service.

- Use USE_RC_SUBR=script

PR:		ports/95403
Submitted by:	garga
Approved by:	maintainer timeout (mnag on behalf of secteam)
Security:	VuXML 6a5174bd-c580-11da-9110-00123ffe8333
@
text
@d14 1
a14 1
MAINTAINER=	rob@@debank.tv
@


1.71
log
@Conversion to a single libtool environment.

Approved by:	portmgr (kris)
@
text
@d9 1
a9 2
PORTVERSION=	0.88
PORTREVISION=	1
a27 1
USE_REINPLACE=	yes
d31 1
a31 1
USE_RC_SUBR=	yes
d67 1
a67 1
SUB_FILES=	pkg-install pkg-deinstall clamav-clamd.sh clamav-freshclam.sh
a90 5
RC_DIR=		${PREFIX}/etc/rc.d
RC_SUFX=	.sh
SUB_LIST+=	RC_DIR=${RC_DIR} RC_SUFX=${RC_SUFX}
PLIST_SUB+=	RC_DIR=${RC_DIR} RC_SUFX=${RC_SUFX}

d98 1
a98 1
SUB_FILES+=	clamav-milter.sh
a151 4
	@@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh \
		${DESTDIR}${RC_DIR}/clamav-clamd${RC_SUFX}
	@@${INSTALL_SCRIPT} ${WRKDIR}/clamav-freshclam.sh \
		${DESTDIR}${RC_DIR}/clamav-freshclam${RC_SUFX}
a156 4
.if defined(WITH_MILTER)
	@@${INSTALL_SCRIPT} ${WRKDIR}/clamav-milter.sh \
		${DESTDIR}${RC_DIR}/clamav-milter${RC_SUFX}
.endif
@


1.70
log
@Update to 0.88, a possible heap overflow in the UPX code has been fixed

PR:		91593
Submitted by:	Boris B. Samorodov <bsam@@ipt.ru>
Approved by:	simon (secteam)
Security:	612a34ec-81dc-11da-a043-0002a5c3d308 (VuXML)
@
text
@d10 1
@


1.69
log
@Mass-conversion to the USE_AUTOTOOLS New World Order.  The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
@
text
@d9 1
a9 1
PORTVERSION=	0.87.1
@


1.68
log
@Update to 0.87.1

PR:		88482
Submitted by:	garga
Approved by:	rob@@debank.tv (simon bypass maintainer timeout)
Security:	CAN-2005-3303, http://www.zerodayinitiative.com/advisories/ZDI-05-002.html
@
text
@d29 1
a29 1
USE_LIBTOOL_VER=15
@


1.67
log
@Fix package list when use LIBUNRAR
If use LIBUNRAR don't need archivers/unrar
Remake patches to work without autotools
Bump PORTREVISION

PR:		87338
Approved by:	Rob <rob@@debank.tv> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	0.87
PORTREVISION=	2
@


1.66
log
@Fix using of libunrar in OPTIONS variable.

Noted by:	ache
@
text
@d10 1
a10 1
PORTREVISION=	1
a20 1
		unrar:${PORTSDIR}/archivers/unrar \
d28 1
d130 2
a131 2
WANT_AUTOMAKE_VER=      19
USE_AUTOCONF_VER=       259
d133 4
a136 7

pre-configure:
	cd ${WRKSRC} && \
	${ACLOCAL} && \
	${AUTOHEADER} && \
	${AUTOCONF} && \
	${AUTOMAKE}
a141 3
.if defined(WITH_LIBUNRAR)
	${PATCH} -d  ${WRKSRC}/libclamav < ${PORTSDIR}/security/clamav/files/clamav-0.87-libunrar3.patch
.endif
a178 1

@


1.65
log
@Allow clamav to use rar 3 archives using archivers/libunrar.

PR:		86510
Submitted by:	Alex Samorukov <samm@@os2.kiev.ua>,
		Rob <r.evers@@nedstat.com> (maintainer)
@
text
@d28 1
a28 1
		UNRAR "Support for external Unrar library" Off
@


1.64
log
@- Update to 0.87

PR:		ports/86276
Submitted by:	dawnshade <h-k@@mail.ru>
Approved by:	maintainer timeout (3 days)
		timeout rushed by simon (secteam hat)
Security:	CAN-2005-2919, CAN-2005-2920,
		http://www.secunia.com/advisories/16848/
@
text
@d10 1
d27 2
a28 1
		CURL "Support URL downloading" Off
d129 13
d145 3
@


1.63
log
@- Bandaid compilation on FreeBSD 5.2.1

PR:		ports/84131
Submitted by:	Thorolf <thorolf@@grid.einherjar.de>
Approved by:	maintainer timeout (1 month)
@
text
@d9 1
a9 2
PORTVERSION=	0.86.2
PORTREVISION=	1
@


1.62
log
@- Fix startup script for milter

PR:		ports/84104
Submitted by:	maintainer
Reported by:	Erin Fortenberry <kahn@@deadbbs.com>
@
text
@d99 4
@


1.61
log
@- Update to 0.86.2

PR:		ports/84038
Submitted by:	dawnshade <h-k@@mail.ru>
Approved by:	maintainer
@
text
@d10 1
@


1.60
log
@- Update to 0.86.1
A possible crash in the libmspack's Quantum decompressor has been fixed.

PR:		ports/82604
Submitted by:	Renato Botelho <freebsd@@galle.com.br>
Approved by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	0.86.1
@


1.59
log
@- Bump PORTREVISION

Requested by:	Pavel Rochnyack (irc)
@
text
@d9 1
a9 2
PORTVERSION=	0.86
PORTREVISION=	1
@


1.58
log
@- Fix compilation of the milter interface [1]
- Unconditionally define PORTDOCS, as bsd.port.mk now tests ${NOPORTDOCS}

[1]:
PR:		ports/82543
Submitted by:	Thomas Abthorpe <thomas@@stthomasanglican.org>
@
text
@d10 1
@


1.57
log
@- Update to 0.86 [1]
- Fix the packing list

[1]
PR:		ports/82474
Submitted by:	Renato Botelho <freebsd@@galle.com.br>
Approved by:	maintainer
@
text
@a32 1
.if !defined(NOPORTDOCS)
a33 1
.endif
@


1.56
log
@Update to 0.85.1.

PR:		81157
Submitted by:	Renato Botelho <freebsd@@galle.com.br>
Approved by:	Rob Evers (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	0.85.1
d33 1
d35 1
@


1.55
log
@- Update to 0.85 [1]
- Fix syntax of "extern C" wrappers in .h files [2]
- Use SUB_FILES facility
- Polish the Makefile

PR:		ports/80947
Submitted by:	maintainer [1], Milan Obuch <ports-bugs@@dino.sk> [2]
@
text
@d9 1
a9 1
PORTVERSION=	0.85
@


1.54
log
@Update security/clamav to version 0.84.

PR:		ports/80570
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	${DISTVERSION:C/([a-z])[a-z]*/.\1/g:S/-/./g}
a12 1
DISTNAME=	${PORTNAME}-${DISTVERSION}
a24 2
DISTVERSION=	0.84

a32 3
PKGINSTALL=	${WRKDIR}/pkg-install
PKGDEINSTALL=	${WRKDIR}/pkg-deinstall

d67 8
a74 8
SED_SCRIPT=	-e 's|%%PREFIX%%|${PREFIX}|g' \
		-e 's|%%DBDIR%%|${DBDIR}|g' \
		-e 's|%%LOGDIR%%|${LOGDIR}|g' \
		-e 's|%%RUNDIR%%|${RUNDIR}|g' \
		-e 's|%%CLAMAVUSER%%|${CLAMAVUSER}|g' \
		-e 's|%%CLAMAVGROUP%%|${CLAMAVGROUP}|g' \
		-e 's|%%CLAMAV_CLAMD_SOCKET%%|${CLAMAV_CLAMD_SOCKET}|g' \
		-e 's|%%CLAMAV_MILTER_SOCKET%%|${CLAMAV_MILTER_SOCKET}|g'
d93 2
a94 5
SED_SCRIPT+=	-e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
		-e 's|%%RC_DIR%%|${RC_DIR}|g' \
		-e 's|%%RC_SUFX%%|${RC_SUFX}|g'
PLIST_SUB+=	RC_DIR=${RC_DIR} \
		RC_SUFX=${RC_SUFX}
d99 1
a136 10
	@@${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-install >${PKGINSTALL}
	@@${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-deinstall >${PKGDEINSTALL}
	@@${SED} ${SED_SCRIPT} ${FILESDIR}/clamav-clamd.sh \
		>${WRKDIR}/clamav-clamd.sh
	@@${SED} ${SED_SCRIPT} ${FILESDIR}/clamav-freshclam.sh \
		>${WRKDIR}/clamav-freshclam.sh
.if defined(WITH_MILTER)
	@@${SED} ${SED_SCRIPT} ${FILESDIR}/clamav-milter.sh \
		>${WRKDIR}/clamav-milter.sh
.endif
@


1.53
log
@At Kris's request, back out the MACHINE_ARCH spelling correction until
after 5.4-RELEASE.
@
text
@d26 1
a26 1
DISTVERSION=	0.83
@


1.52
log
@Assist getting more ports working on AMD64 by obeying the
Ports Collection documentation and use 'ARCH' rather than 'MACHINE_ARCH'.
@
text
@d32 1
a32 1
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
@


1.51
log
@- Update to 0.83

PR:		ports/77561
Submitted by:	Marcus Grando <marcus@@corp.grupos.com.br>
Approved by:	Rob Evers <rob@@debank.tv> (maintainer)
@
text
@d32 1
a32 1
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@


1.50
log
@- Fix crashing of milter by turning off SESSION support [1]
- Fix build when libmilter was built with LDAP [2]

PR:		ports/77255 [1], ports/77235 [2]
Submitted by:	Sergey N. Voronkov <serg@@tmn.ru> [1],
		Lewis Thompson <lewiz@@compsoc.man.ac.uk> [2]
Approved by:	Rob Evers <rob@@debank.tv> (maintainer)
@
text
@a9 1
PORTREVISION=	1
d26 1
a26 1
DISTVERSION=	0.82
a59 7
.include <bsd.port.pre.mk>

.if !defined(WITHOUT_LDAP) && exists(${LOCALBASE}/lib/libldap.so)
USE_OPENLDAP=	yes
LDFLAGS+=	-lldap
.endif

d105 2
d108 4
@


1.49
log
@- Update to 0.82

PR:		ports/77231
Submitted by:	maintainer
@
text
@d10 1
d60 8
a112 2
.include <bsd.port.pre.mk>

@


1.48
log
@Remove unexisting directory from PORTDOCS.
Bump PORTREVISION.
@
text
@a9 1
PORTREVISION=	1
d26 1
a26 1
DISTVERSION=	0.81
d39 1
a39 1
PORTDOCS=	NEWS ChangeLog
d173 4
@


1.47
log
@Upgrade to 0.81.

PR:		ports/76864
Submitted by:	maintainer
@
text
@d10 1
d40 1
a40 1
PORTDOCS=	NEWS ChangeLog html
@


1.46
log
@Introduce a variable LOGDIR instead of using a literal log directory
pathname everywhere.

Approved by:	Rob Evers (maintainer)
@
text
@a9 1
PORTREVISION=	3
d26 1
a26 1
DISTVERSION=	0.80
d47 2
a172 3
	@@${MKDIR} ${DESTDIR}${DOCSDIR}/html
	@@${INSTALL_DATA} ${INSTALL_WRKSRC}/docs/html/*.* \
		${DESTDIR}${DOCSDIR}/html
@


1.45
log
@Do the things I forgot about in my previous commit:

- Change the last instance of literal `/var/run/clamav' to %%RUNDIR%%.
- Bump PORTREVISION since the changes should improve the functionality
  of the installed package.

PR:		ports/75607
Approved by:	maintainer
@
text
@d43 1
d45 1
a45 1
PLIST_SUB+=	DBDIR=${DBDIR} RUNDIR=${RUNDIR}
d73 1
d81 1
a81 1
		-e 's|^\#?((Update)?LogFile) .*/([a-z]+\.log)$$|\1 /var/log/clamav/\3|' \
@


1.44
log
@1. Make clamav-milter write its pidfile.
2. Shut down clamav daemons in the right order
   on uninstall (or else they may refuse to quit.)
3. Use rcorder(8) keywords to guarantee the right
   startup/shutdown order of the clamav services.

PR:		ports/75607
Approved by:	the maintainer
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.43
log
@Fix ports: security/clamav and security/clamav-devel (change db
directory to /var/db/clamav and fix removal of db on deinstall)

	For the sake of coherence, the ClamAV database should be
	installed in /var/db/clamav, not /usr/local/share/clamav.
	Also fixes the database removal on package deinstallation.

PR:		ports/74172
Submitted by:	Jean-Yves Lefort <jylefort@@brutele.be>
Approved by:	Rob Evers <rob@@debank.tv>
@
text
@d43 2
a44 1
PLIST_SUB+=	DBDIR=${DBDIR}
d67 2
a68 2
CLAMAV_CLAMD_SOCKET?=	/var/run/clamav/clamd
CLAMAV_MILTER_SOCKET?=	/var/run/clamav/clmilter.sock
d72 1
d80 1
a80 1
		-e 's|^\#?(PidFile) .*/([a-z]+\.pid)$$|\1 /var/run/clamav/\2|' \
@


1.42
log
@- Fix plist

PR:		ports/73558
Submitted by:	Rob Evers <rob@@debank.tv> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	1
d42 4
a45 1
CONFIGURE_ARGS=	--with-dbdir=${DATADIR} \
d70 1
a70 1
		-e 's|%%DATADIR%%|${DATADIR}|g' \
d84 1
a84 1
		-e 's|^\#?(DatabaseDirectory) .*$$|\1 ${DATADIR}|' \
d155 1
a155 1
	@@${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DESTDIR}${DATADIR}
@


1.41
log
@- update to 0.80 release

PR:		72810
Submitted by:	Rob Evers <rob@@dokus.debank.tv> (maintainer)
@
text
@d10 1
@


1.40
log
@- update to 0.80rc4
  + JPEG comment exploit (MS04-028) detection

  *** IMPORTANT ***
  The configruration file for the clamd daemon has changed from
  /usr/local/etc/clamav.conf to /usr/local/etc/clamd.conf.

PR:		72203
Approved by:	Rob Evers <revers@@infraqon.nl> (maintainer)
@
text
@d26 1
a26 1
DISTVERSION=	0.80rc4
@


1.39
log
@- Update to 0.75.1

PR:		ports/69805
Submitted by:	Marcus Grando <marcus@@corp.grupos.com.br>
Approved by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	${DISTVERSION:S/-rc//g:S/-/./g}
d26 1
a26 1
DISTVERSION=	0.75.1
d28 2
a29 1
OPTIONS=	MILTER "Compile the milter interface" off
d31 1
a31 1
GNU_CONFIGURE=	yes
d45 2
d55 1
a55 1
MAN5=		clamav.conf.5 freshclam.conf.5
d73 2
a74 2
		-e 's|^\#?(LogFile) .*$$|\1 /var/log/clamav/clamd.log|' \
		-e 's|^\#?(PidFile) .*$$|\1 /var/run/clamav/clamd.pid|' \
d79 1
a79 1
		-e 's|^\#?(Checks)$$|\#\1|' \
a81 1
		-e 's|^\#?(UpdateLogFile) .*$$|\1 /var/log/clamav/freshclam.log|' \
d100 3
d110 7
d120 7
a126 4
	@@${REINPLACE_CMD} -e 's|/usr/lib/sendmail|/usr/sbin/sendmail|g' \
		${WRKSRC}/clamav-milter/clamav-milter.c
	@@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
		${WRKSRC}/Makefile.in
d129 1
a129 1
	@@${REINPLACE_CMD} ${SED_CONF} ${BUILD_WRKSRC}/etc/clamav.conf
d143 1
a143 1
	@@${SETENV} PKG_PREFIX=${PREFIX} \
d148 1
a148 1
		${RC_DIR}/clamav-clamd${RC_SUFX}
d150 5
a154 5
		${RC_DIR}/clamav-freshclam${RC_SUFX}
	@@${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DATADIR}
.for c in clamav freshclam
	@@[ -f ${PREFIX}/etc/${c}.conf ] || \
		${CP} ${PREFIX}/etc/${c}.conf.default ${PREFIX}/etc/${c}.conf
d158 1
a158 1
		${RC_DIR}/clamav-milter${RC_SUFX}
d161 1
a161 1
	@@${MKDIR} ${DOCSDIR}
d163 2
a164 2
		${DOCSDIR}
	@@${MKDIR} ${DOCSDIR}/html
d166 1
a166 1
		${DOCSDIR}/html
d168 1
a168 1
	@@${SETENV} PKG_PREFIX=${PREFIX} \
@


1.38
log
@- Update to 0.75

PR:		ports/69657
Submitted by:	Renato Botelho <rbgarga@@gmail.com>
Approved by:	maintainer
@
text
@d26 1
a26 1
DISTVERSION=	0.75
@


1.37
log
@Update security/clamav to 0.74 release
Various bug fixes and improved Microsoft VBA support

PR:		68597
Submitted by:	Rob Evers <rob@@debank.tv> (maintainer)
@
text
@d26 1
a26 1
DISTVERSION=	0.74
d55 1
a55 1
CONFLICTS=	clamav-devel-*
@


1.36
log
@update to 0.73
use freshclam pid file

PR:		67962
Submitted by:	Rob Evers <rob@@debank.tv> (maintainer)
@
text
@d26 1
a26 1
DISTVERSION=	0.73
@


1.35
log
@Update security/clamav to 0.72 release
This is a bug fix release only, and fixes a few possible crashes

PR:		67561
Submitted by:	Rob Evers <rob@@debank.tv> (maintainer)
@
text
@d26 1
a26 1
DISTVERSION=	0.72
a29 1
USE_GMAKE=	yes
d110 2
@


1.34
log
@- Change location of milter socket to match clamav-devel port. This does not
  affect users with already installed config files.
- Cleanup

PR:		ports/67207
Submitted by:	Rob Evers <rob@@debank.tv> (maintainer)
@
text
@a9 1
PORTREVISION=	1
d26 1
a26 1
DISTVERSION=	0.71
d53 1
a53 1
MAN5=		clamav.conf.5
@


1.33
log
@Update clamav to rev 0.71

 -Improved VBA support
 -Lots of milter fixes
 -Various bugs fixed

Submitted by:	maintainer
@
text
@d10 1
d46 1
a46 3
		--disable-dependency-tracking \
		--with-user=${CLAMAVUSER} \
		--with-group=${CLAMAVGROUP}
d57 2
d62 1
a62 3
CLAMAV_MILTER_SOCKET?=	/var/run/clmilter.sock

CONFLICTS=	clamav-devel-*
a111 2

#	@@${REINPLACE_CMD} -E -e 's/(_LIBS=.*)-l?pthread -lc_r[[:>:]]/\1${PTHREAD_LIBS}/' \
@


1.32
log
@- Fix dependencies

PR:		ports/66879
Submitted by:	Beresovsky Andrey <and@@rsu.ru>
Approved by:	maintainer
@
text
@a9 1
PORTREVISION=	1
d26 1
a26 4
DISTVERSION=	0.70

CLAMAVUSER?=	clamav
CLAMAVGROUP?=	clamav
d32 1
a32 1
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
d58 2
d76 1
a76 1
		-e 's|^\#?(User) .*$$|\1 clamav|' \
a77 1
		-e 's|^\#?(FixStaleSocket)$$|\1|' \
d79 1
@


1.31
log
@Update security/clamv to 0.70
	-Improved VBA code
	-Scan EVS mails
	-Handle bounced messages
	-ArchiveDetectEncrypted is renamed to ArchiveBlockEncrypted (config file)
	-freshclam: fix SIGHUP handling (patch by Dr Matthew J Seaman)
	-Use OPTIONS
	-Various bugfixes and code cleanup
	-Use FixStaleSocket by default in the config file (don't remove the
		Socket when starting clamd)

PR:		65763
Submitted by:	Rob Evers <rob@@debank.tv> (maintainer)
@
text
@d101 3
a103 1
.if exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a)
a105 4
.else
BROKEN=		requires Sendmail 8.12
PLIST_SUB+=	CLAMAV-MILTER="@@comment "
.endif
@


1.30
log
@Hand maintainership over to Rob Evers.

PR:		65182
Submitted by:	TERAMOTO Masahiro <markun@@onohara.to> (maintainer)
@
text
@d10 1
d27 1
a27 1
DISTVERSION=	0.70-rc
d32 1
d84 2
a85 1
		-e 's|^\#?(UpdateLogFile) .*$$|\1 /var/log/clamav/freshclam.log|'
@


1.29
log
@forced commit to note:

PR:		64348
Approved by:	maintainer timeout (>2 weeks)
@
text
@d15 1
a15 4
MAINTAINER=	markun@@onohara.to
MAINTAINER=	eik@@FreeBSD.org
# I've just adopted the port to ensure timely updates. Please
# reset the maintainer if TERAMOTO Masahiro shows up again.
@


1.28
log
@Update to clamav 0.70

- new thread manager (with better SMP support)
- new switch ArchiveDetectEncrypted
- new directive: ArchiveDetectEncrypted
- see /usr/local/share/doc/clamav/NEWS
- install html documentation to /usr/local/share/doc/clamav/html

added CLAMAVUSER/CLAMAVGROUP support

Adopted the port to ensure timely fixes in case I broke something :P
Please reset the maintainer if TERAMOTO Masahiro shows up again.
@
text
@@


1.27
log
@- Revert revision 1.22
  NO_SENDMAIL is used to disable Sendmail build in base system.
  It's presence does not inhibit Sendmail installed from port.

Requested by:	Marius Strobl <marius@@alchemy.franken.de>
		Alex Vasylenko <lxv@@omut.org>
@
text
@d9 1
a9 1
PORTVERSION=	${DISTVERSION:S/-/./g}
d16 3
d29 4
a32 1
DISTVERSION=	0.67-1
d39 1
d42 3
d47 12
a58 4
		--disable-clamav --enable-bigstack
CFLAGS+=	${PTHREAD_CFLAGS} -I${LOCALBASE}/include
LDFLAGS+=	${PTHREAD_LIBS} -L${LOCALBASE}/lib
CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS}"
d70 2
d82 4
a85 1
		-e 's|^\#?(ScanMail)$$|\1|'
d87 2
a88 1
.include <bsd.port.pre.mk>
a89 1
USE_RC_SUBR=	yes
d98 2
d101 1
a101 4
.if exists(${LOCALBASE}/lib/libmilter.a)
CPPFLAGS+=	-I${LOCALBASE}/include
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}"
.endif
d105 4
d118 2
d122 1
d124 1
d143 1
a143 1
	@@${CHOWN} -R clamav:clamav ${DATADIR}
d153 1
a153 1
	${MKDIR} ${DOCSDIR}
d156 3
@


1.26
log
@use included libtool
@
text
@d75 1
a75 1
.if defined(WITH_MILTER) && !defined(NO_SENDMAIL)
@


1.25
log
@Convert all but one port that uses libtool14 to use libtool15, in readiness
for the destruction of devel/libtool14
@
text
@a31 1
USE_LIBTOOL_VER=15
a90 4

pre-configure:
	@@${REINPLACE_CMD} -e '/^LIBTOOL=/s|\$$(top_builddir)/libtool|${LIBTOOL}|' \
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@


1.24
log
@... and remove my experimental bsd.port.mk hacks :)

Pointy hat to:	me
@
text
@d32 1
a32 1
USE_LIBTOOL_VER=14
@


1.23
log
@- update to version 0.67-1

PR:		63065
Reviewed by:	Angelo Turetta <aturetta@@commit.it>
Approved by:	maintainer timeout (2 weeks)
@
text
@d9 1
a9 1
#PORTVERSION=	${DISTVERSION:S/-/./g}
d13 1
a13 1
#DISTNAME=	${PORTNAME}-${DISTVERSION}
@


1.22
log
@- If WITH_MILTER is set and NO_SENDMAIL is defined, don't try to build milter.

PR:		ports/55611
Submitted by:	TERAMOTO Masahiro <markun@@onohara.to> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	0.65
PORTREVISION=	7
d11 1
a11 1
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
d13 1
d26 2
d62 1
a93 4
	@@${REINPLACE_CMD} -e 's|clamav.conf|&.default|' \
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
		${CONFIGURE_WRKSRC}/etc/Makefile.in
.ifdef USE_LIBTOOL_VER
a95 1
.endif
d98 1
a98 2
	@@${SED} ${SED_CONF} ${BUILD_WRKSRC}/etc/clamav.conf \
		>${BUILD_WRKSRC}/etc/clamav.conf.default
a113 2
	@@${INSTALL_DATA} ${BUILD_WRKSRC}/etc/clamav.conf.default \
		${PREFIX}/etc/clamav.conf.default
d119 4
a122 2
	@@[ -f ${PREFIX}/etc/clamav.conf ] || \
		${CP} ${PREFIX}/etc/clamav.conf.default ${PREFIX}/etc/clamav.conf
d126 5
@


1.21
log
@*** SECURITY update ***

- fix a trivially remote exploitable DOS vulnerability
  <http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/62586>
  <http://www.securityfocus.com/archive/1/353186>

while I'm here, fix stale socket removal. Perhaps enabling
FixStaleSocket in clamav.conf would be a better idea, but
I don't want to overuse this security related commit.

PR:		62586, 62601
Submitted by:	eik, Vivek Khera <vivek@@khera.org>
Reviewed by:	bugtraq mailing list
Approved by:	security-officer
@
text
@d73 1
a73 1
.if defined(WITH_MILTER)
@


1.20
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 1)
@
text
@d10 1
a10 1
PORTREVISION=	6
d57 1
a57 1
		-e 's|^\#?(LocalSocket) .*$$|\1 /var/run/clamav/clamd|' \
@


1.19
log
@1. Add a freshclam rc.d script to start freshclam so the AV database is
   updated periodically.  Loosely based on the script in the PR.
2. Reorder some operations in the various Makefile targets.
3. Bump PORTREVISION.

PR:		61966 [1]
Submitted by:	Douglas K. Rand <rand@@meridian-enviro.com>
@
text
@d10 1
a10 1
PORTREVISION=	5
@


1.18
log
@Fix the comment in the startup-script regarding how to enable clamav-milter
in rc.conf.

Bumped PORTREVISION as this fix may be important for an user.

Mail is on its way to the maintainer but because of the actual virus
situation I do not wait for maintainer approval and commit the fix
right now (the submitter also submitted the startup-script for a previous
commit, so this is mainly a bugfix for a previously approved commit).

Submitted by:	Marius Strobl <marius@@alchemy.franken.de>
@
text
@d10 1
a10 1
PORTREVISION=	4
d105 3
d110 1
d117 2
d121 2
a125 2
	@@${SETENV} PKG_PREFIX=${PREFIX} \
		${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL
d130 2
@


1.17
log
@Fix some bugs in the previous commit...
 - correct typo in the name of the socket variable (used to remove a stale
   socket)
 - install the startup script with the correct name (important if you use
   clamav-milter too)

Submitted by:	Marius Strobl <marius@@alchemy.franken.de>
Approved by:	maintainer (implizit, this is a bugfix for the previous
		version)
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.16
log
@BEWARE: As rcoder(8) isn't present on FreeBSD 4 but clamd must be
        be started before clamav-milter the startup-script for clamd
        must alphabetically arranged before the startup-script for
        clamav-milter. It was decided to use the clamd statup-scrtipt
        from security/clamav-devel (clamav-clamd.sh), so users running
        an older version of security/clamav have to change
        'clamd_enable="YES"' to 'clamav_clamd_enable="YES"' in
        /etc/rc.conf. On the other hand this changes makes it easier
        to switch between security/clamav and security/clamav-devel.

- Respect PTHREAD_CFLAGS.
- Use USE_LIBTOOL_VER=14 as the libtool shipping with clamav 0.65
  erroneously links against libc _and_ libc_r on FreeBSD 4.
- Don't link against libcipher on FreeBSD < 501100, clamav doesn't
  depend on it. The linker warnings suggesting that it is required
  were triggered by linking against both, libc and libc_r.
- Unconditionally depend on math/libgmp4. Otherwise, if libgmp4 is
  already installed on a FreeBSD 4-STABLE system compilation of
  security/clamav fails, as the headers of libgmp4 are used but the
  base libgmp is used for linking.
- Fix generation of clamav-milter.8 when building with WITH_MILTER
  (part of new files/patch-clamav-milter::Makefile.in).
- Don't USE_GETOPT_LONG when compiling with WITH_MILTER, clamav
  uses its own getopt_long() regardless if a devel/libgnugetopt is
  installed or the version in the base of FreeBSD 5 is present.
- Allow compilation of WITH_MILTER with mail/sendmail.
- Install a startup-script (taken from security/clamav-devel with some
  fixes in comments) for clamav-milter when compiled with WITH_MILTER.
- In pkg-descr remove the note that clamav-milter doesn't build on
  FreeBSD 4 with base gcc, it builds fine there. Mention that
  clamav-milter can be optionally used (taken from pkg-descr of
  security/clamav-devel).
- Fix compilation when an older version of security/clamav is installed.
  If there's an older version of libclamav installed clamav 0.65 will
  link against it instead of the newly built one. This is not a problem
  if the installed version is compatible with the new one as libclamav
  gets linked dynamically and the installed version will be replaced
  with the new one. However, if the older version is incompatible
  linking of clamav 0.65 fails. This problem was discovered by
  Jan-Peter Koopmann Jan-Peter.Koopmann@@seceidos.de and the fix
  (most of the new patches in the files directory) confirmed working.
- In clamav-milter replace the path to the used sendmail executable with
  the location of the mailwrapper(8) (/usr/sbin/sendmail). Obtained
  from security/clamav-devel.

PR:		59948
Submitted by:	Marius Strobl <marius@@alchemy.franken.de>
Approved by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	2
d44 1
a44 1
CLAMAV_CLAMD_SOCKE?=	/var/run/clamav/clamd
d113 2
a114 1
	@@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh ${RC_DIR}/clamd${RC_SUFX}
@


1.15
log
@Correct the OSVERSION check for the libgmp depedency; libgmp was removed
waaaay earlier than I had previously thought.  Also bump portrevision
since this is an important change for 5.x users.

Approved by:	portmgr (marcus)
@
text
@d10 1
a10 1
PORTREVISION=	1
d18 1
d30 1
a30 1
#USE_LIBTOOL_VER=14
d37 2
a38 2
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	${PTHREAD_LIBS}
d44 2
a45 1
CLAMD_SOCKET?=	/var/run/clamav/clamd
d51 2
a52 1
		-e 's|%%CLAMD_SOCKET%%|${CLAMD_SOCKET}|g'
d73 4
a76 10
.if ${OSVERSION} < 501100
# compiles only with optimizer
CFLAGS+=	-O
LDFLAGS+=	-lcipher
.endif

.if ${OSVERSION} > 500023
# Approximate time libgmp was removed from the base system
LDFLAGS+=	-L${LOCALBASE}/lib
LIB_DEPENDS=	gmp.6:${PORTSDIR}/math/libgmp4
a77 3

.if defined(WITH_MILTER)
USE_GETOPT_LONG=	yes
d85 1
a85 1
	@@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \
d87 2
d103 4
a106 1
	@@${SED} ${SED_SCRIPT} ${FILESDIR}/clamd.sh >${WRKDIR}/clamd.sh
d113 1
a113 1
	@@${INSTALL_SCRIPT} ${WRKDIR}/clamd.sh ${RC_DIR}/clamd${RC_SUFX}
d119 4
@


1.14
log
@Clamav 0.65 uses libgmp for digital signature calculations;
as libgmp no longer exists in 5.x, add the needed dependency
to this Makefile.

(Note that stale gmp.h and libgmp files sitting around may
still cause problems, anyone with an "old" 5.x system that
sees oddities in the build should make sure that those old
files are purged from /usr/lib and /usr/include.)
@
text
@d10 1
d76 1
a76 1
.if ${OSVERSION} > 501113
@


1.13
log
@* Update to 0.65
* Create /var/run/clamav with 750 permissions

PR:		59458
Submitted by:	Rui Lopes <rui@@ruilopes.com>
Approved by:	maintainer
@
text
@d75 6
@


1.12
log
@- ensure that an stale clamd socket will be deleted. [1]
- Add conflict with clamav-devel port [2]
- fix milter on STABLE [3]
no response from maintainer

PR:		57379, 58037
Submitted by:	martin@@mail.tradex.sk [1], rob@@debank.tv [2], dinoex [3]
@
text
@d9 1
a9 2
PORTVERSION=	0.60
PORTREVISION=	4
d38 1
a38 1
MAN1=		clamscan.1 freshclam.1 sigtool.1 clamdscan.1 clamav-milter.1
d40 1
a40 1
MAN8=		clamd.8
@


1.11
log
@- don't remove clamav account on deinstall
- use included libtool (seems heavily patched)
- make packageable and include a working configure file
- add a rcNG start/stop script
- added web site
- don't install useless .la files
- use DATADIR
- 510001 is FreeBSD 5.10, 5.1-CURRENT is 501100
- minor cleanup

PR:		57256
Submitted by:	eikemeier@@fillmore-labs.com
@
text
@d10 1
a10 1
PORTREVISION=	3
d43 4
d48 2
a49 1
		-e 's|%%DATADIR%%|${DATADIR}|g'
d77 1
@


1.10
log
@- Fix for STABLE
- Use new MASTER_SITES
PR:		57149
Submitted by:	rob@@debank.tv
Approved by:	markun@@onohara.to
@
text
@d10 1
a10 1
PORTREVISION=	2
d29 1
a29 1
USE_LIBTOOL=	yes
d32 3
a34 1
CONFIGURE_ARGS=	--prefix=${PREFIX} \
d37 1
d43 11
d56 10
a65 1
.if ${OSVERSION} < 510001
d73 1
a73 1
PLIST_SUB+=	CLAMAV-MILTER:=""
d75 1
a75 1
PLIST_SUB+=	CLAMAV-MILTER:="@@comment "
d79 17
a95 1
	@@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
d98 2
a99 2
	@@${ECHO} "===>   Creating custom user to run clamav..."
	${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
d102 6
a107 3
	@@${ECHO} "===>   Setting permissions..."
	@@${SETENV} PKG_PREFIX=${PREFIX} ${sh} \
	${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL
@


1.9
log
@Use clamav-milter, but support only gcc30 or higher.

PR:		ports/53699
Submitted by:	Rob Evers <rob@@debank.tv>
Approved by:	TERAMOTO Masahiro <markun@@onohara.to> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	1
d12 2
a13 2
MASTER_SITES=	http://clamav.elektrapro.com/stable/ \
		http://clamav.essentkabel.com/stable/
d25 1
d33 3
a35 3
		--disable-clamav \
		--enable-bigstack

d42 8
a49 2
.if ${OSVERSION} > 500000
CONFIGURE_ARGS+=--enable-milter
d54 3
@


1.8
log
@* Upgrade to 0.60.
* Add --enable-bigstack.

PR:		ports/53632
Submitted by:	Rob <rob@@debank.tv>
Approved by:	maintainer
@
text
@d10 1
d40 7
@


1.7
log
@o Add mirror site.
o Remove unnecsesary patches for current.
o Add/remove users when installing/removing.
o Set permissions on virus database dir.

PR:		ports/53305
Submitted by:	Rob Evers<rob@@debank.tv>
Approved by:	TERAMOTO Masahiro <markun@@onohara.to> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	0.54
PORTREVISION=	1
a13 1

a22 1
LIB_DEPENDS=	pth.20:${PORTSDIR}/devel/pth
d30 3
a32 1
CONFIGURE_ARGS=	--prefix=${PREFIX} --disable-clamav
d34 1
a34 1
MAN1=		clamscan.1 freshclam.1 sigtool.1 clamdscan.1
@


1.6
log
@Fix install error.

PR:		ports/53112
Submitted by:	Michal F. Hanula <frankie@@kyblik.pieskovisko.sk>
		Rob <rob@@debank.tv>
@
text
@d12 3
a14 1
MASTER_SITES=	http://clamav.elektrapro.com/stable/
d41 3
a43 3
.if ${OSVERSION} >= 500000
EXTRA_PATCHES=	${FILESDIR}/patch5-*
.endif
d45 4
a48 3
pre-install:
	@@${ECHO} "==>  Creating custom user to run clamav..."
#	${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@


1.5
log
@Enable pthread support using devel/pth.
Turn on building clamd and clamdscan.

PR:		53056
Pointed out by:	Olivier Tharan <olive@@oban.frmug.org>
Submitted by:	TERAMOTO Masahiro <markun@@onohara.to>
@
text
@d10 1
d26 2
@


1.4
log
@PR:		52226
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:
Maintainer update: Clam AntiVirus contains OAV database, but its database is
developed independently.

	Pointed out by Tomasz Kojim <zolw@@konarski.edu.pl>
		developer of Clam AntiVirus
@
text
@d22 1
d25 2
a26 1
HAS_CONFIGURE=	yes
d28 1
a28 1
CONFIGURE_ARGS=	--prefix=${PREFIX} --disable-clamav --disable-pthreads
@


1.3
log
@De-pkg-comment.
@
text
@d14 1
a14 1
COMMENT=	Command line virus scanner using database from OpenAntiVirus
@


1.2
log
@maintainer-update: security/clamav to 0.54

PR:		ports/47291
Submitted by:	TERAMOTO Masahiro <markun@@onohara.to>
@
text
@d14 1
@


1.1
log
@new port: security/clamav

	Clam Antivirus is command line virus scanner using database
	from OpenAntiVirus.

PR:		ports/40602
Submitted by:	TERAMOTO Masahiro <markun@@onohara.to>
@
text
@d9 1
a9 1
PORTVERSION=	0.20
d27 9
a35 1
MAN1=		clamscan.1 freshclam.1 sigtool.1
d39 1
a39 1
	${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
d41 1
a41 1
.include <bsd.port.mk>
@

