updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / check_multi-git / PKGBUILD
blob76c079b71edaceb7674bfc86e84518c55a80576c
1 pkgname=check_multi-git
2 pkgver=20111028
3 pkgrel=1
4 pkgdesc="nagios plugin simillar to NRPE"
5 arch=('i686' 'x86_64')
6 url="http://my-plugin.de/wiki/projects/check_multi/start"
7 license=('GPL')
8 _gitroot='git://github.com/flackem/check_multi'
9 _gitname='check_multi'
11 build() {
12   cd $srcdir
14   if [ -e ${_gitname} ] ; then
15     cd ${_gitname}
16     git pull
17     cd ..
18   else
19     git clone ${_gitroot} ${_gitname}
20   fi
22   cd $srcdir/${_gitname}
24   ./configure --prefix=/usr
25   make all
28 package() {
29   _exe_dest="${pkgdir}/usr/share/nagios/libexec"
31   mkdir -p "${_exe_dest}"
32   cd "$srcdir/${_gitname}"
33   install -m755 plugins/check_multi "${_exe_dest}/"
36 # vim:set ts=2 sw=2 et: