diff options
-rw-r--r-- | media-tv/plex-media-server/Manifest | 4 | ||||
-rw-r--r-- | media-tv/plex-media-server/plex-media-server-1.41.0.8994.ebuild | 85 |
2 files changed, 89 insertions, 0 deletions
diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest index 4bac72136804..f68d60e4c88a 100644 --- a/media-tv/plex-media-server/Manifest +++ b/media-tv/plex-media-server/Manifest @@ -2,3 +2,7 @@ DIST plexmediaserver_1.40.5.8921-836b34c27_amd64.deb 81250582 BLAKE2B 4d99c06a14 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 +DIST plexmediaserver_1.41.0.8994-f2c27da23_amd64.deb 81367922 BLAKE2B 5870e266d0e80d9c2c68a48c576a3d41876f0ce9b85587b20fb0b0d61c3a5e2507b6e32e07e2b30174119474763dc19b68a80521e57b6ff66ff5aa6895c2b188 SHA512 162c88948c1a948e23643c25d29b43ac2d3261afe4cc45cc9977ad383f8f83f78c478ba781a8451bddc841ce562069a2409cf46a0eab8298f0e946f0cbd7249c +DIST plexmediaserver_1.41.0.8994-f2c27da23_arm64.deb 73994962 BLAKE2B ba1f6334f6ea8632be20aab5b36e8b6db8c51464b9220082542e12706e34293ede3962f4c8e5c959511ecc5fb0c99d2d28aa38e06bb9f33a420983ee334ad5f8 SHA512 fa210f315d33ae3c24397296a1fda9be832dfb5ee5e8c6189b6d29d657aa1585167eb19607d026d73c28af6432669f2bf641abd367c60cde1022e41caf6f6905 +DIST plexmediaserver_1.41.0.8994-f2c27da23_armhf.deb 74232342 BLAKE2B ecaffb90f28a20ba35fa3dc94b60fde22569186da2e0f02af9dfc593c48e75cc7e4af4b8862010b62ee07e342a1f6c4f333459a5b9470b23994f945a0f395593 SHA512 ea2e0173b41f586fdc1a3f4396daf7525b1ff2b46877c04dd680fc0907c46cbc9893383ca1c2e729c690b69a12941607dc53213fcb9ae79ba021c4e3f3a21831 +DIST plexmediaserver_1.41.0.8994-f2c27da23_i386.deb 75022614 BLAKE2B 828309badb55a9a172dd7592b76605bfbbe67eea2ebfd8ede8d8596e539e13ac2b775e1a64464ea74a08c1040aa320f550b0d45e8cda9f11c406110ad64a8092 SHA512 c6142176faeceb0a86ec8eda617df27060c7877a1bcc19382e68a90735413de2d9f989c9349f6defa68cde2a252bc7c737c6acdaf4948270615e4be414da23ef diff --git a/media-tv/plex-media-server/plex-media-server-1.41.0.8994.ebuild b/media-tv/plex-media-server/plex-media-server-1.41.0.8994.ebuild new file mode 100644 index 000000000000..ec58249d3211 --- /dev/null +++ b/media-tv/plex-media-server/plex-media-server-1.41.0.8994.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}-f2c27da23" +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 +} |