debian/0000755000000000000000000000000012231471737007175 5ustar debian/libmtp-runtime.install0000644000000000000000000000002312205614530013517 0ustar lib/udev/mtp-probe debian/control.in0000644000000000000000000001232712231471717011210 0ustar Source: libmtp Section: libs Priority: optional Maintainer: Alessio Treglia Build-Depends: autoconf, automake, chrpath, debhelper (>= 9), dh-autoreconf, docbook-xsl, doxygen, dpkg-dev (>= 1.13.19), libgcrypt11-dev, libusb-1.0-0-dev [linux-any], libusb-dev [!linux-any], lsb-release, pkg-config, xsltproc Standards-Version: 3.9.4 Homepage: http://libmtp.sourceforge.net/ Vcs-Git: git://anonscm.debian.org/collab-maint/libmtp.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/libmtp.git Package: libmtp@SOVERSION@ Architecture: any Depends: libmtp-common, ${misc:Depends}, ${shlibs:Depends} Recommends: libmtp-runtime [linux-any], ${udev} Pre-Depends: dpkg (>= 1.15.7.2), ${misc:Pre-Depends} Multi-Arch: same Description: Media Transfer Protocol (MTP) library libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. Package: libmtp-common Architecture: all Depends: ${misc:Depends} Breaks: libmtp8 (<= 1.0.6-6) Replaces: libmtp8 Multi-Arch: foreign Description: Media Transfer Protocol (MTP) common files libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package provides the udev rules file and the FreeDesktop.org Device Information Files file (used by HAL). Package: libmtp-runtime Architecture: linux-any Depends: libmtp-common, libmtp@SOVERSION@ (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} Replaces: libmtp8 (= 1.0.6-3) Breaks: libmtp8 (= 1.0.6-3) Enhances: libmtp@SOVERSION@ Description: Media Transfer Protocol (MTP) runtime tools libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package provides mtp-probe, a program to probe newly connected device interfaces from userspace to determine if they are MTP devices, used for udev rules. Package: libmtp-dev Section: libdevel Architecture: any Depends: libmtp@SOVERSION@ (= ${binary:Version}), libusb-1.0-0-dev [linux-any], libusb-dev [!linux-any], ${misc:Depends} Multi-Arch: same Description: Media Transfer Protocol (MTP) development files libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package contains the headers and development libraries. Package: libmtp-dbg Section: debug Priority: extra Architecture: any Depends: libmtp@SOVERSION@ (= ${binary:Version}), ${misc:Depends} Multi-Arch: same Description: Media Transfer Protocol (MTP) debugging symbols libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package contains the debugging symbols. Package: libmtp-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: Media Transfer Protocol (MTP) library documentation libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package contains the development documentation. Package: mtp-tools Section: utils Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Enhances: libmtp@SOVERSION@ Description: Media Transfer Protocol (MTP) library tools libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package contains tools for communicating with MTP devices. debian/copyright0000644000000000000000000000731612205615631011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libmtp Upstream-Contact: Richard A. Low Linus Walleij Source: http://sf.net/projects/libmtp/files/ Files: * Copyright: 2003-2013, Linus Walleij 2005-2009, Richard A. Low 2005-2009, Richard A. Low and Linus Walleij 2003, Nikolai Kopanygin 2001-2004, Mariusz Woloszyn 2007, Ted Bullock 2003-2008, Marcus Meissner 2008, Chris Bagwell 2008, Alistair Boyle 2008, Florent Mertens 2007, Tero Saarni 2006, Chris A. Debenham 2006, Robert Reardon 2006, Andy Kelk 2003-2005, Shaun Jackman 2003-2005, Enrique Jorrete Ledesma 2008, Nicolas Pennequin 2008, Joseph Nahmias ] 2006, The libmtp development team License: LGPL-2+ Files: debian/* Copyright: 2010-2011, Alessio Treglia 2007-2009, Rafael Laboissiere 2006, Jean Parpaillon License: LGPL-2.1+ Files: debian/apport/* Copyright: 2009 Sense Hofstede License: GPL-2+ License: LGPL-2+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 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 Library General Public License for more details. Comment: On Debian systems the complete text of the GNU Lesser General Public License can be found in the `/usr/share/common-licenses/LGPL-2' file. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . 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 Lesser General Public License for more details. Comment: On Debian systems the complete text of the GNU Lesser General Public License can be found in the `/usr/share/common-licenses/LGPL-2.1' file. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . 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. Comment: On Debian systems the complete text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL-2' file. . You should have received a copy of the GNU General Public License along with this program. If not, see . debian/libmtp.postinst.in0000644000000000000000000000207512205614530012671 0ustar #!/bin/sh # postinst script for libmtp set -e PACKAGE=libmtp@SOVERSION@ case "$1" in configure) # PART A: Remove broken link (0.3.7-3 upgrade, bug #527206) oldlink=/etc/udev/rules.d/libmtp8.rules if [ -L $oldlink -a ! -f $oldlink ] ; then rm -f $oldlink fi # PART B: Remove broken link, libmtp5 leftover (bug #531538) oldlink2=/etc/udev/rules.d/libmtp.rules if [ -L $oldlink2 -a ! -f $oldlink2 ] ; then rm -f $oldlink2 fi # PART C: Remove broken link, libmtp7 leftover oldlink3=/etc/udev/rules.d/libmtp7.rules if [ -L $oldlink3 -a ! -f $oldlink3 ] ; then rm -f $oldlink3 fi # PART D # Check if package version is 0.3.7-3 or less # Do not mix with package-default rules file: /lib/udev/rules.d/libmtp8.rules # If rules file is in /etc/udev/, move it to correct path /etc/udev/rules.d/ # and with 45- prefix. dpkg-maintscript-helper mv_conffile \ /etc/udev/$PACKAGE.rules /etc/udev/rules.d/45-$PACKAGE.rules \ 0.3.7-3 libmtp8 -- "$@" esac #DEBHELPER# exit 0 debian/changelog0000644000000000000000000011046512231471733011052 0ustar libmtp (1.1.6-20-g1b9f164-1ubuntu2) trusty; urgency=low * Hard copy config.rpath to avoid build-dep on gnulib. -- Matthias Klose Tue, 22 Oct 2013 14:39:34 +0200 libmtp (1.1.6-20-g1b9f164-1) unstable; urgency=low * New upstream release. - Tons of new devices. * Make sure things work with sources retrieved from git. * Regenerate debian/control. * Update debian/copyright. -- Alessio Treglia Fri, 23 Aug 2013 09:22:07 +0100 libmtp (1.1.6-2) unstable; urgency=low * Upload to unstable. -- Alessio Treglia Mon, 06 May 2013 10:56:18 +0200 libmtp (1.1.6-1) experimental; urgency=low * New upstream release: - Soname libmtp.so.9.1.0 - binary compatible. - Devices, devices, devices... - More careful autoprobing code for Linux, running around in sysfs to try to avoid opening non-MTP devices. - Interface extenstions from Philip Langdale to support the Android in-place read/write extensions. This will be used by GVFS for editing files etc, it is actually very useful when treating the MTP device as a "real" filesystem. It only works on Android devices with Google's MTP stack. - Several fixes and memory leaks fixed by Lei Zhang courtesy if the Chromebook project, thanks Google! - Did you know that Microsoft silently dropped the MTPZ extension from Windows Phone 8? Now you know. Newer Windows Phone devices are reported to work out-of-the-box with libmtp. * Refresh symbols. * debian/{control,rules}: - Switch back from dh-autoreconf to autotools-dev. * Use Vcs canonical field. * Bump Standards. * Refresh debian/control. -- Alessio Treglia Tue, 02 Apr 2013 13:06:20 +0100 libmtp (1.1.5-42-g6e96316-1) experimental; urgency=low * New upstream snapshot: - New devices: + Philips GoGear Ariaz/97 + Some Acer's ICONIA tablets. + Some Archos' stuff. + Nokia Lumia 920 + Fujitsu's F903iX HIGH-SPEED and STYLISTIC M532. + Sony Tablet P1 (and some more from Sony). + Motorola XT890 + Google stuff of course. + Some Asus' Eeepad variants. + Huawei U8815. + ZTE Blade 3. + HTC EVO models and some else. + Amazon Kindles. + Intel Xolo 900. + Various unbranded stuff. -- Alessio Treglia Sat, 02 Feb 2013 18:18:40 +0000 libmtp (1.1.5-1) experimental; urgency=low * New upstream release (LP: #1050498) * Update symbols file. -- Alessio Treglia Fri, 05 Oct 2012 01:10:33 +0100 libmtp (1.1.4-1) experimental; urgency=low * New upstream bugfix release. * Remove 0001-devicedb_updates.patch, applied upstream. * Remove kfreebsd/hurd's patches, they are no longer needed. * Switch dh_autoreconf -> dh_autotools_dev -- Alessio Treglia Tue, 21 Aug 2012 11:35:12 +0200 libmtp (1.1.3-35-g0ece104-2) unstable; urgency=low * Device db updates picked from upstream git: - New devices: + Google Inc (for Samsung) Nexus S + Huawei Mediapad (second ID) + HTC EVO 4G LTE (second ID) + Motorola XT912 + Sony Xperia P (another ID) + Sony Xperia Sola MT27i + Toshiba Excite AT300 - Fix device 2207:0001, it seems multi-branded OEM product. -- Alessio Treglia Wed, 18 Jul 2012 11:04:36 +0200 libmtp (1.1.3-35-g0ece104-1) unstable; urgency=low * Imported Upstream version 1.1.3-35-g0ece104: - Some new players: + SonyEricsson SK17i Xperia mini pro + SONY Xperia U ST25i + Viewpia DR + Archos 101 G9 (v2) + Asus TF300 Transformer + Asus TF101 Eeepad Slider + HTC Zopo ZP100 + HTC EVO 4G LTE + Medion Lifetab P9514 - Fix typo in libmtp.h, VCARD v2 and v3 now properly detected. - Blacklist Atmel JTAG programmers. -- Alessio Treglia Fri, 29 Jun 2012 08:40:07 +0200 libmtp (1.1.3-24-g9aca343-3) unstable; urgency=low * Upload to unstable. -- Alessio Treglia Thu, 21 Jun 2012 10:44:53 +0200 libmtp (1.1.3-24-g9aca343-2) experimental; urgency=low * Add MTPz support. - Build-depend on libgcrypt11-dev. -- Alessio Treglia Sun, 17 Jun 2012 11:41:00 +0200 libmtp (1.1.3-24-g9aca343-1) experimental; urgency=low * New upstream snapshot 1.1.3-24-g9aca343. * Replace dh-autotools_dev with dh-autoreconf. - Build-Depends on dh-autoreconf, gnulib. - Install config.rpath by hand. * Drop {1001-kfreebsd_hurd_ftbfs,1002-fix_libusb_checks}.patch, applied upstream. -- Alessio Treglia Sat, 16 Jun 2012 10:39:41 +0200 libmtp (1.1.3-5) unstable; urgency=low * Add MTPz support to provide support for Zune devices: - Build-depend on libgcrypt11-dev. -- Alessio Treglia Sat, 16 Jun 2012 10:54:29 +0200 libmtp (1.1.3-4) unstable; urgency=low * debian/rules: - Save origin files _before_ running configure. - Fix target deps, regenerate files before configuring the package. -- Alessio Treglia Sat, 16 Jun 2012 09:20:22 +0200 libmtp (1.1.3-3) unstable; urgency=low * Switch to debhelper 9, this means: - I won't have to deal with CDBS anymore. - Introduce Multi-Arch support: + Some changes to debian/libmtp{,-dev}.install* were needed. - Hardening is now enabled by default. * Don't build static objects anymore. -- Alessio Treglia Fri, 15 Jun 2012 12:57:37 +0200 libmtp (1.1.3-2) unstable; urgency=low * Install apport files on Debian systems too. * Add patch to fix FTBFS on kfreebsd. Thanks to Robert Millan for the patch. (Closes: #667081) -- Alessio Treglia Fri, 20 Apr 2012 09:35:36 +0200 libmtp (1.1.3-1) unstable; urgency=low * New upstream bugfix release: - Soname libmtp.so.9.0.3 - binary compatible. - Probably nailed the bugs in the Samsung Galaxy Tab S2 family of devices. Ignacio Martinez helped us fixing this! - Build fixes by Alessio Treglia and others. - A horde of new devices in the database. * Remove patches applied upstream: - 0001-broken_object_info.patch - 0002-devicedb_updates.patch - 2001-pkgconfig_requires.patch * Refresh 1001-kfreebsd_hurd_ftbfs.patch. * Refresh symbols file. * Update debian/copyright. -- Alessio Treglia Tue, 03 Apr 2012 08:45:30 +0200 libmtp (1.1.2-4) unstable; urgency=low * libmtp requires either libusb or libusb-1.0 to build, but libmtp.pc does not update the Requires field accordingly. (Closes: #666713) * Build depend on auto{conf,make,tools-dev}. * Bump Standards. -- Alessio Treglia Sun, 01 Apr 2012 12:13:02 +0200 libmtp (1.1.2-3) unstable; urgency=low * Port libmtp-dev to Architecture: any. * Set libmtp-dev depends on libusb-1.0-0-dev on Linux and on libusb-dev on non-linux. Thanks to Aaron for the report! (Closes: #665272) * 0001-broken_object_info.patch (taken from upstream git): - src/device-flags.h: New DEVICE_FLAG_BROKEN_GET_OBJECT_INFO, some devices return bad data on GetObjectInfo. - src/ptp.c: Properly handle bad data returned by GetObjectInfo. * Several updates to the devices DB (taken from upstream git): - Attempt to fix issues with SonyEricsson LT15i (LP: #902962) - New devices: + Transformer Prime (an unknown version) + HP Touchpad + Another Acer Iconia Tab + Nook Color + Sony Tablet S1 + Sony NWZ-B163F + Sony ST15i Xperia Mini + Toshiba Thrive + NEC FOMA N01A + Some Archos devices - Consolidate bug flags for many devices. -- Alessio Treglia Sat, 31 Mar 2012 11:12:37 +0200 libmtp (1.1.2-2) unstable; urgency=low * Use libusb-dev instead of libusb-1.0-0-dev on non-linux archs. -- Alessio Treglia Fri, 13 Jan 2012 17:41:10 +0100 libmtp (1.1.2-1) unstable; urgency=low * New upstream release: - Rewritten to use libusb 1.0 if available. - Autodetect "sony.net" NWZ devices and add proper device flags automatically. - A horde of new devices in the database. * debian/control: - Move to libusb-1.0. - Add pkg-config to Build-Depends. * Refresh debian/patches/1001-kfreebsd_hurd_ftbfs.patch. -- Alessio Treglia Fri, 13 Jan 2012 14:14:38 +0100 libmtp (1.1.1-1) unstable; urgency=low * New upstream bugfix release: - Insert more carefulness into the udev script so we avoid probing any color adjustment devices. These don't even like it when we open them to check their props. - udev rule prio for probe command set to come after most other devices including SANE, so now we use level 69 (Closes: #647234). - A horde of new devices in the database. * Remove debian/patches/0001-new_devices.patch. * Remove debian/patches/2001-new_devices_from_upstream_git.patch * Update debian/patches/1001-kfreebsd_hurd_ftbfs.patch -- Alessio Treglia Tue, 08 Nov 2011 21:47:48 +0100 libmtp (1.1.0-4) unstable; urgency=low * Upload to unstable. -- Alessio Treglia Tue, 16 Aug 2011 10:49:41 +0200 libmtp (1.1.0-3) experimental; urgency=low * Patches taken from upstream's git: - Add another Xoom variant. - Add new GoGear device. -- Alessio Treglia Tue, 09 Aug 2011 14:38:54 +0200 libmtp (1.1.0-2) experimental; urgency=low [ Alessio Treglia ] * debian/copyright: - Credits to Sense Hofstede for the apport script. - Fix formatting to comply with DEP-5 svn r174. * debian/patches/0001-new_devices.patch - New device: Google Xoom 18d1:70a8 (LP: #793064) [ Loïc Minier ] * Let libmtpN replace libmtp8; LP: #802441 * Move apport hook to libmtp-common. Shipping the apport hook in libmtp-common instead of libmtpN avoids the need for Replaces in the future; thanks Michael Vogt. -- Alessio Treglia Tue, 28 Jun 2011 09:42:56 +0200 libmtp (1.1.0-1) experimental; urgency=low * New upstream release: - Soname libmtp.so.9.0.0 - new ABI: + New state fields are added in an exposed public struct. Programs need to be recompiled and relinked against the new libmtp but then they should work. - New interfaces: + LIBMTP_Open_Raw_Device_Uncached() + LIBMTP_Get_Files_And_Folders() - Tentative event interface: LIBMTP_Read_Event + Support for some basic device event. It should be polled by a separate thread in clients, and we expect to handle most events internally in libmtp (such as updating the data cache when objects are added or removed) but this thread is required to drive it. - Even more careful device probe code in the mtp-probe executable. Some distros reported problems with some rouge devices with custom interfaces going into endless probe loops. This should now be fixed: we're making sure we have exactly the right kind of endpoints before probing. - udev rule prio for probe command set to match what comes with stock udev. - Probing for IAD (Interface Association Descriptors). - A horde of new devices in the database. * Delete 0001-new_devices.patch, applied upstream. * Refresh 1001-kfreebsd_hurd_ftbfs.patch * debian/{control,rules}: Bump SOVERSION to 9. * Move libmtp8.symbols to libmtp9.symbols. * Update symbols file. * udev rules file has been renamed: 45-libmtp.rules -> 39-libmtp.rules. * debian/control: - Drop ancient udev << 0.136-1 from the libmtp9's Breaks field. - libmtp{9,-runtime} depend on libmtp-common. - Relax mtp-tools' dependency on libmtp@SONAME@. * Update mtp-tools' manpage to document the new mtp-filetree utility. -- Alessio Treglia Mon, 20 Jun 2011 10:48:47 +0200 libmtp (1.0.6-7) unstable; urgency=low * Move udev,hal files into new 'libmtp-common' package. -- Alessio Treglia Sat, 18 Jun 2011 12:13:54 +0200 libmtp (1.0.6-6) unstable; urgency=low * Demote libmtp-runtime to Recommends (Closes: #625976). -- Alessio Treglia Sun, 08 May 2011 09:59:09 +0200 libmtp (1.0.6-5) unstable; urgency=low [ Alessio Treglia ] * Promote libmtp-runtime as dependency (for linux-any archs). * Drop hardcoded {mv,rm}_conffile in favor of dpkg-maintscript-helper. - Add a Pre-Depends: dpkg (>= 1.15.7.2) to libmtp8; this could be removed once Ubuntu Lucid reached EOL. * debian/libmtp.preinst.in - Remove "PART A" since 0.3.7-3 is obsolete for both Debian and Ubuntu. + Debian Squeeze provides libmtp 1.0.3-1 + Ubuntu Lucid provides libmtp higher than 1.0.2-1. * Re-generate debian/control. [ Pino Toscano ] * Remove udev files only in libmbtp$(SOVERSION).install files; Closes: #625628 -- Alessio Treglia Fri, 06 May 2011 00:46:02 +0200 libmtp (1.0.6-4) unstable; urgency=low [ Pino Toscano ] * 1001-kfreebsd_ftbfs.patch: rename to 1001-kfreebsd_hurd_ftbfs.patch, and add Hurd. * More non-Linux fixes, especially for Hurd: (Closes: #624640) - Handle and install the udev .rules file and mtp-probe only on Linux architectures. - Install the HAL .fdi file (part of the UDEVFILES) on any architecture. [ Alessio Treglia ] * debian/copyright: - Update to DEP-5 rev.174. - Group copyright information by licensing. * Move mtp-probe into a new libmtp-runtime package to keep the opportunity to co-install libmtp8 with future libmtpN packages: - Add libmtp-runtime [linux-any] to libmtp8's Recommends field. - Add libmtp-runtime [linux-any] to libmtp-dbg's Depends field. * Add Enhances: libmtp8 to mtp-tools package's stanza. * Re-generate debian/control. * Update quilt's series file. -- Alessio Treglia Mon, 02 May 2011 20:44:55 +0200 libmtp (1.0.6-3) unstable; urgency=low * Install mtp-probe (Closes: #624537). * Attempt to fix FTBFS on hurd. * Bump Standards-Version. -- Alessio Treglia Fri, 29 Apr 2011 18:24:05 +0200 libmtp (1.0.6-2) unstable; urgency=low * Add support for new devices: - Motorola Xoom (two models). - Samsung YP-Q3. - Nokia E7 (LP: #738185). -- Alessio Treglia Sat, 19 Mar 2011 14:03:16 +0100 libmtp (1.0.6-1) unstable; urgency=low * New upstream release: - Fix probe code, hopefully MTP devices are now properly detected. - Fix an older iconv.m4 and other stuff needed for Solaris builds. - Some new devices and minor bug fixes. * Refresh patches. -- Alessio Treglia Tue, 15 Feb 2011 20:45:39 +0100 libmtp (1.0.5-2) unstable; urgency=low * 1002-udev_rules.patch: - Adapt upstream udev rules file to Debian standards. -- Alessio Treglia Thu, 10 Feb 2011 19:19:27 +0100 libmtp (1.0.5-1) unstable; urgency=low * Upload to unstable. * New upstream release: - soname libmtp.so.8.3.5 - several fixes from Denis Dupeyron to ease work for maintainers: + ./configure --enable-doxygen: make Doxygen doc generation optional. + ./configure --with-udev=DIR: select a dir for udev. + ./configure --with-udev-rules=NAME: select name of udev rules file. - several mtp-probe fixes for udev use, now we only probe: + Devices that are of known classes to conatin MTP extensions: COMM, PTP, CUSTOM and per-interface. + Unless the device is CUSTOM, it needs to contain atleast one CUSTOM interface. + Clear halt on EP 0 after probe if it fails with error. + Stop accepting *all* PTP devices as MTP, this is confusing. - Minor fixes and new devices. * Don't build,install static libraries. * Pass --enable-doxygen to the configure script. * Refresh patches. -- Alessio Treglia Thu, 10 Feb 2011 10:43:52 +0100 libmtp (1.0.4-2) experimental; urgency=low * Add patch to prevent FTBFS on kfreebsd architectures. -- Alessio Treglia Sat, 15 Jan 2011 14:09:41 +0100 libmtp (1.0.4-1) experimental; urgency=low * New upstream release. * Update debian/gbp.conf * Drop all patches, applied upstream. * Update symbols file * Pass -Wl,--as-needed to the linker. -- Alessio Treglia Sat, 15 Jan 2011 11:20:54 +0100 libmtp (1.0.3-6) experimental; urgency=low * New devices: - Nokia 2710 0421:02c1. - Nokia 5230 0421:02e2. - SanDisk Sansa Fuze+ 0781:74e0 - Sony Walkman NWZ-B153F 054c:04be - Sony Walkman NWZ-E354 054c:04cb * Take patch from upstream trunk: - examples/hotplug.c: Set ENV{ID_MEDIA_PLAYER}="1" to allow userspace programs to retrieve information about plugged-in device via udev. Thanks to Martin Pitt for reporting this. * Refresh remaining patches. * Set libmtp-dev Architecture to 'all', regenerate debian/control. * Remove static libraries from the -DEV binary. -- Alessio Treglia Sat, 27 Nov 2010 09:50:44 +0100 libmtp (1.0.3-5) experimental; urgency=low * New device: iRiver T5 4102:1153 * Update symbols. -- Alessio Treglia Fri, 05 Nov 2010 11:12:22 +0100 libmtp (1.0.3-4) experimental; urgency=low * New device: Wyplay Wyplayer 1e53:0007. * Refresh patches. -- Alessio Treglia Fri, 03 Sep 2010 19:18:19 +0200 libmtp (1.0.3-3) experimental; urgency=low * Rename, refresh and re-organize patches. * debian/patches/01-devices_small_fixes.patch: - Fix Blackberry's name. - Fix Sony DCR-SR75 device ID. - Add flag to mark Samsung M7600 Beat/GT-S8300T as unable to read the battery status. - Add DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST flag to LG KM900. * New devices now supported: - Apple iPhone 05ac:0x1290 - Apple iPod Touch 1st Gen 05ac:1291 - Apple iPhone 3G 05ac:0x1292 - Apple iPod Touch 2nd Gen 05ac:0x1293 - Apple iPhone 3GS 05ac:0x1294 - Apple 05ac:1296 - Apple 05ac:1297 - Apple 05ac:1298 - Apple iPod Touch 3rd Gen 05ac:0x1299 - Apple iPad 05ac:129a - SonyEricsson U5 0fce:0133 - Samsung Galaxy S GT-I9000 04e8:6877 - Samsung Vibrant SGH-T959 04e8:68a9 - COBY MP705 1e74:6512 - Cowon iAudio J3 0e21:0921 - Motorola Droid X 22b8:41d6 * debian/patches/03-ogg_flags.patch: - Set proper Ogg flags on some Cowon and Samsung devices. * debian/patches/04-autoremove_oggflac_unkn_flags.patch: - If the Ogg or FLAC filetypes have been flagged as being stored as unknown and the device now indicates it supports them then remove the flag. -- Alessio Treglia Thu, 02 Sep 2010 21:58:25 +0200 libmtp (1.0.3-2) experimental; urgency=low * Install apport package hooks only if system is Ubuntu. * Build-Depends on lsb-release. * Remove unnecessary DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL for device Creative ZEN 041E:4157 (Closes: #520961). * Add device entry for the device ID 041E:4133 Creative ZEN MicroPhoto; Closes: #594560; LP: #537386 * mtp-connect should not return exit status 0 regardless if the connect was successful; Closes: #594565, LP: #620814 * Update series file. * Purge ancient /etc/udev/rules.d/65-libmtp.rules conffile; LP: #506791. * Remove broken link /etc/udev/rules.d/libmtp7.rules, libmtp7 leftover. * debian/control{,.in}: - Change my email address. - Bump Standards. - Remove DM-Upload-Allowed: yes. * Add debian/gbp.conf file. * Add .gitignore file. -- Alessio Treglia Fri, 27 Aug 2010 14:21:06 +0200 libmtp (1.0.3-1) unstable; urgency=low * debian/copyright: Update according to DEP-5 proposal. * Add apport package hook to reduce delta with Ubuntu. * New upstream release: - Don't probe HID equipment for device "OS descriptors" some Kensington mice really don't like that (LP: #559892). * Switch to debian 3.0 (quilt) source format. -- Alessio Treglia Tue, 25 May 2010 08:22:17 +0200 libmtp (1.0.2-3) unstable; urgency=low * Provide a -dbg package (Closes: #576966). * Remove libtool .la file. * Bump cdbs level. -- Alessio Treglia Fri, 16 Apr 2010 01:18:17 +0200 libmtp (1.0.2-2) unstable; urgency=medium * Bump Standards. * Sync controls files. * debian/libmtp.preinst.in: Replace '\s' with '\ ' when retrieving libmtp* package list (Closes: #568189). -- Alessio Treglia Sat, 20 Feb 2010 20:45:08 +0100 libmtp (1.0.2-1) unstable; urgency=low * New upstream release. * Update symbols file. * Set DMUA to yes. -- Alessio Treglia Thu, 04 Feb 2010 16:34:58 +0100 libmtp (1.0.1-2) unstable; urgency=low * Correct mtp-tools links (Closes: #564839). -- Alessio Treglia Tue, 12 Jan 2010 15:29:50 +0100 libmtp (1.0.1-1) unstable; urgency=low [ Savvas Radevic ] * debian/libmtp.postinst.in: Remove broken symlink /etc/udev/rules.d/libmtp.rules (Closes: #531538) * debian/libmtp.preinst.in: Remove /etc/udev/libmtp.rules file only when libmtp5 and libmtp6 (<< 0.2.1-2) are *not* installed. * debian/libmtp.{pre,post}inst.in: Replaced tabs with 4 spaces. * Added debian/README.Source to make things a bit more sane. [ Alessio Treglia ] * Adopting this (Closes: #560098). * New upstream release (Closes: #543533). * Bump Standards-Version to 3.8.3. * Register the developer reference with doc-base. * Update debian/copyright (also according to Debian DEP-5 proposal). -- Alessio Treglia Fri, 08 Jan 2010 10:24:21 +0100 libmtp (0.3.7-7) unstable; urgency=low * debian/libmtp.postinst.in: Fix syntax error in logical expression (closes: #527550) -- Rafael Laboissiere Fri, 08 May 2009 07:22:24 +0200 libmtp (0.3.7-6) unstable; urgency=low * The package is now maintained through the collab-maint group at Alioth * debian/control: + (Maintainer) Set to the rafael-libmtp mailing list + (Vcs-Git, Vcs-Browser) Adjust to collab-maint + (Uploaders) Add myself and Savvas Radevic * debian/libmtp.postinst.in: Do safeguard tests to avoid the removal of file /etc/udev/rules.d/libmtp8.rules that could have been changed by the user. Thanks to Michael Biebl for the suggestion and the discussion. -- Rafael Laboissiere Thu, 07 May 2009 16:39:34 +0200 libmtp (0.3.7-5) unstable; urgency=low * debian/libmtp.postinst.in: Remove broken link in /etc/udev/rules.d introduced in the previous version of the package, thanks to Savvas Radevic (closes: #527206) -- Rafael Laboissiere Wed, 06 May 2009 15:32:34 +0200 libmtp (0.3.7-4) unstable; urgency=low [ Savvas Radevic ] * Use proper udev rules folder and not a link (closes: Bug#527108). Changes are taken from Ubuntu and based on patches by Flávio Martins, Martin Pitt and Scott James Remnant. * debian/control: Add Breaks to ensure the right udev version gets used. * debian/libmtp.install.in, debian/libmtp.preinst.in, debian/libmtp.postinst.in: Clean up the mess where files were still going into the wrong directory. * debian/rules: Append proper prefix 45- to libmtp rules in UDEV variable * debian/libmtp.install.in: ../../45-libmtp@SOVERSION@.rules lib/udev/rules.d * Removed libmtp.links.in - Install rules directly instead of a link. [ Rafael Laboissiere ] * debian/libmtp.preinst.in: Remove the check for version 0.2.5-1 on install|upgrade. Debian stable has version 0.2.6.1-3. -- Rafael Laboissiere Tue, 05 May 2009 22:21:54 +0200 libmtp (0.3.7-3) unstable; urgency=low * debian/control.in: + Reword the long description of the packages. Thanks to Gerfried Fuchs for the feedback (closes: #524041) + The package is now maintained with Git at alioth.debian.org. Add Vcs-Git field and change Vcs-Browser accordingly. -- Rafael Laboissiere Fri, 17 Apr 2009 17:18:29 +0200 libmtp (0.3.7-2) unstable; urgency=low * Upload to unstable, now that the libmtp7 -> libmtp8 transition is completed * debian/libmtp.docs.in: Drop ChangeLog from the list of doc files, since dh_installchangelogs takes care of it -- Rafael Laboissiere Sun, 29 Mar 2009 23:50:16 +0200 libmtp (0.3.7-1) experimental; urgency=low * New upstream release. This version contains the necessary changes to src/music-players.h that make the library find all tracks in Zen Xtra (closes: #519980). * Uploaded to experimental, to avoid interference with the libmtp7 -> libmtp8 transition * debian/control: Bump Standards-Version to 3.8.1 (no changes needed) -- Rafael Laboissiere Mon, 16 Mar 2009 22:21:13 +0100 libmtp (0.3.6-2) unstable; urgency=low * Upload to unstable, with the authorization of the debian-release team * debian/control.in: Switch Vcs-Browser URL from wsvn to viewsvn -- Rafael Laboissiere Sun, 22 Feb 2009 09:48:25 +0100 libmtp (0.3.6-1) experimental; urgency=low * New upstream release * debian/watch: Use the qa.debian.org SF redirector URL -- Rafael Laboissiere Thu, 22 Jan 2009 22:44:49 +0100 libmtp (0.3.5-1) experimental; urgency=low * New upstream release * debian/rules: Clean src/_stdint.h file, which is created by configure but not cleaned by make distclean, as it should -- Rafael Laboissiere Wed, 23 Dec 2008 14:42:24 +0100 libmtp (0.3.4-2) experimental; urgency=low * debian/watch: Fix upstream URL * debian/control: Add ${misc:Depends} to the Depends fields of all binary pacakges (Lintian warning) -- Rafael Laboissiere Wed, 17 Dec 2008 22:02:47 +0100 libmtp (0.3.4-1) experimental; urgency=low * New upstream release -- Rafael Laboissiere Wed, 12 Nov 2008 18:52:46 +0100 libmtp (0.3.3-1) experimental; urgency=low * New upstream release. * debian/libmtp8.symbols: + Add new symbols introduced in this release (SOVERSION bumped to 8.1.0) + Removed all the symbols that do not start with `LIBMTP_'. Upstream is now doing the Right Thing(TM) and exporting only the symbols that are actually part of the public API. -- Rafael Laboissiere Sat, 27 Sep 2008 12:55:49 +0200 libmtp (0.3.1-1) experimental; urgency=low * New upstream release. * debian/symbols: Add shared library symbols file * debian/watch: Fix URL of upstream tarball -- Rafael Laboissiere Fri, 29 Aug 2008 19:41:26 +0200 libmtp (0.3.0-1) experimental; urgency=low * New upstream release. Upstream has bumped the SONAME version to 8. Uploading to experimental for now. -- Rafael Laboissiere Mon, 30 Jun 2008 21:48:31 +0200 libmtp (0.2.6.1-3) unstable; urgency=low * debian/libmtp.install.in, debian/rules: Install hal fdi information. This change was taken from the Ubuntu package, thanks to Flávio Martin (closes LP#205749) * debian/control.in: Bump Standards-Version to 3.8.0 (no changes needed) -- Rafael Laboissiere Sat, 28 Jun 2008 12:09:48 +0200 libmtp (0.2.6.1-2) unstable; urgency=low * debian/control.in: + Change the relationship to udev from Depends to Recommends (closes: #472048) + Append trunk/ to the path in Vcs-Svn:, such that debcheckout works -- Rafael Laboissiere Fri, 28 Mar 2008 20:34:45 +0100 libmtp (0.2.6.1-1) unstable; urgency=low * New upstream release * debian/rules: Do not install the Lintian override, which is not needed anymore * debian/mtp-tools.lintian.in: Drop Lintian override file * debian/sanitize-manpage.pl: Escape "-" signs that mean the "minus" characters -- Rafael Laboissiere Sun, 16 Mar 2008 22:41:43 +0100 libmtp (0.2.6-1) unstable; urgency=low * New upstream release -- Rafael Laboissiere Thu, 06 Mar 2008 15:07:44 +0100 libmtp (0.2.5-2) unstable; urgency=low * Removed hotplug related stuff since the hotplug has been removed from sid. Thanks to Michael Biebl for the heads up (closes: #461396). + debian/rules: - Do not process hotplug initialization files - Do not put hotplug as an alternate dependency to udev + debian/libmtp.install.in: Do not install hotplug configuration files + debian/libmtp.preinst.in: New file containing code for properly handling the removal of the hotplug conffiles -- Rafael Laboissiere Fri, 08 Feb 2008 15:28:26 +0100 libmtp (0.2.5-1) unstable; urgency=low * New upstream release -- Rafael Laboissiere Tue, 15 Jan 2008 15:39:48 +0100 libmtp (0.2.4-5) unstable; urgency=low * debian/control.in: Use the now official Vcs-* fields instead of the obsolete XS-Vcs-* (this change was done already in version 0.2.3-2 of the package, but in the wrong file debian/control) * debian/rules: Insures that debian/control will be generated, if debian/control.in is newer than it -- Rafael Laboissiere Sun, 06 Jan 2008 11:18:11 +0100 libmtp (0.2.4-4) unstable; urgency=low * debian/rules: Removed bashism in variable substitution. Thanks to Robert Bihlmeyer and Clint Adams for the patch (closes: #458084) * debian/control: Build-depends on chrpath * debian/rules: Removed rpath from programs in the mtp-tools package and from the libmtp.so.*.*.* library -- Rafael Laboissiere Sat, 5 Jan 2008 18:57:38 +0100 libmtp (0.2.4-3) unstable; urgency=low * debian/control.in: + Dropped the Homepage pseudo-header from the extended descriptions + Bumped Standards-Version to 3.7.3 -- Rafael Laboissiere Sun, 23 Dec 2007 09:06:13 +0100 libmtp (0.2.4-2) unstable; urgency=low * debian/control, debian/rules: Make the libmtp package depend on udev and hotplug only for Linux systems (closes: #454256, thanks to Aurelien Jarno for the patch) -- Rafael Laboissiere Tue, 04 Dec 2007 16:50:35 +0100 libmtp (0.2.4-1) unstable; urgency=low * New upstream version, released to unstable * debian/patches/01_strtoul-mtp-command.patch: Dropped patch (applied upstream) * debian/rules: Do not include simple-patchsys.mk anymore -- Rafael Laboissiere Wed, 28 Nov 2007 09:21:57 +0100 libmtp (0.2.3-2) experimental; urgency=low * debian/patches/01_strtoul-mtp-command.patch: Added patch for using strtoul instead of atoi when parsing the command-line arguments of mtp-tools commands. This avoids crashes when file ids on the mtp device are greater than INT_MAX. (Closes: #450651, thanks to Chris Waters.) * debian/control: Use the now official Vcs-* fields instead of the obsolete XS-Vcs-* -- Rafael Laboissiere Mon, 29 Oct 2007 23:16:08 +0100 libmtp (0.2.3-1) experimental; urgency=low * New upstream release, new soversion (libmtp7). Uploaded to experimental, since 0.2.2-2 (libmtp6) must enter testing first. * debian/rules: All debian/* files are now independent of the SOVERSION and are automatically generated -- Rafael Laboissiere Sun, 28 Oct 2007 13:49:31 +0100 libmtp (0.2.2-2) unstable; urgency=low * Released to unstable -- Rafael Laboissiere Fri, 12 Oct 2007 14:05:54 +0200 libmtp (0.2.2-1) experimental; urgency=low * New upstream release. Uploading to experimental to avoid delaying the libmtp6/gnomad2/amarok transition into testing * debian/control.in: Added Homepage field * debian/rules: Remove extra doc/man/man3/LIBMTP* files generate by doxygen * Fixed problems with manpages generated by doxygen: * debian/sanitize-manpage.pl: Added script * debian/rules: Run sanitize-manpage.pl on doc/man/man3/*.3 files -- Rafael Laboissiere Wed, 10 Oct 2007 14:20:25 +0200 libmtp (0.2.1-3) unstable; urgency=low * debian/rules: Fix rules for libmtp-doc to avoid extraneous manpages to be included in the package -- Rafael Laboissiere Wed, 19 Sep 2007 11:43:07 +0200 libmtp (0.2.1-2) unstable; urgency=low * debian/rules, debian/libmtp6.install, debian/libmtp6.links: Install all udev and hotplug files with names libmtp6.*, such that the clashes with libmtp5 are avoided (closes: #439550) -- Rafael Laboissiere Sun, 26 Aug 2007 12:24:02 +0200 libmtp (0.2.1-1) unstable; urgency=low * New upstream release, uploaded to unstable (closes: #436461) * The IDs for the Samsung YP-U3 players have been already included in the src/libusb-glue.c upstream source (closes: #437829) -- Rafael Laboissiere Fri, 24 Aug 2007 11:50:56 +0200 libmtp (0.2.0-1) experimental; urgency=low * New upstream release (closes: #436060) * debian/rules, debian/control.in, debian/mtp-tools.lintian.in: Define variable SOVERSION in rules and use it to create files in the debian/ directory * debian/mtp-tools.links: Added link for mtp-reset man page * debian/libmtp6.*: Renamed files from debian/libmtp5.* -- Rafael Laboissiere Sun, 5 Aug 2007 10:38:03 +0200 libmtp (0.1.5-2) unstable; urgency=low * debian/control: Added XS-Vcs-Svn and XS-Vcs-Browser fields * debian/mtp-tools.lintian: Added Lintian override file * debian/rules: Install Lintian override for the mtp-tools package -- Rafael Laboissiere Sun, 22 Apr 2007 10:59:31 +0200 libmtp (0.1.5-1) unstable; urgency=low * New upstream release (closes: #416323) * debian/rules: The upstream Makefile.am clean now the generated files in the top-level dir. Removed that from the clean target. -- Rafael Laboissiere Tue, 27 Mar 2007 01:03:12 +0200 libmtp (0.1.4-1) unstable; urgency=low * New upstream release (closes: #414500) * debian/rules: + Switched to CBDS + Save and restore file src/gphoto2-endian.h, which is changed by configure * debian/watch: Fixed URL pattern * debian/control: + Simplified Standards-Version to 3.7.2 + Build-depends on CDBS, bumped debhelper dependency version to >= 5 -- Rafael Laboissiere Mon, 12 Mar 2007 10:38:48 +0100 libmtp (0.1.3-4) unstable; urgency=low * debian/copyright: Clarified the copyright situation of the package -- Rafael Laboissiere Fri, 2 Feb 2007 13:46:23 +0100 libmtp (0.1.3-3) unstable; urgency=low * debian/control: Fixed typos in packages descriptions -- Rafael Laboissiere Fri, 2 Feb 2007 11:40:13 +0100 libmtp (0.1.3-2) unstable; urgency=low * debian/control: Improved the packages descriptions (thanks to Dominique Dumont) -- Rafael Laboissiere Fri, 2 Feb 2007 10:33:40 +0100 libmtp (0.1.3-1) unstable; urgency=low * debian/control: - Taken the package over from Jean Parpaillon. Thanks for your initial work, Jean! - Use the new ${binary:Source} variable instead of ${Source-Version} when specifying dependencies on libmtp5. This needs a versioned build-dependency on dpkg-dev >= 1.13.19. - Put libmtp-doc package in Section: doc * debian/mtp-tools.dbk: Added generic man page for the commands in the mtp-tools package * debian/rules: Build the man page mtp-tools.1 * debian/mtp-tools.links: Links for the man pages of all the commands included in the mtp-tools package -- Rafael Laboissiere Thu, 1 Feb 2007 20:55:31 +0100 libmtp (0.1.3-0.2) unstable; urgency=low * Non-maintainer upload * Created package mtp-tools containing the programs distributed in the examples directory * debian/control: Added my name to Uploaders * debian/rules: - Clean files libmtp.rules, libmtp.fdi, and libmtp.usermap generated at build time, such that they do not appear in the diff.gz - Instead of installing debian/libmtp.rules, change the libmtp.rules generated at build time to follow the Debian standards (MODE="660", GROUP="audio") -- Rafael Laboissiere Thu, 1 Feb 2007 12:04:54 +0100 libmtp (0.1.3-0.1) unstable; urgency=low * Non-maintainer upload * New upstream release * debian/control: Changed the name of the binary package to libmtp5, such that the package name matches the library SONAME * debian/libmtp.docs: Dropped INSTALL from file list -- Rafael Laboissiere Wed, 31 Jan 2007 16:13:17 +0100 libmtp (0.0.10-1) unstable; urgency=low * Initial release (Closes: #382195) -- Jean Parpaillon (artefact) Wed, 9 Aug 2006 14:47:52 +0200 debian/libmtp.preinst.in0000644000000000000000000000476612205614530012503 0ustar #!/bin/sh # preinst script for libmtp set -e PACKAGE=libmtp@SOVERSION@ # Prepare to move a conffile without triggering a dpkg question prep_mv_conffile() { PKGNAME="$1" CONFFILE="$2" if [ -e "$CONFFILE" ]; then md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`" if [ "$md5sum" = "$old_md5sum" ]; then rm -f "$CONFFILE" fi fi } case "$1" in install|upgrade) # PART B: Check if file /etc/udev/libmtp.rules exists # Do not mix with package-default rules file: /lib/udev/rules.d/libmtp8.rules if [ -e "/etc/udev/libmtp.rules" ]; then # Check if libmtp5 or early libmtp6 (<< 0.2.1-2) are installed (and not purged) # Default: Remove /etc/udev/libmtp.rules removeit="1" # Get libmtp* package list in the format '${Package} ${Version}' listpkgs="`dpkg-query -W -f '${Package} ${Version}\n' 'libmtp*' | grep '^libmtp[0-9]\+\ '`" # Separate by new line IFS=$(printf "\n") for ipkg in $listpkgs; do name="`echo $ipkg | cut -d' ' -f1`" version="`echo $ipkg | cut -d' ' -f2`" # Exception: Do not remove if libmtp5 is installed if [ "$name" = "libmtp5" -a ! "$version" = "" ]; then removeit="0" fi # Exception: Do not remove if libmtp6 (<< 0.2.1-2) is installed if [ "$name" = "libmtp6" -a ! "$version" = ""]; then if dpkg --compare-versions "$version" lt-nl "0.2.1-2"; then removeit="0" fi fi done unset IFS # If not installed, remove the old libmtp.rules [ "$removeit" = "1" ] && rm -f /etc/udev/libmtp.rules # Its symlink, /etc/udev/rules.d/libmtp.rules, is checked in postinst fi # PART C: # Disabled until the package libmtp-common is made. # /lib/udev/rules.d/libmtp8.rules is rules file installed by default. # Do not mix with user-modified file: /etc/udev/rules.d/libmtp8.rules # Will be replaced by unversioned /lib/udev/rules.d/45-libmtp.rules #rm_conffile $PACKAGE /lib/udev/rules.d/45-libmtp8.rules # PART D: # Remove ancient /etc/udev/rules.d/65-libmtp.rules if [ -e /etc/udev/rules.d/65-libmtp.rules ]; then dpkg-maintscript-helper rm_conffile \ /etc/udev/rules.d/65-libmtp.rules -- "$@" fi esac #DEBHELPER# exit 0 debian/mtp-tools.install0000644000000000000000000000001012205614530012501 0ustar usr/bin debian/mtp-tools.dbk0000644000000000000000000001206312205614530011606 0ustar .
will be generated. You may view the manual page with: nroff -man .
| less'. A typical entry in a Makefile or Makefile.am is: DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\ manpages/docbook.xsl XP=xsltproc -''-nonet manpage.1: manpage.dbk $(XP) $(DB2MAN) $< The xsltproc binary is found in the xsltproc package. The XSL files are in docbook-xsl. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include xsltproc and docbook-xsl in your Build-Depends control field. --> Rafael"> Laboissiere"> 2007-02-01"> 1"> rafael@debian.org"> mtp-tools"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2007 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; tools for communicating with Media Transfer Protocol (MTP) devices mtp-albumart args mtp-albums mtp-connect args mtp-delfile args mtp-detect mtp-emptyfolders mtp-files mtp-filetree mtp-folders mtp-format mtp-getfile args mtp-getplaylist args mtp-hotplug args mtp-newfolder args mtp-newplaylist args mtp-playlists mtp-sendfile args mtp-sendtr args mtp-thumb args mtp-tracks mtp-trexist args DESCRIPTION This manual page documents briefly the commands distributed with the libmtp package, collectively called &dhpackage;. This manual page was written for the &debian; distribution because the original programs do not have manual pages. Concise synopsis can be obtained by giving to the commands. SEE ALSO http://libmtp.sourceforge.net AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/mtp-tools.manpages0000644000000000000000000000001412205614530012632 0ustar mtp-tools.1 debian/compat0000644000000000000000000000000212205614530010362 0ustar 9 debian/libmtp9.symbols0000644000000000000000000001007612205614530012162 0ustar libmtp.so.9 libmtp9 #MINVER# LIBMTP_BeginEditObject@Base 1.1.6 LIBMTP_Clear_Errorstack@Base 1.1.0 LIBMTP_Create_Folder@Base 1.1.0 LIBMTP_Create_New_Album@Base 1.1.0 LIBMTP_Create_New_Playlist@Base 1.1.0 LIBMTP_Delete_Object@Base 1.1.0 LIBMTP_Detect_Raw_Devices@Base 1.1.0 LIBMTP_Dump_Device_Info@Base 1.1.0 LIBMTP_Dump_Errorstack@Base 1.1.0 LIBMTP_EndEditObject@Base 1.1.6 LIBMTP_Find_Folder@Base 1.1.0 LIBMTP_Format_Storage@Base 1.1.0 LIBMTP_GetPartialObject@Base 1.1.6 LIBMTP_Get_Album@Base 1.1.0 LIBMTP_Get_Album_List@Base 1.1.0 LIBMTP_Get_Album_List_For_Storage@Base 1.1.0 LIBMTP_Get_Allowed_Property_Values@Base 1.1.0 LIBMTP_Get_Batterylevel@Base 1.1.0 LIBMTP_Get_Connected_Devices@Base 1.1.0 LIBMTP_Get_Device_Certificate@Base 1.1.0 LIBMTP_Get_Deviceversion@Base 1.1.0 LIBMTP_Check_Specific_Device@Base 1.1.0 LIBMTP_Get_Errorstack@Base 1.1.0 LIBMTP_Get_File_To_File@Base 1.1.0 LIBMTP_Get_File_To_File_Descriptor@Base 1.1.0 LIBMTP_Get_File_To_Handler@Base 1.1.3 LIBMTP_Get_Filelisting@Base 1.1.0 LIBMTP_Get_Filelisting_With_Callback@Base 1.1.0 LIBMTP_Get_Filemetadata@Base 1.1.0 LIBMTP_Get_Files_And_Folders@Base 1.1.0 LIBMTP_Get_Filetype_Description@Base 1.1.0 LIBMTP_Get_First_Device@Base 1.1.0 LIBMTP_Get_Folder_List@Base 1.1.0 LIBMTP_Get_Folder_List_For_Storage@Base 1.1.0 LIBMTP_Get_Friendlyname@Base 1.1.0 LIBMTP_Get_Manufacturername@Base 1.1.0 LIBMTP_Get_Modelname@Base 1.1.0 LIBMTP_Get_Playlist@Base 1.1.0 LIBMTP_Get_Playlist_List@Base 1.1.0 LIBMTP_Get_Property_Description@Base 1.1.0 LIBMTP_Get_Representative_Sample@Base 1.1.0 LIBMTP_Get_Representative_Sample_Format@Base 1.1.0 LIBMTP_Get_Secure_Time@Base 1.1.0 LIBMTP_Get_Serialnumber@Base 1.1.0 LIBMTP_Get_Storage@Base 1.1.0 LIBMTP_Get_String_From_Object@Base 1.1.0 LIBMTP_Get_Supported_Devices_List@Base 1.1.0 LIBMTP_Get_Supported_Filetypes@Base 1.1.0 LIBMTP_Get_Syncpartner@Base 1.1.0 LIBMTP_Get_Thumbnail@Base 1.1.5 LIBMTP_Get_Track_To_File@Base 1.1.0 LIBMTP_Get_Track_To_File_Descriptor@Base 1.1.0 LIBMTP_Get_Track_To_Handler@Base 1.1.3 LIBMTP_Get_Tracklisting@Base 1.1.0 LIBMTP_Get_Tracklisting_With_Callback@Base 1.1.0 LIBMTP_Get_Tracklisting_With_Callback_For_Storage@Base 1.1.0 LIBMTP_Get_Trackmetadata@Base 1.1.0 LIBMTP_Get_u16_From_Object@Base 1.1.0 LIBMTP_Get_u32_From_Object@Base 1.1.0 LIBMTP_Get_u64_From_Object@Base 1.1.0 LIBMTP_Get_u8_From_Object@Base 1.1.0 LIBMTP_Init@Base 1.1.0 LIBMTP_Is_Property_Supported@Base 1.1.0 LIBMTP_Number_Devices_In_List@Base 1.1.0 LIBMTP_Open_Raw_Device@Base 1.1.0 LIBMTP_Open_Raw_Device_Uncached@Base 1.1.0 LIBMTP_Read_Event@Base 1.1.5 LIBMTP_Release_Device@Base 1.1.0 LIBMTP_Release_Device_List@Base 1.1.0 LIBMTP_Reset_Device@Base 1.1.0 LIBMTP_SendPartialObject@Base 1.1.6 LIBMTP_Send_File_From_File@Base 1.1.0 LIBMTP_Send_File_From_File_Descriptor@Base 1.1.0 LIBMTP_Send_File_From_Handler@Base 1.1.3 LIBMTP_Send_Representative_Sample@Base 1.1.0 LIBMTP_Send_Track_From_File@Base 1.1.0 LIBMTP_Send_Track_From_File_Descriptor@Base 1.1.0 LIBMTP_Send_Track_From_Handler@Base 1.1.3 LIBMTP_Set_Album_Name@Base 1.1.0 LIBMTP_Set_Debug@Base 1.1.0 LIBMTP_Set_File_Name@Base 1.1.0 LIBMTP_Set_Folder_Name@Base 1.1.0 LIBMTP_Set_Friendlyname@Base 1.1.0 LIBMTP_Set_Object_Filename@Base 1.1.0 LIBMTP_Set_Object_String@Base 1.1.0 LIBMTP_Set_Object_u16@Base 1.1.0 LIBMTP_Set_Object_u32@Base 1.1.0 LIBMTP_Set_Object_u8@Base 1.1.0 LIBMTP_Set_Playlist_Name@Base 1.1.0 LIBMTP_Set_Syncpartner@Base 1.1.0 LIBMTP_Set_Track_Name@Base 1.1.0 LIBMTP_Track_Exists@Base 1.1.0 LIBMTP_TruncateObject@Base 1.1.6 LIBMTP_Update_Album@Base 1.1.0 LIBMTP_Update_Playlist@Base 1.1.0 LIBMTP_Update_Track_Metadata@Base 1.1.0 LIBMTP_destroy_album_t@Base 1.1.0 LIBMTP_destroy_allowed_values_t@Base 1.1.0 LIBMTP_destroy_file_t@Base 1.1.0 LIBMTP_destroy_filesampledata_t@Base 1.1.0 LIBMTP_destroy_folder_t@Base 1.1.0 LIBMTP_destroy_playlist_t@Base 1.1.0 LIBMTP_destroy_track_t@Base 1.1.0 LIBMTP_new_album_t@Base 1.1.0 LIBMTP_new_file_t@Base 1.1.0 LIBMTP_new_filesampledata_t@Base 1.1.0 LIBMTP_new_folder_t@Base 1.1.0 LIBMTP_new_playlist_t@Base 1.1.0 LIBMTP_new_track_t@Base 1.1.0 debian/patches/0000755000000000000000000000000012231470740010615 5ustar debian/patches/5001-config_rpath.patch0000644000000000000000000004613412231470740014674 0ustar Index: b/config.rpath =================================================================== --- /dev/null +++ b/config.rpath @@ -0,0 +1,690 @@ +#! /bin/sh +# Output a system dependent set of variables, describing how to set the +# run time search path of shared libraries in an executable. +# +# Copyright 1996-2013 Free Software Foundation, Inc. +# Taken from GNU libtool, 2001 +# Originally by Gordon Matzigkeit , 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# The first argument passed to this file is the canonical host specification, +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld +# should be set by the caller. +# +# The set of defined variables is at the end of this script. + +# Known limitations: +# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer +# than 256 bytes, otherwise the compiler driver will dump core. The only +# known workaround is to choose shorter directory names for the build +# directory and/or the installation directory. + +# All known linkers require a '.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +shrext=.so + +host="$1" +host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +# Code taken from libtool.m4's _LT_CC_BASENAME. + +for cc_temp in $CC""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` + +# Code taken from libtool.m4's _LT_COMPILER_PIC. + +wl= +if test "$GCC" = yes; then + wl='-Wl,' +else + case "$host_os" in + aix*) + wl='-Wl,' + ;; + mingw* | cygwin* | pw32* | os2* | cegcc*) + ;; + hpux9* | hpux10* | hpux11*) + wl='-Wl,' + ;; + irix5* | irix6* | nonstopux*) + wl='-Wl,' + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + ecc*) + wl='-Wl,' + ;; + icc* | ifort*) + wl='-Wl,' + ;; + lf95*) + wl='-Wl,' + ;; + nagfor*) + wl='-Wl,-Wl,,' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + wl='-Wl,' + ;; + ccc*) + wl='-Wl,' + ;; + xl* | bgxl* | bgf* | mpixl*) + wl='-Wl,' + ;; + como) + wl='-lopt=' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ F* | *Sun*Fortran*) + wl= + ;; + *Sun\ C*) + wl='-Wl,' + ;; + esac + ;; + esac + ;; + newsos6) + ;; + *nto* | *qnx*) + ;; + osf3* | osf4* | osf5*) + wl='-Wl,' + ;; + rdos*) + ;; + solaris*) + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + wl='-Qoption ld ' + ;; + *) + wl='-Wl,' + ;; + esac + ;; + sunos4*) + wl='-Qoption ld ' + ;; + sysv4 | sysv4.2uw2* | sysv4.3*) + wl='-Wl,' + ;; + sysv4*MP*) + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + wl='-Wl,' + ;; + unicos*) + wl='-Wl,' + ;; + uts4*) + ;; + esac +fi + +# Code taken from libtool.m4's _LT_LINKER_SHLIBS. + +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no + +case "$host_os" in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + # Unlike libtool, we use -rpath here, not --rpath, since the documented + # option of GNU ld is called -rpath, not --rpath. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + case "$host_os" in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + fi + ;; + amigaos*) + case "$host_cpu" in + powerpc) + ;; + m68k) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + cygwin* | mingw* | pw32* | cegcc*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + haiku*) + ;; + interix[3-9]*) + hardcode_direct=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + netbsd*) + ;; + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + else + ld_shlibs=no + fi + ;; + esac + ;; + sunos4*) + hardcode_direct=yes + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + esac + if test "$ld_shlibs" = no; then + hardcode_libdir_flag_spec= + fi +else + case "$host_os" in + aix3*) + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + else + aix_use_runtimelinking=no + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + fi + hardcode_direct=yes + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + fi + # Begin _LT_AC_SYS_LIBPATH_AIX. + echo 'int main () { return 0; }' > conftest.c + ${CC} ${LDFLAGS} conftest.c -o conftest + aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + fi + if test -z "$aix_libpath"; then + aix_libpath="/usr/lib:/lib" + fi + rm -f conftest.c conftest + # End _LT_AC_SYS_LIBPATH_AIX. + if test "$aix_use_runtimelinking" = yes; then + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + else + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + fi + fi + ;; + amigaos*) + case "$host_cpu" in + powerpc) + ;; + m68k) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + bsdi[45]*) + ;; + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + libext=lib + ;; + darwin* | rhapsody*) + hardcode_direct=no + if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then + : + else + ld_shlibs=no + fi + ;; + dgux*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + freebsd2.2*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + freebsd2*) + hardcode_direct=yes + hardcode_minus_L=yes + ;; + freebsd* | dragonfly*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + hpux9*) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + hpux10*) + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + hpux11*) + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + ;; + *) + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + irix5* | irix6* | nonstopux*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + netbsd*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + newsos6) + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + *nto* | *qnx*) + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + else + case "$host_os" in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + osf3*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + osf4* | osf5*) + if test "$GCC" = yes; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + # Both cc and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + solaris*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + sunos4*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + ;; + sysv4) + case $host_vendor in + sni) + hardcode_direct=yes # is this really true??? + ;; + siemens) + hardcode_direct=no + ;; + motorola) + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + ;; + sysv4.3*) + ;; + sysv4*MP*) + if test -d /usr/nec; then + ld_shlibs=yes + fi + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + ;; + sysv5* | sco3.2v5* | sco5v6*) + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator=':' + ;; + uts4*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + *) + ld_shlibs=no + ;; + esac +fi + +# Check dynamic linker characteristics +# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. +# Unlike libtool.m4, here we don't care about _all_ names of the library, but +# only about the one the linker finds when passed -lNAME. This is the last +# element of library_names_spec in libtool.m4, or possibly two of them if the +# linker has special search rules. +library_names_spec= # the last element of library_names_spec in libtool.m4 +libname_spec='lib$name' +case "$host_os" in + aix3*) + library_names_spec='$libname.a' + ;; + aix[4-9]*) + library_names_spec='$libname$shrext' + ;; + amigaos*) + case "$host_cpu" in + powerpc*) + library_names_spec='$libname$shrext' ;; + m68k) + library_names_spec='$libname.a' ;; + esac + ;; + beos*) + library_names_spec='$libname$shrext' + ;; + bsdi[45]*) + library_names_spec='$libname$shrext' + ;; + cygwin* | mingw* | pw32* | cegcc*) + shrext=.dll + library_names_spec='$libname.dll.a $libname.lib' + ;; + darwin* | rhapsody*) + shrext=.dylib + library_names_spec='$libname$shrext' + ;; + dgux*) + library_names_spec='$libname$shrext' + ;; + freebsd* | dragonfly*) + case "$host_os" in + freebsd[123]*) + library_names_spec='$libname$shrext$versuffix' ;; + *) + library_names_spec='$libname$shrext' ;; + esac + ;; + gnu*) + library_names_spec='$libname$shrext' + ;; + haiku*) + library_names_spec='$libname$shrext' + ;; + hpux9* | hpux10* | hpux11*) + case $host_cpu in + ia64*) + shrext=.so + ;; + hppa*64*) + shrext=.sl + ;; + *) + shrext=.sl + ;; + esac + library_names_spec='$libname$shrext' + ;; + interix[3-9]*) + library_names_spec='$libname$shrext' + ;; + irix5* | irix6* | nonstopux*) + library_names_spec='$libname$shrext' + case "$host_os" in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; + *) libsuff= shlibsuff= ;; + esac + ;; + esac + ;; + linux*oldld* | linux*aout* | linux*coff*) + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + library_names_spec='$libname$shrext' + ;; + knetbsd*-gnu) + library_names_spec='$libname$shrext' + ;; + netbsd*) + library_names_spec='$libname$shrext' + ;; + newsos6) + library_names_spec='$libname$shrext' + ;; + *nto* | *qnx*) + library_names_spec='$libname$shrext' + ;; + openbsd*) + library_names_spec='$libname$shrext$versuffix' + ;; + os2*) + libname_spec='$name' + shrext=.dll + library_names_spec='$libname.a' + ;; + osf3* | osf4* | osf5*) + library_names_spec='$libname$shrext' + ;; + rdos*) + ;; + solaris*) + library_names_spec='$libname$shrext' + ;; + sunos4*) + library_names_spec='$libname$shrext$versuffix' + ;; + sysv4 | sysv4.3*) + library_names_spec='$libname$shrext' + ;; + sysv4*MP*) + library_names_spec='$libname$shrext' + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + library_names_spec='$libname$shrext' + ;; + tpf*) + library_names_spec='$libname$shrext' + ;; + uts4*) + library_names_spec='$libname$shrext' + ;; +esac + +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` +shlibext=`echo "$shrext" | sed -e 's,^\.,,'` +escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` + +LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' < --- util/mtp-hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- libmtp.orig/util/mtp-hotplug.c +++ libmtp/util/mtp-hotplug.c @@ -66,7 +66,7 @@ int main (int argc, char **argv) * with ENV{ID_MEDIA_PLAYER}=1 writable for the console * user. */ - char default_udev_action[] = "SYMLINK+=\"libmtp-%k\", ENV{ID_MTP_DEVICE}=\"1\", ENV{ID_MEDIA_PLAYER}=\"1\""; + char default_udev_action[] = "SYMLINK+=\"libmtp-%k\", MODE=\"660\", GROUP=\"audio\", ENV{ID_MTP_DEVICE}=\"1\", ENV{ID_MEDIA_PLAYER}=\"1\""; char *action; // To hold the action actually used. uint16_t last_vendor = 0x0000U; char mtp_probe_dir[256]; debian/patches/series0000644000000000000000000000005612231470703012032 0ustar 1002-udev_rules.patch 5001-config_rpath.patch debian/control0000644000000000000000000001223312231471724010575 0ustar Source: libmtp Section: libs Priority: optional Maintainer: Alessio Treglia Build-Depends: autoconf, automake, chrpath, debhelper (>= 9), dh-autoreconf, docbook-xsl, doxygen, dpkg-dev (>= 1.13.19), libgcrypt11-dev, libusb-1.0-0-dev [linux-any], libusb-dev [!linux-any], lsb-release, pkg-config, xsltproc Standards-Version: 3.9.4 Homepage: http://libmtp.sourceforge.net/ Vcs-Git: git://anonscm.debian.org/collab-maint/libmtp.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/libmtp.git Package: libmtp9 Architecture: any Depends: libmtp-common, ${misc:Depends}, ${shlibs:Depends} Recommends: libmtp-runtime [linux-any], ${udev} Pre-Depends: dpkg (>= 1.15.7.2), ${misc:Pre-Depends} Multi-Arch: same Description: Media Transfer Protocol (MTP) library libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. Package: libmtp-common Architecture: all Depends: ${misc:Depends} Breaks: libmtp8 (<= 1.0.6-6) Replaces: libmtp8 Multi-Arch: foreign Description: Media Transfer Protocol (MTP) common files libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package provides the udev rules file and the FreeDesktop.org Device Information Files file (used by HAL). Package: libmtp-runtime Architecture: linux-any Depends: libmtp-common, libmtp9 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} Replaces: libmtp8 (= 1.0.6-3) Breaks: libmtp8 (= 1.0.6-3) Enhances: libmtp9 Description: Media Transfer Protocol (MTP) runtime tools libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package provides mtp-probe, a program to probe newly connected device interfaces from userspace to determine if they are MTP devices, used for udev rules. Package: libmtp-dev Section: libdevel Architecture: any Depends: libmtp9 (= ${binary:Version}), libusb-1.0-0-dev [linux-any], libusb-dev [!linux-any], ${misc:Depends} Multi-Arch: same Description: Media Transfer Protocol (MTP) development files libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package contains the headers and development libraries. Package: libmtp-dbg Section: debug Priority: extra Architecture: any Depends: libmtp9 (= ${binary:Version}), ${misc:Depends} Multi-Arch: same Description: Media Transfer Protocol (MTP) debugging symbols libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package contains the debugging symbols. Package: libmtp-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: Media Transfer Protocol (MTP) library documentation libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package contains the development documentation. Package: mtp-tools Section: utils Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Enhances: libmtp9 Description: Media Transfer Protocol (MTP) library tools libmtp is a library for communicating with MTP aware devices in POSIX compliant operating systems. It implements MTP Basic, the subset proposed for standardization. . The Media Transfer Protocol (commonly referred to as MTP) is a devised set of custom extensions to support the transfer of music files on USB digital audio players and movie files on USB portable media players. . This package contains tools for communicating with MTP devices. debian/libmtp.docs.in0000644000000000000000000000002412205614530011726 0ustar AUTHORS README TODO debian/mtp-tools.links0000644000000000000000000000312412205614530012164 0ustar usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-albumart.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-albums.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-connect.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-delfile.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-detect.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-emptyfolders.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-files.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-filetree.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-folders.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-format.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-getfile.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-getplaylist.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-hotplug.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-newfolder.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-newplaylist.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-playlists.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-reset.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-sendfile.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-sendtr.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-thumb.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-tracks.1 usr/share/man/man1/mtp-tools.1 usr/share/man/man1/mtp-trexist.1 usr/bin/mtp-connect usr/bin/mtp-sendtr usr/bin/mtp-connect usr/bin/mtp-sendfile usr/bin/mtp-connect usr/bin/mtp-delfile usr/bin/mtp-connect usr/bin/mtp-newfolder usr/bin/mtp-connect usr/bin/mtp-getfile debian/apport/0000755000000000000000000000000012205614530010471 5ustar debian/apport/source_libmtp.py0000644000000000000000000000303412205614530013712 0ustar '''apport package hook for libmtp 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. (c) 2009 Sense Hofstede ''' def add_info(report, ui): ui.information('Please make sure the affected device is connected and on before continuing.') attach_related_packages(report, [ "hal", "udev", ]) # Try using the mtp-detect command to obtain more information if command_available("mtp-detect"): report['MTPDetect'] = command_output("mtp-detect") else: ui.information("Please install the package 'mtp-tools' so we can gather "\ "more detailed debugging information. Afterwards, rerun " \ "the command 'ubuntu-bug libmtp8' or add more information "\ "to an existing bug report by running the command "\ "'apport-collect -p libmtp8 '', replacing "\ " with the number of your bug report.") # Obtain information about changes to udev configuration files attach_conffiles(report, "udev") # Attach the udev log file attach_file_if_exists(report, '/var/log/udev', 'UdevLog') # Get all connected USB devices report['USBDevices'] = usb_devices() debian/rules0000755000000000000000000000524612231471000010243 0ustar #!/usr/bin/make -f LDFLAGS+=-Wl,--as-needed DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) DEB_CONFIGURE_EXTRA_FLAGS := --enable-static=no ifneq (,$(findstring libmtp-doc, $(shell dh_listpackages))) DEB_CONFIGURE_EXTRA_FLAGS += --enable-doxygen endif DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl XP = xsltproc -''-nonet SOVERSION = 9 SUBSTFILES = debian/libmtp$(SOVERSION).docs \ debian/libmtp$(SOVERSION).install \ debian/libmtp$(SOVERSION).preinst \ debian/libmtp$(SOVERSION).postinst UDEVFILES = 20-libmtp$(SOVERSION).fdi debdir = $(CURDIR)/debian debver = $(shell perl -ne '/([\d.-]+)/;print "$$1"; last' \ debian/changelog) # Replace SOVERSION string in debian/ files libmtp$(SOVERSION).%: libmtp.%.in sed "s/@SOVERSION@/$(SOVERSION)/g" < $< > $@ debian/%: debian/%.in sed "s/@SOVERSION@/$(SOVERSION)/g" < $< > $@ mtp-tools.1: debian/mtp-tools.dbk # Build and install the man page for mtp-tools $(XP) $(DB2MAN) $< %: dh $@ --with autoreconf #override_dh_autoreconf: # cp /usr/share/gnulib/build-aux/config.rpath . # dh_autoreconf #override_dh_autoreconf_clean: # rm -rf config.rpath # dh_autoreconf_clean override_dh_auto_configure: $(SUBSTFILES) debian/control # Save file modified by configure ( test -e src/gphoto2-endian.h-orig -o ! \( -e src/gphoto2-endian.h \) ) \ || cp src/gphoto2-endian.h src/gphoto2-endian.h-orig dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS) override_dh_auto_clean: rm -f mtp-tools.1 $(SUBSTFILES) $(UDEVFILES) # Restore original file test ! -e src/gphoto2-endian.h-orig \ || mv src/gphoto2-endian.h-orig src/gphoto2-endian.h dh_auto_clean override_dh_auto_build: mtp-tools.1 dh_auto_build ifneq (,$(findstring libmtp-common, $(shell dh_listpackages))) # Fix mode of udev lifting script chmod +x libmtp.sh # Rename udev files for f in $(UDEVFILES) ; do \ cp libmtp.$${f#*.} $$f ; \ done endif override_dh_install: ifneq (,$(findstring libmtp-doc, $(shell dh_listpackages))) # Rename some man files and remove others chmod +x debian/sanitize-manpage.pl ( cd doc/man/man3/ ; \ rm -f _* ; \ for i in $$(ls *.3 | grep -v ^mtp_) ; do \ ../../../debian/sanitize-manpage.pl < $$i > mtp_$$i ; \ done ) endif dh_install override_dh_installdeb: ifeq (linux,$(DEB_HOST_ARCH_OS)) echo "udev=udev" >> debian/libmtp$(SOVERSION).substvars endif # Remove rpath from the library chrpath --delete \ $(debdir)/libmtp$(SOVERSION)/usr/lib/$(DEB_HOST_MULTIARCH)/libmtp.so.*.* # Remove rpath from programs chrpath --delete $(debdir)/mtp-tools/usr/bin/* dh_installdeb override_dh_strip: dh_strip -plibmtp$(SOVERSION) --dbg-package=libmtp-dbg dh_strip --remaining-packages debian/libmtp-doc.docs0000644000000000000000000000001112205614530012060 0ustar doc/html debian/source/0000755000000000000000000000000012205614530010464 5ustar debian/source/format0000644000000000000000000000001412205614530011672 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000527012205614530011347 0ustar This process of old libmtp rules files will take a looooong time to fade away, possibly after the next stable release of Debian. There's quite a load of stuff to check in the Debian package. They originally came from an Ubuntu patch. The reason is because the libmtp files rule was *not* placed in the correct folder. It's a bit tricky to understand what is actually going on, so I will try to make it as simple as possible. The story goes like this: - DEFAULT folder for the standard (package-default) libmtp8.rules must be: /lib/udev/rules.d/ - DEFAULT (package-default) rules file in DEFAULT folder should be prefixed, we used "45-", so the new rules file is: /lib/udev/rules.d/45-libmtp8.rules - USER-MODIFIED libmtp8.rules must be in folder: /etc/udev/rules.d/ - Any USER-MODIFIED libmtp*.rules that were modified in the past, should go in folder: /etc/udev/rules.d/ Notes and actions taken: - /etc/udev/libmtp.rules was/is used in libmtp5 and libmtp6 libmtp6 (<< 0.2.1-2) - /etc/udev/rules.d/libmtp8.rules (the link to /etc/udev/libmtp8.rules) has to be removed. - Any other symlinks (e.g. /etc/udev/rules.d/libmtp.rules of older libmtp{5,6} packages) have to be removed. - /etc/udev/libmtp8.rules (the file) has to go to /etc/udev/rules.d/libmtp8.rules Notes for the future: - It doesn't make sense to have a versioned libmtp[0-9]+.rules file. Should be replaced by a non-versioned libmtp.rules file. That file should be in libmtp-common. libmtp.preinst.in ------------------ During an install or an upgrade libmtp.preinst.in is processed: - PART A: * Checks if the installed version is 0.3.7-3 or less * Removes the current link file: /etc/udev/rules.d/libmtp8.rules * Prepares to move the conffile of currently installed package to the new folder: /etc/udev/libmtp8.rules - PART B: * Does not remove /etc/udev/libmtp.rules file if libmtp5 or libmtp6 (<< 0.2.1-2) is installed. - PART C: * Disabled until the package libmtp-common is made * Remove conffile /lib/udev/rules.d/45-libmtp8.rules - This is the package-default, do not mix with user-modified /etc/udev/rules.d/45-libmtp8.rules - Will be replaced by unversioned /lib/udev/rules.d/45-libmtp.rules libmtp.postinst.in ------------------ After the above installfest, libmtp.postinst.in is executed: - PART A: Removes link /etc/udev/rules.d/libmtp8.rules if its file-target does not exist - PART B: Removes link /etc/udev/rules.d/libmtp.rules if its file-target does not exist - PART C: * Check if package version is 0.3.7-3 or less * If rules file is in /etc/udev/, move it to correct path /etc/udev/rules.d/ with 45- prefix -- Savvas Radevic Thu, 30 Jul 2009 09:56:33 +0200 debian/gbp.conf0000644000000000000000000000003612205614530010602 0ustar [DEFAULT] pristine-tar = True debian/libmtp-dev.install0000644000000000000000000000005712205614530012621 0ustar usr/include usr/lib/*/*.so usr/lib/*/pkgconfig debian/sanitize-manpage.pl0000644000000000000000000000050612205614530012756 0ustar #!/usr/bin/perl -w my $flag = 0; while (<>) { s {"/.*/}{"} if /^\.TH/; if (/^\.SH NAME/) { $flag = 1; } elsif ($flag) { m {^(.*) \\-} if not m {^/.*/([^/\\]+) }; $_ = "libmtp \\- $1\n"; $flag = 0; } ## Escape minus signs before "-1" as return value s/-1 /\\-1 / if not /-1c/ and /-1/; print; } debian/libmtp-common.install0000644000000000000000000000022112205614530013324 0ustar ../../20-*.fdi usr/share/hal/fdi/information/20thirdparty ../../69-*.rules lib/udev/rules.d ../../debian/apport/* usr/share/apport/package-hooks debian/libmtp-doc.manpages0000644000000000000000000000002512205614530012730 0ustar doc/man/man3/mtp_*.3 debian/watch0000644000000000000000000000006212205614530010213 0ustar version=3 http://sf.net/libmtp/libmtp-(.*).tar.gz debian/libmtp-doc.doc-base0000644000000000000000000000032712205614530012617 0ustar Document: libmtp-doc Title: libmtp documentation Abstract: Developer reference for libmtp. Section: Programming Format: HTML Index: /usr/share/doc/libmtp-doc/html/index.html Files: /usr/share/doc/libmtp-doc/html/* debian/libmtp.install.in0000644000000000000000000000002112205614530012441 0ustar usr/lib/*/*.so.*