aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/py-snmp4-mibs/Makefile
blob: 5af9f7fffc29171c3a33820c39423f2da6366731 (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
# Created by: Martin Jackson <mhjacks@swbell.net>
# $FreeBSD$

PORTNAME=   snmp4-mibs
PORTVERSION=    0.1.4
PORTREVISION=   1
CATEGORIES= net-mgmt python
MASTER_SITES=   CHEESESHOP \
        SF/pysnmp/pysnmp-mibs/${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pysnmp-mibs-${PORTVERSION}

MAINTAINER= mhjacks@swbell.net
COMMENT=    Additional python MIB files for pysnmp4 and friends

LICENSE=    BSD3CLAUSE

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}snmp4>=4.2.3:net-mgmt/py-snmp4

USES=       python
USE_PYTHON= distutils autoplist

DOCSDIR=    ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}

PORTDOCS=   CHANGES README

post-patch:
    ${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' ${WRKSRC}/tools/rebuild-pysnmp-mibs

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>