Skip to contentSkip to conversation

ushare: new package

PATCH Superseded Gustavo Zacarias 3 participants 6 messages Mar 21, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ushare: new package

UPnP media streamer.

TODO: Add DLNA support (libdlna) if there's interest.

---
 package/Config.in                         |    1 +
 package/ushare/Config.in                  |   13 ++
 package/ushare/ushare-compile-fixes.patch |  206 +++++++++++++++++++++++++++++
 package/ushare/ushare.mk                  |   26 ++++
 4 files changed, 246 insertions(+), 0 deletions(-)
 create mode 100644 package/ushare/Config.in
 create mode 100644 package/ushare/ushare-compile-fixes.patch
 create mode 100644 package/ushare/ushare.mk
package/Config.in +1 -0
index e4bb0e1..b7516ec 100644
@@ -524,6 +524,7 @@ source "package/tn5250/Config.in"
 source "package/transmission/Config.in"
 source "package/ttcp/Config.in"
 source "package/udpcast/Config.in"
+source "package/ushare/Config.in"
 source "package/vpnc/Config.in"
 source "package/vsftpd/Config.in"
 source "package/vtun/Config.in"
package/ushare/Config.in new file +13 -0
new file mode 100644
index 0000000..a714fa0
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_USHARE
+	bool "ushare"
+	depends on BR2_LARGEFILE
+	select BR2_PACKAGE_LIBUPNP
+	help
+	  uShare is a UPnP (TM) A/V & DLNA Media Server.
+	  It implements the server component that provides UPnP media devices
+	  with information on available multimedia files.
+
+	  http://ushare.geexbox.org/
+
+comment "ushare requires a toolchain with LARGEFILE support"
+	depends on !BR2_LARGEFILE
package/ushare/ushare-compile-fixes.patch new file +206 -0

206 lines not on this page · raw message

package/ushare/ushare.mk new file +26 -0
new file mode 100644
index 0000000..5909916
@@ -0,0 +1,26 @@
+#############################################################
+#
+# ushare
+#
+#############################################################
+
+USHARE_VERSION = 1.1a
+USHARE_SOURCE = ushare-$(USHARE_VERSION).tar.bz2
+USHARE_SITE = http://ushare.geexbox.org/releases
+USHARE_DEPENDENCIES = host-pkg-config libupnp
+
+define USHARE_CONFIGURE_CMDS
+	(cd $(@D); \
+		$(TARGET_CONFIGURE_OPTS) \
+		./configure --prefix=/usr $(DISABLE_NLS) --cross-compile \
+		--cross-prefix="$(TARGET_CROSS)" --sysconfdir=/etc \
+		--disable-strip --disable-debug \
+	)
+endef
+
+define USHARE_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+	rm -f $(TARGET_DIR)/etc/init.d/ushare
+endef
+
+$(eval $(call GENTARGETS))
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH v2 1/1 ushare: new package

Le Wed, 21 Mar 2012 10:12:18 -0300,
Gustavo Zacarias <[email protected]> a ?crit :

Quoted 19 lines
package/ushare/ushare.mk new file +16 -0
@@ -0,0 +1,26 @@
+#############################################################
+#
+# ushare
+#
+#############################################################
+
+USHARE_VERSION = 1.1a
+USHARE_SOURCE = ushare-$(USHARE_VERSION).tar.bz2
+USHARE_SITE = http://ushare.geexbox.org/releases
+USHARE_DEPENDENCIES = host-pkg-config libupnp
+
+define USHARE_CONFIGURE_CMDS
+	(cd $(@D); \
+		$(TARGET_CONFIGURE_OPTS) \
+		./configure --prefix=/usr $(DISABLE_NLS) --cross-compile \
+		--cross-prefix="$(TARGET_CROSS)" --sysconfdir=/etc \

package/ushare/ushare.mk line 26

Quoted 10 lines
package/ushare/ushare.mk new file +10 -0
+		--disable-strip --disable-debug \
+	)
+endef
+
+define USHARE_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+	rm -f $(TARGET_DIR)/etc/init.d/ushare
+endef
+
+$(eval $(call GENTARGETS))

With GENTARGETS, xxx_BUILD_CMDS is empty by default. Are you sure this builds?

Also, can you add a comment just before USHARE_CONFIGURE_CMDS saying that despite the appearance, autotools are not used. However, I am sure in the future many people will wonder why AUTOTARGETS was not used.

Thanks!

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 ushare: new package

Quoted 3 lines · Thomas Petazzoni

With GENTARGETS, xxx_BUILD_CMDS is empty by default. Are you sure this
builds?

Yes, install triggers build.

Quoted 4 lines

Also, can you add a comment just before USHARE_CONFIGURE_CMDS saying that despite the appearance, autotools are not used. However, I am sure
in the future many people will wonder why AUTOTARGETS was not used.

Sure, but should it be for other packages as well?
Same things applies to ffmpeg and probably others (the ushare configure is an old/strip version from ffmpeg).
Though ffmpeg is using AUTOTARGETS and overriding CONFIGURE_CMDS... Regards.

#3 lore raw

PATCH v2 1/1 ushare: new package

Le Wed, 21 Mar 2012 10:39:35 -0300,
Gustavo Zacarias <[email protected]> a ?crit :

Quoted 5 lines
Quoted 3 lines

With GENTARGETS, xxx_BUILD_CMDS is empty by default. Are you sure this
builds?

Yes, install triggers build.

But still, build should be done in the xxx_BUILD_CMDS so that it works like all other packages, IMO.

Quoted 6 lines
Quoted 4 lines

Also, can you add a comment just before USHARE_CONFIGURE_CMDS saying that despite the appearance, autotools are not used. However, I am sure
in the future many people will wonder why AUTOTARGETS was not used.

Sure, but should it be for other packages as well?

Yes, I think we should mention explicitly why GENTARGETS is used even though the package has a ./configure script.

Quoted 3 lines

Same things applies to ffmpeg and probably others (the ushare configure is an old/strip version from ffmpeg).
Though ffmpeg is using AUTOTARGETS and overriding CONFIGURE_CMDS...

And it is wrong. Not your fault, of course, but I don't think it is an argument to make it wrong in other places as well.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw

PATCH v2 1/1 ushare: new package

Quoted 8 lines · Thomas Petazzoni
Quoted 4 lines

Same things applies to ffmpeg and probably others (the ushare configure
is an old/strip version from ffmpeg).
Though ffmpeg is using AUTOTARGETS and overriding CONFIGURE_CMDS...

And it is wrong. Not your fault, of course, but I don't think it is an
argument to make it wrong in other places as well.

I was just saying that many others will require attention to that also if the consensus is to do so (with ffmpeg being the configure daddy of ushare as a direct example of it).
Regards.

#5 lore raw

PATCH v2 1/1 ushare: new package

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Hi,

Quoted 2 lines
Quoted 2 lines

And it is wrong. Not your fault, of course, but I don't think it is an argument to make it wrong in other places as well.

Gustavo> I was just saying that many others will require attention to Gustavo> that also if the consensus is to do so (with ffmpeg being the Gustavo> configure daddy of ushare as a direct example of it).

In general I think we should only use AUTOTARGETS for packages really using auto*. It might work today and save a few lines, but chances are that it will break some time in the future.

Signature · 1 line
Bye, Peter Korsgaard