From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Nov 26 09:40:04 2009 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 BED1B1065676 for ; Thu, 26 Nov 2009 09:40:04 +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 82FCE8FC15 for ; Thu, 26 Nov 2009 09:40:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nAQ9e4kT081965 for ; Thu, 26 Nov 2009 09:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nAQ9e40i081964; Thu, 26 Nov 2009 09:40:04 GMT (envelope-from gnats) Resent-Date: Thu, 26 Nov 2009 09:40:04 GMT Resent-Message-Id: <200911260940.nAQ9e40i081964@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, Andrey Lykhin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80A791065670 for ; Thu, 26 Nov 2009 09:31:26 +0000 (UTC) (envelope-from lian@kras.ru) Received: from ispman.iskranet.ru (ispman.iskranet.ru [62.213.33.10]) by mx1.freebsd.org (Postfix) with ESMTP id B235D8FC1F for ; Thu, 26 Nov 2009 09:31:25 +0000 (UTC) Received: by ispman.iskranet.ru (Postfix, from userid 106) id 74F328DFC61; Thu, 26 Nov 2009 16:12:03 +0700 (KRAT) Received: from [10.20.1.250] (unknown [10.20.1.250]) by ispman.iskranet.ru (Postfix) with ESMTP id 69EEB8DFC32 for ; Thu, 26 Nov 2009 16:12:03 +0700 (KRAT) Message-Id: <843892269.20091126161042@kras.ru> Date: Thu, 26 Nov 2009 16:10:42 +0700 From: Andrey Lykhin To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/140891: Update port: net-mgmt/zabbix-agent X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrey Lykhin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2009 09:40:04 -0000 >Number: 140891 >Category: ports >Synopsis: Update port: net-mgmt/zabbix-agent >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Nov 26 09:40:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Andrey Lykhin lian@kras.ru >Release: FreeBSD 6.4-RELEASE-p3 i386 >Organization: Andrey Lykhin lian@kras.ru >Environment: System: FreeBSD mons.iskranet.ru 6.4-RELEASE-p3 FreeBSD 6.4-RELEASE-p3 #4: Fri Feb 27 12:17:03 KRAT 2009 lian@kras.ru:/usr/obj/usr/src/sys/MYKERNEL i386 >Description: Update port: net-mgmt/zabbix-agent to 1.6.7 >How-To-Repeat: >Fix: --- begins here --- # 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: # # /usr/ports/net-mgmt/zabbix-agent # /usr/ports/net-mgmt/zabbix-agent/Makefile # /usr/ports/net-mgmt/zabbix-agent/distinfo # /usr/ports/net-mgmt/zabbix-agent/pkg-descr # /usr/ports/net-mgmt/zabbix-agent/pkg-install # /usr/ports/net-mgmt/zabbix-agent/files # /usr/ports/net-mgmt/zabbix-agent/files/patch-configure # /usr/ports/net-mgmt/zabbix-agent/files/zabbix_agentd.in # echo c - /usr/ports/net-mgmt/zabbix-agent mkdir -p /usr/ports/net-mgmt/zabbix-agent > /dev/null 2>&1 echo x - /usr/ports/net-mgmt/zabbix-agent/Makefile sed 's/^X//' >/usr/ports/net-mgmt/zabbix-agent/Makefile << 'dc7abbd070ee684c3c4acc89b76245db' X# Ports collection makefile for: zabbix-agent X# Date created: Jun 18 2003 X# Whom: Sergey Akifyev X# X# $FreeBSD$ X# X XPORTNAME= zabbix XPORTVERSION= 1.6.7 XPORTEPOCH= 2 XCATEGORIES= net-mgmt XMASTER_SITES= SF/${PORTNAME}/ZABBIX%20Latest%20Stable/${PORTVERSION} XPKGNAMESUFFIX= -agent X XMAINTAINER= lian@kras.ru XCOMMENT= Application and network monitoring solution X XUSE_GMAKE= yes XUSE_RC_SUBR= zabbix_agentd XGNU_CONFIGURE= yes XCONFIGURE_ARGS= --enable-agent --disable-server XMAKE_ARGS= ARCH=freebsd X.ifndef WITHOUT_IPV6 XCONFIGURE_ARGS+=--enable-ipv6 X.endif X XZABBIX_BIN= agent agentd get sender XZABBIX_CFG= agent agentd XZABBIX_BINFILES=${ZABBIX_BIN:S|^|zabbix_|:C|.+|&/&|:S|agentd/|agent/|} XZABBIX_CFGFILES=${ZABBIX_CFG:S|^|zabbix_|:S|$|.conf|} XPLIST_FILES= ${ZABBIX_BIN:S|^|bin/zabbix_|} \ X ${ZABBIX_CFG:S|^|%%ETCDIR%%/zabbix_|:S|$|.conf.sample|} X Xpost-patch: X @${FIND} ${WRKSRC}/src/ -type f|${XARGS} \ X ${REINPLACE_CMD} -e 's|/etc/zabbix|${ETCDIR}|;s|/usr/sbin|${LOCALBASE}/sbin|' X Xdo-install: X @${ECHO_CMD} '@unexec ${RMDIR} %D/${ETCDIR_REL} 2>/dev/null || true' >> ${TMPPLIST} X @${INSTALL_PROGRAM} ${ZABBIX_BINFILES:S,^,${WRKSRC}/src/,} ${PREFIX}/bin/ X @${INSTALL} -d ${ETCDIR}/ X @for i in ${ZABBIX_CFGFILES};do\ X ${INSTALL_DATA} ${WRKSRC}/misc/conf/$$i ${ETCDIR}/$$i.sample;done X @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL X X.include dc7abbd070ee684c3c4acc89b76245db echo x - /usr/ports/net-mgmt/zabbix-agent/distinfo sed 's/^X//' >/usr/ports/net-mgmt/zabbix-agent/distinfo << 'badb1d673fb1a34b6f5d256ff387a262' XMD5 (zabbix-1.6.7.tar.gz) = 1426fdd40390031e54e14567b1a10876 XSHA256 (zabbix-1.6.7.tar.gz) = 7702b5c812caac39d0ff7b8d841aa1accc2ae2bc59f8229b3a5cf23b31197a3d XSIZE (zabbix-1.6.7.tar.gz) = 8396320 badb1d673fb1a34b6f5d256ff387a262 echo x - /usr/ports/net-mgmt/zabbix-agent/pkg-descr sed 's/^X//' >/usr/ports/net-mgmt/zabbix-agent/pkg-descr << '0dc73bbc243bff136b17e5f4e120b58e' XZabbix is software for application and network monitoring. XZabbix supports both polling and trapping techniques to Xcollect data from monitored hosts. Flexible notification Xmechanism allows easy and quckly configure email notifications Xfor pre-defined events. Zabbix is freely available under the Xterms of the GNU General Public License (GPL). X XWWW: http://www.zabbix.com/ 0dc73bbc243bff136b17e5f4e120b58e echo x - /usr/ports/net-mgmt/zabbix-agent/pkg-install sed 's/^X//' >/usr/ports/net-mgmt/zabbix-agent/pkg-install << 'c740f6f2c9187c0d4f7a785b81669bc9' X#!/bin/sh X# Script was taken from mysql323-server port, and modified X# to suit zabbix needs X X[ -n "${PACKAGE_BUILDING}" ] && exit 0 X X[ "${2}" = "POST-INSTALL" ] && exit 0 X XPATH=/bin:/usr/sbin X XUSER=zabbix XGROUP=${USER} XUID=122 XGID=${UID} X Xif pw group show "${GROUP}" 2>/dev/null; then X echo "You already have a group \"${GROUP}\", so I will use it." Xelse X if pw groupadd ${GROUP} -g ${GID}; then X echo "Added group \"${GROUP}\"." X else X echo "Adding group \"${GROUP}\" failed..." X exit 1 X fi Xfi X Xif pw user show "${USER}" 2>/dev/null; then X echo "You already have a user \"${USER}\", so I will use it." X if pw usermod ${USER} -d /nonexistent X then X echo "Changed home directory of \"${USER}\" to /nonexistent" X else X echo "Changing home directory of \"${USER}\" to /nonexistent failed..." X exit 1 X fi Xelse X if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ X -d /nonexistent -s /sbin/nologin -c "Zabbix Sandbox" X then X echo "Added user \"${USER}\"." X else X echo "Adding user \"${USER}\" failed..." X exit 1 X fi Xfi c740f6f2c9187c0d4f7a785b81669bc9 echo c - /usr/ports/net-mgmt/zabbix-agent/files mkdir -p /usr/ports/net-mgmt/zabbix-agent/files > /dev/null 2>&1 echo x - /usr/ports/net-mgmt/zabbix-agent/files/patch-configure sed 's/^X//' >/usr/ports/net-mgmt/zabbix-agent/files/patch-configure << '409c3cdec3a3d66a3fe8a5343466a11f' X--- configure.orig 2009-03-28 13:23:22.000000000 -0500 X+++ configure 2009-03-28 13:23:40.000000000 -0500 X@@ -580,6 +580,9 @@ X # Factoring default headers for most tests. X ac_includes_default="\ X #include X+#include X+#include X+#include X #ifdef HAVE_SYS_TYPES_H X # include X #endif 409c3cdec3a3d66a3fe8a5343466a11f echo x - /usr/ports/net-mgmt/zabbix-agent/files/zabbix_agentd.in sed 's/^X//' >/usr/ports/net-mgmt/zabbix-agent/files/zabbix_agentd.in << 'b4f3ccf443da4f36342ffcda0a98a871' X#!/bin/sh X# PROVIDE: zabbix_agentd X# REQUIRE: DAEMON X# KEYWORD: shutdown X X. %%RC_SUBR%% X Xname="zabbix_agentd" Xrcvar=${name}_enable Xload_rc_config $name Xeval : \${${rcvar}='NO'} X Xcommand="%%PREFIX%%/bin/${name}" Xrequired_files="%%ETCDIR%%/${name}.conf" X Xrun_rc_command "$1" b4f3ccf443da4f36342ffcda0a98a871 exit --- ends here --- >Release-Note: >Audit-Trail: >Unformatted: