Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bump plex-media-server-0.9.6.9.

  • Loading branch information...
commit 96f049d6af1a68346907202dff95823ec9af05e3 1 parent 782cb80
Sune Kloppenborg Jeppesen authored
View
3  media-tv/plex-media-server/Manifest
@@ -2,4 +2,7 @@ AUX pms_initd_1 592 SHA256 0975b95c166bedbfda3f138e45e2bd0633d524c29ab452966e9fc
AUX start_pms_1.patch 764 SHA256 47f92d85d31041d8fe64e732385ae7fa423779e2db1745af7129486fc26a1f82 SHA512 87552834e7ff08987b5f00998d949a2ad836d65d94289de7e1b73b19d4b2205659b7e60d926b3e08154f1f2ebc9230a7839af92bf31ed21b3883483879ff180f WHIRLPOOL 733ba1fa1b60bfab7d6e31269f4f738d516d28a3a45a837daa1daea0e59e9886f736fd36033500782baf918ce0cc6db09b2c45dd24d75ae1cd23f0ca69705fe1
DIST plexmediaserver_0.9.6.7.204-266f05d_amd64.deb 61964102 SHA256 dfd52a89f3b8c5e13f0108061d51d54d0408b9810dfa0e5b522d0b140a25621f
DIST plexmediaserver_0.9.6.7.204-266f05d_i386.deb 60679260 SHA256 88391fb93b4607d7fa2f7678ce684ac81357655c262972a711b9ccdf7ff5aaf4
+DIST plexmediaserver_0.9.6.9.241-da3068c_amd64.deb 64697412 SHA256 4bc1d73032bbde4fe20774656ad37fa26fdab923fa2fce14e4c340d6ff5fd045 SHA512 186808605a717126bc51a310d65fd68cb904953ff626587976b03cfacd3b418dea26019e247353170d4d9cbf2a8f06252d0d6894ae7999bd58e4ad766025b287 WHIRLPOOL 44506a7fe43b64c10119e636d8959a653198dc62489653d6fec19f570cc2d3f126bcd86c22254d4758d1126d40f52d33dd0bd0ed764c3c6b24f1e2b4610b0834
+DIST plexmediaserver_0.9.6.9.241-da3068c_i386.deb 63410486 SHA256 319c5feff8ab18c208baab7c84ab72ce68466489daf47ca4fd436c8bfa1cdb5e SHA512 6715487559df45d5c1015d2c9da1a22f93f5ee3bac823865e2e073b0d317d4aaa9292f141d0c7fdff69bb6eb5aa8ce583a11ae297a49381c906185a286a2c2fa WHIRLPOOL 59619378771299128e48aec6fa64eba54bc59847c1feb04f3dcf7ae479f30aef03876641b59913b758d5945ae37a845339256a16ce79b5b8f06cbc344e95a593
EBUILD plex-media-server-0.9.6.7.ebuild 2364 SHA256 637c65491717020191d7989812f7a17619765d82bc3859373050d53dad814986 SHA512 59f39ce9c6988e54c6dbbd45cf8099dc2399062471fe18749f0f535bea6b56a91c4008b02ed9d070528c490cd11a0050dafa61280af383a4cdb5f0abcc55e348 WHIRLPOOL efad41813c1e4bf587c8f720e2193d605c90003a4fc03160cd2d4560adc3605971d2ce7b56281efed1969d17fd781dab791dc21370dab02d9ebffa36bb3d048e
+EBUILD plex-media-server-0.9.6.9.ebuild 2364 SHA256 dc10a23d7c0154f4b09c69e8881d2d10c14f8bd3f383a913dc743a92a864e0f5 SHA512 3c49f42a907910436f7383f7b23cd9816095f7e4c9dd63e48e60efb0d3cfa543f7eb6a769591b91a4e11e0c7e42f396b28830a71e41d0981ef4f2b458320600a WHIRLPOOL 1244df3cd5d8be5ab9fde993d8ed1a8c500663b9f82a8ab6c39e47b8ccd62a9e8c5b4d9297170e04f4dfe25bfd470a22275650e5442004fb0127526519e4f533
View
79 media-tv/plex-media-server/plex-media-server-0.9.6.9.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Plex Media Server is a free media library for use with clients available for OS X, iOS and Android."
+HOMEPAGE="http://www.plexapp.com/"
+KEYWORDS="-* ~x86 ~amd64"
+SRC_URI="x86? ( http://www.plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_0.9.6.9.241-da3068c_i386.deb )
+ amd64? ( http://www.plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_0.9.6.9.241-da3068c_amd64.deb )"
+SLOT="0"
+LICENSE="PMS-License"
+IUSE=""
+
+RDEPEND="net-dns/avahi"
+DEPEND="${RDEPEND}"
+
+INIT_SCRIPT="${ROOT}/etc/init/plexmediaserver"
+
+pkg_setup() {
+ enewgroup plex
+ enewuser plex -1 /bin/bash /var/lib/plexmediaserver "plex" --system
+}
+
+pkg_preinst() {
+ einfo "Unpacking DEB File"
+ cd "${WORKDIR}"
+ ar x "${DISTDIR}/${A}"
+ mkdir data
+ mkdir control
+ tar -xzf data.tar.gz -C data
+ tar -xzf control.tar.gz -C control
+
+ einfo "Preparing files for installation"
+ # replace debian specific init scripts with gentoo specific ones
+ rm data/etc/init.d/plexmediaserver
+ rm -r data/etc/init
+ cp "${FILESDIR}"/pms_initd_1 data/etc/init.d/plex-media-server
+ chmod 755 data/etc/init.d/plex-media-server
+ # move the config to the correct place
+ mkdir data/etc/plex
+ mv data/etc/default/plexmediaserver data/etc/plex/plexmediaserver.conf
+ rmdir data/etc/default
+ # apply patch for start_pms to use the new config file
+ cd data/usr/sbin
+ epatch "${FILESDIR}"/start_pms_1.patch
+ cd ../../..
+ # remove debian specific useless files
+ rm data/usr/share/doc/plexmediaserver/README.Debian
+ # as the patch doesn't seem to correctly set the permissions on new files do this now
+ # now copy to image directory for actual installation
+ cp -R data/* "${D}"
+
+ # make sure the logging directory is created
+ mkdir "${D}"var
+ mkdir "${D}"var/log
+ mkdir "${D}"var/log/pms
+ chown plex:plex "${D}"var/log/pms
+
+ # also make sure the default library folder is pre created with correct permissions
+ mkdir "${D}"var/lib
+ mkdir "${D}"var/lib/plexmediaserver
+ chown plex:plex "${D}"var/lib/plexmediaserver
+
+ einfo "Stopping running instances of Media Server"
+ if [ -e "${INIT_SCRIPT}" ]; then
+ ${INIT_SCRIPT} stop
+ fi
+}
+
+pkg_prerm() {
+ einfo "Stopping running instances of Media Server"
+ if [ -e "${INIT_SCRIPT}" ]; then
+ ${INIT_SCRIPT} stop
+ fi
+}
Please sign in to comment.
Something went wrong with that request. Please try again.