updated on Mon Jan 23 04:00:55 UTC 2012
[aur-mirror.git] / zabbix-server-mysql / PKGBUILD
blobf76f73a4dbdfd5f984ef622b2467fecd7bcd95c3
1 # Contributor: Igor Pakhmutov <xasyaip@gmail.com>
2 pkgname=zabbix-server-mysql
3 pkgver=1.8.3
4 pkgrel=0
5 pkgdesc="Software for monitoring of your applications, network and servers."
6 arch=('i686' 'x86_64')
7 url="http://www.zabbix.com"
8 license=('GPL')
9 depends=('mysql' 'php' 'net-snmp' 'iksemel' 'curl' 'php-gd' 'fping')
10 install=(zabbix-server.install)
11 source=(http://downloads.sourceforge.net/sourceforge/zabbix/zabbix-$pkgver.tar.gz  zabbix_server.conf zabbix_trapper.conf zabbix_proxy.conf zabbix-server zabbix-server.install)
13 md5sums=('575c31880d73f6fe41e730874ebfc633'
14          '26b0401a83bdb1dce29338e5b2786620'
15          '9832a81e134c8e2c11e2a06b7adbf88f'
16          '0310b92afb3f35c1075fff53db737212'
17          '97ff007a91957b1954ab59149a8b373e'
18          '2b255bce754d9bcabffe6fbba8228370')
20 build() {
21   cd $startdir/src/zabbix-$pkgver
22   ./configure --prefix=/usr --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl
23   make || return 1
24   make DESTDIR=$startdir/pkg install
25   install -d -m0750 $startdir/pkg/var/run/zabbix  $startdir/pkg/var/log/zabbix
26   install -d $startdir/pkg/etc/zabbix 
27   install -d $startdir/pkg/usr/share/zabbix/dbms/create/data
28   install -d -m0755 $startdir/pkg/srv/http/zabbix
29   install -D -m0640 $startdir/src/zabbix_server.conf $startdir/pkg/etc/zabbix/zabbix_server.conf
30   install -D -m0640 $startdir/src/zabbix_trapper.conf $startdir/pkg/etc/zabbix/zabbix_trapper.conf
31   install -D -m0755 $startdir/src/zabbix-server $startdir/pkg/etc/rc.d/zabbix-server
32   install -D -m0755 $startdir/src/zabbix-$pkgver/create/data/data.sql $startdir/pkg/usr/share/zabbix/dbms/create/data/data.sql
33   install -D -m0755 $startdir/src/zabbix-$pkgver/create/data/images_mysql.sql $startdir/pkg/usr/share/zabbix/dbms/create/data/images_mysql.sql
34   install -D -m0755 $startdir/src/zabbix-$pkgver/create/schema/mysql.sql $startdir/pkg/usr/share/zabbix/dbms/create/mysql.sql
35   cp -r $startdir/src/zabbix-$pkgver/frontends/php/* $startdir/pkg/srv/http/zabbix/