debian/0000755000000000000000000000000012173001217007160 5ustar debian/fso-deviced-openmoko.install0000644000000000000000000000034212172777257014613 0ustar etc/freesmartphone/conf/openmoko_gta/* etc/freesmartphone/conf/GTA02 etc/freesmartphone/conf/GTA01 usr/lib/*/cornucopia/modules/fsodevice/openmoko_powercontrol.so usr/lib/*/cornucopia/modules/fsodevice/accelerometer_lis302.so debian/fso-deviced-nexusone.install0000644000000000000000000000004312172777257014626 0ustar etc/freesmartphone/conf/nexusone/* debian/fso-deviced-ezx.install0000644000000000000000000000017012172777257013571 0ustar etc/freesmartphone/conf/motorola_ezx/* etc/freesmartphone/conf/MotorolaEZXA1200 etc/freesmartphone/conf/MotorolaEZXA780 debian/fso-deviced-player-canberra.install0000644000000000000000000000007212172777257016033 0ustar usr/lib/*/cornucopia/modules/fsodevice/player_canberra.so debian/rules0000755000000000000000000000101512172777257010264 0ustar #!/usr/bin/make -f export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed %: dh $@ --with quilt --with autoreconf override_dh_auto_configure: find . -name *_vala.stamp | xargs rm -f dh_auto_configure -- --enable-kernel26-rfkill \ --enable-player-canberra --enable-player-gstreamer \ --enable-vala override_dh_auto_test: # test currently fails override_dh_strip: dh_strip --dbg-package=fso-deviced-dbg override_dh_installdocs: dh_installdocs --link-doc=fso-deviced override_dh_autoreconf: dh_autoreconf --as-needed debian/fso-deviced-gta04.install0000644000000000000000000000012712172777257013704 0ustar etc/freesmartphone/conf/GTA04/* usr/lib/*/cornucopia/modules/fsodevice/gta04_quirks.so debian/patches/0000755000000000000000000000000012172777257010636 5ustar debian/patches/openmoko-wifi-2.6.39.patch0000644000000000000000000000137312172777257015203 0ustar Author: Niccolo Rigacci Description: Fix wifi handling with kernel 2.6.34+ This patch fixes wifi power management if kernel 2.6.34 or newer kernels are used. Debian-Bug: http://bugs.debian.org/647003 Last-Update: 2011-10-30 --- a/src/plugins/openmoko_powercontrol/plugin.vala +++ b/src/plugins/openmoko_powercontrol/plugin.vala @@ -181,6 +181,10 @@ if ( !ignore_wifi ) { var wifi = Path.build_filename( drivers, "s3c2440-sdi" ); + if ( !FsoFramework.FileHandling.isPresent( wifi ) ) + { + wifi = Path.build_filename( drivers, "s3c-sdi" ); + } if ( FsoFramework.FileHandling.isPresent( wifi ) ) { var o = new Openmoko.WiFiPowerControl( subsystem, wifi ); debian/patches/fix-pkglibdir.patch0000644000000000000000000000235512172777257014417 0ustar --- a/configure.ac +++ b/configure.ac @@ -23,6 +23,11 @@ AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) +LIBDIR=`eval echo $libdir` +LIBDIR=`eval echo $LIBDIR` +AC_SUBST([LIBDIR]) + + ######################################################################################### # Vala building options -- allows tarball builds without installing vala ######################################################################################### @@ -194,9 +199,23 @@ AM_CONDITIONAL(WANT_DATAFILES, test "${enable_datafiles}" != "no") ######################################################################################### +# gather libdir +######################################################################################### + + +if test "x$LIBDIR" != "xNONE"; then + pkglibdir='${LIBDIR}/cornucopia/modules/fsogsm' + else + pkglibdir='/usr/local/lib/cornucopia/modules/fsogsm' + fi + eval PACKAGE_LIBDIR="${pkglibdir}" + AC_DEFINE_UNQUOTED([PACKAGE_LIBDIR], ["${PACKAGE_LIBDIR}"], [Module directory]) + +######################################################################################### # output ######################################################################################### + AC_CONFIG_FILES([ Makefile vapi/Makefile debian/patches/series0000644000000000000000000000005712172777257012055 0ustar openmoko-wifi-2.6.39.patch fix-pkglibdir.patch debian/control0000644000000000000000000002060712172777257010617 0ustar Source: fso-deviced Section: misc Priority: extra Maintainer: Debian FreeSmartphone.Org Team Uploaders: Heiko Stuebner , Rico Rommel , Sebastian Reichel , Simon Busch Build-Depends: debhelper (>= 9), dh-autoreconf, libcanberra-dev (>= 0.24), libfso-glib-dev (>= 2012.07.27.1), libfsoframework-dev (>= 0.12.0), libgee-dev (>= 0.5.0), libglib2.0-dev (>= 2.26.0), libgstreamer0.10-dev, linux-libc-dev, pkg-config, quilt, valac (>=0.16) Standards-Version: 3.9.4 Homepage: http://freesmartphone.org/ Vcs-Git: git://anonscm.debian.org/pkg-fso/fso-deviced.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-fso/fso-deviced.git;a=summary Package: fso-deviced Architecture: linux-any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, dbus Recommends: fso-deviced-platform Description: freesmartphone.org device daemon fsodeviced implements the freesmartphone.org Device API. . This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. . This package is part of the freesmartphone.org software stack and is targeted for smartphones. Package: fso-deviced-dbg Architecture: linux-any Section: debug Depends: ${misc:Depends}, fso-deviced (= ${binary:Version}), fso-deviced-player-gstreamer (= ${binary:Version}) [linux-any], fso-deviced-player-canberra (= ${binary:Version}) [linux-any], fso-deviced-openmoko (= ${binary:Version}) [armel], fso-deviced-n900 (= ${binary:Version}) [armel armhf], fso-deviced-ezx (= ${binary:Version}) [armel], fso-deviced-nexusone (= ${binary:Version}) [armel armhf] Description: freesmartphone.org device daemon (debug symbols) fsodeviced implements the freesmartphone.org Device API. . This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. . This package provides the debug symbols for the fso-deviced package. Package: fso-deviced-player-gstreamer Architecture: linux-any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, fso-deviced (= ${binary:Version}), gstreamer0.10-alsa Provides: fso-deviced-player Description: Gstreamer player module for fso-deviced fsodeviced implements the freesmartphone.org Device API. . This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. . This package contains the GStreamer player module used by fso-deviced. Package: fso-deviced-player-canberra Architecture: linux-any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, fso-deviced (= ${binary:Version}) Provides: fso-deviced-player Description: Canberra player module for fso-deviced fsodeviced implements the freesmartphone.org Device API. . This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. . This package contains the canberra player module used by fso-deviced. Package: fso-deviced-openmoko Architecture: armel Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, fso-deviced (= ${binary:Version}) Provides: fso-deviced-platform Description: fso-deviced config files and plugins for GTA02 Freerunner and GTA01 fsodeviced implements the freesmartphone.org Device API. . This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. . This package contains all modules and config files needed for Openmoko GTA01 and GTA02 (Freerunner). Package: fso-deviced-n900 Architecture: armel armhf Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, fso-deviced (= ${binary:Version}) Provides: fso-deviced-platform Description: fso-deviced config files and plugins for Nokia 900 fsodeviced implements the freesmartphone.org Device API. . This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. . This package contains all modules and config files needed for the Nokia 900. Package: fso-deviced-ezx Architecture: armel Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, fso-deviced (= ${binary:Version}) Provides: fso-deviced-platform Description: fso-deviced config files and plugins for Motorola EZX-platform fsodeviced implements the freesmartphone.org Device API. . This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. . This package contains all modules and config files needed for Motorola A1200 and A780. Package: fso-deviced-htc Architecture: armel armhf Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, fso-deviced (= ${binary:Version}) Provides: fso-deviced-platform Description: fso-deviced config files and plugins for HTC devices fsodeviced implements the freesmartphone.org Device API. . This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. . This package contains all modules and config files needed for HTC devices. Package: fso-deviced-gta04 Architecture: armel armhf Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, fso-deviced (= ${binary:Version}) Provides: fso-deviced-platform Description: fso-deviced config files and plugins for the GTA04 fsodeviced implements the freesmartphone.org Device API. . This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. . This package contains all modules and config files needed for GTA04 device. Package: fso-deviced-nexusone Architecture: armel armhf Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, fso-deviced (= ${binary:Version}) Provides: fso-deviced-platform Description: fso-deviced config files and plugins for the Nexus One fsodeviced implements the freesmartphone.org Device API. . This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. . This package contains all modules and config files needed for Nexus One device. debian/manpages0000644000000000000000000000002412172777257010721 0ustar debian/fsodeviced.1 debian/fso-deviced.install0000644000000000000000000000137612172777257012776 0ustar etc/dbus-1/system.d/fsodeviced.conf etc/freesmartphone/conf/default/* usr/sbin/* usr/share/dbus-1/system-services/org.freesmartphone.odeviced.service usr/lib/*/cornucopia/modules/fsodevice/libfsodevice.so usr/lib/*/cornucopia/modules/fsodevice/dummy_input.so usr/lib/*/cornucopia/modules/fsodevice/gpio_input.so usr/lib/*/cornucopia/modules/fsodevice/audio.so usr/lib/*/cornucopia/modules/fsodevice/accelerometer.so usr/lib/*/cornucopia/modules/fsodevice/powercontrol_ifconfig.so usr/lib/*/cornucopia/modules/fsodevice/vibrator_ledclass.so usr/lib/*/cornucopia/modules/fsodevice/vibrator_timedoutputclass.so usr/lib/*/cornucopia/modules/fsodevice/kernel*.so usr/lib/*/cornucopia/modules/fsodevice/router_alsa.so usr/lib/*/cornucopia/modules/fsodevice/player_alsa.so debian/changelog0000644000000000000000000000644612172777257011073 0ustar fso-deviced (0.12.0-1) unstable; urgency=low [ Rico Rommel ] * New upstream release * Drop Palm Pre support * Fix pkglibdir for multiarch support * Add package for Nexus One * Update vala build dependencies (Closes: #709715) [ Sebastian Reichel ] * Remove deprecated DM-Upload-Allowed * Update Debian Standards Version to 3.9.4 -- Sebastian Reichel Sun, 21 Jul 2013 17:29:42 +0200 fso-deviced (0.11.4-1) unstable; urgency=low * New upstream release -- Simon Busch Fri, 01 Jun 2012 06:59:54 +0200 fso-deviced (0.11.3-1) unstable; urgency=low [ Sebastian Reichel ] * Add Simon Busch to Uploaders [ Simon Busch ] * New upstrem release -- Simon Busch Wed, 30 May 2012 20:39:53 +0200 fso-deviced (0.11.2-1) unstable; urgency=low * New upstream release * Update Debian Standards Version to 3.9.3 * Build with --as-needed * Build Vala source code * Drop all patches, which have been applied upstream -- Sebastian Reichel Tue, 29 May 2012 20:13:28 +0200 fso-deviced (0.9.5+git20120214-1) unstable; urgency=low * New upstream snapshot * remove openmoko-wifi-2.6.39.patch and ignore-om-gps.patch both included upstream -- Rico Rommel Sat, 03 Mar 2012 21:13:02 +0100 fso-deviced (0.9.5+git20110805-2) unstable; urgency=low * adapt wifi sysfs path for linux 2.6.34, Thanks to Niccolo Rigacci (Closes: #647003) * fix lintian warnings in copyright file -- Rico Rommel Sun, 30 Oct 2011 13:56:03 +0000 fso-deviced (0.9.5+git20110805-1) unstable; urgency=low [ Rico Rommel ] * New upstream snapshot * fixed lintian warnings * bump standards to 3.9.2 * added gps powercontrol * split package * add Rico Rommel to uploaders [ Sebastian Reichel ] * update my mail address * update debian/copyright and use DEP5 * prepare for multi-arch * switch from cdbs to debhelper * remove libdbus* build-dependencies (upstream switched to gdbus) * first upload to Debian (Closes: #640076) * add manpage * add VCS entries in debian/control -- Sebastian Reichel Fri, 02 Sep 2011 01:14:46 +0200 fso-deviced (0+git20100501-1~fso) pkg-fso; urgency=low * New upstream snapshot * Removed vala 0.7.10 and constructor patch - no longer needed. -- Heiko Stuebner Sun, 23 May 2010 16:36:24 +0200 fso-deviced (0+git20100110-2~fso) pkg-fso; urgency=low * Add myself to Uploaders * Debian Standards Version 3.8.3 -> 3.8.4 * Add -dbg package * Add Vala 0.7.10 patch * Add constructor patch from git -- Sebastian Reichel Mon, 22 Feb 2010 02:44:53 +0100 fso-deviced (0+git20100110-1~fso) pkg-fso; urgency=low * New upstream snapshot -- Heiko Stuebner Thu, 14 Jan 2010 21:07:15 +0100 fso-deviced (0+git20090823-1) pkg-fso; urgency=low * New upstream snapshot -- Heiko Stuebner Sun, 23 Aug 2009 21:44:10 +0200 fso-deviced (0+git20090717-1) pkg-fso; urgency=low * New upstream snapshot -- Heiko Stuebner Mon, 20 Jul 2009 17:44:10 +0200 fso-deviced (0+git20090626-1) pkg-fso; urgency=low * Initial release -- Heiko Stuebner Fri, 26 Jun 2009 21:13:10 +0200 debian/watch0000644000000000000000000000015412172777257010240 0ustar version=3 http://downloads.freesmartphone.org/sources/cornucopia/([0-9\.]+)/fsodeviced-([0-9\.]+)\.tar\.bz2 debian/fsodeviced.10000644000000000000000000000302312172777257011402 0ustar .TH FSODEVICED 1 "AUGUST 31, 2011" .\" Please adjust this date whenever revising the manpage. .SH NAME fsodeviced \- FSO device daemon .SH SYNOPSIS .B fsodeviced .SH DESCRIPTION fsodeviced implements the FSO Device DBus API. This API allows peripheral control, such as managing audio, backlight brightness, LEDs, Vibrator, Accelerometer, and power control for devices without dedicated controlling daemon. It can deal with charging notification and RTC, forwarding button events and notifying about the system's idleness status. It also ensures proper high-level suspend and resume preparation for available resources. Although it might be tempting, preparing a GSM modem for suspend can't sanely be handled in kernelspace, since you need to send several AT commands to it in order to prevent bogus wakeups. Which commands exactly is very device and situation specific, hence should be handled by userspace. fsodeviced loads its configuration from /etc/freesmartphone/conf//fsodeviced.conf (platform is detected via /proc/cpuinfo). If this file can't be found it will fallback to /etc/freesmartphone/conf/default/fsodeviced.conf instead. The daemon will be started automatically by DBus, once a request is send to it, but can also be started manually, e.g. via /etc/init.d/fso-deviced. .SH OPTIONS fsodeviced takes no parameters. .SH AUTHOR fsodeviced was written by the FSO Team . .PP This manual page was written by Sebastian Reichel , for the Debian project (but may be used by others). debian/gbp.conf0000644000000000000000000000070512172777257010630 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] # the default build command: #builder = debuild -i -I # the default clean command: #cleaner = debuild clean # the default branch for upstream sources: #upstream-branch = upstream # the default branch for the debian patch: #debian-branch = master # the default tag formats used: #upstream-tag = upstream/%(version)s #debian-tag = debian/%(version)s # use pristine-tar: pristine-tar = True debian/fso-deviced-htc.install0000644000000000000000000000027012172777257013542 0ustar etc/freesmartphone/conf/htc_qualcomm_dream/* etc/freesmartphone/conf/htc_qualcomm_msm/* etc/freesmartphone/conf/htcleo/* usr/lib/*/cornucopia/modules/fsodevice/accelerometer_lis302.so debian/fso-deviced.init.d0000644000000000000000000002132612172777257012512 0ustar #!/bin/sh # Copyright (c) 2007 Javier Fernandez-Sanguino # # This is free software; you may redistribute it and/or modify # it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2, # or (at your option) any later version. # # This is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License with # the Debian operating system, in /usr/share/common-licenses/GPL; if # not, write to the Free Software Foundation, Inc., 59 Temple Place, # Suite 330, Boston, MA 02111-1307 USA # ### BEGIN INIT INFO # Provides: fso-deviced # Required-Start: $remote_fs $syslog dbus # Required-Stop: $remote_fs $syslog dbus # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: freesmartphone.org device daemon # Description: This daemon implements the freesmartphone.org Device API # It is part of the freesmartphone.org software stack and # targeted at smartphones. ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/fsodeviced NAME=fso-deviced DESC="freesmartphone.org device daemon" PIDFILE=/var/run/$NAME.pid test -x $DAEMON || exit 0 . /lib/lsb/init-functions # Default options, these can be overriden by the information # at /etc/default/$NAME DAEMON_OPTS="" # Additional options given to the server DIETIME=10 # Time to wait for the server to die, in seconds # If this value is set too low you might not # let some servers to die gracefully and # 'restart' will not work STARTTIME=2 # Time to wait for the server to start, in seconds # If this value is set each time the server is # started (on start or restart) the script will # stall to try to determine if it is running # If it is not set and the server takes time # to setup a pid file the log message might # be a false positive (says it did not start # when it actually did) #DAEMONUSER=#PACKAGE# # Users to run the daemons as. If this value # is set start-stop-daemon will chuid the server # Include defaults if available if [ -f /etc/default/$NAME ] ; then . /etc/default/$NAME fi # Use this if you want the user to explicitly set 'RUN' in # /etc/default/ #if [ "x$RUN" != "xyes" ] ; then # log_failure_msg "$NAME disabled, please adjust the configuration to your needs " # log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it." # exit 0 #fi # Check that the user exists (if we set a user) # Does the user exist? if [ -n "$DAEMONUSER" ] ; then if getent passwd | grep -q "^$DAEMONUSER:"; then # Obtain the uid and gid DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'` DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'` else log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist." exit 0 fi fi set -e running_pid() { # Check if a given process pid's cmdline matches a given name pid=$1 name=$2 [ -z "$pid" ] && return 1 [ ! -d /proc/$pid ] && return 1 cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` # Is this the expected server [ "$cmd" != "$name" ] && return 1 return 0 } running() { # Check if the process is running looking at /proc # (works for all users) # No pidfile, probably no daemon present [ ! -f "$PIDFILE" ] && return 1 pid=`cat $PIDFILE` running_pid $pid $DAEMON || return 1 return 0 } start_server() { start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \ --background \ --exec $DAEMON errcode=$? return $errcode } stop_server() { # Stop the process using the wrapper if [ -z "$DAEMONUSER" ] ; then killproc -p $PIDFILE $DAEMON errcode=$? else # if we are using a daemonuser then look for process that match start-stop-daemon --stop --quiet --pidfile $PIDFILE \ --user $DAEMONUSER \ --exec $DAEMON errcode=$? fi return $errcode } reload_server() { [ ! -f "$PIDFILE" ] && return 1 pid=pidofproc $PIDFILE # This is the daemon's pid # Send a SIGHUP kill -1 $pid return $? } force_stop() { # Force the process to die killing it manually [ ! -e "$PIDFILE" ] && return if running ; then kill -15 $pid # Is it really dead? sleep "$DIETIME"s if running ; then kill -9 $pid sleep "$DIETIME"s if running ; then echo "Cannot kill $NAME (pid=$pid)!" exit 0 fi fi fi rm -f $PIDFILE } case "$1" in start) log_daemon_msg "Starting $DESC " "$NAME" # Check if it's running first if running ; then log_progress_msg "apparently already running" log_end_msg 0 exit 0 fi if start_server ; then # NOTE: Some servers might die some time after they start, # this code will detect this issue if STARTTIME is set # to a reasonable value [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time if running ; then # It's ok, the server started and is running log_end_msg 0 else # It is not running after we did start log_end_msg 1 fi else # Either we could not start it log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" if running ; then # Only stop the server if we see it running errcode=0 stop_server || errcode=$? log_end_msg $errcode else # If it's not running don't do anything log_progress_msg "apparently not running" log_end_msg 0 exit 0 fi ;; force-stop) # First try to stop gracefully the program $0 stop if running; then # If it's still running try to kill it more forcefully log_daemon_msg "Stopping (force) $DESC" "$NAME" errcode=0 force_stop || errcode=$? log_end_msg $errcode fi ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" errcode=0 stop_server || errcode=$? # Wait some sensible amount, some server need this [ -n "$DIETIME" ] && sleep $DIETIME start_server || errcode=$? [ -n "$STARTTIME" ] && sleep $STARTTIME running || errcode=$? log_end_msg $errcode ;; status) log_daemon_msg "Checking status of $DESC" "$NAME" if running ; then log_progress_msg "running" log_end_msg 0 else log_progress_msg "apparently not running" log_end_msg 1 exit 0 fi ;; # Use this if the daemon cannot reload reload) log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon" log_warning_msg "cannot re-read the config file (use restart)." ;; # And this if it cann #reload) # # If the daemon can reload its config files on the fly # for example by sending it SIGHUP, do it here. # # If the daemon responds to changes in its config file # directly anyway, make this a do-nothing entry. # # log_daemon_msg "Reloading $DESC configuration files" "$NAME" # if running ; then # reload_server # if ! running ; then # Process died after we tried to reload # log_progress_msg "died on reload" # log_end_msg 1 # exit 0 # fi # else # log_progress_msg "server is not running" # log_end_msg 1 # exit 0 # fi #;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/fso-deviced-n900.install0000644000000000000000000000020312172777257013446 0ustar usr/lib/*/cornucopia/modules/fsodevice/n900_quirks.so etc/freesmartphone/conf/nokia_n900/* etc/freesmartphone/conf/NokiaRX-51board debian/copyright0000644000000000000000000000233612172777257011146 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://git.freesmartphone.org/?p=cornucopia.git;a=tree;f=fsodeviced Files: * Copyright: 2009-2011, Michael 'Mickey' Lauer 2009, Sudharshan "Sup3rkiddo" S 2010, Klaus 'mrmoku' Kurzmann 2010, Simon Busch License: LGPL-2.1+ Files: 3rdparty/i2c.h Copyright: 1995-1997, Simon G. Vogl 1998-1999, Frodo Looijaard License: GPL-2+ Files: src/plugins/router_qdsp5/playwav2.c Copyright: 2008, The Android Open Source Project License: Apache-2.0 Files: debian/* Copyright: 2009-2011, Heiko Stuebner License: GPL-2+ License: GPL-2+ On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. License: LGPL-2.1+ On Debian GNU/Linux systems, the complete text of the Lesser GNU General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. License: Apache-2.0 On Debian GNU/Linux systems, the complete text of the Apache License License 2.0 can be found in `/usr/share/common-licenses/Apache-2.0'. debian/fso-deviced-player-gstreamer.install0000644000000000000000000000007312172777257016250 0ustar usr/lib/*/cornucopia/modules/fsodevice/player_gstreamer.so debian/compat0000644000000000000000000000000212172777257010405 0ustar 9 debian/source/0000755000000000000000000000000012172777257010507 5ustar debian/source/format0000644000000000000000000000001412172777257011715 0ustar 3.0 (quilt)