diff options
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.40.1.8227.ebuild | 91 |
2 files changed, 95 insertions, 0 deletions
diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest index 8393e37d31db..0d6158503a0e 100644 --- a/media-tv/plex-media-server/Manifest +++ b/media-tv/plex-media-server/Manifest @@ -14,3 +14,7 @@ DIST plexmediaserver_1.40.0.7998-c29d4c0c8_amd64.deb 81786462 BLAKE2B b24b666b5b DIST plexmediaserver_1.40.0.7998-c29d4c0c8_arm64.deb 74643478 BLAKE2B 4831b0dd0030e191221d5c084b0f2a40c6e0d44e148e44fd94bfc239236dcffc589929213455a3f7781f21f1ace52cb3bec5eeec5a1f3c682be1e348c0698b4a SHA512 d932e955323854897e7d9553c3630b984587c6ab7c2bb5042de20d7285785d3e17f718e0164a3d3d475a6d8474c383079463d1394747e1f00ce9fb3dd848fecd DIST plexmediaserver_1.40.0.7998-c29d4c0c8_armhf.deb 70547854 BLAKE2B c9fd1c4bb38a0fb471031457a586d1a59715fb3d66c75223f4af1d17b6e3576152202bb239aa65fb682dbefa83e652a4ba3011f6538a0682913d571b8d26f418 SHA512 766bd566a84a240af92353eb18f0ea5dc5d6b5f00667930b89d0afeffb19bd37482428dfdd8c5559b8a720514c7130fa35a92cf65f60f5edbba59e4d24e8ba82 DIST plexmediaserver_1.40.0.7998-c29d4c0c8_i386.deb 74085106 BLAKE2B eede6a7a9f316ead61a72901c5e262b9e84cf3b0dbe86eeecdac68b993e28ed55d496a09a8d20791fe6424862512e2c9aec772ea49fc7c3127624ccf4cb922d5 SHA512 e98aaca54592b7544c2cecc5c5049df07e8c1df0f97517184346d3b985a2d4ac34ff3d2df98ca8c4c0efcaf9750cd992a25b920f54e8c0327efddd677ccc8517 +DIST plexmediaserver_1.40.1.8227-c0dd5a73e_amd64.deb 81363214 BLAKE2B 85211d663ba536c08609e89afcdab6a9ecd3c8b39aa008bcb22af975d0a4fea518b978b5359c451c807392c734f4a73313ff81f4f02e02bf79edb00daf2a8e0f SHA512 411a4ff56fc99cccb1132c22209223e1f0287cfc2e41c2440494d41c7bd8394cf5f620ffbb4091a368ddb6ac621f369df63c76fa54bbf2716198bb32e6220ac4 +DIST plexmediaserver_1.40.1.8227-c0dd5a73e_arm64.deb 73578298 BLAKE2B c4afb9213521fe1a6279d6daeba3de625675477a8fdad302e52437236c09cad1c93136f8ec5101234821fc178af824c554eb2f6059baed9f4f360bb0e94234f4 SHA512 1a83482a79bebffcc02473104ccbbf94330e122a6ee0ba98f4df2902e5816b2a19c30a6242b8d69d92dea10224124db56c644301675d65fe6f2f1d2bf3235881 +DIST plexmediaserver_1.40.1.8227-c0dd5a73e_armhf.deb 70707730 BLAKE2B 67420c79609e10362072d382b472ce9bab4aebbf8b889fb7ca85b106264332d3f0b954318343d682623d493680f0c1908062225dec072300194e99f4b9c58828 SHA512 186443100732f2b6080fe674da4949b1e4a97de5c8cd8350cfe451fae28dfac49681014addb5d6406b218c2d925b113f308d2b389cfd5d1ec551a535269b9677 +DIST plexmediaserver_1.40.1.8227-c0dd5a73e_i386.deb 74304650 BLAKE2B f826ea8bfb17df3ca2e8767ba2704545a4f71c8d7425387b66aafcee4622b91d35aef1b85b443c5900f51df79e3b6005f4407dd8ca7ad71a2f853b0b78536f1d SHA512 06d5e2978131c06e579f3580534f51c43d04e8bb3a6f51fea52ba8a05d094e4ccc0f1aa162acd2c32ee4c451bfc7de084f14a009262efba0806b6aa883f991e6 diff --git a/media-tv/plex-media-server/plex-media-server-1.40.1.8227.ebuild b/media-tv/plex-media-server/plex-media-server-1.40.1.8227.ebuild new file mode 100644 index 000000000000..e59748c1aaff --- /dev/null +++ b/media-tv/plex-media-server/plex-media-server-1.40.1.8227.ebuild @@ -0,0 +1,91 @@ +# 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}-c0dd5a73e" +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 + ewarn "IMPORTANT: This version makes changes to the database which will require 1.31.2 or higher to start" + ewarn "Please also be patient when updating to this version, initial run may take time as database is upgraded" + ewarn "Full release announcement, including instructions for rollback: https://forums.plex.tv/t/plex-media-server/30447/612" + +} |