ports/157133: [new port] net-mgmt/zenpack-ApacheMonitor: Provides performance monitoring of the Apache HTTP Server
Jeffrey Leung
zenoss at experts-exchange.com
Wed May 18 00:00:19 UTC 2011
>Number: 157133
>Category: ports
>Synopsis: [new port] net-mgmt/zenpack-ApacheMonitor: Provides performance monitoring of the Apache HTTP Server
>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 May 18 00:00:18 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-ApacheMonitor
# zenpack-ApacheMonitor/files
# zenpack-ApacheMonitor/files/pkg-deinstall.in
# zenpack-ApacheMonitor/files/pkg-message.in
# zenpack-ApacheMonitor/distinfo
# zenpack-ApacheMonitor/pkg-descr
# zenpack-ApacheMonitor/pkg-plist
# zenpack-ApacheMonitor/Makefile
#
echo c - zenpack-ApacheMonitor
mkdir -p zenpack-ApacheMonitor > /dev/null 2>&1
echo c - zenpack-ApacheMonitor/files
mkdir -p zenpack-ApacheMonitor/files > /dev/null 2>&1
echo x - zenpack-ApacheMonitor/files/pkg-deinstall.in
sed 's/^X//' >zenpack-ApacheMonitor/files/pkg-deinstall.in << 'f6341d016010a4d0e68432c03b5fbcb6'
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
f6341d016010a4d0e68432c03b5fbcb6
echo x - zenpack-ApacheMonitor/files/pkg-message.in
sed 's/^X//' >zenpack-ApacheMonitor/files/pkg-message.in << '8aab117e015f82bb36f687fa83771ea8'
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
8aab117e015f82bb36f687fa83771ea8
echo x - zenpack-ApacheMonitor/distinfo
sed 's/^X//' >zenpack-ApacheMonitor/distinfo << 'f6c537e0ce2298c2665620a3fbee096e'
XSHA256 (ZenPacks.zenoss.ApacheMonitor?old_path=%2F&format=zip) = 905b9baa0fbbaf1b6316338ed6bbd33c1d2c086f7b742b023a5c2517b3925d8a
XSIZE (ZenPacks.zenoss.ApacheMonitor?old_path=%2F&format=zip) = 17112
f6c537e0ce2298c2665620a3fbee096e
echo x - zenpack-ApacheMonitor/pkg-descr
sed 's/^X//' >zenpack-ApacheMonitor/pkg-descr << 'b56ea1335c5ff9a1d7b80c84a9062b6d'
XThis ZenPack provides performance monitoring of the Apache HTTP Server.
X
XThis ZenPack is documented in the Zenoss Extended Monitoring Guide.
X
XWWW: http://community.zenoss.org/docs/DOC-3442
b56ea1335c5ff9a1d7b80c84a9062b6d
echo x - zenpack-ApacheMonitor/pkg-plist
sed 's/^X//' >zenpack-ApacheMonitor/pkg-plist << '530c3ccb4a1a3e591be4f98839bef425'
Xzenoss/ZenPack/%%ZPACK%%
X at dirrmtry zenoss/ZenPack
530c3ccb4a1a3e591be4f98839bef425
echo x - zenpack-ApacheMonitor/Makefile
sed 's/^X//' >zenpack-ApacheMonitor/Makefile << '32184414bb8b2f9ac5fc5dc23f59aebf'
X# New ports collection makefile for: ApacheMonitor
X# Date created: 12 May 2011
X# Whom: Zenoss <zenoss at experts-exchange.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= ApacheMonitor
XPORTVERSION= 2.1.2
XCATEGORIES= net-mgmt www
XMASTER_SITES= http://dev.zenoss.org/trac/changeset/26203/tags/zenoss-3.1.0/zenpacks/
XDISTFILES= ${ZPACKPREFIX}${PORTNAME}?old_path=%2F\&format=zip
X
XMAINTAINER= zenoss at experts-exchange.com
XCOMMENT= Provides performance monitoring of the Apache HTTP Server
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-core-
XWRKSRC= ${WRKDIR}/tags/zenoss-3.1.0/zenpacks/${ZPACKPREFIX}${PORTNAME}/
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>
32184414bb8b2f9ac5fc5dc23f59aebf
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list