forked from ports/contrib
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Description: Applications, network and servers monitoring software
|
|
# URL: http://www.zabbix.com
|
|
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
|
# Depends on: net-snmp fping mysql
|
|
|
|
name=zabbix_server
|
|
version=1.4.5
|
|
release=1
|
|
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 \
|
|
--with-net-snmp \
|
|
--with-libcurl \
|
|
--with-mysql
|
|
# replace '--with-mysql' with '--with-pgsql' to build with postgresql support
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
mkdir -p $PKG/{var/log/zabbix,var/run/zabbix_server}
|
|
chmod 775 $PKG/var/log/zabbix
|
|
|
|
touch $PKG/var/log/zabbix/zabbix_server.log
|
|
chmod 600 $PKG/var/log/zabbix/zabbix_server.log
|
|
chgrp -R daemon $PKG/var/log/zabbix
|
|
|
|
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
|
|
|
|
install -D -m 640 -o daemon -g daemon $SRC/zabbix_server.conf $PKG/etc/zabbix/zabbix_server.conf
|
|
install -D -m 755 $SRC/zabbix_server $PKG/etc/rc.d/zabbix_server
|
|
}
|