summaryrefslogtreecommitdiff
path: root/net-misc/ps3mediaserver
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-03-19 15:12:58 +0000
committerrandomdan <randomdan@localhost>2010-03-19 15:12:58 +0000
commitda065bb51a7957a4e19180dd264403c836ff9925 (patch)
treeda1f0299de8957e8ca84ee6b8c00961a32d1e1d7 /net-misc/ps3mediaserver
parentallow monodev upgrade, fix git move (diff)
downloadportage-da065bb51a7957a4e19180dd264403c836ff9925.tar.bz2
portage-da065bb51a7957a4e19180dd264403c836ff9925.tar.xz
portage-da065bb51a7957a4e19180dd264403c836ff9925.zip
ps3mediaserver
Diffstat (limited to 'net-misc/ps3mediaserver')
-rw-r--r--net-misc/ps3mediaserver/Manifest3
-rw-r--r--net-misc/ps3mediaserver/ps3mediaserver-1.10.5-r1.ebuild74
2 files changed, 77 insertions, 0 deletions
diff --git a/net-misc/ps3mediaserver/Manifest b/net-misc/ps3mediaserver/Manifest
new file mode 100644
index 0000000..667e220
--- /dev/null
+++ b/net-misc/ps3mediaserver/Manifest
@@ -0,0 +1,3 @@
+DIST pms-linux-1.10.5.tgz 6742266 RMD160 6f92e3adbac278514d019dc582d34dafb802d18d SHA1 9271f03daf04998f51639d830e3e38b3da427c09 SHA256 232d352cd0353c6e17892949f4808da0218e2084e52eed3a6bb76667516bc7ca
+DIST tsMuxeR_1.10.6.tar.gz 5489146 RMD160 57765159d0f5fb2ffb77a9b8814d18691793a8b9 SHA1 c5fd785ab5fb1c5f2bb8984d1f6119a5e8b90648 SHA256 a12ee4c5289afba25ce0998c04c752026a73afce45c700624b8efc0bc090ab78
+EBUILD ps3mediaserver-1.10.5-r1.ebuild 2305 RMD160 f78a8309a4b40f7cd38a9910c7d10926c58a0d6d SHA1 1b71e40aa7eae21d475ade3eb73f4a3ac3d20961 SHA256 bb6baec814de1e5aa47c5600e6dd496ebe1788d680e8ce87fceb76411fffcef7
diff --git a/net-misc/ps3mediaserver/ps3mediaserver-1.10.5-r1.ebuild b/net-misc/ps3mediaserver/ps3mediaserver-1.10.5-r1.ebuild
new file mode 100644
index 0000000..0dd184f
--- /dev/null
+++ b/net-misc/ps3mediaserver/ps3mediaserver-1.10.5-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvs/lportage/net-misc/ps3mediaserver/ps3mediaserver-1.10.5-r1.ebuild,v 1.1 2010-03-19 15:12:37 randomdan Exp $
+
+EAPI=2
+
+S="${WORKDIR}/pms-linux-${PV}"
+
+DESCRIPTION="DLNA compliant UPNP server for streaming media to Playstation 3"
+HOMEPAGE="http://code.google.com/p/ps3mediaserver"
+SRC_URI="http://ps3mediaserver.googlecode.com/files/pms-linux-${PV}.tgz http://www.smlabs.net/tsMuxer/tsMuxeR_1.10.6.tar.gz"
+
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="transcode non-free"
+
+LICENSE="GPL-2"
+
+DEPEND=""
+RDEPEND=">=virtual/jre-1.6.0
+ transcode? ( media-video/mplayer[encode] )"
+
+
+src_unpack(){
+ unpack ${A}
+ # Upgrade tsMuxeR
+ cp "${WORKDIR}/tsMuxeR" "${S}/linux/tsMuxeR"
+ cp "${WORKDIR}/licence.txt" "${S}/linux/tsMuxeR_license.txt"
+ cd "${S}"
+}
+
+src_install(){
+ einfo "Installing ${PN}"
+ sed 's/DIRNAME=`dirname $0`/DIRNAME=\/usr\/share\/pms/g' < PMS.sh > pms.old
+ echo "#/bin/bash" > pms
+ echo "" >> pms
+ echo "if [ -d \$HOME/.ps3mediaserver ]; then" >> pms
+ echo "cd \$HOME/.ps3mediaserver" >> pms
+ echo "else" >> pms
+ echo "mkdir \$HOME/.ps3mediaserver" >> pms
+ echo "cd \$HOME/.ps3mediaserver" >> pms
+ echo "fi" >> pms
+ echo "if [ ! -e \$HOME/.ps3mediaserver/WEB.conf ]; then" >> pms
+ echo "cp /usr/share/pms/WEB.conf \$HOME/.ps3mediaserver" >> pms
+ echo "fi" >> pms
+ echo "if [ ! -d \$HOME/.ps3mediaserver/linux ]; then" >> pms
+ echo "cp -R /usr/share/pms/linux \$HOME/.ps3mediaserver" >> pms
+ echo "chmod +x \$HOME/.ps3mediaserver/linux/tsMuxeR" >> pms
+ echo "fi" >> pms
+ cat pms.old >> pms
+ dobin pms
+ dodoc CHANGELOG FAQ README
+ if ! use non-free ; then
+ einfo "Removing tsMuxeR"
+ rm linux/tsMuxeR linux/tsMuxeR_licence.txt
+ fi
+ mkdir ${D}usr/share/pms
+ cp -R linux pms.jar WEB.conf ${D}usr/share/pms
+}
+
+pkg_postinst(){
+ if ! use non-free ; then
+ ewarn
+ ewarn "tsMuxeR has been removed from install due to to its licensing."
+ ewarn "If you require it then rebuild with the 'non-free' use flag."
+ ewarn "Also be sure to disable it in your transcoding settings"
+ ewarn
+ fi
+ ewarn
+ 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)."
+ ewarn
+}