From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 20 00:00:29 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D0C91065678 for ; Fri, 20 May 2011 00:00:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 291F98FC18 for ; Fri, 20 May 2011 00:00:28 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4K00S7M008212 for ; Fri, 20 May 2011 00:00:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4K00RsY008211; Fri, 20 May 2011 00:00:27 GMT (envelope-from gnats) Resent-Date: Fri, 20 May 2011 00:00:27 GMT Resent-Message-Id: <201105200000.p4K00RsY008211@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jeffrey Leung Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E58C106564A for ; Thu, 19 May 2011 23:53:25 +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 E653F8FC0C for ; Thu, 19 May 2011 23:53:24 +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 p4JNrOg6007905 for ; Thu, 19 May 2011 23:53:24 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p4JNrOBc007901; Thu, 19 May 2011 23:53:24 GMT (envelope-from nobody) Message-Id: <201105192353.p4JNrOBc007901@red.freebsd.org> Date: Thu, 19 May 2011 23:53:24 GMT From: Jeffrey Leung To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/157194: [new port] net-mgmt/zenpack-NtpMonitor: Monitors the offset between system time and a target NTP servers time X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 00:00:29 -0000 >Number: 157194 >Category: ports >Synopsis: [new port] net-mgmt/zenpack-NtpMonitor: Monitors the offset between system time and a target NTP servers time >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:00:27 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-NtpMonitor # zenpack-NtpMonitor/files # zenpack-NtpMonitor/files/pkg-deinstall.in # zenpack-NtpMonitor/files/pkg-message.in # zenpack-NtpMonitor/pkg-plist # zenpack-NtpMonitor/pkg-descr # zenpack-NtpMonitor/distinfo # zenpack-NtpMonitor/Makefile # echo c - zenpack-NtpMonitor mkdir -p zenpack-NtpMonitor > /dev/null 2>&1 echo c - zenpack-NtpMonitor/files mkdir -p zenpack-NtpMonitor/files > /dev/null 2>&1 echo x - zenpack-NtpMonitor/files/pkg-deinstall.in sed 's/^X//' >zenpack-NtpMonitor/files/pkg-deinstall.in << 'ceebfc16df5e3d4ce6577c76f97a3ab9' 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 ceebfc16df5e3d4ce6577c76f97a3ab9 echo x - zenpack-NtpMonitor/files/pkg-message.in sed 's/^X//' >zenpack-NtpMonitor/files/pkg-message.in << 'a107a9f905cb09bbcfa6a8bb0a469ef6' 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 a107a9f905cb09bbcfa6a8bb0a469ef6 echo x - zenpack-NtpMonitor/pkg-plist sed 's/^X//' >zenpack-NtpMonitor/pkg-plist << '3323c57523cf9d39f225688d0adef5a1' Xzenoss/ZenPack/%%ZPACK%% X@dirrmtry zenoss/ZenPack 3323c57523cf9d39f225688d0adef5a1 echo x - zenpack-NtpMonitor/pkg-descr sed 's/^X//' >zenpack-NtpMonitor/pkg-descr << 'd1a0856f619ee196abdc5097ddfb94c6' XNTPMonitor monitors the offset between system time and a target NTP (Network XTime Server) server's time. X XMore details can be found at provided url. X XWWW: http://community.zenoss.org/docs/DOC-3469 d1a0856f619ee196abdc5097ddfb94c6 echo x - zenpack-NtpMonitor/distinfo sed 's/^X//' >zenpack-NtpMonitor/distinfo << 'b892bc4b5c2c38fd4f927aa63c02a486' XSHA256 (ZenPacks.zenoss.NtpMonitor?old_path=%2F&format=zip) = 4e761243ac6b1b6652465532a36bd4c193a9b9256cf9c7056804cf09675a88ea XSIZE (ZenPacks.zenoss.NtpMonitor?old_path=%2F&format=zip) = 10697 b892bc4b5c2c38fd4f927aa63c02a486 echo x - zenpack-NtpMonitor/Makefile sed 's/^X//' >zenpack-NtpMonitor/Makefile << 'f216e6b18f41d5c6145c652ea3a862fc' X# New ports collection makefile for: NtpMonitor X# Date created: 13 May 2011 X# Whom: Zenoss X# X# $FreeBSD$ X# X XPORTNAME= NtpMonitor XPORTVERSION= 2.0.3 XCATEGORIES= net-mgmt XMASTER_SITES= http://dev.zenoss.org/trac/changeset/26205/tags/zenoss-3.1.0/zenpacks/ XDISTFILES= ${ZPACKPREFIX}NtpMonitor?old_path=%2F\&format=zip X XMAINTAINER= zenoss@experts-exchange.com XCOMMENT= Monitors the offset between system time and a target NTP servers time 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 f216e6b18f41d5c6145c652ea3a862fc exit >Release-Note: >Audit-Trail: >Unformatted: