Commit 66cfb529 authored by Jerzy Kołosowski's avatar Jerzy Kołosowski

update plex-media-server ebuilds

parent 6d181186
......@@ -4,7 +4,7 @@ AUX systemd/plex-media-server.service 159 SHA256 5dfda2be8f0d49990418ef770fde1be
AUX virtualenv_start_pms.patch 839 SHA256 1e0a63ee4568f34e1309133a11708d85f3df6a51134c4f630b6fbd0369d3d6e1 SHA512 55fb8f3234942d10c0d6d1820fbab48b8a9f26f069031946dae551cde8b7d18d61ef36ec994719d2519687dc75e5ec27205702395a8af112bda720b7a62072aa WHIRLPOOL 60b680f5d073c2d4a83ac2c7f0034eaf1f03a8449d3beeefaaff6d202a06e909ab975cbc004361badb266114c70f5adf4b0d679acff9baa984e7b1dc7856daf5
DIST plexmediaserver_1.13.2.5154-fd05be322_amd64.deb 111093662 SHA256 53108babdb3b88efe48a69fa9f304190ef18bf00498b4d094accb90bcf39438f SHA512 548c033272d56f6c54ab073536327b285fdbda3192c203a3ea3ff2b6c7afbc79ba7d56d7251f623ca1e09db572c92000d7baa7a8a555d853d85fdb9d1dfb8479 WHIRLPOOL 86b5aa2cb5c7c32b388382af1eca97bd832141159dd9f804c929c01e41ac8eb06a8a0699d76e3ce4ae4b99931e05eed5dd4293d0dd25418110f89b3b9934b152
DIST plexmediaserver_1.13.4.5251-2e6e8f841_amd64.deb 111449174 SHA256 412b307b6d91b28d70c35fa8cdcb231a80ffe929aed14d80a8f245626fa4021d SHA512 0b403ba73513547a801a3024c0c098507853fe684df658f1b80ef125ba56cc3c9627b8544491528135789eb9c2850ea7236b7a049df8f4ffbbdd4c09890bf10e WHIRLPOOL 3713ec7e36bf38739c6279eeb961325c66041f6393f8056ae79cb4a8e2c4a7fe2df7d68b5e4c042e76a9bd04950d8ff4806cf4d4b5e4234e546418dd64509a7f
EBUILD plex-media-server-1.13.2.ebuild 4251 SHA256 759476a6e0331f5de0fafb490538c454d83908aa9f89d3d851717bfcf2e066b9 SHA512 57c4f3c013f1ab61da1e6e7c39e8b479ab3fbca731627cc0c1ccef0175385596130ee1a18c989031a79a62ff1501f34d53203d56b2a981ef22552f95f0475f48 WHIRLPOOL 109ac21dee4627a80ac2db1376cd6d23c4850a71516a351cc89b4a3b2a5ce1e896c8240fd7b2c1e51a7ed83542ceea875936f1b6adc0d0afb9c568b7ec069cbf
EBUILD plex-media-server-1.13.4.ebuild 4253 SHA256 99bc39fc7078025c7fa9d2fc9439506e6b91396060cd2cb8d291bffe79a77e06 SHA512 38d10f59041430b50904e9411c828407152739cab66c65cfbc6b2a3fbbb2532120e0a5213d376a0cf61511dacc80664d733812f071f8616ba627a5c573d9149d WHIRLPOOL f129e021fdd6fd67a6bf70dcf08e858e5e062ea8fcb72ef680995f947b5b27bb9d4d9cc96f65ef03fb338a62841a90329a183033ed4194eca089cccf17abc7cc
EBUILD plex-media-server-1.13.2.ebuild 5372 SHA256 1c0d74985fbfb63b6d91641b27614f91cab23ed8fe202cd30e96db721289733e SHA512 fbe1006100f856c97bc79cba632c72521e8102d09d0be814710ea7db4014ab3b9f064d5cb035b4d5014694eea9ca5aa6157b0f8dfd57ffc337f955124f83badc WHIRLPOOL 34ea7dc763ecc82eae599f58013031eae1989497ffd8cbcdb74d6a41f76a4eca2cfebc1678a4a6074920e826d740008b3e9feae0aa578e2cf623032fd11f9f09
EBUILD plex-media-server-1.13.4.ebuild 5374 SHA256 4563ffba4e77965facf523bb8b0d3b9b060df00a849440911a2c7c043a74ffbb SHA512 b3ded597ab1a5696dabe9892916070eab232d5c36b5a8afce268eb39327ffd0d719189ff698413fea1b808595637496004ae17f6cf738896319986ceebe7eca5 WHIRLPOOL 3f850458dbc002e713b7a3c194257133d6ad9b34bf9d244110eb16a370c7163024384a6677d691edef48f520139226014fb9250cda416a3319cbf2f265dc243f
MISC ChangeLog 40105 SHA256 43bb3005a1794194a989b0c9adb384f56f5c4f3d9ba347fa935a370bd5669c9d SHA512 044348d916e34bceeb7fd7ad30c4cc7232f841887c5f5b6dd461622c1d10d95f8c2c31fdd3c42c222c03190b7c87dd193f0d80bf54722ad94a8d624a4fdd5bca WHIRLPOOL 84bd08e2374dccfea6e850781db4081c797f7f4d425d728884304da4fa62b1738aecbc62ee000b250fe09507b50aaa984f1cc0068cba6eaaaa74d1783fdb4454
MISC metadata.xml 204 SHA256 4a59729f32c56f660840314b13a37f7d224866071518e27d7e0011c9d5f54cc9 SHA512 af986aac43dd32092544662a185f5886ed5a7f0a7c37148513b58423300c8b59912772a37ba7b53c2dde7e1beaa8ae8bf81248d560c4df0b0ae8c5d62ea88c13 WHIRLPOOL 3c0c7ed5a87927c522820e7aa9109af2cb48bd6acb9307f6ec7baecb0c29f41597fdca3e19c6358bf16d08c341b9c301b602debb8f22f23e80fdfae2c56d139c
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
......@@ -6,18 +6,17 @@ EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit eutils user systemd unpacker pax-utils python-single-r1
BUILD="5154"
COMMIT="fd05be322"
MINOR_VERSION="5154-fd05be322"
_APPNAME="plexmediaserver"
_USERNAME="plex"
_SHORTNAME="${_USERNAME}"
_FULL_VERSION="${PV}.${BUILD}-${COMMIT}"
_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/"
HOMEPAGE="https://www.plex.tv/"
SRC_URI="amd64? ( ${URI}/${_FULL_VERSION}/plexmediaserver_${_FULL_VERSION}_amd64.deb )"
SLOT="public"
LICENSE="Plex"
......@@ -34,13 +33,13 @@ RDEPEND="
${PYTHON_DEPS}"
if [ ${SLOT} = "plexpass" ]; then
RDEPEND="${RDEPEND}
!media-tv/plex-media-server:public
"
RDEPEND="${RDEPEND}
!media-tv/plex-media-server:public
"
elif [ ${SLOT} = "public" ]; then
RDEPEND="${RDEPEND}
!media-tv/plex-media-server:plexpass
"
RDEPEND="${RDEPEND}
!media-tv/plex-media-server:plexpass
"
fi
QA_DESKTOP_FILE="usr/share/applications/plexmediamanager.desktop"
......@@ -85,17 +84,24 @@ src_install() {
local LOGGING_DIR="/var/log/pms"
dodir "${LOGGING_DIR}"
chown "${_USERNAME}":"${_USERNAME}" "${ED%/}/${LOGGING_DIR}" || die
keepdir "${LOGGING_DIR}"
# 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
keepdir "${DEFAULT_LIBRARY_DIR}"
# Install the OpenRC init/conf files
doinitd "${FILESDIR}/init.d/${PN}"
doconfd "${FILESDIR}/conf.d/${PN}"
_handle_multilib
# Disabling due to Bug 644694
#_handle_multilib
# Mask Plex libraries so that revdep-rebuild doesn't try to rebuild them.
# Plex has its own precompiled libraries.
_mask_plex_libraries_revdep
# Install systemd service file
local INIT_NAME="${PN}.service"
......@@ -118,6 +124,11 @@ pkg_postinst() {
elog "To start the Plex Server, run 'rc-config start plex-media-server', you will then be able to access your library at http://<ip>:32400/web/"
}
# Disabling the follow function due to Bug 644694.
# We shouldn't register plex libraries in global
# library path since this will cause other packages
# on the system to break.
# Finds out where the library directory is for this system
# and handles ldflags as to not break library dependencies
# during rebuilds.
......@@ -130,7 +141,21 @@ _handle_multilib() {
doenvd "${T}"/66plex
}
# Remove execstack flags from some libraries/executables so that it works in hardened setups.
# 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.
_mask_plex_libraries_revdep() {
dodir /etc/revdep-rebuild/
# Bug: 659702. The upstream plex binary installs its precompiled package to /usr/lib.
# Due to profile 17.1 splitting /usr/lib and /usr/lib64, we can no longer rely
# on the implicit symlink automatically satisfying our revdep requirement when we use $(get_libdir).
# Thus we will match upstream's directory automatically. If upstream switches their location,
# then so should we.
echo "SEARCH_DIRS_MASK=\"${EPREFIX}/usr/lib/plexmediaserver\"" > "${ED}"/etc/revdep-rebuild/80plexmediaserver
}
# 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.
......@@ -144,4 +169,3 @@ _add_pax_markings() {
pax-mark m "${f}"
done
}
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
......@@ -6,18 +6,17 @@ EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit eutils user systemd unpacker pax-utils python-single-r1
BUILD="5251"
COMMIT="2e6e8f841"
MINOR_VERSION="5251-2e6e8f841"
_APPNAME="plexmediaserver"
_USERNAME="plex"
_SHORTNAME="${_USERNAME}"
_FULL_VERSION="${PV}.${BUILD}-${COMMIT}"
_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/"
HOMEPAGE="https://www.plex.tv/"
SRC_URI="amd64? ( ${URI}/${_FULL_VERSION}/plexmediaserver_${_FULL_VERSION}_amd64.deb )"
SLOT="plexpass"
LICENSE="Plex"
......@@ -34,13 +33,13 @@ RDEPEND="
${PYTHON_DEPS}"
if [ ${SLOT} = "plexpass" ]; then
RDEPEND="${RDEPEND}
!media-tv/plex-media-server:public
"
RDEPEND="${RDEPEND}
!media-tv/plex-media-server:public
"
elif [ ${SLOT} = "public" ]; then
RDEPEND="${RDEPEND}
!media-tv/plex-media-server:plexpass
"
RDEPEND="${RDEPEND}
!media-tv/plex-media-server:plexpass
"
fi
QA_DESKTOP_FILE="usr/share/applications/plexmediamanager.desktop"
......@@ -85,17 +84,24 @@ src_install() {
local LOGGING_DIR="/var/log/pms"
dodir "${LOGGING_DIR}"
chown "${_USERNAME}":"${_USERNAME}" "${ED%/}/${LOGGING_DIR}" || die
keepdir "${LOGGING_DIR}"
# 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
keepdir "${DEFAULT_LIBRARY_DIR}"
# Install the OpenRC init/conf files
doinitd "${FILESDIR}/init.d/${PN}"
doconfd "${FILESDIR}/conf.d/${PN}"
_handle_multilib
# Disabling due to Bug 644694
#_handle_multilib
# Mask Plex libraries so that revdep-rebuild doesn't try to rebuild them.
# Plex has its own precompiled libraries.
_mask_plex_libraries_revdep
# Install systemd service file
local INIT_NAME="${PN}.service"
......@@ -118,6 +124,11 @@ pkg_postinst() {
elog "To start the Plex Server, run 'rc-config start plex-media-server', you will then be able to access your library at http://<ip>:32400/web/"
}
# Disabling the follow function due to Bug 644694.
# We shouldn't register plex libraries in global
# library path since this will cause other packages
# on the system to break.
# Finds out where the library directory is for this system
# and handles ldflags as to not break library dependencies
# during rebuilds.
......@@ -130,7 +141,21 @@ _handle_multilib() {
doenvd "${T}"/66plex
}
# Remove execstack flags from some libraries/executables so that it works in hardened setups.
# 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.
_mask_plex_libraries_revdep() {
dodir /etc/revdep-rebuild/
# Bug: 659702. The upstream plex binary installs its precompiled package to /usr/lib.
# Due to profile 17.1 splitting /usr/lib and /usr/lib64, we can no longer rely
# on the implicit symlink automatically satisfying our revdep requirement when we use $(get_libdir).
# Thus we will match upstream's directory automatically. If upstream switches their location,
# then so should we.
echo "SEARCH_DIRS_MASK=\"${EPREFIX}/usr/lib/plexmediaserver\"" > "${ED}"/etc/revdep-rebuild/80plexmediaserver
}
# 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.
......@@ -144,4 +169,3 @@ _add_pax_markings() {
pax-mark m "${f}"
done
}
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