Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] package/openobex: fix broken download URL, add hash
@ 2016-01-31  9:48 Bernd Kuhls
  2016-01-31 10:30 ` Peter Korsgaard
  2016-02-07 14:48 ` Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Bernd Kuhls @ 2016-01-31  9:48 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: forgot hash file (Baruch)

 package/openobex/Config.in     |  2 +-
 package/openobex/openobex.hash |  3 +++
 package/openobex/openobex.mk   | 12 ++++++++++--
 3 files changed, 14 insertions(+), 3 deletions(-)
 create mode 100644 package/openobex/openobex.hash

diff --git a/package/openobex/Config.in b/package/openobex/Config.in
index 5f606fe..2b8cf38 100644
--- a/package/openobex/Config.in
+++ b/package/openobex/Config.in
@@ -4,7 +4,7 @@ config BR2_PACKAGE_OPENOBEX
 	  Free open source implementation of the Object Exchange (OBEX)
 	  protocol.
 
-	  http://www.openobex.org
+	  http://sourceforge.net/projects/openobex
 
 if BR2_PACKAGE_OPENOBEX
 
diff --git a/package/openobex/openobex.hash b/package/openobex/openobex.hash
new file mode 100644
index 0000000..2aef981
--- /dev/null
+++ b/package/openobex/openobex.hash
@@ -0,0 +1,3 @@
+# From http://sourceforge.net/projects/openobex/files/openobex/1.5/
+sha1	5332ef95bc8b321bda675cdb74379804c6c1a83f	openobex-1.5.0-Source.zip
+md5	f6d87af55a1d702d582173c81619176e		openobex-1.5.0-Source.zip
diff --git a/package/openobex/openobex.mk b/package/openobex/openobex.mk
index 82bfd43..b50dbb7 100644
--- a/package/openobex/openobex.mk
+++ b/package/openobex/openobex.mk
@@ -4,8 +4,10 @@
 #
 ################################################################################
 
-OPENOBEX_VERSION = 1.5
-OPENOBEX_SITE = http://ftp.osuosl.org/pub/linux/bluetooth
+OPENOBEX_VERSION_MAJOR = 1.5
+OPENOBEX_VERSION = $(OPENOBEX_VERSION_MAJOR).0
+OPENOBEX_SITE = http://downloads.sourceforge.net/project/openobex/openobex/$(OPENOBEX_VERSION_MAJOR)
+OPENOBEX_SOURCE = openobex-$(OPENOBEX_VERSION)-Source.zip
 # Libraries seems to be released under LGPLv2.1+,
 # while other material is under GPLv2+.
 OPENOBEX_LICENSE = GPLv2+/LGPLv2.1+
@@ -15,6 +17,12 @@ OPENOBEX_DEPENDENCIES = host-pkgconf
 OPENOBEX_AUTORECONF = YES
 OPENOBEX_INSTALL_STAGING = YES
 
+define OPENOBEX_EXTRACT_CMDS
+	$(UNZIP) -d $(@D) $(DL_DIR)/$(OPENOBEX_SOURCE)
+	mv $(@D)/openobex-$(OPENOBEX_VERSION)-Source/* $(@D)
+	$(RM) -r $(@D)/openobex-$(OPENOBEX_VERSION)-Source
+endef
+
 OPENOBEX_CONF_OPTS += \
 	$(if $(BR2_PACKAGE_OPENOBEX_APPS),--enable-apps) \
 	$(if $(BR2_PACKAGE_OPENOBEX_SYSLOG),--enable-syslog) \
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/openobex: fix broken download URL, add hash
  2016-01-31  9:48 [Buildroot] [PATCH v2 1/1] package/openobex: fix broken download URL, add hash Bernd Kuhls
@ 2016-01-31 10:30 ` Peter Korsgaard
  2016-02-07 14:49   ` Thomas Petazzoni
  2016-02-07 14:48 ` Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2016-01-31 10:30 UTC (permalink / raw)
  To: buildroot

>>>>> "Bernd" == Bernd Kuhls <bernd.kuhls@t-online.de> writes:

 > Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
 > ---
 > v2: forgot hash file (Baruch)

 >  package/openobex/Config.in     |  2 +-
 >  package/openobex/openobex.hash |  3 +++
 >  package/openobex/openobex.mk   | 12 ++++++++++--
 >  3 files changed, 14 insertions(+), 3 deletions(-)
 >  create mode 100644 package/openobex/openobex.hash

 > diff --git a/package/openobex/Config.in b/package/openobex/Config.in
 > index 5f606fe..2b8cf38 100644
 > --- a/package/openobex/Config.in
 > +++ b/package/openobex/Config.in
 > @@ -4,7 +4,7 @@ config BR2_PACKAGE_OPENOBEX
 >  	  Free open source implementation of the Object Exchange (OBEX)
 >  	  protocol.
 
 > -	  http://www.openobex.org
 > +	  http://sourceforge.net/projects/openobex
 
 >  if BR2_PACKAGE_OPENOBEX
 
 > diff --git a/package/openobex/openobex.hash b/package/openobex/openobex.hash
 > new file mode 100644
 > index 0000000..2aef981
 > --- /dev/null
 > +++ b/package/openobex/openobex.hash
 > @@ -0,0 +1,3 @@
 > +# From http://sourceforge.net/projects/openobex/files/openobex/1.5/
 > +sha1	5332ef95bc8b321bda675cdb74379804c6c1a83f	openobex-1.5.0-Source.zip
 > +md5	f6d87af55a1d702d582173c81619176e		openobex-1.5.0-Source.zip
 > diff --git a/package/openobex/openobex.mk b/package/openobex/openobex.mk
 > index 82bfd43..b50dbb7 100644
 > --- a/package/openobex/openobex.mk
 > +++ b/package/openobex/openobex.mk
 > @@ -4,8 +4,10 @@
 >  #
 >  ################################################################################
 
 > -OPENOBEX_VERSION = 1.5
 > -OPENOBEX_SITE = http://ftp.osuosl.org/pub/linux/bluetooth
 > +OPENOBEX_VERSION_MAJOR = 1.5
 > +OPENOBEX_VERSION = $(OPENOBEX_VERSION_MAJOR).0
 > +OPENOBEX_SITE = http://downloads.sourceforge.net/project/openobex/openobex/$(OPENOBEX_VERSION_MAJOR)
 > +OPENOBEX_SOURCE = openobex-$(OPENOBEX_VERSION)-Source.zip

I see upstream has released 1.7.1 (in a normall tarball). Any reason we
don't use that instead?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/openobex: fix broken download URL, add hash
  2016-01-31  9:48 [Buildroot] [PATCH v2 1/1] package/openobex: fix broken download URL, add hash Bernd Kuhls
  2016-01-31 10:30 ` Peter Korsgaard
@ 2016-02-07 14:48 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-02-07 14:48 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sun, 31 Jan 2016 10:48:58 +0100, Bernd Kuhls wrote:
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: forgot hash file (Baruch)

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/openobex: fix broken download URL, add hash
  2016-01-31 10:30 ` Peter Korsgaard
@ 2016-02-07 14:49   ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-02-07 14:49 UTC (permalink / raw)
  To: buildroot

Peter,

On Sun, 31 Jan 2016 11:30:42 +0100, Peter Korsgaard wrote:

> I see upstream has released 1.7.1 (in a normall tarball). Any reason we
> don't use that instead?

1.7.1 is now using a CMake based build system rather than autotools, so
it's a much bigger change, which can be handled separately.

So I've taken Bernd's patch as is, but it would be nice to upgrade to
1.7.1 at some point.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-07 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-31  9:48 [Buildroot] [PATCH v2 1/1] package/openobex: fix broken download URL, add hash Bernd Kuhls
2016-01-31 10:30 ` Peter Korsgaard
2016-02-07 14:49   ` Thomas Petazzoni
2016-02-07 14:48 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox