mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
f850cf2ff0
Approved by: portmgr (implicit)
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# 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
|
|
|
|
USES= python
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
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>
|