freebsd-ports/mail/py-spf/Makefile
Sunpoet Po-Chuan Hsieh 0e32df5cc5 - Fix shebang
- Support STAGEDIR
- Update WWW: use https:// instead of http://
2013-11-20 03:24:31 +00:00

40 lines
1,000 B
Makefile

# Created by: Marcus Alves Grando <mnag@FreeBSD.org>
# $FreeBSD$
PORTNAME= spf
PORTVERSION= 2.0.8
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
LICENSE= PSFL
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dns>=0:${PORTSDIR}/dns/py-dns
OPTIONS_DEFINE= DOCS
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME= py${PORTNAME}
USES= shebangfix
PORTDOCS= CHANGELOG README
SHEBANG_FILES= spf.py
.include <bsd.port.options.mk>
post-install:
${CHMOD} ${BINMODE} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/spf.py
${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${STAGEDIR}${PREFIX}/bin/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>