1 # Contributor: Igor Pakhmutov <xasyaip@gmail.com>
2 pkgname=zabbix-proxy-pgsql
5 pkgdesc="Software for monitoring of your applications, network and servers."
7 url="http://www.zabbix.com"
9 depends=('postgresql' 'php-pgsql' '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 '81d294474581c0a1cb7d0ceabec3d17d')
21 cd $startdir/src/zabbix-$pkgver
22 ./configure --prefix=/usr --enable-proxy --with-pgsql --with-net-snmp --with-libcurl
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/postgresql.sql $startdir/pkg/usr/share/zabbix/dbms/create/postgresql.sql