FreeBSD Bugzilla – Attachment 90435 Details for
Bug 127617
Update port: net-mgmt/zabbix-agent to 1.6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 5.82 KB, created by
Dmitry Lohansky
on 2008-09-24 17:50:01 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Dmitry Lohansky
Created:
2008-09-24 17:50:01 UTC
Size:
5.82 KB
patch
obsolete
># 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/files ># /usr/ports/net-mgmt/zabbix-agent/files/patch-configure ># /usr/ports/net-mgmt/zabbix-agent/files/zabbix_agentd.in ># /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 ># >echo c - /usr/ports/net-mgmt/zabbix-agent >mkdir -p /usr/ports/net-mgmt/zabbix-agent > /dev/null 2>&1 >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 << 'END-of-/usr/ports/net-mgmt/zabbix-agent/files/patch-configure' >X--- ./configure.orig Sat Jan 27 20:39:51 2007 >X+++ ./configure Sat Jan 27 20:48:34 2007 >X@@ -275,6 +275,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 #if HAVE_SYS_TYPES_H >X # include <sys/types.h> >X #endif >END-of-/usr/ports/net-mgmt/zabbix-agent/files/patch-configure >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 << 'END-of-/usr/ports/net-mgmt/zabbix-agent/files/zabbix_agentd.in' >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" >END-of-/usr/ports/net-mgmt/zabbix-agent/files/zabbix_agentd.in >echo x - /usr/ports/net-mgmt/zabbix-agent/Makefile >sed 's/^X//' >/usr/ports/net-mgmt/zabbix-agent/Makefile << 'END-of-/usr/ports/net-mgmt/zabbix-agent/Makefile' >X# Ports collection makefile for: zabbix-agent >X# Date created: Jun 18 2003 >X# Whom: Sergey Akifyev <asa@gascom.ru> >X# >X# $FreeBSD: ports/net-mgmt/zabbix-agent/Makefile,v 1.20 2008/05/31 15:29:54 araujo Exp $ >X# >X >XPORTNAME= zabbix >XPORTVERSION= 1.6 >XPORTREVISION= 1 >XPORTEPOCH= 1 >XCATEGORIES= net-mgmt >XMASTER_SITES= SF >XPKGNAMESUFFIX= -agent >X >XMAINTAINER= d.lohansky@zsupport.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> >END-of-/usr/ports/net-mgmt/zabbix-agent/Makefile >echo x - /usr/ports/net-mgmt/zabbix-agent/distinfo >sed 's/^X//' >/usr/ports/net-mgmt/zabbix-agent/distinfo << 'END-of-/usr/ports/net-mgmt/zabbix-agent/distinfo' >XMD5 (zabbix-1.6.tar.gz) = 39d4c871439b1b4f0429964b4abbfc45 >XSHA256 (zabbix-1.6.tar.gz) = 16d7f2f41e84c0525365d5faf62da1f5edafd5c55c4e4a451e382c24c6ffe1df >XSIZE (zabbix-1.6.tar.gz) = 6098034 >END-of-/usr/ports/net-mgmt/zabbix-agent/distinfo >echo x - /usr/ports/net-mgmt/zabbix-agent/pkg-descr >sed 's/^X//' >/usr/ports/net-mgmt/zabbix-agent/pkg-descr << 'END-of-/usr/ports/net-mgmt/zabbix-agent/pkg-descr' >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/ >END-of-/usr/ports/net-mgmt/zabbix-agent/pkg-descr >echo x - /usr/ports/net-mgmt/zabbix-agent/pkg-install >sed 's/^X//' >/usr/ports/net-mgmt/zabbix-agent/pkg-install << 'END-of-/usr/ports/net-mgmt/zabbix-agent/pkg-install' >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 >END-of-/usr/ports/net-mgmt/zabbix-agent/pkg-install >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 127617
: 90435
Working