From 11942b3b142315afb54b05c7303184c5758d39b8 Mon Sep 17 00:00:00 2001 From: Joe Kappus Date: Mon, 27 Feb 2023 23:32:47 -0500 Subject: media-tv/plex-media-server: add 1.31.1.6733 Signed-off-by: Joe Kappus Signed-off-by: Joonas Niilola --- media-tv/plex-media-server/Manifest | 3 + .../plex-media-server-1.31.1.6733.ebuild | 84 ++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 media-tv/plex-media-server/plex-media-server-1.31.1.6733.ebuild (limited to 'media-tv/plex-media-server') diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest index 9e5fe814787d..f1081acc1f3d 100644 --- a/media-tv/plex-media-server/Manifest +++ b/media-tv/plex-media-server/Manifest @@ -13,3 +13,6 @@ DIST plexmediaserver_1.30.2.6563-3d4dc0cce_i386.deb 77862086 BLAKE2B dffabe49b1e DIST plexmediaserver_1.31.0.6654-02189b09f_amd64.deb 82825498 BLAKE2B 2a1ff82f4dee56a46cd84bdef41489c19956a65ee439aa554616393141dc28593abd22c0a77ad3e9567c1ff6a0990d8d45f13ae84527911c07e241e556e01f28 SHA512 6cf58bf84ea45c395c628b4b60dd21c5cd4602815d476f003f1c0a1dd330ef786f9efe9ff9e666c68f9c95273db7ece833d6811d2d79621487392f6ff6b2ef3f DIST plexmediaserver_1.31.0.6654-02189b09f_arm64.deb 71881250 BLAKE2B 67c794b5cda0c2972ca0b8cb09e001c59b5d421fabf61d18661e346b3f264a5199fb8cd41c37c48cf5e640e8b64b9737e487686ed2ba0497aaf213348efb3750 SHA512 d6e9eb89d2e5604303702212c064c385865c2e1b05cd27c63044b7977c96eb78471337dd0e126894153fbd3989852749f7b3604fce3017bde2f0df58f718fe77 DIST plexmediaserver_1.31.0.6654-02189b09f_i386.deb 75423994 BLAKE2B 91028104bd0f2d80d07248f369e8ddcf6e22657c3dc063a878df5b9485ec576a84db99d8a85fddf1063bd966d474a78b6163e8d7d94fcc03b6e425f0b85cedfe SHA512 be03b446a0b002de094fbb83ad02fddef284b447e470fc29902376be4e79c826a52971d891c7b25834858e795d7ebe82cd4d599bad6157d47633010426939260 +DIST plexmediaserver_1.31.1.6733-bc0674160_amd64.deb 83355492 BLAKE2B c1892bd1a27a65c6948f6a5fa44ee21996691ad2eaddd1b977dbead7ff957fba11166ecc9e9be1bcdfd29568136353d01784c26328663b1ac0f7a1cba6874773 SHA512 7740f42d114bccc39c464b52fdfda85a486480decdb6c1e2bca15616ef417a85a23a659ca29734cf85f459254df6993726106e72f5bd3a5f78c9bff6021b56bb +DIST plexmediaserver_1.31.1.6733-bc0674160_arm64.deb 71934476 BLAKE2B b78400100e12506f28055c2aa5ea5816d3f2c89ddcc32a842595799c481cbf314cd159beb30629f892907018e94d93884a728bded0dee461910992b1be3beefd SHA512 e7a4a5d2a5bc6a518d955d44de5076213935717fd738efab43645c95383bee0696b608c7651d6c577ae9a53db0e18327475780b0884e8371dd5ddd649db054fa +DIST plexmediaserver_1.31.1.6733-bc0674160_i386.deb 75390872 BLAKE2B f4f6cf7686f441f547b37bb2bc3211d8410b6441ec896955b024d7a9a52c953f3aa01d5abc311e83026a1ce268047cc7423ac02f6cfa32548c28b13ccb1fa923 SHA512 f34f85076119fa31333fa294a10b81dd3078370c9a42d36506c57bd576cf32f0191b01eb603f26bf81c5b059165db3eb9c15492e1d9d89e7f77a554e17671aed diff --git a/media-tv/plex-media-server/plex-media-server-1.31.1.6733.ebuild b/media-tv/plex-media-server/plex-media-server-1.31.1.6733.ebuild new file mode 100644 index 000000000000..87575c00c8e3 --- /dev/null +++ b/media-tv/plex-media-server/plex-media-server-1.31.1.6733.ebuild @@ -0,0 +1,84 @@ +# 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}-bc0674160" +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 ) + 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 ~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 +} -- cgit v1.2.3-65-gdbad