add/delete
This commit is contained in:
14
media-video/ushare/ChangeLog
Normal file
14
media-video/ushare/ChangeLog
Normal file
@@ -0,0 +1,14 @@
|
||||
# ChangeLog for media-video/ushare
|
||||
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/ushare/ChangeLog,v 1.2 2009/12/29 05:21:57 darkside Exp $
|
||||
|
||||
29 Dec 2009; Jeremy Olexa <darkside@gentoo.org> ushare-1.1a.ebuild:
|
||||
Fix building with USE=nls, bug 298207
|
||||
|
||||
*ushare-1.1a (23 Dec 2009)
|
||||
|
||||
23 Dec 2009; Jeremy Olexa <darkside@gentoo.org> +ushare-1.1a.ebuild,
|
||||
+files/ushare.conf.d, +files/ushare.init.d, +metadata.xml:
|
||||
Initial import. Many thanks to all the contributors on bug 192561. Moved
|
||||
from sunrise overlay with modifications by myself
|
||||
|
||||
7
media-video/ushare/Manifest
Normal file
7
media-video/ushare/Manifest
Normal file
@@ -0,0 +1,7 @@
|
||||
AUX ushare-mp4-support.patch 605 RMD160 cdb222cddb1b4916ec0f96ce00a3e1016f0855c8 SHA1 374a8c5792c54267c7ece9a420d5bed5306482cd SHA256 1cf93c0b988725be7b619e6148cafad1f17a3a632949aade7990818620549774
|
||||
AUX ushare.conf.d 896 RMD160 8bf9d92633778a80a7492f8de120d03ca9d33a0d SHA1 d87f3bf5f813dc1a567d49c81809f57788b56036 SHA256 cf333cc495177828c8a5bf3fde9462190435843ffd51d95ef676c3c6df1c5563
|
||||
AUX ushare.init.d 2164 RMD160 adbee9c14af514ca8c91dfd0c9f37114828965ee SHA1 cde78bc810b58a2e1d7c2564750f38f81d325fb4 SHA256 7a8c4c06aacf9a87ae2036df24751a74a29e741a39e89e0c704c63a27ad2a4c2
|
||||
DIST ushare-1.1a.tar.bz2 65864 RMD160 6194ffec031d20fd897f2c7cf71c3c810238713f SHA1 1539e83cde5d80f433d262d971f5fe78486c9375 SHA256 7b9b85c79968d4f4560f02a99e33c6a33ff58f9d41d8faea79e31cce2ee78665
|
||||
EBUILD ushare-1.1a.ebuild 1572 RMD160 2f4cf570df69ffa2998e12da579549f5f8d23078 SHA1 c11420c2a3428c58a28ccfe1e1296125bf96d8a0 SHA256 a981e6df7e9699ca67cc56b9cd62d82e612f2b9dad2aad0f05a26e507c6148bb
|
||||
MISC ChangeLog 610 RMD160 62969eca5434acea74b94f9f7100405cab9ccb16 SHA1 7435dea800f3809c5386310195c46870ce0f8735 SHA256 e7ddbcc4af37bdb8ebc0226ca57fbffd911e8e620335f711925d643c8394d35f
|
||||
MISC metadata.xml 325 RMD160 c13b582c543062bebe26ba528099f118a89bdd23 SHA1 166336d7ee3f81fe2be6ac0c265d2903c070f3cb SHA256 24b9cc6b2e1e3c8011e0133aea0e8156bfdf6896f42bac864d444672bc6c9ad3
|
||||
13
media-video/ushare/files/ushare-mp4-support.patch
Normal file
13
media-video/ushare/files/ushare-mp4-support.patch
Normal 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:"},
|
||||
38
media-video/ushare/files/ushare.conf.d
Normal file
38
media-video/ushare/files/ushare.conf.d
Normal 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.
|
||||
79
media-video/ushare/files/ushare.init.d
Normal file
79
media-video/ushare/files/ushare.init.d
Normal 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 $?
|
||||
}
|
||||
11
media-video/ushare/metadata.xml
Normal file
11
media-video/ushare/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>video</herd>
|
||||
<maintainer>
|
||||
<email>darkside@gentoo.org</email>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name='dlna'>Add DLNA (<pkg>media-libs/libdlna</pkg>) support</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
59
media-video/ushare/ushare-1.1a.ebuild
Normal file
59
media-video/ushare/ushare-1.1a.ebuild
Normal file
@@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/ushare/ushare-1.1a.ebuild,v 1.2 2009/12/29 05:21:57 darkside Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
EAPI="2"
|
||||
DESCRIPTION="uShare is a UPnP (TM) A/V & DLNA Media Server"
|
||||
HOMEPAGE="http://ushare.geexbox.org/"
|
||||
SRC_URI="http://ushare.geexbox.org/releases/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="dlna nls"
|
||||
|
||||
RDEPEND="net-libs/libupnp
|
||||
dlna? ( media-libs/libdlna )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/ushare-mp4-support.patch"
|
||||
|
||||
elog "Replacing Original init.d File"
|
||||
sed -i \
|
||||
-e '/(INSTALL) -d $(sysconfdir)\/init\.d/d' \
|
||||
-e '/$(INSTALL) -m 755 $(INITD_FILE) $(sysconfdir)\/init.d/d' \
|
||||
scripts/Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
myconf="--prefix=/usr --sysconfdir=/etc --disable-strip $(use_enable dlna)"
|
||||
# nls can only be disabled, on by default.
|
||||
use nls || myconf="${myconf} --disable-nls"
|
||||
|
||||
./configure ${myconf} || die "Configure failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "Make failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
doman src/ushare.1 || die
|
||||
newconfd "${FILESDIR}"/ushare.conf.d ushare || die
|
||||
newinitd "${FILESDIR}"/ushare.init.d ushare || die
|
||||
dodoc NEWS README TODO THANKS AUTHORS || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
enewuser ushare
|
||||
elog "Please edit /etc/conf.d/ushare to set the shared directories"
|
||||
elog "and other important settings. Check system log if ushare is"
|
||||
elog "not booting."
|
||||
}
|
||||
Reference in New Issue
Block a user