diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest deleted file mode 100644 index f221570..0000000 --- a/media-tv/plex-media-server/Manifest +++ /dev/null @@ -1,7 +0,0 @@ -AUX conf.d/plex-media-server 216 SHA256 d202e6c380248d08a494deabec6087b22d3e0508cbc3bf38e42f822c329662c8 SHA512 d3d68fa58a1c1064803a9607708123302890571e823e5bc26de741bb15bd51db19234636672ff01757cbbcdb984c60663545689fa915761c78c3cf49e6da0f95 WHIRLPOOL 73f4e4ac835c434c7ee3a207d8bcd128510b447df18468b1cf6366fa02cf4dfe3a2299ee1dc40de7fada8d43f0c8ba934b76aa0a821d3de98f18d234e9f87108 -AUX init.d/plex-media-server 413 SHA256 2733006ead10955216f5676722f2af729fdbed13b3de706c37e7baaad9995826 SHA512 aeb873a00081f20abd27cc76d395908ae0643bd8aa665557adafef2ed97edbe93c18b55818b49227746f9c3ce4b7a81ceb9132f07d8d873bc7b5a932b944a402 WHIRLPOOL 4e3b19cad2283861f68bbe1e84bf39541a56aab193fb1e17f63a19e951204639734236437d7c8bb863ed1236d0a1228b5173b53660caa995b6dac91fcec3cfbf -AUX systemd/plex-media-server.service 159 SHA256 5dfda2be8f0d49990418ef770fde1be352f637eff7e95d04dd8a7801353a7966 SHA512 9066840efa43b127dd0d4b26ea0552894db97bf48f89003258095986e7d4728e05bee2f49de856777ed3d0b5ec41654c14505bc9867b227b754aeecd0529abd6 WHIRLPOOL 7ba1f4d91f5bdd3d9a59235689b6a864804726e6b4a649c7504d2adc5eb333930dd6f17d0f3be9804c79210503063a06a08e2ee5501437b4d06a24d2f2f717cd -AUX virtualenv_start_pms.patch 839 SHA256 1e0a63ee4568f34e1309133a11708d85f3df6a51134c4f630b6fbd0369d3d6e1 SHA512 55fb8f3234942d10c0d6d1820fbab48b8a9f26f069031946dae551cde8b7d18d61ef36ec994719d2519687dc75e5ec27205702395a8af112bda720b7a62072aa WHIRLPOOL 60b680f5d073c2d4a83ac2c7f0034eaf1f03a8449d3beeefaaff6d202a06e909ab975cbc004361badb266114c70f5adf4b0d679acff9baa984e7b1dc7856daf5 -DIST plexmediaserver_1.11.1.4730-6967ec0b1_amd64.deb 108623464 SHA256 1ac04649d8cd2e71ec0d9d528611e38bb24333e71de4a116e78c6998adbb1a95 SHA512 f68f38c524e27b230f66594b1ef63720a612964974b4e5695bc45a6ccc4e05427d82427f7d2bf93be9f4c6f3871492a364c0e52de41067565da8175564f8323f WHIRLPOOL 001686519283a181b48da756b707b9300716b6ef650de08cec891b2aec3717781ab53128ee5bad8ec51053110cf1aca6bae93d0785435c408358d4306b5e997b -EBUILD plex-media-server-1.11.1.ebuild 3996 SHA256 c4aed6f18906c5a78457172274677d06626ae23607f1c6c55f9163d06a2ca14a SHA512 424b01bc1dc27f6aa59a201552009e39516c5887dc5eb69d291ac345b5a481e3fc5e876048fbefa514ec504e49b0c1f555085cba49d1d9e5181f7884d72a60ac WHIRLPOOL 521f65d7aa6b6b6cbd50a9c50df48ca49f769dd8f9f6a407a7ce8550f8a2e83faa4ac4fc4f55d55caac7c285edaa9b504a3e1cdd3d7f24edc8021422f77f8d3a -MISC metadata.xml 271 SHA256 237fe8bd272851b831c40f574623fa1a616bb12917d0fbd42a8b0829812964a2 SHA512 2b2037801bca0d687bfa51c5fd3e2804c77784a9bace2dd1ab8019183283a0c31f380dee3865a46efb316d448b6c45d5bbd4daf73fbd8d21c7005c2bcba79ae9 WHIRLPOOL 56ddfc4e21a65da0b89073ccd3440aed82b077844b5e48c15d5838ef5e9c8de160d03a89facfa3b00f894d9c2e80770c7d02e6d8d03c573e8e9c7533adf57821 diff --git a/media-tv/plex-media-server/files/conf.d/plex-media-server b/media-tv/plex-media-server/files/conf.d/plex-media-server deleted file mode 100644 index 7fe754f..0000000 --- a/media-tv/plex-media-server/files/conf.d/plex-media-server +++ /dev/null @@ -1,7 +0,0 @@ -# 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/init.d/plex-media-server b/media-tv/plex-media-server/files/init.d/plex-media-server deleted file mode 100755 index 102ac80..0000000 --- a/media-tv/plex-media-server/files/init.d/plex-media-server +++ /dev/null @@ -1,20 +0,0 @@ -#!/sbin/openrc-run - -depend() { - need avahi-daemon -} - -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/systemd/plex-media-server.service b/media-tv/plex-media-server/files/systemd/plex-media-server.service deleted file mode 100644 index 12412a8..0000000 --- a/media-tv/plex-media-server/files/systemd/plex-media-server.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Plex Media Server -After=network.target - -[Service] -Type=simple -User=plex -ExecStart=/usr/sbin/start_pms - -[Install] -WantedBy=multi-user.target diff --git a/media-tv/plex-media-server/files/virtualenv_start_pms.patch b/media-tv/plex-media-server/files/virtualenv_start_pms.patch deleted file mode 100644 index bb4d575..0000000 --- a/media-tv/plex-media-server/files/virtualenv_start_pms.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- a/usr/sbin/start_pms 2017-03-01 13:35:28.340489280 -0500 -+++ b/usr/sbin/start_pms 2017-03-01 13:36:05.574540305 -0500 -@@ -8,16 +8,20 @@ - 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 - -+# Activate python virtualenv -+. "${PLEX_MEDIA_SERVER_HOME}"/Resources/Python/bin/activate -+ -+ - if [ ! -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" ] - then - mkdir -p "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" - if [ ! $? -eq 0 ] - then - echo "WARNING COULDN'T CREATE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR, MAKE SURE I HAVE PERMISSON TO DO THAT!" - exit 1 - fi diff --git a/media-tv/plex-media-server/metadata.xml b/media-tv/plex-media-server/metadata.xml deleted file mode 100644 index c75bc83..0000000 --- a/media-tv/plex-media-server/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - canutethegreat@gmail.com - Ronald Farrer - - diff --git a/media-tv/plex-media-server/plex-media-server-1.11.1.ebuild b/media-tv/plex-media-server/plex-media-server-1.11.1.ebuild deleted file mode 100644 index 4b73097..0000000 --- a/media-tv/plex-media-server/plex-media-server-1.11.1.ebuild +++ /dev/null @@ -1,135 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) -inherit eutils user systemd unpacker pax-utils python-single-r1 - -MINOR_VERSION="4730-6967ec0b1" - -_APPNAME="plexmediaserver" -_USERNAME="plex" -_SHORTNAME="${_USERNAME}" -_FULL_VERSION="${PV}.${MINOR_VERSION}" - -URI="https://downloads.plex.tv/plex-media-server" - -DESCRIPTION="A free media library that is intended for use with a plex client." -HOMEPAGE="http://www.plex.tv/" -SRC_URI="amd64? ( ${URI}/${_FULL_VERSION}/plexmediaserver_${_FULL_VERSION}_amd64.deb )" -SLOT="0" -LICENSE="Plex" -RESTRICT="bindist strip" -KEYWORDS="-* ~amd64" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -DEPEND=" - sys-apps/fix-gnustack - dev-python/virtualenv[${PYTHON_USEDEP}]" - -RDEPEND=" - net-dns/avahi - ${PYTHON_DEPS}" - -QA_DESKTOP_FILE="usr/share/applications/plexmediamanager.desktop" -QA_PREBUILT="*" -QA_MULTILIB_PATHS=( - "usr/lib/${_APPNAME}/.*" - "usr/lib/${_APPNAME}/Resources/Python/lib/python2.7/.*" -) - -EXECSTACKED_BINS=( "${ED%/}/usr/lib/plexmediaserver/libgnsdk_dsp.so*" ) -BINS_TO_PAX_MARK=( "${ED%/}/usr/lib/plexmediaserver/Plex Script Host" ) - -S="${WORKDIR}" -PATCHES=( "${FILESDIR}/virtualenv_start_pms.patch" ) - -pkg_setup() { - enewgroup ${_USERNAME} - enewuser ${_USERNAME} -1 /bin/bash /var/lib/${_APPNAME} "${_USERNAME},video" - python-single-r1_pkg_setup -} - -src_unpack() { - unpack_deb ${A} -} - -src_install() { - # Move the config to the correct place - local CONFIG_VANILLA="/etc/default/plexmediaserver" - local CONFIG_PATH="/etc/${_SHORTNAME}" - dodir "${CONFIG_PATH}" - insinto "${CONFIG_PATH}" - doins "${CONFIG_VANILLA#/}" - sed -e "s#${CONFIG_VANILLA}#${CONFIG_PATH}/${_APPNAME}#g" -i "${S}"/usr/sbin/start_pms || die - - # Remove Debian specific files - rm -rf "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 - local LOGGING_DIR="/var/log/pms" - dodir "${LOGGING_DIR}" - chown "${_USERNAME}":"${_USERNAME}" "${ED%/}/${LOGGING_DIR}" || die - - # Create default library folder with correct permissions - local DEFAULT_LIBRARY_DIR="/var/lib/${_APPNAME}" - dodir "${DEFAULT_LIBRARY_DIR}" - chown "${_USERNAME}":"${_USERNAME}" "${ED%/}/${DEFAULT_LIBRARY_DIR}" || die - - # Install the OpenRC init/conf files - doinitd "${FILESDIR}/init.d/${PN}" - doconfd "${FILESDIR}/conf.d/${PN}" - - _handle_multilib - - # Install systemd service file - local INIT_NAME="${PN}.service" - local INIT="${FILESDIR}/systemd/${INIT_NAME}" - systemd_newunit "${INIT}" "${INIT_NAME}" - - _remove_execstack_markings - _add_pax_markings - - einfo "Configuring virtualenv" - virtualenv -v --no-pip --no-setuptools --no-wheel "${ED}"usr/lib/plexmediaserver/Resources/Python || die - pushd "${ED}"usr/lib/plexmediaserver/Resources/Python &>/dev/null || die - find . -type f -exec sed -i -e "s#${D}##g" {} + || die - popd &>/dev/null || die -} - -pkg_postinst() { - einfo "" - elog "Plex Media Server is now installed. Please check the configuration file in /etc/${_SHORTNAME}/${_APPNAME} to verify the default settings." - elog "To start the Plex Server, run 'rc-config start plex-media-server', you will then be able to access your library at http://:32400/web/" -} - -# Finds out where the library directory is for this system -# and handles ldflags as to not break library dependencies -# during rebuilds. -_handle_multilib() { - # Prevent revdep-rebuild, @preserved-rebuild breakage - cat > "${T}"/66plex <<-EOF || die - LDPATH="${EPREFIX}/usr/$(get_libdir)/plexmediaserver" - EOF - - doenvd "${T}"/66plex -} - -# Remove execstack flags from some libraries/executables so that it works in hardened setups. -_remove_execstack_markings() { - for f in "${EXECSTACKED_BINS[@]}"; do - # Unquoting 'f' so that expansion works. - fix-gnustack -f ${f} > /dev/null - done -} - -# Add pax markings to some binaries so that they work on hardened setup. -_add_pax_markings() { - for f in "${BINS_TO_PAX_MARK[@]}"; do - pax-mark m "${f}" - done -}