diff options
author | Jan Lübbe <jluebbe@debian.org> | 2008-05-26 21:52:28 +0000 |
---|---|---|
committer | Jan Lübbe <jluebbe@debian.org> | 2008-05-26 21:52:28 +0000 |
commit | f8979030138baa5a83d45de1ecb3d7650422be8c (patch) | |
tree | f5d3dd829890906f59d101fe35461929e171cb7d /packages | |
parent | bda4503b99e409a70d538c3883d067e58f129a4a (diff) |
python-oeventd: add bb-file and update fso-image
Diffstat (limited to 'packages')
-rw-r--r-- | packages/freesmartphone/python-oeventd/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/freesmartphone/python-oeventd/oeventd | 40 | ||||
-rw-r--r-- | packages/freesmartphone/python-oeventd_git.bb | 34 | ||||
-rw-r--r-- | packages/images/fso-image.bb | 5 |
4 files changed, 79 insertions, 0 deletions
diff --git a/packages/freesmartphone/python-oeventd/.mtn2git_empty b/packages/freesmartphone/python-oeventd/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/freesmartphone/python-oeventd/.mtn2git_empty diff --git a/packages/freesmartphone/python-oeventd/oeventd b/packages/freesmartphone/python-oeventd/oeventd new file mode 100644 index 0000000000..8ed467b079 --- /dev/null +++ b/packages/freesmartphone/python-oeventd/oeventd @@ -0,0 +1,40 @@ +#! /bin/sh +# +# odeviced This shell script starts and stops the open event daemon. +# +# chkconfig: 345 90 20 +# description: py-oeventd is the open evend daemon +# processname: python + +PATH=/bin:/usr/bin:/sbin:/usr/sbin +NAME=oeventd + +[ -f /etc/default/rcS ] && . /etc/default/rcS + +case "$1" in + start) + echo -n "Starting open event daemon: " + start-stop-daemon --start --pidfile /var/run/${NAME}.pid --make-pidfile --background -x /usr/bin/oeventd + if [ $? = 0 ]; then + echo "(ok)" + else + echo "(failed)" + fi + ;; + stop) + echo -n "Stopping open event daemon: " + start-stop-daemon --stop --pidfile /var/run/${NAME}.pid --oknodo + rm -f /var/run/${NAME}.pid + echo "(done)" + ;; + restart|force-reload) + $0 stop + $0 start + ;; + *) + echo "Usage: /etc/init.d/oeventd {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 diff --git a/packages/freesmartphone/python-oeventd_git.bb b/packages/freesmartphone/python-oeventd_git.bb new file mode 100644 index 0000000000..2f779058fd --- /dev/null +++ b/packages/freesmartphone/python-oeventd_git.bb @@ -0,0 +1,34 @@ +DESCRIPTION = "The Open Event Daemon Prototype in Python" +HOMEPAGE = "http://www.freesmartphone.org/mediawiki/index.php/Implementations/OpenEventDaemon" +AUTHOR = "Michael 'Mickey' Lauer <mlauer@vanille-media.de>" +SECTION = "console/network" +DEPENDS = "python-cython-native python-pyrex-native" +LICENSE = "GPLv2" +PV = "0.0.0+gitr${SRCREV}" +PR = "r0" + +inherit distutils update-rc.d + +INITSCRIPT_NAME = "oeventd" +INITSCRIPT_PARAMS = "defaults 20" + +SRC_URI = "\ + ${FREESMARTPHONE_GIT}/eventd.git;protocol=git;branch=master \ + file://oeventd \ +" +S = "${WORKDIR}/git" + +do_install_append() { + install -d ${D}${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/oeventd ${D}${sysconfdir}/init.d/ + install -d ${D}${sysconfdir}/dbus-1/system.d/ + mv -f ${D}${datadir}/etc/dbus-1/system.d/oeventd.conf ${D}${sysconfdir}/dbus-1/system.d/ +} + +RDEPENDS_${PN} += "\ + python-dbus \ + python-pygobject \ + python-syslog \ +" + +FILES_${PN} += "${sysconfdir}" diff --git a/packages/images/fso-image.bb b/packages/images/fso-image.bb index 72cbfd71c6..1d90b5c35f 100644 --- a/packages/images/fso-image.bb +++ b/packages/images/fso-image.bb @@ -24,6 +24,7 @@ MICKEY_INSTALL = "\ ZHONE_INSTALL = "\ gsm0710muxd \ python-odeviced \ + python-oeventd \ python-ophoned \ python-ousaged \ zhone \ @@ -50,6 +51,10 @@ IMAGE_INSTALL = "\ \ python-codecs \ \ + openmoko-alsa-scenarios \ + openmoko-sound-system2 \ + openmoko-sound-theme-standard2 \ + \ ${ADD_INSTALL} \ ${MICKEY_INSTALL} \ ${ZHONE_INSTALL} \ |