contrib/zabbix_agentd/Pkgfile
2007-04-16 19:11:44 +03:00

25 lines
775 B
Plaintext

# Description: zabbix agentd
# URL: http://www.zabbix.com
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
# Depends on:
name=zabbix_agentd
version=1.1.7
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,var/run/zabbix_agentd,usr/bin}
chown daemon:daemon $PKG/var/run/zabbix_agentd
touch zabbix_agentd.log
install -m 600 -o daemon -g daemon zabbix_agentd.log $PKG/var/log
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
}