1
0
Fork 0

Add alpha version of net-misc/universalmediaserver

This commit is contained in:
Stefan Reimer 2016-11-26 13:56:21 -08:00
parent b031cdbe46
commit 2dac35cb01
4 changed files with 118 additions and 0 deletions

View File

@ -0,0 +1,4 @@
AUX universalmediaserver.confd 187 SHA256 2607fdcb30cc333802299367015d1ba8377d0e3033885b5a99297e10add1eb5d SHA512 b821cab5c88a99dcf9503015bbdb0c07f1d37fc4ab18d37c997c3e566cb79b4b2600858ed93e739dc9e036ae2a67a78d0c81ee1b2ffeac2dfd96b293f4925c27 WHIRLPOOL bc3d224771fb170be9463d43e2b8d2526d54f48149891cd3768a356b65e7613f0c98a64fad77d8523dcd3c8e090d28a5be2d0e3919dcb30dbc8916aa06b2ad4d
AUX universalmediaserver.initd 458 SHA256 43277d06222eab5ddbd5b1078542b86f5495001f8714c735709033d54b30c891 SHA512 a353ef3200309ce75e0177355523200ae32a54ee854adc316bffe3b54bc89f4196dc171ede99085d4ff9220692bc40e43574b1eb55b617e8998a59fb9efed3a3 WHIRLPOOL fbab90d434f3d0162dadcbce8cf44de6abc479f7f6ce52a14855534d9f9b61e0974a1ba70d53c77ff707e7bcb0af26a949be726fdba53f8924d0bc4efb9da4da
DIST UMS-6.5.1-Java8.tgz 74968062 SHA256 cadfd435915e3ef5c506bbbd81c49ec5811522ebc405779974f013ee94f3adcb SHA512 23e6f01f0c2fcb7d3207a0f58c8ca501a1d51a2cae6c66faa745659f705bd4ed5c90db0c0be96b2b49ddcfcf951f463cfc5d672b8bf4010dd6eb6d328c662251 WHIRLPOOL 2eeaeade1234661b500a9fdc68e5e4b378bed2b684dc388255697358a5c4920dbb8fd7de9843d6ad4214d0b48f0632d182e0c3d7493857a51e8022e6cc7d0fe9
EBUILD universalmediaserver-6.5.1.ebuild 2651 SHA256 fc89d5238bc85c4bce1cf728bcfc4983785905a7baf96a80ba1b4e4cf8a25e44 SHA512 265d452ca7ae870a01ecf04ff3f13f58445268047582d259c731a36935e7a00ef9b52a3bca9f8103ef1368406c5f3d90083c8dd107c648bd1941dc148dd18943 WHIRLPOOL 6fdc1f1fa70c514308c3c00aa115e8ec1143f1ea1277ac736434ff90168dcdf80af60759210840236e4426bd37f78e14b90938e7b9584da921e71a9426bc6532

View File

@ -0,0 +1,7 @@
# Copyright 2016 Ivan The Viking 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
UMS_USER=
UMS_GROUP=
UMS_PIDFILE=/var/run/ums.pid

View File

@ -0,0 +1,19 @@
#!/sbin/openrc-run
# Copyright 2016 Ivan The Viking 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
command="/usr/bin/universalmediaserver"
command_args="console"
pidfile="${PMS_PIDFILE:-/var/run/ums.pid}"
retry="10"
start_stop_daemon_args="
--background
--make-pidfile
${UMS_USER:+--user} ${UMS_USER}
${UMS_GROUP:+--group} ${UMS_GROUP}
"
depend() {
need net
}

View File

@ -0,0 +1,88 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils
DESCRIPTION="Universal Media Server is a DLNA-compliant UPnP Media Server."
HOMEPAGE="http://www.universalmediaserver.com/"
SRC_URI="https://sourceforge.net/projects/unimediaserver/files/Official%20Releases/Linux/UMS-${PV}-Java8.tgz/download -> UMS-${PV}-Java8.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm64"
IUSE="+libmediainfo +libzen multiuser +transcode tsmuxer"
DEPEND="app-arch/unzip"
RDEPEND=">=virtual/jre-1.8.0
libmediainfo? ( media-libs/libmediainfo )
libzen? ( media-libs/libzen )
tsmuxer? ( media-video/tsmuxer )
transcode? ( || ( media-video/mplayer[encode] media-video/ffmpeg[encode] ) )"
S=${WORKDIR}/ums-${PV}
UMS_HOME=/opt/${PN}
src_prepare() {
if use multiuser; then
cat > ${PN} <<-EOF
#!/bin/sh
if [ ! -e ~/.${PN} ]; then
echo "Copying ${UMS_HOME} to ~/.${PN}"
cp -pPR "${UMS_HOME}" ~/.${PN}
fi
export UMS_HOME=\${HOME}/.${PN}
exec "\${UMS_HOME}/UMS.sh" "\$@"
EOF
else
cat > ${PN} <<-EOF
#!/bin/sh
export UMS_HOME=${UMS_HOME}
exec "\${UMS_HOME}/UMS.sh" "\$@"
EOF
fi
cat > ${PN}.desktop <<-EOF
[Desktop Entry]
Name=Universal Media Server
GenericName=Media Server
Exec=${PN}
Icon=${PN}
Type=Application
Categories=Network;
EOF
unzip -j ums.jar resources/images/icon-{32,256}.png || die
}
src_install() {
dobin ${PN}
exeinto ${UMS_HOME}
doexe UMS.sh
insinto ${UMS_HOME}
doins -r ums.jar *.conf documentation plugins renderers *.xml
use tsmuxer && dosym /opt/tsmuxer/bin/tsMuxeR ${UMS_HOME}/linux/tsMuxeR
dodoc CHANGELOG.txt README.txt
newicon -s 32 icon-32.png ${PN}.png
newicon -s 256 icon-256.png ${PN}.png
domenu ${PN}.desktop
newconfd "${FILESDIR}/${PN}.confd" ${PN}
newinitd "${FILESDIR}/${PN}.initd" ${PN}
}
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]]; then
ewarn "Don't forget to disable transcoding engines for software"
ewarn "that you don't have installed (such as having the VLC"
ewarn "transcoding engine enabled when you only have mencoder)."
elif use multiuser; then
ewarn "Remember to refresh the files in ~/.config/UMS/"
fi
}