diff --git a/core/monit/.checksums b/core/monit/.checksums new file mode 100644 index 000000000..aa4abdd62 --- /dev/null +++ b/core/monit/.checksums @@ -0,0 +1,2 @@ +6a582b26bcc1be69d565b98b2f183cfb monit-5.27.0.tar.gz +75931a3204d9f63944ace164516ff1f1 run diff --git a/core/monit/.pkgfiles b/core/monit/.pkgfiles new file mode 100644 index 000000000..e222ea088 --- /dev/null +++ b/core/monit/.pkgfiles @@ -0,0 +1,7 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/monit +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/monit.1.gz diff --git a/core/monit/run b/core/monit/run new file mode 100755 index 000000000..9bc0362af --- /dev/null +++ b/core/monit/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec monit -c /etc/monitrc -I diff --git a/core/monit/spkgbuild b/core/monit/spkgbuild new file mode 100644 index 000000000..b04ac09e6 --- /dev/null +++ b/core/monit/spkgbuild @@ -0,0 +1,22 @@ +# description : Utility for monitoring daemons running on a Unix system +# depends : linux-pam zlib openssl + +name=monit +version=5.27.0 +release=1 +source="http://mmonit.com/$name/dist/$name-$version.tar.gz + run" + +build() { + cd $name-$version + + ./configure --prefix=/usr --sysconfdir=/etc + make + make DESTDIR=$PKG install + + install -D -m 0700 monitrc $PKG/etc/monitrc + + # runit service + install -Dm755 $SRC/run $PKG/etc/sv/$name/run + ln -s /run/runit/supervise.$name $PKG/etc/sv/$name/supervise +}