aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/py-snmp/Makefile
blob: 4f986c2388d6ebb4d548e1d5eea0a8ca26487a14 (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
# New ports collection makefile for:    py-snmp
# Date created:     26 March 2002
# Whom:         Hye-Shik Chang
#
# $FreeBSD$
#

PORTNAME=   snmp
PORTVERSION=    3.4.4
CATEGORIES= net-mgmt python
MASTER_SITES=   SF/py${PORTNAME}/py${PORTNAME}-devel/${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pysnmp-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    SNMP framework for Python

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

DEPRECATED= use net-mgmt/py-snmp4 instead
EXPIRATION_DATE=    2011-09-30

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

.if !defined(NOPORTDOCS)
post-install:
    ${MKDIR} ${EXAMPLESDIR}
    ${TAR} -C ${WRKSRC}/examples -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
    ${MKDIR} ${DOCSDIR}
    ${TAR} -C ${WRKSRC}/docs -cf - . | ${TAR} -C ${DOCSDIR} -xf -
.endif

.include <bsd.port.mk>