contrib/zabbix_agentd/Pkgfile

34 lines
1013 B
Plaintext
Raw Normal View History

2008-02-23 00:02:28 +01:00
# Description: zabbix agent daemon
2006-10-28 22:29:12 +02:00
# URL: http://www.zabbix.com
2006-10-29 12:57:46 +01:00
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
2006-10-28 22:29:12 +02:00
# Depends on:
name=zabbix_agentd
2009-04-23 14:05:36 +02:00
version=1.6.4
2008-03-31 10:00:23 +02:00
release=1
2006-10-28 22:29:12 +02:00
source=(http://dl.sourceforge.net/sourceforge/zabbix/zabbix-$version.tar.gz \
zabbix_agentd.conf zabbix_agentd)
#zabbix-cpustats.patch)
2006-10-28 22:29:12 +02:00
build() {
cd zabbix-$version
#patch -p1 -i $SRC/zabbix-cpustats.patch
2006-10-28 22:29:12 +02:00
./configure --prefix=/usr \
--enable-agent
make
2008-02-23 00:02:28 +01: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 22:29:12 +02: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
}