Makefile 1.2 KB
Newer Older
1
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
2
3
4
# $FreeBSD$

PORTNAME=	dnspython
rm's avatar
rm committed
5
PORTVERSION=	1.10.0
6
CATEGORIES=	dns python
miwi's avatar
miwi committed
7
MASTER_SITES=	http://www.dnspython.org/kits/${PORTVERSION}/
8
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

rm's avatar
rm committed
10
MAINTAINER=	rm@FreeBSD.org
11
12
COMMENT=	A DNS toolkit for Python

rm's avatar
rm committed
13
14
15
USE_PYTHON=	-2.7
USE_PYDISTUTILS=yes

16
OPTIONSFILE=	${PORT_DBDIR}/${PORTNAME}/options
rm's avatar
rm committed
17
18
19
20
21
OPTIONS_DEFINE=	PYCRYPTO
PYCRYPTO_DESC=	Enable pycrypto (part of dnssec needs it)

PORTDOCS=	ChangeLog README
EXAMPLE_FILES=	ddns.py e164.py mx.py name.py reverse.py reverse_name.py xfr.py \
miwi's avatar
miwi committed
22
		zonediff.py
23

rm's avatar
rm committed
24
25
.include <bsd.port.options.mk>

26
27
post-install:
# docs
rm's avatar
rm committed
28
.if ${PORT_OPTIONS:MDOCS}
29
30
31
32
33
34
	@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
# examples
rm's avatar
rm committed
35
.if ${PORT_OPTIONS:MEXAMPLES}
36
37
38
39
	@${MKDIR} ${EXAMPLESDIR}
.for file in ${EXAMPLE_FILES}
	@${INSTALL_DATA} ${WRKSRC}/examples/${file} ${EXAMPLESDIR}
.endfor
miwi's avatar
miwi committed
40
.endif
41
42
43
# permission safeness
	@${CHMOD} -R ${SHAREMODE} ${PYTHONPREFIX_SITELIBDIR}/dns/*
	@${CHMOD} -R a+X ${PYTHONPREFIX_SITELIBDIR}/dns/*
44

rm's avatar
rm committed
45
46
.if ${PORT_OPTIONS:MPYCRYPTO}
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}crypto>0:${PORTSDIR}/security/py-pycrypto
miwi's avatar
miwi committed
47
48
.endif

rm's avatar
rm committed
49
.include <bsd.port.mk>