head	1.38;
access;
symbols
	RELEASE_8_3_0:1.36
	RELEASE_9_0_0:1.36
	RELEASE_7_4_0:1.35
	RELEASE_8_2_0:1.35
	RELEASE_6_EOL:1.35
	RELEASE_8_1_0:1.34
	RELEASE_7_3_0:1.33
	RELEASE_8_0_0:1.33
	RELEASE_7_2_0:1.33
	RELEASE_7_1_0:1.31
	RELEASE_6_4_0:1.31
	RELEASE_5_EOL:1.29
	RELEASE_7_0_0:1.29
	RELEASE_6_3_0:1.29
	PRE_XORG_7:1.26
	RELEASE_4_EOL:1.25
	RELEASE_6_2_0:1.25
	RELEASE_6_1_0:1.22
	RELEASE_5_5_0:1.22
	RELEASE_6_0_0:1.15
	RELEASE_5_4_0:1.12
	RELEASE_4_11_0:1.11
	RELEASE_5_3_0:1.6;
locks; strict;
comment	@# @;


1.38
date	2012.11.17.06.01.02;	author svnexp;	state Exp;
branches;
next	1.37;

1.37
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.36;

1.36
date	2011.09.28.01.39.55;	author clsung;	state Exp;
branches;
next	1.35;

1.35
date	2010.09.09.00.16.31;	author pgollucci;	state Exp;
branches;
next	1.34;

1.34
date	2010.04.06.12.01.55;	author garga;	state Exp;
branches;
next	1.33;

1.33
date	2009.03.27.11.53.05;	author garga;	state Exp;
branches;
next	1.32;

1.32
date	2008.09.26.13.14.33;	author clsung;	state Exp;
branches;
next	1.31;

1.31
date	2008.09.15.19.56.36;	author garga;	state Exp;
branches;
next	1.30;

1.30
date	2008.08.21.06.18.14;	author rafan;	state Exp;
branches;
next	1.29;

1.29
date	2007.08.04.11.41.16;	author gabor;	state Exp;
branches;
next	1.28;

1.28
date	2007.07.23.09.36.27;	author rafan;	state Exp;
branches;
next	1.27;

1.27
date	2007.07.09.02.25.27;	author clsung;	state Exp;
branches;
next	1.26;

1.26
date	2007.03.13.20.11.16;	author garga;	state Exp;
branches;
next	1.25;

1.25
date	2006.09.11.02.47.09;	author clsung;	state Exp;
branches;
next	1.24;

1.24
date	2006.08.25.03.39.10;	author clsung;	state Exp;
branches;
next	1.23;

1.23
date	2006.08.14.04.10.38;	author clsung;	state Exp;
branches;
next	1.22;

1.22
date	2006.02.21.09.41.06;	author clsung;	state Exp;
branches;
next	1.21;

1.21
date	2006.02.21.01.43.31;	author clsung;	state Exp;
branches;
next	1.20;

1.20
date	2006.02.17.02.45.40;	author clsung;	state Exp;
branches;
next	1.19;

1.19
date	2006.01.13.07.24.33;	author clsung;	state Exp;
branches;
next	1.18;

1.18
date	2005.09.05.03.16.20;	author clsung;	state Exp;
branches;
next	1.17;

1.17
date	2005.09.03.07.48.10;	author clsung;	state Exp;
branches;
next	1.16;

1.16
date	2005.08.29.04.08.55;	author clsung;	state Exp;
branches;
next	1.15;

1.15
date	2005.04.20.08.17.07;	author clsung;	state Exp;
branches;
next	1.14;

1.14
date	2005.04.20.07.48.40;	author clsung;	state Exp;
branches;
next	1.13;

1.13
date	2005.04.07.16.18.18;	author clsung;	state Exp;
branches;
next	1.12;

1.12
date	2005.03.04.03.12.53;	author clsung;	state Exp;
branches;
next	1.11;

1.11
date	2004.12.28.01.03.03;	author clsung;	state Exp;
branches;
next	1.10;

1.10
date	2004.11.01.08.36.37;	author clsung;	state Exp;
branches;
next	1.9;

1.9
date	2004.10.27.02.15.22;	author clsung;	state Exp;
branches;
next	1.8;

1.8
date	2004.10.14.12.31.22;	author clsung;	state Exp;
branches;
next	1.7;

1.7
date	2004.10.14.02.28.24;	author clsung;	state Exp;
branches;
next	1.6;

1.6
date	2004.09.01.07.50.15;	author clsung;	state Exp;
branches;
next	1.5;

1.5
date	2004.08.25.08.53.21;	author clsung;	state Exp;
branches;
next	1.4;

1.4
date	2004.08.20.02.56.38;	author clsung;	state Exp;
branches;
next	1.3;

1.3
date	2004.08.13.17.01.05;	author krion;	state Exp;
branches;
next	1.2;

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

1.1
date	2004.07.30.00.35.56;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.38
log
@Switch exporter over
@
text
@# New ports collection makefile for:	clamsmtp
# Date created:		2004-07-29
# Whom:			Cheng-Lung Sung <clsung@@dragon2.net>
#
# $FreeBSD: head/security/clamsmtp/Makefile 302141 2012-08-05 23:19:36Z dougb $
#

PORTNAME=	clamsmtp
PORTVERSION=	1.10
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	http://thewalter.net/stef/software/clamsmtp/

MAINTAINER=	clsung@@FreeBSD.org
COMMENT=	An ClamAV anti-virus SMTP Filter

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_RC_SUBR=	clamsmtpd
SUB_LIST=	CLAMAV_PID_DIR=${CLAMAV_PID_DIR}
SUB_FILES+=	pkg-message

CLAMAV_PID_DIR?=	/var/run/clamav

MAN5=		clamsmtpd.conf.5
MAN8=		clamsmtpd.8

PORTDOCS=	README

OPTIONS=	LOCAL_CLAMAV "RUN_DEPEND on security/clamav" on
OPTIONS+=	LOCAL_CLAMAV_DEVEL "RUN_DEPEND on security/clamav-devel" off

.include <bsd.port.pre.mk>

.if defined(WITH_LOCAL_CLAMAV)
RUN_DEPENDS+=	clamav>=0:${PORTSDIR}/security/clamav
.endif

.if defined(WITH_LOCAL_CLAMAV_DEVEL)
RUN_DEPENDS+=	clamav-devel>=0:${PORTSDIR}/security/clamav-devel
.endif

.if defined(WITH_LOCAL_CLAMAV) || defined(WITH_LOCAL_CLAMAV_DEVEL)
SUB_LIST+=	CLAMD=clamd
.else
SUB_LIST+=	CLAMD=
.endif

pre-extract:
.if defined(WITH_LOCAL_CLAMAV) && defined(WITH_LOCAL_CLAMAV_DEVEL)
	@@${ECHO_CMD} "Please select only one clamav port"
	exit 1
.endif

post-patch:
	@@${REINPLACE_CMD} -e "s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS}," ${WRKSRC}/configure
	@@${REINPLACE_CMD} -e "s,/var/run/clamav/clamd,/var/run/clamav/clamd.sock," \
		${WRKSRC}/doc/clamsmtpd.conf \
		${WRKSRC}/doc/clamsmtpd.conf.5 \
		${WRKSRC}/src/clamsmtpd.c

post-install:
	@@${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${PREFIX}/etc/clamsmtpd.conf-sample
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
	@@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/virus_action.sh ${EXAMPLESDIR}
	@@${CAT} ${PKGMESSAGE}

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


1.37
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by dougb

Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.36
log
@- update master-site and www in pkg-descr

PR:		ports/160697
Submitted by:	Ruslan Mahmatkhanov <cvs-src@@yandex.ru>
Reported by:    Juergen Dankoweit <Juergen.Dankoweit at T-Online dot de> via ports@@
@
text
@d19 1
a19 1
USE_RC_SUBR=	clamsmtpd.sh
@


1.35
log
@- Sync clamav socket with security/clamav defaults

PR:             ports/143095
Submitted by:   Denny Lin <dennylin93@@cnmc32.hs.ntnu.edu.tw>
Approved by:    maintainer timeout (clsung ; 222 days)
@
text
@d12 1
a12 1
MASTER_SITES=	http://memberwebs.com/stef/software/clamsmtp/
@


1.34
log
@Chase clamav's lib bump
@
text
@d10 1
a10 1
PORTREVISION=	2
d57 4
@


1.33
log
@- Bump necessary PORTREVISIONS and fix some ports to new clamav API
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.32
log
@- Update to 1.10
@
text
@d10 1
@


1.31
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
@d9 1
a9 2
PORTVERSION=	1.9
PORTREVISION=	1
@


1.30
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
@d10 1
@


1.29
log
@- Remove the DESTDIR modifications from individual ports as we have a new,
  fully chrooted DESTDIR, which does not need such any more.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
@
text
@a21 2
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

@


1.28
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
@d60 1
a60 1
	@@${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${TARGETDIR}/etc/clamsmtpd.conf-sample
@


1.27
log
@- Update to 1.9

PR:		ports/113829
Submitted by:	Thomas Abthorpe <thomas_AT_goodking dot ca>
Reviewed by:	clsung
@
text
@a22 1
CONFIGURE_ARGS+=	--mandir=${MANPREFIX}/man
@


1.26
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
@d9 1
a9 2
PORTVERSION=	1.8
PORTREVISION=	1
d11 1
a11 1
MASTER_SITES=	http://memberwebs.com/nielsen/software/clamsmtp/
d23 1
@


1.25
log
@- Update to 1.8
@
text
@d10 1
@


1.24
log
@- Update to 1.7
@
text
@d9 1
a9 1
PORTVERSION=	1.7
@


1.23
log
@- Respect DESTDIR

PR:		ports/101866
Submitted by:	Gea-Suan Lin <gslin_AT_gslin dot org>
@
text
@d9 1
a9 2
PORTVERSION=	1.6
PORTREVISION=	3
@


1.22
log
@- ": ...." section in rc.d script misordered
- bump PORTREVISION

PR:		93618
Submitted by:	Yoshisato YANAGISAWA <yanagisawa AT csg.is.titech.ac dot jp>
@
text
@d61 1
a61 1
	@@${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${PREFIX}/etc/clamsmtpd.conf-sample
@


1.21
log
@- files/clamsmtpd.sh.in cause start-up error
- bump PORTREVISION

PR:		93541
Submitted by:	KIMURA Yasuhiro <yasu AT utahime dot org>
Reviewed by:	mnag
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.20
log
@- bump PORTREVISION for plist change.
- Add WITH_LOCAL_CLAMAV[_DEVEL] to run-depend on security/clamav[-devel];
  default LOCAL_CLAMAV on to restore the way port behaved until last update.
  Depend on installed package rather that clamd to register depends correctly.

- If one of the clam options is on, make rc.d script to REQUIRE: clamd
  Actually use clamsmtp_debug var.
  Also make rc.d script to look more like the example in PH.

- Install example script in EXAMPLESDIR rather that DOCSDIR;

- Moved: pkg-message --> files/pkg-message.in
- Drop USE_REINPLACE while here.

PR:		93157
Submitted by:	Ion-Mihai Tetcu <itetcu AT people dot tecnik93 dot com>
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.19
log
@- Update to 1.6
- Use USE_RC_SUBR=clamsmtpd.sh instead =YES
- Use PORTDOCS=* not need test NOPORTDOCS
- Only depend of security/clamav if already installed.
  clamsmtp can run in another machine then clamav.

Tinderbox test:
http://marcus.grupos.com.br:8080/logs/4-STABLE-FreeBSD/clamsmtp-1.6.log
http://marcus.grupos.com.br:8080/logs/6-STABLE-FreeBSD/clamsmtp-1.6.log

PR:		91713
Submitted by:	mnag
@
text
@d10 1
a18 1
USE_REINPLACE=	yes
d21 1
d30 1
a30 1
PORTDOCS=	*
d32 23
a54 2
.if exists(${LOCALBASE}/sbin/clamd)
RUN_DEPENDS+=	${LOCALBASE}/sbin/clamd:${PORTSDIR}/security/clamav
a64 1
	${INSTALL_DATA} ${WRKSRC}/scripts/virus_action.sh ${DOCSDIR}
d66 3
a68 1
	@@${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE}
d70 1
a70 1
.include <bsd.port.mk>
@


1.18
log
@- clamsmtp 1.5 works only in debug mode.
Included patch fix this bug by moving socket creation after daemonizing as
suggested in mailing list clamsmtp-users@@lists.sourceforge.net
http://sourceforge.net/mailarchive/forum.php?thread_id=8060741&forum_id=42732
- bump PORTREVISION

PR:		ports/85706
Submitted by:	Alex L. Demidov <alexd AT vinf dot ru>
@
text
@d9 1
a9 2
PORTVERSION=	1.5
PORTREVISION=	2
a15 2
RUN_DEPENDS=	${LOCALBASE}/sbin/clamd:${PORTSDIR}/security/clamav

d19 4
a22 3
USE_RC_SUBR=	yes
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} CLAMAV_PID_DIR=${CLAMAV_PID_DIR}
STARTUP_FILE=	${PREFIX}/etc/rc.d/clamsmtpd.sh
a28 1
.if !defined(NOPORTDOCS)
d30 3
d35 3
a38 2
	@@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
		${FILESDIR}/clamsmtpd.sh.tmpl > ${STARTUP_FILE}
a39 1
	@@${CHMOD} 755 ${STARTUP_FILE}
a46 3
post-patch:
	@@${REINPLACE_CMD} -e "s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS}," ${WRKSRC}/configure

@


1.17
log
@- version 1.5 must start with '-d 4'
  (Thanks to Jack Raats <jack AT raats dot org>)
- bump PORTREVISION
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.16
log
@- Update to 1.5

PR:		85404
Submitted by:	Marcus Grando <marcus AT corp dot grupos dot com dot br>
@
text
@d10 1
a10 1
PORTREVISION=	0
@


1.15
log
@- respect PTHREAD_LIBS

Noted by:   kris
@
text
@d9 1
a9 1
PORTVERSION=	1.4.1
@


1.14
log
@- update to 1.4.1
- prefer -pthread than lthread

PR:		80071
Submitted by:	Marcus Grando <marcus AT corp dot grupos dot com dot br>
@
text
@d47 3
@


1.13
log
@- update to 1.4
- from Changelog
  - Documentation fixes
  - Don't leak file descriptors when clamsmtpd can't connect to outgoing
    SMTP server
  - Now accepts special format arguments on 'Header' line
  - Supress weird warnings when looking up names of local unix connections.
@
text
@d9 1
a9 1
PORTVERSION=	1.4
@


1.12
log
@- update to 1.3
- prune pkg-message

PR:		78157
Submitted by:	Marcus Grando <marcus AT corp dot grupos dot com dot br>
@
text
@d9 1
a9 1
PORTVERSION=	1.3
@


1.11
log
@- update to 1.2
    + Install README in $DOCSDIR
    + Install scripts/virus_action.sh in $DOCSDIR

PR:		ports/75406
Submitted by:	Marcus Grando <marcus AT corp.grupos.com.br>
@
text
@d9 1
a9 1
PORTVERSION=	1.2
@


1.10
log
@- update to 1.1
- From ChangeLog
    - Added CLIENT and SERVER variables to VirusAction script environment.
    - Even better logging for network errors.
    - Print out clamsmtp version in debug logs
    - Allow configuration of server keep alives (NOOPs). Default to none

Approved by:	co-mentor (vanilla)
@
text
@d9 1
a9 1
PORTVERSION=	1.1
d31 4
d40 5
@


1.9
log
@- update to 1.0

PR:		ports/73181
Submitted by:	Marcus Grando <marcus AT corp dot grupos dot com dot br>
Approved by:	co-mentor (vanilla)
@
text
@d9 1
a9 1
PORTVERSION=	1.0
@


1.8
log
@- bump PORTREVISION
- -d option only works as a daemon now.
- remove it from startup script and wait for future release.
- Noticed by <richard AT boysoncom dot com>

Approved by:	co-mentor (vanilla)
@
text
@d9 2
a10 2
PORTVERSION=	0.9.6
PORTREVISION=	1
@


1.7
log
@- update to 0.9.6
- use configure file since 0.8
- lots of options move from rc_sub to conf file

Approved by:	co-mentor (vanilla)
@
text
@d10 1
@


1.6
log
@- update to 0.7
- From ChangeLog
  - Added support for ESMTP [Andreas Steinmetz]
  - Fixed crash when too many connections established
  - Announce ourselves as 'clamsmtp' in EHLO/HELO responses which fixes 'loopback'
    problems with certain versions of Postfix 1.x
  - Better IO performance under heavy load
  - Fixed most warnings when compiled with -Wall
  - Fixed other minor bugs

Approved by:	vanilla (co-mentor)
@
text
@d9 1
a9 1
PORTVERSION=	0.7
d18 1
a18 1
HAS_CONFIGURE=	yes
d22 1
a22 3
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} CLAMAV_USER=${CLAMAV_USER} \
		CLAMAV_PID_DIR=${CLAMAV_PID_DIR} CLAMAV_GROUP=${CLAMAV_GROUP} \
		CLAMAV_CLAMD_SOCKET=${CLAMAV_CLAMD_SOCKET}
a24 2
CLAMAV_USER?=	clamav
CLAMAV_GROUP?=	clamav
a25 1
CLAMAV_CLAMD_SOCKET?=	/var/run/clamav/clamd
d27 1
a29 3
post-patch:
	@@${REINPLACE_CMD} -e 's,10025,10026,g' ${WRKSRC}/src/clamsmtpd.c ${WRKSRC}/src/clamsmtpd.8

d33 1
d35 1
a35 1
	@@${CAT} ${PKGMESSAGE}
@


1.5
log
@- update to 0.6
- Proper adding of customized header
- Fixes to documentation

Approved by:	vanilla (co-mentor)
@
text
@d9 1
a9 1
PORTVERSION=	0.6
@


1.4
log
@My territory, suggested by ijliao. :p

Approved by:	vanilla (co-mentor)
@
text
@d9 1
a9 1
PORTVERSION=	0.5
@


1.3
log
@Fix RUN_DEPENDS

PR:		ports/70419
Submitted by:	maintainer
@
text
@d13 1
a13 1
MAINTAINER=	clsung@@dragon2.net
@


1.2
log
@[MAINTAINER] security/clamsmtp: update to 0.5

	- I'm maintainer (with another email)
	- Update to 0.5
	- C&P from ChnageLog
	  - Announce ourselves as 'clamsmtp' in banner to prevent loop warnings
	  - Fixed endless loop that occurred on failure to connect out
	  - Added option for leaving all files in temp directory (debugging purposes)
	  - Prints version number when run with -v

PR:		ports/69971
Submitted by:	Cheng-Lung Sung <clsung@@freebsd.csie.nctu.edu.tw>
@
text
@d16 1
a16 1
RUN_DEPENDS=	clamd:${PORTSDIR}/security/clamav
@


1.1
log
@Add clamsmtp 0.4, an ClamAV anti-virus SMTP Filter.

PR:		ports/69739
Submitted by:	Cheng-Lung Sung <clsung@@dragon2.net>
@
text
@d9 1
a9 1
PORTVERSION=	0.4
@

