diff options
Diffstat (limited to 'community/monit/PKGBUILD')
-rw-r--r-- | community/monit/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/monit/PKGBUILD b/community/monit/PKGBUILD new file mode 100644 index 000000000..48ff45d64 --- /dev/null +++ b/community/monit/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 92063 2013-05-31 02:32:07Z seblu $ +# 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.5 +pkgrel=3 +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=('8276b060b3f0e6453c9748d421dec044ddae09d3e4c4666e13472aab294d7c53' + '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 +} |