add/delete

This commit is contained in:
Mario Fetka
2011-11-19 16:55:48 +01:00
parent dec0c98298
commit e191b1ef58
55 changed files with 5731 additions and 172 deletions

View File

@@ -0,0 +1,13 @@
diff -crB ushare-1.1a-orig/src/mime.c ushare-1.1a/src/mime.c
*** ushare-1.1a-orig/src/mime.c Mon Oct 25 13:21:01 2010
--- ushare-1.1a/src/mime.c Mon Oct 25 13:21:45 2010
***************
*** 53,58 ****
--- 53,59 ----
{ "mpeg2", UPNP_VIDEO, "http-get:*:video/mpeg2:"},
{ "m4v", UPNP_VIDEO, "http-get:*:video/mp4:"},
{ "m4p", UPNP_VIDEO, "http-get:*:video/mp4:"},
+ { "mp4", UPNP_VIDEO, "http-get:*:video/mp4:"},
{ "mp4ps", UPNP_VIDEO, "http-get:*:video/x-nerodigital-ps:"},
{ "ts", UPNP_VIDEO, "http-get:*:video/mpeg2:"},
{ "ogm", UPNP_VIDEO, "http-get:*:video/mpeg:"},

View File

@@ -0,0 +1,38 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/ushare/files/ushare.conf.d,v 1.1 2009/12/23 22:27:37 darkside Exp $
# User to run ushare daemon (if none, root will be used)
USHARE_USER="ushare"
# UPNP Friendly Name:
USHARE_NAME="uShare"
# The interface to bind to:
USHARE_IFACE="eth0"
# Static ushare port:
USHARE_PORT=""
# Enable/Disable telnet:
USHARE_TELNET="yes"
# Choose different telnet port:
USHARE_TELNET_PORT=""
# Enable/Disable web component:
USHARE_WEB="yes"
# A List of directories to share, each precieded by '-c':
USHARE_DIRS=""
# Enable/Disable XboX 360 compliant profile:
USHARE_XBOX="no"
# Enable/Disable DLNA compliant profile (Playstation3 requires this):
USHARE_DLNA="no"
# Misc. options:
USHARE_OPTS=""
# Check ushare --help or man ushare for more options.

View File

@@ -0,0 +1,79 @@
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/ushare/files/ushare.init.d,v 1.1 2009/12/23 22:27:37 darkside Exp $
depend() {
use net
}
start() {
ebegin "Starting uShare"
# Sanity check to avoid ushare failling on booting with no
# shared dirs
if [[ -z "${USHARE_DIRS}" ]] ; then
eerror "Please set shared dirs in /etc/conf.d/ushare"
return 1
fi
if [[ -z "${USHARE_PORT}" ]] ; then
einfo "${USHARE_NAME} runs on a dynamic port"
local ushare_port=
else
local ushare_port="--port ${USHARE_PORT}"
einfo "${USHARE_NAME} using port ${USHARE_PORT}"
fi
if [[ "${USHARE_TELNET}" == "yes" ]] ; then
local ushare_telnet=
else
local ushare_telnet="--no-telnet"
fi
if [[ -z "${ushare_telnet}" ]] ; then
if [[ -z "${USHARE_TELNET_PORT}" ]] ; then
local ushare_telnet_port=
einfo "${USHARE_NAME} runs telnet on the default port"
else
local ushare_telnet_port="--telnet-port ${USHARE_TELNET_PORT}"
einfo "${USHARE_NAME} runs telnet on port ${USHARE_TELNET_PORT}"
fi
else
local ushare_telnet_port=
fi
if [[ "${USHARE_WEB}" == "yes" ]] ; then
local ushare_web=
else
local ushare_web="--no-web"
fi
if [[ "${USHARE_XBOX}" == "yes" ]] ; then
local ushare_xbox="--xbox"
else
local ushare_xbox=
fi
if [[ "${USHARE_DLNA}" == "yes" ]] ; then
local ushare_dlna="--dlna"
else
local ushare_dlna=
fi
start-stop-daemon --start --quiet -c ${USHARE_USER:-root} \
--exec /usr/bin/ushare -- -D -i ${USHARE_IFACE} \
-n ${USHARE_NAME} ${USHARE_OPTS} ${USHARE_DIRS} \
${ushare_port} \
${ushare_telnet} ${ushare_telnet_port} \
${ushare_web} \
${ushare_xbox} \
${ushare_dlna}
eend $?
}
stop() {
ebegin "Stopping uShare"
start-stop-daemon --stop --quiet --exec /usr/bin/ushare
eend $?
}