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
|
2008-02-23 01:04:22 +02:00
|
|
|
version=1.4.4
|
2007-01-27 16:55:10 +02:00
|
|
|
release=1
|
2006-10-28 23:29:29 +03:00
|
|
|
source=(http://dl.sourceforge.net/sourceforge/zabbix/zabbix-$version.tar.gz \
|
|
|
|
zabbix_server.conf zabbix_server)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd zabbix-$version
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--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
|
|
|
|
|
2008-02-23 01:04:22 +02:00
|
|
|
mkdir -p $PKG/{var/log/zabbix,var/run/zabbix_server}
|
|
|
|
|
|
|
|
touch $PKG/var/log/zabbix/zabbix_server.log
|
|
|
|
chmod 600 $PKG/var/log/zabbix/zabbix_server.log
|
|
|
|
chown -R daemon:daemon $PKG/var/log/zabbix/zabbix_server.log
|
|
|
|
|
|
|
|
touch $PKG/var/run/zabbix_server/zabbix_server.pid
|
|
|
|
chmod 700 $PKG/var/run/zabbix_server
|
|
|
|
chown -R daemon:daemon $PKG/var/run/zabbix_server
|
|
|
|
|
2006-11-16 11:34:03 +02:00
|
|
|
install -D -m 640 -o daemon -g daemon $SRC/zabbix_server.conf $PKG/etc/zabbix/zabbix_server.conf
|
2006-10-28 23:29:29 +03:00
|
|
|
install -D -m 755 $SRC/zabbix_server $PKG/etc/rc.d/zabbix_server
|
|
|
|
}
|