Date: Thu, 26 Nov 2009 16:02:03 +0700 (KRAT) From: Andrey.Lykhin.lian@kras.ru To: FreeBSD-gnats-submit@FreeBSD.org Cc: lian@kras.ru Subject: ports/140890: Update port: net-mgmt/zabbix-agent Message-ID: <200911260902.nAQ923xa031364@mons.iskranet.ru> Resent-Message-ID: <200911260930.nAQ9U4EA072010@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 140890 >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:30:03 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: --- port167 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 <asa@gascom.ru> 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 <bsd.port.mk> 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 <stdio.h> X+#include <sys/socket.h> X+#include <sys/param.h> X+#include <netinet/in.h> X #ifdef HAVE_SYS_TYPES_H X # include <sys/types.h> 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 --- port167 ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911260902.nAQ923xa031364>