summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Peterson <lavajoe@gentoo.org>2008-12-20 01:24:43 +0000
committerJoe Peterson <lavajoe@gentoo.org>2008-12-20 01:24:43 +0000
commit1aae5377f3b7fa25bea061c606dd4e22146aa0d7 (patch)
treedc925084cf79f8708b613ed614a0ee004be2a2bc /media-sound
parentBe maintainer. Keyword ~amd64. Bump, fixing bug 206780. Also fixing: Bug 2264... (diff)
downloadhistorical-1aae5377f3b7fa25bea061c606dd4e22146aa0d7.tar.gz
historical-1aae5377f3b7fa25bea061c606dd4e22146aa0d7.tar.bz2
historical-1aae5377f3b7fa25bea061c606dd4e22146aa0d7.zip
Add new version 7.3.0
Package-Manager: portage-2.1.6.1/cvs/Linux 2.6.27-gentoo-r4 i686
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/squeezecenter/ChangeLog10
-rw-r--r--media-sound/squeezecenter/Manifest23
-rw-r--r--media-sound/squeezecenter/files/build-perl-modules-gentoo.patch28
-rw-r--r--media-sound/squeezecenter/files/gentoo-filepaths.pm120
-rw-r--r--media-sound/squeezecenter/files/mDNSResponder-gentoo.patch4
-rw-r--r--media-sound/squeezecenter/files/squeezecenter.conf.d4
-rwxr-xr-xmedia-sound/squeezecenter/files/squeezecenter.init.d30
-rw-r--r--media-sound/squeezecenter/squeezecenter-7.3.0.ebuild392
8 files changed, 572 insertions, 39 deletions
diff --git a/media-sound/squeezecenter/ChangeLog b/media-sound/squeezecenter/ChangeLog
index 4816204db72f..c1073af92d22 100644
--- a/media-sound/squeezecenter/ChangeLog
+++ b/media-sound/squeezecenter/ChangeLog
@@ -1,6 +1,14 @@
# 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.34 2008/11/18 16:15:29 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/ChangeLog,v 1.35 2008/12/20 01:24:43 lavajoe Exp $
+
+*squeezecenter-7.3.0 (20 Dec 2008)
+
+ 20 Dec 2008; Joe Peterson <lavajoe@gentoo.org>
+ files/build-perl-modules-gentoo.patch, +files/gentoo-filepaths.pm,
+ files/mDNSResponder-gentoo.patch, files/squeezecenter.conf.d,
+ files/squeezecenter.init.d, +squeezecenter-7.3.0.ebuild:
+ Add new version 7.3.0
18 Nov 2008; Torsten Veller <tove@gentoo.org>
squeezecenter-7.1.0-r1.ebuild, squeezecenter-7.2.0-r1.ebuild,
diff --git a/media-sound/squeezecenter/Manifest b/media-sound/squeezecenter/Manifest
index eb15ededabb7..239e6d7757bc 100644
--- a/media-sound/squeezecenter/Manifest
+++ b/media-sound/squeezecenter/Manifest
@@ -1,17 +1,15 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX Gentoo-plugins-README.txt 981 RMD160 d5efb4a5d704ff6b4c3de49b7143cbb9bc132445 SHA1 c3aedb74c3f5b7a54a3bad278750ed1632241e1d SHA256 6f84ab8159022447d3f434afb6403947ae9514fec55f33c9e74257ff75735428
AUX avahi-squeezecenter.service 326 RMD160 174b4a900bea817b3b1995449c1c0a0f3f96cacb SHA1 b84fa32fc82c84cb749d8aed2cc4f1367937a4bc SHA256 868102c1b4eb5e497e8a0f899c794023643018b66e8f3855b772908647b59b2d
-AUX build-perl-modules-gentoo.patch 1551 RMD160 66fe142a051711c40adf8098cd98b46373d54d22 SHA1 0b82c9be74339e50836256988b0b50b7bcd6c9c9 SHA256 a0035e8daafb392ca05ffeae13cba69718024c92524df2fa4a2bd075bf3c6a92
+AUX build-perl-modules-gentoo.patch 2214 RMD160 0686bf15b2bfaa30b7977433c2df23b09ca44ab5 SHA1 ad4d6687a37e8e1f0cbd2e8c6a46a05ee84f4b76 SHA256 75929caaeb955762e70a0e1a4a5ece9a444a372ec24ffdb3bec5ab245823f764
AUX dbcreate-gentoo.sql 165 RMD160 36fe87c398aee02890710f970245032488b857bb SHA1 e86a26c73addb4b74c345ec70155f2b9d079075b SHA256 d8cf85879e74dc1e429251f5bd4ae7f99e2a460fa668c0abde2c2725b90f10a1
AUX dbdrop-gentoo.sql 64 RMD160 bc60b46ea56642c28ffbd8731e120722e42b66a9 SHA1 a02eab2a62e67d81ff2ad3d3700cd7695f6d31c1 SHA256 0c8e1f3cddd54d6659a014dbcefa928f6d8b9174860cb07d53e01fe9940e8aba
AUX filepaths-7.1-gentoo.patch 4328 RMD160 ddbb9c6dae371230bc22efc64dbbf9534ad1a923 SHA1 4b8d9fe565ad56be5f98fa6275d97634990030f4 SHA256 df0edea36a4eb2de0589c776f72e52b24c749cc7d1892041d1dd673433292466
AUX filepaths-gentoo.patch 4328 RMD160 ddbb9c6dae371230bc22efc64dbbf9534ad1a923 SHA1 4b8d9fe565ad56be5f98fa6275d97634990030f4 SHA256 df0edea36a4eb2de0589c776f72e52b24c749cc7d1892041d1dd673433292466
+AUX gentoo-filepaths.pm 2688 RMD160 0d4ab3ad5ae5d20cf1608ad6f3fd3257eeda20ec SHA1 ceaec7483f20f1edea03b6e71f04bce88a4ec8e0 SHA256 1ccc31d75eccbaa3d089d291e96e3b1b1332041ef5eadacd3d6aa3942e7d52be
AUX mDNSResponder-7.1-gentoo.patch 351 RMD160 c4f7ee74c7ec70496ffe845f10cd61a533742968 SHA1 c5b23edc04d47003cbd66504439a82c6a12c5a8c SHA256 18039bf06a8712195b492f792f78943bae3546d0985f17accb0419efc83e5095
-AUX mDNSResponder-gentoo.patch 351 RMD160 c4f7ee74c7ec70496ffe845f10cd61a533742968 SHA1 c5b23edc04d47003cbd66504439a82c6a12c5a8c SHA256 18039bf06a8712195b492f792f78943bae3546d0985f17accb0419efc83e5095
-AUX squeezecenter.conf.d 1086 RMD160 f2aba51101c414ad3a75bef23301b500d9c0232c SHA1 523e32eee3d1bf23733669e11c32a75c0bd75bfd SHA256 2afcaf5e31ef84eae29e0fa7e43516a16e52e0ecaa828c3cd0e8cd1035fd5799
-AUX squeezecenter.init.d 1314 RMD160 eb37f6daffe617fa8aeb95068e38ea94a68823ee SHA1 e1fdaa194474b29a86f4a4c31d089f08234a6730 SHA256 cf4b77c842e052737e45f236298c7c5984465e0bab892bf17db1b3508bca1f15
+AUX mDNSResponder-gentoo.patch 351 RMD160 084a1374d5f8f9f4586bfade7a1bda22a4f78381 SHA1 86a4e0ed901172ac68c46616cc58a7629cb6a18a SHA256 fcc17eecdef9a3dafd23b36fbea1cba649aee786649aa238eb5782f23c10ea2d
+AUX squeezecenter.conf.d 1087 RMD160 e979e2bfe070024f46f7f0005de6e7ae11623bdb SHA1 ad69cfdf0f0ace7d44d479e7a7e1ad79a9f86be6 SHA256 7509d6cbc013ddb9c5cbdfe1fe2b81ae3a7f6eb1dc6e119b1ee37553a8f8a69f
+AUX squeezecenter.init.d 1338 RMD160 8d97de1146151cad44844146f390ac44edf4bc03 SHA1 c4dd848fbf2a0fba44bec7bcb8f92f4eaf278faf SHA256 32845b5669164930088c61ba422e2d4b5a128bbdc8d27aebe70f689ea06de1c2
AUX squeezecenter.logrotate.d 407 RMD160 5a6045321cf1f180ee2ce671d5395cd08379accd SHA1 e1f4c03e9bae354ba44c7fdc59721696c643eb64 SHA256 a98dcb6a95d8711632d6913b7dab221decf35f70858618529b7ae8c103b20a01
AUX squeezecenter.prefs 126 RMD160 b715267b10e2bc63eaa7da5aa9dd3177dc0e46ee SHA1 3354ce16a5dd453d71c475a8487b43fec34084c2 SHA256 19c74a3838f78c6a076220e749c236564d085c4ef095fa0f77bbb1be74532b2d
DIST SqueezeCenter-AutoXS-Header-0.03.tar.gz 2497 RMD160 91ae4b03d47d3773747f2f69c992c54a1e6ff2bb SHA1 f6f106412fb603abefefec8a640ce4713a50a1f7 SHA256 59ee972bf0ea3e85fbcb619863e2cd47ad5646a849409c9a65123fffdb77519a
@@ -32,15 +30,10 @@ DIST SqueezeCenter-YAML-Syck-0.64.tar.gz 128255 RMD160 07045a46e23e12125c586248f
DIST squeezecenter-7.1-noCPAN.tgz 18785895 RMD160 6826dcdb906f343c5221ab8ff55ac3fe560fd4cc SHA1 6e51608286c238970a4facb26fc1acb3adb6ed07 SHA256 6229d6c96f290ab360351ea993733b2bb6bba352ca97e62d40d1b1f802f0afa8
DIST squeezecenter-7.2-noCPAN.tgz 22652662 RMD160 e7fdafdb0a91dcde7df403e458bba63f50692122 SHA1 e4b5d2bcb4cbeeb033710a380d121a4927e025f9 SHA256 306c68e427b4ee88babea353b6d00491dceb1d48f8db3c4bbeecd38342fe663c
DIST squeezecenter-7.2.1-noCPAN.tgz 22681495 RMD160 ed7ee0f27b15edc307a6fa2b8ec49abb7731e10a SHA1 a954510933928a1a98d8f1c8bbf21d48c9ffd202 SHA256 d603f9d4affad68a537230bf66cb170f691919d4696873b41452a88ba77480ae
+DIST squeezecenter-7.3-noCPAN.tgz 23756416 RMD160 648b396be2ff7c64c1e13874141ceb326211dfb3 SHA1 e54402cf016ca9f068ffcf2cafcebc5412843aca SHA256 bc91344af84505f04298d4a8f1f519c42ead1a4d61d33645dc1fe71ec98258f7
EBUILD squeezecenter-7.1.0-r1.ebuild 13058 RMD160 25e1d30268ddb1e03dc8b281455e3de9c894ca7e SHA1 8952f15b62700d17b4de626decc5725f5fd9513f SHA256 3141c32deaafe93a7e0331abd28b9d58b2eaa2be7cd9f0af01af0113d9084ea0
EBUILD squeezecenter-7.2.0-r1.ebuild 13035 RMD160 aa0cf2b49a9233e7c4d3c3716d925b76f4313b77 SHA1 c351aebb1dd2a0dfdf545de007211394c10b4a41 SHA256 4bf15144a2306578cd12b5c58b49b60747e124873862200e1c250af303d747ee
EBUILD squeezecenter-7.2.1.ebuild 13953 RMD160 50f4112c1a6b0ff031f423ca7bc6129bab311d4f SHA1 d3f4fcd74c51e436cc6ea1b6fca51cc95579c710 SHA256 502c88dc62b02ee2386c58f12d68fd7768cba94f825dde5fdd089fdeab3af3f1
-MISC ChangeLog 7071 RMD160 1538b28c21aaddd40a98d3b5264884d5b5fa2105 SHA1 6b0032be63ea924ed176f7669b48d4bab489a58a SHA256 e406971be61c45b309bf4938077d4a89e04989b43e25b670a9b3828005783457
+EBUILD squeezecenter-7.3.0.ebuild 14586 RMD160 a71e0f2aa15e1736fcc87419cab871796af02f55 SHA1 b70fef2ea3b64855a2f70dd62f7496ff1f639ea3 SHA256 ace2578c9388e017d3bc20bac735853dfceb15cf6462ae5ac43ad8768966b573
+MISC ChangeLog 7376 RMD160 a2d43039a8c095ac797e1450613508c1776b713b SHA1 2f4b01ae2627a5ef939c062a32593f46803ad004 SHA256 31e1d32f8c059dd83eeee9fe562bf2f60c6f3a53a099aae3b0154eaa96612a9a
MISC metadata.xml 1030 RMD160 e1d4c5948b583040d153fb5c504855d018d64930 SHA1 533aa2ee17648b8b6beaf0c63cf897ffff97a40d SHA256 8796af3188ab311eb971bdefe726ef47e9d7d39dab6956e22ab51acbc90a77c9
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
-
-iEYEARECAAYFAkki6hIACgkQV3J2n04EauxMZACfe191RQX0WHDXHW0bddNa6sD5
-r7wAoNYRc5rv25xXB41MeuJK4xiv5cAY
-=Pb9Q
------END PGP SIGNATURE-----
diff --git a/media-sound/squeezecenter/files/build-perl-modules-gentoo.patch b/media-sound/squeezecenter/files/build-perl-modules-gentoo.patch
index 94997d56782d..6ae452f8604d 100644
--- a/media-sound/squeezecenter/files/build-perl-modules-gentoo.patch
+++ b/media-sound/squeezecenter/files/build-perl-modules-gentoo.patch
@@ -1,18 +1,24 @@
---- Bin/build-perl-modules.pl.old 2008-10-25 13:59:42.000000000 +0100
-+++ Bin/build-perl-modules.pl 2008-10-25 19:28:25.000000000 +0100
-@@ -21,7 +21,6 @@
+--- Bin/build-perl-modules.pl.old 2008-11-18 19:07:45.000000000 +0000
++++ Bin/build-perl-modules.pl 2008-11-18 19:42:04.000000000 +0000
+@@ -21,13 +21,11 @@
# NOTE: If you change this in a future version of SC, create a new
# versioned directory under vendor/src for all files for that version
--my $SOURCE = 'http://svn.slimdevices.com/repos/slim/vendor/src/7.2';
+-my $SOURCE = 'http://svn.slimdevices.com/repos/slim/vendor/src/7.3';
my $dlext = $Config{'dlext'};
# The list of all the packages needed.
-@@ -197,36 +197,16 @@
+ my %packages = (
+ 'Class::XSAccessor::Array' => 'Class-XSAccessor-Array-0.05.tar.gz',
+- 'Class::C3::XS' => 'Class-C3-XS-0.08.tar.gz',
+ 'Compress::Zlib' => 'Compress-Zlib-1.41.tar.gz',
+ 'DBI' => 'DBI-1.604.tar.gz',
+ 'DBD::mysql' => 'DBD-mysql-3.0002.tar.gz',
+@@ -197,36 +195,16 @@
}
}
-+ # Extract AutoXS::Header as we need that to support the following builds.
++ # Utilise AutoXS::Header as we need that to support the following builds.
+ chdir($pwd) or die "Couldn't change to $pwd : $!";
+ # Include this when performing the following builds.
+ $ENV{'PERL5LIB'} = cwd() . "/AutoXS-Header-0.03/lib";
@@ -51,3 +57,13 @@
# Just the directory name.
my ($packageDir) = ($package =~ /(\S+?)\.tar\.gz/);
+--- Slim/bootstrap.pm.old 2008-11-22 15:14:07.000000000 +0000
++++ Slim/bootstrap.pm 2008-11-22 15:14:30.000000000 +0000
+@@ -176,7 +176,6 @@
+
+ print "The following modules failed to load: $failed\n\n";
+
+- print "To download and compile them, please run: $libPath/Bin/build-perl-modules.pl $failed\n\n";
+ print "Exiting..\n";
+
+ exit;
diff --git a/media-sound/squeezecenter/files/gentoo-filepaths.pm b/media-sound/squeezecenter/files/gentoo-filepaths.pm
new file mode 100644
index 000000000000..1a0564b6ad25
--- /dev/null
+++ b/media-sound/squeezecenter/files/gentoo-filepaths.pm
@@ -0,0 +1,120 @@
+# 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-filepaths.pm,v 1.1 2008/12/20 01:24:43 lavajoe Exp $
+
+# This file contains a custom OS package to provide information on the
+# installation structure on Gentoo. It is based on the Debian OS equivalent
+# that is built into SqueezeCenter.
+
+package Slim::Utils::OS::Custom;
+
+use strict;
+use File::Spec::Functions qw(:ALL);
+use FindBin qw($Bin);
+use Config;
+
+use base qw(Slim::Utils::OS::Linux);
+
+sub initDetails {
+ my $class = shift;
+
+ $class->{osDetails} = $class->SUPER::initDetails();
+
+ $class->{osDetails}->{isGentoo} = 1 ;
+
+ # Make sure we can find any CPAN modules packaged with SqueezeCenter.
+ unshift @INC, '/usr/share/squeezecenter/CPAN';
+
+ # Make sure plugin files are found.
+ push @INC, '/var/lib/squeezecenter';
+
+ return $class->{osDetails};
+}
+
+=head2 dirsFor( $dir )
+
+Return OS Specific directories.
+
+Argument $dir is a string to indicate which of the SqueezeCenter directories we
+need information for.
+
+=cut
+
+sub dirsFor {
+ my ($class, $dir) = @_;
+
+ my @dirs = ();
+
+ if ($dir eq 'oldprefs') {
+
+ push @dirs, $class->SUPER::dirsFor($dir);
+
+ } elsif ($dir =~ /^(?:Firmware|Graphics|HTML|IR|MySQL|SQL|lib|Bin)$/) {
+
+ push @dirs, "/usr/share/squeezecenter/$dir";
+
+ } elsif ($dir eq 'Plugins') {
+
+ push @dirs, $class->SUPER::dirsFor($dir);
+ push @dirs, "/var/lib/squeezecenter/Plugins", "/usr/lib/" . $Config{'package'} . "/vendor_perl/" . $Config{'version'} . "/Slim/Plugin";
+
+ } elsif ($dir =~ /^(?:strings|revision)$/) {
+
+ push @dirs, "/usr/share/squeezecenter";
+
+ } elsif ($dir eq 'libpath') {
+
+ push @dirs, "/usr/lib/squeezecenter";
+
+ # Because we use the system MySQL, we need to point to the right
+ # directory for the errmsg. files. Default to english.
+ } elsif ($dir eq 'mysql-language') {
+
+ push @dirs, "/usr/share/mysql/english";
+
+ } elsif ($dir =~ /^(?:types|convert)$/) {
+
+ push @dirs, "/etc/squeezecenter";
+
+ } elsif ($dir =~ /^(?:prefs)$/) {
+
+ push @dirs, $::prefsdir || "/var/lib/squeezecenter/prefs";
+
+ } elsif ($dir eq 'log') {
+
+ push @dirs, $::logdir || "/var/log/squeezecenter";
+
+ } elsif ($dir eq 'cache') {
+
+ push @dirs, $::cachedir || "/var/lib/squeezecenter/cache";
+
+ } elsif ($dir =~ /^(?:music|playlists)$/) {
+
+ push @dirs, '';
+
+ } else {
+
+ warn "dirsFor: Didn't find a match request: [$dir]\n";
+ }
+
+ return wantarray() ? @dirs : $dirs[0];
+}
+
+# Bug 9488, always decode on Ubuntu/Debian
+sub decodeExternalHelperPath {
+ return Slim::Utils::Unicode::utf8decode_locale($_[1]);
+}
+
+sub scanner {
+ return '/usr/sbin/squeezecenter-scanner';
+}
+
+
+1;
+
+
+
+
+1;
+
+__END__
diff --git a/media-sound/squeezecenter/files/mDNSResponder-gentoo.patch b/media-sound/squeezecenter/files/mDNSResponder-gentoo.patch
index 8a3559ed1ee8..daa2a4ea8bb8 100644
--- a/media-sound/squeezecenter/files/mDNSResponder-gentoo.patch
+++ b/media-sound/squeezecenter/files/mDNSResponder-gentoo.patch
@@ -1,5 +1,5 @@
---- 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
+--- Slim/Networking/mDNS.pm.old 2008-10-27 08:09:02.000000000 +0000
++++ Slim/Networking/mDNS.pm 2008-10-27 08:09:02.000000000 +0000
@@ -131,11 +131,10 @@
my ($name, $port) = @$data;
diff --git a/media-sound/squeezecenter/files/squeezecenter.conf.d b/media-sound/squeezecenter/files/squeezecenter.conf.d
index 535323a60087..4faca2bf422d 100644
--- a/media-sound/squeezecenter/files/squeezecenter.conf.d
+++ b/media-sound/squeezecenter/files/squeezecenter.conf.d
@@ -1,6 +1,6 @@
# /etc/conf.d/squeezecenter
-# Niceness level for the SqueezeCenter process. If not specified then the
+# 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). Note that this requires "OpenRC", which will become the
@@ -15,7 +15,7 @@
# 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.
+# UPnP devices within your players.
#
# See "squeezecenter-server --help" for a full list of possible options,
# but note that many of them are supplied by /etc/init.d/squeezecenter
diff --git a/media-sound/squeezecenter/files/squeezecenter.init.d b/media-sound/squeezecenter/files/squeezecenter.init.d
index d6cdd90e4da5..7082830bcb86 100755
--- a/media-sound/squeezecenter/files/squeezecenter.init.d
+++ b/media-sound/squeezecenter/files/squeezecenter.init.d
@@ -1,7 +1,7 @@
#!/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.init.d,v 1.2 2008/11/11 14:03:15 lavajoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.init.d,v 1.3 2008/12/20 01:24:43 lavajoe Exp $
# These fit the SqueezeCenter ebuild and so shouldn't need to be changed;
# user-servicable parts go in /etc/conf.d/squeezecenter.
@@ -21,20 +21,24 @@ depend() {
start() {
ebegin "Starting SqueezeCenter"
- export SSD_NICELEVEL=${SC_NICENESS}
+ export SSD_NICELEVEL=${SC_NICENESS}
cd /
start-stop-daemon \
- --start --exec /usr/bin/perl /usr/sbin/${scname} --chuid ${scuser} \
- -- \
- --quiet --daemon \
- --pidfile=${pidfile} \
- --cachedir=${cachedir} \
- --prefsfile=${prefsfile} \
- --prefsdir=${prefsdir} \
- --logdir=${logdir} \
- --audiodir=${SC_MUSIC_DIR} \
- --playlistdir=${SC_PLAYLISTS_DIR} \
- ${SC_OPTS}
+ --start --exec /usr/bin/perl /usr/sbin/${scname} \
+ --pidfile ${pidfile} \
+ --startas /usr/sbin/${scname} \
+ --chuid ${scuser} \
+ -- \
+ --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"
}
diff --git a/media-sound/squeezecenter/squeezecenter-7.3.0.ebuild b/media-sound/squeezecenter/squeezecenter-7.3.0.ebuild
new file mode 100644
index 000000000000..325d121ccea8
--- /dev/null
+++ b/media-sound/squeezecenter/squeezecenter-7.3.0.ebuild
@@ -0,0 +1,392 @@
+# 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.3.0.ebuild,v 1.1 2008/12/20 01:24:43 lavajoe Exp $
+
+inherit eutils
+
+MAJOR_VER="${PV:0:3}"
+MINOR_VER="${PV:4:1}"
+SRC_DIR="SqueezeCenter_v${MAJOR_VER}.${MINOR_VER}"
+MY_P="squeezecenter-${MAJOR_VER}-noCPAN"
+
+DESCRIPTION="Logitech SqueezeCenter music server"
+HOMEPAGE="http://www.slimdevices.com/pi_features.html"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="lame wavpack musepack alac ogg bonjour flac avahi"
+
+SRC_URI="http://www.slimdevices.com/downloads/${SRC_DIR}/${MY_P}.tgz
+ mirror://gentoo/SqueezeCenter-AutoXS-Header-0.03.tar.gz
+ mirror://gentoo/SqueezeCenter-Class-XSAccessor-Array-0.05.tar.gz
+ mirror://gentoo/SqueezeCenter-Compress-Zlib-1.41.tar.gz
+ mirror://gentoo/SqueezeCenter-DBD-mysql-3.0002.tar.gz
+ mirror://gentoo/SqueezeCenter-DBI-1.604.tar.gz
+ mirror://gentoo/SqueezeCenter-Digest-SHA1-2.11.tar.gz
+ mirror://gentoo/SqueezeCenter-Encode-Detect-1.00.tar.gz
+ mirror://gentoo/SqueezeCenter-HTML-Parser-3.48.tar.gz
+ mirror://gentoo/SqueezeCenter-JSON-XS-1.5.tar.gz
+ mirror://gentoo/SqueezeCenter-POE-XS-Queue-Array-0.002.tar.gz
+ mirror://gentoo/SqueezeCenter-Template-Toolkit-2.15.tar.gz
+ mirror://gentoo/SqueezeCenter-Time-HiRes-1.86.tar.gz
+ mirror://gentoo/SqueezeCenter-XML-Parser-2.34.tar.gz
+ mirror://gentoo/SqueezeCenter-YAML-Syck-0.64.tar.gz"
+
+# Note: dev-perl/module-build necessary because of SC bug#5882
+# (http://bugs.slimdevices.com/show_bug.cgi?id=5882).
+DEPEND="
+ dev-perl/File-Which
+ virtual/perl-Module-Build
+ virtual/logger
+ virtual/mysql
+ avahi? ( net-dns/avahi )
+ ogg? ( media-sound/sox )
+ "
+# Note: dev-perl/GD necessary because of SC bug#6143
+# (http://bugs.slimdevices.com/show_bug.cgi?id=6143).
+RDEPEND="${DEPEND}
+ >=dev-lang/perl-5.8.8
+ >=dev-perl/GD-2.35
+ >=app-admin/sudo-1.6.8
+ alac? ( media-sound/alac_decoder )
+ lame? ( media-sound/lame )
+ wavpack? ( media-sound/wavpack )
+ bonjour? ( net-misc/mDNSResponder )
+ flac? ( media-libs/flac )
+ musepack? ( media-sound/musepack-tools )
+ "
+
+S="${WORKDIR}/${MY_P}"
+
+PREFS="/var/lib/squeezecenter/prefs/squeezecenter.prefs"
+LIVE_PREFS="/var/lib/squeezecenter/prefs/server.prefs"
+DOCDIR="/usr/share/doc/squeezecenter-${PV}"
+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
+ if use ogg; then
+ if ! built_with_use media-sound/sox ogg; then
+ eerror "media-sound/sox not built with USE=ogg"
+ die "media-sound/sox not built with USE=ogg"
+ fi
+ fi
+
+ # Create the user and group if not already present
+ enewgroup squeezecenter
+ enewuser squeezecenter -1 -1 "/dev/null" squeezecenter
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Apply patches
+ epatch "${FILESDIR}/mDNSResponder-gentoo.patch"
+ epatch "${FILESDIR}/build-perl-modules-gentoo.patch"
+
+ # Prune GD from the SqueezeCenter local CPAN. This is due to
+ # SC bug#5882 which means we need to bring in Portage's version of GD,
+ # which will fail if it is different to the version in the local CPAN
+ # tree. SqueezeCenter will then use the system-installed dev-perl/GD.
+ # (This fixes Gentoo bug #237548)
+ rm -r CPAN/GD.pm CPAN/GD || die "Unable to remove local CPAN GD"
+}
+
+src_compile() {
+ einfo "Building required Perl modules (some warnings are normal here) ..."
+ echo -e "\n${S}\n${WORKDIR}" | Bin/build-perl-modules.pl || die "Unable to build Perl modules"
+}
+
+src_install() {
+
+ # The main Perl executables
+ exeinto /usr/sbin
+ newexe slimserver.pl squeezecenter-server
+ newexe scanner.pl squeezecenter-scanner
+ newexe cleanup.pl squeezecenter-cleanup
+
+ # Get the Perl package name and version
+ eval `perl '-V:package'`
+ eval `perl '-V:version'`
+
+ # 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"
+
+ # The server Perl modules
+ dodir "/usr/lib/${package}/vendor_perl/${version}"
+ cp -r Slim "${D}/usr/lib/${package}/vendor_perl/${version}" || die "Unable to install server Perl modules"
+
+ # Compiled CPAN module go under lib as they are arch-specific
+ dodir "/usr/lib/squeezecenter/CPAN"
+ cp -r CPAN/arch "${D}/usr/lib/squeezecenter/CPAN" || die "Unable to install compiled CPAN modules"
+ rm -r CPAN/arch || die "Unable to remove compiled CPAN modules from source"
+
+ # Various directories of architecture-independent static files
+ dodir "${SHAREDIR}"
+ cp -r Firmware "${D}/${SHAREDIR}" || die "Unable to install firmware"
+ cp -r Graphics "${D}/${SHAREDIR}" || die "Unable to install Graphics"
+ cp -r HTML "${D}/${SHAREDIR}" || die "Unable to install HTML"
+ cp -r IR "${D}/${SHAREDIR}" || die "Unable to install IR"
+ cp -r SQL "${D}/${SHAREDIR}" || die "Unable to install SQL"
+ cp -r CPAN "${D}/${SHAREDIR}" || die "Unable to install CPAN"
+
+ # Architecture-dependent static files
+ dodir "${LIBDIR}"
+ cp -r lib/* "${D}/${LIBDIR}" || die "Unable to install architecture-dependent files"
+
+ # 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
+ touch "${D}/var/log/squeezecenter/server.log"
+ touch "${D}/var/log/squeezecenter/scanner.log"
+ touch "${D}/var/log/squeezecenter/perfmon.log"
+ fowners squeezecenter:squeezecenter /var/log/squeezecenter/server.log
+ fowners squeezecenter:squeezecenter /var/log/squeezecenter/scanner.log
+ fowners squeezecenter:squeezecenter /var/log/squeezecenter/perfmon.log
+
+ # Initialise the user-installed plugins directory
+ dodir "${NEWPLUGINSDIR}"
+
+ # Install logrotate support
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/squeezecenter.logrotate.d" squeezecenter
+
+ # Install Avahi support (if USE flag is set)
+ if use avahi; then
+ insinto /etc/avahi/services
+ newins "${FILESDIR}/avahi-squeezecenter.service" squeezecenter.service
+ fi
+}
+
+sc_starting_instr() {
+ elog "SqueezeCenter can be started with the following command:"
+ elog "\t/etc/init.d/squeezecenter start"
+ elog ""
+ elog "SqueezeCenter can be automatically started on each boot with the"
+ elog "following command:"
+ elog "\trc-update add squeezecenter default"
+ elog ""
+ elog "You might want to examine and modify the following configuration"
+ elog "file before starting SqueezeCenter:"
+ elog "\t/etc/conf.d/squeezecenter"
+ 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}${LIVE_PREFS}" 2>/dev/null)
+ elog "You may access and configure SqueezeCenter by browsing to:"
+ elog "\thttp://localhost:${httpport:-9000}/"
+}
+
+pkg_postinst() {
+ # FLAC and LAME are quite useful (but not essential) for SqueezeCenter -
+ # if they're not enabled then make sure the user understands that.
+ if ! use flac; then
+ ewarn "'flac' USE flag is not set. Although not essential, FLAC is required"
+ ewarn "for playing lossless WAV and FLAC (for Squeezebox 1), and for"
+ ewarn "playing other less common file types (if you have a Squeezebox 2, 3,"
+ ewarn "Receiver or Transporter)."
+ ewarn "For maximum flexibility you are recommended to set the 'flac' USE flag".
+ ewarn ""
+ fi
+ if ! use lame; then
+ ewarn "'lame' USE flag is not set. Although not essential, LAME is"
+ ewarn "required if you want to limit the bandwidth your Squeezebox or"
+ ewarn "Transporter uses when streaming audio."
+ ewarn "For maximum flexibility you are recommended to set the 'lame' USE flag".
+ ewarn ""
+ fi
+
+ # Album art requires PNG and JPEG support from GD, so if it's not there
+ # then warn the user. It's not mandatory as the user may not be using
+ # album art.
+ if ! built_with_use dev-perl/GD jpeg || \
+ ! built_with_use dev-perl/GD png || \
+ ! built_with_use media-libs/gd jpeg || \
+ ! built_with_use media-libs/gd png; then
+ ewarn "For correct operation of album art through SqueezeCenter's web"
+ ewarn "interface the GD library and Perl module must be built with PNG"
+ ewarn "and JPEG support. If necessary you can add the following lines"
+ ewarn "to the file /etc/portage/package.use:"
+ ewarn "\tdev-perl/GD jpeg png"
+ ewarn "\tmedia-libs/gd jpeg png"
+ ewarn "And then rebuild those packages with:"
+ ewarn "\temerge --newuse dev-perl/GD media-libs/gd"
+ ewarn ""
+ fi
+
+ # Point user to database configuration step
+ elog "If this is a new installation of SqueezeCenter then the database"
+ elog "must be configured prior to use. This can be done by running the"
+ elog "following command:"
+ elog "\temerge --config =${CATEGORY}/${PF}"
+
+ # Remind user to configure Avahi if necessary
+ if use avahi; then
+ elog ""
+ elog "Avahi support installed. Remember to edit the folowing file if"
+ elog "you run SqueezeCenter's web interface on a port other than 9000:"
+ elog "\t/etc/avahi/services/squeezecenter.service"
+ fi
+
+ elog ""
+ sc_starting_instr
+}
+
+sc_remove_db_prefs() {
+ MY_PREFS=$1
+
+ einfo "Configuring SqueezeCenter database preferences (${MY_PREFS}) ..."
+ TMPPREFS="${T}"/squeezecenter-prefs-$$
+ touch "${ROOT}${MY_PREFS}"
+ sed -e '/^dbusername:/d' -e '/^dbpassword:/d' -e '/^dbsource:/d' < "${ROOT}${MY_PREFS}" > "${TMPPREFS}"
+ mv "${TMPPREFS}" "${ROOT}${MY_PREFS}"
+ chown squeezecenter:squeezecenter "${ROOT}${MY_PREFS}"
+ chmod 660 "${ROOT}${MY_PREFS}"
+}
+
+sc_update_prefs() {
+ MY_PREFS=$1
+ MY_DBUSER=$2
+ MY_DBUSER_PASSWD=$3
+
+ echo "dbusername: ${MY_DBUSER}" >> "${ROOT}${MY_PREFS}"
+ echo "dbpassword: ${MY_DBUSER_PASSWD}" >> "${ROOT}${MY_PREFS}"
+ echo "dbsource: dbi:mysql:database=${MY_DBUSER};mysql_socket=/var/run/mysqld/mysqld.sock" >> "${ROOT}${MY_PREFS}"
+}
+
+pkg_config() {
+ einfo "Press ENTER to create the SqueezeCenter database and set proper"
+ einfo "permissions on it. You will be prompted for the MySQL 'root' user's"
+ einfo "password during this process (note that the MySQL 'root' user is"
+ einfo "independent of the Linux 'root' user and so may have a different"
+ einfo "password)."
+ einfo ""
+ einfo "If you already have a SqueezeCenter database set up then this"
+ einfo "process will clear the existing database (your music files will not,"
+ einfo "however, be affected)."
+ einfo ""
+ einfo "Alternatively, press Control-C to abort now..."
+ read
+
+ # Get the MySQL root password from the user (not echoed to the terminal)
+ einfo "The MySQL 'root' user password is required to create the"
+ einfo "SqueezeCenter user and database."
+ DONE=0
+ while [ $DONE -eq 0 ]; do
+ trap "stty echo; echo" EXIT
+ stty -echo
+ read -p "MySQL root password: " ROOT_PASSWD; echo
+ stty echo
+ trap ":" EXIT
+ echo quit | mysql --user=root --password="${ROOT_PASSWD}" >/dev/null 2>&1 && DONE=1
+ if [ $DONE -eq 0 ]; then
+ eerror "Incorrect MySQL root password, or MySQL is not running"
+ fi
+ done
+
+ # Get the new password for the SqueezeCenter MySQL database user, and
+ # have it re-entered to confirm it. We should trivially check it's not
+ # the same as the MySQL root password.
+ einfo "A new MySQL user will be added to own the SqueezeCenter database."
+ einfo "Please enter the password for this new user (${DBUSER})."
+ DONE=0
+ while [ $DONE -eq 0 ]; do
+ trap "stty echo; echo" EXIT
+ stty -echo
+ read -p "MySQL ${DBUSER} password: " DBUSER_PASSWD; echo
+ stty echo
+ trap ":" EXIT
+ if [ -z "$DBUSER_PASSWD" ]; then
+ eerror "The password should not be blank; try again."
+ elif [ "$DBUSER_PASSWD" == "$ROOT_PASSWD" ]; then
+ eerror "The ${DBUSER} password should be different to the root password"
+ else
+ DONE=1
+ fi
+ done
+
+ # Drop the existing database and user - note we don't care about errors
+ # 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}/" < "${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}/" < "${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 "${LIVE_PREFS}" ] && sc_remove_db_prefs ${LIVE_PREFS}
+
+ # Insert the external MySQL configuration into the preferences.
+ sc_update_prefs "${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.
+ 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
+}