32 lines
945 B
Plaintext
32 lines
945 B
Plaintext
# Description: zabbix agent daemon
|
|
# URL: http://www.zabbix.com
|
|
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
|
# Depends on:
|
|
|
|
name=zabbix_agentd
|
|
version=1.4.5
|
|
release=1
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
}
|