aboutsummaryrefslogtreecommitdiff
path: root/mail/kavmilter/Makefile
blob: bdcbadc946a32719dca8623b2f91d3850f24f473 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# New ports collection makefile for:   kavmilter
# Date created:                12 Jun 2003
# Whom:                        Rashid N. Achilov <shelton@granch.ru>
#
# $FreeBSD$
#

PORTNAME=	kavmilter
PORTVERSION=	0.91.3
CATEGORIES=	mail
MASTER_SITES=	ftp://granch.ru/pub/kavmilter/

MAINTAINER=	shelton@granch.ru
COMMENT=	Sendmail antivirus filter, based on Kaspersky Antivirus and Milter API

LIB_DEPENDS=	gnugetopt:${PORTSDIR}/devel/libgnugetopt

.if !exists(/usr/lib/libmilter.a)
IGNORE=		requires Sendmail 8.12; upgrade the base system
.endif

USE_BZIP2=	yes
USE_GETOPT_LONG=yes
USE_REINPLACE=	yes

MAN5=		kavmilter.5
MAN8=		kavmilter.8

MAKE_ENV=	PTHREAD_LIBS=${PTHREAD_LIBS}

post-patch:
	@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/${MAKEFILE}

post-install:
	${STRIP_CMD} ${PREFIX}/libexec/kavmilter

	${INSTALL_SCRIPT} -m 751 ${WRKSRC}/kavmilter.sh.sample ${PREFIX}/etc/rc.d/kavmilter.sh.sample
	${INSTALL_SCRIPT} -m 644 ${WRKSRC}/kavmilter.conf ${PREFIX}/etc/kavmilter.conf.sample

.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in README CHANGES
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>