contrib/zabbix_server/Pkgfile

39 lines
1.1 KiB
Plaintext
Raw Normal View History

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