head	1.80;
access;
symbols
	RELEASE_7_4_0:1.78
	RELEASE_8_2_0:1.78
	RELEASE_6_EOL:1.78
	RELEASE_8_1_0:1.78
	RELEASE_7_3_0:1.78
	RELEASE_8_0_0:1.78
	RELEASE_7_2_0:1.77
	RELEASE_7_1_0:1.76
	RELEASE_6_4_0:1.76
	RELEASE_5_EOL:1.74
	RELEASE_7_0_0:1.74
	RELEASE_6_3_0:1.74
	PRE_XORG_7:1.73
	RELEASE_4_EOL:1.73
	RELEASE_6_2_0:1.72
	RELEASE_6_1_0:1.72
	RELEASE_5_5_0:1.72
	RELEASE_6_0_0:1.67
	RELEASE_5_4_0:1.67
	RELEASE_4_11_0:1.67
	RELEASE_5_3_0:1.65
	RELEASE_4_10_0:1.64
	RELEASE_5_2_1:1.61
	RELEASE_5_2_0:1.61
	RELEASE_4_9_0:1.61
	RELEASE_5_1_0:1.58
	RELEASE_4_8_0:1.58
	RELEASE_5_0_0:1.55
	RELEASE_4_7_0:1.53
	RELEASE_4_6_2:1.48
	RELEASE_4_6_1:1.48
	RELEASE_4_6_0:1.48
	RELEASE_5_0_DP1:1.37
	RELEASE_4_5_0:1.33
	RELEASE_4_4_0:1.13;
locks; strict;
comment	@# @;


1.80
date	2011.08.10.16.18.32;	author bapt;	state dead;
branches;
next	1.79;

1.79
date	2011.06.06.15.29.39;	author linimon;	state Exp;
branches;
next	1.78;

1.78
date	2009.04.26.06.18.43;	author rafan;	state Exp;
branches;
next	1.77;

1.77
date	2009.02.04.10.26.36;	author pgollucci;	state Exp;
branches;
next	1.76;

1.76
date	2008.09.04.00.01.25;	author jmelo;	state Exp;
branches;
next	1.75;

1.75
date	2008.06.06.14.00.48;	author edwin;	state Exp;
branches;
next	1.74;

1.74
date	2007.10.04.06.00.21;	author edwin;	state Exp;
branches;
next	1.73;

1.73
date	2006.12.22.16.25.54;	author rafan;	state Exp;
branches;
next	1.72;

1.72
date	2005.11.28.14.43.33;	author az;	state Exp;
branches;
next	1.71;

1.71
date	2005.11.24.09.03.52;	author az;	state Exp;
branches;
next	1.70;

1.70
date	2005.11.22.22.07.33;	author pav;	state Exp;
branches;
next	1.69;

1.69
date	2005.11.14.13.59.09;	author garga;	state Exp;
branches;
next	1.68;

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

1.67
date	2004.11.30.14.05.16;	author vs;	state Exp;
branches;
next	1.66;

1.66
date	2004.11.25.11.54.01;	author sem;	state Exp;
branches;
next	1.65;

1.65
date	2004.05.25.18.42.12;	author pav;	state Exp;
branches;
next	1.64;

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

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

1.62
date	2004.03.14.01.20.32;	author linimon;	state Exp;
branches;
next	1.61;

1.61
date	2003.07.31.17.55.04;	author ache;	state Exp;
branches;
next	1.60;

1.60
date	2003.07.01.06.51.41;	author ache;	state Exp;
branches;
next	1.59;

1.59
date	2003.06.07.09.43.38;	author ache;	state Exp;
branches;
next	1.58;

1.58
date	2003.02.21.13.26.43;	author knu;	state Exp;
branches;
next	1.57;

1.57
date	2003.02.19.03.53.59;	author ache;	state Exp;
branches;
next	1.56;

1.56
date	2003.02.18.04.45.26;	author ache;	state Exp;
branches;
next	1.55;

1.55
date	2002.10.31.00.51.04;	author ache;	state Exp;
branches;
next	1.54;

1.54
date	2002.10.07.00.06.11;	author ache;	state Exp;
branches;
next	1.53;

1.53
date	2002.08.26.22.03.07;	author ache;	state Exp;
branches;
next	1.52;

1.52
date	2002.08.25.05.30.27;	author ache;	state Exp;
branches;
next	1.51;

1.51
date	2002.06.12.09.32.25;	author ache;	state Exp;
branches;
next	1.50;

1.50
date	2002.05.31.09.06.11;	author ache;	state Exp;
branches;
next	1.49;

1.49
date	2002.05.26.10.57.41;	author sobomax;	state Exp;
branches;
next	1.48;

1.48
date	2002.05.24.19.51.17;	author pat;	state Exp;
branches;
next	1.47;

1.47
date	2002.05.22.23.03.20;	author pat;	state Exp;
branches;
next	1.46;

1.46
date	2002.05.22.15.05.01;	author ache;	state Exp;
branches;
next	1.45;

1.45
date	2002.05.21.15.54.17;	author ache;	state Exp;
branches;
next	1.44;

1.44
date	2002.05.21.15.27.22;	author ache;	state Exp;
branches;
next	1.43;

1.43
date	2002.05.18.13.39.28;	author ache;	state Exp;
branches;
next	1.42;

1.42
date	2002.05.17.18.06.53;	author ache;	state Exp;
branches;
next	1.41;

1.41
date	2002.05.17.09.47.22;	author ache;	state Exp;
branches;
next	1.40;

1.40
date	2002.05.13.15.23.17;	author ache;	state Exp;
branches;
next	1.39;

1.39
date	2002.05.11.03.59.14;	author ache;	state Exp;
branches;
next	1.38;

1.38
date	2002.05.11.03.26.41;	author ache;	state Exp;
branches;
next	1.37;

1.37
date	2002.02.20.23.02.44;	author ache;	state Exp;
branches;
next	1.36;

1.36
date	2002.02.11.22.41.58;	author ache;	state Exp;
branches;
next	1.35;

1.35
date	2002.01.31.07.25.13;	author ache;	state Exp;
branches;
next	1.34;

1.34
date	2002.01.29.11.58.40;	author knu;	state Exp;
branches;
next	1.33;

1.33
date	2002.01.04.07.25.22;	author ache;	state Exp;
branches;
next	1.32;

1.32
date	2001.12.17.22.42.12;	author ache;	state Exp;
branches;
next	1.31;

1.31
date	2001.11.07.16.02.21;	author ache;	state Exp;
branches;
next	1.30;

1.30
date	2001.11.02.10.04.27;	author ache;	state Exp;
branches;
next	1.29;

1.29
date	2001.10.22.13.57.23;	author ache;	state Exp;
branches;
next	1.28;

1.28
date	2001.10.20.20.50.16;	author ache;	state Exp;
branches;
next	1.27;

1.27
date	2001.10.20.11.08.44;	author ache;	state Exp;
branches;
next	1.26;

1.26
date	2001.10.19.11.07.52;	author ache;	state Exp;
branches;
next	1.25;

1.25
date	2001.10.15.16.00.06;	author ache;	state Exp;
branches;
next	1.24;

1.24
date	2001.10.14.09.09.48;	author ache;	state Exp;
branches;
next	1.23;

1.23
date	2001.10.14.06.53.17;	author ijliao;	state Exp;
branches;
next	1.22;

1.22
date	2001.10.08.07.49.31;	author ache;	state Exp;
branches;
next	1.21;

1.21
date	2001.10.06.04.25.11;	author ache;	state Exp;
branches;
next	1.20;

1.20
date	2001.10.03.22.14.56;	author ache;	state Exp;
branches;
next	1.19;

1.19
date	2001.10.03.19.11.50;	author ache;	state Exp;
branches;
next	1.18;

1.18
date	2001.10.03.18.46.15;	author ache;	state Exp;
branches;
next	1.17;

1.17
date	2001.10.03.17.54.17;	author ache;	state Exp;
branches;
next	1.16;

1.16
date	2001.10.03.08.08.04;	author ache;	state Exp;
branches;
next	1.15;

1.15
date	2001.10.03.07.34.28;	author ache;	state Exp;
branches;
next	1.14;

1.14
date	2001.10.03.04.56.29;	author ache;	state Exp;
branches;
next	1.13;

1.13
date	2001.08.31.03.59.43;	author ache;	state Exp;
branches;
next	1.12;

1.12
date	2001.08.29.20.30.38;	author ache;	state Exp;
branches;
next	1.11;

1.11
date	2001.08.25.15.20.52;	author ache;	state Exp;
branches;
next	1.10;

1.10
date	2001.08.25.14.48.11;	author ache;	state Exp;
branches;
next	1.9;

1.9
date	2001.08.25.14.38.03;	author ache;	state Exp;
branches;
next	1.8;

1.8
date	2001.08.25.11.40.57;	author ache;	state Exp;
branches;
next	1.7;

1.7
date	2001.08.25.09.06.43;	author ache;	state Exp;
branches;
next	1.6;

1.6
date	2001.08.24.22.09.30;	author ache;	state Exp;
branches;
next	1.5;

1.5
date	2001.08.24.21.52.53;	author ache;	state Exp;
branches;
next	1.4;

1.4
date	2001.08.24.20.15.38;	author ache;	state Exp;
branches;
next	1.3;

1.3
date	2001.08.24.19.45.41;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	2001.08.24.19.40.59;	author ache;	state Exp;
branches;
next	1.1;

1.1
date	2001.08.24.15.57.23;	author ache;	state Exp;
branches;
next	;


desc
@@


1.80
log
@Remove some expired ports

2011-08-08 deskutils/alexandria: Upcoming ruby-gnome removes dependencies
2011-08-06 security/drweb: fails to fetch (website rearranged)
2011-08-06 security/drweb-postfix: fails to fetch (website rearranged)
2011-08-06 security/drweb-qmail: fails to fetch (website rearranged)
2011-08-06 security/drweb-sendmail: fails to fetch (website rearranged)
@
text
@# New ports collection makefile for:   drweb_sendmail
# Date created:        14 August 2001
# Whom:                Anton Voronin <anton@@chelcom.ru>
#
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.79 2011/06/06 15:29:39 linimon Exp $
#

PORTNAME=	drweb-sendmail
PORTVERSION=	4.44.1
PORTREVISION=	1
CATEGORIES=	security mail
MASTER_SITES=	ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/70/ \
		http://freebsd.spectrum.ru/distfiles/drweb/

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Sendmail message filter for virus processing through DrWeb daemon

DEPRECATED=		fails to fetch (website rearranged)
EXPIRATION_DATE=	2011-08-06

RUN_DEPENDS=	${LOCALBASE}/drweb/drwebd:${PORTSDIR}/security/drweb

IA32_BINARY_PORT=	yes
NO_BUILD=		yes
USE_RC_SUBR=		drweb-smf
USE_BZIP2=		yes

.include <bsd.port.pre.mk>

DISTNAME=	${PORTNAME}-${PORTVERSION}-freebsd70
DIST_SUBDIR=	drweb

WRKSRC=		${WRKDIR}/${DISTNAME}
INST_PREFIX=	${PREFIX}/drweb
CONF_PREFIX=	${PREFIX}/etc/drweb

LANGS=		en en-pl en-ru
CONFS=		addresses drweb_smf users viruses
TMPLS=		admin_archive admin_cured admin_error admin_license admin_malware \
		admin_rule admin_virus rcpts_malware rcpts_virus sender_archive \
		sender_cured sender_error sender_malware sender_skip sender_virus

do-install:
	${INSTALL_PROGRAM} -m 0750 -o drweb -g drweb \
		${WRKSRC}${LOCALBASE}/drweb/drweb-smf ${INST_PREFIX}/drweb-smf
.for CONF in ${CONFS}
	${SED} -e s#/usr/local/drweb/run#/var/drweb/run#g \
		< ${WRKSRC}${LOCALBASE}/etc/drweb/${CONF}.conf > \
		${CONF_PREFIX}/${CONF}.conf-distr
.if !exists( ${CONF_PREFIX}/${CONF}.conf )
	${CP} ${CONF_PREFIX}/${CONF}.conf-distr ${CONF_PREFIX}/${CONF}.conf
.endif
.endfor
.for LANG in ${LANGS}
	${MKDIR} ${CONF_PREFIX}/templates/${LANG}/sendmail
.endfor
.for LANG in ${LANGS}
.for TMPL in ${TMPLS}
	${INSTALL} -m 0640 -o drweb -g drweb ${WRKSRC}${LOCALBASE}/etc/drweb/templates/${LANG}/${TMPL}.msg \
		${CONF_PREFIX}/templates/${LANG}/sendmail/${TMPL}.msg-distr
.if !exists( ${CONF_PREFIX}/templates/${LANG}/sendmail/${TMPL}.msg )
	${CP} ${CONF_PREFIX}/templates/${LANG}/sendmail/${TMPL}.msg-distr \
		${CONF_PREFIX}/templates/${LANG}/sendmail/${TMPL}.msg
.endif
.endfor
.endfor

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${TAR} -cf - -C ${WRKSRC}${LOCALBASE}/drweb/doc/sendmail . | \
		${TAR} -xf - -C ${DOCSDIR} --exclude "configure*" \
			--exclude "*.patch" --exclude "template.*"
.endif
	@@${ECHO}
	@@${ECHO} "Read documentation about additional Sendmail tuning needed"
	@@${ECHO} "in ${DOCSDIR}."
	@@${ECHO}

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


1.79
log
@Reset maintainer to ports@@ by request.  While here, mark the ports DEPRECATED
(the website has been rearranged).

Note that the project still seems to be active.

PR:		ports/157658
Submitted by:	Alexander Demin <support@@spectrum.ru> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.78
log
@- Add support for 7.x

PR:		ports/133917
Submitted by:	Alexander Demin <support at spectrum.ru> (maintainer)
@
text
@a12 1
		ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/60/ \
d15 1
a15 1
MAINTAINER=	support@@spectrum.ru
d18 3
a29 5
.if ${OSVERSION} < 601000
IGNORE=	sorry, port is not supported of FreeBSD version < 6.1
.endif

.if ${OSVERSION} >= 700000
a30 3
.else
DISTNAME=	${PORTNAME}-${PORTVERSION}-freebsd60
.endif
@


1.77
log
@- Update to 4.44.1
- While here:
  fix DISTNAME/DISTFILES and ordering
  pet portlint
  rename rc.d scripts from foo.sh -> foo.in (.sh is legacy)

PR:             ports/131292,   ports/131293, ports/131300, ports/131301
Submitted by:   Demin Alexander <support@@spectrum.ru> (maintainer)
@
text
@d10 1
d12 3
a14 4
MASTER_SITES=	ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/60/ \
	http://freebsd.spectrum.ru/distfiles/drweb/
DISTNAME=	${PORTNAME}-${PORTVERSION}-freebsd60
DIST_SUBDIR=	drweb
d23 1
a23 1
USE_RC_SUBR=	drweb-smf
d32 7
@


1.76
log
@- Fix mastersite.
- Update to rcNG.

PR:		ports/127026
Submitted by:	Demin Alexander <support@@spectrum.ru> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	4.33
PORTREVISION=	5
d11 3
a13 2
MASTER_SITES=	ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/60/:f61 \
		http://freebsd.spectrum.ru/distfiles/drweb/:f61
d23 2
a24 1
USE_RC_SUBR=            drweb-smf.sh
d28 2
a29 5
.if ${OSVERSION} >= 601000
DISTNAME=       ${PORTNAME}-${PORTVERSION}-freebsd61
DISTFILES=      ${DISTNAME}${EXTRACT_SUFX}:f61
.else
IGNORE=         sorry, port is not supported of FreeBSD version < 6.1
d32 1
a32 1
WRKSRC=		${WRKDIR}/${PORTNAME}
d44 1
a44 1
		${WRKSRC}${LOCALBASE}/drweb/drweb-smf.static ${INST_PREFIX}/drweb-smf
@


1.75
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@d10 1
a10 1
PORTREVISION=	4
d12 2
a13 4
MASTER_SITES=	ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/61/:f61 \
		ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/55/:f55 \
		ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/411/:f411 \
		http://freebsd.spectrum.ru/distfiles/drweb/:f61,f55,f411
d23 1
d28 2
a29 2
DISTNAME=	${PORTNAME}-${PORTVERSION}-freebsd61
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:f61
d31 1
a31 2
DISTNAME=	${PORTNAME}-${PORTVERSION}-freebsd55
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:f55
a67 7
	${SED} -e s#___T_FILTER_PATH___#${INST_PREFIX}/drweb-smf#g \
		-e s#___T_FILTER_UNIX___#yes#g \
		-e s#___T_FILTER_SOCKET___#no#g \
		-e s#___T_FILTER_PARAMS___##g \
		< ${WRKSRC}${LOCALBASE}/drweb/doc/sendmail/template.initscript > \
		${PREFIX}/etc/rc.d/002.drweb-smf.sh
	${CHMOD} 750 ${PREFIX}/etc/rc.d/002.drweb-smf.sh
@


1.74
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.73
log
@- Fix MASTER_SITES
- Add binary for 6.1 or above
- Update distfiles
- Add IA32_BINARY_PORT

PR:		ports/106993
Submitted by:	Demin Alexander <support at spectrum.ru> (maintainer)
@
text
@d28 1
a28 4
.if ${OSVERSION} < 500000
DISTNAME=	${PORTNAME}-${PORTVERSION}-freebsd411
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:f411
.elif ${OSVERSION} >= 601000
@


1.72
log
@- Fix path of templates message in default configuration file
- Bump PORTREVISION

PR:		ports/89659
Submitted by:	Demin Alexander (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	2
d12 5
a16 3
MASTER_SITES=	ftp://ftp.drweb.ru/pub/drweb/unix/FreeBSD/411/:f411 \
		ftp://ftp.drweb.ru/pub/drweb/unix/FreeBSD/54/:f54 \
		http://freebsd.spectrum.ru/distfiles/:f411,f54
d23 2
a24 2
ONLY_FOR_ARCHS=	i386
NO_BUILD=	yes
d31 3
d35 2
a36 2
DISTNAME=	${PORTNAME}-${PORTVERSION}-freebsd54
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:f54
@


1.71
log
@- Fix typo in Makefile (s/aendmail/sendmail/)

PR:		ports/89485
Submitted by:	Demin Alexander (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.70
log
@- Fix message templates in default configuration file

PR:		ports/89366
Submitted by:	Demin Alexander <support@@spectrum.ru> (maintainer)
@
text
@d62 1
a62 1
.if !exists( ${CONF_PREFIX}/templates/${LANG}/aendmail/${TMPL}.msg )
@


1.69
log
@- Fix permission of 002.drweb-smf.sh start script

PR:		ports/88982
Submitted by:	maintainer
@
text
@d10 1
@


1.68
log
@Update to 4.33
Use groups in MASTER_SITES
Add SHA256

PR:		88618
Submitted by:	Demin Alexander <support@@spectrum.ru> (maintainer)
@
text
@d73 1
a73 1
	${CHMOD} +x ${PREFIX}/etc/rc.d/002.drweb-smf.sh
@


1.67
log
@Chase MASTER_SITES

PR:		ports/74501
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	4.32.1
d11 3
a13 2
MASTER_SITES=	ftp://ftp.drweb.ru/pub/unix/FreeBSD/49/ \
		ftp://ftp.drweb.ru/pub/unix/FreeBSD/53/
d15 2
a16 2
MAINTAINER=     support@@spectrum.ru
COMMENT=        Sendmail message filter for virus processing through DrWeb daemon
d18 1
a18 2
RUN_DEPENDS=	${LOCALBASE}/drweb/drwebd:${PORTSDIR}/security/drweb \
		/usr/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
d20 1
d26 2
a27 1
DISTNAME=       ${PORTNAME}-${PORTVERSION}-freebsd49
d29 2
a30 1
DISTNAME=       ${PORTNAME}-${PORTVERSION}-freebsd53
d34 8
a41 9
INST_PREFIX=    ${PREFIX}/${PORTNAME}
DOC_DIR=        ${PREFIX}/share/doc/${PORTNAME}
CONFDIR=	${PREFIX}/etc/${PORTNAME}

LANGS=	en en-ru en-pl en-jp
CONFS=	drweb_smf users viruses addresses
TMPLS=	archive-admin archive-sender cured-admin cured-sender error-admin \
	error-sender rule-admin skip-sender virus-admin virus-rcpts virus-sender \
	license-admin
d44 2
a45 15
	${MKDIR} ${INST_PREFIX}
	${MKDIR} ${INST_PREFIX}/run
	${CHOWN} drweb:drweb ${INST_PREFIX}/run
	${MKDIR} ${CONFDIR}
	${MKDIR} ${DOC_DIR}
	${MKDIR} ${DOC_DIR}/sendmail
	${INSTALL_PROGRAM} ${WRKSRC}/usr/local/drweb/drweb-smf.static \
		${INST_PREFIX}/drweb-smf
	${SED} 's#%INSTALL%#${INST_PREFIX}#g' \
		< ${FILESDIR}/01.drweb-smf.sh \
		> ${PREFIX}/etc/rc.d/01.drweb-smf.sh-dist
	${CHMOD} 750 ${PREFIX}/etc/rc.d/01.drweb-smf.sh-dist
.for LANG in ${LANGS}
	${MKDIR} ${PREFIX}/etc/${PORTNAME}/templates/${LANG}/sendmail
.endfor
d47 5
a51 7
	${SED} 's#%CONFDIR%#${CONFDIR}#g' \
		< ${WRKSRC}/usr/local/etc/drweb/${CONF}.conf \
		> ${CONFDIR}/${CONF}.conf-dist
	${CHMOD} 640 ${CONFDIR}/${CONF}.conf-dist
.if !exists( ${PREFIX}/etc/${PORTNAME}/${CONF}.conf )
	${CP} ${CONFDIR}/${CONF}.conf-dist ${CONFDIR}/${CONF}.conf
	${CHMOD} 600 ${CONFDIR}/${CONF}.conf
d55 3
d59 5
a63 5
	${INSTALL_DATA} ${WRKSRC}/usr/local/etc/drweb/templates/${LANG}/sendmail/${TMPL}.msg \
		${PREFIX}/etc/${PORTNAME}/templates/${LANG}/sendmail/${TMPL}.msg-dist
.if !exists( ${PREFIX}/etc/${PORTNAME}/templates/${LANG}/sendmail/${TMPL}.msg )
	${INSTALL_DATA} -o drweb -g drweb -m 640 ${WRKSRC}/usr/local/etc/drweb/templates/${LANG}/sendmail/${TMPL}.msg \
		${PREFIX}/etc/${PORTNAME}/templates/${LANG}/sendmail/${TMPL}.msg
d67 19
a85 4
	${CP} ${WRKSRC}/usr/local/drweb/doc/sendmail/*.txt \
		${DOC_DIR}/sendmail/
	${CP} ${WRKSRC}/usr/local/drweb/doc/sendmail/read* \
                ${DOC_DIR}/sendmail/
@


1.66
log
@- Update to 4.32.1
- Pass maintainership to submitter

PR:		ports/72511
Submitted by:	Demin Alexander <support(at)spectrum.ru>
@
text
@d11 2
a12 1
MASTER_SITES=	ftp://ftp.drweb.ru/pub/unix/Clients/
@


1.65
log
@- Cosmetic: adjust dependencies

PR:		ports/66926
Submitted by:	Serge Negodyuck <petr@@petrovich.kiev.ua>
@
text
@d8 2
a9 2
PORTNAME=	drweb_sendmail
PORTVERSION=	4.31
d11 9
a19 21
MASTER_SITES=	ftp://ftp.drweb.ru/pub/unix/ \
		ftp://ftp.drweb.ru/pub/unix/archive/ \
		ftp://ftp.drweb.ru/pub/unix/archive/drweb-clients-${PORTVERSION}/
DISTNAME=	drweb-clients-${PORTVERSION}-sources

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Sendmail message filter for virus processing through DrWeb daemon

BUILD_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash2
RUN_DEPENDS=	${LOCALBASE}/drweb/drwebd:${PORTSDIR}/security/drweb

WRKSRC=		${WRKDIR}/${DISTNAME}

INST_PREFIX=	${PREFIX}/${PORTNAME}
DOC_DIR=	${PREFIX}/share/doc/drweb-sendmail

.if !exists( /usr/include/libmilter/mfapi.h )
BUILD_DEPENDS+=	${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
MAKE_ARGS+=	ADDLIB_FreeBSD=-L${LOCALBASE}/lib
MAKE_ARGS+=	"ADDF_FreeBSD=-Iaddons/md5 -I${LOCALBASE}/include"
.endif
d21 1
a21 7
.if !defined(WITH_DRWEBSMF_HOSTNAME)
.if defined(BATCH)
WITH_DRWEBSMF_HOSTNAME=	your.domain.name
.else
WITH_DRWEBSMF_HOSTNAME!=hostname
.endif
.endif
d23 2
a24 2
.if defined(BATCH)
RANDOM_NUMBER=!!!___EDIT_THIS___!!!
d26 1
a26 1
RANDOM_NUMBER!=dd if=/dev/random count=1 2> /dev/null | /sbin/md5
d29 10
a38 37
LANGS=en en-ru en-pl
CONFS=drweb_smf users viruses addresses
TMPLS=error-admin error-sender archive-admin archive-sender skip-sender \
      virus-admin virus-rcpts virus-sender rule-admin

post-patch:
	${SED} "s#%PREFIX%#${PREFIX}#g" < ${FILESDIR}/drweb-sendmail.sh \
	    > ${WRKSRC}/drweb-sendmail.sh
	cd ${WRKSRC} && \
	${SED} "s#%PREFIX%#${PREFIX}#g" < dw_options.c > ndwo.c && \
	    mv ndwo.c dw_options.c
	cd ${WRKSRC}/doc/sendmail && \
	${SED} "s#%LOCALBASE%#${LOCALBASE}#g" < configure > nconf && \
	    mv nconf configure && chmod a+rx configure
	cd ${WRKSRC}/etc && \
	${SED} "s#%PREFIX%#${PREFIX}#g;\
		s#%HOSTNAME%#${WITH_DRWEBSMF_HOSTNAME}#g;\
		s#!!!___EDIT_THIS___!!!#${RANDOM_NUMBER}#" \
	    < drweb_smf.conf > ndrwsmf.conf && \
	    mv ndrwsmf.conf drweb_smf.conf

post-configure:
	cd ${WRKSRC} && { \
		${ECHO_CMD} ${PORTVERSION}; \
		${ECHO_CMD} y; \
		${ECHO_CMD} n; \
		${ECHO_CMD} y; \
		${ECHO_CMD} n; \
		${ECHO_CMD} n; \
		${ECHO_CMD} n; \
		${ECHO_CMD} n; \
		${ECHO_CMD} n; \
		${ECHO_CMD} n; \
		${ECHO_CMD} y; \
		${ECHO_CMD} ${CFLAGS} ; \
		${ECHO_CMD} y; \
	} | ./configure
d41 4
d46 7
d54 1
a54 1
	${MKDIR} ${PREFIX}/etc/drweb/templates/${LANG}/sendmail
d57 8
a64 6
	${INSTALL_DATA} -m 600 ${WRKSRC}/etc/${CONF}.conf \
	    ${PREFIX}/etc/drweb/${CONF}.conf-dist
	if [ ! -f ${PREFIX}/etc/drweb/${CONF}.conf ]; then \
	    ${INSTALL_DATA} -m 600 ${WRKSRC}/etc/${CONF}.conf \
		${PREFIX}/etc/drweb/${CONF}.conf; \
	fi
d68 6
a73 7
	cd ${WRKSRC}/etc/templates/${LANG}/sendmail && \
	    tr -d '\r' < ${TMPL}.msg > \
		${PREFIX}/etc/drweb/templates/${LANG}/sendmail/${TMPL}.msg-dist
	if [ ! -f ${PREFIX}/etc/drweb/templates/${LANG}/sendmail/${TMPL}.msg ]; then \
		cd ${PREFIX}/etc/drweb/templates/${LANG}/sendmail && \
		${CP} ${TMPL}.msg-dist ${TMPL}.msg; \
	fi
d76 4
a79 29
	${INSTALL_PROGRAM} ${WRKSRC}/drweb-smf ${PREFIX}/sbin/
	${INSTALL_PROGRAM} ${WRKSRC}/drwebdc ${PREFIX}/sbin/
	cd ${WRKSRC}/doc/sendmail && { \
		${ECHO_CMD} ; \
		${ECHO_CMD} "${PREFIX}/drweb"; \
		${ECHO_CMD} "${PREFIX}/drweb/drweb32.ini"; \
		${ECHO_CMD} "${PREFIX}/sbin"; \
		${ECHO_CMD} "${PREFIX}/etc/drweb/drweb_smf.conf"; \
		${ECHO_CMD} ; \
		${ECHO_CMD} ; \
		${ECHO_CMD} t; \
		${ECHO_CMD} ; \
		${ECHO_CMD} ; \
	} | ./configure
	cd ${WRKSRC}/doc/sendmail && \
		${INSTALL_DATA} readme* *.txt sendmail.??.addon \
		${DOC_DIR}
	${INSTALL_DATA} ${WRKSRC}/drweb-sendmail.sh \
	    ${PREFIX}/etc/rc.d/drweb-sendmail.sh-dist
	if [ ! -f ${PREFIX}/etc/rc.d/drweb-sendmail.sh ]; then \
		${INSTALL_SCRIPT} ${WRKSRC}/drweb-sendmail.sh \
		    ${PREFIX}/etc/rc.d/; \
	fi

post-install:
	@@echo
	@@echo "Read documentation about additional sendmail tuning needed"
	@@echo "in ${DOC_DIR}."
	@@echo
d81 1
a81 1
.include <bsd.port.mk>
@


1.64
log
@- Fix build with sendmail from ports

PR:		ports/51128
Submitted by:	Andrey Beresovsky <and@@rsu.ru>
@
text
@d20 1
a20 1
RUN_DEPENDS=	${LOCALBASE}/etc/rc.d/00drwebd.sh:${PORTSDIR}/security/drweb
@


1.63
log
@- Update to 4.31
- Reset unresponsive maintainer

PR:		ports/63838
Submitted by:	Dima Panov <redfox@@Fluffy.Khv.RU>
Approved by:	maintainer timeout (2 weeks)
@
text
@d29 2
@


1.62
log
@Add alternate fetch locations from the mastersite (subdirectories),
since the versions of these files are old and thus no longer
at the top level.  Notified maintainer.
@
text
@d9 1
a9 1
PORTVERSION=    4.29.12f
d13 2
a14 2
		ftp://ftp.drweb.ru/pub/unix/archive/drweb-clients-4.29.12/
DISTNAME=       drweb-clients-4.29.12-F-sources
d16 1
a16 1
MAINTAINER=	anton@@chelcom.ru
d19 2
a20 2
BUILD_DEPENDS=  ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash2
RUN_DEPENDS=    ${LOCALBASE}/etc/rc.d/drweb-0.sh:${PORTSDIR}/security/drwebd
d22 1
a22 1
WRKSRC=         ${WRKDIR}/${DISTNAME}
d33 1
a33 1
WITH_DRWEBSMF_HOSTNAME= your.domain.name
d45 1
a45 1
LANGS=en-ru en-pl
@


1.61
log
@Upgrade to 4.29.12f
@
text
@d11 3
a13 1
MASTER_SITES=   ftp://ftp.drweb.ru/pub/unix/
@


1.60
log
@Upgrade to 4.29.12-D
@
text
@d9 1
a9 1
PORTVERSION=    4.29.12d
d12 1
a12 1
DISTNAME=       drweb-clients-4.29.12-D-sources
@


1.59
log
@FIx to understand drweb 4.29.5 config
@
text
@d9 1
a9 2
PORTVERSION=    4.29.10a
PORTREVISION=   1
d12 1
a12 1
DISTNAME=       drweb-clients-4.29.10-A-sources
d17 1
d43 1
a43 1
LANGS=en-ru #en-es
d46 1
a46 1
      virus-admin virus-rcpts virus-sender
d54 3
d75 1
d97 1
a97 1
	    ${INSTALL_DATA} ${TMPL}.msg \
@


1.58
log
@De-pkg-comment.
@
text
@d10 1
@


1.57
log
@Upgrade to 4.29.10-A
@
text
@d15 1
@


1.56
log
@Upgrade to 4.29.10
@
text
@d9 1
a9 1
PORTVERSION=    4.29.10
d12 1
a12 1
DISTNAME=       drweb-clients-${PORTVERSION}-sources
@


1.55
log
@Upgrade to 4.29
@
text
@d9 1
a9 1
PORTVERSION=    4.29
d41 3
a43 3
LANGS=en-ru en-es
CONFS=drweb_smf users
TMPLS=error-admin error-sender mailbomb-admin mailbomb-sender skip-sender \
d61 1
a70 1
		${ECHO_CMD} n; \
@


1.54
log
@Upgrade to 4.28.11
@
text
@d9 1
a9 1
PORTVERSION=    4.28.11
@


1.53
log
@Upgrade to 4.28.10a
@
text
@d9 1
a9 1
PORTVERSION=    4.28.10a
d11 1
a11 1
MASTER_SITES=   http://drweb.spb.ru/download/unix/
d18 1
a18 1
WRKSRC=         ${WRKDIR}/drweb-filters-4.28.10-sources
@


1.52
log
@Upgrade to 4.28.10
@
text
@d9 1
a9 1
PORTVERSION=    4.28.10
d18 1
a18 1
WRKSRC=         ${WRKDIR}/drweb-filters-${PORTVERSION}-sources
@


1.51
log
@Upgrade to 4.28.4
@
text
@d9 1
a9 1
PORTVERSION=    4.28.4
d18 1
a18 1
WRKSRC=         ${WRKDIR}/${DISTNAME}/opt/drweb/clients/sources/drwebdc
d41 1
a41 1
LANGS=en ru
d43 1
a43 1
TMPLS=error-admin mailbomb-admin mailbomb-sender skipobj-sender \
d52 1
a52 1
	cd ${WRKSRC}/etc/sendmail/etc/drweb && \
d62 1
d68 1
d81 1
a81 1
	${INSTALL_DATA} -m 600 ${WRKSRC}/etc/sendmail/etc/drweb/${CONF}.conf \
d84 1
a84 1
	    ${INSTALL_DATA} -m 600 ${WRKSRC}/etc/sendmail/etc/drweb/${CONF}.conf \
d90 1
a90 1
	cd ${WRKSRC}/etc/sendmail/etc/drweb/templates/${LANG}/sendmail && \
d104 1
d113 3
a115 2
	cd ${WRKSRC}/doc/sendmail; \
		${INSTALL_DATA} readme* *.txt sendmail.??.addon ${DOC_DIR}
@


1.50
log
@Upgrade to 4.28.3
@
text
@d9 1
a9 1
PORTVERSION=    4.28.3
@


1.49
log
@Replace nonfunctional check for libmilter with one that works.

Poked by:       fozzy@@kievweb.net.ua
@
text
@d9 1
a9 2
PORTVERSION=    4.28.2
PORTREVISION=   4
@


1.48
log
@Properly check if sendmail was installed from ports
@
text
@d24 2
a25 2
.if !exists( /usr/include/libmilter/mfapi.h ) && !exists( ${LOCALBASE}/include/libmilter/mfapi.h )
IGNORE=	"requires libmilter installed. Upgrade your FreeBSD system or sendmail package/port"
@


1.47
log
@Add check weather sendmail was installed from ports

PR:		38235
Submitted by:	maintainer
@
text
@d24 1
a24 1
.if !exists( /usr/include/libmilter/mfapi.h ) || !exists( ${LOCALBASE}/include/libmilter/mfapi.h )
@


1.46
log
@Update maintainer's E-mail
@
text
@d24 2
a25 2
.if !exists( /usr/include/libmilter/mfapi.h )
IGNORE= "requires libmilter installed in the base system, upgrade your FreeBSD"
@


1.45
log
@Put virus names only into E-mail report, not part of drwebd log
@
text
@d3 1
a3 1
# Whom:                Anton Voronin <anton@@urc.ac.ru>
d15 1
a15 1
MAINTAINER=	anton@@urc.ac.ru
@


1.44
log
@Distfile re-rolled on official site
@
text
@d10 1
a10 1
PORTREVISION=   3
@


1.43
log
@Add missing demon error code
@
text
@d10 1
a10 1
PORTREVISION=   2
a58 1
	${RM} -f ${WRKSRC}/lib/* ${WRKSRC}/src/*.o
@


1.42
log
@Remove RETURN_CODES from output, there is error with diagnostic
@
text
@d10 1
a10 1
PORTREVISION=   1
@


1.41
log
@Upgrade to 4.28.2
@
text
@d10 1
@


1.40
log
@Use full path to md5
@
text
@d9 1
a9 2
PORTVERSION=    4.28
PORTREVISION=	1
d18 1
a18 1
WRKSRC=         ${WRKDIR}/drwebdc-${PORTVERSION}-src/opt/drweb/clients/drwebdc
d58 1
d62 2
a63 2
		${ECHO_CMD} ; \
		${ECHO_CMD} ; \
d68 2
a69 2
		${ECHO_CMD} ; \
		${ECHO_CMD} ; \
d71 1
a71 1
		${ECHO_CMD} ; \
@


1.39
log
@Don't make random number for BATCH case
@
text
@d10 1
d39 1
a39 1
RANDOM_NUMBER!=dd if=/dev/random count=1 2> /dev/null | md5
@


1.38
log
@Upgrade to 4.28
@
text
@d35 3
d39 2
@


1.37
log
@Tune for -current sendmail 8.12.2
@
text
@d9 1
a9 2
PORTVERSION=    4.27
PORTREVISION=   2
d11 2
a12 3
MASTER_SITES=	http://www.drweb.ru/ftp/web_pub/
DISTNAME=	drwebd-${PORTVERSION}-freebsd4
EXTRACT_SUFX=	.tgz
d16 1
a16 1
RUN_DEPENDS=	${LOCALBASE}/drweb/drwebd:${PORTSDIR}/security/drweb
d18 1
a18 3
WRKSRC=		${WRKDIR}/${DISTNAME}/clients/drwebdc

.include <bsd.port.pre.mk>
a20 1
WITH_DRWEBSMF_SENDMAIL_DIR=     /usr/src/contrib/sendmail
d23 4
d35 18
a52 21
.if exists( ${WITH_DRWEBSMF_SENDMAIL_DIR}/include/libmilter/mfapi.h )

SENDMAIL_VERSION!=      ${AWK} '/^sendmail [0-9.]+$$/{print $$2}' ${WITH_DRWEBSMF_SENDMAIL_DIR}/FREEBSD-upgrade
SENDMAIL_MAJOR!=	${ECHO_CMD} ${SENDMAIL_VERSION} | ${AWK} 'BEGIN{ FS="." }{ print $$1 }'
SENDMAIL_MINOR!=	${ECHO_CMD} ${SENDMAIL_VERSION} | ${AWK} 'BEGIN{ FS="." }{ print $$2 }'
.if ${SENDMAIL_MAJOR} > 8 || ${SENDMAIL_MAJOR} == 8 && ${SENDMAIL_MINOR} >= 12
SENDMAIL8_12=	y
.elif ${SENDMAIL_MAJOR} == 8 && ${SENDMAIL_MINOR} >= 10
SENDMAIL8_12=	n
.else
IGNORE=	"uses Sendmail sources that are expected to have version 8.10.0 or newer. Your system sources are too old - please upgrade them"
.endif

.else
IGNORE= "depends on the Sendmail sources. Please place them somewhere first and point WITH_DRWEBSMF_SENDMAIL_DIR there"
.endif

post-extract:
	cd ${WRKDIR}/${DISTNAME} && \
		${TAR} -xzf ${WRKDIR}/${DISTNAME}/${DISTNAME}.tar.gz \
		clients/sendmail clients/drwebdc
a54 14
.if defined(SENDMAIL_VERSION)
.if ${SENDMAIL8_12} == "n" || ${SENDMAIL_VERSION} == "8.12.0"
	${MKDIR} ${WRKSRC}/libmilter
	${CP} ${FILESDIR}/Makefile.libmilter ${WRKSRC}/libmilter/Makefile
.if ${SENDMAIL_VERSION} == "8.11.1"
	${CP} ${WITH_DRWEBSMF_SENDMAIL_DIR}/libmilter/listener.c ${WRKSRC}/libmilter
	cd ${WRKSRC}/libmilter && ${PATCH} < ${WRKSRC}/../sendmail/listener-8.11.1.patch
.elif ${SENDMAIL_VERSION} == "8.12.0"
	${CP} ${WITH_DRWEBSMF_SENDMAIL_DIR}/libmilter/listener.c ${WRKSRC}/libmilter
	cd ${WRKSRC}/libmilter && ${PATCH} < ${WRKSRC}/../sendmail/listener-8.12.0.patch
.endif
	cd ${WRKSRC}/libmilter && ${MAKE} clean && ${MAKE} SENDMAIL_DIR=${WITH_DRWEBSMF_SENDMAIL_DIR}
.endif
.endif
d56 3
a58 1
		${ECHO_CMD} y; \
d60 4
a63 3
		${ECHO_CMD} y; \
		${ECHO_CMD} ${SENDMAIL8_12} ; \
		${ECHO_CMD} ${WITH_DRWEBSMF_SENDMAIL_DIR} ; \
d65 1
a65 1
		${ECHO_CMD} y; \
d70 22
d94 3
a96 2
	cd ${WRKSRC}/../sendmail && { \
		${ECHO_CMD} y; \
d98 2
a100 14
		${ECHO_CMD} u; \
		${ECHO_CMD} "${PREFIX}/drweb/run/drweb-smf.sock"; \
		${ECHO_CMD} drweb; \
		${ECHO_CMD} "${PREFIX}/drweb/infected"; \
		${ECHO_CMD} y; \
		${ECHO_CMD} /tmp; \
		${ECHO_CMD} y; \
		${ECHO_CMD} y; \
		${ECHO_CMD} ; \
		${ECHO_CMD} postmaster@@${WITH_DRWEBSMF_HOSTNAME}; \
		${ECHO_CMD} y; \
		${ECHO_CMD} y; \
		${ECHO_CMD} y; \
		${ECHO_CMD} c; \
d102 1
a102 8
		${ECHO_CMD} t; \
		${ECHO_CMD} t; \
		${ECHO_CMD} a; \
		${ECHO_CMD} r; \
		${ECHO_CMD} 160000; \
		${ECHO_CMD} ${SENDMAIL8_12} ; \
		${ECHO_CMD} n; \
		${ECHO_CMD} y; \
d105 7
a111 9
	cd ${WRKSRC}/../sendmail; \
		${INSTALL_DATA} example* readme.* sendmail.*.addon ${DOC_DIR}
	cd ${WRKSRC}/../sendmail; \
		${INSTALL_DATA} drweb-sendmail.sh \
		${PREFIX}/etc/rc.d/drweb-sendmail.sh-dist
	if [ ! -f ${PREFIX}/etc/rc.d/drweb-sendmail.sh ] ; then \
		cd ${WRKSRC}/../sendmail; \
			${INSTALL_SCRIPT} drweb-sendmail.sh \
			${PREFIX}/etc/rc.d/; \
a114 3
	PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} POST-INSTALL
	@@echo
	@@${CAT} pkg-message
d118 1
d120 1
a120 1
.include <bsd.port.post.mk>
@


1.36
log
@Add -D_THREAD_SAFE, remove libsmutil building
@
text
@d10 1
a10 1
PORTREVISION=   1
a25 1
LIBSMUTIL_DIR=  /usr/src/lib/libsmutil
d59 2
a61 1
#        ${MKDIR} ${WRKSRC}/libsmutil
a62 2
#        ${CP} ${FILESDIR}/Makefile.libsmutil ${WRKSRC}/libsmutil/Makefile
.if defined(SENDMAIL_VERSION)
d70 2
a72 2
	cd ${WRKSRC}/libmilter && ${MAKE} clean && ${MAKE} SENDMAIL_DIR=${WITH_DRWEBSMF_SENDMAIL_DIR}
#        cd ${WRKSRC}/libsmutil && ${MAKE} clean && ${MAKE} SENDMAIL_DIR=${WITH_DRWEBSMF_SENDMAIL_DIR}
@


1.35
log
@Check SENDMAIL_VERSION only if defined
@
text
@d10 1
d60 2
a61 1
	${MKDIR} ${WRKSRC}/libmilter ${WRKSRC}/libsmutil
d63 3
a65 2
	${CP} ${FILESDIR}/Makefile.libsmutil ${WRKSRC}/libsmutil/Makefile
.if defined(SENDMAIL_VERSION) && ${SENDMAIL_VERSION} == "8.11.1"
d68 1
a68 1
.elif defined(SENDMAIL_VERSION) && ${SENDMAIL_VERSION} == "8.12.0"
d72 1
d74 1
a74 1
	cd ${WRKSRC}/libsmutil && ${MAKE} clean && ${MAKE} SENDMAIL_DIR=${WITH_DRWEBSMF_SENDMAIL_DIR}
@


1.34
log
@Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.
@
text
@d62 1
a62 1
.if ${SENDMAIL_VERSION} == "8.11.1"
d65 1
a65 1
.elif ${SENDMAIL_VERSION} == "8.12.0"
@


1.33
log
@Upgrade to 4.27
@
text
@d39 2
a40 2
SENDMAIL_MAJOR!=	${ECHO} ${SENDMAIL_VERSION} | ${AWK} 'BEGIN{ FS="." }{ print $$1 }'
SENDMAIL_MINOR!=	${ECHO} ${SENDMAIL_VERSION} | ${AWK} 'BEGIN{ FS="." }{ print $$2 }'
d72 7
a78 7
		${ECHO} y; \
		${ECHO} n; \
		${ECHO} y; \
		${ECHO} ${SENDMAIL8_12} ; \
		${ECHO} ${WITH_DRWEBSMF_SENDMAIL_DIR} ; \
		${ECHO} ${CFLAGS} ; \
		${ECHO} y; \
d86 27
a112 27
		${ECHO} y; \
		${ECHO} "${PREFIX}/sbin"; \
		${ECHO} ; \
		${ECHO} u; \
		${ECHO} "${PREFIX}/drweb/run/drweb-smf.sock"; \
		${ECHO} drweb; \
		${ECHO} "${PREFIX}/drweb/infected"; \
		${ECHO} y; \
		${ECHO} /tmp; \
		${ECHO} y; \
		${ECHO} y; \
		${ECHO} ; \
		${ECHO} postmaster@@${WITH_DRWEBSMF_HOSTNAME}; \
		${ECHO} y; \
		${ECHO} y; \
		${ECHO} y; \
		${ECHO} c; \
		${ECHO} t; \
		${ECHO} t; \
		${ECHO} t; \
		${ECHO} a; \
		${ECHO} r; \
		${ECHO} 160000; \
		${ECHO} ${SENDMAIL8_12} ; \
		${ECHO} n; \
		${ECHO} y; \
		${ECHO} ; \
@


1.32
log
@Update to reflect drweb dist re-rolling
@
text
@d9 1
a9 2
PORTVERSION=    4.26c
PORTREVISION=   1
d92 1
a92 1
		${ECHO} "${PREFIX}/drweb/infected.!!!"; \
@


1.31
log
@Upgrade to 4.26c
@
text
@d10 1
d55 3
a57 2
	cd ${WRKDIR}/${DISTNAME} && ${TAR} -xzf ${WRKDIR}/${DISTNAME}/${DISTNAME}.tar.gz clients/sendmail
	cd ${WRKDIR}/${DISTNAME} && ${TAR} -xzf ${LOCALBASE}/drweb/drwebd_4.26c_update.tgz clients/drwebdc
@


1.30
log
@Use ${SH} to run pkg-install. It seems that CTM not preserve x-bit
@
text
@d9 1
a9 2
PORTVERSION=    4.26b
PORTREVISION=   1
d54 2
a55 1
	cd ${WRKDIR}/${DISTNAME} && ${TAR} -xzf ${WRKDIR}/${DISTNAME}/${DISTNAME}.tar.gz clients/drwebdc clients/sendmail
@


1.29
log
@Fix argument order in mail reply message
@
text
@d125 1
a125 1
	PKG_PREFIX=${PREFIX} ./pkg-install ${PKGNAME} POST-INSTALL
@


1.28
log
@Upgrade to 4.26b
@
text
@d10 1
@


1.27
log
@Remove user deleting from here, it still needed for drweb sub-port
@
text
@d9 1
a9 2
PORTVERSION=    4.26
PORTREVISION=   12
d94 1
d97 1
@


1.26
log
@Move user adding/deleting to pkg*install
@
text
@d10 1
a10 1
PORTREVISION=   11
@


1.25
log
@Put it into security sandbox disallowing 'drweb' user to own any files
excepting pid/socket/temp/spool ones
@
text
@d10 1
a10 1
PORTREVISION=   10
d123 1
@


1.24
log
@Bump PORTVERSION for prev. change
@
text
@d10 1
a10 1
PORTREVISION=   9
d89 1
a89 1
		${ECHO} "${PREFIX}/drweb/drweb-smf.sock"; \
@


1.23
log
@1) Configure should be run after drweb-smf binary has been installed
2) -zACTION flag changed from d to c, because with -zd drweb-smf discards
   emails with empty reverse-path (MAIL FROM: SMTP command which corresponds
   to Return-Path: envelope header) rather than emails with empty From:
   message header. According to RFC 2821 MTAs use empty reverse-path for
   rejection notifications and many other mail robots also do that.

PR:		31057
Submitted by:	MAINTAINER
@
text
@d10 1
a10 1
PORTREVISION=   8
@


1.22
log
@Install drwebdc into sbin
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.21 2001/10/06 04:25:11 ache Exp $
d80 4
a83 1
pre-install:
d99 1
a99 1
		${ECHO} d; \
a110 5

do-install:
	${MKDIR} ${DOC_DIR}
	${INSTALL_PROGRAM} ${WRKSRC}/drweb-smf ${PREFIX}/sbin/
	${INSTALL_PROGRAM} ${WRKSRC}/drwebdc ${PREFIX}/sbin/
@


1.21
log
@Run as drweb user, not as root
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.20 2001/10/03 22:14:56 ache Exp $
d10 1
a10 1
PORTREVISION=   7
d112 1
a112 1
	${INSTALL_PROGRAM} ${WRKSRC}/drwebdc ${PREFIX}/drweb/
@


1.20
log
@Add WITH_DRWEBSFM_SENDMAIL_DIR configuration knob
Add example*.sh to DOC_DIR
Use local version of libsmutil Makefile with FFR_MILTER always turned on
@
text
@d5 1
a5 1
# $FreeBSD$
d10 1
a10 1
PORTREVISION=   6
d86 2
a87 2
		${ECHO} /var/run/drweb-smf.sock; \
		${ECHO} root; \
@


1.19
log
@Wrap long line in virus detection mail message
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.18 2001/10/03 18:46:15 ache Exp $
d10 1
a10 1
PORTREVISION=   5
d25 1
a25 1
SENDMAIL_DIR=	/usr/src/contrib/sendmail
d37 1
a37 1
.if exists( ${SENDMAIL_DIR}/include/libmilter/mfapi.h )
d39 1
a39 1
SENDMAIL_VERSION!=	${AWK} '/^sendmail [0-9.]+$$/{print $$2}' ${SENDMAIL_DIR}/FREEBSD-upgrade
d51 1
a51 1
IGNORE=	"depends on the system sources. Please place them under /usr/src first"
d59 2
a60 2
	${CP} ${FILESDIR}/Makefile ${WRKSRC}/libmilter
	${CP} ${LIBSMUTIL_DIR}/Makefile ${WRKSRC}/libsmutil
d62 1
a62 2
	${CP} ${SENDMAIL_DIR}/libmilter/listener.c ${WRKSRC}/libmilter
	${LN} -s ${SENDMAIL_DIR}/libmilter/libmilter.h ${WRKSRC}/libmilter
d65 1
a65 2
	${CP} ${SENDMAIL_DIR}/libmilter/listener.c ${WRKSRC}/libmilter
	${LN} -s ${SENDMAIL_DIR}/libmilter/libmilter.h ${WRKSRC}/libmilter
d68 2
a69 2
	cd ${WRKSRC}/libmilter && ${MAKE} clean && ${MAKE}
	cd ${WRKSRC}/libsmutil && ${MAKE} clean && ${MAKE} SENDMAIL_DIR=${SENDMAIL_DIR}
d75 1
a75 1
		${ECHO} ${SENDMAIL_DIR} ; \
d114 1
a114 1
		${INSTALL_DATA} readme.* sendmail.*.addon ${DOC_DIR}
@


1.18
log
@Fix socket permissions and startup race condition
@
text
@d5 1
a5 1
# $FreeBSD$
d10 1
a10 1
PORTREVISION=   4
@


1.17
log
@Use native drweb-sendmail.sh script for both daemon & filter
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.16 2001/10/03 08:08:04 ache Exp $
d10 1
a10 1
PORTREVISION=   3
@


1.16
log
@Move drweb-dependent configuration into pre-install section
Fix one spelling mistake in diagnostic
@
text
@d5 1
a5 1
# $FreeBSD$
d10 1
a10 1
PORTREVISION=   2
a81 1
# Not fully used yet
d117 8
a124 4
	${SED} 's#!!PREFIX!!#${PREFIX}#g;s#!!HOSTNAME!!#${WITH_DRWEBSMF_HOSTNAME}#g' \
		< ${FILESDIR}/drweb-smf.sh >${WRKSRC}/drweb-smf.sh
# drwebsmf.sh instead drweb-smf.sh to start after drwebd.sh
	${INSTALL_SCRIPT} ${WRKSRC}/drweb-smf.sh ${PREFIX}/etc/rc.d/drwebsmf.sh
@


1.15
log
@Configuration tunings
@
text
@d10 1
a10 1
PORTREVISION=   1
d83 1
a83 1
post-build:
@


1.14
log
@Upgrade to 4.26
(working, but not cleanly configured)
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.13 2001/08/31 03:59:43 ache Exp $
d10 1
d28 2
d31 1
a31 1
HOSTNAME=       your.domain.name
d33 2
a34 1
HOSTNAME!=      hostname
d96 1
a96 1
		${ECHO} postmaster@@${HOSTNAME}; \
d100 1
a100 1
		${ECHO} a; \
d118 1
a118 1
	${SED} 's#!!PREFIX!!#${PREFIX}#g;s#!!HOSTNAME!!#${HOSTNAME}#g' \
d121 1
a121 1
	${INSTALL_DATA} ${WRKSRC}/drweb-smf.sh ${PREFIX}/etc/rc.d/drwebsmf.sh-dist
@


1.13
log
@Yet one spelling
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.12 2001/08/29 20:30:38 ache Exp $
d9 1
a9 2
PORTVERSION=	4.25
PORTREVISION=	2
a19 1
MAKEFILE=	Makefile.unix
d25 1
a25 1
MF_INCDIR=	${SENDMAIL_DIR}/include/libmilter
d27 5
d33 1
a33 1
.if exists( ${MF_INCDIR}/mfapi.h )
d53 2
a54 2
pre-build:
	${MKDIR} ${WRKSRC}/libmilter
d56 1
d60 5
a64 1
	cd ${WRKSRC}/libmilter && ${PATCH} < ${WRKSRC}/../sendmail/listener.patch
d67 1
d69 22
d92 10
a101 2
		${ECHO} ${MF_INCDIR} ; \
		${ECHO} libmilter ; \
d103 3
a105 1
		${ECHO} ${CFLAGS} ; \
d112 4
a115 3
	${INSTALL_DATA} ${WRKSRC}/../sendmail/readme.sendmail ${DOC_DIR}
	${INSTALL_DATA} ${WRKSRC}/../sendmail/readme.sendmail.rus ${DOC_DIR}
	${SED} 's#!!PREFIX!!#${PREFIX}#' < ${FILESDIR}/drweb-smf.sh >${WRKSRC}/drweb-smf.sh
@


1.12
log
@Don't attempt to notify empty <> sender
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.11 2001/08/25 15:20:52 ache Exp $
d10 1
a10 1
PORTREVISION=	1
@


1.11
log
@Oops, remove wrong warning - there was a problem in drweb32.ini
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.10 2001/08/25 14:48:11 ache Exp $
d10 1
@


1.10
log
@Simplify configuration installation in rc.d
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.9 2001/08/25 14:38:03 ache Exp $
a6 2

# WARNING: viruses in mail not detected with evaluation key!
@


1.9
log
@Add warnings that viruses in mail not detected with evaluation key
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.8 2001/08/25 11:40:57 ache Exp $
a76 3
	if [ ! -f ${PREFIX}/etc/rc.d/drwebsmf.sh ] ; then \
		${INSTALL_DATA} ${WRKSRC}/drweb-smf.sh ${PREFIX}/etc/rc.d/drwebsmf.sh; \
	fi
a83 2
	@@echo "Inspect options used as example in ${PREFIX}/etc/rc.d/drwebsmf.sh"
	@@echo "and set bit x to really activate that script."
@


1.8
log
@Install drwebdc too
@
text
@d5 1
a5 1
# $FreeBSD$
d7 2
@


1.7
log
@Do not overwrite existen drwebsmf.sh on install
@
text
@d68 2
a69 1
	${INSTALL_PROGRAM} ${WRKSRC}/drweb-smf ${PREFIX}/sbin
@


1.6
log
@Fix my typo
@
text
@d1 1
a1 1
# New ports collection makefile for:   tas
d72 8
a79 1
	${INSTALL_SCRIPT} ${WRKSRC}/drweb-smf.sh ${PREFIX}/etc/rc.d/drwebsmf.sh
d81 5
@


1.5
log
@Use ${CFLAGS} when compiling dwc
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.4 2001/08/24 20:15:38 ache Exp $
d71 2
a72 2
	${SED} 's#!!PREFIX!!#${PREFIX}#' < ${FILESDIR}/drweb-smf.sh >${WRKSRC}/drwebsmf.sh
	${INSTALL_SCRIPT} ${WRKSRC}/drweb-smf.sh ${PREFIX}/etc/rc.d
@


1.4
log
@1) Add ability to build on any machine by direct adding -D_FFR_MILTER=1
to libmilter Makefile, so remove IS_INSTERACTIVE
2) Rename final rc.d/drweb-smf.sh to rc.d/drwebsmf.sh to start it _after_
drwebd.sh if on the same machine
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.3 2001/08/24 19:45:41 ache Exp $
d63 1
a63 1
		${ECHO} ; \
@


1.3
log
@Hide extraction process
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.2 2001/08/24 19:40:59 ache Exp $
a18 2
IS_INTERACTIVE= yes     # require sendmail rebuilding

a49 3
	@@${CAT} pkg-message
	@@echo
	@@read -p "Press Enter to continue or ^C to abort: " x
d71 1
a71 1
	${SED} 's#!!PREFIX!!#${PREFIX}#' < ${FILESDIR}/drweb-smf.sh >${WRKSRC}/drweb-smf.sh
d73 1
@


1.2
log
@Print pkg-message note and ask for confirmation before anything else
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/drweb-sendmail/Makefile,v 1.1 2001/08/24 15:57:23 ache Exp $
d49 1
a49 1
	cd ${WRKDIR}/${DISTNAME} && ${TAR} -xvzf ${WRKDIR}/${DISTNAME}/${DISTNAME}.tar.gz clients/drwebdc clients/sendmail
@


1.1
log
@DrWeb antivirus sendmail integration
@
text
@d5 1
a5 1
# $FreeBSD$
d19 2
d52 3
@

