summaryrefslogtreecommitdiffstats
path: root/mail/py-spf/Makefile
blob: a3bd9b14ba279d91f66aa579c4aa8a5135e13cc6 (plain)
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
42
43
# New ports collection makefile for:	py-spf
# Date created:				26 Dec 2004
# Whom:					Marcus Alves Grando <mnag@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	spf
PORTVERSION=	1.6
CATEGORIES=	mail python
MASTER_SITES=	http://www.wayforward.net/spf/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	py${PORTNAME}-${PORTVERSION}

MAINTAINER=	mnag@FreeBSD.org
COMMENT=	Python implementation of SPF

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/DNS/__init__.py:${PORTSDIR}/dns/py-dns

DIST_SUBDIR=	python
USE_PYTHON=	yes
USE_PYDISTUTILS=yes

DOCSDIR?=	${PREFIX}/share/doc/py-${PORTNAME}

PLIST_FILES=	bin/spf.py \
		%%PYTHON_SITELIBDIR%%/spf.py \
		%%PYTHON_SITELIBDIR%%/spf.pyc \
		%%PYTHON_SITELIBDIR%%/spf.pyo

.if !defined(NOPORTDOCS)
PORTDOCS=	*
.endif

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
	@${CHMOD} 755 ${PYTHONPREFIX_SITELIBDIR}/spf.py
	@${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${PREFIX}/bin

.include <bsd.port.mk>
OpenPOWER on IntegriCloud