Commit 793280c0 authored by Jerzy Kołosowski's avatar Jerzy Kołosowski

plex update

parent b40f6ae3
This diff is collapsed.
AUX add_gentoo_profile_as_platform_version.patch 616 SHA256 b29ec02b808a807a911020d0241d52bdd0838832435e331735480a36b76aa0d8 SHA512 53e99d8a24a23f0c530ab955f5a4a9938c4e06056d3107f899883094690dd9426d0951ea695628351afa3e971a4f59827b6c8dcae323718d24450c74bd78769a WHIRLPOOL 30d2b0d31fef8a7edc18aa40f10de985ac2166c8d3ca9a8300c438628e412e32b859a0cee9d02b8dfb35ce3975cfa50f0d8d52a2c6d1136172698156bc22119a
AUX conf.d/plex-media-server 216 SHA256 d202e6c380248d08a494deabec6087b22d3e0508cbc3bf38e42f822c329662c8 SHA512 d3d68fa58a1c1064803a9607708123302890571e823e5bc26de741bb15bd51db19234636672ff01757cbbcdb984c60663545689fa915761c78c3cf49e6da0f95 WHIRLPOOL 73f4e4ac835c434c7ee3a207d8bcd128510b447df18468b1cf6366fa02cf4dfe3a2299ee1dc40de7fada8d43f0c8ba934b76aa0a821d3de98f18d234e9f87108
AUX etc-plexmediaserver 831 SHA256 0c8d887ff4bd037f5a6c960831cdfc61c652b5c390e3fcba6ad54af2ac7218be SHA512 e833cd4507646d45debe0b352d67f2276a767693081331625df241ddbd4055905d66b0fe2c14838ed1ba25f8cfc6a514ba9d27bafe8aa9322df43a20284a28c7 WHIRLPOOL 12d4c30f2f13455ee74ed9c7000c0700f06dd9e1a20b9b91da0a84b587b290b75be86d37716e246feb0f9cc571b207b1acb0e3704f41fec99f99f4cce122047c
AUX init.d/plex-media-server 413 SHA256 2733006ead10955216f5676722f2af729fdbed13b3de706c37e7baaad9995826 SHA512 aeb873a00081f20abd27cc76d395908ae0643bd8aa665557adafef2ed97edbe93c18b55818b49227746f9c3ce4b7a81ceb9132f07d8d873bc7b5a932b944a402 WHIRLPOOL 4e3b19cad2283861f68bbe1e84bf39541a56aab193fb1e17f63a19e951204639734236437d7c8bb863ed1236d0a1228b5173b53660caa995b6dac91fcec3cfbf
AUX plexmediamanager.desktop.new.patch 350 SHA256 e88ef2072b1e4ab588e590880cef480b2d305dff6d4726862e66f46fe2a45b07 SHA512 e7e97ef8d39ff0e9220026d282febaa2613f8cc96253a9f801f1f2af5c60c3780391cdada98f921cf0226156a2347db982cf814e6aa446b07e9ae6b1b96c9525 WHIRLPOOL c8386454863ac04a75a37094cccc344cc81f17697406d74a47aaeec27256d59eac9be703993a035d99812315ec511c5298a4febbeac2c59cabdc3dabedeeb314
AUX plexmediaserver.service.patch 818 SHA256 31a60a7ae695412518489cb11d2b60580ba8518e38727ee7ecb7306b591facf0 SHA512 18930ad1f610c63ede0df0c53beb39d21d762a09e6427493aa47293c595b96660ace9c780891ce1f49fcbece2324ddec6b0b431c4f82ac32be85fae8e7cd1600 WHIRLPOOL 55cc88940ecc591f89f73ecef1f3a40aa338bc71f49258d82333109b1d8cb2d5f766e97d5b86a458a81212578b3ac90d317016e828faebc04117348e6937b7ad
AUX start_pms 1742 SHA256 c9d8640aa544654f941678eccf4602383ebb562c1a233bab6830da5993215009 SHA512 c21739f8904f2ca82427f0c62a7305ab079f697205ad44ea4071e97d82fd56924abaaec0b4b056fbdf1c047491b7b46c1a711e4339c6bf0d482829185996367d WHIRLPOOL c578c9ec019486074ef8adb0ca2ccc54b7d5c68d56ecb4330d166b7c81c70512cc9ca6e38cb352427328e89963729dc58d584baf24031411fb1f2e98ea333c0f
AUX systemd/plex-media-server.service 159 SHA256 5dfda2be8f0d49990418ef770fde1be352f637eff7e95d04dd8a7801353a7966 SHA512 9066840efa43b127dd0d4b26ea0552894db97bf48f89003258095986e7d4728e05bee2f49de856777ed3d0b5ec41654c14505bc9867b227b754aeecd0529abd6 WHIRLPOOL 7ba1f4d91f5bdd3d9a59235689b6a864804726e6b4a649c7504d2adc5eb333930dd6f17d0f3be9804c79210503063a06a08e2ee5501437b4d06a24d2f2f717cd
AUX virtualenv_start_pms_2020.patch 493 SHA256 063f728a8d0722daffe395451c04f4be50707f1985f65c4a8d002fe6976e78c2 SHA512 4365b118c93552c89f7d2a9603737553f1e9b7eaf9391edd76adadb1323764fd54b33fc6d1ebbaeaf598a43144bfdc6fa00d24cede155cd88a27b09d52f6e966 WHIRLPOOL ccdf8072560e2d1aa958c842ab7885563c8c88af99339bdedc02dfa81568a70d17c8e3255195f6d7c39fc1f704a02226784cfdfe17654c49229f470253bcbe77
DIST plexmediaserver_1.18.6.2368-97add474d_amd64.deb 86523070 SHA256 918fa163a73721fe19d8866b0cb9843730da00334b90b8d2e062d60b15af6c90 SHA512 e0ec0e2808f756821233cafe18d37255277d486464072cf6adbca75e0623c4271cd311cedb2db329dca043ddcc9eb532593fb6ae98f25268c361e0a7b9ff4324 WHIRLPOOL 31668bca33572a40886af1e6a49cf15e99cc0d9273351c65ba2f21d6c1ba5fa15d317d182cb93871845eea2147c96e6dfa1f191cd9f42794c671e5beba05e8b8
DIST plexmediaserver_1.18.6.2368-97add474d_i386.deb 73367694 SHA256 35483742e05e786d27e85aaaf1bd0cdb6bd998bcde0e66940773cdb0ab428810 SHA512 2e51dd20f17616e54412e4c75a6c4114d33c069cbb4dac4c3940373cb988536697384316415a87d78a4c34ee7eed3ce482abe4b9e9643a3bbac2b5b4678c588a WHIRLPOOL 45afc0d707a898e5fce82ce642e6ac155724816998ca07de4abdef13ced7282ae8aedb410b972d6ad83aca159d7c9a60433ad9c022bd67616036d3ac821c35ba
EBUILD plex-media-server-1.18.6.2368-r1.ebuild 4664 SHA256 82a37f8cab0bac5920c537dd6c496effd97d58cf66e34961a087229ef5a73248 SHA512 ea088a0709aae8dccf967c7183fec4efdd484f7ac9bbaf188034a08cfd8850a16ad0fc0423fdcd4faa3747b9c34005b5927d4a51a677042063f1102670fe6b76 WHIRLPOOL 9dd7ac0be40f529284f05b8ec95597611b95714bbddf3d0199bb4ce77fc6cd87e81d29647ca07ef1a19899b2aedffc35324610ec5e45e981cde29634c69cd6c7
EBUILD plex-media-server-1.18.6.2368.ebuild 4662 SHA256 a19c07555646a10da918eafc182d34e410689db69e9c23643ca96e2841bb87b5 SHA512 f5fde354095c6d0245a38946d5e9e7240ae97b1df237253e602d1bfd7356ef4872417f4a9be4a44b074fd2468224608cfebadef0583f9d1c951d2c55a048a270 WHIRLPOOL 476eed00c0bf6444056c20776abdfc5bc1337418275dcfee15f1d242b1f71fc63662e1dae9b3b575d9aa16569ade9816fa0e2c3c5a1d00124d20c185fa59c4cb
MISC ChangeLog 98820 SHA256 057e4aab975cef4f6802f7667eba18cdbbad1c15e188f94d1e50a1c16f16d975 SHA512 b29c89771318fe247d142dc6c87a8b60b937dc43bc2b86cba38845da7a902db10af5101dc58e80b917e766bb9c96b6fb464c0e5ea6362d3f7cd97e95c877c3d9 WHIRLPOOL f2015d85b99e93a7dbac661edf9db288afecd2735ffbe5d15723c615a96dfca0b9aefd0f63876440034e204d2112c29c7a899818bb8ce4dc235ddaed78e81131
DIST plexmediaserver_1.19.2.2737-b69929dab_amd64.deb 91102918 SHA256 02ac7728bddb92473dcddd5507f7a7e27da32d64aa10524ca520478838dfa4e0 SHA512 4fb5fb617b56612cc00c181bc9cdf757c9df5c725975345d20adb3f656152b556c0120a48e7223c7a042663cbbd1b9da7e3ccf32cf2dfea4cc76ea5bc1b9893c WHIRLPOOL 0a2c2d5ce6d5a40b6c5db1263c5cb9bb0b86a07f84dbb36eea365a79cf5fcc5f8436b8420e06648de3b5a89d178655b3c954242693f63d965dd6e897a22a8773
DIST plexmediaserver_1.19.2.2737-b69929dab_i386.deb 74970900 SHA256 dd3200e565b04626709e3f7fa7e92aacd42f3593a560e9ecc637186ccfc7ed12 SHA512 c48364f683d8a98c6fa70f1a7f16eb0a67313439670f981d54d107983c3ccc4358ddc2c45bc0e1bcdb70cd095f53c53df4625886dee3e050b0d7cccc96d6b8ca WHIRLPOOL 71a16ed520f2d6b1d8a6cea9b513f1a8365c4d18de5a9fd144abc674281ff088cd176ab29db44eae9dcf72513d96a688cf97fb5a6a62225a1fe34f1cfd5dacb0
DIST plexmediaserver_1.19.3.2740-add6f438d_amd64.deb 91086018 SHA256 2cfb86b1216b4826d557d0a5af4bfd9c632a261fe2bc097474481481ed306f5d SHA512 7cf7c32d865184ce654443d4ad39fb9a122b7f31c3f505437311987f39273b7d730c4f78390d46d0a357b5af5259a90ff79b564733503e99f5f850ad60a5f32f WHIRLPOOL d26738f4284494ad544971a20805db26357bf822bdbd9cc6938fd5d18a6de8947044c5f46452affdba266d194248a505abe305dd6113b8e88377601d699fc6b4
DIST plexmediaserver_1.19.3.2740-add6f438d_i386.deb 74936216 SHA256 c3120814c9f0fb388320d013f8b1c11f3c4b2afc6c0f9062f4fb01c475605013 SHA512 e67cf5b6517f8c8074085759cc007941f55076f28564418f05d071bb827f2844788f74af4512bd61c3440f3eec75d41ebf67c8c9a328532cd117ac49aa7c10cc WHIRLPOOL 248104b4bc4d29c2bd62630217c082e69f60bd4b52915f01356ac4dc4d07a15029bd5f3d21e4de46855b9856b51c64c9673359cfcb314940ec567ba4598b36a2
EBUILD plex-media-server-1.19.2.2737.ebuild 4586 SHA256 54c57eb7603f271f1e7724851adf79b7dba51b96297a2b1388f6955c426310a1 SHA512 2fa309f5eba5ba02f4673495d515be2859fec25ea9d2be0547b1c5c506f5aa5953d87c9bb3d48f58b46970b53a394eefef5a32744b87cb4b33e8914dc9f323a3 WHIRLPOOL 3d8ad422defb1761337d80fe22d0f46fb18f8c6fb233f5e86c322c1352ccbb684fb4932177f60324240ac3d45a5bec91a85511938c61e3808c6a7bcb85df1417
EBUILD plex-media-server-1.19.3.2740.ebuild 4588 SHA256 2be6330e644f6fd45d06fe7e541915eda82909c6af05d0c4cc85a232d44be9e9 SHA512 d69667fdd830985c6555198b9058a05c83bc4b6e5dbe9de85fe331cb5e8cc222b72d5e486ad11f8c337a6ffc4dfcbce72847e7e4fde8784bd061cc3d721d12f8 WHIRLPOOL f1f68ac42aaa4d0e32f1b0c3ce1a375c569ebc89f8785f78de9ef444f7d4cc61ff034b5d9a5443578cbec8e5eb502015e1a061893a6bddcd8448ec13468e35a2
MISC ChangeLog 115279 SHA256 febd0ffdc8a0ffb8a50eeab43b4e68100fb65aea33b56a9ffbc19b79ba3c2b7e SHA512 f4f9166c556ac5c0dab13f3613a82c29dbd8258a8ad076dd9e8d0d3028615aa9e21030f765c5c70efb489e3aa5e05cd2b124ec23e352d1ed450bc54dd1453bdf WHIRLPOOL 39db186adde7c79baff9eb2f0edc234e0a859b3501c67a6ccbf8babd2f666281523a04435834078377eb68eb49644eab5c17d4b8db3a4dcd0497495d8b1bf439
MISC metadata.xml 204 SHA256 4a59729f32c56f660840314b13a37f7d224866071518e27d7e0011c9d5f54cc9 SHA512 af986aac43dd32092544662a185f5886ed5a7f0a7c37148513b58423300c8b59912772a37ba7b53c2dde7e1beaa8ae8bf81248d560c4df0b0ae8c5d62ea88c13 WHIRLPOOL 3c0c7ed5a87927c522820e7aa9109af2cb48bd6acb9307f6ec7baecb0c29f41597fdca3e19c6358bf16d08c341b9c301b602debb8f22f23e80fdfae2c56d139c
# default script for Plex Media Server
# the number of plugins that can run at the same time
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
# where the mediaserver should store the transcodes
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
# uncomment to set it to something else
# export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support"
# the user that PMS should run as, defaults to 'plex'
# note that if you change this you might need to move
# the Application Support directory to not lose your
# media library (match what is in /etc/passwd)
export PLEX_MEDIA_SERVER_USER=plex
# Uncomment this to use syslog for logging instead of
# sending logs to Plex Media Server.log
#export PLEX_MEDIA_SERVER_USE_SYSLOG=true
File mode changed from 100755 to 100644
--- ./usr/lib/plexmediaserver/lib/plexmediaserver.service.old 2020-01-29 08:50:39.856491924 +0100
+++ ./usr/lib/plexmediaserver/lib/plexmediaserver.service 2020-01-29 08:51:49.068249688 +0100
@@ -12,7 +12,8 @@
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)"; \
-export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(grep ^VERSION= /etc/os-release | awk -F= "{print \\$2}" | tr -d \\" )"; \
+export GENTOO_PROFILE="`readlink /etc/portage/make.profile`"; \
+export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$${GENTOO_PROFILE#.*/profiles/}"; \
export LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib; \
exec "/usr/lib/plexmediaserver/Plex Media Server"'
Type=simple
#!/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/plex/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 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/plex/plexmediaserver && . /etc/plex/plexmediaserver
# Silently support PLEX_USER if provided as override
if [ "$PLEX_USER" != "" ]; then
export PLEX_MEDIA_SERVER_USER="$PLEX_USER"
fi
# Activate python virtualenv
. "${PLEX_MEDIA_SERVER_HOME}"/Resources/Python/bin/activate
# 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
(cd /usr/lib/plexmediaserver; exec ./Plex\ Media\ Server)
diff -Naur a/usr/sbin/start_pms b/usr/sbin/start_pms
--- a/usr/sbin/start_pms 2020-01-17 05:17:10.000000000 +0100
+++ b/usr/sbin/start_pms 2020-01-22 11:37:31.352913108 +0100
@@ -29,6 +29,9 @@
export PLEX_MEDIA_SERVER_USER="$PLEX_USER"
fi
+# Activate python virtualenv
+. "$PLEX_MEDIA_SERVER_HOME/Resources/Python/bin/activate"
+
# Create AppSuppDir if not present
if [ ! -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" ]; then
mkdir -p "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR"
......@@ -6,7 +6,7 @@ EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit eutils systemd unpacker pax-utils python-single-r1
HASH_VERSION="97add474d"
HASH_VERSION="b69929dab"
_APPNAME="plexmediaserver"
_USERNAME="plex"
......@@ -31,7 +31,6 @@ DEPEND="
$(python_gen_cond_dep '
dev-python/virtualenv[${PYTHON_MULTI_USEDEP}]
')"
BDEPEND="dev-util/patchelf"
RDEPEND="
......@@ -64,9 +63,8 @@ BINS_TO_PAX_MARK=(
S="${WORKDIR}"
PATCHES=(
"${FILESDIR}/virtualenv_start_pms_2020.patch"
"${FILESDIR}/plexmediamanager.desktop.new.patch"
"${FILESDIR}/add_gentoo_profile_as_platform_version.patch"
"${FILESDIR}/plexmediaserver.service.patch"
)
src_unpack() {
......@@ -74,11 +72,12 @@ src_unpack() {
}
src_install() {
# Move the config to the correct place
local config_vanilla="/etc/default/plexmediaserver"
local config_path="/etc/${_SHORTNAME}"
dodir "${config_path}"
sed -e "s#${config_vanilla}#${config_path}/${_APPNAME}#g" -i "${S}"/usr/sbin/start_pms || die
# Install base config file
insinto "/etc/plex/"
newins "${FILESDIR}/etc-plexmediaserver" "plexmediaserver"
# Remove Debian apt repo files
rm -r "etc/apt" || die
# Remove Debian specific files
rm -r "usr/share/doc" || die
......@@ -117,6 +116,10 @@ src_install() {
pax-mark m "${f}"
done
# Install start_pms script
into /usr
dosbin "${FILESDIR}/start_pms"
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
......
......@@ -6,7 +6,7 @@ EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit eutils systemd unpacker pax-utils python-single-r1
HASH_VERSION="97add474d"
HASH_VERSION="add6f438d"
_APPNAME="plexmediaserver"
_USERNAME="plex"
......@@ -31,7 +31,6 @@ DEPEND="
$(python_gen_cond_dep '
dev-python/virtualenv[${PYTHON_MULTI_USEDEP}]
')"
BDEPEND="dev-util/patchelf"
RDEPEND="
......@@ -64,9 +63,8 @@ BINS_TO_PAX_MARK=(
S="${WORKDIR}"
PATCHES=(
"${FILESDIR}/virtualenv_start_pms_2020.patch"
"${FILESDIR}/plexmediamanager.desktop.new.patch"
"${FILESDIR}/add_gentoo_profile_as_platform_version.patch"
"${FILESDIR}/plexmediaserver.service.patch"
)
src_unpack() {
......@@ -74,11 +72,12 @@ src_unpack() {
}
src_install() {
# Move the config to the correct place
local config_vanilla="/etc/default/plexmediaserver"
local config_path="/etc/${_SHORTNAME}"
dodir "${config_path}"
sed -e "s#${config_vanilla}#${config_path}/${_APPNAME}#g" -i "${S}"/usr/sbin/start_pms || die
# Install base config file
insinto "/etc/plex/"
newins "${FILESDIR}/etc-plexmediaserver" "plexmediaserver"
# Remove Debian apt repo files
rm -r "etc/apt" || die
# Remove Debian specific files
rm -r "usr/share/doc" || die
......@@ -117,6 +116,10 @@ src_install() {
pax-mark m "${f}"
done
# Install start_pms script
into /usr
dosbin "${FILESDIR}/start_pms"
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment