diff options
author | Joe Kappus <joe@wt.gd> | 2023-09-26 15:16:40 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-10-01 08:32:33 +0100 |
commit | 2673ee23ca4699f4de201f7b2184f5af97a2874a (patch) | |
tree | 65dc354b904c4d3c21baeef72fdc230cafc4a512 /media-tv/plex-media-server | |
parent | app-editors/neovim: remove unused patch (diff) | |
download | gentoo-2673ee23ca4699f4de201f7b2184f5af97a2874a.tar.gz gentoo-2673ee23ca4699f4de201f7b2184f5af97a2874a.tar.bz2 gentoo-2673ee23ca4699f4de201f7b2184f5af97a2874a.zip |
media-tv/plex-media-server: add 1.32.5.7516
Also added note about upcoming Hetzner ban.
Signed-off-by: Joe Kappus <joe@wt.gd>
Closes: https://github.com/gentoo/gentoo/pull/32796
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-tv/plex-media-server')
-rw-r--r-- | media-tv/plex-media-server/Manifest | 4 | ||||
-rw-r--r-- | media-tv/plex-media-server/plex-media-server-1.32.5.7516.ebuild | 90 |
2 files changed, 94 insertions, 0 deletions
diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest index 7d8e66f06fc1..918db81cbc50 100644 --- a/media-tv/plex-media-server/Manifest +++ b/media-tv/plex-media-server/Manifest @@ -21,3 +21,7 @@ DIST plexmediaserver_1.32.5.7349-8f4248874_amd64.deb 76029190 BLAKE2B 7ceb9e9580 DIST plexmediaserver_1.32.5.7349-8f4248874_arm64.deb 70330842 BLAKE2B a7d2d7f2e774e4d96ff8bd4eb2d27ade07e13c974fc3be4735468d6e60fe4a4bebf3637dfb2802c7ffecfc9bf207e2f7de9e58e4ec6a8ddd6828c60ffb869bf9 SHA512 540ad4cfae98c1e5d258d9a6b2082544683ad205919cfcd4bac8acccdab73220107ababd17f6df7d8f13d4544f11edc7e2a1273b1f8b113a64d054b19d82430c DIST plexmediaserver_1.32.5.7349-8f4248874_armhf.deb 70791932 BLAKE2B 6df9dae2f00885f55e46113a3aeec019fe5368892297774c548f1772864a46ae83ea64dd98c2048c4e63073f81a1907059d6500305a28a2944809d4ac64ace0c SHA512 4a4170084f3fd62fcb289e6327cb260d48f8d5bf22bac7463f4f596a18cf41398707146b8fab5f72b76611cdec01e93dd061e221ecd5b83a43feb8f6abd16eb1 DIST plexmediaserver_1.32.5.7349-8f4248874_i386.deb 74146346 BLAKE2B 064d3537c68630b129ea8e249017b264e259d7d761c8bc836595c5558cb38ed57e2d57e8d5d8e87da09ecbe646bc2bf0187a8f0e3f3897f13e4b8dfd72b7e8eb SHA512 39949f185899ee05117e90554f98a25ad2f296c554aa06c5dbe1306f8168ae467be67990bd2d2b98599fb0d65bdb2183d83aec37301189a3404b6ee52142d230 +DIST plexmediaserver_1.32.5.7516-8f4248874_amd64.deb 76036002 BLAKE2B 1abf57b537df6f5021295685c11a78243b62f32d984f3a26414ab753e52ea1330bc87ec0fdd15bdfe9cae88bd766ede529ebadeb90b4bab272aca5cda7e2f111 SHA512 5eff4182623bdc8d0478150d11c966f709f347771126d5af30a48114c0f1295994bb4d12ba36118b528a626f3054366446eb9fdb892854fc95c0d07e71600e72 +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 diff --git a/media-tv/plex-media-server/plex-media-server-1.32.5.7516.ebuild b/media-tv/plex-media-server/plex-media-server-1.32.5.7516.ebuild new file mode 100644 index 000000000000..1c51256eb354 --- /dev/null +++ b/media-tv/plex-media-server/plex-media-server-1.32.5.7516.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}-8f4248874" +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" +} |