summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Kappus <joe@wt.gd>2024-06-14 06:03:31 -0400
committerSam James <sam@gentoo.org>2024-07-04 02:14:46 +0100
commit8644bb57f3543e4b76018a34f077575066aa465d (patch)
tree76d86af4054db358c7142c26b0c648b0cf12850f /media-tv
parentdev-lang/rust: add patch to disable setting CMAKE_ASM_COMPILER (diff)
downloadgentoo-8644bb57f3543e4b76018a34f077575066aa465d.tar.gz
gentoo-8644bb57f3543e4b76018a34f077575066aa465d.tar.bz2
gentoo-8644bb57f3543e4b76018a34f077575066aa465d.zip
media-tv/plex-media-server: add 1.40.3.8555
Signed-off-by: Joe Kappus <joe@wt.gd> Closes: https://github.com/gentoo/gentoo/pull/37153 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.40.3.8555.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 2877e38fb799..3b9c694401ab 100644
--- a/media-tv/plex-media-server/Manifest
+++ b/media-tv/plex-media-server/Manifest
@@ -2,3 +2,7 @@ DIST plexmediaserver_1.40.2.8395-c67dce28e_amd64.deb 82029834 BLAKE2B 3f0acd1d8d
DIST plexmediaserver_1.40.2.8395-c67dce28e_arm64.deb 73766282 BLAKE2B d0ddf6718465aeae596c1a8391962b576beceb4cfdb3a23eee1bf18585e8fb42c0409ef3fbc43fd09a8977a1fa9143ea20fa8432accfc6e4bda7622bed59bfaf SHA512 58269cba44aaecb7c7720517bcdc3baee2cf42b265c6c910066459cfb462f9ccd5dd88fe2fa43bc19954782a5a6f4525d7436158a0662b80ce422cc7896f0922
DIST plexmediaserver_1.40.2.8395-c67dce28e_armhf.deb 70899814 BLAKE2B 87cb5cd21ed08f11609063a1836c51413193bec3a0fe4ba81212fd8383136805c591875ad42d170f08f41e986c50679841db6b4ba7517b9e78a01af7f4a5b8d5 SHA512 744d19fd708ab8e77fbeac15ad52069105ec92b7c391b1452e92417adaf7bfbb6d70d6fcabc556ea5467631433db08bbfea83fe7fa4e0b1462b473f32d6b91d6
DIST plexmediaserver_1.40.2.8395-c67dce28e_i386.deb 74590626 BLAKE2B fa42e617a02c3403a7fc2d45bb6c7e56a78ebfcf7bc34f45da2cc67a912a163001ef2f87383abde7d5de51e74bbcd439abd12e866f8106d4e7fd5a67e0172755 SHA512 89a6905b662a83e0af9872a1cf801ba1fa9b08976a606ef64fdee61f49709f0c5b4e3d2acd6d9e0e4e7605a16401902f5282ecb1a39f47833591dc054d3dedc2
+DIST plexmediaserver_1.40.3.8555-fef15d30c_amd64.deb 81659190 BLAKE2B 021322da3442e4288f6fd4b2cb9081073a9fdbce4039a6c518a1357c294369cbd571b2e51284cbd67e427118448919a189be65455e53378d2a5ec0fae9b0e300 SHA512 145f90d31d6384358b06d0fc9b0d7712435607b8806e16b84e8110190fe192ac7e86da4730d1de33ea824dd8c79026f69d315906e1a0ac3e418ba6ab8a862e1c
+DIST plexmediaserver_1.40.3.8555-fef15d30c_arm64.deb 73914470 BLAKE2B 901386536c2540230217fac7cbb37566fde4e5f809f4e1d0fc381a44974cad5ae13dbc7a9e7af62e9b138b8e4d40d726afef7c5813f2eef846e21e372f2152e1 SHA512 c15a6a454a0c0d09c75e02db93f6eec45d7127bfb38354bd565b5b83ec133dd8e32413a079a91d623987381e0eac02f5c0c43ff2b0cf8e08343699d70ceabf05
+DIST plexmediaserver_1.40.3.8555-fef15d30c_armhf.deb 73976334 BLAKE2B 4953ac4bc1e9138795c0abd0c04e9f83f4243d607bdcd40ba71ef8cbc646ffbc73139317f1218a499bc0e2da010ec4fe567da8fff20ceac0adee906e5012732e SHA512 a357385aa0424dc3b91299381eaa86a4dcc117009d2aab4cc6c079755a981c2de3ea23134400adaa7165f0621ae5679c4e33774c12aa0875ab32086d2de32e79
+DIST plexmediaserver_1.40.3.8555-fef15d30c_i386.deb 74919610 BLAKE2B 2303ebff407951a25442b26b812c45b535a5ad63b5988ecb63227e27335218c6972593144332308ba751d9ea9f4636a109fba5ec73b5aee36b0c0880ffaa0558 SHA512 2322db24d4dd1744bc42d1b94dda02477a328ae0cab06367031ede4a860f481b78358270c2e923e5fa3b5662fe5b546d11a964dec98582e3631159f3864121a2
diff --git a/media-tv/plex-media-server/plex-media-server-1.40.3.8555.ebuild b/media-tv/plex-media-server/plex-media-server-1.40.3.8555.ebuild
new file mode 100644
index 000000000000..9647666c641b
--- /dev/null
+++ b/media-tv/plex-media-server/plex-media-server-1.40.3.8555.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}-fef15d30c"
+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
+}