diff options
author | Brian Jackson <iggy@gentoo.org> | 2005-04-26 21:46:18 +0000 |
---|---|---|
committer | Brian Jackson <iggy@gentoo.org> | 2005-04-26 21:46:18 +0000 |
commit | 38c81f742ff88f8c8ddc339911429a2309da2986 (patch) | |
tree | 45e8cdebfc1fc2d2deffe789e36ecb75fee281d4 /net-analyzer/zabbix-agent | |
parent | Version bump. Removed old ebuild. (diff) | |
download | gentoo-2-38c81f742ff88f8c8ddc339911429a2309da2986.tar.gz gentoo-2-38c81f742ff88f8c8ddc339911429a2309da2986.tar.bz2 gentoo-2-38c81f742ff88f8c8ddc339911429a2309da2986.zip |
Initial commit to Gentoo\'s cvs, huge thanks to Norguhtar \<sauronATinfocentr.ru\> \(bug \#90005\), and all the people on bug \#58123
(Portage version: 2.0.51.20-r4)
Diffstat (limited to 'net-analyzer/zabbix-agent')
15 files changed, 441 insertions, 0 deletions
diff --git a/net-analyzer/zabbix-agent/ChangeLog b/net-analyzer/zabbix-agent/ChangeLog new file mode 100644 index 000000000000..3e52fc7d193f --- /dev/null +++ b/net-analyzer/zabbix-agent/ChangeLog @@ -0,0 +1,40 @@ +# ChangeLog for net-analyzer/zabbix-agent +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-agent/ChangeLog,v 1.1 2005/04/26 21:46:18 iggy Exp $ + +*zabbix-agent-1.1_alpha7 (26 Apr 2005) +*zabbix-agent-1.0 (26 Apr 2005) + + 26 Apr 2005; Brian Jackson <iggy@gentoo.org> + +files/1.0/conf.d/zabbix-agentd, +files/1.0/init.d/zabbix-agentd, + +files/1.0/zabbix_agent.conf, +files/1.1_alpha7/conf.d/zabbix-agentd, + +files/1.0/zabbix_agentd.conf, +files/1.1_alpha7/init.d/zabbix-agentd, + +files/1.1_alpha7/zabbix_agent.conf, +files/1.1_alpha7/zabbix_agentd.conf, + +metadata.xml, +zabbix-agent-1.0.ebuild, +zabbix-agent-1.1_alpha7.ebuild: + Initial commit to Gentoo's cvs, huge thanks to Norguhtar + <sauronATinfocentr.ru> (bug #90005\), and all the people on bug #58123 + + 21 Mar 2005; Kirill Tikhonov zabbix-agent-1.1_alpha7.ebuild: + Add ~sparc to KEYWORD. + +*zabbix-agent-1.1_alpha7 (21 Mar 2005) + + 21 Mar 2005; Anatoly Shipitsin <sauron@infocentr.ru> zabbix-agent-1.1_alpha7.ebuild : + Version bump. + + 20 Mar 2005; Anatoly Shipitsin <sauron@infocentr.ru> zabbix-agent-1.0.ebuild, zabbix-agent-1.1_alpha5.ebuild, + zabbix-agent-1.1_alpha5-r1.ebuild: + Fix bugs on reemerge. + +*zabbix-agent-1.1_alpha5-r1 (16 Feb 2005) + + 8 Feb 2005; Anatoly Shipitsin <sauron@infocentr.ru> zabbix-agent-1.0.ebuild : + Version Bump. + + 16 Mar 2005; Kirill Tikhonov zabbix-agent-1.1_alpha5.ebuild, zabbix-agent-1.1_alpha5-r1.ebuild: + Add ~sparc to KEYWORD. Fixed shell from /bin/nologin to /bin/false. + +*zabbix-agent-1.0 (7 Feb 2005) + + 7 Feb 2005; Anatoly Shipitsin <sauron@infocentr.ru> zabbix-agent-1.0.ebuild : + Initial import. Ebuild submitted by Anatoly Shipitsin <sauron@infocentr.ru> diff --git a/net-analyzer/zabbix-agent/Manifest b/net-analyzer/zabbix-agent/Manifest new file mode 100644 index 000000000000..239d2063c7da --- /dev/null +++ b/net-analyzer/zabbix-agent/Manifest @@ -0,0 +1,22 @@ +MD5 c8b3aadf5a20e70ac7191421108443b6 ChangeLog 1033 +MD5 87e116d55a0b46ca2ad90540ae28e6e3 metadata.xml 264 +MD5 666a046d859faca6fd874de9da9f69d0 zabbix-agent-1.0.ebuild 1623 +MD5 526a685499b13aec0c31e10e2ba631c8 zabbix-agent-1.1_alpha5.ebuild 1645 +MD5 29166a813b654da428a61a6b009eb822 zabbix-agent-1.1_alpha7.ebuild 1652 +MD5 29166a813b654da428a61a6b009eb822 zabbix-agent-1.1_alpha5-r1.ebuild 1652 +MD5 44d6c3f823d9eee301130916100fd8fb files/digest-zabbix-agent-1.0 63 +MD5 ea360bd7734b3dd1d730c8ae9b6a14b9 files/digest-zabbix-agent-1.1_alpha5 68 +MD5 4990ea7476a1a66671f7faf9b1c93719 files/digest-zabbix-agent-1.1_alpha7 68 +MD5 ea360bd7734b3dd1d730c8ae9b6a14b9 files/digest-zabbix-agent-1.1_alpha5-r1 68 +MD5 909c827e35c478944b9b7ba470d1e31d files/1.0/zabbix_agent.conf 1124 +MD5 6a60283a6c3b457428af0c79ce1774b3 files/1.0/zabbix_agentd.conf 1956 +MD5 909c827e35c478944b9b7ba470d1e31d files/1.1_alpha5/zabbix_agent.conf 1124 +MD5 6a60283a6c3b457428af0c79ce1774b3 files/1.1_alpha5/zabbix_agentd.conf 1956 +MD5 dca8d533925687d02825a5401e723c3d files/1.1_alpha7/zabbix_agent.conf 1129 +MD5 03be35f02a504402ea6355782675b139 files/1.1_alpha7/zabbix_agentd.conf 1961 +MD5 6426b1212530786e6fef78039605e1fb files/1.0/init.d/zabbix-agentd 403 +MD5 37ec3a7466aa6407cec028ac781a4cc5 files/1.0/conf.d/zabbix-agentd 214 +MD5 6426b1212530786e6fef78039605e1fb files/1.1_alpha5/init.d/zabbix-agentd 403 +MD5 37ec3a7466aa6407cec028ac781a4cc5 files/1.1_alpha5/conf.d/zabbix-agentd 214 +MD5 6426b1212530786e6fef78039605e1fb files/1.1_alpha7/init.d/zabbix-agentd 403 +MD5 37ec3a7466aa6407cec028ac781a4cc5 files/1.1_alpha7/conf.d/zabbix-agentd 214 diff --git a/net-analyzer/zabbix-agent/files/1.0/conf.d/zabbix-agentd b/net-analyzer/zabbix-agent/files/1.0/conf.d/zabbix-agentd new file mode 100644 index 000000000000..230d878c5ca4 --- /dev/null +++ b/net-analyzer/zabbix-agent/files/1.0/conf.d/zabbix-agentd @@ -0,0 +1,7 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-agent/files/1.0/conf.d/zabbix-agentd,v 1.1 2005/04/26 21:46:18 iggy Exp $ + +# Config file for /etc/conf.d/zabbix-agentd + +PID="/var/run/zabbix/zabbix_agentd.pid" diff --git a/net-analyzer/zabbix-agent/files/1.0/init.d/zabbix-agentd b/net-analyzer/zabbix-agent/files/1.0/init.d/zabbix-agentd new file mode 100644 index 000000000000..9623522edd37 --- /dev/null +++ b/net-analyzer/zabbix-agent/files/1.0/init.d/zabbix-agentd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +opts="${opts} reload" + +depend() { + need net + provide zabbix-agent +} + +start() { + ebegin "Starting Zabbix agent" + start-stop-daemon --start --exec /usr/sbin/zabbix_agentd + eend +} +stop() { + ebegin "Stopping Zabbix agent" + start-stop-daemon --stop --pid $PID + eend +} diff --git a/net-analyzer/zabbix-agent/files/1.0/zabbix_agent.conf b/net-analyzer/zabbix-agent/files/1.0/zabbix_agent.conf new file mode 100644 index 000000000000..f625d2c3db9f --- /dev/null +++ b/net-analyzer/zabbix-agent/files/1.0/zabbix_agent.conf @@ -0,0 +1,27 @@ +# This is config file for zabbix_agent +# To get more information about Zabbix, +# go http://zabbix.sourceforge.net + +# IP address of Zabbix server +# Connections from other hosts will be denied + +Server=127.0.0.1 + +# Spend no more than Timeout seconds on processing +# Must be between 1 and 30 + +Timeout=3 + +####### USER-DEFINED MONITORED PARAMETERS ####### +# Format: UserParameter=<key>,<shell command> +# Note that shell command should return numeric value +#UserParameter=system[test],who|wc -l +### Set of parameter for monitoring MySQL server (v3.23.42 and later) +### Change -u<username> and add -p<password> if required +#UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l +#UserParameter=mysql[uptime],mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T" +#UserParameter=mysql[threads],mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q" +#UserParameter=mysql[questions],mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S" +#UserParameter=mysql[slowqueries],mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O" +#UserParameter=mysql[qps],mysqladmin -uroot status|cut -f9 -d":" +#UserParameter=version[mysql],mysql -V diff --git a/net-analyzer/zabbix-agent/files/1.0/zabbix_agentd.conf b/net-analyzer/zabbix-agent/files/1.0/zabbix_agentd.conf new file mode 100644 index 000000000000..90ecf1f1c237 --- /dev/null +++ b/net-analyzer/zabbix-agent/files/1.0/zabbix_agentd.conf @@ -0,0 +1,72 @@ +# This is config file for zabbix_agentd +# To get more information about Zabbix, go http://zabbix.sourceforge.net + +############ GENERAL PARAMETERS ################# + +# IP address of Zabbix server. No spaces allowed. + +Server=127.0.0.1 + +# Listen port. Default is 10000 + +ListenPort=10000 + +# IP address to bind agent +# If missing, bind to all available IPs + +ListenIP=127.0.0.1 + +# Number of pre-forked instances of zabbix_agentd. +# Default value is 5 +# This parameter must be between 1 and 16 + +StartAgents=5 + +# Specifies debug level +# 0 - debug is not created +# 1 - critical information +# 2 - error information +# 3 - warnings (default) +# 4 - for debugging (produces lots of information) + +DebugLevel=3 + +# Name of PID file + +PidFile=/var/run/zabbix/zabbix_agentd.pid + +# Name of log file. +# If not set, syslog will be used + +LogFile=/var/log/zabbix/zabbix_agentd.log + +# Spend no more than Timeout seconds on processing +# Must be between 1 and 30 + +Timeout=3 + +##### Experimental options. Use with care ! ##### + +# Get rid of sockets in TIME_WAIT state +# This will set socket option SO_LINGER + +# NoTimeWait=1 + +##### End of experimental options + +####### USER-DEFINED MONITORED PARAMETERS ####### +# Format: UserParameter=<key>,<shell command> +# Note that shell command should return numeric value + +#UserParameter=system[test],who|wc -l + +### Set of parameter for monitoring MySQL server (v3.23.42 and later) +### Change -u<username> and add -p<password> if required + +#UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l +#UserParameter=mysql[uptime],mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T" +#UserParameter=mysql[threads],mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q" +#UserParameter=mysql[questions],mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S" +#UserParameter=mysql[slowqueries],mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O" +#UserParameter=mysql[qps],mysqladmin -uroot status|cut -f9 -d":" +#UserParameter=version[mysql],mysql -V diff --git a/net-analyzer/zabbix-agent/files/1.1_alpha7/conf.d/zabbix-agentd b/net-analyzer/zabbix-agent/files/1.1_alpha7/conf.d/zabbix-agentd new file mode 100644 index 000000000000..eb5708c40d75 --- /dev/null +++ b/net-analyzer/zabbix-agent/files/1.1_alpha7/conf.d/zabbix-agentd @@ -0,0 +1,7 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-agent/files/1.1_alpha7/conf.d/zabbix-agentd,v 1.1 2005/04/26 21:46:18 iggy Exp $ + +# Config file for /etc/conf.d/zabbix-agentd + +PID="/var/run/zabbix/zabbix_agentd.pid" diff --git a/net-analyzer/zabbix-agent/files/1.1_alpha7/init.d/zabbix-agentd b/net-analyzer/zabbix-agent/files/1.1_alpha7/init.d/zabbix-agentd new file mode 100644 index 000000000000..9623522edd37 --- /dev/null +++ b/net-analyzer/zabbix-agent/files/1.1_alpha7/init.d/zabbix-agentd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +opts="${opts} reload" + +depend() { + need net + provide zabbix-agent +} + +start() { + ebegin "Starting Zabbix agent" + start-stop-daemon --start --exec /usr/sbin/zabbix_agentd + eend +} +stop() { + ebegin "Stopping Zabbix agent" + start-stop-daemon --stop --pid $PID + eend +} diff --git a/net-analyzer/zabbix-agent/files/1.1_alpha7/zabbix_agent.conf b/net-analyzer/zabbix-agent/files/1.1_alpha7/zabbix_agent.conf new file mode 100644 index 000000000000..21837c4a1c3a --- /dev/null +++ b/net-analyzer/zabbix-agent/files/1.1_alpha7/zabbix_agent.conf @@ -0,0 +1,27 @@ +# This is config file for zabbix_agent +# To get more information about ZABBIX, +# go http://www.zabbix.com + +# IP address of ZABBIX server +# Connections from other hosts will be denied + +Server=127.0.0.1 + +# Spend no more than Timeout seconds on processing +# Must be between 1 and 30 + +Timeout=3 + +####### USER-DEFINED MONITORED PARAMETERS ####### +# Format: UserParameter=<key>,<shell command> +# Note that shell command must not return empty string or EOL only +#UserParameter=system[test],who|wc -l +### Set of parameter for monitoring MySQL server (v3.23.42 and later) +### Change -u<username> and add -p<password> if required +#UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l +#UserParameter=mysql[uptime],mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T" +#UserParameter=mysql[threads],mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q" +#UserParameter=mysql[questions],mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S" +#UserParameter=mysql[slowqueries],mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O" +#UserParameter=mysql[qps],mysqladmin -uroot status|cut -f9 -d":" +#UserParameter=version[mysql],mysql -V diff --git a/net-analyzer/zabbix-agent/files/1.1_alpha7/zabbix_agentd.conf b/net-analyzer/zabbix-agent/files/1.1_alpha7/zabbix_agentd.conf new file mode 100644 index 000000000000..e7745d8f9a42 --- /dev/null +++ b/net-analyzer/zabbix-agent/files/1.1_alpha7/zabbix_agentd.conf @@ -0,0 +1,72 @@ +# This is config file for zabbix_agentd +# To get more information about ZABBIX, go http://www.zabbix.com + +############ GENERAL PARAMETERS ################# + +# IP address of ZABBIX server. No spaces allowed. + +Server=127.0.0.1 + +# Listen port. Default is 10050 + +ListenPort=10050 + +# IP address to bind agent +# If missing, bind to all available IPs + +ListenIP=127.0.0.1 + +# Number of pre-forked instances of zabbix_agentd. +# Default value is 5 +# This parameter must be between 1 and 16 + +StartAgents=5 + +# Specifies debug level +# 0 - debug is not created +# 1 - critical information +# 2 - error information +# 3 - warnings (default) +# 4 - for debugging (produces lots of information) + +DebugLevel=3 + +# Name of PID file + +PidFile=/var/run/zabbix/zabbix_agentd.pid + +# Name of log file. +# If not set, syslog will be used + +LogFile=/var/log/zabbix/zabbix_agentd.log + +# Spend no more than Timeout seconds on processing +# Must be between 1 and 30 + +Timeout=3 + +##### Experimental options. Use with care ! ##### + +# Get rid of sockets in TIME_WAIT state +# This will set socket option SO_LINGER + +# NoTimeWait=1 + +##### End of experimental options + +####### USER-DEFINED MONITORED PARAMETERS ####### +# Format: UserParameter=<key>,<shell command> +# Note that shell command must not return empty string or EOL only + +#UserParameter=system[test],who|wc -l + +### Set of parameter for monitoring MySQL server (v3.23.42 and later) +### Change -u<username> and add -p<password> if required + +#UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l +#UserParameter=mysql[uptime],mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T" +#UserParameter=mysql[threads],mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q" +#UserParameter=mysql[questions],mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S" +#UserParameter=mysql[slowqueries],mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O" +#UserParameter=mysql[qps],mysqladmin -uroot status|cut -f9 -d":" +#UserParameter=version[mysql],mysql -V diff --git a/net-analyzer/zabbix-agent/files/digest-zabbix-agent-1.0 b/net-analyzer/zabbix-agent/files/digest-zabbix-agent-1.0 new file mode 100644 index 000000000000..283aa4fd7570 --- /dev/null +++ b/net-analyzer/zabbix-agent/files/digest-zabbix-agent-1.0 @@ -0,0 +1 @@ +MD5 e83a3b92f13942081ed2f3fe3f3084d8 zabbix-1.0.tar.gz 1847471 diff --git a/net-analyzer/zabbix-agent/files/digest-zabbix-agent-1.1_alpha7 b/net-analyzer/zabbix-agent/files/digest-zabbix-agent-1.1_alpha7 new file mode 100644 index 000000000000..bee9b9502bd8 --- /dev/null +++ b/net-analyzer/zabbix-agent/files/digest-zabbix-agent-1.1_alpha7 @@ -0,0 +1 @@ +MD5 a900c9838075690a8d04849cda42c67c zabbix-1.1alpha7.tar.gz 654347 diff --git a/net-analyzer/zabbix-agent/metadata.xml b/net-analyzer/zabbix-agent/metadata.xml new file mode 100644 index 000000000000..cfba83e0d3f8 --- /dev/null +++ b/net-analyzer/zabbix-agent/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> +<herd>no-herd</herd> + <maintainer> + <email>swtaylor@gentoo.org</email> + </maintainer> + <longdescription>ZABBIX is software for monitoring of your applications, network and servers.</longdescription> +</pkgmetadata> diff --git a/net-analyzer/zabbix-agent/zabbix-agent-1.0.ebuild b/net-analyzer/zabbix-agent/zabbix-agent-1.0.ebuild new file mode 100644 index 000000000000..9ce36d5b9c3d --- /dev/null +++ b/net-analyzer/zabbix-agent/zabbix-agent-1.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-agent/zabbix-agent-1.0.ebuild,v 1.1 2005/04/26 21:46:18 iggy Exp $ + +inherit eutils + +MY_P=${PN//-agent/} +DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers. Agent part." + +HOMEPAGE="http://zabbix.com/" +SRC_URI="mirror://sourceforge/zabbix/${MY_P}-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~x86 ~amd64" + +IUSE="" + +DEPEND="" + +# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:" +RDEPEND="" + +# Source directory; the dir where the sources can be found (automatically +# unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P} +# If you don't need to change it, leave the S= line out of the ebuild +# to keep it tidy. +S=${WORKDIR}/${MY_P}-${PV} + +pkg_setup() { + enewgroup zabbix + enewuser zabbix -1 /bin/false /dev/null zabbix +} + + +src_compile() { + econf || die "econf failed" + emake || die "emake failed" +} + +src_install() { + dodir /etc/zabbix /var/log/zabbix /var/run/zabbix + keepdir /etc/zabbix /var/log/zabbix /var/run/zabbix + insinto /etc/zabbix + doins ${FILESDIR}/${PV}/zabbix_agent.conf ${FILESDIR}/${PV}/zabbix_agentd.conf + insinto /etc/conf.d + doins ${FILESDIR}/${PV}/conf.d/zabbix-agentd + exeinto /etc/init.d + doexe ${FILESDIR}/${PV}/init.d/zabbix-agentd + dosbin bin/zabbix_agent bin/zabbix_agentd bin/zabbix_sender + fowners zabbix:zabbix /etc/zabbix /var/log/zabbix /var/run/zabbix /etc/zabbix/zabbix_agent.conf /etc/zabbix/zabbix_agentd.conf + fperms 0640 /etc/zabbix/zabbix_agent.conf /etc/zabbix/zabbix_agentd.conf + fperms 0750 /var/log/zabbix /var/run/zabbix +} diff --git a/net-analyzer/zabbix-agent/zabbix-agent-1.1_alpha7.ebuild b/net-analyzer/zabbix-agent/zabbix-agent-1.1_alpha7.ebuild new file mode 100644 index 000000000000..7cb7cfb08188 --- /dev/null +++ b/net-analyzer/zabbix-agent/zabbix-agent-1.1_alpha7.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-agent/zabbix-agent-1.1_alpha7.ebuild,v 1.1 2005/04/26 21:46:18 iggy Exp $ + +inherit eutils + +MY_P=${PN//-agent/} +MY_PV=${PV//_/} +DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers. Agent part." + +HOMEPAGE="http://zabbix.com/" +SRC_URI="mirror://sourceforge/zabbix/${MY_P}-${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~x86 ~sparc ~amd64" + +IUSE="" + +DEPEND="" + +# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:" +RDEPEND="" + +# Source directory; the dir where the sources can be found (automatically +# unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P} +# If you don't need to change it, leave the S= line out of the ebuild +# to keep it tidy. +S=${WORKDIR}/${MY_P}-${MY_PV} + +pkg_setup() { + enewgroup zabbix + enewuser zabbix -1 /bin/false /dev/null zabbix +} + + +src_compile() { + econf || die "econf failed" + emake || die "emake failed" +} + +src_install() { + dodir /etc/zabbix /var/log/zabbix /var/run/zabbix + keepdir /etc/zabbix /var/log/zabbix /var/run/zabbix + insinto /etc/zabbix + doins ${FILESDIR}/${PV}/zabbix_agent.conf ${FILESDIR}/${PV}/zabbix_agentd.conf + insinto /etc/conf.d + doins ${FILESDIR}/${PV}/conf.d/zabbix-agentd + exeinto /etc/init.d + doexe ${FILESDIR}/${PV}/init.d/zabbix-agentd + dosbin bin/zabbix_agent bin/zabbix_agentd bin/zabbix_sender + fowners zabbix:zabbix /etc/zabbix /var/log/zabbix /var/run/zabbix /etc/zabbix/zabbix_agent.conf /etc/zabbix/zabbix_agentd.conf + fperms 0640 /etc/zabbix/zabbix_agent.conf /etc/zabbix/zabbix_agentd.conf + fperms 0750 /var/log/zabbix /var/run/zabbix +} |