debian/0000755000000000000000000000000012173031200007153 5ustar debian/docs0000644000000000000000000000000712173027331010035 0ustar README debian/fso-datad.init.d0000644000000000000000000001036112173027331012137 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: fso-datad # Required-Start: $network $local_fs fso-deviced dbus $remote_fs # Required-Stop: $remote_fs dbus # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: freesmartphone.org data daemon # Description: This daemon provides world data services ### END INIT INFO # Author: Rico Rommel # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC=fso-datad # Introduce a short description here NAME=fso-datad # Introduce the short server's name here DAEMON=/usr/sbin/fsodatad # Introduce the server's location here DAEMON_ARGS="" # Arguments to run the daemon with PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x $DAEMON ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { # # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. # start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; #reload|force-reload) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # #log_daemon_msg "Reloading $DESC" "$NAME" #do_reload #log_end_msg $? #;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/rules0000755000000000000000000000075712173027331010256 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-vala override_dh_auto_test: # do not call make test. It does not work in # pbuilder, since it needs /sys. override_dh_strip: dh_strip --dbg-package=fso-datad-dbg override_dh_installdocs: dh_installdocs --link-doc=fso-datad override_dh_autoreconf: dh_autoreconf --as-needed debian/patches/0000755000000000000000000000000012173027331010614 5ustar debian/patches/fix-pkglibdir.patch0000644000000000000000000000244412173027331014374 0ustar Description: search modules in multiarch path The modules are installed correctly into the multiarch path, but the code doesn't look for them in these directories. This patch changes the module search path to the correct multiarch path. Author: Rico Rommel --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,12 @@ 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 ######################################################################################### @@ -132,6 +138,20 @@ fi AC_SUBST(DBUS_SERVICE_DIR) + +######################################################################################### +# libdir +######################################################################################### + + +if test "x$LIBDIR" != "xNONE"; then + pkglibdir='${LIBDIR}/cornucopia/modules/fsodatad' +else + pkgdatadir='/usr/local/share/fsodatad' +fi + + + ######################################################################################### # datadir ######################################################################################### debian/patches/series0000644000000000000000000000002412173027331012025 0ustar fix-pkglibdir.patch debian/control0000644000000000000000000000335412173027331010575 0ustar Source: fso-datad Section: misc Priority: extra Maintainer: Debian FreeSmartphone.Org Team Uploaders: Rico Rommel , Sebastian Reichel Build-Depends: debhelper (>= 9), dh-autoreconf (>= 4), libfso-glib-dev (>=2012.07.27.1), libfsoframework-dev (>=0.12.0~rc0), libgee-dev (>=0.5.0), libglib2.0-dev (>=2.26.0), libnl-3-dev, libnl-route-3-dev, libxml2-dev, mobile-broadband-provider-info, pkg-config, quilt, valac (>=0.16) Standards-Version: 3.9.4 Homepage: http://freesmartphone.org/ Vcs-Git: git://anonscm.debian.org/pkg-fso/fso-datad.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-fso/fso-datad.git;a=summary Package: fso-datad Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, fso-deviced, mobile-broadband-provider-info Description: freesmartphone data daemon fsodeviced implements the freesmartphone.org Data API. . This API allows querying constant data about the world, such as geographic timezones, mobile broadband network providers, etc. . This package is part of the freesmartphone.org software stack and is targeted for smartphones. Package: fso-datad-dbg Architecture: any Section: debug Depends: ${misc:Depends}, fso-datad (= ${binary:Version}) Description: freesmartphone data daemon (debug symbols) fso-datad is part of the freesmartphone.org software stack and provides world data services, such as country codes and timezones. . This package provides the debug symbols for fso-datad. debian/changelog0000644000000000000000000000173612173027331011046 0ustar fso-datad (0.12.0-1) unstable; urgency=low [ Rico Rommel ] * New upstream release * New fix-pkglibdir.patch to search for modules in multiarch paths * Fix vala build dependencies (Closes: #709723) [ Sebastian Reichel ] * Update Debian Standards Version to 3.9.4 * Remove deprecated DM-Upload-Allowed -- Sebastian Reichel Sun, 21 Jul 2013 20:56:18 +0200 fso-datad (0.11.0-1) unstable; urgency=low * New upstream release * drop libfsodata0 and libfsodata-dev packages, since the library is no longer build * enable vala compilation * enable --as-needed compilation * use Debian Copyright Format 1.0 -- Sebastian Reichel Sat, 26 May 2012 10:29:41 +0200 fso-datad (0.2.0~git20120214-1) unstable; urgency=low * Initial release (Closes: #636302) * create libfsodata0 and libfsodata-dev package * fixed cleanfiles * prepare multiarch-support -- Rico Rommel Tue, 06 Mar 2012 13:51:08 +0100 debian/fso-datad.install0000644000000000000000000000016312173027331012417 0ustar usr/lib/*/cornucopia/modules/fsodata/*.so usr/sbin/* usr/share/dbus-1/system-services/* usr/share/fsodatad/* etc/* debian/watch0000644000000000000000000000015212173027331010214 0ustar version=3 http://downloads.freesmartphone.org/sources/cornucopia/([0-9\.]+)/fsodatad-([0-9\.]+)\.tar\.bz2 debian/copyright0000644000000000000000000000115012173027331011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://freesmartphone.org Files: * Copyright: 2011, Michael 'Mickey' Lauer 2011, Simon Busch 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'. Files: debian/* Copyright: 2011 Rico Rommel License: GPL-2+ On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/compat0000644000000000000000000000000212173027331010363 0ustar 9 debian/source/0000755000000000000000000000000012173027331010465 5ustar debian/source/format0000644000000000000000000000001412173027331011673 0ustar 3.0 (quilt)