ports/157504: [new port] net-mgmt/zenpack-NetApp: Provides monitoring of Network Appliance devices
Jason Helfman
zenoss at experts-exchange.com
Wed Jun 1 19:20:08 UTC 2011
>Number: 157504
>Category: ports
>Synopsis: [new port] net-mgmt/zenpack-NetApp: Provides monitoring of Network Appliance devices
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 01 19:20:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jason Helfman
>Release: FreeBSD 8.2-RELEASE i386
>Organization:
Experts Exchange, LLC.
>Environment:
System: FreeBSD eggman.experts-exchange.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Zenpacks extend the capabilities of Zenoss. This port builds cleanly in Tinderbox.
This port depends on the following PR:
ports/156655
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# zenpack-NetApp
# zenpack-NetApp/files
# zenpack-NetApp/files/pkg-deinstall.in
# zenpack-NetApp/files/pkg-message.in
# zenpack-NetApp/distinfo
# zenpack-NetApp/pkg-descr
# zenpack-NetApp/pkg-plist
# zenpack-NetApp/Makefile
#
echo c - zenpack-NetApp
mkdir -p zenpack-NetApp > /dev/null 2>&1
echo c - zenpack-NetApp/files
mkdir -p zenpack-NetApp/files > /dev/null 2>&1
echo x - zenpack-NetApp/files/pkg-deinstall.in
sed 's/^X//' >zenpack-NetApp/files/pkg-deinstall.in << 'dc0f0e003981a02e5e51b08feb46be6f'
X#!/bin/sh
X
Xif [ "$2" = "DEINSTALL" ]; then
X echo "To de-activate this Zenpack, run the following command as the zenoss user:
X
X%%ZENHOME%%/bin/zenpack --remove %%ZPACKPREFIX%%%%PORTNAME%%
X
XIMPORTANT: De-activating a Zenpack will also remove all its associated data"
X
Xfi
dc0f0e003981a02e5e51b08feb46be6f
echo x - zenpack-NetApp/files/pkg-message.in
sed 's/^X//' >zenpack-NetApp/files/pkg-message.in << 'e387c46119fd6a4a311b0bc5263685fb'
X
XBefore activation of this Zenpack, you will need to create a Sub-Folder named
X"Storage" under MIBs in the web-interface. (Advanced-> MIBs> Sub-Folder)
X
XTo activate this Zenpack, run the following commands as the zenoss user:
X
X%%ZENHOME%%/bin/zenpack --install %%ZPACKHOME%%/%%ZPACK%%
X%%ZENHOME%%/bin/zopectl restart
e387c46119fd6a4a311b0bc5263685fb
echo x - zenpack-NetApp/distinfo
sed 's/^X//' >zenpack-NetApp/distinfo << '350bb8f690c9d313de8533d376cf1613'
XSHA256 (NetApp-1.19.tar.gz) = 7aec52efd4fd49100ac078357cfe9e41bd09b4b13cdd6661ce54bdbabb8d0aa0
XSIZE (NetApp-1.19.tar.gz) = 73077
350bb8f690c9d313de8533d376cf1613
echo x - zenpack-NetApp/pkg-descr
sed 's/^X//' >zenpack-NetApp/pkg-descr << '959879542fe392dec62ef50d51652a62'
XThe Zenpack monitors Netapp devices under /Storage/NetApp and collects
Xvolume-related information, including NFSv3 statistics.
X
XWWW: http://community.zenoss.org/docs/DOC-3451
959879542fe392dec62ef50d51652a62
echo x - zenpack-NetApp/pkg-plist
sed 's/^X//' >zenpack-NetApp/pkg-plist << 'c585d60bb67429161d2b38d7a1a03f7d'
Xzenoss/ZenPack/%%ZPACK%%
X at dirrmtry zenoss/ZenPack
c585d60bb67429161d2b38d7a1a03f7d
echo x - zenpack-NetApp/Makefile
sed 's/^X//' >zenpack-NetApp/Makefile << 'bd10c491b941d9792aafda3f3b14cda7'
X# New ports collection makefile for: NetApp-1.19
X# Date created: 26 May 2011
X# Whom: Zenoss <zenoss at experts-exchange.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= NetApp
XPORTVERSION= 1.19
XCATEGORIES= net-mgmt
XMASTER_SITES= http://www.glenbarber.us/ports/net-mgmt/${PORTDIRNAME}/
X
XMAINTAINER= zenoss at experts-exchange.com
XCOMMENT= Provides monitoring of Network Appliance devices
X
XBUILD_DEPENDS= zenoss>=3.1.0:${PORTSDIR}/net-mgmt/zenoss
XRUN_DEPENDS= zenoss>=3.1.0:${PORTSDIR}/net-mgmt/zenoss \
X
XFETCH_ARGS= -o - > ${DISTDIR}/${DISTFILES}
XPKGNAMEPREFIX:= zenpack-community-
X
XZENHOME= ${LOCALBASE}/zenoss
XZPACKHOME= ${LOCALBASE}/zenoss/ZenPack
XZPACKPREFIX= ZenPacks.community.
XZPACK= ${ZPACKPREFIX}${PORTNAME}-${PORTVERSION}-${PYTHON_VERSION:S/thon//}.egg
XPLIST_SUB= ZPACK=${ZPACK}
XSUB_LIST= ZENHOME=${ZENHOME} \
X ZPACK=${ZPACK} \
X ZPACKHOME=${ZPACKHOME} \
X ZPACKPREFIX=${ZPACKPREFIX} \
X PORTNAME=${PORTNAME}
XSUB_FILES= pkg-message pkg-deinstall
X
XSHAREOWN= zenoss
XSHAREGRP= zenoss
X
X#zenoss provides its own python 2.6 - we build against that for application compatibility
XPYTHON_VERSION= python2.6
XPYTHON_CMD= ${ZENHOME}/bin/python
XPYSETUP= ./setup.py
X
XMAKE_ENV+= ZENHOME=${ZENHOME} \
X INSTANCE_HOME=${ZENHOME} \
X PYTHONPATH=${ZENHOME}/lib/python \
X PATH=${ZENHOME}/bin:${PATH}
X
X.if !defined(UID)
XUID!= /usr/bin/id -u
X.endif
X
Xdo-build:
X.if ${UID} != 0 && !defined(INSTALL_AS_USER)
X @${ECHO_MSG} "===> Switching to root credentials for '${.TARGET}' target"
X @cd ${.CURDIR} && \
X ${SU_CMD} "${MAKE} ${__softMAKEFLAGS} ${.TARGET}"
X @${ECHO_MSG} "===> Returning to user credentials"
X.else
X cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} bdist_egg
X.endif
X
Xdo-install:
X ${MKDIR} ${ZPACKHOME}
X ${INSTALL_DATA} ${WRKSRC}/dist/${ZPACK} ${ZPACKHOME}
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
bd10c491b941d9792aafda3f3b14cda7
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list