summaryrefslogtreecommitdiffstats
path: root/zabbix-agent/PKGBUILD
blob: f46322554e61347c9f09766f18d841bd2592a41c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Enrico Morelli <morelli@cerm.unifi.it>
pkgname=zabbix-agent
pkgver=1.6.6
pkgrel=1
pkgdesc="Software for monitoring of your applications, network and servers."
arch=('i686' 'x86_64')
url="http://www.zabbix.com"
license=('GPL')
install=(zabbix-agent.install)
source=(http://downloads.sourceforge.net/sourceforge/zabbix/zabbix-$pkgver.tar.gz  zabbix_agent.conf zabbix_agentd.conf zabbix-agentd zabbix-agent.install)

md5sums=('52779160e71c12d47b97f7336e25c395'
         '9c20157a77b1ee4915265971f338fb41'
         '9e2a08c7dc89dccf6f7b21a156360713'
         '664cd2ebfc711d722fc62c968704d0ca'
         'edbf10ac9776ee7ca3409a3f0ac83917')


build() {
  cd $startdir/src/zabbix-$pkgver
  ./configure --prefix=/usr --enable-agent
  make || return 1
  make DESTDIR=$startdir/pkg install
  install -d -m0750 $startdir/pkg/var/run/zabbix  $startdir/pkg/var/log/zabbix
  install -d $startdir/pkg/etc/zabbix 
  install -D -m0640 $startdir/src/zabbix_agent.conf $startdir/pkg/etc/zabbix/zabbix_agent.conf
  install -D -m0640 $startdir/src/zabbix_agentd.conf $startdir/pkg/etc/zabbix/zabbix_agentd.conf
  install -D -m0755 $startdir/src/zabbix-agentd $startdir/pkg/etc/rc.d/zabbix-agentd 
}