aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/py-snmp4/Makefile
blob: 873dc4312b16d1ca309182d13ee3a98f56a0ba41 (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
42
43
44
45
46
47
48
49
# New ports collection makefile for:    py-pysnmp4
# Date created:     Sat Apr  8 21:51:59 CDT 2006
# Whom:         Martin Jackson <mhjacks@swbell.net>
#
# $FreeBSD$
#

PORTNAME=   snmp4
PORTVERSION=    4.1.10a
CATEGORIES= net-mgmt python
MASTER_SITES=   SF/pysnmp
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pysnmp-${PORTVERSION}

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

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/pyasn1/__init__.py:${PORTSDIR}/devel/py-asn1 \
        ${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pycrypto

CONFLICTS=  py??-snmp-[0-9]* py??-snmp2-[0-9]*

USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME=    pysnmp
EXAMPLESDIR=    ${PREFIX}/share/examples/py-${PORTNAME}
DOCSDIR=    ${PREFIX}/share/doc/py-${PORTNAME}

PORTDOCS=   *

BASEDOCS=   CHANGES \
        LICENSE \
        README \
        TODO

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for f in ${BASEDOCS}
    @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
    @${CP} -Rv ${WRKSRC}/docs/* ${DOCSDIR}
.endif
    @${MKDIR} ${EXAMPLESDIR}
.for d in examples tools
    @${CP} -Rv ${WRKSRC}/${d}/* ${EXAMPLESDIR}
.endfor

.include <bsd.port.mk>