aboutsummaryrefslogtreecommitdiff
path: root/ftp/py-pyftpdlib/Makefile
blob: 135e6a2a3b5d4a216ad2e1bf7a4fbb2136ac4de3 (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
# Created by: Li-Wen Hsu <lwhsu@lwhsu.org>
# $FreeBSD$

PORTNAME=	pyftpdlib
PORTVERSION=	0.7.0
PORTREVISION=	1
CATEGORIES=	ftp python
MASTER_SITES=	GOOGLE_CODE
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	lwhsu@FreeBSD.org
COMMENT=	Python FTP server library

LICENSE=	MIT

USES=		python:2
USE_PYTHON=	distutils

OPTIONS_DEFINE=		SENDFILE OPENSSL EXAMPLES
OPTIONS_DEFAULT=	SENDFILE OPENSSL
SENDFILE_DESC=		Enable sendfile(2) support
OPENSSL_DESC=		Enable FTP over SSL/TLS (RFC4217)

SENDFILE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pysendfile>0:${PORTSDIR}/net/py-pysendfile
OPENSSL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}openssl>0:${PORTSDIR}/security/py-openssl

EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}

post-install:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${CP} -R ${WRKSRC}/demo/ ${STAGEDIR}${EXAMPLESDIR}

test: build
	${TOUCH} ${WRKSRC}/test/__init__.py
	cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test

.include <bsd.port.mk>