summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorFelipe F. Tonello <eu@felipetonello.com>2013-10-08 21:58:15 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-10-14 14:27:36 +0200
commitff73480f103c4507586139b1b130fa319a39f228 (patch)
treee357876de76d29b7d6d111e33d83e134b6ea8ad1 /meta-oe
parent7ecbba2d92d40bed911b568040155d2f87e4bf35 (diff)
downloadmeta-openembedded-ff73480f103c4507586139b1b130fa319a39f228.tar.gz
Revert "gypsy: Added init script"
This reverts commit 13f540c5a98d3a64b41117db9cf554956eebafe9. This daemon is called by dbus when I client connects to it. So it's not necessary to have the init script. This patch would be useful if we add the init script as a separeted package. But for now we can remove it. Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rwxr-xr-xmeta-oe/recipes-navigation/gypsy/files/gypsy-initscript61
-rw-r--r--meta-oe/recipes-navigation/gypsy/gypsy.inc13
2 files changed, 1 insertions, 73 deletions
diff --git a/meta-oe/recipes-navigation/gypsy/files/gypsy-initscript b/meta-oe/recipes-navigation/gypsy/files/gypsy-initscript
deleted file mode 100755
index c3c94e54f..000000000
--- a/meta-oe/recipes-navigation/gypsy/files/gypsy-initscript
+++ /dev/null
@@ -1,61 +0,0 @@
1#! /bin/sh
2#
3# based on gypsy-example-initscript in gypsy repository
4# there are some little modifications to work with OE based distros
5# []' Felipe Tonello eu@felipetonello.com
6#
7
8set -e
9
10DESC="Gypsy daemon"
11NAME="gypsy-daemon"
12DAEMON=/usr/lib/gypsy/$NAME
13PIDFILE=/var/run/$NAME.pid
14SCRIPTNAME=/etc/init.d/$NAME
15USER=root
16
17# Gracefully exit if the package has been removed.
18test -x $DAEMON || exit 0
19
20#
21# Function that starts the daemon/service.
22#
23d_start() {
24 start-stop-daemon --start --quiet --pidfile $PIDFILE \
25 --user $USER --exec $DAEMON -- $DAEMON_OPTS
26}
27
28#
29# Function that stops the daemon/service.
30#
31d_stop() {
32 start-stop-daemon --stop --quiet --pidfile $PIDFILE \
33 --oknodo --user $USER --exec $DAEMON
34}
35
36
37case "$1" in
38 start)
39 echo -n "Starting $DESC: $NAME"
40 d_start
41 echo "."
42 ;;
43 stop)
44 echo -n "Stopping $DESC: $NAME"
45 d_stop
46 echo "."
47 ;;
48 restart|force-reload)
49 echo -n "Restarting $DESC: $NAME"
50 d_stop
51 sleep 1
52 d_start
53 echo "."
54 ;;
55 *)
56 echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
57 exit 1
58 ;;
59esac
60
61exit 0
diff --git a/meta-oe/recipes-navigation/gypsy/gypsy.inc b/meta-oe/recipes-navigation/gypsy/gypsy.inc
index 1f50d7956..747b61d23 100644
--- a/meta-oe/recipes-navigation/gypsy/gypsy.inc
+++ b/meta-oe/recipes-navigation/gypsy/gypsy.inc
@@ -8,20 +8,13 @@ LICENSE = "GPLv2.0 & LGPLv2.1"
8SECTION = "console/network" 8SECTION = "console/network"
9DEPENDS = "glib-2.0 dbus bluez4 dbus-glib libxslt-native libxslt" 9DEPENDS = "glib-2.0 dbus bluez4 dbus-glib libxslt-native libxslt"
10 10
11inherit autotools pkgconfig gtk-doc
11PACKAGES += "libgypsy" 12PACKAGES += "libgypsy"
12SRC_URI = "file://gypsy-initscript"
13
14inherit autotools pkgconfig gtk-doc update-rc.d
15
16INITSCRIPT_NAME = "gypsy-daemon"
17# make sure it starts after X
18INITSCRIPT_PARAMS = "start 10 5 3 2 . stop 20 0 1 6 ."
19 13
20EXTRA_OECONF += "--with-distro=debian" 14EXTRA_OECONF += "--with-distro=debian"
21 15
22FILES_${PN} = " \ 16FILES_${PN} = " \
23 ${sysconfdir}/gypsy.conf \ 17 ${sysconfdir}/gypsy.conf \
24 ${sysconfdir}/init.d/gypsy-daemon \
25 ${sysconfdir}/dbus-1 \ 18 ${sysconfdir}/dbus-1 \
26 ${libexecdir}/gypsy-daemon \ 19 ${libexecdir}/gypsy-daemon \
27 ${datadir}/dbus-1 \ 20 ${datadir}/dbus-1 \
@@ -30,7 +23,3 @@ FILES_${PN} = " \
30FILES_libgypsy = " \ 23FILES_libgypsy = " \
31 ${libdir}/libgypsy${SOLIBS} \ 24 ${libdir}/libgypsy${SOLIBS} \
32" 25"
33
34do_install_append() {
35 install -D ${WORKDIR}/gypsy-initscript ${D}/${sysconfdir}/init.d/gypsy-daemon
36}