summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Kappus <joe@wt.gd>2023-12-05 16:29:48 -0500
committerSam James <sam@gentoo.org>2023-12-09 18:44:48 +0000
commit88e031f73c9726ae41dc8c7a4909509e4efb420d (patch)
tree83d0fe072a9dedc7d35d6e3e10848f95a33d9a8e /media-tv
parentx11-libs/libXaw3d: fix modern C issue (diff)
downloadgentoo-88e031f73c9726ae41dc8c7a4909509e4efb420d.tar.gz
gentoo-88e031f73c9726ae41dc8c7a4909509e4efb420d.tar.bz2
gentoo-88e031f73c9726ae41dc8c7a4909509e4efb420d.zip
media-tv/plex-media-server: add 1.32.8.7639
Closes: https://bugs.gentoo.org/919586 Signed-off-by: Joe Kappus <joe@wt.gd> Closes: https://github.com/gentoo/gentoo/pull/34135 Signed-off-by: Sam James <sam@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.32.8.7639.ebuild90
2 files changed, 94 insertions, 0 deletions
diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest
index 482249dcf85d..05540bc07322 100644
--- a/media-tv/plex-media-server/Manifest
+++ b/media-tv/plex-media-server/Manifest
@@ -6,3 +6,7 @@ DIST plexmediaserver_1.32.7.7621-871adbd44_amd64.deb 75711676 BLAKE2B 4ce4e51ec9
DIST plexmediaserver_1.32.7.7621-871adbd44_arm64.deb 70112656 BLAKE2B cba768419128c77f7d979eca6c4b2c428f0c7a930ee8eb7540a6a282c15daa8630e12a792d34679b5d4a33b8906a7d50fd5baa072e074cb8c7ab6cc5dc5ea86b SHA512 f0fbe87c330829a68043d11d3940fa18b2718fb417c278da55955578ae02f93527534c3443a15a9084cb3060ebdd71226d407424234d1f3da44171b6989a740b
DIST plexmediaserver_1.32.7.7621-871adbd44_armhf.deb 70266186 BLAKE2B be140739db798e7182fb5cff45bc83878bbef91cc3907be0a90647c998f9570274b9ad0ee4fba59cdd3c48c7117420469a4210a7a56bde00436edd3dab305255 SHA512 42231ad91efea14842f01928240d2ac114436f7d77e498ea6c884ddf96300d641085b334502a30779cd4478df3fe0d5620129f58c0188113e8a12ab37c50a97f
DIST plexmediaserver_1.32.7.7621-871adbd44_i386.deb 73594772 BLAKE2B 9af2bd67c8bb016be0deb3984d41fa074bdee9b99c499af93f2ec0dcb35cc4e8975be0d8cb9930bd43a1d293ac4aa3136ed9658285e14256d303befce41413c5 SHA512 aebe0a22697b3c6eae8ea30c82eabc6b514d8f06477856b22fd49aa717e144125a30861b5b50050b4588f398b4e893537ab0fa64a30dff559efc4faa48863deb
+DIST plexmediaserver_1.32.8.7639-fb6452ebf_amd64.deb 76341142 BLAKE2B ec46ffb5a5b742b6196acdcf7e212070adc9a729c754dfd9e9cca8c5e0205060c80016a5cbffafabb9d5535baed202b09140699a7902c83289444ec3bb7d3aa9 SHA512 f4551584e99c84a0eaa474700a8d3baf95b0fd250e7d5e3b0c1d7e45e657eb0f097d21aa70ee4ad465f23999bbe2fe3fa88d21eb141d754a7cd422abcc425d78
+DIST plexmediaserver_1.32.8.7639-fb6452ebf_arm64.deb 70657050 BLAKE2B 80269c6ef68d30dc5882db06dc0dd77f6352ad72c5f983ff00f46bba93412bc7f2348295973f9ce48be4f6099713cd88e4ccfdbc94cbac97616c1ec139d1a4b3 SHA512 8b15232b91603096ca61d1283e3ee255906d4fc2e0f3e82d3ebbb79ddcb983e154b05e435ee5737532a3e4258c751ea6597e0a27d4bc3761107562fdb457c232
+DIST plexmediaserver_1.32.8.7639-fb6452ebf_armhf.deb 70785650 BLAKE2B e85177079d8cbc03a56dc0be3183198467c4fa0e0c242e77ad7a91bd008853ffee61ee61612819f41b11019da0dc4a8b776dc41ec0d983cb49d7f1f780ac2607 SHA512 0da3b288a488942119db5f609ba453083f5d4559da5089bcfec743aefc187e0218515ce16a025f015a9b9eccd0c04fefc904fbd0469072d19d8614aa402a331f
+DIST plexmediaserver_1.32.8.7639-fb6452ebf_i386.deb 74289812 BLAKE2B 5f0eb0dd865775e9091ef73c06e6797be22e2b1b61bac740891bae23535c5cfaf997b4100c52c51793bff8b0426ff0db1795b560a908be1a18185b2bc2c7ebe2 SHA512 e7484efde9d86f54cab48adf4dd90493b339d64dd7b2a91a5dfc69851dab5df744d92564cf30d11d92d21cff959a3f5e68c0bc526980d1d5cb08bce6b1bb5b82
diff --git a/media-tv/plex-media-server/plex-media-server-1.32.8.7639.ebuild b/media-tv/plex-media-server/plex-media-server-1.32.8.7639.ebuild
new file mode 100644
index 000000000000..c0c3a8eafd6f
--- /dev/null
+++ b/media-tv/plex-media-server/plex-media-server-1.32.8.7639.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2023 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}-fb6452ebf"
+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"
+)
+
+BINS_TO_PAX_MARK=(
+ "${ED}/usr/lib/plexmediaserver/Plex Script Host"
+ "${ED}/usr/lib/plexmediaserver/Plex Media Scanner"
+)
+
+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
+ 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
+
+ einfo
+ einfo "Be advised beginning 2023-10-12 Plex has begun blocking servers"
+ einfo "hosted at Hetzner. More information:"
+ einfo "https://forums.plex.tv/t/not-allowed-to-use-hetzner/853570"
+}