summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Kappus <joe@wt.gd>2024-08-30 01:00:41 -0400
committerJoonas Niilola <juippis@gentoo.org>2024-08-30 10:25:28 +0300
commit6304d696c59966066fd08f6141934300af0be6c4 (patch)
treecd65a3a235fc43dd213d441c7b073b502af49223 /media-tv
parentsys-apps/syd: drop 3.23.18 (diff)
downloadgentoo-6304d696c59966066fd08f6141934300af0be6c4.tar.gz
gentoo-6304d696c59966066fd08f6141934300af0be6c4.tar.bz2
gentoo-6304d696c59966066fd08f6141934300af0be6c4.zip
media-tv/plex-media-server: add 1.40.5.8921
Signed-off-by: Joe Kappus <joe@wt.gd> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/plex-media-server/Manifest4
-rw-r--r--media-tv/plex-media-server/plex-media-server-1.40.5.8921.ebuild85
2 files changed, 89 insertions, 0 deletions
diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest
index bc7e4ad339f0..02606b66890c 100644
--- a/media-tv/plex-media-server/Manifest
+++ b/media-tv/plex-media-server/Manifest
@@ -14,3 +14,7 @@ DIST plexmediaserver_1.40.5.8854-f36c552fd_amd64.deb 81245190 BLAKE2B 66055a6e0b
DIST plexmediaserver_1.40.5.8854-f36c552fd_arm64.deb 73833094 BLAKE2B 9c0354f9363867cc68db0ce796a0ecf77252cfe3249e9245159db2bdeeede37d794492d98fffe3857e3fb69d66e16c27584b225fec7118379775b0ee975bd907 SHA512 b004e855005e88188818ea961e23037191873e7f39c23b5fa337995686da58706313817a6791b653b4d07304643adac2388a5d4d3d1b28643f9f118db14d82b1
DIST plexmediaserver_1.40.5.8854-f36c552fd_armhf.deb 74086042 BLAKE2B 2b74a5789a354af9122e5b9ae2358d9cbc433a85cb3f52b850539ab13dd24aefdd1dc4cadc37953ac0be5d3e55293f12a80b96c04e298a4ed89e850a2067577f SHA512 aff06f07e419adc3aa6afb260115986154d768d00f3406bb51d4ef0334bffe076875e3af208575f719c3b3a23d477dbe67e23999bec620df851cb7be1555f1bc
DIST plexmediaserver_1.40.5.8854-f36c552fd_i386.deb 74784106 BLAKE2B 4e3818583709cfd4fc4d28152bf4692e221d1bafbef9dcd306e8c939b526563d9e7d7773c8dcf0562725d5e2d9287f22c7ad421f390d738866a39d07bef46a73 SHA512 8e137f5565f5cfc36fdb80c64abb7b9c7b5e0054da97c44f3d5ff73e8b00ebd8a8e7cba0bec79a2ff0ca9fb7c9e42e593c9211813538fe758b66a7522e55ed39
+DIST plexmediaserver_1.40.5.8921-836b34c27_amd64.deb 81250582 BLAKE2B 4d99c06a141744ecdf595a3bd1472e5b2530b481e1f91f75072fa28b11996bb7d3e0a6808f37e98c0c2db315eb7d69a8687edffb4d00c92974e826e88cf08571 SHA512 71e0b0b0e614dee395461dc511afa4e71ad7a5dfb803116f21ea6210c0d4940b0e08b825eb485fdbf88054ec4dd41b97f0b0158e683ab262f4fa36984e24314a
+DIST plexmediaserver_1.40.5.8921-836b34c27_arm64.deb 73844562 BLAKE2B 7310ceb9c7af6da0e62a9cc55405d6f63aa99e8f9563b25b5fa66887ca17ca34d78f39357cfb521ac5e01cafd6c3195238a87994542cd5dc60468e2e392ab206 SHA512 29f60923d8ea0b28218aaba0d962aa25c90f652d5b8b4e93573171e7b3521e2b18b4bb9a5381dec78cf61ebafc7595e93647f10f836086de6a3edda17d58975f
+DIST plexmediaserver_1.40.5.8921-836b34c27_armhf.deb 74074378 BLAKE2B a81bb2038c52d6bb9299c6bc51f22b3c896d54bdb3c07cba5aa09daaf03cb34e45c88cef7753e6ce409445a0a6e022b7d712a2cc7a21dbc9bc0d50eed42d851a SHA512 77c2b90c2fef476573ca4a7f7874ff5f3356c9cabf733bd33e16687469a28d6b97bd5a80d8900a94309cef34c473164f6d698029370e99fc8ca04d141b2805b4
+DIST plexmediaserver_1.40.5.8921-836b34c27_i386.deb 74786146 BLAKE2B 8bbd8c3f60103c8048553c3d80e7ff045e79debf6f021c606501328cc61f4e270723d977fbef5ae4fbf9975542331eb83009f313ff93cfd964eff14528eed6a2 SHA512 914cf58fc2458b82c68a64c10845ff30c7146d3bd0ea4c47eefc5089c0b7d8e12a946d6557e48b61f0e9532aa1d98b56ecddf527d453d9340376856a93123a9f
diff --git a/media-tv/plex-media-server/plex-media-server-1.40.5.8921.ebuild b/media-tv/plex-media-server/plex-media-server-1.40.5.8921.ebuild
new file mode 100644
index 000000000000..c0d545ff7b87
--- /dev/null
+++ b/media-tv/plex-media-server/plex-media-server-1.40.5.8921.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit readme.gentoo-r1 systemd unpacker pax-utils
+
+MY_PV="${PV}-836b34c27"
+MY_URI="https://downloads.plex.tv/plex-media-server-new"
+
+DESCRIPTION="Free media library that is intended for use with a plex client"
+HOMEPAGE="https://www.plex.tv/"
+SRC_URI="
+ amd64? ( ${MY_URI}/${MY_PV}/debian/plexmediaserver_${MY_PV}_amd64.deb )
+ arm? ( ${MY_URI}/${MY_PV}/debian/plexmediaserver_${MY_PV}_armhf.deb )
+ arm64? ( ${MY_URI}/${MY_PV}/debian/plexmediaserver_${MY_PV}_arm64.deb )
+ x86? ( ${MY_URI}/${MY_PV}/debian/plexmediaserver_${MY_PV}_i386.deb )
+"
+S="${WORKDIR}"
+
+LICENSE="Plex"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86"
+RESTRICT="bindist"
+
+DEPEND="
+ acct-group/plex
+ acct-user/plex"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}.service.patch"
+)
+
+QA_DESKTOP_FILE="usr/share/applications/plexmediamanager.desktop"
+QA_PREBUILT="*"
+QA_MULTILIB_PATHS=(
+ "usr/lib/plexmediaserver/lib/.*"
+ "usr/lib/plexmediaserver/Resources/Python/lib/python2.7/.*"
+ "usr/lib/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload/_hashlib.so"
+)
+
+src_install() {
+ # Remove Debian specific files
+ rm -r "usr/share/doc" || die
+
+ # Copy main files over to image and preserve permissions so it is portable
+ cp -rp usr/ "${ED}" || die
+
+ # Make sure the logging directory is created
+ keepdir /var/log/pms
+ fowners plex:plex /var/log/pms
+
+ keepdir /var/lib/plexmediaserver
+ fowners plex:plex /var/lib/plexmediaserver
+
+ # Install the OpenRC init/conf files
+ newinitd "${FILESDIR}/${PN}.init.d" ${PN}
+ newconfd "${FILESDIR}/${PN}.conf.d" ${PN}
+
+ # Install systemd service file
+ systemd_newunit "${ED}"/usr/lib/plexmediaserver/lib/plexmediaserver.service "${PN}.service"
+
+ # Add pax markings to some binaries so that they work on hardened setup
+ BINS_TO_PAX_MARK=(
+ "${ED}/usr/lib/plexmediaserver/Plex Script Host"
+ "${ED}/usr/lib/plexmediaserver/Plex Media Scanner"
+ )
+
+ local f
+ for f in "${BINS_TO_PAX_MARK[@]}"; do
+ pax-mark m "${f}"
+ done
+
+ # Adds the precompiled plex libraries to the revdep-rebuild's mask list
+ # so it doesn't try to rebuild libraries that can't be rebuilt.
+ insinto /etc/revdep-rebuild
+ doins "${FILESDIR}"/80plexmediaserver
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}