summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Kappus <joe@wt.gd>2023-04-22 17:39:40 -0400
committerSam James <sam@gentoo.org>2023-04-25 03:41:27 +0100
commit201fb53b536295008190ca600206358f7d05bc59 (patch)
tree46f1ed854614d237900d5adba33a1ee51048a246 /media-tv/plex-media-server
parentwww-apps/cgit: Create cache directory at runtime (diff)
downloadgentoo-201fb53b536295008190ca600206358f7d05bc59.tar.gz
gentoo-201fb53b536295008190ca600206358f7d05bc59.tar.bz2
gentoo-201fb53b536295008190ca600206358f7d05bc59.zip
media-tv/plex-media-server: add 1.32.0.6973
Also adding arm (armhf) build. Signed-off-by: Joe Kappus <joe@wt.gd> Closes: https://github.com/gentoo/gentoo/pull/30709 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-tv/plex-media-server')
-rw-r--r--media-tv/plex-media-server/Manifest4
-rw-r--r--media-tv/plex-media-server/plex-media-server-1.32.0.6973.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 fae0d1dce6dd..f4515a5f8edf 100644
--- a/media-tv/plex-media-server/Manifest
+++ b/media-tv/plex-media-server/Manifest
@@ -7,3 +7,7 @@ DIST plexmediaserver_1.31.3.6868-28fc46b27_i386.deb 73289950 BLAKE2B 963a2c8bbaf
DIST plexmediaserver_1.32.0.6918-6f393eda1_amd64.deb 81102136 BLAKE2B 309f553877e3e24b8cc0ac62cc50e9c1aee594d31019b7484c10bd3a323c0c0711fb4bcebcacf16f92dabf25b40acd2aa12c9cb830316a6354dcc4f523504980 SHA512 8a4ef0534bad5c73a5044d23cf389a05d73a070b65751090c29ec454649b128b397cec12f2b03b92cdf4d93b0bd0aaa7e308b83bb77e70a2718c3fd6f970592f
DIST plexmediaserver_1.32.0.6918-6f393eda1_arm64.deb 69869182 BLAKE2B a22f62b36e5909e674b5056147c527a6245315d437949505f78461492a78c23e0e8d002ad73478398fdb8516fff446bef9c5c359eb6e1137f60c9ad2b327cfdd SHA512 8bf991dc9698ba0abdc96a914e8a5570f01339b0e28c38dc6070fcc258a0c35105aabdf4696e7c881dea474bc1a734e9776b04b992a3ec2346e1773b564a55c9
DIST plexmediaserver_1.32.0.6918-6f393eda1_i386.deb 73536996 BLAKE2B 285b0f4e5b236b9e471d48e56f40d91b32fe017a77832b4ea52eb118d564c25fe32b387ee2ce9b821c87586a0e7728409d32bd0ac9382a50ffdee98f348d9eda SHA512 d09ef035fa68488749312cb03173bbfb9440a3a6a3bc1bc414e470734579cdc3b73aa27a85d8f98c97fc8aaf04ed0ad0462015adf4858543aeeca848d16038f3
+DIST plexmediaserver_1.32.0.6973-a787c5a8e_amd64.deb 81125330 BLAKE2B bb46c9c9b0156c4d0998da6a8f7f0d134b06c7782f7302755a105bdfc6bc2d8cc8ec080c5848ce97f98c5665dc1f7689d9ad9026c6d620e1ce2585ccf66e4357 SHA512 0a18eb71a66170b350897adfbd62fc1a88cccb9a1df667b89e5d412367894a0e95a438c73d6f4e114e088e7bfb3b3b202542c6c1b3a9a9353040d7768ba5b9ea
+DIST plexmediaserver_1.32.0.6973-a787c5a8e_arm64.deb 69868446 BLAKE2B 0f2aff227937dcfb3d4d80010920f44934072a522b3b2edf60c9ddb2078e01ed2e886a551a00913708f4204c418f258be27edd1616a254f59f22b8ad58949d19 SHA512 ee4a349d96bc9834e6054482cc83e0b3a9f0db589b8348856b73cd0e7cee0670c4bfcbbd0fb0ecb999cf6f098012ac99597e24ce30db048d3b05dc21e7c62b63
+DIST plexmediaserver_1.32.0.6973-a787c5a8e_armhf.deb 70229440 BLAKE2B 2aecd1717be97af5f2930ef8730eab85b96d9f0ef23dabdedd631c4e6d3633e4c3f8ebdf974da63a806fba5162ea3fa57cf5c4a8cbe5ae0de5e2e5227c8facd4 SHA512 bc17b0f374936dae602a41e169c6ab70ccee0d4d7d9f9210dd947b042c1f0627c0a35aa0a54f1e43f8e2edf5043a3cc743b479cb24b10aaad944b05423cf643a
+DIST plexmediaserver_1.32.0.6973-a787c5a8e_i386.deb 73550946 BLAKE2B 50b4cc286c0f9067ffa40c54a7fb6a3a9dc2af0edbaa02c19a984473d72ecc97b3c7e577f91818b4d7e6c9bb6d13cf9725709d0f71a3b6dcf932d96b2c0a6ec9 SHA512 e28d26253c24837da543af01c9f4fec9e9abadc59de0d2f186aed702e91a723680f49342194517868458ea2a913785c77b0d5676c1bd5bbcdba108db79a89803
diff --git a/media-tv/plex-media-server/plex-media-server-1.32.0.6973.ebuild b/media-tv/plex-media-server/plex-media-server-1.32.0.6973.ebuild
new file mode 100644
index 000000000000..9226e7be1788
--- /dev/null
+++ b/media-tv/plex-media-server/plex-media-server-1.32.0.6973.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}-a787c5a8e"
+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
+}