summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Kappus <joe@wt.gd>2023-02-17 00:36:44 -0500
committerSam James <sam@gentoo.org>2023-02-17 06:22:25 +0000
commit851d560188616dd07a74fb2fba0079b4da68fb2f (patch)
treed239d2c8f889a8a3558e0afbcc43851dae19d468 /media-tv
parentmedia-tv/plex-media-server: readd hardened support, initscript, fix version r... (diff)
downloadgentoo-851d560188616dd07a74fb2fba0079b4da68fb2f.tar.gz
gentoo-851d560188616dd07a74fb2fba0079b4da68fb2f.tar.bz2
gentoo-851d560188616dd07a74fb2fba0079b4da68fb2f.zip
media-tv/plex-media-server: add 1.31.0.6654
Signed-off-by: Joe Kappus <joe@wt.gd> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/plex-media-server/Manifest3
-rw-r--r--media-tv/plex-media-server/plex-media-server-1.31.0.6654.ebuild84
2 files changed, 87 insertions, 0 deletions
diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest
index 6eaf225850d8..f31f18bbf3ad 100644
--- a/media-tv/plex-media-server/Manifest
+++ b/media-tv/plex-media-server/Manifest
@@ -12,3 +12,6 @@ DIST plexmediaserver_1.30.0.6486-629d58034_i386.deb 77346416 BLAKE2B f7a54046e09
DIST plexmediaserver_1.30.2.6563-3d4dc0cce_amd64.deb 85250976 BLAKE2B e7637733dc0e3c966e9609abfdefeb06b9985956fc8cffa58e5022a3e9e3924d186cf642c5b68a38340a99dcc0fa1619c91e564d69a4e7a7b5ae8633d6408d42 SHA512 c852ff8de3efbc06fcba6d5af3f7e68406cda8fe1e72b3954b3909dd83dfa39f973c2bc62e7e3a9a9b5b6169263af938c3564fe2d237c722eb3716cf5f01af52
DIST plexmediaserver_1.30.2.6563-3d4dc0cce_arm64.deb 74318740 BLAKE2B cc8b42b75aac0de511902ba22b6dcbe649ba3e8c919c9d2fa6baa876ed0e1279c19abed3172a6aec5713967324c3534feebd67e60489c85b8d13aaad7d89f818 SHA512 ce900b6442e77ecbfcd2bb88a89f900423bbb408e8f0600455cce78d28c07462431270e4b2f2f19763a75ef07ab11cfabd2c99bf3931bfaf60e112f3bb133532
DIST plexmediaserver_1.30.2.6563-3d4dc0cce_i386.deb 77862086 BLAKE2B dffabe49b1e556514272eb2be0b5eab4ba47277e08ffac8037904d77c564fb5dba477e21663b92b15013631a8ed319bf33396e70b075026cdbaa45bcde65c817 SHA512 7293d33ba658791307f5aa45a19d5f9a5d4288ce2b3509322b5ecb496f8b2e6436850ce3c23b722d7af775fc7732760b5db853c9429d3abc60050e5e590a780b
+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
diff --git a/media-tv/plex-media-server/plex-media-server-1.31.0.6654.ebuild b/media-tv/plex-media-server/plex-media-server-1.31.0.6654.ebuild
new file mode 100644
index 000000000000..f52c3af7faa0
--- /dev/null
+++ b/media-tv/plex-media-server/plex-media-server-1.31.0.6654.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}-02189b09f"
+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
+}