diff options
author | Joe Kappus <joe@wt.gd> | 2024-07-10 15:52:57 -0400 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2024-07-21 10:35:57 +0200 |
commit | 30e61f616770d82f5c725df15e58320b2503933f (patch) | |
tree | c05d1d9f7d0944dc9b2adcd7db0cadcfcb43f888 /media-tv | |
parent | app-i18n/ibus-m17n: new upstream release (diff) | |
download | gentoo-30e61f616770d82f5c725df15e58320b2503933f.tar.gz gentoo-30e61f616770d82f5c725df15e58320b2503933f.tar.bz2 gentoo-30e61f616770d82f5c725df15e58320b2503933f.zip |
media-tv/plex-media-server: add 1.40.4.8679
Signed-off-by: Joe Kappus <joe@wt.gd>
Closes: https://github.com/gentoo/gentoo/pull/37514
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/plex-media-server/Manifest | 4 | ||||
-rw-r--r-- | media-tv/plex-media-server/plex-media-server-1.40.4.8679.ebuild | 85 |
2 files changed, 89 insertions, 0 deletions
diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest index 3b9c694401ab..ba9c5986a979 100644 --- a/media-tv/plex-media-server/Manifest +++ b/media-tv/plex-media-server/Manifest @@ -6,3 +6,7 @@ DIST plexmediaserver_1.40.3.8555-fef15d30c_amd64.deb 81659190 BLAKE2B 021322da34 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 +DIST plexmediaserver_1.40.4.8679-424562606_amd64.deb 81712638 BLAKE2B 9785f29c07e9d386a87f076703695c80e46c455a1eb9eb90dca33ce15c2707f774f729965471017e529dee6a51ed9e0cf0df98ebc3dedf478dd3d16da94a7f91 SHA512 58ef48a78e79047dbc00866959f1df15ee36cec445e3b88ee69b623636f1d6bb10001587e13d13851a3c24f298e2d12bb7da6946cf6b99b9c5fb4564e83ca201 +DIST plexmediaserver_1.40.4.8679-424562606_arm64.deb 73952850 BLAKE2B 1df7cb2b29aae0698947ecc8c6a07c848ae0daa3880a7256c79c043692922c10ef838646c0e69679948f5bfee3b4cd025f327719d959f87f68d77f93bc8898c5 SHA512 6d6285a806367324df980f6eed1036726e8ee779956c11035ed01edb908816f4713483b803406c4bc306c43432210c3c74ae8aa8361930954d1c61810ce639b6 +DIST plexmediaserver_1.40.4.8679-424562606_armhf.deb 74224106 BLAKE2B dd48f29d8e73544d0ab2076108a3cc50bbd63537b61c251041ae69bf60457baecd5333fb52315c7cd5b2a4c4d459f0f8d0d307d4ed9650908390f391d51fccb0 SHA512 247bab93068639ae6213c11d6c8ca598666bca73f7a2a51463665c00f471f9fe9523bdfeeee6fbcce3d2a50cd50dec2e5070903154490719e7814f34fe87111e +DIST plexmediaserver_1.40.4.8679-424562606_i386.deb 74868902 BLAKE2B cde6382b33a7c7d9c2d30df05251d0f15263e7a530561fe22b484526bec94f0b1456d757c30b3c336b7b44ad5bfd8596e655a2312260404d05beba2e39276ab0 SHA512 511e6449a15736c5ce2fa067f4574dd2c36bbd1f41bd10854127cdc111bc0916370486448324a9e23654c7a79c13159351470a0fc11e86c3559300e5b2f23b1e diff --git a/media-tv/plex-media-server/plex-media-server-1.40.4.8679.ebuild b/media-tv/plex-media-server/plex-media-server-1.40.4.8679.ebuild new file mode 100644 index 000000000000..b5ba18cdfb50 --- /dev/null +++ b/media-tv/plex-media-server/plex-media-server-1.40.4.8679.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}-424562606" +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 +} |