# Created by: Martin Jackson # $FreeBSD$ PORTNAME= snmp4 PORTVERSION= 4.2.3 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= BSD RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1>=0.1.2:${PORTSDIR}/devel/py-asn1 \ ${PYTHON_PKGNAMEPREFIX}pycrypto>=2.4.1:${PORTSDIR}/security/py-pycrypto CONFLICTS= py??-snmp2-[0-9]* # Python3 ready USE_PYTHON= yes USE_PYDISTUTILS= easy_install PYDISTUTILS_PKGNAME= pysnmp EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} PORTDOCS= * BASEDOCS= CHANGES \ README \ TODO NO_STAGE= yes post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for f in ${BASEDOCS} @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} .endfor @${CP} -Rv ${WRKSRC}/docs/* ${DOCSDIR} .endif .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} .for d in examples tools @${CP} -Rv ${WRKSRC}/${d}/* ${EXAMPLESDIR} .endfor .endif .include