diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-30 22:15:13 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-30 22:16:10 +0100 |
commit | c0c657bd92911788b96d9670620eabf024453752 (patch) | |
tree | 774a5e2d966d6ee87da17cd063580d5970564d00 /meta-moblin/packages/monit | |
parent | e71a306f9cac8e30e689d607e2092e11a756ef5d (diff) | |
download | poky-c0c657bd92911788b96d9670620eabf024453752.tar.gz |
Split meta-extras and meta-moblin out of the main repository
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta-moblin/packages/monit')
-rw-r--r-- | meta-moblin/packages/monit/monit-4.10.1/init | 42 | ||||
-rw-r--r-- | meta-moblin/packages/monit/monit-4.10.1/nostrip.patch | 13 | ||||
-rw-r--r-- | meta-moblin/packages/monit/monit_4.10.1.bb | 27 |
3 files changed, 0 insertions, 82 deletions
diff --git a/meta-moblin/packages/monit/monit-4.10.1/init b/meta-moblin/packages/monit/monit-4.10.1/init deleted file mode 100644 index 325a552b28..0000000000 --- a/meta-moblin/packages/monit/monit-4.10.1/init +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | # This is an init script for openembedded | ||
4 | # Copy it to /etc/init.d/monit and type | ||
5 | # > update-rc.d monit defaults 99 | ||
6 | # | ||
7 | monit=/usr/bin/monit | ||
8 | pidfile=/var/run/monit.pid | ||
9 | monit_args="-c /etc/monitrc" | ||
10 | |||
11 | test -x "$monit" || exit 0 | ||
12 | |||
13 | case "$1" in | ||
14 | start) | ||
15 | echo -n "Starting Monit" | ||
16 | start-stop-daemon --start --quiet --exec $monit -- $monit_args | ||
17 | RETVAL=$? | ||
18 | echo "." | ||
19 | ;; | ||
20 | stop) | ||
21 | echo -n "Stopping Monit" | ||
22 | start-stop-daemon --stop --quiet --pidfile $pidfile | ||
23 | RETVAL=$? | ||
24 | echo "." | ||
25 | ;; | ||
26 | restart) | ||
27 | $0 stop | ||
28 | $0 start | ||
29 | RETVAL=$? | ||
30 | ;; | ||
31 | status) | ||
32 | $monit $monit_args status | ||
33 | RETVAL=$? | ||
34 | echo "." | ||
35 | ;; | ||
36 | *) | ||
37 | echo "Usage: $0 {start|stop|restart|status}" | ||
38 | exit 1 | ||
39 | esac | ||
40 | |||
41 | exit $RETVAL | ||
42 | |||
diff --git a/meta-moblin/packages/monit/monit-4.10.1/nostrip.patch b/meta-moblin/packages/monit/monit-4.10.1/nostrip.patch deleted file mode 100644 index 95e7eb0f10..0000000000 --- a/meta-moblin/packages/monit/monit-4.10.1/nostrip.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: monit-4.10.1/Makefile.in | ||
2 | =================================================================== | ||
3 | --- monit-4.10.1.orig/Makefile.in 2009-05-24 15:49:03.000000000 +0100 | ||
4 | +++ monit-4.10.1/Makefile.in 2009-05-24 15:49:12.000000000 +0100 | ||
5 | @@ -39,7 +39,7 @@ | ||
6 | MODE_DIRS = 755 | ||
7 | |||
8 | INSTALL = @INSTALL@ | ||
9 | -INSTALL_PROG = $(INSTALL) -m $(MODE_PROGS) -s | ||
10 | +INSTALL_PROG = $(INSTALL) -m $(MODE_PROGS) | ||
11 | INSTALL_FILE = $(INSTALL) -m $(MODE_FILES) | ||
12 | INSTALL_DIR = $(INSTALL) -m $(MODE_DIRS) -d | ||
13 | |||
diff --git a/meta-moblin/packages/monit/monit_4.10.1.bb b/meta-moblin/packages/monit/monit_4.10.1.bb deleted file mode 100644 index 84a6231a2a..0000000000 --- a/meta-moblin/packages/monit/monit_4.10.1.bb +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | LICENSE = "GPL" | ||
2 | DEPENDS = "openssl" | ||
3 | |||
4 | SRC_URI = "http://www.tildeslash.com/monit/dist/monit-${PV}.tar.gz \ | ||
5 | file://nostrip.patch;patch=1 \ | ||
6 | file://init" | ||
7 | |||
8 | PR = "r1" | ||
9 | |||
10 | INITSCRIPT_NAME = "monit" | ||
11 | INITSCRIPT_PARAMS = "defaults 99" | ||
12 | |||
13 | inherit autotools update-rc.d | ||
14 | |||
15 | EXTRA_OECONF = "--with-ssl-lib-dir=${STAGING_LIBDIR} --with-ssl-incl-dir=${STAGING_INCDIR}" | ||
16 | |||
17 | do_install_append() { | ||
18 | install -d ${D}${sysconfdir}/init.d/ | ||
19 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/monit | ||
20 | sed -i 's:# set daemon 120:set daemon 120:' ${S}/monitrc | ||
21 | sed -i 's:include /etc/monit.d/:include /${sysconfdir}/monit.d/:' ${S}/monitrc | ||
22 | install -m 600 ${S}/monitrc ${D}${sysconfdir}/monitrc | ||
23 | install -m 700 -d ${D}${sysconfdir}/monit.d/ | ||
24 | } | ||
25 | |||
26 | CONFFILES_${PN} += "${sysconfdir}/monitrc" | ||
27 | |||