aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/netdisco-mibs/Makefile
blob: f2fa369d71c76c75ff3476d935e526f6c6bd4c3c (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
# New ports collection makefile for:    netdisco-mibs
# Date created:     2012-02-10
# Whom:         Geoffroy Desvernay <dgeo@centrale-marseille.fr>
#
# $FreeBSD$
#

PORTNAME=   netdisco-mibs
PORTVERSION=    0.9
CATEGORIES= net-mgmt
MASTER_SITES=   SF/netdisco/netdisco-mibs/${PORTVERSION}

MAINTAINER= dgeo@centrale-marseille.fr
COMMENT=    Mibs for use with ports-mgmt/netdisco (and snmp)

DATADIR=    ${PREFIX}/share/${PORTNAME}

NO_BUILD=   yes

MIBDIRS=allied arista aruba asante cabletron cisco cyclades dell enterasys extreme foundry hp juniper mikrotik net-snmp netgear netscreen nortel packetfront rfc

do-install:
    ${MKDIR} ${DATADIR}
    (cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR})

.   for mibdir in ${MIBDIRS}
        (cd ${DATADIR}/${mibdir} && ${GREP} 'DEFINITIONS ::= BEGIN' *.* | ${SED} 's/\(.*\..*\):[[:space:]]*\(.*\) DEFINITIONS.*$$/\2 \1/' > .index)
.   endfor
    (cd ${DATADIR} && ${SH} ./mkindex)

.include <bsd.port.mk>