2008-02-23 01:02:28 +02:00
|
|
|
# Description: zabbix agent daemon
|
2006-10-28 23:29:12 +03:00
|
|
|
# URL: http://www.zabbix.com
|
2006-10-29 13:57:46 +02:00
|
|
|
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
2006-10-28 23:29:12 +03:00
|
|
|
# Depends on:
|
|
|
|
|
|
|
|
name=zabbix_agentd
|
2008-03-31 11:00:23 +03:00
|
|
|
version=1.4.5
|
|
|
|
release=1
|
2006-10-28 23:29:12 +03:00
|
|
|
source=(http://dl.sourceforge.net/sourceforge/zabbix/zabbix-$version.tar.gz \
|
|
|
|
zabbix_agentd.conf zabbix_agentd)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd zabbix-$version
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-agent
|
|
|
|
make
|
2008-02-23 01:02:28 +02:00
|
|
|
|
|
|
|
mkdir -p $PKG/{var/log/zabbix,var/run/zabbix_agentd,usr/bin}
|
|
|
|
|
|
|
|
touch $PKG/var/log/zabbix/{zabbix_agentd.log,zabbix_agentd.log.old}
|
|
|
|
chmod 600 $PKG/var/log/zabbix/*
|
|
|
|
chown -R daemon:daemon $PKG/var/log/zabbix/*
|
|
|
|
|
|
|
|
touch $PKG/var/run/zabbix_agentd/zabbix_agentd.pid
|
|
|
|
chmod 700 $PKG/var/run/zabbix_agentd
|
|
|
|
chown -R daemon:daemon $PKG/var/run/zabbix_agentd
|
|
|
|
|
2006-10-28 23:29:12 +03:00
|
|
|
install -m 755 src/zabbix_agent/zabbix_agentd $PKG/usr/bin
|
|
|
|
install -D -m 644 $SRC/zabbix_agentd.conf $PKG/etc/zabbix/zabbix_agentd.conf
|
|
|
|
install -D -m 755 $SRC/zabbix_agentd $PKG/etc/rc.d/zabbix_agentd
|
|
|
|
}
|