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

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

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

USE_PYTHON= yes
USE_PYDISTUTILS=    easy_install
PYDISTUTILS_PKGNAME=    pyrad

PORTEXAMPLES=   *

OPTIONS_DEFINE= EXAMPLES

NO_STAGE=   yes
.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} ${EXAMPLESDIR}
    (cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif

.include <bsd.port.mk>