summaryrefslogtreecommitdiff
path: root/community/monit/PKGBUILD
blob: a2370321722f2ad8a2f65c1a8936d792e856f99e (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
30
31
32
33
34
35
36
# $Id: PKGBUILD 106371 2014-03-01 12:19:21Z jlichtblau $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
# Contributor: Marco Bartholomew <marco@marcobartholomew.com>

pkgname=monit
pkgver=5.7
pkgrel=1
pkgdesc="Utility for managing and monitoring, processes, files, directories and devices on a *NIX system"
arch=('i686' 'x86_64')
url="http://mmonit.com/monit/"
license=('GPL3')
depends=('openssl')
backup=('etc/monitrc')
changelog=$pkgname.changelog
source=(http://mmonit.com/$pkgname/dist/$pkgname-$pkgver.tar.gz \
        monit.service)
sha256sums=('38e09bd8b39abc59e6b9a9bb7a78f7eac2b02a92f4de1f3a6dc24e84dfedae0d'
            'cf607209e9e5d39e708152dc181525570371fab750f828e890e2b6a00b81ebc4')

build() {
  cd "${srcdir}"/$pkgname-$pkgver

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver

  make DESTDIR="${pkgdir}" install
  install -D -m700 monitrc "${pkgdir}"/etc/monitrc
  install -D -m644 "${srcdir}"/$pkgname.service "${pkgdir}"/usr/lib/systemd/system/$pkgname.service
}
sha256sums=('bb250ab011d805b5693972afdf95509e79bb3b390caa763275c9501f74b598a2'
            'cf607209e9e5d39e708152dc181525570371fab750f828e890e2b6a00b81ebc4')