debian/0000755000000000000000000000000012231250710007157 5ustar debian/source/0000755000000000000000000000000012231250710010457 5ustar debian/source/format0000644000000000000000000000001412231250635011673 0ustar 3.0 (quilt) debian/source/include-binaries0000644000000000000000000000041412231250635013624 0ustar obj-x86_64-linux-gnu/CMakeFiles/2.8.10.1/CMakeDetermineCompilerABI_C.bin obj-x86_64-linux-gnu/CMakeFiles/2.8.10.1/CMakeDetermineCompilerABI_CXX.bin obj-x86_64-linux-gnu/CMakeFiles/2.8.10.1/CompilerIdC/a.out obj-x86_64-linux-gnu/CMakeFiles/2.8.10.1/CompilerIdCXX/a.out debian/libusbmuxd2.install0000644000000000000000000000004312231250635013012 0ustar usr/lib/*.so.2* usr/lib/*.so.1.0.* debian/copyright0000644000000000000000000000600012231250635011114 0ustar Authors: Nikias Bassen Hector Martin Bastien Nocera Paul Sladen Martin Szulecki Download: http://marcansoft.com/uploads/usbmuxd/ Files: * Copyright: Copyright (C) 2009 Hector Martin "marcan" Copyright (C) 2009 Nikias Bassen Copyright (C) 2009 Martin Szulecki Copyright (C) 2009 Paul Sladen Copyright (c) 2008 Jing Su. 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 or version 3. . 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. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. Files: libusbmuxd/* common/utils.* Copyright: Copyright (C) 2009 Hector Martin "marcan" Copyright (C) 2009 Nikias Bassen Copyright (C) 2009 Martin Szulecki Copyright (C) 2009 Paul Sladen License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser 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 complete text of the GNU General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. Files: debian/* Copyright: (C) 2009 Julien Lavergne License: LGPL-2+ This package 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 package 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 complete text of the GNU General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. debian/iproxy.10000644000000000000000000000115112231250635010577 0ustar .TH "iproxy" 1 .SH NAME iproxy \- proxy that enables tcp service access to iPhone/iPod .SH SYNOPSIS .B iproxy [LOCAL_TCP_PORT] [DEVICE_TCP_PORT] .SH DESCRIPTION iproxy allows you to forward localhost ports to the device---allows SSH over USB on jailbroken devices, or allowing access the lockdown daemon (and then to all of the file access, sync, notification and backup services running on the device). Example : ./iproxy 2222 22 & ssh -p 2222 root@localhost .SH AUTHORS Nikias Bassen Paul Sladen Man page written to conform with Debian by Julien Lavergne. debian/changelog0000644000000000000000000001223212231250703011033 0ustar usbmuxd (1.0.8-2ubuntu1) trusty; urgency=low * Merge from debian, remaining changes: - Correctly find inotify.h to build with inotify support (LP: #656009). -- Dmitrijs Ledkovs Mon, 21 Oct 2013 17:09:17 +0100 usbmuxd (1.0.8-2) unstable; urgency=low * Team upload * Upload to unstable * Bump Standards-Version to 3.9.4 -- Chow Loong Jin Sun, 08 Sep 2013 23:55:52 +0800 usbmuxd (1.0.8-1ubuntu1) raring; urgency=low * Correctly find inotify.h to build with inotify support (LP: #656009). -- Dmitrijs Ledkovs Wed, 30 Jan 2013 14:26:52 +0000 usbmuxd (1.0.8-1) experimental; urgency=low * New upstream release. * debian/patches: - 90-cve-2012-0065.patch: Remove, merged upstream. - 02-udev-usbmux-owner.patch: Refreshed. - 03-revert-ifdef-USBMUXD_DAEMON.patch: Refreshed. * debian/compat - Update to 9. * debian/control: - Update to match new SONAME. - Update Standards-Version to 3.9.3 (no change needed). - Build-depend on debhelper (>= 9). * debian/rules: - Update to match new SONAME. - Use DEB_*_MAINT_APPEND. * debian/libusbmuxd*.install & debian/libusbmuxd*.symbols - Update to match new SONAME. * debian/libusbmuxd2.symbols: - Update with new symbols. * debian/watch: - Update location of the tarballs. * debian/copyright: - Update with new license on common/*. -- Julien Lavergne Wed, 02 May 2012 12:20:18 +0200 usbmuxd (1.0.7-2) unstable; urgency=high * debian/control: - Update Maintainer field, and add me to Uploaders. - Update Vcs-*. * debian/patches/90-cve-2012-0065.patch: - From upstream, fix possible buffer overflow (CVE-2012-0065). Closes: #656581 -- Julien Lavergne Fri, 20 Jan 2012 22:49:38 +0100 usbmuxd (1.0.7-1) unstable; urgency=low * New upstream release. * debian/install: - Don't install udev rules on all archs. * debian/rules: - Install udev files only on archs which have udev. * debian/patches - 02-udev-usbmux-owner.patch: Refreshed. -- Julien Lavergne Tue, 22 Mar 2011 20:30:45 +0100 usbmuxd (1.0.6-2) unstable; urgency=low * Upload to unstable. -- Julien Lavergne Sun, 13 Feb 2011 23:34:34 +0100 usbmuxd (1.0.6-1) experimental; urgency=low * New upstream release. * debian/patches/02-udev-usbmux-owner.patch: Refresh. * debian/libusbmuxd1.symbols: Add new symbol. * debian/rules: - Remove additional CFLAGS to pass correct flags. - Add additional LDFLAGS. - Use filter instead of findstring to find noopt. -- Julien Lavergne Sun, 28 Nov 2010 00:23:47 +0100 usbmuxd (1.0.5-1) experimental; urgency=low * New upstream release. * debian/control: - Build-depends on libplist-dev (>= 0.15) to activate plist support. - Use better build-depends for libusb. Thanks Aurelien Jarno for the advise. Closes: #585634 - Bump Standards-Version to 3.9.1.0. * debian/patch/03-revert-ifdef-USBMUXD_DAEMON.patch: - Revert upstream commit which only help WIN32 compilation. * debian/libusbmuxd1.symbols: - Updated. -- Julien Lavergne Wed, 13 Oct 2010 23:52:09 +0200 usbmuxd (1.0.4-1) unstable; urgency=low * New upstream release. - Add Apple iPad USB IDs. Closes: #576474 * debian/control: - Mention that usbmuxd only runs when devices are connected. Closes: #577269 * debian/patches - 01-libs.private.patch: Remove, merged upstream. - 02-udev-usbmux-owner.patch: Refreshed. -- Julien Lavergne Mon, 24 May 2010 23:11:05 +0200 usbmuxd (1.0.3-1) unstable; urgency=low * New upstream release. * debian/patches/02-udev-usbmux-owner.patch: Refreshed. -- Julien Lavergne Tue, 23 Mar 2010 19:37:05 +0100 usbmuxd (1.0.2-1) unstable; urgency=low * New upstream release. * debian/control: - Bump Standards-Version to 3.8.4, no change needed. - Add Homepage field. * debian/usbmuxd.docs - Install README, README.devel and AUTHORS (Closes: #568758) * debian/patches/02-udev-usbmux-owner.patch - Set the owner to usbmux to fix permissions issues (Closes: #572867) -- Julien Lavergne Sun, 07 Mar 2010 14:22:22 +0100 usbmuxd (1.0.0-2) unstable; urgency=low * debian/rules: Rewriten to use dh7. * debian/control: - Set debhelper build-depends to (>= 7.0.50~), using overrides in debian/rules. - Wrap build-depends and depends. - Build-depends on libusb2-dev on kfreebsd. - Add VCS-* fields. * debian/copyright: - Licence the package under LGPL2.1+ and set the copyright to me, the parts based on another package was rewritten. Closes: #562572 - Fix typo in license notice. * debian/01-libs.private.patch: Remove Requires in *.pc file, libusb is only used in the daemon. * Switch to dpkg-source 3.0 (quilt) format -- Julien Lavergne Sat, 23 Jan 2010 16:53:27 +0100 usbmuxd (1.0.0-1) unstable; urgency=low * Initial release (Closes: #558310) -- Julien Lavergne Wed, 09 Dec 2009 21:04:24 +0100 debian/control0000644000000000000000000000536212231250636010577 0ustar Source: usbmuxd Section: utils Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: gtkpod Maintainers Uploaders: Julien Lavergne Standards-Version: 3.9.4 Build-Depends: debhelper (>= 9), libusb-1.0-0-dev (>= 1.0.3) [linux-any], libusb2-dev (>= 8.0-4) [kfreebsd-any], cmake, libplist-dev (>= 0.15) Homepage: http://marcansoft.com/blog/iphonelinux/usbmuxd/ Vcs-Git: git://git.debian.org/git/pkg-gtkpod/packages/usbmuxd.git Vcs-Browser: http://git.debian.org/?p=pkg-gtkpod/packages/usbmuxd.git Package: usbmuxd Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, adduser Description: USB multiplexor daemon for iPhone and iPod Touch devices usbmuxd, the USB multiplexor daemon, is in charge of coordinating access to iPhone and iPod Touch services over USB. Synchronization and management applications for the iPhone and iPod Touch need this daemon to communicate with such devices concurrently. . This package includes udev rules to start the daemon when a supported device is plugged in, and stop it when all devices are removed. Package: libusbmuxd2 Architecture: any Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Description: USB multiplexor daemon for iPhone and iPod Touch devices - library usbmuxd, the USB multiplexor daemon, is in charge of coordinating access to iPhone and iPod Touch services over USB. Synchronization and management applications for the iPhone and iPod Touch need this daemon to communicate with such devices concurrently. . This package contains the shared library. Package: libusbmuxd-dev Architecture: any Section: libdevel Depends: libusbmuxd2 (= ${binary:Version}), ${misc:Depends} Description: USB multiplexor daemon for iPhone and iPod Touch devices - devel usbmuxd, the USB multiplexor daemon, is in charge of coordinating access to iPhone and iPod Touch services over USB. Synchronization and management applications for the iPhone and iPod Touch need this daemon to communicate with such devices concurrently. . This package contains the development files. Package: libusbmuxd2-dbg Architecture: any Section: debug Priority: extra Depends: libusbmuxd2 (= ${binary:Version}), ${misc:Depends} Description: USB multiplexor daemon for iPhone and iPod Touch devices - debug usbmuxd, the USB multiplexor daemon, is in charge of coordinating access to iPhone and iPod Touch services over USB. Synchronization and management applications for the iPhone and iPod Touch need this daemon to communicate with such devices concurrently. . This package contains the debugging symbols. debian/libusbmuxd-dev.install0000644000000000000000000000005712231250635013511 0ustar usr/lib/*.so usr/include/* usr/lib/pkgconfig/* debian/usbmuxd.manpages0000644000000000000000000000004112231250635012364 0ustar debian/usbmuxd.1 debian/iproxy.1 debian/usbmuxd.postinst0000644000000000000000000000053612231250635012465 0ustar #!/bin/sh set -e # creating plugdev group if he isn't already there if ! getent group plugdev >/dev/null; then addgroup --system plugdev fi # creating usbmux user if he isn't already there if ! getent passwd usbmux >/dev/null; then adduser --system --ingroup plugdev --no-create-home --gecos "usbmux daemon" usbmux fi #DEBHELPER# debian/usbmuxd.docs0000644000000000000000000000003412231250635011523 0ustar README README.devel AUTHORS debian/rules0000755000000000000000000000171212231250635010246 0ustar #!/usr/bin/make -f DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) DEB_CFLAGS_MAINT_APPEND = -O0 else DEB_CFLAGS_MAINT_APPEND = -O2 endif configure_flags += \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_SKIP_RPATH=true \ -DLIB_SUFFIX= \ -DUSB_PKGCONF_INCLUDE_DIRS="/usr/include/libusb-1.0" %: dh $@ override_dh_auto_configure: dh_auto_configure -- $(configure_flags) override_dh_install: #Install udev files only on arch which have udev #see https://buildd.debian.org/quinn-diff/sid/Packages-arch-specific ifeq (,$(filter $(DEB_HOST_ARCH), kfreebsd-amd64 kfreebsd-i386 hurd-i386)) dh_install -pusbmuxd lib/udev/rules.d/* endif rm -f debian/tmp/lib/udev/rules.d/* dh_install --fail-missing override_dh_strip: dh_strip --dbg-package=libusbmuxd2-dbg debian/watch0000644000000000000000000000011012231250635010206 0ustar version=3 http://libimobiledevice.org/ downloads/usbmuxd-(.+)\.tar\.bz2 debian/usbmuxd.install0000644000000000000000000000002512231250635012241 0ustar usr/sbin/* usr/bin/* debian/usbmuxd.10000644000000000000000000000211112231250635010731 0ustar .TH "usbmuxd" 1 .SH NAME usbmuxd \- iPhone/iPod Touch USB multiplex server daemon .SH SYNOPSIS .B usbmuxd [options] .SH DESCRIPTION usbmuxd stands for "USB multiplexing daemon". To the user/developer what it actually does is to proxy requests over a USB cable on directly to a listening TCP port on the iPhone. .SH OPTIONS .TP .B \-h|\-\-help Print this message. .TP .B \-v|\-\-verbose Be verbose (use twice or more to increase). .TP .B \-f|\-\-foreground Do not daemonize (implies one -v). .TP .B \-U|\-\-user[=USER] Change to this user after startup (needs usb privileges). If USER is not specified, defaults to usbmux. .TP .B \-u|\-\-udev Run in udev operation mode. .TP .B \-x|\-\-exit Tell a running instance to exit if there are no devices connected (must be in udev mode). .TP .B \-X|\-\-force-exit Tell a running instance to exit, even if there are still devices connected (always works). .SH AUTHORS Hector Martin "marcan" Nikias Bassen Paul Sladen Man page written to conform with Debian by Julien Lavergne. debian/patches/0000755000000000000000000000000012231250710010606 5ustar debian/patches/02-udev-usbmux-owner.patch0000644000000000000000000000232012231250635015465 0ustar Index: usbmuxd/udev/85-usbmuxd.rules.in =================================================================== --- usbmuxd.orig/udev/85-usbmuxd.rules.in 2012-05-02 10:29:12.000000000 +0200 +++ usbmuxd/udev/85-usbmuxd.rules.in 2012-05-02 10:33:24.000000000 +0200 @@ -1,7 +1,7 @@ # usbmuxd ("Apple Mobile Device" muxer listening on /var/run/usbmuxd) # Forces iDevices to the last USB configuration and runs usbmuxd -ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", OWNER="usbmux", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U usbmux" +ACTION=="add", SUBSYSTEM=="usb", OWNER="usbmux", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", OWNER="usbmux", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U usbmux" # Exit usbmuxd when the last device is removed ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ENV{INTERFACE}=="255/*", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -x" debian/patches/03-revert-ifdef-USBMUXD_DAEMON.patch0000644000000000000000000000235612231250635016615 0ustar #Revert commit http://cgit.sukimashita.com/usbmuxd.git/commit/?id=e492ed1d13b51f95b3b96e54d2c3d9076a1910b4 #It was done to help WIN32 compilation, but it disable it also on non-WIN32. Index: usbmuxd/common/utils.c =================================================================== --- usbmuxd.orig/common/utils.c 2012-05-02 10:29:12.000000000 +0200 +++ usbmuxd/common/utils.c 2012-05-02 10:34:00.000000000 +0200 @@ -36,7 +36,6 @@ # define util_error(...) fprintf(stderr, __VA_ARGS__) #endif -#ifdef USBMUXD_DAEMON void fdlist_create(struct fdlist *list) { list->count = 0; @@ -72,7 +71,6 @@ { list->count = 0; } -#endif void collection_init(struct collection *col) { Index: usbmuxd/common/utils.h =================================================================== --- usbmuxd.orig/common/utils.h 2012-05-02 10:29:12.000000000 +0200 +++ usbmuxd/common/utils.h 2012-05-02 10:34:00.000000000 +0200 @@ -23,7 +23,6 @@ #ifndef __UTILS_H__ #define __UTILS_H__ -#ifdef USBMUXD_DAEMON #include enum fdowner { @@ -43,7 +42,6 @@ void fdlist_add(struct fdlist *list, enum fdowner owner, int fd, short events); void fdlist_free(struct fdlist *list); void fdlist_reset(struct fdlist *list); -#endif struct collection { void **list; debian/patches/find-inotify-multiarch.path0000644000000000000000000000150712231250635016062 0ustar Description: correctly find inotify.h in the multiarch location. Author: Dmitrijs Ledkovs Bug-Ubuntu: https://bugs.launchpad.net/bugs/656009 --- usbmuxd-1.0.8.orig/libusbmuxd/CMakeLists.txt +++ usbmuxd-1.0.8/libusbmuxd/CMakeLists.txt @@ -7,6 +7,8 @@ find_package(Inotify) if (INOTIFY_FOUND) add_definitions("-DHAVE_INOTIFY") message("-- libusbmuxd will be built with inotify support") +else (INOTIFY_FOUND) + message("-- libusbmuxd will be built without inotify support") endif() endif(WANT_INOTIFY) --- usbmuxd-1.0.8.orig/Modules/FindInotify.cmake +++ usbmuxd-1.0.8/Modules/FindInotify.cmake @@ -1,7 +1,8 @@ set(INOTIFY_H "NOTFOUND") -find_file(INOTIFY_H - "sys/inotify.h" - PATHS ENV INCLUDE +find_path(INOTIFY_H + sys/inotify.h + PATH_SUFFIXES + ${CMAKE_LIBRARY_ARCHITECTURE} ) if (INOTIFY_H) debian/patches/series0000644000000000000000000000013412231250635012027 0ustar 02-udev-usbmux-owner.patch 03-revert-ifdef-USBMUXD_DAEMON.patch find-inotify-multiarch.path debian/compat0000644000000000000000000000000212231250635010363 0ustar 9 debian/libusbmuxd2.symbols0000644000000000000000000000166312231250635013045 0ustar libusbmuxd.so.2 libusbmuxd2 #MINVER# check_fd@Base 1.0.0 close_socket@Base 1.0.6 collection_add@Base 1.0.0 collection_count@Base 1.0.0 collection_free@Base 1.0.0 collection_init@Base 1.0.0 collection_remove@Base 1.0.0 connect_unix_socket@Base 1.0.0 create_socket@Base 1.0.0 create_unix_socket@Base 1.0.0 devmon@Base 1.0.0 fdlist_add@Base 1.0.0 fdlist_create@Base 1.0.0 fdlist_free@Base 1.0.0 fdlist_reset@Base 1.0.0 get_next_event@Base 1.0.0 mutex@Base 1.0.8 peek_buf@Base 1.0.0 recv_buf@Base 1.0.0 recv_buf_timeout@Base 1.0.0 send_buf@Base 1.0.0 shutdown_socket@Base 1.0.8 sock_stuff_set_verbose@Base 1.0.0 usbmuxd_connect@Base 1.0.0 usbmuxd_device_list_free@Base 1.0.0 usbmuxd_disconnect@Base 1.0.0 usbmuxd_get_device_by_udid@Base 1.0.8 usbmuxd_get_device_list@Base 1.0.0 usbmuxd_recv@Base 1.0.0 usbmuxd_recv_timeout@Base 1.0.0 usbmuxd_send@Base 1.0.0 usbmuxd_subscribe@Base 1.0.0 usbmuxd_unsubscribe@Base 1.0.0