ports/157196: [new port] net-mgmt/zenpack-DellMon: Provides additional monitoring options for Dell machines
Jeffrey Leung
zenoss at experts-exchange.com
Fri May 20 00:20:08 UTC 2011
>Number: 157196
>Category: ports
>Synopsis: [new port] net-mgmt/zenpack-DellMon: Provides additional monitoring options for Dell machines
>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: Fri May 20 00:20:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jeffrey Leung
>Release: 8.2-RELEASE
>Organization:
Experts Exchange, LLC.
>Environment:
FreeBSD walrus.experts-exchange.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>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:
Patch attached with submission follows:
# 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-DellMon
# zenpack-DellMon/files
# zenpack-DellMon/files/pkg-deinstall.in
# zenpack-DellMon/files/pkg-message.in
# zenpack-DellMon/distinfo
# zenpack-DellMon/pkg-descr
# zenpack-DellMon/pkg-plist
# zenpack-DellMon/Makefile
#
echo c - zenpack-DellMon
mkdir -p zenpack-DellMon > /dev/null 2>&1
echo c - zenpack-DellMon/files
mkdir -p zenpack-DellMon/files > /dev/null 2>&1
echo x - zenpack-DellMon/files/pkg-deinstall.in
sed 's/^X//' >zenpack-DellMon/files/pkg-deinstall.in << '474bf22067692142021bec4bfff1fe48'
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
474bf22067692142021bec4bfff1fe48
echo x - zenpack-DellMon/files/pkg-message.in
sed 's/^X//' >zenpack-DellMon/files/pkg-message.in << 'b0e21ed971af24ae1a8fe36a7b1b24a7'
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
b0e21ed971af24ae1a8fe36a7b1b24a7
echo x - zenpack-DellMon/distinfo
sed 's/^X//' >zenpack-DellMon/distinfo << '6a396d48b3d4a8ee5a0aea1c9a99d8ab'
XSHA256 (epuzanov-ZenPacks.community.DellMon-dellmon-2.4-0-g9697659.tar.gz) = cab497f06939e5e495a7cb4e893afe56d2798f17f4f06399eb6c5c0dff3bfe29
XSIZE (epuzanov-ZenPacks.community.DellMon-dellmon-2.4-0-g9697659.tar.gz) = 57087
6a396d48b3d4a8ee5a0aea1c9a99d8ab
echo x - zenpack-DellMon/pkg-descr
sed 's/^X//' >zenpack-DellMon/pkg-descr << '131bde313df77a154ddc693e9b448ac7'
XThis ZenPack provides additional monitoring options for Dell machines with
Xadditional zCollectorPlugins:
X* community.snmp.DellCPUMap
X* community.snmp.DellDeviceMap
X* community.snmp.DellExpansionCardMap
X* community.snmp.DellFanMap
X* community.snmp.DellHardDiskMap
X* community.snmp.DellLogicalDiskMap
X* community.snmp.DellMemoryModuleMap
X* community.snmp.DellNicMap
X* community.snmp.DellPowerSupplyMap
X* community.snmp.DellTemperatureSensorMap
XReports:
X* /Device Reports/Dell PowerEdge Reports/DRAC Controllers
X* /Device Reports/Dell PowerEdge Reports/Storage Controllers
X* /Device Reports/Dell PowerEdge Reports/Hard Disks
X
XWWW: http://community.zenoss.org/docs/DOC-3410
131bde313df77a154ddc693e9b448ac7
echo x - zenpack-DellMon/pkg-plist
sed 's/^X//' >zenpack-DellMon/pkg-plist << '9ffeaebce8322d05aacecf38aab6a441'
Xzenoss/ZenPack/%%ZPACK%%
X at dirrmtry zenoss/ZenPack
9ffeaebce8322d05aacecf38aab6a441
echo x - zenpack-DellMon/Makefile
sed 's/^X//' >zenpack-DellMon/Makefile << '7104e4c8203a8b678ccfd0ee3eb7794b'
X# New ports collection makefile for: DellMon
X# Date created: 13 May 2011
X# Whom: Zenoss <zenoss at experts-exchange.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= DellMon
XPORTVERSION= 2.4
XCATEGORIES= net-mgmt
XMASTER_SITES= https://github.com/epuzanov/${ZPACKPREFIX}${PORTNAME}/tarball/dellmon-2.4/
XDISTNAME= epuzanov-${ZPACKPREFIX}${PORTNAME}-dellmon-2.4-0-g9697659
X
XMAINTAINER= zenoss at experts-exchange.com
XCOMMENT= Provides additional monitoring options for Dell machines
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-
XWRKSRC= ${WRKDIR}/epuzanov-${ZPACKPREFIX}${PORTNAME}-a4ae347
X
XZENHOME= ${LOCALBASE}/zenoss
XZPACKHOME= ${LOCALBASE}/zenoss/ZenPack
XZPACKPREFIX= ZenPacks.community.
XZPACK= ${ZPACKPREFIX}${PORTNAME}-2.4-${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>
7104e4c8203a8b678ccfd0ee3eb7794b
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list