diff options
Diffstat (limited to 'meta-oe/recipes-navigation/gypsy')
-rwxr-xr-x | meta-oe/recipes-navigation/gypsy/files/gypsy-initscript | 61 | ||||
-rw-r--r-- | meta-oe/recipes-navigation/gypsy/gypsy.inc | 13 |
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 | |||
8 | set -e | ||
9 | |||
10 | DESC="Gypsy daemon" | ||
11 | NAME="gypsy-daemon" | ||
12 | DAEMON=/usr/lib/gypsy/$NAME | ||
13 | PIDFILE=/var/run/$NAME.pid | ||
14 | SCRIPTNAME=/etc/init.d/$NAME | ||
15 | USER=root | ||
16 | |||
17 | # Gracefully exit if the package has been removed. | ||
18 | test -x $DAEMON || exit 0 | ||
19 | |||
20 | # | ||
21 | # Function that starts the daemon/service. | ||
22 | # | ||
23 | d_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 | # | ||
31 | d_stop() { | ||
32 | start-stop-daemon --stop --quiet --pidfile $PIDFILE \ | ||
33 | --oknodo --user $USER --exec $DAEMON | ||
34 | } | ||
35 | |||
36 | |||
37 | case "$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 | ;; | ||
59 | esac | ||
60 | |||
61 | exit 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" | |||
8 | SECTION = "console/network" | 8 | SECTION = "console/network" |
9 | DEPENDS = "glib-2.0 dbus bluez4 dbus-glib libxslt-native libxslt" | 9 | DEPENDS = "glib-2.0 dbus bluez4 dbus-glib libxslt-native libxslt" |
10 | 10 | ||
11 | inherit autotools pkgconfig gtk-doc | ||
11 | PACKAGES += "libgypsy" | 12 | PACKAGES += "libgypsy" |
12 | SRC_URI = "file://gypsy-initscript" | ||
13 | |||
14 | inherit autotools pkgconfig gtk-doc update-rc.d | ||
15 | |||
16 | INITSCRIPT_NAME = "gypsy-daemon" | ||
17 | # make sure it starts after X | ||
18 | INITSCRIPT_PARAMS = "start 10 5 3 2 . stop 20 0 1 6 ." | ||
19 | 13 | ||
20 | EXTRA_OECONF += "--with-distro=debian" | 14 | EXTRA_OECONF += "--with-distro=debian" |
21 | 15 | ||
22 | FILES_${PN} = " \ | 16 | FILES_${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} = " \ | |||
30 | FILES_libgypsy = " \ | 23 | FILES_libgypsy = " \ |
31 | ${libdir}/libgypsy${SOLIBS} \ | 24 | ${libdir}/libgypsy${SOLIBS} \ |
32 | " | 25 | " |
33 | |||
34 | do_install_append() { | ||
35 | install -D ${WORKDIR}/gypsy-initscript ${D}/${sysconfdir}/init.d/gypsy-daemon | ||
36 | } | ||