summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Kappus <joe@wt.gd>2023-06-06 22:00:22 -0400
committerJoonas Niilola <juippis@gentoo.org>2023-06-11 11:44:29 +0300
commit184ba0719d823cc521247477b7634c13ed3dbe98 (patch)
treeae26b26729f797c19f0f97331b164c7a97d0d25b /media-tv
parentsci-geosciences/josm-bin: version bump to 18746 (diff)
downloadgentoo-184ba0719d823cc521247477b7634c13ed3dbe98.tar.gz
gentoo-184ba0719d823cc521247477b7634c13ed3dbe98.tar.bz2
gentoo-184ba0719d823cc521247477b7634c13ed3dbe98.zip
media-tv/plex-media-server: add 1.32.3.7162
Closes: https://bugs.gentoo.org/907919 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.32.3.7162.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 8d64ae4ec750..72ab76b4961d 100644
--- a/media-tv/plex-media-server/Manifest
+++ b/media-tv/plex-media-server/Manifest
@@ -13,3 +13,7 @@ DIST plexmediaserver_1.32.2.7100-248a2daf0_amd64.deb 75591838 BLAKE2B 6af8930de7
DIST plexmediaserver_1.32.2.7100-248a2daf0_arm64.deb 70003080 BLAKE2B 11831404da892bf319cdd4d45c07b87ffc776692f658c3899add4c204fb1ea77bcc4e85e8533c25f77db8cd095a47a0519bf21f9835e4fb212be92ab4f01631f SHA512 703baba12aed3543624209b959c563bd74d782d88c9e45b95e9945d1276b4f853bcef7a126a226472115b974db2de8762777fa00cc8d7a00aa52d872a3d1ed6d
DIST plexmediaserver_1.32.2.7100-248a2daf0_armhf.deb 69887138 BLAKE2B 80230ab44536f8ddf96b3ea2be2be6e7d892f046ab211ba9730335fcb29c259f396903be9d8744ce694ee4ce36fdaf113aecf8bdadb86be4504dbc37335a9697 SHA512 f7f58f317f5f5b095ed2472799837d85cb663046c1bc827eea2d631c15656dd191743dd5b11c85ff09b303c34862da5c43a0930d48748984456f2e1e94857499
DIST plexmediaserver_1.32.2.7100-248a2daf0_i386.deb 73479392 BLAKE2B 168e504e188806882ade7645de43430160e451eb8cf4b6ff1d5f13050e5dbeec4a0a4f603d8571ce52d94ae1ddae36fac6ed2f1b613d001bd77d1b33810e80bf SHA512 5603d65727cecfbdbaaadaf8660fb4b23a578fcff8894c9d19d1b89f258bcaf6667027a6a58eb308c835b95783817db1844b907d743809a94eab1d24a6eaed0f
+DIST plexmediaserver_1.32.3.7162-b0a36929b_amd64.deb 75401580 BLAKE2B ef992d2f4f8da4b87cfe99d20c04b4f81a83574a90d9a0b1b202fe8b13efa1b51e5a6cdcfd7ecb14601283c97b9a0ea809183a02611ee1905e0e3957733e5f59 SHA512 e33e48f347378e76484c52494b7e18448d25ffe23e3aed58aae5be4d14e23fb3cfe328f011e7b7623b4adddf09df4f5e101b7d843d9d3f686df02b11aaff8693
+DIST plexmediaserver_1.32.3.7162-b0a36929b_arm64.deb 69821460 BLAKE2B 516e2c3e6f058d36067b998d730f4fd51509a41ed8c0aa950c5eca38dbc3bda123c4c4b73ac7f9351c516ade07f49fbbb9808413a9ab51333f96ee651b8c818a SHA512 650e90044824c96e1c68f2b31b431d9103f76e2f61884947b1f8dc25be20313e90ac6f386236bcca3879059a4e993036d3a929622973aeb817dd0ce9e2e77795
+DIST plexmediaserver_1.32.3.7162-b0a36929b_armhf.deb 70132556 BLAKE2B d0189553f40bf08b6f6e0bc7470b3112b02a3884b1262645ad82dc2752b9ed73ef1a98343a48b981527da8c6bbdef5ccabe713876221c45290760f7ff1d8ec86 SHA512 48b8b7940a9c4a9b2204452fa6eab6bcc8018e22c872589e5ba01c7f98e36dbd3d4fc828545f4914fc14e5d419c0e911bfd56f7389999d9441005d301c449e13
+DIST plexmediaserver_1.32.3.7162-b0a36929b_i386.deb 73382708 BLAKE2B 526fd22ae70fa1e477389d5fc1fa67f9b4ca684794950284dd8f7bc426bcec3707ec1a32dfbd94695d71da9aaba0bff159d68ad28c3e36d0b38bbf7b4426794e SHA512 dd711fb49ceb3895639084601145cd5031714ac7ca00dd792d22d7973ddf431fc99302429cb2e71b2d6890d32e47884d06da2347ecaa46984430a038ce4b12e0
diff --git a/media-tv/plex-media-server/plex-media-server-1.32.3.7162.ebuild b/media-tv/plex-media-server/plex-media-server-1.32.3.7162.ebuild
new file mode 100644
index 000000000000..c9528f265c1f
--- /dev/null
+++ b/media-tv/plex-media-server/plex-media-server-1.32.3.7162.ebuild
@@ -0,0 +1,85 @@
+# 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}-b0a36929b"
+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
+}