Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 5th, 2013  |  syntax: Bash  |  size: 1.71 KB  |  views: 55  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Idares <idares@seznam.cz>
  2. # Contributor: Enrico Morelli <morelli@cerm.unifi.it>
  3. # Contributor: Vadym Abramchuk <abramm@gmail.com>
  4. # Contributor: karol_007 <karol.blazewicz@gmail.com>
  5.  
  6. pkgname=zabbix-agent
  7. pkgver=2.0.5
  8. pkgrel=1
  9. pkgdesc="Software for monitoring of your applications, network and servers."
  10. arch=('i686' 'x86_64')
  11. url="http://www.zabbix.com"
  12. license=('GPL')
  13. backup=('etc/zabbix/zabbix_agent.conf'
  14.         'etc/zabbix/zabbix_agentd.conf'
  15.                 )
  16. install="zabbix-agent.install"
  17. source=("http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/$pkgver/zabbix-$pkgver.tar.gz"
  18.         "zabbix-agentd"
  19.         "zabbix-agent.install"
  20.                 "zabbix-agentd.service"
  21.                 )
  22.  
  23. build() {
  24.         cd $srcdir/zabbix-$pkgver
  25.         ./configure \
  26.                 --prefix=/usr \
  27.                 --sysconfdir=/etc/zabbix \
  28.                 --enable-agent
  29.         make
  30. }
  31.  
  32. package() {
  33.         cd $srcdir/zabbix-$pkgver
  34.         make DESTDIR=$pkgdir install
  35.  
  36.         install -d -m0750 $pkgdir/var/run/zabbix
  37.         install -d -m0750 $pkgdir/var/log/zabbix
  38.  
  39.         install -D -m0755 $startdir/src/zabbix-agentd $startdir/pkg/etc/rc.d/zabbix-agentd
  40.         install -D -m0644 $srcdir/zabbix-agentd.service $pkgdir/usr/lib/systemd/system/zabbix-agentd.service
  41.  
  42.         # change pid file location
  43.         sed -i 's:# PidFile=.*:PidFile=/var/run/zabbix/zabbix_agentd.pid:' $pkgdir/etc/zabbix/zabbix_agentd.conf
  44. }
  45.  
  46. md5sums=('0c0721c31889b63bce9aa556bcb927e8'
  47.          '3a3830fa4cd239cf8631c33e3fa69d13'
  48.          'ebe9f39104737605ca76b3dd490fddff'
  49.          'b3b9487aadc6deaefce56a495f4dbb5d')
  50. sha1sums=('7798e5d69e0a301be3f014cc0d800c3ee153faa0'
  51.           '0d0d2a22bb3985b241c94c2bf45070aba534dfa0'
  52.           'ac7e22306e188b87c539f85750dfac2ca1e5c28a'
  53.           '7b0a18c648e3a11cf5e6bb896a38213dcdb609dc')
clone this paste RAW Paste Data