summaryrefslogtreecommitdiff
path: root/zabbix_agentd/Pkgfile
blob: 1e2888d138fe93e0352d89773c44ba10559be2aa (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.6.8
    8 release=1
    9 source=(http://dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/$version/zabbix-$version.tar.gz \
   10 		$name.conf $name)
   11 
   12 build() {
   13 	cd zabbix-$version
   14 	./configure --prefix=/usr \
   15 				--enable-agent
   16 	make
   17 	mkdir -p $PKG/{var/log/$name,var/run/$name,usr/bin}
   18 	
   19 	touch $PKG/var/log/$name/{zabbix_agentd.log,zabbix_agentd.log.old}
   20 	chown -R daemon:daemon $PKG/var/log/$name
   21 	find $PKG/var/log/$name -type f | xargs chmod 600
   22 	find $PKG/var/log/$name -type d | xargs chmod 700
   23 	
   24 	touch $PKG/var/run/$name/$name.pid
   25 	chown -R daemon:daemon $PKG/var/run/$name
   26 	find $PKG/var/run/$name -type f | xargs chmod 600
   27 	find $PKG/var/run/$name -type d | xargs chmod 700
   28 
   29 	install -m 755 src/zabbix_agent/$name $PKG/usr/bin
   30 	install -D -m 640 -o daemon -g daemon $SRC/$name.conf $PKG/etc/zabbix/$name.conf
   31 	install -D -m 755 $SRC/$name $PKG/etc/rc.d/$name
   32 }

Generated by cgit