2006-10-28 23:29:29 +03:00
|
|
|
# Description: Applications, network and servers monitoring software
|
|
|
|
# URL: http://www.zabbix.com
|
2006-10-29 13:57:46 +02:00
|
|
|
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
2008-02-23 01:04:22 +02:00
|
|
|
# Depends on: net-snmp fping mysql
|
2006-10-28 23:29:29 +03:00
|
|
|
|
|
|
|
name=zabbix_server
|
2011-08-19 15:37:39 +03:00
|
|
|
version=1.8.6
|
2008-03-31 11:01:56 +03:00
|
|
|
release=1
|
2010-11-12 12:03:50 +01:00
|
|
|
source=(http://download.sourceforge.net/zabbix/ZABBIX%20Latest%20Stable/$version/zabbix-$version.tar.gz \
|
2010-01-07 19:01:03 +02:00
|
|
|
$name.conf $name)
|
2006-10-28 23:29:29 +03:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd zabbix-$version
|
|
|
|
./configure --prefix=/usr \
|
2011-08-19 15:37:39 +03:00
|
|
|
--mandir=/usr/man \
|
2006-10-28 23:29:29 +03:00
|
|
|
--enable-server \
|
2008-02-23 01:04:22 +02:00
|
|
|
--with-net-snmp \
|
|
|
|
--with-libcurl \
|
|
|
|
--with-mysql
|
|
|
|
# replace '--with-mysql' with '--with-pgsql' to build with postgresql support
|
|
|
|
|
2006-10-28 23:29:29 +03:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2010-01-07 19:01:03 +02:00
|
|
|
mkdir -p $PKG/{var/log/$name,var/run/$name}
|
2008-02-23 01:04:22 +02:00
|
|
|
|
2010-01-07 19:01:03 +02:00
|
|
|
touch $PKG/var/log/$name/$name.log
|
|
|
|
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
|
2008-02-23 01:04:22 +02:00
|
|
|
|
2010-01-07 19:01:03 +02:00
|
|
|
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
|
2008-02-23 01:04:22 +02:00
|
|
|
|
2010-01-07 19:01:03 +02:00
|
|
|
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
|
2006-10-28 23:29:29 +03:00
|
|
|
}
|