Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 May 2011 23:31:54 GMT
From:      Jeffrey Leung <zenoss@experts-exchange.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/157191: [new port] net-mgmt/zenpack-MACReport: Lists MAC address and the Device and Interface associated info
Message-ID:  <201105192331.p4JNVskj086473@red.freebsd.org>
Resent-Message-ID: <201105192340.p4JNeAlB071057@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         157191
>Category:       ports
>Synopsis:       [new port] net-mgmt/zenpack-MACReport: Lists MAC address and the Device and Interface associated info
>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:   Thu May 19 23:40:10 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@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-MACReport
#	zenpack-MACReport/files
#	zenpack-MACReport/files/pkg-deinstall.in
#	zenpack-MACReport/files/pkg-message.in
#	zenpack-MACReport/pkg-plist
#	zenpack-MACReport/pkg-descr
#	zenpack-MACReport/distinfo
#	zenpack-MACReport/Makefile
#
echo c - zenpack-MACReport
mkdir -p zenpack-MACReport > /dev/null 2>&1
echo c - zenpack-MACReport/files
mkdir -p zenpack-MACReport/files > /dev/null 2>&1
echo x - zenpack-MACReport/files/pkg-deinstall.in
sed 's/^X//' >zenpack-MACReport/files/pkg-deinstall.in << 'c718c1e34a3f20d20d88a77e745c6bfb'
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
c718c1e34a3f20d20d88a77e745c6bfb
echo x - zenpack-MACReport/files/pkg-message.in
sed 's/^X//' >zenpack-MACReport/files/pkg-message.in << '35ec73302e0ff61917b5ca6ba354261d'
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
35ec73302e0ff61917b5ca6ba354261d
echo x - zenpack-MACReport/pkg-plist
sed 's/^X//' >zenpack-MACReport/pkg-plist << 'cecc65d00e8673aed365b3ddae089782'
Xzenoss/ZenPack/%%ZPACK%%
X@dirrmtry zenoss/ZenPack
cecc65d00e8673aed365b3ddae089782
echo x - zenpack-MACReport/pkg-descr
sed 's/^X//' >zenpack-MACReport/pkg-descr << 'e8c965ba25b16b7407527babc42a4c02'
XThis ZenPack consists of a report for listing each MAC address and the Device 
Xand Interface it is associated with. This report makes use of the layer 2 
Xcatalog already present in Zenoss. It only allows sorting by MAC address and is 
Xnot exportable. The author made this decision because the processing time was 
Xtoo great for an installation with more than a few thousand interfaces. The 
Xauthor can make another one available that is exportable and sortable by the 
Xother two fields (device and interface), if anyone decides they would like to 
Xlive through the painful wait time.
X
XMore details can be found at provided url.
X
XWWW: http://community.zenoss.org/docs/DOC-3512
e8c965ba25b16b7407527babc42a4c02
echo x - zenpack-MACReport/distinfo
sed 's/^X//' >zenpack-MACReport/distinfo << 'ffb8afb28f5b444c4071c88728ce4ca1'
XSHA256 (mac-report-1.0.1?old_path=%2F&format=zip) = 085e200d48736f73ff7adaf008930d9d6f533dd6ff262963051d6210522de436
XSIZE (mac-report-1.0.1?old_path=%2F&format=zip) = 5491
ffb8afb28f5b444c4071c88728ce4ca1
echo x - zenpack-MACReport/Makefile
sed 's/^X//' >zenpack-MACReport/Makefile << '45ee9622aca000a086f4392767fe9291'
X# New ports collection makefile for: MACReport
X# Date created:    13 May 2011
X# Whom:      Zenoss <zenoss@experts-exchange.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	MACReport
XPORTVERSION=	1.0.1
XCATEGORIES=	net-mgmt
XMASTER_SITES=	http://zenpacks.zenoss.org/trac-zenpacks/changeset/1002/tags/
XDISTFILES=	mac-report-${PORTVERSION}?old_path=%2F\&format=zip
X
XMAINTAINER=	zenoss@experts-exchange.com
XCOMMENT=	Lists MAC address and the Device and Interface associated info
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}
XUSE_ZIP=	yes
XPKGNAMEPREFIX:=	zenpack-community-
XWRKSRC=	${WRKDIR}/tags/mac-report-${PORTVERSION}
X
XZENHOME=	${LOCALBASE}/zenoss
XZPACKHOME=	${LOCALBASE}/zenoss/ZenPack
XZPACKPREFIX=	ZenPacks.sodonnell.
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>
45ee9622aca000a086f4392767fe9291
exit



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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105192331.p4JNVskj086473>