updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / zabbix-proxy-sqlite / PKGBUILD
bloba327cff1fdb33d5905f978c52d6475f16752f23f
1 # Contributor: Igor Pakhmutov <xasyaip@gmail.com>
2 pkgname=zabbix-proxy-sqlite
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=('sqlite3' 'php-sqlite' 'php' 'net-snmp'  'curl' 'php-gd' 'fping')
10 install=(zabbix-proxy.install)
11 source=(http://downloads.sourceforge.net/sourceforge/zabbix/zabbix-$pkgver.tar.gz  zabbix_server.conf zabbix_trapper.conf zabbix_proxy.conf zabbix-proxy zabbix-proxy.install)
13 md5sums=('575c31880d73f6fe41e730874ebfc633'
14          '26b0401a83bdb1dce29338e5b2786620'
15          '9832a81e134c8e2c11e2a06b7adbf88f'
16          '0310b92afb3f35c1075fff53db737212'
17          'c03f978d89e825bee44ba4b4de3a0de4 '
18          'a5fe24b211eedf427a5251b90e581676')
20 build() {
21   cd $startdir/src/zabbix-$pkgver
22   ./configure --prefix=/usr --enable-proxy --with-sqlite3 --with-net-snmp  --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 -m0640 $startdir/src/zabbix_server.conf $startdir/pkg/etc/zabbix/zabbix_server.conf
29   install -D -m0640 $startdir/src/zabbix_trapper.conf $startdir/pkg/etc/zabbix/zabbix_trapper.conf
30   install -D -m0755 $startdir/src/zabbix-proxy $startdir/pkg/etc/rc.d/zabbix-proxy
31   install -D -m0755 $startdir/src/zabbix-$pkgver/create/schema/sqlite.sql $startdir/pkg/usr/share/zabbix/dbms/create/sqlite.sql