From nobody@FreeBSD.org  Thu May 19 23:31:54 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E1587106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 May 2011 23:31:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id CFBCE8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 May 2011 23:31:54 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4JNVswB086474
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 May 2011 23:31:54 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p4JNVskj086473;
	Thu, 19 May 2011 23:31:54 GMT
	(envelope-from nobody)
Message-Id: <201105192331.p4JNVskj086473@red.freebsd.org>
Date: Thu, 19 May 2011 23:31:54 GMT
From: Jeffrey Leung <zenoss@experts-exchange.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [new port] net-mgmt/zenpack-MACReport: Lists MAC address and the Device and Interface associated info
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:    crees
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 19 23:40:10 UTC 2011
>Closed-Date:    Sun Oct 30 16:44:33 UTC 2011
>Last-Modified:  Sun Oct 30 16:50:09 UTC 2011
>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:

From: Anthony Garcia <agarcia@experts-exchange.com>
To: bug-followup@FreeBSD.org, zenoss@experts-exchange.com
Cc:  
Subject: Re: ports/157191: [new port] net-mgmt/zenpack-MACReport: Lists MAC
 address and the Device and Interface associated info
Date: Mon, 12 Sep 2011 16:16:37 -0700

 This is a multi-part message in MIME format.
 --------------070305080205020905090406
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Updated port Makefile to use new bsd.zenoss.mk file.
 
 -- 
 ~Anthony Garcia
 
 
 --------------070305080205020905090406
 Content-Type: text/plain;
  name="zenpack-MACReport.shar"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="zenpack-MACReport.shar"
 
 # 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/distinfo
 #	zenpack-MACReport/pkg-descr
 #	zenpack-MACReport/pkg-plist
 #	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/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/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/pkg-plist
 sed 's/^X//' >zenpack-MACReport/pkg-plist << 'cecc65d00e8673aed365b3ddae089782'
 Xzenoss/ZenPack/%%ZPACK%%
 X@dirrmtry zenoss/ZenPack
 cecc65d00e8673aed365b3ddae089782
 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
 XUSE_ZIP=	yes
 XZPACKGROUP=	community
 XWRKSRC=	${WRKDIR}/tags/mac-report-${PORTVERSION}
 X
 XZPACKPREFIX=	ZenPacks.sodonnell.
 X
 X.include <bsd.port.pre.mk>
 X.include "${PORTSDIR}/Mk/bsd.zenoss.mk"
 X.include <bsd.port.post.mk>
 45ee9622aca000a086f4392767fe9291
 exit
 
 
 --------------070305080205020905090406--
Responsible-Changed-From-To: freebsd-ports-bugs->crees 
Responsible-Changed-By: crees 
Responsible-Changed-When: Sat Oct 29 19:33:26 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157191 
State-Changed-From-To: open->closed 
State-Changed-By: crees 
State-Changed-When: Sun Oct 30 16:44:32 UTC 2011 
State-Changed-Why:  
New port added. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157191 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/157191: commit references a PR
Date: Sun, 30 Oct 2011 16:41:59 +0000 (UTC)

 crees       2011-10-30 16:41:50 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-mgmt             Makefile 
   Added files:
     net-mgmt/zenpack-macreport Makefile distinfo pkg-descr 
                                pkg-plist 
     net-mgmt/zenpack-macreport/files pkg-deinstall.in 
                                      pkg-message.in 
   Log:
   This ZenPack consists of a report for listing each MAC address and the Device
   and Interface it is associated with. This report makes use of the layer 2
   catalog already present in Zenoss. It only allows sorting by MAC address and is
   not exportable. The author made this decision because the processing time was
   too great for an installation with more than a few thousand interfaces. The
   author can make another one available that is exportable and sortable by the
   other two fields (device and interface), if anyone decides they would like to
   live through the painful wait time.
   
   More details can be found at provided url.
   
   WWW: http://community.zenoss.org/docs/DOC-3512
   
   PR:             ports/157191
   Submitted by:   Zenoss <zenoss@experts-exchange.com>
   
   Revision  Changes    Path
   1.267     +1 -0      ports/net-mgmt/Makefile
   1.1       +25 -0     ports/net-mgmt/zenpack-macreport/Makefile (new)
   1.1       +2 -0      ports/net-mgmt/zenpack-macreport/distinfo (new)
   1.1       +10 -0     ports/net-mgmt/zenpack-macreport/files/pkg-deinstall.in (new)
   1.1       +5 -0      ports/net-mgmt/zenpack-macreport/files/pkg-message.in (new)
   1.1       +12 -0     ports/net-mgmt/zenpack-macreport/pkg-descr (new)
   1.1       +2 -0      ports/net-mgmt/zenpack-macreport/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
