aboutsummaryrefslogtreecommitdiffstats
path: root/mail/p5-Mail-RBL/Makefile
blob: 092fffb1ab7509ee8ece4f4bf5308e606f13c0a0 (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
# New ports collection makefile for:    p5-Mail-RBL
# Date created:             July 24th 2002
# Whom:                     Erwin Lansing <erwin@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   Mail-RBL
PORTVERSION=    1.02
CATEGORIES= mail perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Mail
PKGNAMEPREFIX=  p5-

MAINTAINER= erwin@FreeBSD.org
COMMENT=    Perl extension to access RBL-style host verification services

BUILD_DEPENDS=  ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \
        ${SITE_PERL}/NetAddr/IP.pm:${PORTSDIR}/net-mgmt/p5-NetAddr-IP \
        ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
RUN_DEPENDS=    ${BUILD_DEPENDS}

PERL_CONFIGURE= yes

MAN3=       Mail::RBL.3

FILES=      Makefile.PL RBL.pm

pre-patch:
.for i in ${FILES}
    @${PERL} -pi -e 's/\r//' ${WRKSRC}/${i}
.endfor
    @${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
        -e '$$_="" if /require 5/;' \
        -e '$$_="" if /use warnings/;' \
        ${WRKSRC}/RBL.pm

.include <bsd.port.mk>