summaryrefslogtreecommitdiff
path: root/zabbix_agentd/Pkgfile
blob: 565f55aee257d033dff7bf311684dab89b6b6fc2 (plain)
    1 # Description: zabbix agent daemon
    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.4.6
    8 release=1
    9 source=(http://dl.sourceforge.net/sourceforge/zabbix/zabbix-$version.tar.gz \
   10 		zabbix_agentd.conf zabbix_agentd zabbix-cpustats.patch)
   11 
   12 build() {
   13 	cd zabbix-$version
   14 	patch -p1 -i $SRC/zabbix-cpustats.patch
   15 	./configure --prefix=/usr \
   16 				--enable-agent
   17 	make
   18 	
   19 	mkdir -p $PKG/{var/log/zabbix,var/run/zabbix_agentd,usr/bin}
   20 	
   21 	touch $PKG/var/log/zabbix/{zabbix_agentd.log,zabbix_agentd.log.old}
   22 	chmod 600 $PKG/var/log/zabbix/*
   23 	chown -R daemon:daemon $PKG/var/log/zabbix/*
   24 	
   25 	touch $PKG/var/run/zabbix_agentd/zabbix_agentd.pid
   26 	chmod 700 $PKG/var/run/zabbix_agentd
   27 	chown -R daemon:daemon $PKG/var/run/zabbix_agentd
   28 	
   29 	install -m 755 src/zabbix_agent/zabbix_agentd $PKG/usr/bin
   30 	install -D -m 644 $SRC/zabbix_agentd.conf $PKG/etc/zabbix/zabbix_agentd.conf
   31 	install -D -m 755 $SRC/zabbix_agentd $PKG/etc/rc.d/zabbix_agentd
   32 }

Generated by cgit