summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Kappus <joe@wt.gd>2023-10-31 13:43:53 -0400
committerYixun Lan <dlan@gentoo.org>2023-11-09 23:50:57 +0000
commitb922be0b85246ac15aa001ceee1ed4f9639183ab (patch)
tree2c2db76e707ad1837a69e0715c68e28a63dbe996 /media-tv
parentmedia-libs/shaderc: add 2023.7 (diff)
downloadgentoo-b922be0b85246ac15aa001ceee1ed4f9639183ab.tar.gz
gentoo-b922be0b85246ac15aa001ceee1ed4f9639183ab.tar.bz2
gentoo-b922be0b85246ac15aa001ceee1ed4f9639183ab.zip
media-tv/plex-media-server: add 1.32.7.7621
Closes: https://github.com/gentoo/gentoo/pull/33352 Signed-off-by: Joe Kappus <joe@wt.gd> Signed-off-by: Yixun Lan <dlan@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.7.7621.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 918db81cbc50..c8787e4fce2b 100644
--- a/media-tv/plex-media-server/Manifest
+++ b/media-tv/plex-media-server/Manifest
@@ -25,3 +25,7 @@ DIST plexmediaserver_1.32.5.7516-8f4248874_amd64.deb 76036002 BLAKE2B 1abf57b537
DIST plexmediaserver_1.32.5.7516-8f4248874_arm64.deb 70352660 BLAKE2B d1adebea17508a931997ea19ca56763b3978b3d5d994b7ea3c91529efe5635102a280d112f0228380961309843416a38341338fbe21582ac68925c7d3d16e2eb SHA512 9f31d36d2e3d2fa73e44e6da5e575a17ad7185dfde3db0d8533836e579ce620c0a20988f471ca66e231fefc473049c7a5cd55ac3daac6e2487d176b3e8435de1
DIST plexmediaserver_1.32.5.7516-8f4248874_armhf.deb 70787042 BLAKE2B 996374774d4935e059ffd580c1e29d32b2e1f9d617bf914d58ee14907702497b9359deb5332c72879b1d038a7ff0dccf3e60b9b5430806b2cb65f7d9c245631b SHA512 fb12057783a56a4eefa801df0474b16e6942c8f01e22d78682c40775301ef5c87dc8b18ecf4ec822cc419e10f762c300288b7bdaaa4534d4c518e344127df5a7
DIST plexmediaserver_1.32.5.7516-8f4248874_i386.deb 74134614 BLAKE2B 5aac747596abc9c121fc024bf92fbd022b5df6432aa61363be270f53a3d58a5598c9dc1617b137f593a2a42c978800dd63c8b8373fc54fea289713add5b7992c SHA512 d36a562ef6b93178832f0c64e59807274864eb67de36755750baa12b93d2be33b482c573cbde88f5abca44e8de6e3550c4c1b6aa376c237d0d6c939a90df64c4
+DIST plexmediaserver_1.32.7.7621-871adbd44_amd64.deb 75711676 BLAKE2B 4ce4e51ec96b9ab0fa2f1d297aaf13e0df0e93f2425e31e8b220a834227c55dba5d548ec85ba5db790589f1d13397b9eb3b4bf6a519040d0e99c492a8587bb57 SHA512 c7c1e321a00d8ab0cf3075e0ac14983074cb27a312865be0bd9a7b74dae5bfdb2b988525d7219f6a92258f0f4d2b2417d221f16eaf479b6b3ec29e78708f0b95
+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
diff --git a/media-tv/plex-media-server/plex-media-server-1.32.7.7621.ebuild b/media-tv/plex-media-server/plex-media-server-1.32.7.7621.ebuild
new file mode 100644
index 000000000000..ee4a5ebf0e1f
--- /dev/null
+++ b/media-tv/plex-media-server/plex-media-server-1.32.7.7621.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}-871adbd44"
+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 will begin blocking servers"
+ einfo "hosted at Hetzner. More information:"
+ einfo "https://forums.plex.tv/t/not-allowed-to-use-hetzner/853570"
+}