1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/net-mgmt/py-snmp4/Makefile
Ruslan Makhmatkhanov 3d705775b9 - update to 4.2.1
- fix SF mirror
- update dependencies versions
- update CONFLICTS

PR:             162667
Submitted by:   rm (myself)
Approved by:    Martin Jackson <mhjacks@swbell.net> (maintainer), novel (mentor)
Feature safe:   yes
2011-11-19 06:52:16 +00:00

56 lines
1.2 KiB
Makefile

# 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.2.1
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
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1>=0.0.14:${PORTSDIR}/devel/py-asn1 \
${PYTHON_PKGNAMEPREFIX}pycrypto>=2.3:${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
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 <bsd.port.mk>