diff options
author | Ross Burton <ross@openedhand.com> | 2007-08-03 18:01:14 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2007-08-03 18:01:14 +0000 |
commit | 3ff099a44e8521863cc7b773314d6c77fef33eb5 (patch) | |
tree | 765878d0f6943a9e93f03c61c444524daebb069a /meta/packages/hal | |
parent | d0bcc8d87f2723a1b6e3dd9231f51d9d3bf3d916 (diff) | |
download | poky-3ff099a44e8521863cc7b773314d6c77fef33eb5.tar.gz |
Install a startup script, fix volatiles. Should now auto-start
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2357 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/hal')
-rwxr-xr-x | meta/packages/hal/files/20hal | 58 | ||||
-rw-r--r-- | meta/packages/hal/files/99_hal | 1 | ||||
-rw-r--r-- | meta/packages/hal/hal_0.5.9.1.bb | 5 | ||||
-rw-r--r-- | meta/packages/hal/hal_git.bb | 3 |
4 files changed, 67 insertions, 0 deletions
diff --git a/meta/packages/hal/files/20hal b/meta/packages/hal/files/20hal new file mode 100755 index 0000000000..ff6ffc2b4c --- /dev/null +++ b/meta/packages/hal/files/20hal | |||
@@ -0,0 +1,58 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | # hal Start the Daemon that stores device informations | ||
4 | # for the Hardware abstraction layer | ||
5 | # | ||
6 | # Written by Martin Waitz based on skeleton code | ||
7 | # written by Miquel van Smoorenburg <miquels@cistron.nl>. | ||
8 | # Modified for Debian | ||
9 | # by Ian Murdock <imurdock@gnu.ai.mit.edu>. | ||
10 | # | ||
11 | |||
12 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | ||
13 | DAEMON=/usr/sbin/hald | ||
14 | PIDDIR=/var/run/hald | ||
15 | PIDFILE=$PIDDIR/hald.pid | ||
16 | NAME=hald | ||
17 | DAEMONUSER=haldaemon | ||
18 | DESC="Hardware abstraction layer" | ||
19 | |||
20 | test -x $DAEMON || exit 0 | ||
21 | |||
22 | set -e | ||
23 | |||
24 | do_start() { | ||
25 | if [ ! -d $PIDDIR ]; then | ||
26 | mkdir -p $PIDDIR | ||
27 | chown $DAEMONUSER:$DAEMONUSER $PIDDIR | ||
28 | fi | ||
29 | echo "Starting $DESC" "$NAME" | ||
30 | start-stop-daemon --start --pidfile $PIDFILE \ | ||
31 | --exec $DAEMON -- $DAEMON_OPTS | ||
32 | } | ||
33 | |||
34 | do_stop() { | ||
35 | echo "Stopping $DESC" "$NAME" | ||
36 | start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE \ | ||
37 | --exec $DAEMON | ||
38 | } | ||
39 | |||
40 | case "$1" in | ||
41 | start) | ||
42 | do_start | ||
43 | ;; | ||
44 | stop) | ||
45 | do_stop | ||
46 | ;; | ||
47 | restart|force-reload) | ||
48 | do_stop | ||
49 | sleep 5 | ||
50 | do_start | ||
51 | ;; | ||
52 | *) | ||
53 | echo "Usage: $0 {start|stop|restart|force-reload}" >&2 | ||
54 | exit 1 | ||
55 | ;; | ||
56 | esac | ||
57 | |||
58 | exit 0 | ||
diff --git a/meta/packages/hal/files/99_hal b/meta/packages/hal/files/99_hal index f3d477231e..c82da990ba 100644 --- a/meta/packages/hal/files/99_hal +++ b/meta/packages/hal/files/99_hal | |||
@@ -1 +1,2 @@ | |||
1 | d root root 0700 /var/run/hald none | 1 | d root root 0700 /var/run/hald none |
2 | d haldaemon haldaemon 0755 /var/cache/hald none | ||
diff --git a/meta/packages/hal/hal_0.5.9.1.bb b/meta/packages/hal/hal_0.5.9.1.bb index 4e3c7ed926..4c1b25aab1 100644 --- a/meta/packages/hal/hal_0.5.9.1.bb +++ b/meta/packages/hal/hal_0.5.9.1.bb | |||
@@ -7,8 +7,11 @@ DEPENDS = "virtual/kernel dbus-glib udev intltool-native expat libusb" | |||
7 | RDEPENDS += "udev hal-info" | 7 | RDEPENDS += "udev hal-info" |
8 | RRECOMMENDS = "udev-utils" | 8 | RRECOMMENDS = "udev-utils" |
9 | 9 | ||
10 | PR = "r1" | ||
11 | |||
10 | SRC_URI = "http://freedesktop.org/~david/dist/hal-${PV}.tar.gz \ | 12 | SRC_URI = "http://freedesktop.org/~david/dist/hal-${PV}.tar.gz \ |
11 | file://sg-inhibit.patch;patch=1 \ | 13 | file://sg-inhibit.patch;patch=1 \ |
14 | file://20hal \ | ||
12 | file://99_hal" | 15 | file://99_hal" |
13 | 16 | ||
14 | S = "${WORKDIR}/hal-${PV}" | 17 | S = "${WORKDIR}/hal-${PV}" |
@@ -30,6 +33,8 @@ EXTRA_OECONF = "--with-hwdata=${datadir}/hwdata \ | |||
30 | do_install_append() { | 33 | do_install_append() { |
31 | install -d ${D}/etc/default/volatiles | 34 | install -d ${D}/etc/default/volatiles |
32 | install -m 0644 ${WORKDIR}/99_hal ${D}/etc/default/volatiles | 35 | install -m 0644 ${WORKDIR}/99_hal ${D}/etc/default/volatiles |
36 | install -d ${D}/etc/dbus-1/event.d | ||
37 | install -m 0755 ${WORKDIR}/20hal ${D}/etc/dbus-1/event.d | ||
33 | } | 38 | } |
34 | 39 | ||
35 | do_stage() { | 40 | do_stage() { |
diff --git a/meta/packages/hal/hal_git.bb b/meta/packages/hal/hal_git.bb index 63e421efa4..e05927e515 100644 --- a/meta/packages/hal/hal_git.bb +++ b/meta/packages/hal/hal_git.bb | |||
@@ -9,6 +9,7 @@ RRECOMMENDS = "udev-utils" | |||
9 | 9 | ||
10 | SRC_URI = "git://anongit.freedesktop.org/hal/;protocol=git \ | 10 | SRC_URI = "git://anongit.freedesktop.org/hal/;protocol=git \ |
11 | file://sg-inhibit.patch;patch=1 \ | 11 | file://sg-inhibit.patch;patch=1 \ |
12 | file://20hal \ | ||
12 | file://99_hal" | 13 | file://99_hal" |
13 | 14 | ||
14 | PV = "0.5.9.1+git${SRCDATE}" | 15 | PV = "0.5.9.1+git${SRCDATE}" |
@@ -33,6 +34,8 @@ EXTRA_OECONF = "--with-hwdata=${datadir}/hwdata \ | |||
33 | do_install_append() { | 34 | do_install_append() { |
34 | install -d ${D}/etc/default/volatiles | 35 | install -d ${D}/etc/default/volatiles |
35 | install -m 0644 ${WORKDIR}/99_hal ${D}/etc/default/volatiles | 36 | install -m 0644 ${WORKDIR}/99_hal ${D}/etc/default/volatiles |
37 | install -d ${D}/etc/dbus-1/event.d | ||
38 | install -m 0755 ${WORKDIR}/20hal ${D}/etc/dbus-1/event.d | ||
36 | } | 39 | } |
37 | 40 | ||
38 | do_stage() { | 41 | do_stage() { |