diff options
-rw-r--r-- | meta/packages/gnet/files/buildfix.patch | 13 | ||||
-rw-r--r-- | meta/packages/gnet/files/configure_fix.patch | 58 | ||||
-rw-r--r-- | meta/packages/gnet/gnet_svn.bb | 22 | ||||
-rw-r--r-- | meta/packages/libexif/libexif_0.6.16.bb | 18 | ||||
-rw-r--r-- | meta/packages/monit/monit-4.10.1/init | 42 | ||||
-rw-r--r-- | meta/packages/monit/monit_4.10.1.bb | 24 |
6 files changed, 177 insertions, 0 deletions
diff --git a/meta/packages/gnet/files/buildfix.patch b/meta/packages/gnet/files/buildfix.patch new file mode 100644 index 0000000000..8067620264 --- /dev/null +++ b/meta/packages/gnet/files/buildfix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: gnet/examples/Makefile.am | ||
2 | =================================================================== | ||
3 | --- gnet.orig/examples/Makefile.am | ||
4 | +++ gnet/examples/Makefile.am | ||
5 | @@ -2,7 +2,7 @@ | ||
6 | |||
7 | @SET_MAKE@ | ||
8 | |||
9 | -SUBDIRS = xmlrpc | ||
10 | +SUBDIRS = | ||
11 | |||
12 | if OS_WIN32 | ||
13 | noinst_PROGRAMS = echoclient echoserver \ | ||
diff --git a/meta/packages/gnet/files/configure_fix.patch b/meta/packages/gnet/files/configure_fix.patch new file mode 100644 index 0000000000..e6aadcc6a9 --- /dev/null +++ b/meta/packages/gnet/files/configure_fix.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | Index: trunk/configure.ac | ||
2 | =================================================================== | ||
3 | --- trunk.orig/configure.ac | ||
4 | +++ trunk/configure.ac | ||
5 | @@ -332,53 +332,6 @@ AC_DEFINE_UNQUOTED(GNET_SOCKADDR_FAMILY_ | ||
6 | [$gnet_sockaddr_family_field_name], | ||
7 | [Name of sockaddr_storage family field]) | ||
8 | |||
9 | -dnl ####################################### | ||
10 | -dnl Check if abstract sockets are supported | ||
11 | -dnl ####################################### | ||
12 | - | ||
13 | -AC_LANG_PUSH(C) | ||
14 | -AC_CACHE_CHECK([for abstract socket namespace availability], | ||
15 | - ac_cv_gnet_have_abstract_sockets, | ||
16 | - [AC_RUN_IFELSE([AC_LANG_PROGRAM( | ||
17 | -[[ | ||
18 | -#include <sys/types.h> | ||
19 | -#include <stdlib.h> | ||
20 | -#include <string.h> | ||
21 | -#include <stdio.h> | ||
22 | -#include <sys/socket.h> | ||
23 | -#include <sys/un.h> | ||
24 | -#include <errno.h> | ||
25 | -]], | ||
26 | -[[ | ||
27 | - int listen_fd, len; | ||
28 | - struct sockaddr_un addr; | ||
29 | - | ||
30 | - listen_fd = socket (PF_UNIX, SOCK_STREAM, 0); | ||
31 | - if (listen_fd < 0) { | ||
32 | - perror ("socket() failed: "); | ||
33 | - exit (1); | ||
34 | - } | ||
35 | - memset (&addr, '\0', sizeof (addr)); | ||
36 | - addr.sun_family = AF_UNIX; | ||
37 | - strcpy (addr.sun_path, "X/tmp/gnet-fake-socket-path-used-in-configure-test"); | ||
38 | - len = SUN_LEN (&addr); /* calculate size before adding the \0 */ | ||
39 | - addr.sun_path[0] = '\0'; /* this is what makes it abstract */ | ||
40 | - | ||
41 | - if (bind (listen_fd, (struct sockaddr*) &addr, len) < 0) { | ||
42 | - perror ("Abstract socket namespace bind() failed: "); | ||
43 | - exit (1); | ||
44 | - } | ||
45 | - exit (0); | ||
46 | -]])], | ||
47 | - [ac_cv_gnet_have_abstract_sockets=yes], | ||
48 | - [ac_cv_gnet_have_abstract_sockets=no] | ||
49 | -)]) | ||
50 | -AC_LANG_POP(C) | ||
51 | - | ||
52 | -if test x$ac_cv_gnet_have_abstract_sockets = xyes ; then | ||
53 | - AC_DEFINE(HAVE_ABSTRACT_SOCKETS,1,[Have abstract socket namespace]) | ||
54 | -fi | ||
55 | - | ||
56 | ############################### | ||
57 | # Compiler characteristics | ||
58 | AC_C_CONST | ||
diff --git a/meta/packages/gnet/gnet_svn.bb b/meta/packages/gnet/gnet_svn.bb new file mode 100644 index 0000000000..5ed604d690 --- /dev/null +++ b/meta/packages/gnet/gnet_svn.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | DESCRIPTION = "GNet is a simple network library. It is written in C, object-oriented, and built upon GLib." | ||
2 | LICENSE = "LGPL" | ||
3 | SECTION = "libs/network" | ||
4 | HOMEPAGE = "http://www.gnetlibrary.org" | ||
5 | DEPENDS = "glib-2.0" | ||
6 | PV = "2.0.7+svn${SRCDATE}" | ||
7 | |||
8 | SRC_URI = "svn://svn.gnome.org/svn/${PN}/;module=trunk \ | ||
9 | file://buildfix.patch;patch=1 \ | ||
10 | file://configure_fix.patch;patch=1" | ||
11 | |||
12 | S = "${WORKDIR}/trunk" | ||
13 | |||
14 | EXTRA_OECONF = "--disable-pthreads" | ||
15 | |||
16 | FILES_${PN}-dev += "${libdir}/gnet-2.0" | ||
17 | |||
18 | inherit autotools pkgconfig | ||
19 | |||
20 | do_stage() { | ||
21 | autotools_stage_all | ||
22 | } | ||
diff --git a/meta/packages/libexif/libexif_0.6.16.bb b/meta/packages/libexif/libexif_0.6.16.bb new file mode 100644 index 0000000000..2f896352db --- /dev/null +++ b/meta/packages/libexif/libexif_0.6.16.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | DESCRIPTION = "Library to read the extended image information (EXIF) from JPEG pictures" | ||
2 | HOMEPAGE = "http://sourceforge.net/projects/libexif" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPL" | ||
5 | |||
6 | SRC_URI = "${SOURCEFORGE_MIRROR}/libexif/libexif-${PV}.tar.bz2" | ||
7 | |||
8 | inherit autotools | ||
9 | |||
10 | do_configure_append() { | ||
11 | sed -i s:doc\ binary:binary:g Makefile | ||
12 | } | ||
13 | |||
14 | AUTOTOOLS_STAGE_PKGCONFIG = "1" | ||
15 | |||
16 | do_stage() { | ||
17 | autotools_stage_all | ||
18 | } | ||
diff --git a/meta/packages/monit/monit-4.10.1/init b/meta/packages/monit/monit-4.10.1/init new file mode 100644 index 0000000000..325a552b28 --- /dev/null +++ b/meta/packages/monit/monit-4.10.1/init | |||
@@ -0,0 +1,42 @@ | |||
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/packages/monit/monit_4.10.1.bb b/meta/packages/monit/monit_4.10.1.bb new file mode 100644 index 0000000000..bb18491c5d --- /dev/null +++ b/meta/packages/monit/monit_4.10.1.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | LICENSE = "GPL" | ||
2 | DEPENDS = "openssl" | ||
3 | |||
4 | SRC_URI = "http://www.tildeslash.com/monit/dist/monit-${PV}.tar.gz\ | ||
5 | file://init" | ||
6 | |||
7 | INITSCRIPT_NAME = "monit" | ||
8 | INITSCRIPT_PARAMS = "defaults 99" | ||
9 | |||
10 | inherit autotools update-rc.d | ||
11 | |||
12 | EXTRA_OECONF = "--with-ssl-lib-dir=${STAGING_LIBDIR} --with-ssl-incl-dir=${STAGING_INCDIR}" | ||
13 | |||
14 | do_install_append() { | ||
15 | install -d ${D}${sysconfdir}/init.d/ | ||
16 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/monit | ||
17 | sed -i 's:# set daemon 120:set daemon 120:' ${S}/monitrc | ||
18 | sed -i 's:include /etc/monit.d/:include /${sysconfdir}/monit.d/:' ${S}/monitrc | ||
19 | install -m 600 ${S}/monitrc ${D}${sysconfdir}/monitrc | ||
20 | install -m 700 -d ${D}${sysconfdir}/monit.d/ | ||
21 | } | ||
22 | |||
23 | CONFFILES_${PN} += "${sysconfdir}/monitrc" | ||
24 | |||