debian/0000775000000000000000000000000012266654024007177 5ustar debian/rules0000775000000000000000000000131312266653771010265 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --parallel --with autoreconf override_dh_auto_configure: dh_auto_configure \ -- \ --enable-threads \ --enable-openconnect \ --with-openconnect=/usr/sbin/openconnect \ --enable-openvpn \ --with-openvpn=/usr/sbin/openvpn \ --with-systemdunitdir=/lib/systemd/system \ --enable-polkit override_dh_install: find $(CURDIR) -name "*.la" -print -delete dh_install --fail-missing override_dh_installinit: cp -a scripts/connman debian/connman.init dh_installinit --restart-after-upgrade override_dh_auto_clean: rm -f debian/connman.init rm -f plugins/net.connman.policy dh_auto_clean debian/watch0000664000000000000000000000016712076342756010241 0ustar version=3 opts=dversionmangle=s/\+dfsg$// \ http://www.kernel.org/pub/linux/network/connman/connman-([0-9.]+)\.tar\.xz debian/connman.manpages0000664000000000000000000000003312076342756012346 0ustar debian/manpages/connmand.8 debian/changelog0000664000000000000000000003271012266654020011050 0ustar connman (1.15-0ubuntu3) trusty; urgency=medium * Use dh-autoreconf to get new libtool macros for ppc64el. -- Logan Rosen Sat, 18 Jan 2014 23:43:47 -0500 connman (1.15-0ubuntu2) saucy; urgency=low * Adding 02-test-pbkdf2-sha1-maximum-salt-len-should-be-32-instead.patch: - Fixing pbkdf2-sha1 test case that had a wrong salt len -- Ricardo Salveti de Araujo Mon, 10 Jun 2013 02:06:39 -0300 connman (1.15-0ubuntu1) saucy; urgency=low * New upstream release. * debian/patches/fix_build_with_kernel_3.8.0.patch: removing, not needed anymore * debian/connman.install: adding missing man pages -- Ricardo Salveti de Araujo Sun, 09 Jun 2013 19:01:26 -0300 connman (1.10-0ubuntu1) raring; urgency=low * New upstream release. * Resynchronize with Debian, remaining changes: - Add upstart script. - Add apport hook and crashdb file. - Notify the user a reboot is required after updating connman. - Don't disable the service if NetworkManager or wicd are installed; we use Conflicts instead. - Recommend indicator-network. * debian/patches/02-CVE-2012-6459.patch: dropped, included upstream. * debian/connman.upstart: start connman with the --no-backtrace option, so apport can catch the crashes. * debian/connman.upstart: drop -c; it's missing a parameter and that breaks starting connman. * debian/control: add libreadline-dev to Build-Depends. * debian/patches/fix_build_with_kernel_3.8.0.patch: workaround broken headers in kernel 3.8.0-rc4; specifically if_bridge.h has an incomplete definition of in6_addr... * debian/connman.install: fix up installed files to match what upstream provides. Also ship connmanctl for good measure. -- Mathieu Trudel-Lapierre Fri, 01 Feb 2013 10:36:13 -0500 connman (1.0-1.1) unstable; urgency=low * Non-maintainer upload. * Include patch to fix bluetooth offline visibility issue CVE-2012-6459 (Closes: #697580). -- John Paul Adrian Glaubitz Wed, 09 Jan 2013 15:32:22 +0100 connman (1.0-1) unstable; urgency=high [ Andrew Brouwers ] * New upstream release (closes: #583925, #672989) * Add debian/watch (closes: #583928) * Update to compat 8 + standards version 3.9.3 - Remove debian/tmp from install files * debian/control: - Remove obsolete deps (cdbs, quilt, dpkg-dev, ppp-dev, dhcp3-client) (use source format 3.0, too) - Add missing deps: iptables-dev, gnutls-dev - Add recommends for wpa_supplicant (wifi) + bluez (bluetooth) - Add a connman-doc package * debian/rules: - Convert from cdbs -> dh; most of the details outling patches and source mangling should be obsolete with regular stable tarball releases; simplify the rules file accordingly - Add support for openvpn + openconnect to configure - Specify systemd unit-file location to provide upstream systemd unit * Remove NM compatibility mode from default init-script options (no longer available upstream); remove connman.default accordingly * Use dh_installinit for initscript install, and eliminate post/pre-install files used to manage the init script; thanks to Patrik Flykt for the suggestion! * Update debian/copyright for DEP5 + GPL-2 simplification * Punt debian/README.source - docs/*.txt should be covered by copyright now - update note accordingly [ Mathieu Trudel-Lapierre ] * debian/control: - Set VCS-* fields to new location. - Add a Conflicts: network-manager, wicd to the connman binary package, since they all try to manage the same network devices. - Fix my name in uploaders for proper signing. - Add a Depends for dbus, lsb-base to connman. * debian/copyright: updated and fixed to adhere to DEP-5 format. * debian/rules: - override dh_auto_install to fail on files that aren't installed; also clean up on .la files. - clean up on the debian/connman.init file we copy in installinit. - use --restart-on-upgrade for dh_installinit * debian/patches/01-init-script-lsb-headers.patch: more fixes to the init script: - set LSB Default-Stop, add NAME, drop 'set -e'. - add support for a "status" command. * debian/control, debian/compat: bump to compat level 9, to get the hardening flags at build time. * debian/connman.install, debian/connman-dev.install: make the paths multiarch aware (since that comes along with compat 9). * debian/connman.postinst, debian/rules: disable the connman init script on install if NetworkManager or wicd are installed. See README.Debian. -- Mathieu Trudel-Lapierre Thu, 24 May 2012 22:09:35 -0400 connman (0.48+dfsg-2) unstable; urgency=low * Ubuntu/Debian sync upload * Re-add missing changes from 0.45+dfsg that made it only in Ubuntu: - ship development parts in a connman-dev package (Closes: 546616) - add debian/connman-dev.install - update debian/control * Update long descriptions for connman and connman-dev - update debian/control * Add missing Depends on libglib2.0-dev, libdbus-1-dev for connman-dev - update debian/control * Don't run bootstrap twice during build. - update debian/rules * Remove old configure option: enable-ppp, with-pppd, enable-novatel, enable-huawei and enable-modemmgr are no longer recognized. - update debian/rules -- Mathieu Trudel Fri, 12 Feb 2010 10:08:03 -0500 connman (0.48+dfsg-1) unstable; urgency=low * New upstream release 0.48 * Drop PolicyKit support for now (Closes: #549497) - update debian/connman.install - update debian/control - update debian/rules * Exclude /usr/lib/connman from being handled by dh_makeshlibs. - update debian/rules * Add Depends for libdbus-1-dev and libglib2.0-dev. - update debian/control * Clean connman.install to remove inexistant files. - update debian/connman.install * Add new uploader: Mathieu Trudel - update debian/control * Bump debhelper b-dep to 7, add missing compat file. - update debian/control - add debian/compat * Bump Standards-Version to 3.8.4 - update debian/control * Remove duplicate Section: net from binary package entry. - update debian/control * Update LSB headers patch to follow DEP-3 guidelines. - update debian/patches/01-init-script-lsb-headers.patch * Add debian/watch * Silence update-rc.d in postinst and postrm scripts. - update debian/connman.postinst - update debian/connman.postrm * Add manpage for connmand - add debian/manpages/connmand.8 - add debian/connman.manpages -- Mathieu Trudel Wed, 03 Feb 2010 22:54:32 -0500 connman (0.45+dfsg-0ubuntu1) lucid; urgency=low * new upstream release 0.45 * ship development parts in a connman-dev package (Closes: 546616) - add debian/connman-dev.install - update debian/control -- Alexander Sack Wed, 13 Jan 2010 06:32:31 +0100 connman (0.42+dfsg-1) unstable; urgency=low * new upstream release 0.42 with FFe (LP: #444172) [ Alexander Sack ] * LP: #402998 - homepage used in package is outdated; updated to http://www.connman.net - update debian/control * LP: #402999 - add Vcs-Browser to debian/control and change Vcs-Bzr to read/write location - update debian/control * LP: #400576 - Please use compatible mode to provide NetworkManager dbus interface; ship a /etc/default/connman which enables NM compatibility mode; also include example how to enable debugging - add debian/connman.default * explicitly install init script - debian/connnman.install * set --only-scripts parameter for dh_installinit (cdbs) - update debian/rules [ Mathieu Trudel ] * bump Standards-Version to 3.8.3 - update debian/control * add GIT_BRANCH, GIT_BRANCH_NAME, DEB_MAJOR_VERSION to support daily builds - update debian/rules * Add update-local-branch code to work with local git copies - update debian/rules * Revise get-orig-source code, add get-current-source and GET_SOURCE snippets - update debian/rules * Handle dfsg special case, add MAKE_DFSG_COMPLIANT snippet - update debian/rules * Add pre-build, clean targets - update debian/rules * Patch init script to add LSB headers (Closes: #543869) - add debian/patches/01-init-script-lsb-headers.patch - update debian/patches/series -- Alexander Sack Sat, 31 Oct 2009 13:59:48 +0100 connman (0.42+dfsg-0ubuntu1) karmic; urgency=low * new upstream release 0.42 with FFe (LP: #444172) [ Alexander Sack ] * LP: #402998 - homepage used in package is outdated; updated to http://www.connman.net - update debian/control * LP: #402999 - add Vcs-Browser to debian/control and change Vcs-Bzr to read/write location - update debian/control * LP: #400576 - Please use compatible mode to provide NetworkManager dbus interface; ship a /etc/default/connman which enables NM compatibility mode; also include example how to enable debugging - add debian/connman.default * explicitly install init script - debian/connnman.install * set --only-scripts parameter for dh_installinit (cdbs) - update debian/rules [ Mathieu Trudel ] * bump Standards-Version to 3.8.3 - update debian/control * add GIT_BRANCH, GIT_BRANCH_NAME, DEB_MAJOR_VERSION to support daily builds - update debian/rules * Add update-local-branch code to work with local git copies - update debian/rules * Revise get-orig-source code, add get-current-source and GET_SOURCE snippets - update debian/rules * Handle dfsg special case, add MAKE_DFSG_COMPLIANT snippet - update debian/rules * Add pre-build, clean targets - update debian/rules * Patch init script to add LSB headers (Closes: #543869) - add debian/patches/01-init-script-lsb-headers.patch - update debian/patches/series -- Mathieu Trudel Wed, 14 Oct 2009 23:59:04 +0200 connman (0.30+git.1.5b69740e1+dfsg-1) unstable; urgency=low * Upstream snapshot for debian: 0.30+git.1.5b69740e1 (Closes: #475022) * addresses ftp-master review concerns; see: 0.19+dfsg-1 * setup debian packaging branch: - https://code.launchpad.net/~asac/connman/connman.debian.unstable - adjust Vcs-Bzr: in debian/control accordingly * debian/rules: make get-orig-source aware of +dfsg suffix -- Alexander Sack Wed, 22 Jul 2009 10:41:55 +0200 connman (0.30+git.1.5b69740e1+dfsg-0ubuntu1) karmic; urgency=low * new upstream snapshot 0.30 + 5b69740e1 * debian/rules: make get-orig-source aware of +dfsg suffix -- Alexander Sack Wed, 22 Jul 2009 10:37:21 +0200 connman (0.23+git.1.e08a09987-0ubuntu1) karmic; urgency=low * new upstream release 0.23 + git snapshot * fix broken build dependency: gtk-doc-tools - update debian/control -- Tony Espy Tue, 14 Jul 2009 21:23:02 -0400 connman (0.19+dfsg-1) unstable; urgency=low * new copyright format; properly document docs - update debian/copyright * remove dfsg non-free files on tarball production - update debian/rules * document source information (e.g. files removed due to dfsg non-freeness) - add debian/README.source -- Alexander Sack Mon, 08 Jun 2009 14:15:01 +0200 connman (0.19-0ubuntu1) karmic; urgency=low * new upstream release 0.19 -- Tony Espy Mon, 25 May 2009 12:18:32 +0200 connman (0.17-0ubuntu1) karmic; urgency=low * new upstream release 0.17 * fix get-orig-source target to create tarball in topsrcdir - update debian/rules -- Alexander Sack Mon, 25 May 2009 12:13:33 +0200 connman (0.15+git.1.864cd602c-0ubuntu1) karmic; urgency=low * new upstream snapshot 0.15 + git 864cd602c * drop upstreamed patches - delete debian/patches/fix_dhclient_configure_typo.patch - delete debian/patches/fix_ubuntu_init_script.patch - update debian/patches/series * enable more plugins: modemmgr and ethernet - update debian/rules * make debian/rules in bzr executable - update debian/rules * add get-orig-source target that parses changelog to guess git commit id or tag - update debian/rules -- Alexander Sack Thu, 14 May 2009 18:47:17 +0200 connman (0.10+git20090203t223225-1) unstable; urgency=low * Initial upload to Debian - Closes: #475022 * debian/control: add Vcs-Bzr info pointing to + https://code.launchpad.net/~asac/connman/connman.ubuntu.head -- Alexander Sack Fri, 03 Apr 2009 14:02:57 +0200 connman (0.10+git20090203t223225-0ubuntu3) jaunty; urgency=low * debian/connman.postinst: making update-notifier optional, as otherwise we would need a dependency on it (LP: #332217) -- bojo42 Fri, 20 Feb 2009 17:22:28 +0100 connman (0.10+git20090203t223225-0ubuntu2) jaunty; urgency=low * debian/patches/fix_ubuntu_init_script.patch: pass --make-pidfile to start-stop-daemon invokation as connman doesnt create its own PIDFILE * debian/patches/series: new series file * debian/copyright: fix copyright/licensing details * debian/control: fix Section: net -- Alexander Sack Tue, 17 Feb 2009 20:41:25 +0100 connman (0.10+git20090203t223225-0ubuntu1) jaunty; urgency=low * Initial release of upstream 0.10 + git snapshot Tue Feb 3 23:32:25 2009 +0100 -- Alexander Sack Tue, 17 Feb 2009 11:58:09 +0100 debian/compat0000664000000000000000000000000212076342756010402 0ustar 9 debian/connman.install0000664000000000000000000000064012155176731012221 0ustar etc/dbus-1/system.d lib/systemd/system usr/share/man usr/share/dbus-1/system-services usr/share/polkit-1/actions usr/lib/*/connman/plugins-vpn/*.so usr/lib/*/connman/scripts/openconnect-script usr/lib/*/connman/scripts/openvpn-script client/connmanctl /usr/sbin usr/sbin/connmand usr/sbin/connman-vpnd debian/source_connman.py /usr/share/apport/package-hooks/ debian/connman-crashdb.conf /etc/apport/crashdb.conf.d/ debian/copyright0000664000000000000000000001023112076342756011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ConnMan Upstream-Contact: Marcel Holtmann Source: http://www.connman.net Files: * Copyright: 2007-2012 Intel Corporation. All rights reserved License: GPL-2 Files: gweb/gionotls.c Copyright: 2009-2012 Intel Corporation. All rights reserved License: GPL-2 Files: gdhcp/ipv4ll.c Copyright: 2009-2010 Aldebaran Robotics. All rights reserved License: GPL-2 Files: scripts/libppp-plugin.c gsupplicant/dbus.c gsupplicant/dbus.h gsupplicant/gsupplicant.h gsupplicant/supplicant.c src/dhcpv6.c include/setting.h include/storage.h Copyright: 2012 Intel Corporation. All rights reserved License: GPL-2 Files: src/6to4.c Copyright: Alexey Kuznetsov et al. from iproute2 package / 2011 Nokia Corporation. All rights reserved License: GPL-2 Files: scripts/openvpn-script.c src/connection.c src/bridge.c Copyright: 2012 BMW Car IT GmbH. All rights reserved / 2007-2012 Intel Corporation. All rights reserved License: GPL-2 Files: plugins/pptp.c plugins/l2tp.c Copyright: 2012 Intel Corporation. All rights reserved / 2010 BMW Car IT GmbH. All rights reserved License: GPL-2 Files: src/stats.c plugins/vpn.h plugins/openvpn.c plugins/vpnc.c tools/stats-tool.c Copyright: 2010 BMW Car IT GmbH. All rights reserved License: GPL-2 Files: src/tethering.c Copyright: 2011 ProFUSION embedded systems / 2007-2012 Intel Corporation. All rights reserved License: GPL-2 Files: src/inet.c Copyright: 2003-2006 Helsinki University of Technology / 2003-2005 Go-Core Project / 2007-2012 Intel Corporation. All rights reserved License: GPL-2 Files: src/session.c Copyright: 2011 BWM CarIT GmbH. All rights reserved / 2007-2012 Intel Corporation. All rights reserved License: GPL-2 Files: src/ippool.c src/nat.c Copyright: 2012 BMW Car IT GmbH. All rights reserved / 2007-2012 Intel Corporation. All rights reserved License: GPL-2 Files: plugins/ofono.c Copyright: 2011 BWM Car IT GmbH. All rights reserved / 2010 Nokia Corporation and/or its subsidiary(-ies) / 2007-2012 Intel Corporation. All rights reserved License: GPL-2 Files: tools/private-network-test.c Copyright: 2011 ProFUSION embedded systems / 2012 Intel Corporation. All rights reserved License: GPL-2 Files: unit/utils.c unit/test-ippool.c unit/session-api.c unit/test-nat.c unit/manager-api.c unit/test-session.c Copyright: 2011 BWM CarIT GmbH. All rights reserved License: GPL-2 Files: gdbus/polkit.c gdbus/gdbus.h gdbus/object.c gdbus/mainloop.c gdbus/watch.c Copyright: 2004-2011 Marcel Holtmann 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 version 2 as published by the Free Software Foundation. . 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 program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, 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'. 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 program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, 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/source/0000775000000000000000000000000012102760362010467 5ustar debian/source/format0000664000000000000000000000001412076342756011712 0ustar 3.0 (quilt) debian/connman-crashdb.conf0000664000000000000000000000013112076352423013073 0ustar connman = { 'impl' : 'launchpad', 'project' : 'connman', 'bug_pattern_url' : None, } debian/manpages/0000775000000000000000000000000012102760362010762 5ustar debian/manpages/connmand.80000664000000000000000000000214112076342756012663 0ustar .TH connmand 8 "3 February 2010" "" "connmand Manual" .SH NAME connmand \- connection manager .SH SYNOPSIS .B connmand .RI [ options ] .br .SH DESCRIPTION This manual page explains the \fBconnmand\fP daemon. \fBconnmand\fP is used to manage internet connections on embedded devices. .SH OPTIONS .IP \fB\-h/\-\-help\fP Shows help options and usage information. .IP \fB\-d/\-\-debug=DEBUG\fP Specify debug options to enable. .IP \fB\-i/\-\-device=DEV\fP Specify a networking device or interface to manage. .IP \fB\-I/\-\-nodevice=DEV\fP Specify a networking device or interface to ignore. .IP \fB\-p/\-\-plugin=NAME\fP Specify a plugin that should be loaded. .IP \fB\-P/\-\-noplugin=NAME\fP Specify a plugin that should be excluded from loading. .IP \fB\-W/\-\-wifi=NAME\fP Specify a driver to use for WiFi/Supplicant. .IP \fB\-n/\-\-nodaemon\fP Do not fork to background. .IP \fB\-c/\-\-compat\fP Enable compatibility with NetworkManager. .IP \fB\-t/\-\-selftest\fP Run self-testing routines. .IP \fB\-v/\-\-version\fP Show version information and exit. .SH AUTHOR Mathieu Trudel debian/connman-dev.install0000664000000000000000000000004112076342756012774 0ustar usr/include usr/lib/*/pkgconfig/ debian/README.Debian0000664000000000000000000000113112076342756011241 0ustar ConnMan for Debian ------------------ ConnMan is a connection manager that will by default try to configure any available network interfaces. This causes it to interfere with other connection managers if installed, such as network-manager or wicd. Because of this, ConnMan is disabled by default if network-manager or wicd are found to be installed when the connman package is installed. To enable connman, first disable any other connection manager you may have running, then use: # update-rc.d connman enable -- Mathieu Trudel-Lapierre Mon, 21 May 2012 12:49:55 -0400 debian/connman.postinst0000664000000000000000000000040012076352605012426 0ustar #!/bin/sh set -e case "$1" in configure) if [ -x /usr/share/update-notifier/notify-reboot-required ]; then /usr/share/update-notifier/notify-reboot-required fi ;; esac #DEBHELPER# debian/connman-doc.install0000664000000000000000000000004512076342756012767 0ustar doc/*.txt usr/share/doc/connman-doc/ debian/connman.upstart0000664000000000000000000000020012102760274012236 0ustar description "Connection Manager" start on started dbus stop on stopping dbus expect fork respawn exec connmand --nobacktrace debian/source_connman.py0000664000000000000000000000174412076352433012566 0ustar '''Apport package hook for ConnMan (c) 2010 Canonical Ltd. Contributors: Kalle Valo 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. See http://www.gnu.org/copyleft/gpl.html for the full text of the license. ''' from __future__ import print_function import apport.hookutils def add_info(report, ui): apport.hookutils.attach_network(report) apport.hookutils.attach_wifi(report) apport.hookutils.attach_hardware(report) if not apport.packaging.is_distro_package(report['Package'].split()[0]): report['ThirdParty'] = 'True' report['CrashDB'] = 'connman' if __name__ == '__main__': report = {} report['CrashDB'] = 'ubuntu' add_info(report, None) for key in report: print('%s: %s' % (key, report[key].split('\n', 1)[0])) debian/control0000664000000000000000000000573612266654002010611 0ustar Source: connman Section: net Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Alexander Sack Uploaders: Alexander Sack , Mathieu Trudel-Lapierre Homepage: http://www.connman.net Build-Depends: debhelper (>= 9), libudev-dev, libglib2.0-dev, libdbus-1-dev, gtk-doc-tools, libgnutls-dev, libreadline-dev, iptables-dev, wpasupplicant, libbluetooth-dev, dh-autoreconf Standards-Version: 3.9.3 Vcs-Bzr: https://code.launchpad.net/~connman-maintainers/connman/debian Vcs-Browser: https://code.launchpad.net/~connman-maintainers/connman/debian Package: connman Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, dbus, lsb-base Recommends: bluez, wpasupplicant Suggests: indicator-network Conflicts: network-manager, wicd Description: Intel Connection Manager daemon The Linux Connection Manager project provides a daemon for managing Internet connections within embedded devices running the Linux operating system. The Connection Manager is designed to be slim and to use as few resources as possible, so it can be easily integrated in other Moblin-based embedded systems. It is fully modular system that can be extended through plug-ins, to support all kinds of wired or wireless technologies. Also, configuration methods like DHCP and domain name resolving are implemented using plug-ins. The plug-in approach allows for easy adaption and modification for various use cases. . This package contains the connman daemon and its plugins. Package: connman-dev Section: devel Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libglib2.0-dev, libdbus-1-dev Description: Development files for connman The Linux Connection Manager project provides a daemon for managing Internet connections within embedded devices running the Linux operating system. The Connection Manager is designed to be slim and to use as few resources as possible, so it can be easily integrated in other Moblin-based embedded systems. It is fully modular system that can be extended through plug-ins, to support all kinds of wired or wireless technologies. Also, configuration methods like DHCP and domain name resolving are implemented using plug-ins. The plug-in approach allows for easy adaption and modification for various use cases. . This package contains headers, pkg-config support mainly useful for developing connman plugins. Package: connman-doc Section: doc Architecture: all Depends: ${misc:Depends} Suggests: connman-dev Description: ConnMan documentation The Linux Connection Manager project provides a daemon for managing Internet connections within embedded devices running the Linux operating system. . This package contains the connman API documentation. . See the connman description for more information regarding connman. debian/patches/0000775000000000000000000000000012155257262010626 5ustar debian/patches/series0000664000000000000000000000014112155257327012041 0ustar 01-init-script-lsb-headers.patch 02-test-pbkdf2-sha1-maximum-salt-len-should-be-32-instead.patch debian/patches/01-init-script-lsb-headers.patch0000664000000000000000000000357112076342756016534 0ustar From: Petter Reinholdtsen Subject: connman: Missing LSB header in init.d script Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543869 --- scripts/connman.in | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) Index: b/scripts/connman.in =================================================================== --- a/scripts/connman.in +++ b/scripts/connman.in @@ -1,7 +1,17 @@ #!/bin/sh +### BEGIN INIT INFO +# Provides: connman +# Required-Start: $remote_fs $syslog dbus +# Required-Stop: $remote_fs $syslog dbus +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Connection Manager +### END INIT INFO + DAEMON=@prefix@/sbin/connmand DESC="Connection Manager" +NAME=connmand . /lib/lsb/init-functions @@ -9,8 +19,6 @@ if [ -f @sysconfdir@/default/connman ] ; . @sysconfdir@/default/connman fi -set -e - do_start() { start-stop-daemon --start --oknodo --exec $DAEMON -- $DAEMON_OPTS } @@ -19,6 +27,15 @@ do_stop() { start-stop-daemon --stop --oknodo --quiet --exec $DAEMON } +get_pid() { + [ -n "$1" ] || return 0 + [ -S /var/run/dbus/system_bus_socket ] || return 0 + + dbus-send --system --dest=org.freedesktop.DBus --print-reply \ + /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID \ + string:$1 2>/dev/null | awk '/uint32/ {print $2}' +} + case "$1" in start) log_daemon_msg "Starting $DESC" @@ -37,8 +54,18 @@ case "$1" in do_start log_end_msg $? ;; + status) + pid=$(get_pid net.connman) + if [ -n "$pid" ]; then + log_success_msg "$NAME is running" + return 0 + else + log_failure_msg "$NAME is not running" + return 3 # LSB exit code for "program is not running" + fi + ;; *) - log_success_msg "Usage: $0 {start|stop|restart|force-reload}" >&2 + log_success_msg "Usage: $0 {start|stop|status|restart|force-reload}" >&2 exit 1 ;; esac debian/patches/02-test-pbkdf2-sha1-maximum-salt-len-should-be-32-instead.patch0000664000000000000000000000200012155257323023752 0ustar From: Ricardo Salveti de Araujo Subject: test-pbkdf2-sha1.c: maximum salt len should be 32 instead of 36 pbkdf2_sha1 needs 4 extra chars to help calculate the sha1 value, so avoid overflow by decreasing the salt used by the test. Signed-off-by: Ricardo Salveti de Araujo --- unit/test-pbkdf2-sha1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unit/test-pbkdf2-sha1.c b/unit/test-pbkdf2-sha1.c index 91be03d..c646cf0 100644 --- a/unit/test-pbkdf2-sha1.c +++ b/unit/test-pbkdf2-sha1.c @@ -115,9 +115,9 @@ static const struct pbkdf2_data pbkdf2_test_vector_4 = { static const struct pbkdf2_data pbkdf2_test_vector_5 = { .password = "passwordPASSWORDpassword", - .salt = "saltSALTsaltSALTsaltSALTsaltSALTsalt", + .salt = "saltSALTsaltSALTsaltSALTsaltSALT", .count = 4096, - .key = "3d2eec4fe41c849b80c8d83662c0e44a8b291a964cf2f07038", + .key = "3549ba2d34e0f940370f1ea8b3f2ac830d96fb03fffd0b386d", .key_len = 25, };