blob: c3615eb7e2b4d613dab51a36f78e446d22622b38 (
plain)
1 # Description: zabbix agentd
2 # URL: http://www.zabbix.com
3 # Maintainer: Mikhail Kolesnik, mike at openbunker dot org
4 # Depends on:
5
6 name=zabbix_agentd
7 version=1.1.6
8 release=1
9 source=(http://dl.sourceforge.net/sourceforge/zabbix/zabbix-$version.tar.gz \
10 zabbix_agentd.conf zabbix_agentd)
11
12 build() {
13 cd zabbix-$version
14 ./configure --prefix=/usr \
15 --enable-agent
16 make
17 mkdir -p $PKG/{var/log,var/run/zabbix_agentd,usr/bin}
18 chown daemon:daemon $PKG/var/run/zabbix_agentd
19 touch zabbix_agentd.log
20 install -m 600 -o daemon -g daemon zabbix_agentd.log $PKG/var/log
21 install -m 755 src/zabbix_agent/zabbix_agentd $PKG/usr/bin
22 install -D -m 644 $SRC/zabbix_agentd.conf $PKG/etc/zabbix/zabbix_agentd.conf
23 install -D -m 755 $SRC/zabbix_agentd $PKG/etc/rc.d/zabbix_agentd
24 }
|