From d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 15 Jun 2021 14:57:03 +0100 Subject: gentoo resync : 15.06.2021 --- media-tv/Manifest.gz | Bin 3765 -> 3933 bytes media-tv/mythtv/Manifest | 2 + media-tv/mythtv/mythtv-31.0_p20210606.ebuild | 435 +++++++++++++++++++++ media-tv/plex-media-server/Manifest | 12 + media-tv/plex-media-server/files/80plexmediaserver | 1 + media-tv/plex-media-server/files/README.gentoo | 9 + .../files/plex-media-server.conf.d | 7 + .../files/plex-media-server.init.d | 16 + media-tv/plex-media-server/files/start_pms | 51 +++ media-tv/plex-media-server/metadata.xml | 19 + .../plex-media-server-1.23.1.4602.ebuild | 76 ++++ .../plex-media-server-1.23.2.4625.ebuild | 76 ++++ 12 files changed, 704 insertions(+) create mode 100644 media-tv/mythtv/mythtv-31.0_p20210606.ebuild create mode 100644 media-tv/plex-media-server/Manifest create mode 100644 media-tv/plex-media-server/files/80plexmediaserver create mode 100644 media-tv/plex-media-server/files/README.gentoo create mode 100644 media-tv/plex-media-server/files/plex-media-server.conf.d create mode 100644 media-tv/plex-media-server/files/plex-media-server.init.d create mode 100644 media-tv/plex-media-server/files/start_pms create mode 100644 media-tv/plex-media-server/metadata.xml create mode 100644 media-tv/plex-media-server/plex-media-server-1.23.1.4602.ebuild create mode 100644 media-tv/plex-media-server/plex-media-server-1.23.2.4625.ebuild (limited to 'media-tv') diff --git a/media-tv/Manifest.gz b/media-tv/Manifest.gz index 242c1766762c..778234db2af5 100644 Binary files a/media-tv/Manifest.gz and b/media-tv/Manifest.gz differ diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest index 20dc764fa402..e59b5665fa22 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -11,6 +11,8 @@ AUX mythtv.logrotate.d-r4 235 BLAKE2B 4f6df360f5191aaf4a2b55bd3edc7bc4aab92c46db AUX xinitrc-r1 234 BLAKE2B 0227ea065f1c43e1b2f1583bcbc798db76e9a08d345bbd8ed8837a6ba424b187c814e3ff0d7690d2d9f7a7617f4fbcce20df926e43bc6e89aec3e352aab6de8f SHA512 885adfe395fe553f6d5cf518856be7be9a6bf6073888f8e055271ed7c3d9ad85a162e9e9ff95a68e54047948ac280796c69ef55d0b4e549eb0beabbf0fec1188 DIST mythtv-31.0.tar.gz 102552136 BLAKE2B b09b41230eb2cae19d770c3cc59151863e0a56e95a86627473d52613e62f0acf3bd0c4bb37afb340ab874c222899f9d3c219ded470785d27960db9b39d784ceb SHA512 d53817231409934ef37d12739c38cf6936f04f816b0ba1c9738ce99b5b4ff387c70b683ccd84f649ff2f74992b2158829f5f1d1ffe06c8768da1922b90439f6e DIST mythtv-31.0_p20210225.tar.gz 102623768 BLAKE2B 560d3e08abb7bacbb58499a541f0d96a7b7813deb74d7e7692625dfdb09c5ec126e3f5fd014f7bd6c0640e52dd62b5bab87db40426deb9768d6de1d84b9c0d59 SHA512 832fab6d0094e43f0601485d5ca1249d95a8e293cd5bfe53208c482a43ff19396a435fa7c63c21f728fdc47fc55cb135eb766140f67ec60114965c83500e99e8 +DIST mythtv-31.0_p20210606.tar.gz 102637509 BLAKE2B c915d8ac1ade57bddfb56e796796385caff1b5d52967bc24b0719dea89e7e73ed0ee4f878f68e166b8d808b1c4413f1534a1e91e313cd6ece25515bcc4f2d378 SHA512 24c678b0a349259603527520643804287e316376dc3cb56686cdead010a98823769b906e93f61729323a38f5a270e39913ed91ef518889bbfedaced5b5d1b618 EBUILD mythtv-31.0-r5.ebuild 12344 BLAKE2B 614e5a4b0fda18d861ef3555a69c9af7ca0bbe1bdf2c3611d35c7f04667ad8ef38f6d2d3d3ef751ef4c1538a3937ab236ffa439d8c94b10bc6e4b480ebb6e721 SHA512 ca865900a5df068706f55561b9ebe2023bab5fe223b3defa88979c284693f8c0d154a0ed32bcdb14feb251e9f0d45df286e0a604a33712511596f57ed52d0e5e EBUILD mythtv-31.0_p20210225.ebuild 12451 BLAKE2B 16117b87fe94de5a84f6b574d932916e789c049d29590d5fc467d98f2cb68dec08098b3053338f47eee9f151db78eb270fa1ea6ed97978c4c667c64488ed34ad SHA512 a7a1ba693dec2d5ef4f2f8db13ec72575210bbb1c26ff0e8ae08b55566bd776c1133fd2a564c13455f8c7e7a1be699eaf3933c3f2d651da98a0fd1286237b15d +EBUILD mythtv-31.0_p20210606.ebuild 12453 BLAKE2B 7e8e7f90e46b81e73fa08b74b2c06324153865726087dbfd3b10740328992058d42d01ba13dc7674c203a887d77ed80efa319840f456d3c66ad876116403eb5f SHA512 8cb63a22e635134665ddfd3d7175a99b071a09be6645dc930b83319cf10b4f5ee190d6cb14b27e0dc16121fa290b2e40056ee3da6e5f265f49ecf4289b2191e6 MISC metadata.xml 2238 BLAKE2B 24444a3132c3eec819a11a2994669f8fb758bb3f62c2605d9fc5ccd9fedf679f8a841322c1250eeed32d86acd0b79d1f186c754dca89f9d93e07ba2f9c7f1e86 SHA512 220828ae331a2d6bcc1b92e88d9bfa82ab714b8ba737099a0b6807c05ec8102878491d372b31cbdbb7fc5ded871dd7deb162a636e1fbe540e2dcab7d80000a36 diff --git a/media-tv/mythtv/mythtv-31.0_p20210606.ebuild b/media-tv/mythtv/mythtv-31.0_p20210606.ebuild new file mode 100644 index 000000000000..33aaa5252e24 --- /dev/null +++ b/media-tv/mythtv/mythtv-31.0_p20210606.ebuild @@ -0,0 +1,435 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit eutils flag-o-matic python-any-r1 qmake-utils readme.gentoo-r1 systemd user-info + +MY_COMMIT="3162473370b31c749e8417b1b19fe6dc2186cb95" + +DESCRIPTION="Open Source DVR and media center hub" +HOMEPAGE="https://www.mythtv.org https://github.com/MythTV/mythtv" +if [[ $(ver_cut 3) == "p" ]] ; then + SRC_URI="https://github.com/MythTV/mythtv/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" + # mythtv and mythplugins are separate builds in the github MythTV project + S="${WORKDIR}/mythtv-${MY_COMMIT}/mythtv" +else + SRC_URI="https://github.com/MythTV/mythtv/archive/v${PV}.tar.gz -> ${P}.tar.gz" + # mythtv and mythplugins are separate builds in the github mythtv project + S="${WORKDIR}/${P}/mythtv" +fi +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-2+" +SLOT="0" + +IUSE_INPUT_DEVICES="input_devices_joystick" +IUSE_VIDEO_CAPTURE_DEVICES="v4l ivtv ieee1394 hdpvr hdhomerun vbox ceton" +IUSE="alsa altivec asi autostart bluray cdda cdr cec debug dvd dvb egl exif fftw jack java + +lame lcd libass lirc nvdec +opengl oss perl pulseaudio python raw systemd vaapi vdpau vpx + +wrapper x264 x265 +xml xmltv +xvid +X zeroconf + ${IUSE_INPUT_DEVICES} ${IUSE_VIDEO_CAPTURE_DEVICES}" + +REQUIRED_USE=" + bluray? ( xml ) + cdr? ( cdda ) +" +RDEPEND=" + acct-user/mythtv + dev-libs/glib:2 + dev-libs/lzo + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5[jpeg] + dev-qt/qtnetwork:5 + dev-qt/qtscript:5 + dev-qt/qtsql:5[mysql] + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + media-fonts/corefonts + media-fonts/dejavu + media-fonts/liberation-fonts + media-fonts/tex-gyre + media-gfx/exiv2:= + media-libs/freetype:2 + media-libs/libsamplerate + media-libs/taglib + sys-libs/zlib + alsa? ( media-libs/alsa-lib ) + autostart? ( + net-dialup/mingetty + x11-apps/xset + x11-wm/evilwm + ) + bluray? ( + dev-libs/libcdio:= + media-libs/libbluray:=[java?] + sys-fs/udisks:2 + ) + cec? ( dev-libs/libcec ) + dvd? ( + dev-libs/libcdio:= + media-libs/libdvdcss + sys-fs/udisks:2 + ) + egl? ( media-libs/mesa[egl] ) + fftw? ( sci-libs/fftw:3.0=[threads] ) + hdhomerun? ( media-libs/libhdhomerun ) + ieee1394? ( + media-libs/libiec61883 + sys-libs/libavc1394 + sys-libs/libraw1394 + ) + jack? ( virtual/jack ) + java? ( dev-java/ant-core ) + lame? ( media-sound/lame ) + lcd? ( app-misc/lcdproc ) + libass? ( media-libs/libass:= ) + lirc? ( app-misc/lirc ) + nvdec? ( x11-drivers/nvidia-drivers ) + opengl? ( dev-qt/qtopengl:5 ) + pulseaudio? ( media-sound/pulseaudio ) + systemd? ( sys-apps/systemd:= ) + vaapi? ( x11-libs/libva:=[opengl] ) + vdpau? ( x11-libs/libvdpau ) + vpx? ( media-libs/libvpx:= ) + x264? ( media-libs/x264:= ) + X? ( + x11-apps/xinit + x11-libs/libX11:= + x11-libs/libXext:= + x11-libs/libXinerama:= + x11-libs/libXrandr:= + x11-libs/libXv:= + x11-libs/libXxf86vm:= + x11-misc/wmctrl:= + ) + x265? ( media-libs/x265 ) + xml? ( dev-libs/libxml2:2 ) + xmltv? ( + dev-perl/XML-LibXML + media-tv/xmltv + ) + xvid? ( media-libs/xvid ) + zeroconf? ( + dev-libs/openssl:= + net-dns/avahi[mdnsresponder-compat] + ) +" +BDEPEND=" + virtual/pkgconfig + opengl? ( virtual/opengl ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND=" + ${RDEPEND} + dev-lang/yasm + x11-base/xorg-proto + perl? ( + dev-perl/DBD-mysql + dev-perl/DBI + dev-perl/HTTP-Message + dev-perl/IO-Socket-INET6 + dev-perl/LWP-Protocol-https + dev-perl/Net-UPnP + dev-perl/XML-Simple + ) + python? ( + $(python_gen_any_dep ' + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/future[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/mysqlclient[${PYTHON_USEDEP}] + dev-python/requests-cache[${PYTHON_USEDEP}] + dev-python/simplejson[${PYTHON_USEDEP}] + ') + ) +" +python_check_deps() { + use python || return 0 + has_version "dev-python/python-dateutil[${PYTHON_USEDEP}]" && + has_version "dev-python/future[${PYTHON_USEDEP}]" && + has_version "dev-python/lxml[${PYTHON_USEDEP}]" && + has_version "dev-python/mysqlclient[${PYTHON_USEDEP}]" && + has_version "dev-python/requests-cache[${PYTHON_USEDEP}]" && + has_version "dev-python/simplejson[${PYTHON_USEDEP}]" +} + +PATCHES=( + "${FILESDIR}/${PN}-30.0_p20190808-respect_LDFLAGS.patch" +) + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +Support for metadata lookup changes is added. User configuration required. +Details at: https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021 + +Suppport for Python 2.7 is removed. + +If a MYSQL server is installed, a mythtv MySQL user and mythconverg database +is created if it does not already exist. +You will be prompted for your MySQL root password. + +A mythtv user is maintained by acct-user/mythtv. An existing mythtv user +may be modified to the configuration defined by acct-user/mythtv. +The mythtv user's primary group is now mythtv. (formerly video) +An existing mythtv user may be changed which may alter some functionality. +If it breaks mythtv you may need to (choose one): + * Restore the original mythtv user + * Create custom acct-user/mythtv overlay for your system + * Fix you system to use mythtv as daemon only (recommended) +Failure to emerge acct-user/mythtv indicates that the existing mythtv user +is customized and not changed. Corrective action (choose one): + * Ignore emerge failure + * Create custom acct-user/mythtv overlay for your system + * Fix you system to use mythtv as daemon only + * Delete existing user and try again (dangerous) + +Mythtv is updated to use correct FHS/Gentoo policy paths. +Updating mythtv installations may report: + * mythtv is in use, cannot update home + * There was an error when attempting to update the home directory for mythtv + * Please update it manually on your system (as root): + * usermod -d "/var/lib/mythtv" "mythtv" +This can be ignored. The previous default was "/home/mythtv". +Use caution if you change the home directory. + +To have this machine operate as recording host for MythTV, +mythbackend must be running. Run the following: +rc-update add mythbackend default + +Your recordings folder must be owned 'mythtv'. e.g. +chown -R mythtv /var/lib/mythtv + +Want mythfrontend to start automatically? +Set USE=autostart. Details can be found at: +https://dev.gentoo.org/~cardoe/mythtv/autostart.html +" + +pkg_setup() { + use python && python-any-r1_pkg_setup + # The acct-user/mythtv package creates/manages the user 'mythtv' +} + +src_prepare() { + default + + # Perl bits need to go into vender_perl and not site_perl + sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ + -i "${S}"/bindings/perl/Makefile || die "Cannot convert site_perl to vendor_perl!" + +} + +src_configure() { + local -a myconf + + # Setup paths + myconf+=(--prefix="${EPREFIX}"/usr) + myconf+=(--libdir="${EPREFIX}"/usr/$(get_libdir)) + myconf+=(--libdir-name=$(get_libdir)) + myconf+=(--mandir="${EPREFIX}"/usr/share/man) + + if use debug; then + myconf+=(--compile-type=debug) + myconf+=(--disable-stripping) # FIXME: does not disable for all files, only for some + myconf+=(--enable-valgrind) # disables timeouts for valgrind memory debugging + else + myconf+=(--compile-type=release) + fi + + # Build boosters + has ccache "${FEATURES}" || myconf+=(--disable-ccache) + has distcc "${FEATURES}" || myconf+=(--disable-distcc) + + # CPU settings + # Mythtv's configure is borrowed from ffmpeg, + # Bug #172723 + # Try to get cpu type based on CFLAGS. + # We need to do this so that features of that CPU will be better used + # If they contain an unknown CPU it will not hurt since ffmpeg's configure + # will just ignore it. + for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do + [ "${i}" = "native" ] && i="host" # bug #273421 + myconf+=(--cpu="${i}") + break + done + myconf+=($(use_enable altivec)) + + # Sound Output Support + myconf+=( + $(use_enable oss audio-oss) + $(use_enable alsa audio-alsa) + $(use_enable jack audio-jack) + $(use_enable pulseaudio audio-pulseoutput) + ) + + # Input Support + myconf+=( + $(use_enable lirc) + $(use_enable input_devices_joystick joystick-menu) + $(use_enable cec libcec) + $(use_enable ieee1394 firewire) + $(use_enable hdhomerun) + $(use_enable vbox) + $(use_enable ceton) + $(use_enable v4l v4l2) + $(use_enable ivtv) + $(use_enable hdpvr) + $(use_enable dvb) + $(use_enable asi) + ) + + # Video Output Support + myconf+=( + $(use_enable X x11) + $(use_enable X xrandr) + ) + + # Hardware accellerators + myconf+=( + $(use_enable nvdec) + $(use_enable vaapi) + $(use_enable vdpau) + $(use_enable opengl) + $(use_enable libass) + ) + + # System tools + myconf+=( + $(use_enable systemd systemd_notify) + $(use_enable systemd systemd_journal) + $(use_enable xml libxml2) + $(use_enable zeroconf libdns-sd) + ) + + # Bindings + if use perl && use python; then + myconf+=(--with-bindings=perl,python) + elif use perl; then + myconf+=(--without-bindings=python) + myconf+=(--with-bindings=perl) + elif use python; then + myconf+=(--without-bindings=perl) + myconf+=(--with-bindings=python) + else + myconf+=(--without-bindings=perl,python) + fi + use python && myconf+=(--python="${EPYTHON}") + myconf+=($(use_enable java bdjava)) + + # External codec library options (used for mythffmpeg and streaming transcode) + # lame is required for some broadcasts for silence detection of commercials + # default enable in IUSE with +lame + myconf+=( + $(use_enable lame libmp3lame) + $(use_enable xvid libxvid) + $(use_enable x264 libx264) + $(use_enable x265 libx265) + $(use_enable vpx libvpx) + ) + + # Clean up DSO load times and other compiler bits + myconf+=(--enable-symbol-visibility) + myconf+=(--enable-pic) + + if tc-is-cross-compiler ; then + myconf+=(--enable-cross-compile --arch=$(tc-arch-kernel)) + myconf+=(--cross-prefix="${CHOST}"-) + fi + + myconf+=($(use_enable bluray libbluray_external)) + + # econf sets these options that are not handled by configure: + # --build --host --infodir --localstatedir --sysconfdir + + einfo "Running ./configure ${myconf[@]} - THIS MAY TAKE A WHILE." + ./configure \ + --prefix="${EPREFIX}/usr" \ + --cc="$(tc-getCC)" \ + --cxx="$(tc-getCXX)" \ + --ar="$(tc-getAR)" \ + --optflags="${CFLAGS}" \ + --extra-cflags="${CFLAGS}" \ + --extra-cxxflags="${CXXFLAGS}" \ + --extra-ldflags="${LDFLAGS}" \ + --qmake=$(qt5_get_bindir)/qmake \ + "${myconf[@]}" +} + +src_install() { + emake STRIP="true" INSTALL_ROOT="${D}" install + use python && python_optimize # does all packages by default + dodoc AUTHORS UPGRADING README + readme.gentoo_create_doc + + insinto /usr/share/mythtv/database + doins database/* + + newinitd "${FILESDIR}"/mythbackend.init-r3 mythbackend + newconfd "${FILESDIR}"/mythbackend.conf-r1 mythbackend + if use systemd; then + systemd_newunit "${FILESDIR}"/mythbackend.service-28 mythbackend.service + fi + + dodoc keys.txt + + keepdir /etc/mythtv + fowners -R mythtv /etc/mythtv + keepdir /var/log/mythtv + fowners -R mythtv /var/log/mythtv + + insinto /etc/logrotate.d + newins "${FILESDIR}"/mythtv.logrotate.d-r4 mythtv + + insinto /usr/share/mythtv/contrib + # Ensure we don't install scripts needing the perl bindings (bug #516968) Finding none is OK. + if ! use perl; then + find contrib/ -name '*.pl' -exec rm {} \; + fi + # Ensure we don't install scripts needing the python bindings (bug #516968) Finding none is OK. + if ! use python; then + find contrib/ -name '*.py' -exec rm {} \; + fi + doins -r contrib/* + + # Install our mythfrontend wrapper which is similar to Mythbuntu's + if use wrapper; then + mv "${ED}/usr/bin/mythfrontend" "${ED}/usr/bin/mythfrontend.real" || die "Failed to install mythfrontend.real" + newbin "${FILESDIR}"/mythfrontend.wrapper mythfrontend + newconfd "${FILESDIR}"/mythfrontend.conf mythfrontend + fi + + if use autostart; then + newenvd - 95mythtv <<- _EOF_ + CONFIG_PROTECT=\"$(egethome mythtv)\" + _EOF_ + insinto $(egethome mythtv) + newins "${FILESDIR}"/bash_profile .bash_profile + newins "${FILESDIR}"/xinitrc-r1 .xinitrc + fi + + # Make Python files executable but not files named "__init__.py" + find "${ED}/usr/share/mythtv" -type f -name '*.py' -exec expr \( {} : '.*__init__.py' \) = 0 \; \ + -exec chmod a+x {} \; || die "Failed to make python file $(basename ${file}) executable" + + # Ensure that Python scripts are executed by Python 2 + use python && python_fix_shebang "${ED}/usr/share/mythtv" + + # Make shell & perl scripts executable + find "${ED}" -type f \( -name '*.sh' -o -name '*.pl' \) -exec chmod a+x {} \; || die "Failed to make script executable" +} + +pkg_postinst() { + readme.gentoo_print_elog +} + +pkg_info() { + return +} + +pkg_config() { + if [[ -e "${EROOT}"/usr/bin/mysql ]]; then + "${EROOT}"/usr/bin/mysql -u root -p < "${EROOT}"/usr/share/mythtv/database/mc.sql + fi +} diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest new file mode 100644 index 000000000000..42cfd0032b59 --- /dev/null +++ b/media-tv/plex-media-server/Manifest @@ -0,0 +1,12 @@ +AUX 80plexmediaserver 191 BLAKE2B 74f870eb772efcee47eab654732cae69b3e3991b66ebbbdd241dc1272cf90d536d2309f10053878d1f904dcf77afea238133be06a66c9a0541e94d18fa669e1b SHA512 55fb0ab1d95ae5af385e9b22f275a8854034db27cadd87e5fe20f6b5580180195715773c08281d42a2aae5466f55c85f8294d9cdd30da9d134e7ad6b08e26bb5 +AUX README.gentoo 603 BLAKE2B 01a0be613587c682077b480dfce7f7f95cb48ed0ee8ca7ea789cf0814f7485b769131a16627bd68ce330810478e52b0d0931e0ee8325c10c369daea3ca47f525 SHA512 fa811d3555c267fc895e783fdb54ccdc13cceb9dccfdd3a69a00871f4cc75ab647aa097fb3a8547f5322c076fd8cde7d8f14e893c8a8968922ce1cd3f883e0a1 +AUX plex-media-server.conf.d 216 BLAKE2B 094d0f6f7cdfa696ae47d7879c7459be5755dfe02a12c3ee986c1078ae0a46d974adc25dce252a49c3fd72e0dfe1ba65c49d575e12036fba44ce9b0390da64ec SHA512 d3d68fa58a1c1064803a9607708123302890571e823e5bc26de741bb15bd51db19234636672ff01757cbbcdb984c60663545689fa915761c78c3cf49e6da0f95 +AUX plex-media-server.init.d 380 BLAKE2B 03d5737128390c13d914a94e8d861cf24abed92b2a5c672e72cd7dad8ed9a71ba7bccc28f06acaf5920be7d0b809746b6a8f4daffef4594830cf8ad5f071a2f5 SHA512 44ddd5a046851f77f550ff9f0bf158a3bce465101b5fdbd31b68ed64dc6c8e823f70c05b833f97101b4608256422ff4aa026114fac17f9e6e3670602ed9ef816 +AUX start_pms 1768 BLAKE2B c111f268535f03f1763c9a2f16ccc4a317f9540721a1c89e33306d6ad6d6ee34673d6a13326923c2fa399d1a3f7ad3e26c89d097de8f977a9ad7973c99dff811 SHA512 8c672a9de6f20c968869fb2bd643bdfe6d3e7ca6d89dfddfd5d7a4bc425a34e1b30ba711a0f0afd79df428df4151a59f18880cff7e0ef12df146421f299858c5 +DIST plexmediaserver_1.23.1.4602-280ab6053_amd64.deb 81613502 BLAKE2B 59f3bc54e8436bb35983cc7b77c252c88d5ccc26325203edcbaf7ef2428dbe465e0db8bb0b24472f7f7b07b25b23d23e240903243d8dcd7983edd4cda62906b3 SHA512 e269066a10794d63cf9912df3e66b92874701a8263f2806f42d0abe9484bd347284e2bacb3ba2f6825e1489be164f0b2abe6d23021737b37be918a9b356c1301 +DIST plexmediaserver_1.23.1.4602-280ab6053_i386.deb 75020714 BLAKE2B 12c8057592f734969c9d4a3ea245c2b725fe16433260214c1e18d0b192151b51c61d55bde7b40015727b1775a21fe965960165b8cc6f039a138f521f95f34cb3 SHA512 afd569e0cfd665b81e422b925e623b910d29b99e77dbfe2ff2333497f63fb69adf851562c887a9bd8ff216f37b18397cad673547a41d8fdba611d9a6bd7254e2 +DIST plexmediaserver_1.23.2.4625-a83d2d0f9_amd64.deb 81773538 BLAKE2B 7b22cdd4662f37c4138bd5edc74a5471e7d31c89465ce25a428e7963fc10e5dc07c154812b51c1c17d725175f093c7e22560acde8b00ee3b5d6a724441af2729 SHA512 632497e596542fc11cd2b9ec6dd9d7403800f26473811fbd5c75d73aa1abde08b881005f1c51663afe190ce95b6d02900272f2024bbcce02f6b952efe498430d +DIST plexmediaserver_1.23.2.4625-a83d2d0f9_i386.deb 75148422 BLAKE2B 1758529c97b3f743df44321074f95f85ce7003fd9d92e4a849776e9f24bf6034de6e90c123db9c36c8732cffbc65089f6db20fba8ffffac1b6bce238b1595b04 SHA512 0e727d96bc147d7c4457f91c8309e1937bbee49a1599ff376959fb25cdc62fa3df1ae09880cc6ada7d8dfa4cbadccce24c35ad3bd41143f086ea1a0861e010f0 +EBUILD plex-media-server-1.23.1.4602.ebuild 1963 BLAKE2B d6848a06ff1b0ae8b549612c4134de017945171bca8d0095e88c9e4290163f2bbbe75dc3519ff03020b9aaa5006264f89b6b0af356ef343791c2526a11f81a2d SHA512 e182f5a1da3ea94d2733e018f96bf4dd67382360e165ce389e0d81404e3666296f211a4f9f4cad803d1abdbef3573e170cb8f7bef07ed0859ee931d800f62942 +EBUILD plex-media-server-1.23.2.4625.ebuild 1963 BLAKE2B 89de95b39c64d16d67c2b897bf929dfddcff233c737536025c8c5002686d5ba85c7ed2d84ce3978d0bd7a752480d014013e5569af9413199c6573bf5710f37ea SHA512 859a487b1155caec0fd022b358cea338ec18c5b9e44c69dfa6fe82802c9362acfb6023203dac3912d936f2ea3702a27e45ff2273d66e3fceaa5b5eca06d85ba7 +MISC metadata.xml 746 BLAKE2B 32ddcdfc95a50cd336dec02a232ed50eeeca7d74d410cd327068da50fa55ac2090338854cff3fbc1da5c5c7027f0114db9c007cdb4ffc4426bf69ee8a5bdba59 SHA512 0f95894ecb5a28aaa0254435ad9b29552623e33340a23358ed3287c8e23d6a98e3cde838916f279970990ccc0113bd662a0c9d32259be3a50fec70fcd1ae2530 diff --git a/media-tv/plex-media-server/files/80plexmediaserver b/media-tv/plex-media-server/files/80plexmediaserver new file mode 100644 index 000000000000..54fe49b09fd2 --- /dev/null +++ b/media-tv/plex-media-server/files/80plexmediaserver @@ -0,0 +1 @@ +SEARCH_DIRS_MASK="/usr/lib/plexmediaserver/lib /usr/lib/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload /usr/lib/plexmediaserver/Resources/Python/lib/python2.7/site-packages/lxml" diff --git a/media-tv/plex-media-server/files/README.gentoo b/media-tv/plex-media-server/files/README.gentoo new file mode 100644 index 000000000000..ec4445ac397d --- /dev/null +++ b/media-tv/plex-media-server/files/README.gentoo @@ -0,0 +1,9 @@ +Plex Media Server is now installed. Please check the configuration file. +It can be found in /etc/plex/plexmediaserver to verify the default settings. +Adjust thread counts and memory usage limits in /usr/sbin/start_pms for best +performance. To start the Plex Server, run 'rc-config start plex-media-server' +You will then be able to access your library at http://localhost:32400/manage + +If installing on a remote host you will need to use a ssh tunnel eg, +'ssh ip.address.of.server -L 8888:localhost:32400' then open the folowing in +a local browser 'http://localhost:8888/web' to claim the remote server. diff --git a/media-tv/plex-media-server/files/plex-media-server.conf.d b/media-tv/plex-media-server/files/plex-media-server.conf.d new file mode 100644 index 000000000000..7fe754fb1d81 --- /dev/null +++ b/media-tv/plex-media-server/files/plex-media-server.conf.d @@ -0,0 +1,7 @@ +# Config file for /etc/init.d/plex-media-server + +PLEX_PIDFILE="/var/run/plex-media-server.pid" +PLEX_OUTLOG="/var/log/pms/out.log" +PLEX_ERRLOG="/var/log/pms/err.log" +PLEX_USER="plex" +PLEX_SCRIPT="/usr/sbin/start_pms" diff --git a/media-tv/plex-media-server/files/plex-media-server.init.d b/media-tv/plex-media-server/files/plex-media-server.init.d new file mode 100644 index 000000000000..81204c87335c --- /dev/null +++ b/media-tv/plex-media-server/files/plex-media-server.init.d @@ -0,0 +1,16 @@ +#!/sbin/openrc-run + +start() { + ebegin "Starting Plex Media Server" + start-stop-daemon -S -m -p ${PLEX_PIDFILE} -1 ${PLEX_OUTLOG} -2 ${PLEX_ERRLOG} --quiet -u ${PLEX_USER} -N -5 -b --exec ${PLEX_SCRIPT} + eend $? +} + +stop() { + ebegin "Stopping Plex Media Server" + kill -- -`cat ${PLEX_PIDFILE}` + + # Remove stale pid file since this is a dirty solution + rm ${PLEX_PIDFILE} + eend $? +} diff --git a/media-tv/plex-media-server/files/start_pms b/media-tv/plex-media-server/files/start_pms new file mode 100644 index 000000000000..e00ba5620267 --- /dev/null +++ b/media-tv/plex-media-server/files/start_pms @@ -0,0 +1,51 @@ +#!/bin/sh +# +# Plex Media Server - Manual start script. +# + +# Set Crash Reporting identification variables +export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release|awk -F= '{print $2}'|tr -d \" )" +export PLEX_MEDIA_SERVER_INFO_DEVICE="PC" +export PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)" +GENTOO_PROFILE="`readlink /etc/portage/make.profile`" +export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="${GENTOO_PROFILE#.*/profiles/}" + +# Change these parameters in /etc/default/plexmediaserver +export PLEX_MEDIA_SERVER_USER=plex +export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 +export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver +export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000 +export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}" +export PLEX_MEDIA_SERVER_TMPDIR=/tmp +export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support" + +if [ -f /etc/default/locale ]; then + export LANG="$(cat /etc/default/locale|awk -F '=' '/LANG=/{print $2}'|sed 's/"//g')" + export LC_ALL="$LANG" +fi + +test -f /etc/default/plexmediaserver && . /etc/default/plexmediaserver + +# Silently support PLEX_USER if provided as override +if [ "$PLEX_USER" != "" ]; then + export PLEX_MEDIA_SERVER_USER="$PLEX_USER" +fi + +# Create AppSuppDir if not present +if [ ! -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" ]; then + mkdir -p "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" + if [ ! $? -eq 0 ]; then + echo "ERROR: Couldn't create $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR " + exit 1 + fi +fi + +export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}/lib":"${PLEX_MEDIA_SERVER_HOME}" +export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}" + +ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE + +# Add sleep - for those who launch with this script +sleep 3 + +(cd /usr/lib/plexmediaserver; ./Plex\ Media\ Server) diff --git a/media-tv/plex-media-server/metadata.xml b/media-tv/plex-media-server/metadata.xml new file mode 100644 index 000000000000..39729e116b91 --- /dev/null +++ b/media-tv/plex-media-server/metadata.xml @@ -0,0 +1,19 @@ + + + + + om@organizedmagnetism.com + Scott Martin + + + proxy-maint@gentoo.org + Proxy Maintainers + + + http://forums.plex.tv/discussion/62832/plex-media-server#latest + https://support.plex.tv/hc/en-us/categories/200007268-Getting-Started + + + Use system copy of dev-libs/openssl instead of the bundled one. Unsupported upstream. + + diff --git a/media-tv/plex-media-server/plex-media-server-1.23.1.4602.ebuild b/media-tv/plex-media-server/plex-media-server-1.23.1.4602.ebuild new file mode 100644 index 000000000000..3c08b6b51bf1 --- /dev/null +++ b/media-tv/plex-media-server/plex-media-server-1.23.1.4602.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit readme.gentoo-r1 systemd unpacker + +MY_PV="${PV}-280ab6053" +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" +IUSE="system-openssl" +RESTRICT="mirror bindist" + +DEPEND=" + acct-group/plex + acct-user/plex" +RDEPEND=" + ${DEPEND} + system-openssl? ( dev-libs/openssl:0/1.1 )" + +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 + + # Remove shipped openssl library + if use system-openssl; then + rm usr/lib/plexmediaserver/lib/libssl.so.1.1 || die + fi + + # Add startup wrapper + dosbin "${FILESDIR}/start_pms" + + # 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 "${FILESDIR}/${PN}.init.d" ${PN} + newconfd "${FILESDIR}/${PN}.conf.d" ${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 +} diff --git a/media-tv/plex-media-server/plex-media-server-1.23.2.4625.ebuild b/media-tv/plex-media-server/plex-media-server-1.23.2.4625.ebuild new file mode 100644 index 000000000000..92b87a68f4e0 --- /dev/null +++ b/media-tv/plex-media-server/plex-media-server-1.23.2.4625.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit readme.gentoo-r1 systemd unpacker + +MY_PV="${PV}-a83d2d0f9" +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" +IUSE="system-openssl" +RESTRICT="mirror bindist" + +DEPEND=" + acct-group/plex + acct-user/plex" +RDEPEND=" + ${DEPEND} + system-openssl? ( dev-libs/openssl:0/1.1 )" + +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 + + # Remove shipped openssl library + if use system-openssl; then + rm usr/lib/plexmediaserver/lib/libssl.so.1.1 || die + fi + + # Add startup wrapper + dosbin "${FILESDIR}/start_pms" + + # 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 "${FILESDIR}/${PN}.init.d" ${PN} + newconfd "${FILESDIR}/${PN}.conf.d" ${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 +} -- cgit v1.2.3