debian/ 0000755 0000000 0000000 00000000000 12212502237 007162 5 ustar debian/phonefsod.init 0000644 0000000 0000000 00000001655 12212501647 012047 0 ustar #!/bin/sh
### BEGIN INIT INFO
# Provides: phonefsod
# Required-Start: dbus $remote_fs
# Required-Stop: dbus $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: SHR Phone FSO daemon
# Description: phonefsod is the connection between phoneuid and
# the services specified by freesmartphone.org
### END INIT INFO
PATH=/bin:/usr/bin:/sbin:/usr/sbin
NAME=phonefsod
DESC="SHR Phone FSO daemon"
. /lib/lsb/init-functions
case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid --exec /usr/sbin/${NAME}
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid
log_end_msg $?
;;
restart|force-reload)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
debian/phonefsod.conf 0000644 0000000 0000000 00000000447 12212501647 012027 0 ustar
debian/rules 0000755 0000000 0000000 00000000743 12212501647 010252 0 ustar #!/usr/bin/make -f
%:
dh $@ --with quilt --with autoreconf
# build to tmp location even if it's a single package
DEB_DESTDIR = $(CURDIR)/debian/tmp
override_dh_autoreconf:
dh_autoreconf
override_dh_install:
mkdir -p debian/phonefsod/usr/sbin
mv debian/phonefsod/usr/bin/phonefsod debian/phonefsod/usr/sbin/phonefsod
rm -rf debian/phonefsod/usr/bin
override_dh_installchangelogs:
# remove unneeded changelog
dh_installchangelogs -X ChangeLog
override_dh_clean:
dh_clean
debian/patches/ 0000755 0000000 0000000 00000000000 12212501647 010615 5 ustar debian/patches/no-output-before-daemonization.patch 0000644 0000000 0000000 00000001362 12212501647 017711 0 ustar Description: remove all output before daemonization
Remove all output before daemonization, so that the
init.d startup looks clean.
Author: Sebastian Reichel
--- a/src/phonefsod.c
+++ b/src/phonefsod.c
@@ -754,9 +754,6 @@
gd_pch_effective_userid = userinfo->pw_name;
}
- g_message("%s-%s is in startup mode as user(%s)",
- PACKAGE_NAME, PACKAGE_VERSION, gd_pch_effective_userid);
-
/* daemonize */
if (!i_debug) {
switch (_daemonize(gd_pch_pid_filename)) {
@@ -796,6 +793,11 @@
_load_config();
+ g_message("%s-%s is in startup mode as user(%s)",
+ PACKAGE_NAME, PACKAGE_VERSION, gd_pch_effective_userid);
+
+
+
if (!phonefsod_dbus_setup()) {
g_option_context_free(context);
g_main_loop_unref(main_loop);
debian/patches/series 0000644 0000000 0000000 00000000073 12212501647 012032 0 ustar no-output-before-daemonization.patch
hardening-fixes.patch
debian/patches/hardening-fixes.patch 0000644 0000000 0000000 00000001522 12212501647 014711 0 ustar --- a/src/phonefsod.c
+++ b/src/phonefsod.c
@@ -393,7 +393,7 @@
g_debug("Configuration file read");
}
else {
- g_warning(error->message);
+ g_warning("%s", error->message);
g_error_free(error);
}
@@ -733,7 +733,6 @@
struct passwd *userinfo = NULL;
/* initialize threading and mainloop */
- g_type_init();
main_loop = g_main_loop_new (NULL, FALSE);
/* handle command line arguments */
@@ -780,8 +779,8 @@
pthread_sigmask (SIG_BLOCK, &signal_set, NULL);
/* create the signal handling thread */
- sig_thread = g_thread_create ((GThreadFunc)_thread_handle_signals,
- main_loop, TRUE, &gerror);
+ sig_thread = g_thread_new ("sig-handler", (GThreadFunc)_thread_handle_signals,
+ main_loop);
if (gerror != NULL) {
g_message("Create signal thread failed: %s", gerror->message);
g_error_free(gerror);
debian/control 0000644 0000000 0000000 00000002313 12212501647 010570 0 ustar Source: phonefsod
Section: misc
Priority: extra
Maintainer: Debian freesmartphone.org Team
Uploaders: Sebastian Reichel , Rico Rommel
Build-Depends: debhelper (>= 9),
dh-autoreconf,
libfso-glib-dev (>= 2011.06.01.1),
libfsoframework-dev (>= 0.12),
libglib2.0-dev (>= 2.29.3),
libshr-glib-dev,
quilt
Standards-Version: 3.9.4
Homepage: http://www.shr-project.org
Vcs-git: git://anonscm.debian.org/pkg-fso/phonefsod.git
Vcs-browser: http://anonscm.debian.org/gitweb/?p=pkg-fso/phonefsod.git
Package: phonefsod
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
dbus,
fso-deviced,
fso-frameworkd,
fso-gsmd,
fso-usaged
Suggests: phoneuid
Description: SHR daemon for freesmartphone.org interaction
This package contributes to the SHR mobile phone suite. It offers SHR's
phonefsod, which is the communication platform between phoneuid and
FSO's services. The latter performs the communication with the hardware,
while this phonefsod handles the FSO's events and displays messages
with phoneuid.
debian/manpages 0000644 0000000 0000000 00000000023 12212501647 010677 0 ustar debian/phonefsod.1
debian/changelog 0000644 0000000 0000000 00000007272 12212501647 011050 0 ustar phonefsod (0.1+git20121018-1) unstable; urgency=low
* New upstream snapshot (Closes: #713550)
* Drop debian/patches/remove-invidiual-glib-header-includes.patch
(applied upstream)
* Drop debian/patches/fix-ld-as-needed.patch
(applied upstream)
* Update Debian Standards Version to 3.9.4
* Remove deprecated DM-Upload-Allowed field
* Use compat level 9 for automatic hardening stuff
-- Sebastian Reichel Sat, 07 Sep 2013 03:03:10 +0200
phonefsod (0.1+git20110827-3) unstable; urgency=low
* Add patch to support glib version 2.32 and newer (Closes: #665595)
* Update Debian Standards Version to 3.9.3
* Update copyright to debian copyright format 1.0
-- Sebastian Reichel Fri, 30 Mar 2012 01:17:45 +0200
phonefsod (0.1+git20110827-2) unstable; urgency=low
* Upload to unstable
-- Sebastian Reichel Mon, 12 Dec 2011 22:44:21 +0100
phonefsod (0.1+git20110827-1) experimental; urgency=low
[ Rico Rommel ]
* New upstream snapshot (Closes: #640375, #568898)
* Update build dependencies
+ remove libdbus-1-dev, libdbus-glib-1-dev,
libframeworkd-glib-dev and shr-specs
+ add libshr-glib-dev
* Add Rico Rommel to uploaders
[ Sebastian Reichel ]
* Update my mail address
* phonefsod.init: remove frameworkd dependency
* Add patch from Matthias Klose to fix linking with --ld-as-needed
(Closes: #641550, LP: #771133)
* Update Debian Standards Version
-- Sebastian Reichel Sun, 23 Oct 2011 18:57:53 +0200
phonefsod (0.1+git20100802-2) unstable; urgency=low
* Install phonefsod to the correct location
-- Sebastian Reichel Tue, 10 Aug 2010 17:29:27 +0200
phonefsod (0.1+git20100802-1) unstable; urgency=low
* New git checkout
+ added configure option for dimming behaviour
+ added configure option for calling identification
+ added configure option for PIN of the SIM card
+ fix license
* Move daemon into /sbin
* Update Debian Standards Version to 3.9.1
* Switch to DebSrc 3.0
* Update copyright information and switch to DEP-5
* Depend on cornucopia daemons
* Depend on dbus
* Add manpage
-- Sebastian Reichel Sun, 08 Aug 2010 23:44:06 +0200
phonefsod (0.1+git20100515-1) unstable; urgency=low
* Initial upload to main (Closes: #585670).
* New git checkout
+ improved lock handling
+ fso-gsmd support
+ add SetDefaultBrightness
+ switch to libfso-glib
+ add show_incoming_smsĀ config option
+ listen to NameOwnerChanged to reconnect to FSO
+ add option to show idle screen when going into suspend
+ remember SIM auth is needed and retry when phoneuid appears on the bus
-- Sebastian Reichel Fri, 11 Jun 2010 21:51:10 +0200
phonefsod (0.1+git20100213-2) pkg-fso; urgency=low
* clean init process
-- Sebastian Reichel Sun, 14 Feb 2010 19:54:23 +0100
phonefsod (0.1+git20100213-1) pkg-fso; urgency=low
* New git checkout
+ DBus name change
+ Do not close idle_screen on incoming call
+ revert a previous commit to avoid double freeing
* Update Debian Standards Version to 3.8.4
-- Sebastian Reichel Sun, 14 Feb 2010 18:21:37 +0100
phonefsod (0.1+git20100122-1) pkg-fso; urgency=low
* New git checkout
+ removes libphone-ui dependency
+ implements offline mode
+ increased verboseness
* Depends on fso-frameworkd
* Use LSB functions in the init script
-- Sebastian Reichel Fri, 22 Jan 2010 23:03:44 +0100
phonefsod (0.1+git20091220-1) pkg-fso; urgency=low
* Initial release
-- Sebastian Reichel Sun, 20 Dec 2009 14:07:00 +0100
debian/watch 0000644 0000000 0000000 00000000063 12212501647 010216 0 ustar # upstream uses git, no release tarballs available
debian/phonefsod.install 0000644 0000000 0000000 00000000131 12212501647 012536 0 ustar usr/bin/phonefsod usr/sbin
etc/phonefsod.conf
debian/phonefsod.conf /etc/dbus-1/system.d
debian/copyright 0000644 0000000 0000000 00000003010 12212501647 011113 0 ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: http://git.shr-project.org/git/?p=phonefsod.git
Files: *
Copyright: 2009-2010, Klaus Kurzmann
2009, Marc-Olivier Barre
2009, Julien Cassignol
2009, Andreas Engelbredt Dalsgaard
2009, Maksim Melnikau
2009, quickdev
2009, James Scott Jr.
2009, Tom Hacohen
License: GPL-2+
Files: debian/*
Copyright: 2009-2010, Sebastian Reichel
License: GPL-2+
License: GPL-2+
This program is free software; you can 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 of the License, or (at your option) any later
version.
.
This program 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 along with this package; if not, write to the Free
Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301 USA
.
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file
`/usr/share/common-licenses/GPL-2'.
debian/compat 0000644 0000000 0000000 00000000002 12212501647 010364 0 ustar 9
debian/phonefsod.1 0000644 0000000 0000000 00000001770 12212501647 011242 0 ustar .TH PHONEFSOD 1 "August 09, 2010"
.\" Please adjust this date whenever revising the manpage.
.SH NAME
phonefsod \- SHR's daemon for FSO interaction
.SH SYNOPSIS
.B phonefsod
.RB [OPTION]...
.SH DESCRIPTION
phonefsod is the communication platform between phoneuid and the FSO services
fsogsmd, fsodeviced and fsousaged. It handles the events generated by FSO's
daemons and communicates with the user via phoneuid. The daemon is configured
with the file /etc/phonefsod.conf.
.SH OPTIONS
.TP
.BI -u, " --userid"
run the daemon under the specified userid.
.TP
.BI -p, " --pidfile"
put the pid into the specified file.
.TP
.BI -d, " --debug"
Debug mode. The daemon does not daemonize and is more
verbose.
.TP
.BI -f " --force"
Force overwrite of the PID file.
.TP
.BI -v " --version"
Show version information and exit.
.SH SEE ALSO
.B phoneuid(1)
.SH AUTHOR
phonefsod was written by the SHR team.
.PP
This manual page was written by Sebastian Reichel ,
for the Debian project (but may be used by others).
debian/source/ 0000755 0000000 0000000 00000000000 12212501647 010466 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 12212501647 011674 0 ustar 3.0 (quilt)