aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2017-07-15 20:56:49 +0100
committerPaul Healy <lmiphay@gmail.com>2017-07-15 20:56:49 +0100
commitb175ea42b3be995030ab8cb135d2bd716fc0ba85 (patch)
tree91eedb05e7d0bf12f28d3e1d321e8e149c2087d4 /media-sound
parentrevbump opengrok (diff)
downloadlmiphay-b175ea42b3be995030ab8cb135d2bd716fc0ba85.tar.gz
lmiphay-b175ea42b3be995030ab8cb135d2bd716fc0ba85.tar.bz2
lmiphay-b175ea42b3be995030ab8cb135d2bd716fc0ba85.zip
add nightly build for LMS 7.9.1
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/logitechmediaserver-bin/Manifest4
-rw-r--r--media-sound/logitechmediaserver-bin/files/logitechmediaserver-bin-7.9.1_pre20170715-client-playlists-gentoo.patch11
-rw-r--r--media-sound/logitechmediaserver-bin/files/logitechmediaserver-bin-7.9.1_pre20170715-uuid-gentoo.patch14
-rw-r--r--media-sound/logitechmediaserver-bin/logitechmediaserver-bin-7.9.1_pre20170715.ebuild264
4 files changed, 293 insertions, 0 deletions
diff --git a/media-sound/logitechmediaserver-bin/Manifest b/media-sound/logitechmediaserver-bin/Manifest
index d76864a..34b24d8 100644
--- a/media-sound/logitechmediaserver-bin/Manifest
+++ b/media-sound/logitechmediaserver-bin/Manifest
@@ -5,11 +5,15 @@ AUX logitechmediaserver-bin-7.9.0-client-playlists-gentoo.patch 395 SHA256 8c2cd
AUX logitechmediaserver-bin-7.9.0-uuid-gentoo.patch 525 SHA256 835693474174533f129e9ec7462ef722261951aa363e5a1adbb872f3ed6cb80f SHA512 d4c5adc241f02880bd1d386212e34ba7bf38d7f494dcb74715272ed20cb696e34cbe5dc080bdb4583b262cafb6ad0751ba355fc03e498de11db70e71daa71e8a WHIRLPOOL cff51f8f5ef8bde604d24eea51b8ac0ec2ae52c8a75d5f38343b09ac729a0ac8cb5dcc5d3837170e96041b8745348fcc9ccfffa68c2a23731e796d248040c2c3
AUX logitechmediaserver-bin-7.9.0_pre20160918-client-playlists-gentoo.patch 395 SHA256 8c2cda0cb71a8ee71f36be89ec718caa3be1851562684954d2e826bad147bf2c SHA512 db85dfdc14b3e130381279a24178090251513d43e04e034579fd1f2bc714a83d57287c332981a387e1e52ee73b90ac47ab79eeb6d4b04175f59f511eadd25ab7 WHIRLPOOL 7f8b1c41c8dbe474e3e814cefed96a6e9a01358629f446604064e7ef060218f1537c45ab9f4d51a32cea25a4dd873cb81d0e7e319ed50d745fef523e61a49314
AUX logitechmediaserver-bin-7.9.0_pre20160918-uuid-gentoo.patch 525 SHA256 835693474174533f129e9ec7462ef722261951aa363e5a1adbb872f3ed6cb80f SHA512 d4c5adc241f02880bd1d386212e34ba7bf38d7f494dcb74715272ed20cb696e34cbe5dc080bdb4583b262cafb6ad0751ba355fc03e498de11db70e71daa71e8a WHIRLPOOL cff51f8f5ef8bde604d24eea51b8ac0ec2ae52c8a75d5f38343b09ac729a0ac8cb5dcc5d3837170e96041b8745348fcc9ccfffa68c2a23731e796d248040c2c3
+AUX logitechmediaserver-bin-7.9.1_pre20170715-client-playlists-gentoo.patch 395 SHA256 8c2cda0cb71a8ee71f36be89ec718caa3be1851562684954d2e826bad147bf2c SHA512 db85dfdc14b3e130381279a24178090251513d43e04e034579fd1f2bc714a83d57287c332981a387e1e52ee73b90ac47ab79eeb6d4b04175f59f511eadd25ab7 WHIRLPOOL 7f8b1c41c8dbe474e3e814cefed96a6e9a01358629f446604064e7ef060218f1537c45ab9f4d51a32cea25a4dd873cb81d0e7e319ed50d745fef523e61a49314
+AUX logitechmediaserver-bin-7.9.1_pre20170715-uuid-gentoo.patch 525 SHA256 835693474174533f129e9ec7462ef722261951aa363e5a1adbb872f3ed6cb80f SHA512 d4c5adc241f02880bd1d386212e34ba7bf38d7f494dcb74715272ed20cb696e34cbe5dc080bdb4583b262cafb6ad0751ba355fc03e498de11db70e71daa71e8a WHIRLPOOL cff51f8f5ef8bde604d24eea51b8ac0ec2ae52c8a75d5f38343b09ac729a0ac8cb5dcc5d3837170e96041b8745348fcc9ccfffa68c2a23731e796d248040c2c3
AUX logitechmediaserver.conf.d 477 SHA256 4a2a77f66f35e6ea9867784de04c7552cfe36d9d583bf423ab2e871f85606713 SHA512 686c00e7a28df15369aad74d46700d5a943bf539a57828f83e313d82014c8610c41481aff2678908f90f6bf702c0ac5408bfc7909b155c21ddc5fec21fccac28 WHIRLPOOL 615d2acdeb804507082fe858925a16c228e7d07199ead5443219a5a78c891ae035b7e9046e9a4487e8c838f288d8421fd3cc642a38a0ee21ed3d919c3f673df3
AUX logitechmediaserver.init.d 1127 SHA256 ba1578dc7879dda6aa3120f870bf55e2a5a5f9b0df8730e562c0fcc9f93be930 SHA512 ae2d5580a4706703927cd6a05aa64f3e5fa2a7bd2260885591323266f1fb127e5ef30cb94f5ced2313aabc0d59f9df06178301266d71978561b86419c4d86ae4 WHIRLPOOL f8cb59de1d7cc8951a5ea4aa05d35da59eae19b2db0371f82e32d506f62b8776cc498b08037197365e0d8cc81edb0ab416a583a881044074c21430d17bf3a5ce
AUX logitechmediaserver.logrotate.d 347 SHA256 82fd4cdb8537b610ec220545afc606c4b39481d449c08215073732fa27a247d0 SHA512 5787166d7318e494c574e965f47f6074805371283f5fd33955e02302ba43ffc64b2aa18f1c5a081d23ba49fb76cf512cfd966e5d68496fa54c05f911bab422b6 WHIRLPOOL 297329d107bc41846a4cc617c5cb05983e2839372b2684801d01ecea171d7a31603659d539e19b31559338de1702334d053c174acab697eda3d5f09e01c0efc5
AUX logitechmediaserver.service 506 SHA256 9864bc8dea3d70e19bd2e1fc172b3b03e3115b946c24f331b5d95b10dad61eca SHA512 fee5905f3c9b4ea14a983b5536ef3526943be7fb9b1e0b1c4534bb82c831eb45b6bca5a5f46e021e93ab5140b281dd7583483961f356fc1772c33cdfc00fe422 WHIRLPOOL e10b6346b9c188ef0fa993fac3d181d8621e4ce3a3f59f47ea90f469e758030b4c42f0f6c403766c9481be5d86e4f2f5cad6742f3779e52c5d16d7b5747cc1d3
DIST a321b3b3bb6183eca27e4a509522cbbffbaa3087.zip 189877865 SHA256 4a51a0be7290936680422ee45637d27b089b2941c3574957fe435d1474a99295 SHA512 182572da7864fe9467035c1a3d4b531d8c03fbdb77708cb3d7e88598d79485503e27a9740bf51db578bdcaf1b931adf18a1ce84e840ab63f8b485df296a7feb7 WHIRLPOOL 2dace6f207f2e990a18845c896617608faf37949e3ea8277811bbdacb3b3c28f5a6363b0fbd096157559d98bd59863295850ff574c4b1fe5ac6a8c4e688568c4
DIST logitechmediaserver-7.9.0.tgz 155537396 SHA256 601c2535b18c633b41f57c64d5d74bc7b10a761dfe46b677fa1004d6f28d84a1 SHA512 2422c65fdcbc33e7ee2592a389176532dffc991cd445ee3dda1b4f6a0f76f783d8ccd29e09ecfa50957813b876c275fcde7c207d787dbfa6f633b8da7d4e9ea8 WHIRLPOOL 2ac11a92f8394889660cdc5213d9d05abd24169d5c087639869873c3da739ba62c61519a027c45cd8e2bb97ae0c0913a74cfc78aa227c939f86f0e92534c089f
+DIST logitechmediaserver-7.9.1-1499900819.tgz 162244017 SHA256 64b6bf2ff8408013d40775face9480681939eab02b47c92cf5c7df8987713d22 SHA512 d5f25119b22dc508283907cfa4511e0b1fb0b971c01f1d143c8677380332d069ca4ef2bc3774eae8515dde5b6933e01e6d6bfb737231ad77b1402b5eafe30b75 WHIRLPOOL 8ca961ed3d2feadf4d87f0f29757a1b46a5e40065ffb3a34d4b27f97a91c8b1772f505d29c7510d336d7b0ce7d491f3ae5f2c65180ab7623558e7cd5ccb4e5af
EBUILD logitechmediaserver-bin-7.9.0.ebuild 8478 SHA256 b79c48d3ac11f54038dba62c233967c5ce28c1425402fa6b097a62a1336fb3b8 SHA512 033ec64dcb4dc13d72aceaa345e8b9eed013d57ead54cc8717fe3bcec1a30a7c1f7ee7dc57cb3d3d78bba88b730a23f9572fb53799f344e19e9d5dd63c3353ae WHIRLPOOL afde131c7e3509848bd58d7463dce16545799dbcab22c723dca9dd85198496cbef10868d136decee8ec380a2520e67e00a73672af1789418dd7616870c4c66eb
EBUILD logitechmediaserver-bin-7.9.0_pre20160918.ebuild 73592 SHA256 76031a2f03aa1a0a8396f2441d8abc33aee2a17ae65be1420ab8d23f6f1c2459 SHA512 3598b6d7801a6aa7d80a80e59917db980fda8cd90cced728e3be2a852b5253ef267b72282e172aa869b5e9d7accacdc8ac6ffdaddc086888ac44f22d23e76708 WHIRLPOOL 37e4b127ca36e371ce7ebabfa8793472c5b60b4c5bfcd59e7701c7f75645f14c2376108a0d266154f502e575598117caba91df636c332497ab21582b5fac405a
+EBUILD logitechmediaserver-bin-7.9.1_pre20170715.ebuild 8601 SHA256 94c25026edd60c1885b75bf36235872122010dd6acb454a2a11f9a308f686dff SHA512 ba92f65178e0cf52edee78b630d066b6b1a42f8440cb8e9b36d91569b12ae0ebf41ae18cf039db8d22753c9a5ccd6fa4387a3e1780ef7e2d43820b20ead725c4 WHIRLPOOL 01f8d6e462fa79b44e1d2d9081d45f51b2f4246df7b666eab1bf58ebfe01e988afd31fbfddecf6f7cfad5e2c2300c815f877b845ee42066cce229bbf0ee71282
diff --git a/media-sound/logitechmediaserver-bin/files/logitechmediaserver-bin-7.9.1_pre20170715-client-playlists-gentoo.patch b/media-sound/logitechmediaserver-bin/files/logitechmediaserver-bin-7.9.1_pre20170715-client-playlists-gentoo.patch
new file mode 100644
index 0000000..fc13cca
--- /dev/null
+++ b/media-sound/logitechmediaserver-bin/files/logitechmediaserver-bin-7.9.1_pre20170715-client-playlists-gentoo.patch
@@ -0,0 +1,11 @@
+--- Slim/Player/Playlist.pm.orig 2012-05-29 13:43:52.000000000 +0100
++++ Slim/Player/Playlist.pm 2012-05-29 13:43:52.000000000 +0100
+@@ -1124,7 +1124,7 @@
+ $id =~ s/://g;
+
+ return Slim::Utils::Misc::fileURLFromPath(
+- catfile(Slim::Utils::OSDetect::dirsFor('prefs'), "clientplaylist_$id.m3u")
++ catfile(Slim::Utils::OSDetect::dirsFor('ClientPlaylists'), "clientplaylist_$id.m3u")
+ );
+ }
+
diff --git a/media-sound/logitechmediaserver-bin/files/logitechmediaserver-bin-7.9.1_pre20170715-uuid-gentoo.patch b/media-sound/logitechmediaserver-bin/files/logitechmediaserver-bin-7.9.1_pre20170715-uuid-gentoo.patch
new file mode 100644
index 0000000..756c533
--- /dev/null
+++ b/media-sound/logitechmediaserver-bin/files/logitechmediaserver-bin-7.9.1_pre20170715-uuid-gentoo.patch
@@ -0,0 +1,14 @@
+--- slimserver.pl.orig 2012-05-29 13:43:52.000000000 +0100
++++ slimserver.pl 2012-04-01 22:00:00.000000000 +0100
+@@ -471,8 +471,9 @@
+
+ # Generate a UUID for this SC instance on first-run
+ if ( !$prefs->get('server_uuid') ) {
+- require UUID::Tiny;
+- $prefs->set( server_uuid => UUID::Tiny::create_UUID_as_string( UUID::Tiny::UUID_V4() ) );
++ require Data::UUID;
++ my $ug = new Data::UUID;
++ $prefs->set( server_uuid => lc $ug->create_str() );
+ }
+
+ main::INFOLOG && $log->info("Server binary search path init...");
diff --git a/media-sound/logitechmediaserver-bin/logitechmediaserver-bin-7.9.1_pre20170715.ebuild b/media-sound/logitechmediaserver-bin/logitechmediaserver-bin-7.9.1_pre20170715.ebuild
new file mode 100644
index 0000000..d21b339
--- /dev/null
+++ b/media-sound/logitechmediaserver-bin/logitechmediaserver-bin-7.9.1_pre20170715.ebuild
@@ -0,0 +1,264 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit eutils user systemd
+
+MY_PN="${PN/-bin}"
+
+PERL_VER="5.24"
+
+if [[ ${PV} == *_pre* ]] ; then
+ HASHID="fd6f4e3"
+ BUILDID="1499900819"
+ MY_PV="${PV/_pre*}"
+ SRC_URI="http://downloads.slimdevices.com/nightly/7.9/sc/${HASHID}/${MY_PN}-${MY_PV}-${BUILDID}.tgz"
+ S="${WORKDIR}/${MY_PN}-${MY_PV}-${BUILDID}"
+ KEYWORDS="~amd64"
+elif [[ ${PV} == "9999" ]] ; then
+ EGIT_BRANCH="public/7.9"
+ EGIT_REPO_URI="https://github.com/Logitech/slimserver.git"
+ S="${WORKDIR}/slimserver"
+ inherit git-3
+else
+ SRC_URI="http://downloads.slimdevices.com/LogitechMediaServer_v${PV}/${MY_PN}-${PV}.tgz"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+ KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="Logitech Media Server (streaming audio server)"
+HOMEPAGE="http://github.com/Logitech/slimserver"
+LICENSE="${PN}"
+RESTRICT="bindist mirror"
+SLOT="0"
+IUSE=""
+
+# Installation dependencies.
+DEPEND="
+ !media-sound/squeezecenter
+ !media-sound/squeezeboxserver
+ app-arch/unzip
+ "
+
+# Runtime dependencies.
+RDEPEND="
+ !prefix? ( >=sys-apps/baselayout-2.0.0 )
+ !prefix? ( virtual/logger )
+ app-admin/logrotate
+ =dev-lang/perl-${PERL_VER}*[ithreads]
+ >=dev-perl/Data-UUID-1.202
+ "
+
+QA_PREBUILT="
+ opt/logitechmediaserver/Bin/x86_64-linux/*
+ opt/logitechmediaserver/CPAN/arch/${PERL_VER}/x86_64-linux-thread-multi/*
+"
+
+RUN_UID=logitechmediaserver
+RUN_GID=logitechmediaserver
+
+# Installation locations
+OPTDIR="/opt/${MY_PN}"
+VARDIR="/var/lib/${MY_PN}"
+CACHEDIR="${VARDIR}/cache"
+USRPLUGINSDIR="${VARDIR}/Plugins"
+SVRPLUGINSDIR="${CACHEDIR}/InstalledPlugins"
+CLIENTPLAYLISTSDIR="${VARDIR}/ClientPlaylists"
+PREFSDIR="/etc/${MY_PN}"
+LOGDIR="/var/log/${MY_PN}"
+SVRPREFS="${PREFSDIR}/server.prefs"
+
+# Old Squeezebox Server file locations
+SBS_PREFSDIR='/etc/squeezeboxserver/prefs'
+SBS_SVRPREFS="${SBS_PREFSDIR}/server.prefs"
+SBS_VARLIBDIR='/var/lib/squeezeboxserver'
+SBS_SVRPLUGINSDIR="${SBS_VARLIBDIR}/cache/InstalledPlugins"
+SBS_USRPLUGINSDIR="${SBS_VARLIBDIR}/Plugins"
+
+DOCS="Changelog?.html Installation.txt"
+
+pkg_setup() {
+ enewgroup ${RUN_GID}
+ enewuser ${RUN_UID} -1 -1 "/dev/null" ${RUN_GID}
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-uuid-gentoo.patch"
+ epatch "${FILESDIR}/${P}-client-playlists-gentoo.patch"
+ (cd CPAN/arch && rm -rf 5.10 5.12 5.14 5.16 5.18 5.20 5.22 5.8)
+ (cd CPAN/arch/${PERL_VER} && rm -rf arm-linux* i386-linux*)
+ (cd Bin && rm -rf arm*-linux i86pc-solaris* sparc-linux i386-linux powerpc-linux)
+ eapply_user
+}
+
+src_install() {
+
+ # The custom OS module for Gentoo - provides OS-specific path details
+ cp "${FILESDIR}/gentoo-filepaths.pm" "Slim/Utils/OS/Custom.pm" || die "Unable to install Gentoo custom OS module"
+
+ # Everthing into our package in the /opt hierarchy (LHS)
+ dodir "${OPTDIR}"
+ cp -aR "${S}"/* "${ED}${OPTDIR}" || die "Unable to install package files"
+
+ dodoc ${DOCS}
+ dodoc "${FILESDIR}/Gentoo-plugins-README.txt"
+ dodoc "${FILESDIR}/Gentoo-detailed-changelog.txt"
+
+ # Preferences directory
+ dodir "${PREFSDIR}"
+ fowners ${RUN_UID}:${RUN_GID} "${PREFSDIR}"
+ fperms 770 "${PREFSDIR}"
+
+ # Install init scripts (OpenRC)
+ newconfd "${FILESDIR}/logitechmediaserver.conf.d" "${MY_PN}"
+ newinitd "${FILESDIR}/logitechmediaserver.init.d" "${MY_PN}"
+
+ # Install unit file (systemd)
+ systemd_dounit "${FILESDIR}/${MY_PN}.service"
+
+ # Initialize server cache directory
+ dodir "${CACHEDIR}"
+ fowners ${RUN_UID}:${RUN_GID} "${CACHEDIR}"
+ fperms 770 "${CACHEDIR}"
+
+ # Initialize the log directory
+ dodir "${LOGDIR}"
+ fowners ${RUN_UID}:${RUN_GID} "${LOGDIR}"
+ fperms 770 "${LOGDIR}"
+ touch "${ED}/${LOGDIR}/server.log"
+ touch "${ED}/${LOGDIR}/scanner.log"
+ touch "${ED}/${LOGDIR}/perfmon.log"
+ fowners ${RUN_UID}:${RUN_GID} "${LOGDIR}/server.log"
+ fowners ${RUN_UID}:${RUN_GID} "${LOGDIR}/scanner.log"
+ fowners ${RUN_UID}:${RUN_GID} "${LOGDIR}/perfmon.log"
+
+ # Initialise the user-installed plugins directory
+ dodir "${USRPLUGINSDIR}"
+ fowners ${RUN_UID}:${RUN_GID} "${USRPLUGINSDIR}"
+ fperms 770 "${USRPLUGINSDIR}"
+
+ # Initialise the client playlists directory
+ dodir "${CLIENTPLAYLISTSDIR}"
+ fowners ${RUN_UID}:${RUN_GID} "${CLIENTPLAYLISTSDIR}"
+ fperms 770 "${CLIENTPLAYLISTSDIR}"
+
+ # Install logrotate support
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/logitechmediaserver.logrotate.d" "${MY_PN}"
+}
+
+lms_starting_instr() {
+ elog "Logitech Media Server can be started with the following command (OpenRC):"
+ elog "\t/etc/init.d/logitechmediaserver start"
+ elog "or (systemd):"
+ elog "\tsystemctl start logitechmediaserver"
+ elog ""
+ elog "Logitech Media Server can be automatically started on each boot"
+ elog "with the following command (OpenRC):"
+ elog "\trc-update add logitechmediaserver default"
+ elog "or (systemd):"
+ elog "\tsystemctl enable logitechmediaserver"
+ elog ""
+ elog "You might want to examine and modify the following configuration"
+ elog "file before starting Logitech Media Server:"
+ elog "\t/etc/conf.d/logitechmediaserver"
+ elog ""
+
+ # Discover the port number from the preferences, but if it isn't there
+ # then report the standard one.
+ httpport=$(gawk '$1 == "httpport:" { print $2 }' "${ROOT}${SVRPREFS}" 2>/dev/null)
+ elog "You may access and configure Logitech Media Server by browsing to:"
+ elog "\thttp://localhost:${httpport:-9000}/"
+ elog ""
+}
+
+pkg_postinst() {
+
+ # Point user to database configuration step, if an old installation
+ # of SBS is found.
+ if [ -f "${SBS_SVRPREFS}" ]; then
+ elog "If this is a new installation of Logitech Media Server and you"
+ elog "previously used Squeezebox Server (media-sound/squeezeboxserver)"
+ elog "then you may migrate your previous preferences and plugins by"
+ elog "running the following command (note that this will overwrite any"
+ elog "current preferences and plugins):"
+ elog "\temerge --config =${CATEGORY}/${PF}"
+ elog ""
+ fi
+
+ # Tell use user where they should put any manually-installed plugins.
+ elog "Manually installed plugins should be placed in the following"
+ elog "directory:"
+ elog "\t${USRPLUGINSDIR}"
+ elog ""
+
+ # Show some instructions on starting and accessing the server.
+ lms_starting_instr
+
+ elog "Support thread at: http://forums.slimdevices.com/showthread.php?107110-Logitech-Media-Server-7-9-is-out!"
+}
+
+lms_remove_db_prefs() {
+ MY_PREFS=$1
+
+ einfo "Correcting database connection configuration:"
+ einfo "\t${MY_PREFS}"
+ TMPPREFS="${T}"/lmsserver-prefs-$$
+ touch "${EROOT}${MY_PREFS}"
+ sed -e '/^dbusername:/d' -e '/^dbpassword:/d' -e '/^dbsource:/d' < "${EROOT}${MY_PREFS}" > "${TMPPREFS}"
+ mv "${TMPPREFS}" "${EROOT}${MY_PREFS}"
+ chown ${RUN_UID}:${RUN_GID} "${EROOT}${MY_PREFS}"
+ chmod 660 "${EROOT}${MY_PREFS}"
+}
+
+pkg_config() {
+ einfo "Press ENTER to migrate any preferences from a previous installation of"
+ einfo "Squeezebox Server (media-sound/squeezeboxserver) to this installation"
+ einfo "of Logitech Media Server."
+ einfo ""
+ einfo "Note that this will remove any current preferences and plugins and"
+ einfo "therefore you should take a backup if you wish to preseve any files"
+ einfo "from this current Logitech Media Server installation."
+ einfo ""
+ einfo "Alternatively, press Control-C to abort now..."
+ read
+
+ # Preferences.
+ einfo "Migrating previous Squeezebox Server configuration:"
+ if [ -f "${SBS_SVRPREFS}" ]; then
+ [ -d "${EROOT}${PREFSDIR}" ] && rm -rf "${EROOT}${PREFSDIR}"
+ einfo "\tPreferences (${SBS_PREFSDIR})"
+ cp -r "${EROOT}${SBS_PREFSDIR}" "${EROOT}${PREFSDIR}"
+ chown -R ${RUN_UID}:${RUN_GID} "${EROOT}${PREFSDIR}"
+ chmod -R u+w,g+w "${EROOT}${PREFSDIR}"
+ chmod 770 "${EROOT}${PREFSDIR}"
+ fi
+
+ # Plugins installed through the built-in extension manager.
+ if [ -d "${EROOT}${SBS_SVRPLUGINSDIR}" ]; then
+ einfo "\tServer plugins (${SBS_SVRPLUGINSDIR})"
+ [ -d "${EROOT}${SVRPLUGINSDIR}" ] && rm -rf "${EROOT}${SVRPLUGINSDIR}"
+ cp -r "${EROOT}${SBS_SVRPLUGINSDIR}" "${EROOT}${SVRPLUGINSDIR}"
+ chown -R ${RUN_UID}:${RUN_GID} "${EROOT}${SVRPLUGINSDIR}"
+ chmod -R u+w,g+w "${EROOT}${SVRPLUGINSDIR}"
+ chmod 770 "${EROOT}${SVRPLUGINSDIR}"
+ fi
+
+ # Plugins manually installed by the user.
+ if [ -d "${EROOT}${SBS_USRPLUGINSDIR}" ]; then
+ einfo "\tUser plugins (${SBS_USRPLUGINSDIR})"
+ [ -d "${EROOT}${USRPLUGINSDIR}" ] && rm -rf "${EROOT}${USRPLUGINSDIR}"
+ cp -r "${EROOT}${SBS_USRPLUGINSDIR}" "${EROOT}${USRPLUGINSDIR}"
+ chown -R ${RUN_UID}:${RUN_GID} "${EROOT}${USRPLUGINSDIR}"
+ chmod -R u+w,g+w "${EROOT}${USRPLUGINSDIR}"
+ chmod 770 "${EROOT}${USRPLUGINSDIR}"
+ fi
+
+ # Remove the existing MySQL preferences from Squeezebox Server (if any).
+ lms_remove_db_prefs "${SVRPREFS}"
+
+ # Phew - all done. Give some tips on what to do now.
+ einfo "Done."
+ einfo ""
+}