--- bitpim-0.9.07.dfsg.1.orig/src/comm_notify.py +++ bitpim-0.9.07.dfsg.1/src/comm_notify.py @@ -14,6 +14,7 @@ import signal import sys +import ctypes import wx bpCOMM_NOTIFICATION_EVENT = wx.NewEventType() @@ -56,8 +57,8 @@ self.mw.OnCommNotification(self.evt) return True -NotificationPath='/var/bitpim' -NotificationFile='/var/bitpim/dnotify.log' +NotificationPath='/var/run/bitpim' +NotificationFile='/var/run/bitpim/dnotify.log' def _process_notification(commobj): # read the log file & process its content @@ -96,8 +97,10 @@ if __debug__: raise return False - fcntl.fcntl(_global_fd, fcntl.F_NOTIFY, - fcntl.DN_MODIFY|fcntl.DN_CREATE|fcntl.DN_MULTISHOT) + flags=fcntl.DN_MODIFY|fcntl.DN_CREATE|fcntl.DN_MULTISHOT + # The business with ctypes ensures that fcntl's argument fits into + # a C integer, which might not otherwise occur on 64-bit systems. + fcntl.fcntl(_global_fd, fcntl.F_NOTIFY, ctypes.c_int(flags).value) mainwindow.log('USB Comm Watch started') return True --- bitpim-0.9.07.dfsg.1.orig/src/native/av/bmp2avi/Makefile +++ bitpim-0.9.07.dfsg.1/src/native/av/bmp2avi/Makefile @@ -14,5 +14,5 @@ SRC=avi_file.cxx bmp_file.cxx b2a.cxx bmp2avi.lbin bmp2avi.mbin bmp2avi.exe: $(SRC) - $(CXX) $(EXTRADEFINES) -O2 -o $@ $(SRC) + $(CXX) $(EXTRADEFINES) $(CXXFLAGS) -o $@ $(SRC) --- bitpim-0.9.07.dfsg.1.orig/src/native/usb/build.sh +++ bitpim-0.9.07.dfsg.1/src/native/usb/build.sh @@ -1,7 +1,8 @@ -PYTHONVER=python2.3 +#!/bin/sh +PYTHONVER=python INCLUDEDIR=`$PYTHONVER -c "import distutils.sysconfig; print distutils.sysconfig.get_python_inc()"` swig -python -I/usr/include libusb.i -gcc -fPIC -Wall -fno-strict-aliasing -O2 -g -shared -I $INCLUDEDIR -o _libusb.so libusb_wrap.c -lusb -strip _libusb.so +gcc -fPIC -Wall -fno-strict-aliasing $CFLAGS -shared -I $INCLUDEDIR -o _libusb.so libusb_wrap.c -lusb +# strip _libusb.so --- bitpim-0.9.07.dfsg.1.orig/src/native/usb/libusb.i +++ bitpim-0.9.07.dfsg.1/src/native/usb/libusb.i @@ -43,6 +43,8 @@ typedef unsigned short u_int16_t; typedef unsigned char u_int8_t; +#define __attribute__(x) + %include usb.h // various wrappers and convenience functions --- bitpim-0.9.07.dfsg.1.orig/src/native/__init__.py +++ bitpim-0.9.07.dfsg.1/src/native/__init__.py @@ -1 +1,3 @@ -# keep python happy +# Handle Debian's split-up layout +__path__.insert(0, '/usr/lib/bitpim/native') + --- bitpim-0.9.07.dfsg.1.orig/src/conversions.py +++ bitpim-0.9.07.dfsg.1/src/conversions.py @@ -237,7 +237,7 @@ mp3file=common.gettempfilename("mp3") try: try: - run(ffmpeg, "-i", shortfilename(inputfilename), "-hq", "-ab", `bitrate`, "-ar", `samplerate`, "-ac", `channels`, shortfilename(mp3file)) + run(ffmpeg, "-i", shortfilename(inputfilename), "-ab", `bitrate`, "-ar", `samplerate`, "-ac", `channels`, shortfilename(mp3file)) except common.CommandExecutionFailed: # we get this exception on bad parameters, or any other # issue so we assume bad parameters for the moment. --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim.dirs +++ bitpim-0.9.07.dfsg.1/debian/bitpim.dirs @@ -0,0 +1 @@ +usr/share/bitpim/helpers --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim.menu +++ bitpim-0.9.07.dfsg.1/debian/bitpim.menu @@ -0,0 +1,11 @@ +?package(bitpim): \ + needs="x11" \ + section="Apps/Tools" \ + title="BitFling" \ + command="/usr/bin/bitfling" + +?package(bitpim): \ + needs="x11" \ + section="Apps/Tools" \ + title="BitPim" \ + command="/usr/bin/bitpim" --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim.udev +++ bitpim-0.9.07.dfsg.1/debian/bitpim.udev @@ -0,0 +1,5 @@ +# Overkill, but merely exposing device names should be harmless. +# (Ensuring that the right user[s] can actually access them is another +# matter entirely.) +BUS=="usb", ACTION=="add", RUN+="/lib/udev/notify-bitpim add" +BUS=="usb", ACTION=="remove", RUN+="/lib/udev/notify-bitpim del" --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim-lib.postinst +++ bitpim-0.9.07.dfsg.1/debian/bitpim-lib.postinst @@ -0,0 +1,24 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +# Standard tools just arrange to produce unoptimized .pyc files; ensure +# that we also have optimized .pyo files for better performance. +# (Compile with -Wignore per #358023, and cover /usr/share/bitpim/code +# in addition to /usr/lib/bitpim to ensure that bitpim's .pyo files +# will remain valid when the default Python version changes.) + +if test -x /usr/bin/pyversions; then + PYTHON=`pyversions -d` +else + PYTHON=python2.3 +fi + +if which $PYTHON >/dev/null 2>&1 && [ -e /usr/lib/$PYTHON/compileall.py ]; then + for d in /usr/lib/bitpim /usr/share/bitpim/code; do + test -d $d && $PYTHON -OO -Wignore /usr/lib/$PYTHON/compileall.py -q $d + done +fi + +exit 0 --- bitpim-0.9.07.dfsg.1.orig/debian/control +++ bitpim-0.9.07.dfsg.1/debian/control @@ -0,0 +1,31 @@ +Source: bitpim +Section: comm +Priority: extra +Maintainer: Aaron M. Ucko +Build-Depends: cdbs, debhelper (>= 5), lynx, python (>= 2.3.5-7), python-dev (>= 2.3), python-support (>= 0.4.2), libusb-dev, swig, unzip +Standards-Version: 3.7.2 + +Package: bitpim +Architecture: all +Depends: ${python:Depends}, bitpim-lib, python-apsw (>= 3.3.5r1), python-crypto, python-ctypes, python-dsv, python-paramiko, python-serial, python-wxgtk2.6 (>= 2.6.2) +Recommends: netpbm +Suggests: ffmpeg, udev +Provides: bitfling +Replaces: bitfling +Conflicts: bitfling +Description: utility to communicate with many CDMA phones + BitPim allows you to view and manipulate data on many phones from LG, + Samsung, Sanyo, and other manufacturers that use Qualcomm CDMA chips. + Depending on your phone model, you may be able to access the phone + book, the calendar, wallpapers, ring tones, and the filesystem. + +Package: bitpim-lib +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends} +Description: architecture-dependent helper files for BitPim + BitPim allows you to view and manipulate data on many phones from LG, + Samsung, Sanyo, and other manufacturers that use Qualcomm CDMA chips. + Depending on your phone model, you may be able to access the phone + book, the calendar, wallpapers, ring tones, and the filesystem. + . + This package contains a handful of architecture-dependent helper files. --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim.links +++ bitpim-0.9.07.dfsg.1/debian/bitpim.links @@ -0,0 +1,6 @@ +usr/lib/bitpim/bmp2avi.lbin usr/share/bitpim/helpers/bmp2avi.lbin +usr/bin/ffmpeg usr/share/bitpim/helpers/ffmpeg.lbin +usr/bin/pngtopnm usr/share/bitpim/helpers/pngtopnm.lbin +usr/bin/pnmtopng usr/share/bitpim/helpers/pnmtopng.lbin +usr/bin/ppmquant usr/share/bitpim/helpers/ppmquant.lbin +usr/share/python-support/python-dsv/DSV usr/share/bitpim/code/DSV --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim.prerm +++ bitpim-0.9.07.dfsg.1/debian/bitpim.prerm @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +dpkg -L bitpim | + awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | + xargs rm -f >&2 +exit 0 --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim.sh +++ bitpim-0.9.07.dfsg.1/debian/bitpim.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/python -OO /usr/share/bitpim/code/bp.py "$@" --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim.1 +++ bitpim-0.9.07.dfsg.1/debian/bitpim.1 @@ -0,0 +1,35 @@ +.TH BITPIM 1 "2006-02-04" +.SH NAME +bitpim \- utility to communicate with many CDMA phones +.SH SYNOPSIS +.B bitpim +[ \fB-c\fP\ \fIfile\fP | \fB-d\fP\ \fIdir\fP ] +.SH DESCRIPTION +This manual page documents briefly the +.B bitpim +command. +.PP +BitPim allows you to view and manipulate data on many phones from LG, +Samsung, Sanyo, and other manufacturers that use Qualcomm CDMA chips. +Depending on your phone model, you may be able to access the phone +book, the calendar, wallpapers, ring tones, and the filesystem. +.SH OPTIONS +A summary of options is included below. +.TP +\fB-c\fP\ \fIfile\fP +Read configuration from \fIfile\fP. +.TP +\fB-d\fP\ \fIdir\fP +Read configuration from \fIdir\fP\fB/.bitpim\fP. +.SH FILES +.TP +\fB$HOME/.bitpim-files/.bitpim\fP +The default configuration file. +.SH SEE ALSO +.BR bitfling (1), +http://www.bitpim.org/. +.SH AUTHOR +\fBbitpim\fP was primarily written by Roger Binns . +.PP +This manual page was written by Aaron M. Ucko , +for the Debian project (but may be used by others). --- bitpim-0.9.07.dfsg.1.orig/debian/rules +++ bitpim-0.9.07.dfsg.1/debian/rules @@ -0,0 +1,96 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/langcore.mk +# include /usr/share/cdbs/1/class/python-distutils.mk + +DEB_DH_INSTALL_SOURCEDIR = debian/tmp +DEB_INSTALL_CHANGELOGS_ALL = debian/changelog.upstream + +datadir = /usr/share/bitpim +libdir = /usr/lib/bitpim + +data_dest = $(DEB_DESTDIR)$(datadir) +lib_dest = $(DEB_DESTDIR)$(libdir) +code_dest = $(data_dest)/code +res_dest = $(data_dest)/resources +dtop_dest = $(DEB_DESTDIR)/usr/share/applications +udev_bin = $(DEB_DESTDIR)/lib/udev + +export CFLAGS CXXFLAGS + +clean:: +# $(MAKE) -C src/native/av/bmp2avi clean PLATFORM=linux + rm -f src/native/av/bmp2avi/bmp2avi.lbin helpers/bmp2avi.lbin + cd src/native/strings && python setup.py clean -a && \ + rm -rf build *.so *.pyc + cd src/native/usb && rm -f libusb_wrap.c libusb.py _libusb.so + chmod -x examples/* + rm -f debian/changelog.upstream debian/stamp-built + +common-build-arch:: debian/stamp-built + +debian/stamp-built: + mkdir -p helpers +# $(MAKE) -C src/native/av/bmp2avi PLATFORM=linux CXXFLAGS="$(CXXFLAGS)" +# cd src/native/strings && python setup.py build --build-base="./build" +# cd src/native/usb && sh -x ./build.sh + python packaging/buildmodules.py all + touch $@ + +debian/changelog.upstream: + unzip -p resources/bitpim.htb versionhistory.htm \ + | lynx -dump -stdin -nolist > $@ + +common-install-arch:: debian/changelog.upstream + mkdir -p $(lib_dest)/native/usb + cp src/native/av/bmp2avi/bmp2avi.lbin $(lib_dest) + cd src/native/strings && \ + python setup.py install --root=$(DEB_DESTDIR) --no-compile -O0 \ + --install-lib=$(libdir)/native/strings + install -m644 src/native/strings/__init__.py $(lib_dest)/native/strings + cp src/native/usb/*.py src/native/usb/*.so $(lib_dest)/native/usb + +common-install-indep:: debian/changelog.upstream + mkdir -p $(DEB_DESTDIR)/usr/bin + install -m755 debian/bitfling.sh $(DEB_DESTDIR)/usr/bin/bitfling + install -m755 debian/bitpim.sh $(DEB_DESTDIR)/usr/bin/bitpim + mkdir -p $(code_dest) + install -m644 src/*.py $(code_dest) + sed -e 's/^\(vendor=\)".*"/\1"Debian"/' src/version.py \ + > $(code_dest)/version.py + cd $(code_dest) && chmod +x analyser.py bp.py \ + brewcompressedimage.py calendarcontrol.py comdiagnose.py \ + comscan.py hexeditor.py setphone_wizard.py usb_ids.py version.py + mkdir $(code_dest)/native + install -m644 src/native/*.py $(code_dest)/native + install -m644 src/native/strings/jarowpy.py \ + $(code_dest)/native/strings.py + for x in egroupware evolution qtopiadesktop; do \ + mkdir -p $(code_dest)/native/$$x && \ + install -m644 src/native/$$x/*.py $(code_dest)/native/$$x; \ + done + mkdir $(code_dest)/phones + install -m644 src/phones/*.py $(code_dest)/phones + mkdir $(res_dest) + install -m644 resources/* $(res_dest) + rm -f $(res_dest)/bitpim.chm + mkdir $(code_dest)/bitfling + install -m644 src/bitfling/*.py $(code_dest)/bitfling + chmod +x $(code_dest)/bitfling/xmlrpcstuff.py + mkdir -p $(dtop_dest) + sed -e 's,%%INSTALLBINDIR%%,/usr/bin,g' \ + -e 's,%%INSTALLLIBDIR%%,$(datadir),g' \ + packaging/bitpim.desktop > $(dtop_dest)/bitpim.desktop + mkdir -p $(udev_bin) + install -m755 debian/notify-bitpim $(udev_bin) + +# binary-install/bitfling:: +# dh_python -pbitfling /usr/share/bitpim/code/bitfling + +binary-install/bitpim:: + dh_pysupport -pbitpim +# dh_python -pbitpim + +binary-install/bitpim-lib:: + dh_pysupport -pbitpim-lib /usr/lib/bitpim +# dh_python -pbitpim-lib /usr/lib/bitpim --- bitpim-0.9.07.dfsg.1.orig/debian/watch +++ bitpim-0.9.07.dfsg.1/debian/watch @@ -0,0 +1,8 @@ +# See uscan(1) for format +version=3 +# Upstream doesn't actually distribute tarballs, so we have to use +# binary packages as proxies and pull sources from CVS. (Sigh.) +opts=dversionmangle=s/\.dfsg\.\d+$// \ + http://sf.net/bitpim/bitpim-(\d+\.\d+\D.+)-0\.i386\.rpm + + --- bitpim-0.9.07.dfsg.1.orig/debian/changelog +++ bitpim-0.9.07.dfsg.1/debian/changelog @@ -0,0 +1,175 @@ +bitpim (0.9.07.dfsg.1-1) unstable; urgency=medium + + * New upstream release; urgency medium due to bug fixes and the addition + of LGVX8500 (Chocolate) support. + * Adjust src/comm_notify.py to look for /var/*run*/bitpim/dnotify.log, + and deploy appropriate udev rules. (These rules are broad-sweeping, + but leave ownership and permissions alone.) + * Work around bogus OverflowErrors in comm_notify.py on 64-bit systems. + * Build with python-support 0.42, and drop the explicit python + dependency introduced to work around #383958. + + -- Aaron M. Ucko Thu, 7 Sep 2006 17:46:36 -0400 + +bitpim (0.9.06.dfsg.1-1) unstable; urgency=medium + + * New upstream release, mostly for bug fixes. + * Build with python-support 0.4.1 (dispensing with dh_python). + - give bitpim a direct dependency on python to avoid Lintian errors. + - lose debian/pycompat and the X-Python-Version: fields. + - loosen the build dependency on debhelper. + + -- Aaron M. Ucko Fri, 11 Aug 2006 18:41:36 -0400 + +bitpim (0.9.05.dfsg.1-1) unstable; urgency=medium + + * New upstream release; adds SCH-A930 support, avoids hanging upon exit, + and includes other safe improvements. + * Build-depend on debhelper >= 5.0.37.3 to keep bitpim-lib from hitting + bug #375948 (wrong metadata for private extensions). + + -- Aaron M. Ucko Sun, 16 Jul 2006 16:35:59 -0400 + +bitpim (0.9.04.dfsg.1-1) unstable; urgency=medium + + * New upstream release; adds preliminary VX8300 support and some safe + bugfixes. + * Don't try to run ffmpeg with -hq, which not all versions recognize + even if they actually support mp3 output. (Closes: #375600.) + * Update pointer to unofficial ffmpeg packages in README.Debian. + * Bump debian/compat to 5 on principle; should be a no-op here, though. + + -- Aaron M. Ucko Wed, 28 Jun 2006 19:36:14 -0400 + +bitpim (0.9.03.dfsg.1-1) unstable; urgency=medium + + * New upstream release, mostly for bugfixes. + * Explicitly request new dh_python behavior via debian/pycompat ("2"). + + -- Aaron M. Ucko Fri, 23 Jun 2006 20:31:05 -0400 + +bitpim (0.9.02.dfsg.1-2) unstable; urgency=low + + * Update for new (0.4) Python policy, using python-support (unfixing + #358023 for the moment, but so be it), with additional logic to ensure + that BitPim's own code remains available in optimized (.pyo) form. + + -- Aaron M. Ucko Thu, 15 Jun 2006 18:10:49 -0400 + +bitpim (0.9.02.dfsg.1-1) unstable; urgency=medium + + * New upstream release (0.9.01 skipped due to bugs); urgency medium + because the set of supported phones has grown yet again. + + -- Aaron M. Ucko Wed, 7 Jun 2006 08:53:55 -0400 + +bitpim (0.9.00.dfsg.1-1) unstable; urgency=medium + + * New upstream milestone release. + + -- Aaron M. Ucko Wed, 17 May 2006 18:09:41 -0400 + +bitpim (0.8.14.dfsg.1-1) unstable; urgency=medium + + * New upstream release; urgency medium due to added support for further + phone models. + * Adjust for bmp2avi's new makefile, which buildmodules.py can now use. + * Require python-apsw >= 3.3.5r1 per upstream. + * Standards-Version: 3.7.2 (still no changes required). + + -- Aaron M. Ucko Tue, 9 May 2006 20:21:24 -0400 + +bitpim (0.8.13.dfsg.1-2) unstable; urgency=low + + * Stop patching brewcompressedimage.py in favor of depending on a + version of python-wxgtk2.6 new enough to support what upstream ships. + * Standards-Version: 3.7.1 (no changes required). + + -- Aaron M. Ucko Wed, 3 May 2006 20:49:30 -0400 + +bitpim (0.8.13.dfsg.1-1) unstable; urgency=medium + + * New upstream release; urgency medium because it fixes some + moderately annoying bugs and adds support for yet more phones. + * README.Debian: drop note about udev configuration, which upstream's + own documentation now addresses. + * Install upstream's (new) .desktop file. + + -- Aaron M. Ucko Tue, 25 Apr 2006 21:08:19 -0400 + +bitpim (0.8.12.dfsg.1-2) unstable; urgency=medium + + * The "I just shot myself in the foot, didn't I?" release. + * Add a symlink to work around python-support bug #363505, which + interferes with bitpim's ability to find python-dsv 1.4.0-2. + + -- Aaron M. Ucko Wed, 19 Apr 2006 19:07:05 -0400 + +bitpim (0.8.12.dfsg.1-1) unstable; urgency=medium + + * New upstream release; urgency medium due to interface bug fixes and + new (partial) support for one more phone model. + * Merge bitfling into the main bitpim package, as there wasn't actually + much point in keeping it separate. + + -- Aaron M. Ucko Sun, 16 Apr 2006 12:23:56 -0400 + +bitpim (0.8.11.dfsg.1-1) unstable; urgency=medium + + * New upstream release; urgency medium because it offers significant + improvements over previous versions, including support for four + additional phone models. + * Adjust packaging to reflect new upstream layout (and avoid version + skew between bitpim and bitfling). + * Fix typo in bitfling's short description. (Closes: #357647.) + * Optimize debian/rules slightly; in particular, take advantage of + upstream's new buildmodules.py script. + * Byte-compile bitpim's .py files with -Wignore to suppress + FutureWarnings that upstream characterizes as spurious. (Closes: + #358023.) + * Make a couple of minor corrections to debian/copyright per upstream's + feedback. + + -- Aaron M. Ucko Sat, 8 Apr 2006 17:38:46 -0400 + +bitpim (0.8.08.dfsg.2-3) unstable; urgency=low + + * Increase optimization to -OO per upstream's recommendation. + * README.Debian: Advise users that stock Debian systems do not support + encoding ringtones into the MP3 format due to patent concerns. + + -- Aaron M. Ucko Fri, 17 Mar 2006 18:34:10 -0500 + +bitpim (0.8.08.dfsg.2-2) unstable; urgency=low + + * More fixes to debian/copyright; in particular, spell the wxWidgets + license that applies to some components out rather than merely citing + it. + + -- Aaron M. Ucko Mon, 27 Feb 2006 19:38:51 -0500 + +bitpim (0.8.08.dfsg.2-1) unstable; urgency=low + + * New upstream tarball, with the outlook plugin removed on the grounds + of being useless on Unix and possibly derived from non-free code. + * Document remaining non-GPLed components' (GPL-compatible!) licenses in + debian/copyright. + + -- Aaron M. Ucko Sun, 26 Feb 2006 19:35:23 -0500 + +bitpim (0.8.08.dfsg.1-1) unstable; urgency=low + + * New upstream release, extracted from upstream CVS as before. + * Supply a plain-text version of upstream's changelog. + + -- Aaron M. Ucko Wed, 22 Feb 2006 14:06:07 -0500 + +bitpim (0.8.07.dfsg.1-1) unstable; urgency=low + + * Initial release, from an upstream CVS checkout with prebuilt binaries + removed. (Closes: #265585.) + * Backported brewcompressedimage.py to wxPython 2.6.1, as Debian does + not yet provide a newer version (thanks to #342189). + + -- Aaron M. Ucko Tue, 7 Feb 2006 18:46:22 -0500 + --- bitpim-0.9.07.dfsg.1.orig/debian/bitfling.sh +++ bitpim-0.9.07.dfsg.1/debian/bitfling.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/python -OO /usr/share/bitpim/code/bp.py bitfling "$@" --- bitpim-0.9.07.dfsg.1.orig/debian/compat +++ bitpim-0.9.07.dfsg.1/debian/compat @@ -0,0 +1 @@ +5 --- bitpim-0.9.07.dfsg.1.orig/debian/bitfling.1 +++ bitpim-0.9.07.dfsg.1/debian/bitfling.1 @@ -0,0 +1,23 @@ +.TH BITFLING 1 "2006-02-04" +.SH NAME +bitfling \- secure remote access to BitFling +.SH SYNOPSIS +.B bitfling +.SH DESCRIPTION +This manual page documents briefly the +.B bitfling +command. +.PP +BitFling lets BitPim run on one machine while your phone is connected +to a different machine, even across the Internet. It uses a protocol +over a secure connection to ensure this is safe. +.SH OPTIONS +None. +.SH SEE ALSO +.BR bitpim (1), +http://www.bitpim.org/. +.SH AUTHOR +\fBbitfling\fP was primarily written by Roger Binns . +.PP +This manual page was written by Aaron M. Ucko , +for the Debian project (but may be used by others). --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim.install +++ bitpim-0.9.07.dfsg.1/debian/bitpim.install @@ -0,0 +1,5 @@ +lib/udev/notify-bitpim +usr/bin/bitfling +usr/bin/bitpim +usr/share/applications +usr/share/bitpim --- bitpim-0.9.07.dfsg.1.orig/debian/README.Debian +++ bitpim-0.9.07.dfsg.1/debian/README.Debian @@ -0,0 +1,18 @@ +BitPim for Debian +================= + +mp3 ringtones +------------- +Many of the phones BitPim supports allow users to upload ringtones in +the popular MP3 format. Although BitPim offers to convert WAV files +to this format, please be advised that such conversion *will not work* +on a stock Debian system, as patent concerns prevent Debian from +distributing any MP3 encoders via official channels. + +On the other hand, uploading existing MP3 (or, for that matter, MIDI) +ringtones as is should still work. Moreover, you can ease this +restriction by installing an unofficial version of the ffmpeg package +with support for MP3 encoding; at the time of this writing, +http://www.debian-multimedia.org/ has such packages. + + -- Aaron M. Ucko , Wed, 28 Jun 2006 14:20:17 -0400 --- bitpim-0.9.07.dfsg.1.orig/debian/notify-bitpim +++ bitpim-0.9.07.dfsg.1/debian/notify-bitpim @@ -0,0 +1,19 @@ +#!/bin/sh +set -e +umask 022 + +DIR=/var/run/bitpim +LOG=$DIR/dnotify.log + +action=$1 +case "$action" in + add|del ) ;; + * ) exit 1 ;; +esac + +dev="${DEVNAME-$DEVICE}" +test -n "$dev" || exit 1 + +mkdir -p "$DIR" +rm -f "$LOG" +echo "$action $dev" > "$LOG" --- bitpim-0.9.07.dfsg.1.orig/debian/copyright +++ bitpim-0.9.07.dfsg.1/debian/copyright @@ -0,0 +1,202 @@ +This package was debianized by Aaron M. Ucko on +Fri, 3 Feb 2006 18:28:52 -0500. + +It was downloaded from http://www.bitpim.org/ + +Copyright Holder: Roger Binns and others + +License: + Copyright (C) 2003-2006 Roger Binns and others - see http://www.bitpim.org/ + + 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + In addition, as a special exception, the BitPim copyright holders + give permission to link the code of this program with the OpenSSL + library (or with modified versions of OpenSSL), and distribute + linked combinations including the two. You must obey the GNU + General Public License in all respects for all of the code used + other than OpenSSL. If you modify any files, you may extend this + exception to your version of the file, but you are not obligated to + do so. If you do not wish to do so, delete this exception statement + from your version. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +Please also note that some code is taken from other projects with a +GPL compatible license. In alphabetical order by file: + +* src/bitfling/xmlrpcstuff.py is double licensed as the BitPim License + [above] and the standard Python license [1]. It incorporates code + from the standard Python library which was then modified to work + properly. + +* src/fixedscrollpanel.py and fixedwxpTag.py fall under the wxWidgets + license [2]: the GNU LGPL with a static-linking exception. + +* src/native/usb/libusb.i falls under the GNU Library/Lesser General + Public License, which can be found in `/usr/share/common-licenses/LGPL'. + +* src/native/usb/usb.py is in the public domain. + +* src/xyaptu.py is licensed under the BSD license, which can be found in + `/usr/share/common-licenses/BSD'. + +[1] This is the Python license. In short, you can use this product in +commercial and non-commercial applications, modify it, redistribute it. +A notification to the author when you use and/or modify it is welcome. + + +TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING THIS SOFTWARE +=================================================================== + +LICENSE AGREEMENT +----------------- + +1. This LICENSE AGREEMENT is between the copyright holder of this +product, and the Individual or Organization ("Licensee") accessing +and otherwise using this product in source or binary form and its +associated documentation. + +2. Subject to the terms and conditions of this License Agreement, +the copyright holder hereby grants Licensee a nonexclusive, +royalty-free, world-wide license to reproduce, analyze, test, +perform and/or display publicly, prepare derivative works, distribute, +and otherwise use this product alone or in any derivative version, +provided, however, that copyright holders License Agreement and +copyright holders notice of copyright are retained in this product +alone or in any derivative version prepared by Licensee. + +3. In the event Licensee prepares a derivative work that is based on +or incorporates this product or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to this product. + +4. The copyright holder is making this product available to Licensee on +an "AS IS" basis. THE COPYRIGHT HOLDER MAKES NO REPRESENTATIONS OR +WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, +THE COPYRIGHT HOLDER MAKES NO AND DISCLAIMS ANY REPRESENTATION OR +WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR +THAT THE USE OF THIS PRODUCT WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. + +5. THE COPYRIGHT HOLDER SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER +USERS OF THIS PRODUCT FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL +DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE +USING THIS PRODUCT, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE +POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. Nothing in this License Agreement shall be deemed to create any +relationship of agency, partnership, or joint venture between the +copyright holder and Licensee. This License Agreement does not grant +permission to use trademarks or trade names from the copyright holder +in a trademark sense to endorse or promote products or services of +Licensee, or any third party. + +8. By copying, installing or otherwise using this product, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. + +[2] +Preamble +======== + +The licensing of the wxWindows library is intended to protect the wxWindows +library, its developers, and its users, so that the considerable investment +it represents is not abused. + +Under the terms of the wxWindows Licence, you as a user are not +obliged to distribute wxWindows source code with your products, if you +distribute these products in binary form. However, you are prevented from +restricting use of the library in source code form, or denying others the +rights to use or distribute wxWindows library source code in the way +intended. + +The wxWindows Licence establishes the copyright for the code and related +material, and it gives you legal permission to copy, distribute and/or +modify the library. It also asserts that no warranty is given by the authors +for this or derived code. + +The core distribution of the wxWindows library contains files +under two different licences: + +- Most files are distributed under the GNU Library General Public + Licence, version 2, with the special exception that you may create and + distribute object code versions built from the source code or modified + versions of it (even if these modified versions include code under a + different licence), and distribute such binaries under your own + terms. + +- Most core wxWindows manuals are made available under the "wxWindows + Free Documentation Licence", which allows you to distribute modified + versions of the manuals, such as versions documenting any modifications + made by you in your version of the library. However, you may not restrict + any third party from reincorporating your changes into the original + manuals. + + wxWindows Library Licence, Version 3 + ==================================== + + Copyright (c) 1998 Julian Smart, Robert Roebling et al + + Everyone is permitted to copy and distribute verbatim copies + of this licence document, but changing it is not allowed. + + WXWINDOWS LIBRARY LICENCE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public Licence as published by + the Free Software Foundation; either version 2 of the Licence, 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 Licence for more details. + + You should have received a copy of the GNU Library General Public Licence + along with this software, usually in a file named COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA. + + EXCEPTION NOTICE + + 1. As a special exception, the copyright holders of this library give + permission for additional uses of the text contained in this release of + the library as licenced under the wxWindows Library Licence, applying + either version 3 of the Licence, or (at your option) any later version of + the Licence as published by the copyright holders of version 3 of the + Licence document. + + 2. The exception is that you may use, copy, link, modify and distribute + under the user's own terms, binary object code versions of works based + on the Library. + + 3. If you copy code from files distributed under the terms of the GNU + General Public Licence or the GNU Library General Public Licence into a + copy of this library, as this licence permits, the exception does not + apply to the code that you add in this way. To avoid misleading anyone as + to the status of such modified files, you must delete this exception + notice from such code and/or adjust the licensing conditions notice + accordingly. + + 4. If you write modifications of your own for this library, it is your + choice whether to permit this exception to apply to your modifications. + If you do not wish that, you must delete the exception notice from such + code and/or adjust the licensing conditions notice accordingly. --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim.postinst +++ bitpim-0.9.07.dfsg.1/debian/bitpim.postinst @@ -0,0 +1,27 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +# Also deploy our udev rules on upgrades from older versions. +if [ "$1" = configure ] && [ -n "$2" ] \ + && dpkg --compare-versions "$2" lt 0.9.07; then + ln -s ../bitpim.rules /etc/udev/rules.d/z60_bitpim.rules +fi + +# Standard tools just arrange to produce unoptimized .pyc files; ensure +# that we also have optimized .pyo files for better performance. +# Also, supply -Wignore to suppress spurious FutureWarnings. (See #358023.) + +if test -x /usr/bin/pyversions; then + PYTHON=`pyversions -d` +else + PYTHON=python2.3 +fi + +if which $PYTHON >/dev/null 2>&1 && [ -e /usr/lib/$PYTHON/compileall.py ]; then + # $PYTHON -Wignore /usr/lib/$PYTHON/compileall.py -q /usr/share/bitpim + $PYTHON -OO -Wignore /usr/lib/$PYTHON/compileall.py -q /usr/share/bitpim/code +fi + +exit 0 --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim.manpages +++ bitpim-0.9.07.dfsg.1/debian/bitpim.manpages @@ -0,0 +1,2 @@ +debian/bitfling.1 +debian/bitpim.1 --- bitpim-0.9.07.dfsg.1.orig/debian/bitpim-lib.install +++ bitpim-0.9.07.dfsg.1/debian/bitpim-lib.install @@ -0,0 +1 @@ +usr/lib/bitpim