Skip to contentSkip to conversation

package/openobex: fix broken download URL, add hash

PATCH Superseded Bernd Kuhls 2 participants 2 messages Jan 31, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/openobex: fix broken download URL, add hash

Upstream only provides a zip file for version 1.5.0.

---
 package/openobex/Config.in   |  2 +-
 package/openobex/openobex.mk | 12 ++++++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)
package/openobex/Config.in +1 -1
index 5f606fe..2b8cf38 100644
@@ -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
 
package/openobex/openobex.mk +10 -2
index 82bfd43..b50dbb7 100644
@@ -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) \
Signature · 1 line
2.7.0
#1 lore raw

PATCH 1/1 package/openobex: fix broken download URL, add hash

Hi Berned,

Quoted 7 lines · Bernd Kuhls

Upstream only provides a zip file for version 1.5.0.

---
 package/openobex/Config.in   |  2 +-
 package/openobex/openobex.mk | 12 ++++++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)

I can't find the hash you promised in Subject.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -