diff options
author | Luigi 'Comio' Mantellini <luigi.mantellini@gmail.com> | 2022-03-28 10:02:18 +0200 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-03-29 06:50:19 -0400 |
commit | 0361ed896d32e5d4a4f8cb9d97d62301ffdc4ad0 (patch) | |
tree | c0bca22d99c0d7a25b6c8d403825f9559fbbf370 /media-tv/plex-media-server/plex-media-server-1.25.8.5663.ebuild | |
parent | dev-util/pycharm-professional: add 2021.3.3 (diff) | |
download | gentoo-0361ed896d32e5d4a4f8cb9d97d62301ffdc4ad0.tar.gz gentoo-0361ed896d32e5d4a4f8cb9d97d62301ffdc4ad0.tar.bz2 gentoo-0361ed896d32e5d4a4f8cb9d97d62301ffdc4ad0.zip |
media-tv/plex-media-server: Bump v1.25.8.5663
See https://forums.plex.tv/t/plex-media-server/30447/494
Closes: https://bugs.gentoo.org/836309
Signed-off-by: Luigi Mantellini <luigi.mantellini+gentoo@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24787
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-tv/plex-media-server/plex-media-server-1.25.8.5663.ebuild')
-rw-r--r-- | media-tv/plex-media-server/plex-media-server-1.25.8.5663.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/media-tv/plex-media-server/plex-media-server-1.25.8.5663.ebuild b/media-tv/plex-media-server/plex-media-server-1.25.8.5663.ebuild new file mode 100644 index 000000000000..cc1063965958 --- /dev/null +++ b/media-tv/plex-media-server/plex-media-server-1.25.8.5663.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit readme.gentoo-r1 systemd unpacker + +MY_PV="${PV}-e071c3d62" +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 ) + x86? ( ${MY_URI}/${MY_PV}/debian/plexmediaserver_${MY_PV}_i386.deb )" +S="${WORKDIR}" + +LICENSE="Plex" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="mirror bindist" + +DEPEND=" + acct-group/plex + acct-user/plex" +RDEPEND="${DEPEND}" + +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" +) + +src_install() { + # Remove Debian specific files + rm -r "usr/share/doc" || die + + # Add startup wrapper + dosbin "${FILESDIR}/start_pms" + + # Add user config file + mkdir -p "${ED}/etc/default" || die + cp usr/lib/plexmediaserver/lib/plexmediaserver.default "${ED}"/etc/default/plexmediaserver || 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 + + newinitd usr/lib/plexmediaserver/lib/plexmediaserver.init "${PN}" + + systemd_dounit "${ED}"/usr/lib/plexmediaserver/lib/plexmediaserver.service + keepdir /var/lib/plexmediaserver + + # 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 +} |