diff options
Diffstat (limited to 'mail/p5-Mail-SPF/Makefile')
-rw-r--r-- | mail/p5-Mail-SPF/Makefile | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/mail/p5-Mail-SPF/Makefile b/mail/p5-Mail-SPF/Makefile index c648dbf3064e..0f0a3d5699ef 100644 --- a/mail/p5-Mail-SPF/Makefile +++ b/mail/p5-Mail-SPF/Makefile @@ -2,30 +2,35 @@ # $FreeBSD$ PORTNAME= Mail-SPF -PORTVERSION= 2.007 -PORTREVISION= 3 +PORTVERSION= 2.9.0 CATEGORIES= mail perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- DISTNAME= ${PORTNAME}-v${PORTVERSION} -MAINTAINER= ports@FreeBSD.org -COMMENT= Reference implementation of the RFC 4408 SPF protocol +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Object-oriented implementation of Sender Policy Framework -RUN_DEPENDS= p5-Net-DNS-Resolver-Programmable>=0.002.1:${PORTSDIR}/dns/p5-Net-DNS-Resolver-Programmable \ - p5-Net-DNS>=0.58:${PORTSDIR}/dns/p5-Net-DNS \ - p5-version>0:${PORTSDIR}/devel/p5-version \ - p5-Error>0:${PORTSDIR}/lang/p5-Error \ +LICENSE= BSD + +BUILD_DEPENDS= p5-Error>=0:${PORTSDIR}/lang/p5-Error \ + p5-Net-DNS>=0.62:${PORTSDIR}/dns/p5-Net-DNS \ + p5-Net-DNS-Resolver-Programmable>=0.003:${PORTSDIR}/dns/p5-Net-DNS-Resolver-Programmable \ p5-NetAddr-IP>=4:${PORTSDIR}/net-mgmt/p5-NetAddr-IP \ p5-URI>=1.13:${PORTSDIR}/net/p5-URI -BUILD_DEPENDS:= ${RUN_DEPENDS} +RUN_DEPENDS:= ${BUILD_DEPENDS} +TEST_DEPENDS= p5-Test-Pod>=1:${PORTSDIR}/devel/p5-Test-Pod -CONFLICTS= p5-Mail-SPF-Query-[0-9]* +CONFLICTS_INSTALL= p5-Mail-SPF-Query-[0-9]* + +OPTIONS_DEFINE= DOCS -USES= perl5 -USE_PERL5= modbuild CONFIGURE_ARGS= --install_path sbin=${PREFIX}/sbin +NO_STAGE= yes +USE_PERL5= modbuild +USES= perl5 +DOCSDIR= ${PREFIX}/share/doc/p5-Mail-SPF MAN1= spfquery.pl.1 MAN3= Mail::SPF.3 Mail::SPF::Mech::PTR.3 Mail::SPF::Mech.3 \ Mail::SPF::SenderIPAddrMech.3 Mail::SPF::MacroString.3 \ @@ -37,22 +42,19 @@ MAN3= Mail::SPF.3 Mail::SPF::Mech::PTR.3 Mail::SPF::Mech.3 \ Mail::SPF::v2::Record.3 Mail::SPF::Mod::Redirect.3 \ Mail::SPF::Base.3 Mail::SPF::Mech::All.3 Mail::SPF::Term.3 \ Mail::SPF::v1::Record.3 Mail::SPF::Mech::Exists.3 +PORTDOCS= CHANGES README TODO -OPTIONS_DEFINE= DOCS - -NO_STAGE= yes -.include <bsd.port.pre.mk> - -DOCSDIR= ${PREFIX}/share/doc/p5-Mail-SPF -DOCS= CHANGES INSTALL LICENSE README TODO +.include <bsd.port.options.mk> -post-extract: - ${MV} ${WRKSRC}/bin/spfquery ${WRKSRC}/bin/spfquery.pl +post-patch: + @${MV} ${WRKSRC}/sbin/spfd ${WRKSRC}/sbin/spfd.pl + @${MV} ${WRKSRC}/bin/spfquery ${WRKSRC}/bin/spfquery.pl + @${REINPLACE_CMD} -e 's|spfd|&.pl|; s|spfquery|&.pl|' ${WRKSRC}/Build.PL ${WRKSRC}/MANIFEST ${WRKSRC}/README post-install: .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ + ${MKDIR} ${DOCSDIR}/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |