net-misc/universalmediaserver: Ebuild improvements, new USE flags

This commit is contained in:
Stefan Reimer 2017-03-18 22:46:42 -07:00
parent 035bf046e1
commit f2eda76b24
5 changed files with 102 additions and 98 deletions

View File

@ -1,4 +1,4 @@
AUX universalmediaserver.confd 187 SHA256 2607fdcb30cc333802299367015d1ba8377d0e3033885b5a99297e10add1eb5d SHA512 b821cab5c88a99dcf9503015bbdb0c07f1d37fc4ab18d37c997c3e566cb79b4b2600858ed93e739dc9e036ae2a67a78d0c81ee1b2ffeac2dfd96b293f4925c27 WHIRLPOOL bc3d224771fb170be9463d43e2b8d2526d54f48149891cd3768a356b65e7613f0c98a64fad77d8523dcd3c8e090d28a5be2d0e3919dcb30dbc8916aa06b2ad4d
AUX universalmediaserver.initd 458 SHA256 43277d06222eab5ddbd5b1078542b86f5495001f8714c735709033d54b30c891 SHA512 a353ef3200309ce75e0177355523200ae32a54ee854adc316bffe3b54bc89f4196dc171ede99085d4ff9220692bc40e43574b1eb55b617e8998a59fb9efed3a3 WHIRLPOOL fbab90d434f3d0162dadcbce8cf44de6abc479f7f6ce52a14855534d9f9b61e0974a1ba70d53c77ff707e7bcb0af26a949be726fdba53f8924d0bc4efb9da4da
AUX universalmediaserver.confd 165 SHA256 ebddfaf249c9ae0f19c9905e707fbe7f3458f16d552aaafaa9448b54dbeec63b SHA512 49f0185cd898c6ebe193e08c75c0a0d4f8dc9dbecd0420c22449f82f1bef47f3b57e5dde614b64b67ae697f87e2a11492dbedad9d3ff4239f96667a7302dc281 WHIRLPOOL 1c93da3ef10e7cbc92f947d2db2f986b67e3723a5b95f13f869a8084a24c8ce0546d84cd7f04f408b362c1e1c0fc630f045c8baf999e1d0ce1e8b6a00659e87f
AUX universalmediaserver.initd 401 SHA256 10c4f249f2206466d7645900af3fed904fc4e350696c12ed89a7893c927c5527 SHA512 eeeccb023c635360e4ea98cbe6a9d21f5de8c353eda6bfa43f593930fe8de1c7cf618c0a89fa7598295fda3ea277fedb7b8bbde1425cc1cd955248afadcaadf6 WHIRLPOOL 2b5cd454ebb263faf9bd9726ff18f0664eb1291b8906e731d1844493815d2f1efb8314eb48a387ca497357501f5e117ea64ef40b598eb585daaa8842809bf965
DIST UMS-6.6.0-Java8.tgz 76476698 SHA256 dfc40476cf0f03f1761cb0fe004ed1931d17cbfd1e012e7801f10db167aec722 SHA512 48235a90d67e87edabdd8544ee102f0d2aa3a2034f51a1e79c59cf5524bcf0c7d6add1de493b7731ce3e70c6979ab75ee069ab4a05a7cb16c55c59bbe3e36384 WHIRLPOOL 530dd76b1dec3c30b615475ab92fe1f1f3ef20eb898dfa69a484c683e024ebd32d992a74c04797fdd0cf7584d060bc263a503853370638d38f9aa4c77031b45a
EBUILD universalmediaserver-6.6.0.ebuild 2651 SHA256 fc89d5238bc85c4bce1cf728bcfc4983785905a7baf96a80ba1b4e4cf8a25e44 SHA512 265d452ca7ae870a01ecf04ff3f13f58445268047582d259c731a36935e7a00ef9b52a3bca9f8103ef1368406c5f3d90083c8dd107c648bd1941dc148dd18943 WHIRLPOOL 6fdc1f1fa70c514308c3c00aa115e8ec1143f1ea1277ac736434ff90168dcdf80af60759210840236e4426bd37f78e14b90938e7b9584da921e71a9426bc6532
EBUILD universalmediaserver-6.6.0-r1.ebuild 2249 SHA256 38fb4cc606200b35b7c5d6a3a695ffbac0cbf040970a6677373273b17e00759e SHA512 b49c2d883c10434697db960d467d18534f47056b71c0554db02f92aba0cc132381b4f3ee1b120d7cc9a7b804b1ddfaf4d686b40444c66ff620adb26d0c24825a WHIRLPOOL 8f2d456482d7e9fe6c173a2e1a7bf4665e135a7323f10e3390f1260bfcc3442b8c84fc4018312b90ebb30ae1939ee1d1e02322582b637f2396d8d3b8a3535d4a

View File

@ -1,4 +1,4 @@
# Copyright 2016 Ivan The Viking 1999-2014 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

View File

@ -1,5 +1,5 @@
#!/sbin/openrc-run
# Copyright 2016 Ivan The Viking 1999-2012 Gentoo Foundation
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -8,12 +8,12 @@ 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}
--background
--make-pidfile
${UMS_USER:+--user} ${UMS_USER}
${UMS_GROUP:+--group} ${UMS_GROUP}
"
depend() {
need net
need net
}

View File

@ -0,0 +1,92 @@
# 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="mirror://sourceforge/project/unimediaserver/Official%20Releases/Linux/UMS-${PV}-Java8.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm64"
IUSE="+dcraw +ffmpeg +libmediainfo +libzen +mplayer multiuser tsmuxer +vlc"
DEPEND="app-arch/unzip"
RDEPEND=">=virtual/jre-1.8.0
dcraw? ( media-gfx/dcraw )
ffmpeg? ( media-video/ffmpeg[encode] )
libmediainfo? ( media-libs/libmediainfo )
libzen? ( media-libs/libzen )
mplayer? ( media-video/mplayer[encode] )
tsmuxer? ( media-video/tsmuxer )
vlc? ( media-video/vlc[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 ffmpeg"
ewarn "transcoding engine enabled when you only have mencoder)."
elif use multiuser; then
ewarn "Remember to refresh the files in ~/.config/UMS/"
fi
}

View File

@ -1,88 +0,0 @@
# 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
}