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

PORTNAME=   pyftpdlib
PORTVERSION=    1.5.2
PORTREVISION=   1
CATEGORIES= ftp python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

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

LICENSE=    MIT

USES=       python shebangfix
USE_PYTHON= autoplist distutils
SHEBANG_FILES=  demo/*.py
NO_ARCH=    yes

OPTIONS_DEFINE=     SENDFILE OPENSSL
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:net/py-pysendfile
OPENSSL_RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl

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

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

test: build
    cd ${WRKSRC}/pyftpdlib && ${PYTHON_CMD} ${PYSETUP} test

.include <bsd.port.mk>