head	1.13;
access;
symbols
	RELEASE_7_4_0:1.11
	RELEASE_8_2_0:1.11
	RELEASE_6_EOL:1.11
	RELEASE_8_1_0:1.11
	RELEASE_7_3_0:1.11
	RELEASE_8_0_0:1.11
	RELEASE_7_2_0:1.11
	RELEASE_7_1_0:1.10
	RELEASE_6_4_0:1.10
	RELEASE_5_EOL:1.9
	RELEASE_7_0_0:1.9
	RELEASE_6_3_0:1.9
	PRE_XORG_7:1.8
	RELEASE_4_EOL:1.8
	RELEASE_6_2_0:1.7
	RELEASE_6_1_0:1.7
	RELEASE_5_5_0:1.7
	RELEASE_6_0_0:1.6
	RELEASE_5_4_0:1.6
	RELEASE_4_11_0:1.5
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.4
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2;
locks; strict;
comment	@# @;


1.13
date	2011.08.10.16.18.32;	author bapt;	state dead;
branches;
next	1.12;

1.12
date	2011.06.06.15.29.39;	author linimon;	state Exp;
branches;
next	1.11;

1.11
date	2009.02.04.10.26.35;	author pgollucci;	state Exp;
branches;
next	1.10;

1.10
date	2008.06.06.14.00.47;	author edwin;	state Exp;
branches;
next	1.9;

1.9
date	2007.10.04.06.00.21;	author edwin;	state Exp;
branches;
next	1.8;

1.8
date	2006.12.22.16.27.28;	author rafan;	state Exp;
branches;
next	1.7;

1.7
date	2005.11.22.22.10.56;	author pav;	state Exp;
branches;
next	1.6;

1.6
date	2005.02.10.16.22.18;	author sem;	state Exp;
branches;
next	1.5;

1.5
date	2004.12.30.07.32.20;	author linimon;	state Exp;
branches;
next	1.4;

1.4
date	2003.12.24.09.10.32;	author linimon;	state Exp;
branches;
next	1.3;

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

1.2
date	2003.08.14.07.47.50;	author krion;	state Exp;
branches;
next	1.1;

1.1
date	2003.07.31.09.20.28;	author nork;	state Exp;
branches;
next	;


desc
@@


1.13
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-qmail
# Date created:				5 February 2003
# Whom:					Denis N. Peplin <info@@volginfo.ru>
#
# $FreeBSD: ports/security/drweb-qmail/Makefile,v 1.12 2011/06/06 15:29:39 linimon Exp $
#

PORTNAME=	drweb-qmail
PORTVERSION=	4.44.1
CATEGORIES=	security mail
MASTER_SITES=	ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/60/ \
		http://freebsd.spectrum.ru/distfiles/drweb/
DISTNAME=	${PORTNAME}-${PORTVERSION}-freebsd60
DIST_SUBDIR=	drweb

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Qmail 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_BZIP2=		yes

.include <bsd.port.pre.mk>

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

LANGS=		en en-pl en-ru
CONFS=		addresses drweb_qmail 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/qmail-queue.static ${INST_PREFIX}/drweb-qmail
.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}/qmail
.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}/qmail/${TMPL}.msg-distr
.if !exists( ${CONF_PREFIX}/templates/${LANG}/qmail/${TMPL}.msg )
	${CP} ${CONF_PREFIX}/templates/${LANG}/qmail/${TMPL}.msg-distr \
		${CONF_PREFIX}/templates/${LANG}/qmail/${TMPL}.msg
.endif
.endfor
.endfor

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

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


1.12
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.11
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
@d16 1
a16 1
MAINTAINER=	support@@spectrum.ru
d19 3
a29 4
.if ${OSVERSION} < 601000
IGNORE=		sorry, port is not supported of FreeBSD version < 6.1
.endif

@


1.10
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
@d9 1
a9 2
PORTVERSION=	4.33
PORTREVISION=	2
d11 3
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
d27 2
a28 6
.if ${OSVERSION} >= 601000
DISTNAME=	${PORTNAME}-${PORTVERSION}-freebsd61
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:f61
.else
DISTNAME=	${PORTNAME}-${PORTVERSION}-freebsd55
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:f55
d31 1
a31 1
WRKSRC=		${WRKDIR}/${PORTNAME}
@


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


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

PR:		ports/107017
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.7
log
@- Update to 4.33

PR:		ports/89372
Submitted by:	Demin Alexander <support@@spectrum.ru> (maintainer)
@
text
@d10 1
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.6
log
@- Update to 4.32.1
- New maintainer

PR:		ports/75391
Submitted by:	Demin Alexander <support(at)spectrum.ru>
Approved by:	former 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/
d16 1
a16 1
COMMENT=	Qmail client for DrWeb antivirus suite
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_qmail 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}/qmail
	${INSTALL_PROGRAM} ${WRKSRC}/usr/local/drweb/qmail-queue.static \
	${INST_PREFIX}/qmail-queue.drweb
	${SED} 's#%INSTALL%#${INST_PREFIX}#g' \
		< ${FILESDIR}/01.drweb-qmail.sh \
		> ${PREFIX}/etc/rc.d/01.drweb-qmail.sh-dist
	${CHMOD} 750 ${PREFIX}/etc/rc.d/01.drweb-qmail.sh-dist
.for LANG in ${LANGS}
		${MKDIR} ${PREFIX}/etc/${PORTNAME}/templates/${LANG}/qmail
.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}/qmail/${TMPL}.msg \
			${PREFIX}/etc/${PORTNAME}/templates/${LANG}/qmail/${TMPL}.msg-dist
.if !exists( ${PREFIX}/etc/${PORTNAME}/templates/${LANG}/qmail/${TMPL}.msg )
				${INSTALL_DATA} -o drweb -g drweb -m 640 ${WRKSRC}/usr/local/etc/drweb/templates/${LANG}/qmail/${TMPL}.msg \
				${PREFIX}/etc/${PORTNAME}/templates/${LANG}/qmail/${TMPL}.msg
a66 4
	${CP} ${WRKSRC}/usr/local/drweb/doc/qmail/*.txt \
	${DOC_DIR}/qmail/
	${CP} ${WRKSRC}/usr/local/drweb/doc/qmail/read* \
	${DOC_DIR}/qmail/
d69 5
d75 1
a75 3
	@@${CAT} ${PKGMESSAGE}
	@@${ECHO}
	@@${ECHO} "Read documentation about additional QMail tuning needed"
@


1.5
log
@Maintainer has stated that he no longer has time to maintain this port.
We appreciate your past work.
@
text
@d8 2
a9 3
PORTNAME=	drweb_qmail
PORTVERSION=	4.29.12
PORTREVISION=	2
d11 2
a12 1
MASTER_SITES=	ftp://ftp.drweb.ru/pub/drweb/unix/archive/drweb-clients-${PORTVERSION}/
d14 1
a14 1
MAINTAINER=	ports@@FreeBSD.org
d17 1
a17 2
RUN_DEPENDS=	${DRWEB_PREFIX}/drwebd:${PORTSDIR}/security/drweb \
			${QMAIL_PREFIX}/bin/qmail-queue:${PORTSDIR}/mail/qmail
d19 1
a19 4
ONLY_FOR_ARCHS=	i386
NO_BUILD=	YES
RESTRICTED=	"non-commercial or evaluation use"
NO_CDROM=	${RESTRICTED}
d21 1
a21 9
WRKSRC=		${WRKDIR}/drweb-qmail

QMAIL_PREFIX?=	/var/qmail
QMAIL_NOFILES?=	qnofiles

DRWEB_WRKDIR=	/var/drweb
DRWEB_PREFIX=	${PREFIX}/drweb

PW_CMD?=	/usr/sbin/pw
d23 2
a24 3
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500000
DISTNAME=	drweb-qmail-${PORTVERSION}-F-freebsd5
d26 1
a26 1
DISTNAME=	drweb-qmail-${PORTVERSION}-F-freebsd4
d29 10
a38 8
pre-fetch:
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "You can use QMAIL_PREFIX (default value is /var/qmail) and QMAIL_NOFILES (default value is qnofiles) options."
	@@${ECHO_MSG} ""

BINOWN=		drweb
BINGRP=		qmail
BINMODE=	4711
d41 39
a79 34
	${PW_CMD} usermod drweb -G ${QMAIL_NOFILES}
	${INSTALL_PROGRAM} ${WRKSRC}/opt/drweb/qmail-queue \
		${QMAIL_PREFIX}/bin/qmail-queue.drweb
	${INSTALL_DATA} ${WRKSRC}/etc/drweb/addresses.conf \
		${DRWEB_PREFIX}/addresses.conf-dist
	${INSTALL_DATA} ${WRKSRC}/etc/drweb/drweb_qmail.conf \
		${DRWEB_PREFIX}/drweb_qmail.conf-dist
	${INSTALL_DATA} ${WRKSRC}/etc/drweb/users.conf \
		${DRWEB_PREFIX}/users.conf-dist
	${INSTALL_DATA} ${WRKSRC}/etc/drweb/viruses.conf \
		${DRWEB_PREFIX}/viruses.conf-dist
	if [ ! -f ${DRWEB_PREFIX}/addresses.conf ] ; then \
		${CP} ${DRWEB_PREFIX}/addresses.conf-dist \
		      ${DRWEB_PREFIX}/addresses.conf; \
	fi
	if [ ! -f ${DRWEB_PREFIX}/drweb_qmail.conf ] ; then \
		${CP} ${DRWEB_PREFIX}/drweb_qmail.conf-dist \
		      ${DRWEB_PREFIX}/drweb_qmail.conf; \
	fi
	if [ ! -f ${DRWEB_PREFIX}/users.conf ] ; then \
		${CP} ${DRWEB_PREFIX}/users.conf-dist \
		      ${DRWEB_PREFIX}/users.conf; \
	fi
	if [ ! -f ${DRWEB_PREFIX}/viruses.conf ] ; then \
		${CP} ${DRWEB_PREFIX}/viruses.conf-dist \
		      ${DRWEB_PREFIX}/viruses.conf; \
	fi
	${MKDIR} -m 755 ${DRWEB_WRKDIR}
	${MKDIR} -m 770 ${DRWEB_WRKDIR}/infected ${DRWEB_WRKDIR}/spool
	${CHOWN} drweb:drweb ${DRWEB_WRKDIR}
	${CHOWN} drweb:${QMAIL_NOFILES} ${DRWEB_WRKDIR}/infected \
		${DRWEB_WRKDIR}/spool
	${CP} -R ${WRKSRC}/etc/drweb/templates ${PREFIX}/drweb
	${CP} -R ${WRKSRC}/opt/drweb/doc/qmail ${PREFIX}/drweb/doc
d82 1
d84 4
@


1.4
log
@Update mastersite.

PR:		ports/60537
Submitted by:	den@@FreeBSD.org (maintainer)
@
text
@d14 1
a14 1
MAINTAINER=	den@@FreeBSD.org
@


1.3
log
@- Change maintainer email

Submitted by:	den
@
text
@d12 1
a12 1
MASTER_SITES=	ftp://ftp.drweb.ru/pub/unix/
@


1.2
log
@- Add native binary for FreeBSD 5.x

Submitted by:	maintainer
@
text
@d14 1
a14 1
MAINTAINER=	info@@volginfo.ru
@


1.1
log
@Add drweb-qmail 4.29.12, qmail client for DrWeb antivirus suite.

PR:		ports/54614
Submitted by:	Denis N. Peplin <info@@volginfo.ru>
@
text
@d10 1
a10 1
PORTREVISION=	1
a12 1
DISTNAME=	drweb-qmail-${PORTVERSION}-F-freebsd4
d35 7
d90 1
a90 1
.include <bsd.port.mk>
@

