aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/py-snmp4/Makefile
blob: f1741d3dd8ed9d34dfd51a5b59aeba755de1afa0 (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
40
41
# Created by: Martin Jackson <mhjacks@swbell.net>
# $FreeBSD$

PORTNAME=   snmp4
PORTVERSION=    4.2.5
CATEGORIES= net-mgmt python
MASTER_SITES=   CHEESESHOP \
        SF/pysnmp/pysnmp/${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pysnmp-${PORTVERSION}

MAINTAINER= mhjacks@swbell.net
COMMENT=    SNMP framework for Python

LICENSE=    BSD2CLAUSE

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}asn1>=0.1.2:${PORTSDIR}/devel/py-asn1 \
        ${PYTHON_PKGNAMEPREFIX}pycrypto>=2.4.1:${PORTSDIR}/security/py-pycrypto

USE_PYTHON=     yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_AUTOPLIST=  yes

EXAMPLESDIR=    ${PREFIX}/share/examples/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
DOCSDIR=    ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}

PORTDOCS=   *
PORTEXAMPLES=   *

BASEDOCS=   CHANGES README TODO

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${BASEDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
    (cd ${WRKSRC}/tools && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>