42 lines
957 B
Makefile
42 lines
957 B
Makefile
# $NetBSD: Makefile,v 1.5 2006/02/05 23:10:23 joerg Exp $
|
|
|
|
DISTNAME= cisco-mibs-20050210
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.gw.com/pub/mibs/${DISTNAME}/
|
|
DISTFILES= v1.tar.gz \
|
|
v2.tar.gz
|
|
|
|
#
|
|
# Files are tarred up every day at
|
|
# ftp://ftp.cisco.com/pub/mibs/v1/
|
|
# ftp://ftp.cisco.com/pub/mibs/v2/
|
|
#
|
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
|
COMMENT= Public SNMPv1 and SNMPv2 MIBs from Cisco
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
DIST_SUBDIR= ${PKGBASE}
|
|
EXTRACT_ONLY= # empty
|
|
NO_BUILD= yes
|
|
|
|
USE_TOOLS+= gtar
|
|
|
|
MIBDIR= ${PREFIX}/share/cisco-mibs
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${MIBDIR}
|
|
.for DISTFILE in ${DISTFILES}
|
|
@${ECHO_MSG} -n "Extracting ${DISTFILE} ... "
|
|
@${GTAR} -xz \
|
|
--exclude=v1-readme \
|
|
--exclude=v2-readme \
|
|
-C ${MIBDIR} -f ${DISTDIR}/${DIST_SUBDIR}/${DISTFILE}
|
|
@${ECHO_MSG} "done"
|
|
.endfor
|
|
@${ECHO_MSG} -n "Fixing file ownerships ... "
|
|
@${CHOWN} -R ${BINOWN}:${BINGRP} ${MIBDIR}
|
|
@${ECHO_MSG} "done"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|