summaryrefslogtreecommitdiffstats
path: root/meta-moblin
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-12-02 14:30:31 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-12-02 14:30:31 +0000
commit70203a07239213d60165ba9b2d3e4386c99a510c (patch)
treec6fa19c1ce9f798a6370fb12dcecd510636269c1 /meta-moblin
parent11f0e58005839d5d3c211062b3bc2628fc80fa95 (diff)
downloadpoky-70203a07239213d60165ba9b2d3e4386c99a510c.tar.gz
Move pam, packagekit, monit and gnet to meta-moblin
Diffstat (limited to 'meta-moblin')
-rw-r--r--meta-moblin/packages/gnet/files/buildfix.patch13
-rw-r--r--meta-moblin/packages/gnet/files/configure_fix.patch58
-rw-r--r--meta-moblin/packages/gnet/files/pkgconfig_fix.patch12
-rw-r--r--meta-moblin/packages/gnet/gnet_svn.bb24
-rw-r--r--meta-moblin/packages/monit/monit-4.10.1/init42
-rw-r--r--meta-moblin/packages/monit/monit_4.10.1.bb24
-rw-r--r--meta-moblin/packages/packagekit/files/no_validate.patch21
-rw-r--r--meta-moblin/packages/packagekit/packagekit_0.3.8.bb12
-rw-r--r--meta-moblin/packages/pam/files/disable_crossbinary.patch34
-rw-r--r--meta-moblin/packages/pam/pam_1.0.2.bb29
10 files changed, 269 insertions, 0 deletions
diff --git a/meta-moblin/packages/gnet/files/buildfix.patch b/meta-moblin/packages/gnet/files/buildfix.patch
new file mode 100644
index 0000000000..8067620264
--- /dev/null
+++ b/meta-moblin/packages/gnet/files/buildfix.patch
@@ -0,0 +1,13 @@
1Index: 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-moblin/packages/gnet/files/configure_fix.patch b/meta-moblin/packages/gnet/files/configure_fix.patch
new file mode 100644
index 0000000000..e6aadcc6a9
--- /dev/null
+++ b/meta-moblin/packages/gnet/files/configure_fix.patch
@@ -0,0 +1,58 @@
1Index: 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-moblin/packages/gnet/files/pkgconfig_fix.patch b/meta-moblin/packages/gnet/files/pkgconfig_fix.patch
new file mode 100644
index 0000000000..a4a433f1ce
--- /dev/null
+++ b/meta-moblin/packages/gnet/files/pkgconfig_fix.patch
@@ -0,0 +1,12 @@
1Index: trunk/gnet-2.0.pc.in
2===================================================================
3--- trunk.orig/gnet-2.0.pc.in 2008-11-06 16:41:25.000000000 +0000
4+++ trunk/gnet-2.0.pc.in 2008-11-06 16:42:23.000000000 +0000
5@@ -6,5 +6,6 @@
6 Name: Gnet
7 Description: A network compatibility layer library
8 Version: @VERSION@
9+Requires: glib-2.0 gthread-2.0
10 Libs: -L${libdir} -lgnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ @GLIB_LIBS@ @GTHREAD_LIBS@
11-Cflags: -I${includedir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ -I${libdir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@/include/ @GLIB_CFLAGS@ @GTHREAD_CFLAGS@
12+Cflags: -I${includedir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ -I${libdir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@/include/
diff --git a/meta-moblin/packages/gnet/gnet_svn.bb b/meta-moblin/packages/gnet/gnet_svn.bb
new file mode 100644
index 0000000000..e9ee15531e
--- /dev/null
+++ b/meta-moblin/packages/gnet/gnet_svn.bb
@@ -0,0 +1,24 @@
1DESCRIPTION = "GNet is a simple network library. It is written in C, object-oriented, and built upon GLib."
2LICENSE = "LGPL"
3SECTION = "libs/network"
4HOMEPAGE = "http://www.gnetlibrary.org"
5DEPENDS = "glib-2.0"
6PV = "2.0.7+svnr${SRCREV}"
7PR = "r1"
8
9SRC_URI = "svn://svn.gnome.org/svn/${PN}/;module=trunk;proto=http \
10 file://buildfix.patch;patch=1 \
11 file://configure_fix.patch;patch=1 \
12 file://pkgconfig_fix.patch;patch=1 "
13
14S = "${WORKDIR}/trunk"
15
16EXTRA_OECONF = "--disable-pthreads"
17
18FILES_${PN}-dev += "${libdir}/gnet-2.0"
19
20inherit autotools pkgconfig
21
22do_stage() {
23 autotools_stage_all
24}
diff --git a/meta-moblin/packages/monit/monit-4.10.1/init b/meta-moblin/packages/monit/monit-4.10.1/init
new file mode 100644
index 0000000000..325a552b28
--- /dev/null
+++ b/meta-moblin/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#
7monit=/usr/bin/monit
8pidfile=/var/run/monit.pid
9monit_args="-c /etc/monitrc"
10
11test -x "$monit" || exit 0
12
13case "$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
39esac
40
41exit $RETVAL
42
diff --git a/meta-moblin/packages/monit/monit_4.10.1.bb b/meta-moblin/packages/monit/monit_4.10.1.bb
new file mode 100644
index 0000000000..bb18491c5d
--- /dev/null
+++ b/meta-moblin/packages/monit/monit_4.10.1.bb
@@ -0,0 +1,24 @@
1LICENSE = "GPL"
2DEPENDS = "openssl"
3
4SRC_URI = "http://www.tildeslash.com/monit/dist/monit-${PV}.tar.gz\
5 file://init"
6
7INITSCRIPT_NAME = "monit"
8INITSCRIPT_PARAMS = "defaults 99"
9
10inherit autotools update-rc.d
11
12EXTRA_OECONF = "--with-ssl-lib-dir=${STAGING_LIBDIR} --with-ssl-incl-dir=${STAGING_INCDIR}"
13
14do_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
23CONFFILES_${PN} += "${sysconfdir}/monitrc"
24
diff --git a/meta-moblin/packages/packagekit/files/no_validate.patch b/meta-moblin/packages/packagekit/files/no_validate.patch
new file mode 100644
index 0000000000..f987b567df
--- /dev/null
+++ b/meta-moblin/packages/packagekit/files/no_validate.patch
@@ -0,0 +1,21 @@
1Index: PackageKit-0.3.8/configure.ac
2===================================================================
3--- PackageKit-0.3.8.orig/configure.ac 2008-11-04 21:37:17.000000000 +0000
4+++ PackageKit-0.3.8/configure.ac 2008-11-04 21:37:57.000000000 +0000
5@@ -451,11 +451,11 @@
6 polkit-grant >= $POLKIT_GRANT_REQUIRED)
7 AC_SUBST(POLKIT_CFLAGS)
8 AC_SUBST(POLKIT_LIBS)
9- AC_CHECK_PROG([POLKIT_POLICY_FILE_VALIDATE],
10- [polkit-policy-file-validate], [polkit-policy-file-validate])
11- if test -z "$POLKIT_POLICY_FILE_VALIDATE"; then
12- AC_MSG_ERROR([polkit-policy-file-validate not found])
13- fi
14+ #AC_CHECK_PROG([POLKIT_POLICY_FILE_VALIDATE],
15+ # [polkit-policy-file-validate], [polkit-policy-file-validate])
16+ #if test -z "$POLKIT_POLICY_FILE_VALIDATE"; then
17+ # AC_MSG_ERROR([polkit-policy-file-validate not found])
18+ #fi
19 AC_DEFINE(USE_SECURITY_POLKIT, 1, [if we should use PolicyKit])
20 elif test x$with_security_framework = xdummy; then
21 AC_DEFINE(USE_SECURITY_DUMMY, 1, [if we should use a dummy security framework])
diff --git a/meta-moblin/packages/packagekit/packagekit_0.3.8.bb b/meta-moblin/packages/packagekit/packagekit_0.3.8.bb
new file mode 100644
index 0000000000..a38f53685b
--- /dev/null
+++ b/meta-moblin/packages/packagekit/packagekit_0.3.8.bb
@@ -0,0 +1,12 @@
1HOMEPAGE = "http://www.packagekit.org/"
2PR = "r6"
3
4SRC_URI = "http://www.packagekit.org/releases/PackageKit-0.3.8.tar.gz \
5 file://no_validate.patch;patch=1 "
6
7DEPENDS = "python policykit pam"
8EXTRA_OECONF = "--disable-qt --disable-tests --enable-yum --with-default-backend=yum --disable-local --with-security-framework=polkit --disable-gstreamer-plugin"
9
10S = "${WORKDIR}/PackageKit-${PV}"
11
12inherit autotools pkgconfig
diff --git a/meta-moblin/packages/pam/files/disable_crossbinary.patch b/meta-moblin/packages/pam/files/disable_crossbinary.patch
new file mode 100644
index 0000000000..43359b08fe
--- /dev/null
+++ b/meta-moblin/packages/pam/files/disable_crossbinary.patch
@@ -0,0 +1,34 @@
1padout should be compiled using the native compiler but isn't.
2Disable this piece of documentation for now.
3
4RP
5
6Index: Linux-PAM-1.0.2/doc/specs/Makefile.am
7===================================================================
8--- Linux-PAM-1.0.2.orig/doc/specs/Makefile.am 2008-11-04 21:06:23.000000000 +0000
9+++ Linux-PAM-1.0.2/doc/specs/Makefile.am 2008-11-04 21:07:06.000000000 +0000
10@@ -2,21 +2,8 @@
11 # Copyright (c) 2005, 2006 Thorsten Kukuk <kukuk@suse.de>
12 #
13
14-CLEANFILES = draft-morgan-pam-current.txt *~
15+CLEANFILES = *~
16
17-EXTRA_DIST = draft-morgan-pam.raw std-agent-id.raw rfc86.0.txt
18+EXTRA_DIST = std-agent-id.raw rfc86.0.txt
19
20-draft-morgan-pam-current.txt: padout draft-morgan-pam.raw
21- ./padout < $(srcdir)/draft-morgan-pam.raw > draft-morgan-pam-current.txt
22-
23-AM_YFLAGS = -d
24-
25-BUILT_SOURCES = parse_y.h
26-
27-noinst_PROGRAMS = padout
28-
29-padout_SOURCES = parse_l.l parse_y.y
30-
31-padout_LDADD = @LEXLIB@
32-
33-doc_DATA = draft-morgan-pam-current.txt rfc86.0.txt
34+doc_DATA = rfc86.0.txt
diff --git a/meta-moblin/packages/pam/pam_1.0.2.bb b/meta-moblin/packages/pam/pam_1.0.2.bb
new file mode 100644
index 0000000000..2a91414d7e
--- /dev/null
+++ b/meta-moblin/packages/pam/pam_1.0.2.bb
@@ -0,0 +1,29 @@
1HOMEPAGE = "http://www.kernel.org/pub/linux/libs/pam/"
2PR = "r7"
3
4SRC_URI = "http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-1.0.2.tar.bz2 \
5 file://disable_crossbinary.patch;patch=1 "
6
7EXTRA_OECONF = "--with-db-uniquename=_pam \
8 --includedir=${includedir}/security \
9 --libdir=/lib"
10DEPENDS = "bison flex"
11CFLAGS_append = " -fPIC "
12
13S = "${WORKDIR}/Linux-PAM-${PV}"
14
15inherit autotools pkgconfig
16
17
18do_stage() {
19 autotools_stage_all
20}
21
22FILES_${PN}-dbg += "${base_libdir}/security/.debug"
23FILES_${PN}-dbg += "${base_libdir}/security/pam_filter/.debug"
24FILES_${PN} += "${base_libdir}/security/*.so"
25FILES_${PN} += "${base_libdir}/security/pam_filter/upperLOWER"
26FILES_${PN} += "${base_libdir}/security/*.so"
27FILES_${PN}-dev += "${base_libdir}/security/*.la"
28FILES_${PN}-dev += "${base_libdir}/*.la"
29FILES_${PN} += "${base_libdir}/*.so*"