summaryrefslogtreecommitdiff
path: root/community/monit/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/monit/PKGBUILD')
-rw-r--r--community/monit/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/monit/PKGBUILD b/community/monit/PKGBUILD
new file mode 100644
index 000000000..c38ca3931
--- /dev/null
+++ b/community/monit/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 42862 2011-03-21 21:28:35Z 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.2.4
+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 \
+ monitd)
+sha256sums=('feabdd2c0e3263eadaf5359841b92a9e6d4824819b1df7b2b49d9727a849b4cf'
+ 'b235b2fdeec49015d6b74f028d161b289663692f9ee2d2d78cf52d8db87ca496')
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ ./configure --prefix=/usr
+
+ make
+}
+
+package() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ make DESTDIR=${pkgdir} install
+
+ install -D -m755 ${srcdir}/monitd ${pkgdir}/etc/rc.d/monitd
+ install -D -m700 monitrc ${pkgdir}/etc/monitrc
+}