ports/157505: [new port] net-mgmt/zenpack-DeviceSearch: Provides the ability to quickly search for devices in Zenoss

Jason Helfman zenoss at experts-exchange.com
Wed Jun 1 19:20:08 UTC 2011


>Number:         157505
>Category:       ports
>Synopsis:       [new port] net-mgmt/zenpack-DeviceSearch: Provides the ability to quickly search for devices in Zenoss
>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:08 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-DeviceSearch
#	zenpack-DeviceSearch/files
#	zenpack-DeviceSearch/files/pkg-deinstall.in
#	zenpack-DeviceSearch/files/pkg-message.in
#	zenpack-DeviceSearch/distinfo
#	zenpack-DeviceSearch/pkg-descr
#	zenpack-DeviceSearch/pkg-plist
#	zenpack-DeviceSearch/Makefile
#
echo c - zenpack-DeviceSearch
mkdir -p zenpack-DeviceSearch > /dev/null 2>&1
echo c - zenpack-DeviceSearch/files
mkdir -p zenpack-DeviceSearch/files > /dev/null 2>&1
echo x - zenpack-DeviceSearch/files/pkg-deinstall.in
sed 's/^X//' >zenpack-DeviceSearch/files/pkg-deinstall.in << '511b0e511640c5211a6927e9d3b6e66f'
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
511b0e511640c5211a6927e9d3b6e66f
echo x - zenpack-DeviceSearch/files/pkg-message.in
sed 's/^X//' >zenpack-DeviceSearch/files/pkg-message.in << '2bfcf8b078944c79fe48a925a66a91cf'
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
2bfcf8b078944c79fe48a925a66a91cf
echo x - zenpack-DeviceSearch/distinfo
sed 's/^X//' >zenpack-DeviceSearch/distinfo << '307cfb02a9ffe2b52500752e699c3d99'
XSHA256 (DeviceSearch-1.0.0.tar.gz) = 3c2c7f7b2b1f1c8ddb1a8421aba010a4cc3258e4f41634341bc8652431211de2
XSIZE (DeviceSearch-1.0.0.tar.gz) = 3642
307cfb02a9ffe2b52500752e699c3d99
echo x - zenpack-DeviceSearch/pkg-descr
sed 's/^X//' >zenpack-DeviceSearch/pkg-descr << '3d9e2539d751714e4eea7e7ef243f14c'
XThis ZenPack provides the ability to quickly search for Devices by their name 
Xor by their IP address.  Search is triggered by typing 3 or more characters 
Xinto the text box, which then returns the first 10 matches.  The use of the 
Xasterisk wild-card is supported, so you may search for fuzzy matches 
Xdynamically.
X
XWWW: http://community.zenoss.org/docs/DOC-7453
3d9e2539d751714e4eea7e7ef243f14c
echo x - zenpack-DeviceSearch/pkg-plist
sed 's/^X//' >zenpack-DeviceSearch/pkg-plist << '7b864f212aed568d3abddb7156e475d8'
Xzenoss/ZenPack/%%ZPACK%%
X at dirrmtry zenoss/ZenPack
7b864f212aed568d3abddb7156e475d8
echo x - zenpack-DeviceSearch/Makefile
sed 's/^X//' >zenpack-DeviceSearch/Makefile << '88a8a74d81265ce744c7a2d8f6408330'
X# New ports collection makefile for: DeviceSearch
X# Date created:    26 May 2011
X# Whom:      Zenoss <zenoss at experts-exchange.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	DeviceSearch
XPORTVERSION=	1.0.0
XCATEGORIES=	net-mgmt
XMASTER_SITES=	http://www.glenbarber.us/ports/net-mgmt/${PORTDIRNAME}/
X
XMAINTAINER=	zenoss at experts-exchange.com
XCOMMENT=	Provides the ability to quickly search for devices in Zenoss
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-core-
X
XZENHOME=	${LOCALBASE}/zenoss
XZPACKHOME=	${LOCALBASE}/zenoss/ZenPack
XZPACKPREFIX=	ZenPacks.zenoss.
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>
88a8a74d81265ce744c7a2d8f6408330
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list