forked from ports/contrib
28 lines
861 B
Plaintext
28 lines
861 B
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
|
|
|
|
name=zabbix_server
|
|
version=1.1.4
|
|
release=2
|
|
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-mysql \
|
|
--with-net-snmp
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
mkdir -p $PKG/{var/log,var/run/zabbix_server,usr/bin}
|
|
chown daemon:daemon $PKG/var/run/zabbix_server
|
|
touch zabbix_server.log
|
|
install -m 600 -o daemon -g daemon zabbix_server.log $PKG/var/log
|
|
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
|
|
}
|