e6b6e7e8d8
- Remove DIST_SUBDIR - Do not silence installation message Note that there are two source tarballs (pyspf-2.0.7.tar.gz). One is 46,283 bytes from CHEESESHOP and the other is 46,281 bytes from SF. Since the former has a wrong entry in pyspf.spec, we choose the latter and suspend adding CHEESESHOP to MASTER_SITES. Changes: - Allow for timeouts to be global for all DNS lookups instead of per DNS lookup to allow for MAY processing time limitsin RFC 4408 10.1. See README for details. - Use openspf.net for SPF web site instead of openspf.org - Extend query.get_header to return either Received-SPF (still default) or RFC 5451 Authentication Results headers (needs authres 0.3 or later) - Rework query.parse_header: - Make query.parse_header automatically select Received-DPF or Authentication Results header types and use them to collect SPF results from trusted relays - Add query.parse_header_spf and query.parse_header_ar functions for header type specific processing - Finish Python3 port - works with python2.6/2.7/3.2 and 2to3 is no longer required - will also work with newer py3dns where TXT records are returned as type bytes and not strings - Accounts for new py3dns error classes coming in py3dns 3.0.2 (but fully backward compatible with earlier versions) - check for 7-bit ascii on TXT and SPF records - fix CNAME chain duplicating TXT records
37 lines
962 B
Makefile
37 lines
962 B
Makefile
# New ports collection makefile for: py-spf
|
|
# Date created: 26 Dec 2004
|
|
# Whom: Marcus Alves Grando <mnag@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= spf
|
|
PORTVERSION= 2.0.7
|
|
CATEGORIES= mail python
|
|
MASTER_SITES= SF/pymilter/py${PORTNAME}/py${PORTNAME}-${PORTVERSION}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Python implementation of the RFC 4408 SPF protocol
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dns>=0:${PORTSDIR}/dns/py-dns
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_PKGNAME= py${PORTNAME}
|
|
|
|
PORTDOCS= CHANGELOG README
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '1 s|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/spf.py
|
|
|
|
post-install:
|
|
${CHMOD} ${BINMODE} ${PYTHONPREFIX_SITELIBDIR}/spf.py
|
|
${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${PREFIX}/bin/
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}/
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|