add obexftp with bluetooth

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@641 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2008-12-10 07:43:13 +00:00
parent 2f7c8dd42c
commit c609eff567
6 changed files with 423 additions and 0 deletions

View File

@ -0,0 +1,276 @@
# ChangeLog for app-mobilephone/obexftp
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/obexftp/ChangeLog,v 1.43 2008/11/30 18:52:53 bluebird Exp $
30 Nov 2008; Friedrich Oslage <bluebird@gentoo.org> obexftp-0.22.ebuild:
Stable on sparc, bug #245455
08 Nov 2008; Markus Meier <maekke@gentoo.org> obexftp-0.22.ebuild:
amd64/x86 stable, bug #245455
08 Nov 2008; nixnut <nixnut@gentoo.org> obexftp-0.22.ebuild:
Stable on ppc wrt bug 245455
05 Nov 2008; Alin Năstac <mrness@gentoo.org>
+files/obexftp-0.22-ruby-libpath.patch, obexftp-0.22.ebuild:
Fix broken compilation when obexftp libraries are installed and linked with
inexistent version of libbluetooth.so (#244881).
25 Aug 2008; nixnut <nixnut@gentoo.org> ChangeLog:
Stable on ppc wrt bug 224409
21 Aug 2008; Friedrich Oslage <bluebird@gentoo.org> obexftp-0.21.ebuild:
Stable on sparc
31 Jul 2008; Ulrich Mueller <ulm@gentoo.org> metadata.xml:
Add USE flag description to metadata wrt GLEP 56.
21 Jun 2008; Alin Năstac <mrness@gentoo.org> obexftp-0.22.ebuild:
Minor ebuild code cleanup.
*obexftp-0.22 (20 Jun 2008)
20 Jun 2008; Alin Năstac <mrness@gentoo.org> +obexftp-0.22.ebuild:
Version bump. Fix src_install failure on SMP boxes (#225453).
01 Jun 2008; Alin Năstac <mrness@gentoo.org> obexftp-0.21.ebuild,
obexftp-0.22_rc9.ebuild:
Remove dev-lang/swig run-time dependency (#221459) and simplify dependencies.
11 Nov 2007; Alin Năstac <mrness@gentoo.org> -obexftp-0.22_rc7.ebuild,
obexftp-0.22_rc9.ebuild:
Install python stuff properly, thanks to Tiziano Müller <dev-zero@gentoo.org>.
*obexftp-0.22_rc9 (01 Oct 2007)
01 Oct 2007; Alin Năstac <mrness@gentoo.org> +obexftp-0.22_rc9.ebuild:
Fix examples installation, broken by previous update.
06 Sep 2007; Alin Năstac <mrness@gentoo.org> obexftp-0.22_rc7.ebuild:
Fix compile error when USE="ruby -bluetooth" (#174507).
*obexftp-0.22_rc7 (05 Sep 2007)
05 Sep 2007; Alin Năstac <mrness@gentoo.org>
-files/obexftp-0.22_rc6-iconv.patch, -obexftp-0.22_rc6.ebuild,
+obexftp-0.22_rc7.ebuild:
Version bump. Remove iconv useflag (not needed anymore) and re-add ruby
support.
05 Sep 2007; Alin Năstac <mrness@gentoo.org>
-files/obexftp-0.22-no_iconv.patch, +files/obexftp-0.22_rc6-iconv.patch,
obexftp-0.22_rc6.ebuild:
Replace nls useflag with iconv and use eautoreconf instead eautoconf (#191322).
*obexftp-0.22_rc6 (04 Sep 2007)
04 Sep 2007; Alin Năstac <mrness@gentoo.org>
-files/obexftp-0.19-cobex_write.patch, +files/obexftp-0.22-no_iconv.patch,
-obexftp-0.19-r1.ebuild, +obexftp-0.22_rc6.ebuild:
Version bump (#190751) and homepage update.
28 Jul 2007; Guy Martin <gmsoft@gentoo.org> obexftp-0.21.ebuild:
Stable on hppa
23 Jun 2007; Christoph Mende <angelos@gentoo.org> obexftp-0.21.ebuild:
Stable on amd64 wrt bug 179505
21 Jun 2007; Gustavo Zacarias <gustavoz@gentoo.org> obexftp-0.21.ebuild:
Keyworded ~sparc wrt #182611
01 May 2007; Alin Năstac <mrness@gentoo.org>
files/obexftp-0.21-as-needed.patch:
Replace as-needed patch (#176264).
29 Apr 2007; Alin Năstac <mrness@gentoo.org>
+files/obexftp-0.21-as-needed.patch, obexftp-0.21.ebuild:
Fix broken build with --as-needed, thanks to Matej Laitl <strohel at gmail
dot com> (#176264).
17 Apr 2007; Alin Năstac <mrness@gentoo.org> obexftp-0.21.ebuild:
Remove ruby USE flag (#174507).
05 Mar 2007; Alin Nastac <mrness@gentoo.org> obexftp-0.21.ebuild:
Use eautoreconf instead eautoconf (#169232).
25 Jan 2007; Alin Nastac <mrness@gentoo.org>
+files/obexftp-0.21-no_iconv.patch, obexftp-0.21.ebuild:
Add nls USE flag (#148618).
26 Nov 2006; Alin Nastac <mrness@gentoo.org> obexftp-0.21.ebuild:
Add ruby USE flag (#156041).
24 Oct 2006; Alin Nastac <mrness@gentoo.org> obexftp-0.19-r1.ebuild,
obexftp-0.21.ebuild:
Add dev-util/pkgconfig to DEPEND (#151286).
22 Oct 2006; Alin Nastac <mrness@gentoo.org> obexftp-0.19-r1.ebuild,
obexftp-0.21.ebuild:
Replace deprecated tcltk USE flag with tcl (#152399).
22 Sep 2006; Alin Nastac <mrness@gentoo.org> obexftp-0.21.ebuild:
Use eautoconf instead eautoreconf (#148618).
17 Sep 2006; Alin Nastac <mrness@gentoo.org> -obexftp-0.18.ebuild,
obexftp-0.21.ebuild:
Remove old version. Stable on x86.
25 Jun 2006; Alin Nastac <mrness@gentoo.org> obexftp-0.19-r1.ebuild:
Stable on x86 (#122262).
03 Jun 2006; Alin Nastac <mrness@gentoo.org>
+files/obexftp-0.21-sdp-detection.patch, obexftp-0.21.ebuild:
Detect and make use of SDP support only when bluetooth USE flag is enabled
(#135344).
*obexftp-0.21 (02 Jun 2006)
02 Jun 2006; Alin Nastac <mrness@gentoo.org>
+files/obexftp-0.21-cobex_write.patch, -obexftp-0.19.ebuild,
+obexftp-0.21.ebuild:
Version bump.
*obexftp-0.19-r1 (06 May 2006)
06 May 2006; Alin Nastac <mrness@gentoo.org>
-files/obexftp-0.10.7-t610-jpg.patch,
+files/obexftp-0.19-cobex_write.patch, metadata.xml,
-obexftp-0.10.7-r1.ebuild, +obexftp-0.19-r1.ebuild:
Take over the maintainership of this package. Fix obexftp freeze when
sending file to Sony Ericsson z520 over usb cable using cdc_acm, thanks to
Simon Ruggier <Simon80@gmail.com> (#131603).
25 Feb 2006; Alin Nastac <mrness@gentoo.org> obexftp-0.18.ebuild:
Stable on x86.
*obexftp-0.19 (09 Feb 2006)
09 Feb 2006; Andrej Kacian <ticho@gentoo.org> +obexftp-0.19.ebuild:
Version bump. 0.19 depends on >=openobex-1.1.
08 Feb 2006; Andrej Kacian <ticho@gentoo.org> ChangeLog:
Use fixlocalpod in src_install() to fix bug #117772 by Jan Kundrát <jkt at
gentoo.org>.
04 Feb 2006; Andrej Kacian <ticho@gentoo.org> obexftp-0.18.ebuild:
Require openobex-1.0.x, because it doesn't work with older nor newer.
*obexftp-0.18 (22 Jan 2006)
22 Jan 2006; Alin Nastac <mrness@gentoo.org> -obexftp-0.18_beta4.ebuild,
+obexftp-0.18.ebuild:
Version bump (#119498).
*obexftp-0.18_beta4 (03 Jan 2006)
03 Jan 2006; Alin Nastac <mrness@gentoo.org> obexftp-0.10.7-r1.ebuild,
+obexftp-0.18_beta4.ebuild:
Fix dependencies by adding bluez-libs to RDEPEND and removing bluez-utils
from DEPEND. Version bump to the latest beta release (#111996).
17 Dec 2005; Luis Medinas <metalgod@gentoo.org> obexftp-0.10.7-r1.ebuild:
Added ~amd64 keyword. Closes bug #115846.
21 Jul 2005; Alin Nastac <mrness@gentoo.org> -obexftp-0.10.6.ebuild,
-obexftp-0.10.7.ebuild:
Remove old versions.
15 May 2005; Alin Nastac <mrness@gentoo.org> metadata.xml,
-obexftp-0.10.3.ebuild, -obexftp-0.10.4.ebuild, obexftp-0.10.7-r1.ebuild:
Moved from net-wireless/obexftp to app-mobilephone/obexftp. Removed old
versions. Stable on x86.
*obexftp-0.10.7-r1 (11 Feb 2005)
11 Feb 2005; Andrej Kacian <ticho@gentoo.org>
+files/obexftp-0.10.7-t610-jpg.patch, +obexftp-0.10.7-r1.ebuild:
Apply patch for t610 file retrieval via BT. Bug #81514, reported by Doug
Hilton <doug@shoutstudios.com>, patch taken from debian sources.
07 Feb 2005; Andrej Kacian <ticho@gentoo.org> obexftp-0.10.7.ebuild:
Stable on x86.
*obexftp-0.10.7 (08 Jan 2005)
08 Jan 2005; Andrej Kacian <ticho@gentoo.org> +obexftp-0.10.7.ebuild:
Version bump. Closes #77006, reported by Frank Groeneveld
<frankgroeneveld@msn.com>. Added "bluetooth" USE flag, which pulls in
bluez-utils (which in turn pulls in bluez-libs), which are required for,
surprisingly, bluetooth support in obexftp.
03 Jan 2005; Andrej Kacian <ticho@gentoo.org> -obexftp-0.10.2.ebuild,
obexftp-0.10.6.ebuild:
0.10.6 stable on x86. Fixed ebuild headers (2005). Removed old, superseded
ebuild.
27 Nov 2004; Andrej Kacian <ticho@gentoo.org> obexftp-0.10.4.ebuild,
obexftp-0.10.6.ebuild:
Fixed manpage install.
*obexftp-0.10.6 (27 Nov 2004)
27 Nov 2004; Andrej Kacian <ticho@gentoo.org> +obexftp-0.10.6.ebuild:
Version bump.
*obexftp-0.10.4 (12 Nov 2004)
12 Nov 2004; Andrej Kacian <ticho@gentoo.org> +metadata.xml,
+obexftp-0.10.2.ebuild, +obexftp-0.10.3.ebuild, +obexftp-0.10.4.ebuild:
Moved from app-misc/obexftp to net-wireless/obexftp.
01 Nov 2004; Andrej Kacian <ticho@gentoo.org> obexftp-0.10.2.ebuild,
obexftp-0.10.3.ebuild, obexftp-0.10.4.ebuild:
Stable on x86, changed DESCRIPTION a little.
05 Oct 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
obexftp-0.10.3.ebuild:
Masked obexftp-0.10.3.ebuild stable for ppc
01 Oct 2004; Andrej Kacian <ticho@gentoo.org> obexftp-0.10.4.ebuild:
Removed dependency on media-sound/gsm and dev-libs/glib. Closes #65439
again. Thanks to Christian Zuckschwerdt <zany@triq.net> for the info.
*obexftp-0.10.4 (27 Sep 2004)
27 Sep 2004; Andrej Kacian <ticho@gentoo.org> metadata.xml,
+obexftp-0.10.4.ebuild:
Version bump, closes #65439, reported by Christian Zuckschwerdt
<zany@triq.net>. Take on maintainership of the package.
07 Jun 2004; Daniel Black <dragonheart@gentoo.org> +metadata.xml,
obexftp-0.10.3.ebuild:
x86 stable. QA fixes on IUSE, SRC_URI
19 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> obexftp-0.10.2.ebuild,
obexftp-0.10.3.ebuild, obexftp-0.9.2.ebuild:
fix depend (bug #45110); tidy; cleaned oldest ebuild
15 Feb 2004; David Holm <dholm@gentoo.org> obexftp-0.10.3.ebuild:
Added to ~ppc.
18 Oct 2003; Martin Holzer <mholzer@gentoo.org> obexftp-0.10.3.ebuild:
fixing html docs destdir. Closes #31282.
*obexftp-0.10.3 (30 Sep 2003)
30 Sep 2003; George Shapovalov <george@gentoo.org> obexftp-0.10.3 :
new version, openobex is still at 1.0.0.
*obexftp-0.10.2 (12 Mar 2003)
15 Mar 2003; jje obexftp-0.10.2.ebuild:
Fixed deps. Needed updated openobex and gsm.
12 Mar 2003; George Shapovalov <george@gentoo.org> obexftp-0.10.2 :
verision update (#16059)
*obexftp-0.9.2 (17 July 2002)
17 July 2002; George Shapovalov <george@gentoo.org> obexftp-0.9.2.ebuild, files/digest-obexftp-0.9.2, ChangeLog :
Inital release,
obexftp is a package that gives users of Siemens x45 series phones access to
their phone's FlexMemory, an area in memory for data storage, which can be used
to upload bitmaps, ringtones and other files.
ebuild submitted by Leigh Dyer <lsd@linuxgamers.net>

View File

@ -0,0 +1,13 @@
AUX obexftp-0.21-as-needed.patch 1099 RMD160 c27152ca025f46be0ae80ab7e3e0c0d3887ba292 SHA1 dbdacd90962b37f211bd3ea7d08a43d46ad3bfeb SHA256 6a1a897b0b95955719482ba4fb885cafe5d697f6256d4e0199323cf6718420dd
AUX obexftp-0.21-cobex_write.patch 2292 RMD160 0589e7699bc4ff514f954e4d515465fded71b7ef SHA1 e48bfe29127ad74b199dfc9af103b6e91b0c58f5 SHA256 fd310fe90cf2b4211e394caeacae8d962c08a3233fa0da066b83f6a29144d6d9
AUX obexftp-0.21-no_iconv.patch 301 RMD160 9b4b20649f2ef5b82f6e3f7e5f30befd490f3465 SHA1 bd81421f199cbfadc1e95268e19eb47976f0cd2c SHA256 cbf9079b3f1877bb19d67e5a4c534a423d6ac90ba640f41f981a7034b0b5093a
AUX obexftp-0.21-sdp-detection.patch 1014 RMD160 b6271790593b20880eb20ebb1189f5ab7518fffc SHA1 bc78234d3bbf6de325b5c0fe32012b231a889834 SHA256 3026521a51d1fd6d58ca1e0dcabed609f4d69c6c38454cc90152c4397487d5f4
AUX obexftp-0.22-ruby-libpath.patch 732 RMD160 eb21a92493018ee1018adcd78856963063146ef4 SHA1 d4d7a15605e878d1b3d08646480e1cc7340e0e89 SHA256 b2aa592666ba882dbd2c389df13a8bb84823c84e4f02dbbfd917e59ab7272c90
DIST obexftp-0.21.tar.bz2 353862 RMD160 e9e404b62cc340a55690316f502dc17d5b3334cf SHA1 8a7ba3d982f3e7e80fb2964f69c9dea76e42090f SHA256 bd542c5ccfe4f70c19f4b8a8a16c635b7cf707ed2ba0cc01e2340f81145df259
DIST obexftp-0.22-rc9.tar.bz2 400616 RMD160 41c0089361f5d2cc589a55a2ed3bad3bb11fc4d2 SHA1 5e05fc5e8b577c36520cc53d2323905ad1182884 SHA256 0c22898285fbe40d36df47bfcc71fe054a478476616835c7ebb2ba39c1545b46
DIST obexftp-0.22.tar.bz2 402570 RMD160 a3960fd15cd75cfb7066c565ee9fa90dc7a7c11f SHA1 8753ae1053653b01eb0deee3b7d31c02aca4974d SHA256 09687012d5e016277fa638f22b8c784aea6803056c70d14614e3b75158aae877
EBUILD obexftp-0.21.ebuild 1689 RMD160 3201f91b7b6be9ed250dc94aef106f13669f9aaf SHA1 aab5d9c006d2ee5947c8f922645e02c015c398a9 SHA256 ba0fd86b9b2ff4c67621775e64e925f1d9bced4786c1bb47fc0c806386ee70cf
EBUILD obexftp-0.22.ebuild 2154 RMD160 780bb75924f4afdbd787e2001f0bf439851f78d2 SHA1 65e7d73f9cf4e6eb418a1ed9e1a91b55813433da SHA256 1aa50956c3cd248c598b5487b47dc983a88c404dafcd6690a84368bf1c09f07c
EBUILD obexftp-0.22_rc9.ebuild 2053 RMD160 14c7c5d8b00947d7ced45214f7b08861cf8a3f0f SHA1 dc3a3f534f85ec58c803054852fd6e94ce89f26b SHA256 17986a15d868cc8da3d98e91f5c6ef55fe27edb653f36839a80ab7f852aebb13
MISC ChangeLog 10173 RMD160 90071cd3da91a1568beef1ef59226eb2a137934f SHA1 1feaa1fa69db8340100a4b366f169fd85a761d9e SHA256 c36bb678cb918fba0047a7dd4576b37141236f8059397348b04d9b42162ca8a0
MISC metadata.xml 428 RMD160 31e70db3d3d4146f97a6dc88f4f791e2bc056221 SHA1 886a0d425a24cca372bd033f776a5c02c47a830c SHA256 c312e7ae5043005d9a54796f062acfe40148799bd55640faee7e07d34839e38e

View File

@ -0,0 +1,12 @@
--- o/apps/obexftpd.c 2008-06-15 22:18:58.000000000 +0300
+++ n/apps/obexftpd.c 2008-12-09 00:01:20.000000000 +0200
@@ -58,6 +58,9 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
+#ifdef HAVE_BLUETOOTH
+#include <bluetooth/bluetooth.h>
+#endif
#endif
/* just until there is a server layer in obexftp */

View File

@ -0,0 +1,22 @@
diff -ur obexftp-0.22.orig/swig/ruby/extconf.rb obexftp-0.22/swig/ruby/extconf.rb
--- obexftp-0.22.orig/swig/ruby/extconf.rb 2008-06-15 19:18:58.000000000 +0000
+++ obexftp-0.22/swig/ruby/extconf.rb 2008-11-05 21:38:45.000000000 +0000
@@ -21,10 +21,6 @@
end
dir_config('obexftp')
-if have_library('openobex', 'OBEX_Init') and
- find_library('bfb', 'bfb_io_open', '../../bfb/.libs') and
- find_library('multicobex', 'cobex_ctrans', '../../multicobex/.libs') and
- find_library('obexftp', 'obexftp_open', '../../obexftp/.libs')
create_makefile('obexftp')
# hack 2: strip all rpath references
@@ -33,7 +29,3 @@
out.puts line.gsub(/-Wl,-R'[^']*'/, '')
end
end
-else
- puts 'obex libs not found'
-end
-

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>mobile-phone</herd>
<maintainer>
<email>mrness@gentoo.org</email>
<name>Alin Nastac</name>
</maintainer>
<longdescription>File transfer over OBEX for mobile phones.</longdescription>
<use>
<flag name='swig'>Enable rebuild of <pkg>dev-lang/swig</pkg> bindings</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,87 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/obexftp/obexftp-0.22.ebuild,v 1.7 2008/11/30 18:52:53 bluebird Exp $
inherit eutils perl-module flag-o-matic python
DESCRIPTION="File transfer over OBEX for mobile phones"
HOMEPAGE="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
SRC_URI="mirror://sourceforge/openobex/${P}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ~hppa ppc sparc x86"
IUSE="bluetooth debug perl python ruby swig tcl"
RDEPEND="dev-libs/openobex
bluetooth? ( net-wireless/bluez-libs )
perl? ( dev-lang/perl )
python? ( >=dev-lang/python-2.4.4 )
ruby? ( dev-lang/ruby )
tcl? ( dev-lang/tcl )"
DEPEND="${RDEPEND}
swig? ( dev-lang/swig )
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${P}-ruby-libpath.patch
epatch "${FILESDIR}"/${P}-btooth.patch
}
src_compile() {
# do not byte-compile python module
if use python; then
sed -i \
-e 's/\(setup.py install\)/\1 --no-compile/' \
swig/python/Makefile.in || die "sed failed"
fi
if use debug ; then
strip-flags
append-flags "-g -DOBEXFTP_DEBUG=5"
fi
econf \
$(use_enable bluetooth) \
$(use_enable swig) \
$(use_enable perl) \
$(use_enable python) \
$(use_enable tcl) \
$(use_enable ruby) || die "econf failed"
emake || die "emake failed"
}
src_install() {
# -j1 because "make -fMakefile.ruby install" fails
# upstream added -j1 to that command so it should be removed
# from here in the next version bump
emake -j1 DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README* THANKS TODO
dohtml doc/*.html
# Install examples
insinto /usr/share/doc/${PF}/examples
doins examples/*.c
use perl && doins examples/*.pl
use python && doins examples/*.py
use ruby && doins examples/*.rb
use tcl && doins examples/*.tcl
use perl && fixlocalpod
}
pkg_postrm() {
use perl && perl-module_pkg_postrm
use python && python_mod_cleanup
}
pkg_postinst() {
use perl && perl-module_pkg_postinst
use python && {
python_version
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
}
}