summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-06-10 18:53:13 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-06-10 22:26:43 +0200
commit5d10b56c9cbd4fe108e8fa575c934abf53979e16 (patch)
tree03accc9dd919432d5616a2ede1958b2412150c98
parent261c710e5262c4ff5de03b536ae520b2c85daa96 (diff)
downloadmeta-openembedded-5d10b56c9cbd4fe108e8fa575c934abf53979e16.tar.gz
system-tools-backends: add 2.10.2
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r--meta-gnome/recipes-gnome/system-tools/system-tools-backends-2.10.2/add-angstrom-distro.patch41
-rw-r--r--meta-gnome/recipes-gnome/system-tools/system-tools-backends-2.10.2/system-tools-backends74
-rw-r--r--meta-gnome/recipes-gnome/system-tools/system-tools-backends_2.10.2.bb52
3 files changed, 167 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/system-tools/system-tools-backends-2.10.2/add-angstrom-distro.patch b/meta-gnome/recipes-gnome/system-tools/system-tools-backends-2.10.2/add-angstrom-distro.patch
new file mode 100644
index 0000000000..cb03fd86e5
--- /dev/null
+++ b/meta-gnome/recipes-gnome/system-tools/system-tools-backends-2.10.2/add-angstrom-distro.patch
@@ -0,0 +1,41 @@
1From b5084616a3bc2a0d485f43aeae69c6025f3f857e Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Fri, 10 Jun 2011 18:44:21 +0200
4Subject: [PATCH] add support for the angstrom distribtion
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7---
8 Utils/Platform.pm | 3 +++
9 1 files changed, 3 insertions(+), 0 deletions(-)
10
11diff --git a/Utils/Platform.pm b/Utils/Platform.pm
12index fc76360..8b8c770 100644
13--- a/Utils/Platform.pm
14+++ b/Utils/Platform.pm
15@@ -92,6 +92,7 @@ my $PLATFORM_INFO = {
16 "nexenta-1.0" => [ "Nexenta GNU/Solaris", "1.0", "Ellate" ],
17 "yellowdog-4.1" => [ "Yellow Dog Linux", "4.1", "Sagitta" ],
18 "guadalinex-v4" => [ "Guadalinex", "v4", "Toro" ],
19+ "angstrom" => [ "Angstrom", "", "" ],
20 };
21
22 sub get_platform_info
23@@ -143,6 +144,7 @@ sub ensure_distro_map
24 "vine-3.1" => "vine-3.0",
25 "vlos-1.2" => "gentoo",
26 "nexenta-1.0" => "solaris-2.11",
27+ "angstrom" => "debian",
28 );
29
30 return $metamap{$distro} if ($metamap{$distro});
31@@ -375,6 +377,7 @@ sub guess
32 [ \&check_ark ],
33 [ \&check_yoper ],
34 [ \&check_distro_file, "/etc/yellowdog-release", "yellowdog", "^Yellow Dog Linux release (\\S+)" ],
35+ [ \&check_file_exists, "/etc/angstrom-version", "angstrom" ],
36 ],
37 "FreeBSD" => [[ \&check_freebsd ]],
38 "SunOS" => [[ \&check_solaris ]]
39--
401.6.6.1
41
diff --git a/meta-gnome/recipes-gnome/system-tools/system-tools-backends-2.10.2/system-tools-backends b/meta-gnome/recipes-gnome/system-tools/system-tools-backends-2.10.2/system-tools-backends
new file mode 100644
index 0000000000..704c36dbf4
--- /dev/null
+++ b/meta-gnome/recipes-gnome/system-tools/system-tools-backends-2.10.2/system-tools-backends
@@ -0,0 +1,74 @@
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: system-tools-backends
4# Required-Start: $local_fs dbus
5# Required-Stop: $local_fs dbus
6# Should-Start: $syslog
7# Should-Stop: $syslog
8# Default-Start: 2 3 4 5
9# Default-Stop: 1
10# Short-Description: Gnome System Tools Backends
11# Description: The Gnome System Tools Backends daemon handles root-needed
12# operations to configure your machine with the Gnome System
13# Tools.
14### END INIT INFO
15
16PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
17DAEMON=/usr/bin/system-tools-backends
18PIDDIR=/var/run
19PIDFILE=$PIDDIR/system-tools-backends.pid
20NAME=system-tools-backends
21DESC="System Tools Backends"
22
23test -x $DAEMON || exit 0
24
25set -e
26
27do_start() {
28 echo "Starting $DESC"
29 start-stop-daemon --start --startas $DAEMON --quiet --pidfile $PIDFILE
30}
31
32do_stop() {
33 echo "Stopping $DESC"
34 start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE --startas $DAEMON
35}
36
37case "$1" in
38 start)
39 do_start
40 ;;
41 stop)
42 do_stop
43 ;;
44 #reload)
45 #
46 # If the daemon can reload its config files on the fly
47 # for example by sending it SIGHUP, do it here.
48 #
49 # If the daemon responds to changes in its config file
50 # directly anyway, make this a do-nothing entry.
51 #
52 # echo "Reloading $DESC configuration files."
53 # start-stop-daemon --stop --signal 1 --quiet --pidfile \
54 # /var/run/$NAME.pid --exec $DAEMON
55 #;;
56 restart|force-reload)
57 #
58 # If the "reload" option is implemented, move the "force-reload"
59 # option to the "reload" entry above. If not, "force-reload" is
60 # just the same as "restart".
61 #
62 do_stop
63 sleep 5
64 do_start
65 ;;
66 *)
67 N=/etc/init.d/$NAME
68 echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2
69 exit 1
70 ;;
71esac
72
73exit 0
74
diff --git a/meta-gnome/recipes-gnome/system-tools/system-tools-backends_2.10.2.bb b/meta-gnome/recipes-gnome/system-tools/system-tools-backends_2.10.2.bb
new file mode 100644
index 0000000000..ef696f8fe7
--- /dev/null
+++ b/meta-gnome/recipes-gnome/system-tools/system-tools-backends_2.10.2.bb
@@ -0,0 +1,52 @@
1DESCRIPTION = "gnome system tools backends"
2LICENSE = "GPLv3"
3LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
4
5DEPENDS = "dbus dbus-glib glib-2.0 polkit"
6
7inherit gnome pkgconfig update-rc.d gettext
8
9SRC_URI[archive.md5sum] = "edae148b31342aecae035051adc70c74"
10SRC_URI[archive.sha256sum] = "1dbe5177df46a9c7250735e05e77129fe7ec04840771accfa87690111ca2c670"
11
12SRC_URI += " \
13 file://system-tools-backends \
14 "
15
16# This needs to move to meta-angstrom
17SRC_URI_append_angstrom = " \
18 file://add-angstrom-distro.patch \
19 "
20
21EXTRA_OECONF = " --with-net-dbus=${libdir}/perl5 "
22
23do_configure() {
24 rm missing || true
25 automake --add-missing
26 sed -i -e 's:CC=$(CC):CC="$(CC)":g' ${S}/Net-DBus/Makefile.am
27 sed -i -e 's:CC=$(CC):CC="$(CC)":g' ${S}/Net-DBus/Makefile.in
28 libtoolize --force --install
29 aclocal
30 gnu-configize
31 oe_runconf
32 cp ${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool ${S}
33}
34
35do_install_append () {
36 install -d ${D}/${sysconfdir}/init.d
37 install -m 0755 ${WORKDIR}/system-tools-backends ${D}/${sysconfdir}/init.d/
38}
39
40INITSCRIPT_NAME = "system-tools-backends"
41INITSCRIPT_PARAMS = "start 50 2 3 4 5 . stop 70 1 ."
42
43# Shadow added so there is a full adduser/deluser
44# (Gnome images tend to pull in shadow anyway)
45RDEPENDS_${PN} = "shadow"
46
47FILES_${PN} += " ${sysconfdir}/dbus-1/system.d"
48FILES_${PN} += " ${libdir}/pkgconfig"
49FILES_${PN} += " ${datadir}/dbus-1/system-services"
50FILES_${PN} += " ${datadir}/system-tools-backends-2.0/files"
51FILES_${PN} += " ${datadir}/system-tools-backends-2.0/scripts"
52FILES_${PN} += " ${datadir}/polkit*"