summaryrefslogtreecommitdiff
path: root/recipes-extended/monit/monit_5.21.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/monit/monit_5.21.0.bb')
-rw-r--r--recipes-extended/monit/monit_5.21.0.bb43
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-extended/monit/monit_5.21.0.bb b/recipes-extended/monit/monit_5.21.0.bb
new file mode 100644
index 0000000..ddd2ea9
--- /dev/null
+++ b/recipes-extended/monit/monit_5.21.0.bb
@@ -0,0 +1,43 @@
+DESCRIPTION = "Monit"
+HOMEPAGE = "http://mmonit.com/"
+LICENSE = "AGPL-3.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=ea116a7defaf0e93b3bb73b2a34a3f51"
+DEPENDS = "libpam"
+
+PR = "r1"
+
+SRC_URI = "http://mmonit.com/monit/dist/monit-5.12.2.tar.gz \
+ file://monitrc \
+ file://monit.init \
+ file://monit.default \
+ "
+
+SRC_URI[md5sum] = "5f5cf4c18b42e8091b49b4e07cf972ce"
+SRC_URI[sha256sum] = "8ab0296d1aa2351b1573481592d7b5e06de1edd49dff1b5552839605a450914c"
+
+inherit autotools
+
+EXTRA_OECONF += "--with-ssl-lib-dir=${STAGING_LIBDIR} \
+ --with-ssl-incl-dir=${STAGING_INCDIR} \
+ "
+
+EXTRA_OECONF_append_armv5 = " libmonit_cv_setjmp_available=yes libmonit_cv_vsnprintf_c99_conformant=yes "
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "monit"
+INITSCRIPT_PARAMS = "defaults 99 10"
+
+do_install_append() {
+ install -d ${D}${sysconfdir}
+ install -d ${D}${sysconfdir}/monit.d
+ install -m 0600 ${WORKDIR}/monitrc ${D}${sysconfdir}/
+
+ install -d ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/monit.init ${D}${sysconfdir}/init.d/monit
+
+ install -d ${D}${sysconfdir}/default
+ install -m 0644 ${WORKDIR}/monit.default ${D}${sysconfdir}/default/monit
+}
+
+CONFFILES_${PN} += "${sysconfdir}/monitrc ${sysconfdir}/default/monit"