diff options
Diffstat (limited to 'zabbix_agentd/Pkgfile')
-rw-r--r-- | zabbix_agentd/Pkgfile | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/zabbix_agentd/Pkgfile b/zabbix_agentd/Pkgfile index 695f53c20..1e2888d13 100644 --- a/zabbix_agentd/Pkgfile +++ b/zabbix_agentd/Pkgfile @@ -4,30 +4,29 @@ # Depends on: name=zabbix_agentd -version=1.6.4 +version=1.6.8 release=1 -source=(http://dl.sourceforge.net/sourceforge/zabbix/zabbix-$version.tar.gz \ - zabbix_agentd.conf zabbix_agentd) - #zabbix-cpustats.patch) +source=(http://dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/$version/zabbix-$version.tar.gz \ + $name.conf $name) build() { cd zabbix-$version - #patch -p1 -i $SRC/zabbix-cpustats.patch ./configure --prefix=/usr \ --enable-agent make + mkdir -p $PKG/{var/log/$name,var/run/$name,usr/bin} - mkdir -p $PKG/{var/log/zabbix,var/run/zabbix_agentd,usr/bin} + touch $PKG/var/log/$name/{zabbix_agentd.log,zabbix_agentd.log.old} + chown -R daemon:daemon $PKG/var/log/$name + find $PKG/var/log/$name -type f | xargs chmod 600 + find $PKG/var/log/$name -type d | xargs chmod 700 - 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 - - 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 + touch $PKG/var/run/$name/$name.pid + chown -R daemon:daemon $PKG/var/run/$name + find $PKG/var/run/$name -type f | xargs chmod 600 + find $PKG/var/run/$name -type d | xargs chmod 700 + + install -m 755 src/zabbix_agent/$name $PKG/usr/bin + install -D -m 640 -o daemon -g daemon $SRC/$name.conf $PKG/etc/zabbix/$name.conf + install -D -m 755 $SRC/$name $PKG/etc/rc.d/$name } |