[oe-commits] pieterg : added ushare 1.0, and patch to share ts files
GIT User account
git at amethyst.openembedded.net
Fri Nov 14 06:27:07 UTC 2008
Module: openembedded.git
Branch: org.openembedded.dreambox
Commit: 232da6c585ba493bdab815f1859c4d580fc59672
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=232da6c585ba493bdab815f1859c4d580fc59672
Author: pieterg <pieterg at gmx.com>
Date: Thu Nov 13 19:10:18 2008 +0100
added ushare 1.0, and patch to share ts files
---
packages/ushare/ushare/realloc.patch | 10 +++++++++
packages/ushare/ushare/ts.patch | 11 ++++++++++
packages/ushare/ushare/ushare.conf | 29 +++++++++++++++++++++++++++
packages/ushare/ushare/ushare.sh | 36 ++++++++++++++++++++++++++++++++++
packages/ushare/ushare_1.0.bb | 25 +++++++++++++++++++++++
5 files changed, 111 insertions(+), 0 deletions(-)
diff --git a/packages/ushare/ushare/realloc.patch b/packages/ushare/ushare/realloc.patch
new file mode 100644
index 0000000..edba0b4
--- /dev/null
+++ b/packages/ushare/ushare/realloc.patch
@@ -0,0 +1,10 @@
+--- ushare-1.0/configure.ac.orig 2008-03-24 17:59:47.000000000 +0100
++++ ushare-1.0/configure.ac 2008-03-24 17:59:53.000000000 +0100
+@@ -53,7 +53,6 @@
+ # Checks for library functions
+ AC_PROG_GCC_TRADITIONAL
+ AC_FUNC_MALLOC
+-AC_FUNC_REALLOC
+ AC_FUNC_STAT
+ AC_FUNC_VPRINTF
+ AC_CHECK_FUNCS([memset socket strcasecmp strchr strrchr strdup strndup strerror])
diff --git a/packages/ushare/ushare/ts.patch b/packages/ushare/ushare/ts.patch
new file mode 100644
index 0000000..2e4be58
--- /dev/null
+++ b/packages/ushare/ushare/ts.patch
@@ -0,0 +1,11 @@
+--- /src/mime.c~ 2008-04-06 21:29:30.000000000 +0200
++++ /src/mime.c 2008-04-06 21:29:30.000000000 +0200
+@@ -60,7 +60,7 @@
+ { "m4v", "MPEG4_P2_TS_ASP_MPEG1_L3", UPNP_VIDEO, "http-get:*:video/mp4:"},
+ { "m4p", "MPEG4_P2_TS_ASP_MPEG1_L3", UPNP_VIDEO, "http-get:*:video/mp4:"},
+ { "mp4ps", "MPEG4_P2_TS_ASP_MPEG1_L3", UPNP_VIDEO, "http-get:*:video/x-nerodigital-ps:"},
+- { "ts", "MPEG_TS_SD_NA", UPNP_VIDEO, "http-get:*:video/mpeg2:"},
++ { "ts", "MPEG_TS_SD_NA", UPNP_VIDEO, "http-get:*:video/ts:"},
+ { "ogm", NULL, UPNP_VIDEO, "http-get:*:video/mpeg:"},
+ { "mkv", NULL, UPNP_VIDEO, "http-get:*:video/mpeg:"},
+ { "rmvb", NULL, UPNP_VIDEO, "http-get:*:video/mpeg:"},
diff --git a/packages/ushare/ushare/ushare.conf b/packages/ushare/ushare/ushare.conf
new file mode 100644
index 0000000..27ecf70
--- /dev/null
+++ b/packages/ushare/ushare/ushare.conf
@@ -0,0 +1,29 @@
+# /etc/ushare.conf
+# Configuration file for uShare
+
+# uShare UPnP Friendly Name (default is 'uShare').
+USHARE_NAME=
+
+# Interface to listen to (default is eth0).
+# Ex : USHARE_IFACE=eth1
+USHARE_IFACE=
+
+# Port to listen to (default is random from IANA Dynamic Ports range)
+# Ex : USHARE_PORT=49200
+USHARE_PORT=
+
+# Directories to be shared (space or CSV list).
+# Ex: USHARE_DIR=/dir1,/dir2
+USHARE_DIR=/media/hdd
+
+# Use to override what happens when iconv fails to parse a file name.
+# The default uShare behaviour is to not add the entry in the media list
+# This option overrides that behaviour and adds the non-iconv'ed string into
+# the media list, with the assumption that the renderer will be able to
+# handle it. Devices like Noxon 2 have no problem with strings being passed
+# as is. (Umlauts for all!)
+#
+# Options are TRUE/YES/1 for override and anything else for default behaviour
+USHARE_OVERRIDE_ICONV_ERR=YES
+
+USHARE_OPTIONS=
\ No newline at end of file
diff --git a/packages/ushare/ushare/ushare.sh b/packages/ushare/ushare/ushare.sh
new file mode 100755
index 0000000..7c8e66c
--- /dev/null
+++ b/packages/ushare/ushare/ushare.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# start/stop ushare
+
+if ! [ -x /usr/bin/ushare ]; then
+ exit 0
+fi
+
+CONFIGFILE=/etc/ushare.conf
+if [ -r "$CONFIGFILE" ]; then
+ . $CONFIGFILE
+fi
+
+case "$1" in
+ start)
+ echo -n "Starting ushare: "
+ start-stop-daemon -S -x /usr/bin/ushare -- -D -n `/bin/hostname` $USHARE_OPTIONS -f $CONFIGFILE
+ echo "done."
+ ;;
+ stop)
+ echo -n "Stopping ushare: "
+ start-stop-daemon -K -x /usr/bin/ushare
+ echo "done."
+ ;;
+ restart|reload)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+ ;;
+esac
+
+exit 0
+
diff --git a/packages/ushare/ushare_1.0.bb b/packages/ushare/ushare_1.0.bb
new file mode 100644
index 0000000..e7fb425
--- /dev/null
+++ b/packages/ushare/ushare_1.0.bb
@@ -0,0 +1,25 @@
+DESCRIPTION = "ushare is a UPnP media server"
+LICENSE = "GPL"
+HOMEPAGE = "http://ushare.geexbox.org/"
+MAINTAINER = "eFfeM <fransmeulenbroeks at yahoo dot com>"
+DEPENDS = "libupnp virtual/libiconv virtual/libintl"
+SRC_URI = "http://ushare.geexbox.org/releases/ushare-${PV}.tar.bz2 \
+ file://realloc.patch;patch=1 \
+ file://ushare.sh \
+ file://ushare.conf \
+ file://ts.patch;patch=1 \
+ "
+
+S = "${WORKDIR}/ushare-${PV}"
+PR = "r2"
+
+INITSCRIPT_NAME = "ushare"
+INITSCRIPT_PARAMS = "defaults 40 20"
+
+inherit autotools update-rc.d
+
+do_install_append() {
+ install -d ${D}/etc/init.d
+ install -m 0577 ${WORKDIR}/ushare.sh ${D}/etc/init.d/ushare
+ install -m 0666 ${WORKDIR}/ushare.conf ${D}/etc/ushare.conf
+}
\ No newline at end of file
More information about the Openembedded-commits
mailing list