aboutsummaryrefslogtreecommitdiffstats
path: root/net/pyrad/Makefile
blob: 0957ed7f421db4a36522d6b7cc9047a0d794dbf1 (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
# Created by: Blaz Zupan <blaz@si.FreeBSD.org>
# $FreeBSD$

PORTNAME=   pyrad
PORTVERSION=    2.0
PORTREVISION=   1
CATEGORIES= net python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= steve@energistic.com
COMMENT=    Python implementation of RADIUS client

USES=       python
USE_PYTHON= distutils autoplist

PORTEXAMPLES=   *

OPTIONS_DEFINE= EXAMPLES

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|zip_safe=True|zip_safe=False|' \
        ${WRKSRC}/setup.py

.if ${PORT_OPTIONS:MEXAMPLES}
post-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    (cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.endif

.include <bsd.port.mk>