aboutsummaryrefslogtreecommitdiffstats
path: root/mail/swaks/Makefile
blob: 2f75cafffa307e38bd34f0ca5b94e2f1c6557532 (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
# New ports collection makefile for:    swaks
# Date created:             29 Sep 2004
# Whom:                 Oliver Eikemeier
#
# $FreeBSD$
#

PORTNAME=   swaks
PORTVERSION=    20120320.0
CATEGORIES= mail
MASTER_SITES=   http://jetmore.org/john/code/swaks/

MAINTAINER= beat@FreeBSD.org
COMMENT=    Swiss Army Knife SMTP transaction tester

PLIST_FILES=    bin/${PORTNAME}

OPTIONS=    PERL_NET_DNS "Add MX lookup support" off \
        PERL_NET_SSLEAY "Add TLS support" off \
        PERL_AUTHEN_NTLM "Add support for AUTH NTLM" off

USE_PERL5_RUN=  yes

.include <bsd.port.pre.mk>

.if defined(WITH_PERL_NET_DNS)
RUN_DEPENDS+=   ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS
.endif

.if defined(WITH_PERL_NET_SSLEAY)
RUN_DEPENDS+=   ${SITE_PERL}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay
.endif

.if defined(WITH_PERL_AUTHEN_NTLM)
RUN_DEPENDS+=   ${SITE_PERL}/${PERL_ARCH}/Authen/NTLM.pm:${PORTSDIR}/security/p5-Authen-NTLM
.endif

do-build:
    @${SED} -e '1s|/usr/bin/perl|${PERL}|' \
        ${WRKSRC}/${PORTNAME} > ${WRKSRC}/${PORTNAME}.pl

do-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>