You are not logged in.

#1 2012-01-31 15:55:28

dabd
Member
Registered: 2008-11-17
Posts: 109

Cannot install zabbix-agent 1.8.8-1 from AUR

I get ==> ERROR: install file ((zabbix-agent.install)) does not exist.

How to fix this?

ty

Offline

#2 2012-01-31 17:11:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot install zabbix-agent 1.8.8-1 from AUR

Download the whole tarball, not the PKGBUILD only.
Read our wiki on how to use the AUR.

Offline

#3 2012-01-31 17:29:32

dabd
Member
Registered: 2008-11-17
Posts: 109

Re: Cannot install zabbix-agent 1.8.8-1 from AUR

karol wrote:

Download the whole tarball, not the PKGBUILD only.
Read our wiki on how to use the AUR.

I forgot to mention I am using yaourt so I shouldn't have to download anything manually, right?

Offline

#4 2012-01-31 17:55:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot install zabbix-agent 1.8.8-1 from AUR

You need to edit the PKGBUILD, it should read

install="zabbix-agent.install"

instead of

install=(zabbix-agent.install)

You can use the latest version, 1.8.10, if you like:

# Contributor: Enrico Morelli <morelli@cerm.unifi.it>
pkgname=zabbix-agent
pkgver=1.8.10
pkgrel=1
pkgdesc="Software for monitoring of your applications, network and servers."
arch=('i686' 'x86_64')
url="http://www.zabbix.com"
license=('GPL')
backup=('etc/zabbix/zabbix_agent.conf' 'etc/zabbix/zabbix_agentd.conf')
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=('7e89f80c1822787c0831f7c0dbefcd7b'
         '9c20157a77b1ee4915265971f338fb41'
         '9e2a08c7dc89dccf6f7b21a156360713'
         'c1691c9feec203a051ad864227577c09'
         'f36fddf29e295c2a7bd95ca1ce4320c7')

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 
}

Builds and installs fine here.

Edit: Added backup array Idares asked for https://aur.archlinux.org/packages.php?ID=10343 and posted the updated PKGBUILD on the AUR page.

Last edited by karol (2012-01-31 18:02:55)

Offline

Board footer

Powered by FluxBB