diff options
author | Joe Peterson <lavajoe@gentoo.org> | 2008-08-31 19:56:40 +0000 |
---|---|---|
committer | Joe Peterson <lavajoe@gentoo.org> | 2008-08-31 19:56:40 +0000 |
commit | ca1aadff0cd0633cce5aca027b07e87a2d03acc6 (patch) | |
tree | f8aa1e5de40fd8da2e56f2a7781a48240b34f501 /media-sound | |
parent | stable on ppc (diff) | |
download | historical-ca1aadff0cd0633cce5aca027b07e87a2d03acc6.tar.gz historical-ca1aadff0cd0633cce5aca027b07e87a2d03acc6.tar.bz2 historical-ca1aadff0cd0633cce5aca027b07e87a2d03acc6.zip |
Add new version 7.2.0; remove old ebuilds and files
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686
Diffstat (limited to 'media-sound')
14 files changed, 147 insertions, 271 deletions
diff --git a/media-sound/squeezecenter/ChangeLog b/media-sound/squeezecenter/ChangeLog index 9db5643ea18b..e4a4a0df2410 100644 --- a/media-sound/squeezecenter/ChangeLog +++ b/media-sound/squeezecenter/ChangeLog @@ -1,6 +1,19 @@ # ChangeLog for media-sound/squeezecenter # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/ChangeLog,v 1.20 2008/08/03 04:35:28 lavajoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/ChangeLog,v 1.21 2008/08/31 19:56:39 lavajoe Exp $ + +*squeezecenter-7.2.0 (31 Aug 2008) + + 31 Aug 2008; Joe Peterson <lavajoe@gentoo.org> + -files/Gentoo-plugins-7.0.2-README.txt, + -files/filepaths-7.0.2-gentoo.patch, -files/squeezecenter-7.0.2.init.d, + -files/mDNSResponder-7.0-gentoo.patch, -files/dbcreate-7.0-gentoo.sql, + -files/dbdrop-7.0-gentoo.sql, -files/avahi-7.0-squeezecenter.service, + -files/squeezecenter-7.0.conf.d, -files/squeezecenter-7.0.init.d, + -files/squeezecenter-7.0.logrotate.d, -files/squeezecenter-7.0.prefs, + +files/filepaths-gentoo.patch, +files/mDNSResponder-gentoo.patch, + -squeezecenter-7.0.1.ebuild, +squeezecenter-7.2.0.ebuild: + Add new version 7.2.0; remove old ebuilds and files *squeezecenter-7.1.0 (03 Aug 2008) diff --git a/media-sound/squeezecenter/Manifest b/media-sound/squeezecenter/Manifest index b8f85a51c516..41628fd167cf 100644 --- a/media-sound/squeezecenter/Manifest +++ b/media-sound/squeezecenter/Manifest @@ -1,27 +1,18 @@ -AUX Gentoo-plugins-7.0.2-README.txt 987 RMD160 cbdbf7e0dafa4affdfa3f065da90303faba990b5 SHA1 dacfca9ad45cc3c0550071f2f4a47af79c218ee4 SHA256 9c955110cc7890cd8d03eaf3bf5c4ca4dc3a42a3b7725fa325b6a2ee890a3707 AUX Gentoo-plugins-README.txt 981 RMD160 d5efb4a5d704ff6b4c3de49b7143cbb9bc132445 SHA1 c3aedb74c3f5b7a54a3bad278750ed1632241e1d SHA256 6f84ab8159022447d3f434afb6403947ae9514fec55f33c9e74257ff75735428 -AUX avahi-7.0-squeezecenter.service 326 RMD160 174b4a900bea817b3b1995449c1c0a0f3f96cacb SHA1 b84fa32fc82c84cb749d8aed2cc4f1367937a4bc SHA256 868102c1b4eb5e497e8a0f899c794023643018b66e8f3855b772908647b59b2d AUX avahi-squeezecenter.service 326 RMD160 174b4a900bea817b3b1995449c1c0a0f3f96cacb SHA1 b84fa32fc82c84cb749d8aed2cc4f1367937a4bc SHA256 868102c1b4eb5e497e8a0f899c794023643018b66e8f3855b772908647b59b2d -AUX dbcreate-7.0-gentoo.sql 165 RMD160 36fe87c398aee02890710f970245032488b857bb SHA1 e86a26c73addb4b74c345ec70155f2b9d079075b SHA256 d8cf85879e74dc1e429251f5bd4ae7f99e2a460fa668c0abde2c2725b90f10a1 AUX dbcreate-gentoo.sql 165 RMD160 36fe87c398aee02890710f970245032488b857bb SHA1 e86a26c73addb4b74c345ec70155f2b9d079075b SHA256 d8cf85879e74dc1e429251f5bd4ae7f99e2a460fa668c0abde2c2725b90f10a1 -AUX dbdrop-7.0-gentoo.sql 64 RMD160 bc60b46ea56642c28ffbd8731e120722e42b66a9 SHA1 a02eab2a62e67d81ff2ad3d3700cd7695f6d31c1 SHA256 0c8e1f3cddd54d6659a014dbcefa928f6d8b9174860cb07d53e01fe9940e8aba AUX dbdrop-gentoo.sql 64 RMD160 bc60b46ea56642c28ffbd8731e120722e42b66a9 SHA1 a02eab2a62e67d81ff2ad3d3700cd7695f6d31c1 SHA256 0c8e1f3cddd54d6659a014dbcefa928f6d8b9174860cb07d53e01fe9940e8aba -AUX filepaths-7.0.2-gentoo.patch 4314 RMD160 966920990c30abf33a509b4b356ac1013d7ed41e SHA1 b3ae5e9c8f15d6b12f322fda26ac7f7541d6b6ea SHA256 a68f1d4214b8d774daa63afdd2345901a5d46bc55812ec2e018622549054d10f AUX filepaths-7.1-gentoo.patch 4328 RMD160 ddbb9c6dae371230bc22efc64dbbf9534ad1a923 SHA1 4b8d9fe565ad56be5f98fa6275d97634990030f4 SHA256 df0edea36a4eb2de0589c776f72e52b24c749cc7d1892041d1dd673433292466 -AUX mDNSResponder-7.0-gentoo.patch 351 RMD160 4ea506094e6cc41a6bf7e3c88b32d3315650db3c SHA1 242f74c0f9c089ab557b70e833a91e6adf18a285 SHA256 31a439f64fa825ff7fda887f7a0dbccc1566cf6ba4e2379273cc4d967ca4886e +AUX filepaths-gentoo.patch 4328 RMD160 ddbb9c6dae371230bc22efc64dbbf9534ad1a923 SHA1 4b8d9fe565ad56be5f98fa6275d97634990030f4 SHA256 df0edea36a4eb2de0589c776f72e52b24c749cc7d1892041d1dd673433292466 AUX mDNSResponder-7.1-gentoo.patch 351 RMD160 c4f7ee74c7ec70496ffe845f10cd61a533742968 SHA1 c5b23edc04d47003cbd66504439a82c6a12c5a8c SHA256 18039bf06a8712195b492f792f78943bae3546d0985f17accb0419efc83e5095 -AUX squeezecenter-7.0.2.init.d 1303 RMD160 a0d7375e1a3732a93dba7136e8bb6f97d470fa76 SHA1 a3566de8b55baa1363d56af949ad398d19562693 SHA256 5fcff7a8de8f5bf2277a037e9de9312db39dcb7433c36a11a286873184b14ef4 -AUX squeezecenter-7.0.conf.d 903 RMD160 e3ef773ec921e47ddb749c56ea0c87b32d4399d7 SHA1 f7aede39aca7f19772579caab9cc86f3b3769ff9 SHA256 bd64fd08949e8d1e56f9efc89a3fa141aa50ba851cedb9435be89c4b506c836a -AUX squeezecenter-7.0.init.d 1294 RMD160 d62389c8deaea434c60c756d24744a4e983abfc6 SHA1 461c88b40634a4e3ed59a51ac1b92d40921a8c72 SHA256 9a5ba0c4bc38167fe0a8893f4447e1e3dac82465d27f6a1aaf65176ff03d35b6 -AUX squeezecenter-7.0.logrotate.d 411 RMD160 6ebb2d8ffca4934f94819096c818c264b1333c2d SHA1 4d13464d59a0f56ab741ccbd135fcebb56f934ea SHA256 8462d5721f29c551bd68886e8a637d22b5e5b1d07b5c51b5390e10c13169a4a2 -AUX squeezecenter-7.0.prefs 126 RMD160 b715267b10e2bc63eaa7da5aa9dd3177dc0e46ee SHA1 3354ce16a5dd453d71c475a8487b43fec34084c2 SHA256 19c74a3838f78c6a076220e749c236564d085c4ef095fa0f77bbb1be74532b2d +AUX mDNSResponder-gentoo.patch 351 RMD160 c4f7ee74c7ec70496ffe845f10cd61a533742968 SHA1 c5b23edc04d47003cbd66504439a82c6a12c5a8c SHA256 18039bf06a8712195b492f792f78943bae3546d0985f17accb0419efc83e5095 AUX squeezecenter.conf.d 903 RMD160 e3ef773ec921e47ddb749c56ea0c87b32d4399d7 SHA1 f7aede39aca7f19772579caab9cc86f3b3769ff9 SHA256 bd64fd08949e8d1e56f9efc89a3fa141aa50ba851cedb9435be89c4b506c836a AUX squeezecenter.init.d 1297 RMD160 3255af0a8c2fc001fa532dc67b5961dc9fa0729a SHA1 f7a9bfc11f1e8fec9bd272e22739e35329549d89 SHA256 90432a539a55d3201be57954e0dc79888d8a7397b020fd8a7470e86abec2ccd6 AUX squeezecenter.logrotate.d 407 RMD160 5a6045321cf1f180ee2ce671d5395cd08379accd SHA1 e1f4c03e9bae354ba44c7fdc59721696c643eb64 SHA256 a98dcb6a95d8711632d6913b7dab221decf35f70858618529b7ae8c103b20a01 AUX squeezecenter.prefs 126 RMD160 b715267b10e2bc63eaa7da5aa9dd3177dc0e46ee SHA1 3354ce16a5dd453d71c475a8487b43fec34084c2 SHA256 19c74a3838f78c6a076220e749c236564d085c4ef095fa0f77bbb1be74532b2d -DIST squeezecenter-7.0.1-noCPAN.tgz 18552404 RMD160 30aa13ba0bb193cedc9b8e91f30bf065c70f0632 SHA1 05957d6354b466154a549c2ce0c237a3e783fe9d SHA256 c4e81549a7e3b46930d9db6ddd95a1bd3e96bd2c5b661352698382802360e798 DIST squeezecenter-7.1-noCPAN.tgz 18785895 RMD160 6826dcdb906f343c5221ab8ff55ac3fe560fd4cc SHA1 6e51608286c238970a4facb26fc1acb3adb6ed07 SHA256 6229d6c96f290ab360351ea993733b2bb6bba352ca97e62d40d1b1f802f0afa8 -EBUILD squeezecenter-7.0.1.ebuild 11509 RMD160 674353d857021e75676ff78588306f59f2fe596b SHA1 102dae63dba1b2cbbc5c3c776e30408ba277e93c SHA256 d09d3f7c8d3be7e2ef53f736b89a2f747c920dfe2db7bf6941d7215bd3ffd78a +DIST squeezecenter-7.2-noCPAN.tgz 22652662 RMD160 e7fdafdb0a91dcde7df403e458bba63f50692122 SHA1 e4b5d2bcb4cbeeb033710a380d121a4927e025f9 SHA256 306c68e427b4ee88babea353b6d00491dceb1d48f8db3c4bbeecd38342fe663c EBUILD squeezecenter-7.1.0.ebuild 12688 RMD160 afc2a731e8acb813cee495fe9f63870167e1875c SHA1 5ae2c8c30f7568152d6aa737b3c7ef7c845d9255 SHA256 d9991d550a29c702edcf58ddaedb4dc9b4bf3de35410972fbf9026acd315562d -MISC ChangeLog 4603 RMD160 babd5e14430322d62a959b577c51dca0b28eb90d SHA1 e1cb468bbd3f3ff19f109db752188a73bc9fd1df SHA256 f97dee9c02f8b136dc568ea4d580775d40057a031fe1761c38546568f2e1d517 +EBUILD squeezecenter-7.2.0.ebuild 12662 RMD160 bf2bc99ac80746a89ae4ad35732570f4bb6c0f03 SHA1 0e0d2f256b34d860fbdea61b1ee2df0c73724242 SHA256 60086604f5eb756374a8bf52992519be557e92a9ae97043a8b66137fc5c9e242 +MISC ChangeLog 5272 RMD160 8e3c1d115f0324657fba9af5074e71460d8e2f23 SHA1 3e48b15700482d479ac1f30bb1cc6d3fe1927089 SHA256 d85854d8d124a5e5255e37e42d201970ec94f683c96b926b9dc2cd1b838cbc57 MISC metadata.xml 919 RMD160 5ab586a81e47fdff99089a0b3cfd1c995780577c SHA1 91eada33b32d317324f62b0441257bcccc68a149 SHA256 03049768a8feb9a753e478a7eda04c500957d5996fad8fc7f30a3c39681fba42 diff --git a/media-sound/squeezecenter/files/Gentoo-plugins-7.0.2-README.txt b/media-sound/squeezecenter/files/Gentoo-plugins-7.0.2-README.txt deleted file mode 100644 index dd14cc682cdd..000000000000 --- a/media-sound/squeezecenter/files/Gentoo-plugins-7.0.2-README.txt +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/Gentoo-plugins-7.0.2-README.txt,v 1.1 2008/05/26 00:18:37 lavajoe Exp $ - -The standard SqueezeCenter package is installed differently on Gentoo in order -that the installation complies with Gentoo's filesystem layout. These notes -are provided to give guidance for installing plugins within this modified -layout. - -INSTALLING PLUGINS - -The installation instructions of plugins should be followed but with the -following Gentoo specifics: - -* Plugins should be installed into the directory: - /var/lib/squeezecenter/Plugins -* Extension binaries (which sometimes accompany plugins) should be installed - into the directory: - /usr/lib/squeezecenter/Bin - -BACKGROUND - -Those interested can refer to the following for details of Gentoo's filesystem -standard: -http://devmanual.gentoo.org/general-concepts/filesystem/index.html diff --git a/media-sound/squeezecenter/files/avahi-7.0-squeezecenter.service b/media-sound/squeezecenter/files/avahi-7.0-squeezecenter.service deleted file mode 100644 index 6643b3fe8d56..000000000000 --- a/media-sound/squeezecenter/files/avahi-7.0-squeezecenter.service +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" standalone='no'?><!--*-nxml-*--> -<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> - -<service-group> - - <name>SqueezeCenter</name> - - <service> - <type>_http._tcp</type> - <port>9000</port> - </service> - - <service> - <type>_slimhttp._tcp</type> - <port>9000</port> - </service> - -</service-group> diff --git a/media-sound/squeezecenter/files/dbcreate-7.0-gentoo.sql b/media-sound/squeezecenter/files/dbcreate-7.0-gentoo.sql deleted file mode 100644 index 939b75a90bad..000000000000 --- a/media-sound/squeezecenter/files/dbcreate-7.0-gentoo.sql +++ /dev/null @@ -1,6 +0,0 @@ -CREATE DATABASE __DATABASE__; - -GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER - ON *.* - TO '__DBUSER__'@'localhost' - IDENTIFIED BY '__DBPASSWORD__' diff --git a/media-sound/squeezecenter/files/dbdrop-7.0-gentoo.sql b/media-sound/squeezecenter/files/dbdrop-7.0-gentoo.sql deleted file mode 100644 index 1d3bc8d696aa..000000000000 --- a/media-sound/squeezecenter/files/dbdrop-7.0-gentoo.sql +++ /dev/null @@ -1,2 +0,0 @@ -DROP DATABASE __DATABASE__; -DROP USER '__DBUSER__'@'localhost'; diff --git a/media-sound/squeezecenter/files/filepaths-7.0.2-gentoo.patch b/media-sound/squeezecenter/files/filepaths-gentoo.patch index b500716abed9..c5c00e28f432 100644 --- a/media-sound/squeezecenter/files/filepaths-7.0.2-gentoo.patch +++ b/media-sound/squeezecenter/files/filepaths-gentoo.patch @@ -1,6 +1,6 @@ ---- Slim/Utils/OSDetect.pm.old 2008-05-23 18:55:39.000000000 +0100 -+++ Slim/Utils/OSDetect.pm 2008-05-26 15:56:10.000000000 +0100 -@@ -248,6 +248,58 @@ +--- Slim/Utils/OSDetect.pm.old 2008-07-22 12:25:34.000000000 +0100 ++++ Slim/Utils/OSDetect.pm 2008-07-22 12:27:06.000000000 +0100 +@@ -253,6 +253,58 @@ warn "dirsFor: Didn't find a match request: [$dir]\n"; } @@ -59,7 +59,7 @@ # Red Hat/Fedora/SUSE RPM specific paths. } elsif (isRHorSUSE()) { -@@ -432,6 +484,19 @@ +@@ -465,6 +517,19 @@ return isReadyNAS(); } @@ -79,7 +79,7 @@ sub isRHorSUSE { # Initialize -@@ -553,6 +618,10 @@ +@@ -586,6 +651,10 @@ $osDetails{'osName'} = 'Debian'; @@ -90,7 +90,7 @@ } elsif (-f '/etc/redhat_release' || -f '/etc/redhat-release') { $osDetails{'osName'} = 'Red Hat'; -@@ -570,7 +639,7 @@ +@@ -603,7 +672,7 @@ $osDetails{'osArch'} = $Config{'myarchname'}; # package specific addition to @INC to cater for plugin locations @@ -99,21 +99,19 @@ unshift @INC, '/usr/share/squeezecenter'; unshift @INC, '/usr/share/squeezecenter/CPAN'; ---- Slim/Music/Import.pm.old 2008-05-23 21:57:18.000000000 +0100 -+++ Slim/Music/Import.pm 2008-05-30 12:29:57.000000000 +0100 -@@ -143,6 +143,10 @@ +--- Slim/Music/Import.pm.old 2008-07-22 12:24:32.000000000 +0100 ++++ Slim/Music/Import.pm 2008-07-22 12:27:06.000000000 +0100 +@@ -128,7 +128,7 @@ - $command = '/usr/sbin/squeezecenter-scanner'; + $command = '/usr/libexec/squeezecenter-scanner'; -+ } elsif (Slim::Utils::OSDetect::isGentoo()) { -+ -+ $command = '/usr/sbin/squeezecenter-scanner'; -+ - } +- } elsif (Slim::Utils::OSDetect::isDebian()) { ++ } elsif (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isGentoo()) { + + $command = '/usr/sbin/squeezecenter-scanner'; - # Bug: 3530 - use the same version of perl we were started with. ---- Slim/bootstrap.pm.old 2008-05-23 21:23:18.000000000 +0100 -+++ Slim/bootstrap.pm 2008-05-26 15:54:12.000000000 +0100 +--- Slim/bootstrap.pm.old 2008-07-22 12:24:09.000000000 +0100 ++++ Slim/bootstrap.pm 2008-07-22 12:27:06.000000000 +0100 @@ -97,8 +97,9 @@ my @SlimINC = (); @@ -141,8 +139,8 @@ $d_startup && printf("Got \@INC containing:\n%s\n\n", join("\n", @INC)); # This works like 'use lib' ---- Slim/Utils/MySQLHelper.pm.old 2008-05-24 13:21:24.000000000 +0100 -+++ Slim/Utils/MySQLHelper.pm 2008-05-26 15:55:55.000000000 +0100 +--- Slim/Utils/MySQLHelper.pm.old 2008-07-22 12:25:31.000000000 +0100 ++++ Slim/Utils/MySQLHelper.pm 2008-07-22 12:27:06.000000000 +0100 @@ -152,7 +152,7 @@ # Because we use the system MySQL, we need to point to the right diff --git a/media-sound/squeezecenter/files/mDNSResponder-7.0-gentoo.patch b/media-sound/squeezecenter/files/mDNSResponder-gentoo.patch index 54e77488eb74..8a3559ed1ee8 100644 --- a/media-sound/squeezecenter/files/mDNSResponder-7.0-gentoo.patch +++ b/media-sound/squeezecenter/files/mDNSResponder-gentoo.patch @@ -1,5 +1,5 @@ ---- Slim/Networking/mDNS.pm.old 2007-12-27 22:08:39.000000000 +0000 -+++ Slim/Networking/mDNS.pm 2007-12-27 22:09:58.000000000 +0000 +--- Slim/Networking/mDNS.pm.old 2008-07-22 12:25:06.000000000 +0100 ++++ Slim/Networking/mDNS.pm 2008-07-22 12:26:38.000000000 +0100 @@ -131,11 +131,10 @@ my ($name, $port) = @$data; diff --git a/media-sound/squeezecenter/files/squeezecenter-7.0.2.init.d b/media-sound/squeezecenter/files/squeezecenter-7.0.2.init.d deleted file mode 100755 index 9f3ee9de709f..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.0.2.init.d +++ /dev/null @@ -1,46 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/squeezecenter-7.0.2.init.d,v 1.2 2008/06/03 21:22:03 lavajoe Exp $ - -# These fit the SqueezeCenter ebuild and so shouldn't need to be changed; -# user-servicable parts go in /etc/conf.d/squeezecenter. -pidfile=/var/run/squeezecenter/squeezecenter.pid -logdir=/var/log/squeezecenter -varlibdir=/var/lib/squeezecenter -prefsdir=${varlibdir}/prefs -cachedir=${varlibdir}/cache -prefsfile=${prefsdir}/squeezecenter.prefs -scuser=squeezecenter -scname=squeezecenter-server - -depend() { - need net mysql -} - -start() { - ebegin "Starting SqueezeCenter" - - cd / - /usr/bin/nice --adjustment=${SC_NICENESS:-0} sudo -u ${scuser} \ - start-stop-daemon \ - --start --exec /usr/bin/perl /usr/sbin/${scname} \ - -- \ - --quiet --daemon \ - --pidfile=${pidfile} \ - --cachedir=${cachedir} \ - --prefsfile=${prefsfile} \ - --prefsdir=${prefsdir} \ - --logdir=${logdir} \ - --audiodir=${SC_MUSIC_DIR} \ - --playlistdir=${SC_PLAYLISTS_DIR} \ - ${SC_OPTS} - - eend $? "Failed to start SqueezeCenter" -} - -stop() { - ebegin "Stopping SqueezeCenter" - start-stop-daemon -o --stop --pidfile ${pidfile} - eend $? "Failed to stop SqueezeCenter" -} diff --git a/media-sound/squeezecenter/files/squeezecenter-7.0.conf.d b/media-sound/squeezecenter/files/squeezecenter-7.0.conf.d deleted file mode 100644 index d7a70fd79adb..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.0.conf.d +++ /dev/null @@ -1,21 +0,0 @@ -# /etc/conf.d/squeezecenter - -# Niceness level for the SqueezeCenter process. If not specified then the -# default is to run at standard priority. Uncomment the following to run at a -# high priority (in order to try to minimise drop-outs due to audio starvation -# of the players): -#SC_NICENESS=-10 - -# Default path of your music library and playlists. You can leave these -# undefined and configure them through the web interface instead. -#SC_MUSIC_DIR=/mnt/media/Music -#SC_PLAYLISTS_DIR=/mnt/media/Playlists - -# The following contains any other options you want to specify, such as default -# logging options. The example below will prevent the discovery and display of -# UPNP devices within your players. -# -# See "squeezecenter.pl --help" for a full list of possible options, but note -# that many of them are supplied by /etc/init.d/squeezecenter and so don't need -# to be present here. -#SC_OPTS="--noupnp" diff --git a/media-sound/squeezecenter/files/squeezecenter-7.0.init.d b/media-sound/squeezecenter/files/squeezecenter-7.0.init.d deleted file mode 100755 index d7ce479ec3bb..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.0.init.d +++ /dev/null @@ -1,46 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/squeezecenter-7.0.init.d,v 1.2 2008/04/20 17:27:13 lavajoe Exp $ - -# These fit the SqueezeCenter ebuild and so shouldn't need to be changed; -# user-servicable parts go in /etc/conf.d/squeezecenter. -pidfile=/var/run/squeezecenter/squeezecenter.pid -logdir=/var/log/squeezecenter -cachedir=/var/cache/squeezecenter -prefsdir=${cachedir}/prefs -prefsfile=/etc/squeezecenter.prefs -scdir=/opt/squeezecenter -scuser=squeezecenter - -depend() { - need net mysql -} - -start() { - ebegin "Starting SqueezeCenter" - - cd / - /usr/bin/nice --adjustment=${SC_NICENESS:-0} sudo -u ${scuser} \ - start-stop-daemon \ - --start --quiet \ - --name slimserver.pl \ - --exec ${scdir}/slimserver.pl -- \ - --quiet --daemon \ - --pidfile=${pidfile} \ - --cachedir=${cachedir} \ - --prefsfile=${prefsfile} \ - --prefsdir=${prefsdir} \ - --logdir=${logdir} \ - --audiodir=${SC_MUSIC_DIR} \ - --playlistdir=${SC_PLAYLISTS_DIR} \ - ${SC_OPTS} - - eend $? "Failed to start SqueezeCenter" -} - -stop() { - ebegin "Stopping SqueezeCenter" - start-stop-daemon -o --stop --quiet --pidfile ${pidfile} - eend $? "Failed to stop SqueezeCenter" -} diff --git a/media-sound/squeezecenter/files/squeezecenter-7.0.logrotate.d b/media-sound/squeezecenter/files/squeezecenter-7.0.logrotate.d deleted file mode 100644 index ff95a284fb5e..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.0.logrotate.d +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/squeezecenter-7.0.logrotate.d,v 1.1 2008/01/07 01:33:35 lavajoe Exp $ - -/var/log/squeezecenter/scanner.log /var/log/squeezecenter/server.log /var/log/squeezecenter/perfmon.log { - missingok - notifempty - copytruncate - rotate 5 - size 100k -} diff --git a/media-sound/squeezecenter/files/squeezecenter-7.0.prefs b/media-sound/squeezecenter/files/squeezecenter-7.0.prefs deleted file mode 100644 index a14b3fab8375..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.0.prefs +++ /dev/null @@ -1,3 +0,0 @@ -dbusername: squeezecenter -dbpassword: TBA -dbsource: dbi:mysql:database=squeezecenter;mysql_socket=/var/run/mysqld/mysqld.sock diff --git a/media-sound/squeezecenter/squeezecenter-7.0.1.ebuild b/media-sound/squeezecenter/squeezecenter-7.2.0.ebuild index 7ffab606d94b..5c99a929e24c 100644 --- a/media-sound/squeezecenter/squeezecenter-7.0.1.ebuild +++ b/media-sound/squeezecenter/squeezecenter-7.2.0.ebuild @@ -1,18 +1,17 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/squeezecenter-7.0.1.ebuild,v 1.1 2008/05/21 16:24:32 lavajoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/squeezecenter-7.2.0.ebuild,v 1.1 2008/08/31 19:56:39 lavajoe Exp $ inherit eutils MAJOR_VER="${PV:0:3}" MINOR_VER="${PV:4:1}" SRC_DIR="SqueezeCenter_v${MAJOR_VER}.${MINOR_VER}" -SRC_FILE="squeezecenter-${MAJOR_VER}.${MINOR_VER}-noCPAN.tgz" -MY_P="squeezecenter-${MAJOR_VER}.${MINOR_VER}-noCPAN" +MY_P="squeezecenter-${MAJOR_VER}-noCPAN" DESCRIPTION="Logitech SqueezeCenter music server" HOMEPAGE="http://www.slimdevices.com/pi_features.html" -SRC_URI="http://www.slimdevices.com/downloads/${SRC_DIR}/${SRC_FILE}" +SRC_URI="http://www.slimdevices.com/downloads/${SRC_DIR}/${MY_P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" @@ -44,10 +43,14 @@ RDEPEND="${DEPEND} S="${WORKDIR}/${MY_P}" -INSTROOT="/opt" -PREFS="/etc/squeezecenter.prefs" -CACHED_PREFS="/var/cache/squeezecenter/prefs/server.prefs" +PREFS="/var/lib/squeezecenter/prefs/squeezecenter.prefs" +LIVE_PREFS="/var/lib/squeezecenter/prefs/server.prefs" +DOCDIR="/usr/share/doc/squeezecenter-${MAJOR_VER}.${MINOR_VER}" +SHAREDIR="/usr/share/squeezecenter" +LIBDIR="/usr/lib/squeezecenter" DBUSER="squeezecenter" +OLDPLUGINSDIR=/opt/squeezecenter/Plugins +NEWPLUGINSDIR=/var/lib/squeezecenter/Plugins pkg_setup() { # Sox has optional OGG support, so make sure it has been built that way @@ -60,7 +63,7 @@ pkg_setup() { # Create the user and group if not already present enewgroup squeezecenter || die - enewuser squeezecenter -1 -1 "${INSTROOT}/squeezecenter" squeezecenter || die + enewuser squeezecenter -1 -1 "/dev/null" squeezecenter || die } src_unpack() { @@ -68,21 +71,8 @@ src_unpack() { cd "${S}" # Apply patches - epatch "${FILESDIR}/mDNSResponder-${MAJOR_VER}-gentoo.patch" - - # Remove bundled binaries that are supplied by other ebuilds - einfo "Removing binaries provided by other ebuilds ..." - rm "${S}"/Bin/*/mDNSResponderPosix || die # net-misc/mDNSResponder - rm "${S}"/Bin/*/alac || die # media-sound/alac_decoder - rm "${S}"/Bin/*/flac || die # media-libs/flac - rm "${S}"/Bin/*/sox || die # media-sound/sox - rm "${S}"/Bin/*/wvunpack || die # media-sound/wavpack - rm "${S}"/Bin/*/mppdec || die # media-sound/musepack-tools - - # Remove bundled MySQL as we depend on an external instance - einfo "Removing bundled MySQL ..." - rm -r "${S}"/MySQL || die - rm "${S}"/Bin/*/mysqld || die # virtual/mysql + epatch "${FILESDIR}/mDNSResponder-gentoo.patch" + epatch "${FILESDIR}/filepaths-gentoo.patch" } src_compile() { @@ -92,29 +82,76 @@ src_compile() { } src_install() { - # Copy all files. - dodir "${INSTROOT}/squeezecenter" - cp -r * "${D}/${INSTROOT}/squeezecenter" - # Install init scripts. - newconfd "${FILESDIR}/squeezecenter-${MAJOR_VER}.conf.d" squeezecenter - newinitd "${FILESDIR}/squeezecenter-${MAJOR_VER}.init.d" squeezecenter - - # Install default preferences. - insinto /etc - newins "${FILESDIR}/squeezecenter-${MAJOR_VER}.prefs" squeezecenter.prefs - - # Install the SQL configuration scripts. - insinto "${INSTROOT}/squeezecenter/SQL/mysql" - doins "${FILESDIR}/dbdrop-${MAJOR_VER}-gentoo.sql" - doins "${FILESDIR}/dbcreate-${MAJOR_VER}-gentoo.sql" - - # Initialize /var/{cache,run}. - keepdir /var/{cache,run}/squeezecenter - fowners squeezecenter:squeezecenter /var/{cache,run}/squeezecenter - fperms 770 /var/{cache,run}/squeezecenter - - # Initialize /var/log. + # The main Perl executables + exeinto /usr/sbin + newexe slimserver.pl squeezecenter-server + newexe scanner.pl squeezecenter-scanner + + # Get the Perl package name and version + eval `perl '-V:package'` + eval `perl '-V:version'` + + # The server Perl modules + dodir "/usr/lib/${package}/vendor_perl/${version}" + cp -r Slim "${D}/usr/lib/${package}/vendor_perl/${version}" + + # Various directories of architecture-independent static files + dodir "${SHAREDIR}" + cp -r Firmware "${D}/${SHAREDIR}" + cp -r Graphics "${D}/${SHAREDIR}" + cp -r HTML "${D}/${SHAREDIR}" + cp -r IR "${D}/${SHAREDIR}" + cp -r SQL "${D}/${SHAREDIR}" + cp -r CPAN "${D}/${SHAREDIR}" + + # Architecture-dependent static files + dodir "${LIBDIR}" + cp -r lib/* "${D}/${LIBDIR}" + + # Strings and version identification + insinto "${SHAREDIR}" + doins strings.txt + doins revision.txt + + # Documentation + dodoc Changelog*.html + dodoc Installation.txt + dodoc License*.txt + newdoc "${FILESDIR}/Gentoo-plugins-README.txt" Gentoo-plugins-README.txt + + # Configuration files + insinto /etc/squeezecenter + doins convert.conf + doins types.conf + doins modules.conf + + # Install init scripts + newconfd "${FILESDIR}/squeezecenter.conf.d" squeezecenter + newinitd "${FILESDIR}/squeezecenter.init.d" squeezecenter + + # Install default preferences + insinto /var/lib/squeezecenter/prefs + newins "${FILESDIR}/squeezecenter.prefs" squeezecenter.prefs + fowners squeezecenter:squeezecenter /var/lib/squeezecenter/prefs + fperms 770 /var/lib/squeezecenter/prefs + + # Install the SQL configuration scripts + insinto "${SHAREDIR}/SQL/mysql" + doins "${FILESDIR}/dbdrop-gentoo.sql" + doins "${FILESDIR}/dbcreate-gentoo.sql" + + # Initialize run directory (where the PID file lives) + dodir /var/run/squeezecenter + fowners squeezecenter:squeezecenter /var/run/squeezecenter + fperms 770 /var/run/squeezecenter + + # Initialize server cache directory + dodir /var/lib/squeezecenter/cache + fowners squeezecenter:squeezecenter /var/lib/squeezecenter/cache + fperms 770 /var/lib/squeezecenter/cache + + # Initialize the log directory dodir /var/log/squeezecenter fowners squeezecenter:squeezecenter /var/log/squeezecenter fperms 770 /var/log/squeezecenter @@ -125,14 +162,17 @@ src_install() { fowners squeezecenter:squeezecenter /var/log/squeezecenter/scanner.log fowners squeezecenter:squeezecenter /var/log/squeezecenter/perfmon.log - # Install logrotate support. + # Initialise the user-installed plugins directory + dodir "${NEWPLUGINSDIR}" + + # Install logrotate support insinto /etc/logrotate.d - newins "${FILESDIR}/squeezecenter-${MAJOR_VER}.logrotate.d" squeezecenter + newins "${FILESDIR}/squeezecenter.logrotate.d" squeezecenter - # Install Avahi support (if USE flag is set). + # Install Avahi support (if USE flag is set) if use avahi; then insinto /etc/avahi/services - newins "${FILESDIR}/avahi-${MAJOR_VER}-squeezecenter.service" squeezecenter.service + newins "${FILESDIR}/avahi-squeezecenter.service" squeezecenter.service fi } @@ -151,7 +191,7 @@ sc_starting_instr() { # 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}${CACHED_PREFS}" 2>/dev/null) + httpport=$(gawk '$1 == "httpport:" { print $2 }' "${ROOT}${LIVE_PREFS}" 2>/dev/null) elog "You may access and configure SqueezeCenter by browsing to:" elog "\thttp://localhost:${httpport:-9000}/" } @@ -288,23 +328,35 @@ pkg_config() { # from this as it probably just indicates that the database wasn't # yet present. einfo "Dropping old SqueezeCenter database and user ..." - sed -e "s/__DATABASE__/${DBUSER}/" -e "s/__DBUSER__/${DBUSER}/" < "${INSTROOT}/squeezecenter/SQL/mysql/dbdrop-${MAJOR_VER}-gentoo.sql" | mysql --user=root --password="${ROOT_PASSWD}" >/dev/null 2>&1 + sed -e "s/__DATABASE__/${DBUSER}/" -e "s/__DBUSER__/${DBUSER}/" < "${SHAREDIR}/SQL/mysql/dbdrop-gentoo.sql" | mysql --user=root --password="${ROOT_PASSWD}" >/dev/null 2>&1 # Drop and create the SqueezeCenter user and database. einfo "Creating SqueezeCenter MySQL user and database (${DBUSER}) ..." - sed -e "s/__DATABASE__/${DBUSER}/" -e "s/__DBUSER__/${DBUSER}/" -e "s/__DBPASSWORD__/${DBUSER_PASSWD}/" < "${INSTROOT}/squeezecenter/SQL/mysql/dbcreate-${MAJOR_VER}-gentoo.sql" | mysql --user=root --password="${ROOT_PASSWD}" || die "Unable to create MySQL database and user" + sed -e "s/__DATABASE__/${DBUSER}/" -e "s/__DBUSER__/${DBUSER}/" -e "s/__DBPASSWORD__/${DBUSER_PASSWD}/" < "${SHAREDIR}/SQL/mysql/dbcreate-gentoo.sql" | mysql --user=root --password="${ROOT_PASSWD}" || die "Unable to create MySQL database and user" # Remove the existing MySQL preferences from SqueezeCenter (if any). sc_remove_db_prefs "${PREFS}" - [ -f "${CACHED_PREFS}" ] && sc_remove_db_prefs ${CACHED_PREFS} + [ -f "${LIVE_PREFS}" ] && sc_remove_db_prefs ${LIVE_PREFS} # Insert the external MySQL configuration into the preferences. sc_update_prefs "${PREFS}" "${DBUSER}" "${DBUSER_PASSWD}" - [ -f "${CACHED_PREFS}" ] && sc_update_prefs "${CACHED_PREFS}" "${DBUSER}" "${DBUSER_PASSWD}" + [ -f "${LIVE_PREFS}" ] && sc_update_prefs "${LIVE_PREFS}" "${DBUSER}" "${DBUSER_PASSWD}" - # Phew - all done. - # Give some tips on what to do now. + # Phew - all done. Give some tips on what to do now. einfo "Database configuration complete." einfo "" sc_starting_instr } + +pkg_preinst() { + # Warn the user if there are old plugins that he may need to migrate + if [ -d "${OLDPLUGINSDIR}" ]; then + if [ ! -z "$(ls ${OLDPLUGINSDIR})" ]; then + ewarn "Note: It appears that plugins are installed in the old location of:" + ewarn "${OLDPLUGINSDIR}" + ewarn "If these are to be used then they must be migrated to the new location:" + ewarn "${NEWPLUGINSDIR}" + ewarn "" + fi + fi +} |