aboutsummaryrefslogtreecommitdiffstats
path: root/mail/py-spf/Makefile
blob: 03687ad241df5c39c8ab0c395bc6c04f5cd42f1d (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
# 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

OPTIONS_DEFINE= DOCS

USE_PYTHON= yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_PKGNAME=    py${PORTNAME}

PORTDOCS=   CHANGELOG README

.include <bsd.port.options.mk>

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 ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}/
    cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif

.include <bsd.port.mk>