1 |
lavajoe 08/08/03 04:35:30 |
2 |
|
3 |
Added: mDNSResponder-7.1-gentoo.patch |
4 |
avahi-squeezecenter.service |
5 |
squeezecenter.logrotate.d dbcreate-gentoo.sql |
6 |
filepaths-7.1-gentoo.patch dbdrop-gentoo.sql |
7 |
squeezecenter.init.d squeezecenter.conf.d |
8 |
squeezecenter.prefs Gentoo-plugins-README.txt |
9 |
Log: |
10 |
Add version 7.1.0; remove old versions |
11 |
(Portage version: 2.1.4.4) |
12 |
|
13 |
Revision Changes Path |
14 |
1.1 media-sound/squeezecenter/files/mDNSResponder-7.1-gentoo.patch |
15 |
|
16 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/mDNSResponder-7.1-gentoo.patch?rev=1.1&view=markup |
17 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/mDNSResponder-7.1-gentoo.patch?rev=1.1&content-type=text/plain |
18 |
|
19 |
Index: mDNSResponder-7.1-gentoo.patch |
20 |
=================================================================== |
21 |
--- Slim/Networking/mDNS.pm.old 2008-07-22 12:25:06.000000000 +0100 |
22 |
+++ Slim/Networking/mDNS.pm 2008-07-22 12:26:38.000000000 +0100 |
23 |
@@ -131,11 +131,10 @@ |
24 |
|
25 |
my ($name, $port) = @$data; |
26 |
|
27 |
+ print CONF "\n"; |
28 |
print CONF "$name\n"; |
29 |
print CONF "$service\n"; |
30 |
- print CONF "TXT\n"; |
31 |
print CONF "$port\n"; |
32 |
- print CONF "\n"; |
33 |
} |
34 |
|
35 |
close(CONF); |
36 |
|
37 |
|
38 |
|
39 |
1.1 media-sound/squeezecenter/files/avahi-squeezecenter.service |
40 |
|
41 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/avahi-squeezecenter.service?rev=1.1&view=markup |
42 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/avahi-squeezecenter.service?rev=1.1&content-type=text/plain |
43 |
|
44 |
Index: avahi-squeezecenter.service |
45 |
=================================================================== |
46 |
<?xml version="1.0" standalone='no'?><!--*-nxml-*--> |
47 |
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> |
48 |
|
49 |
<service-group> |
50 |
|
51 |
<name>SqueezeCenter</name> |
52 |
|
53 |
<service> |
54 |
<type>_http._tcp</type> |
55 |
<port>9000</port> |
56 |
</service> |
57 |
|
58 |
<service> |
59 |
<type>_slimhttp._tcp</type> |
60 |
<port>9000</port> |
61 |
</service> |
62 |
|
63 |
</service-group> |
64 |
|
65 |
|
66 |
|
67 |
1.1 media-sound/squeezecenter/files/squeezecenter.logrotate.d |
68 |
|
69 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.logrotate.d?rev=1.1&view=markup |
70 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.logrotate.d?rev=1.1&content-type=text/plain |
71 |
|
72 |
Index: squeezecenter.logrotate.d |
73 |
=================================================================== |
74 |
# Copyright 1999-2008 Gentoo Foundation |
75 |
# Distributed under the terms of the GNU General Public License v2 |
76 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.logrotate.d,v 1.1 2008/08/03 04:35:29 lavajoe Exp $ |
77 |
|
78 |
/var/log/squeezecenter/scanner.log /var/log/squeezecenter/server.log /var/log/squeezecenter/perfmon.log { |
79 |
missingok |
80 |
notifempty |
81 |
copytruncate |
82 |
rotate 5 |
83 |
size 100k |
84 |
} |
85 |
|
86 |
|
87 |
|
88 |
1.1 media-sound/squeezecenter/files/dbcreate-gentoo.sql |
89 |
|
90 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/dbcreate-gentoo.sql?rev=1.1&view=markup |
91 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/dbcreate-gentoo.sql?rev=1.1&content-type=text/plain |
92 |
|
93 |
Index: dbcreate-gentoo.sql |
94 |
=================================================================== |
95 |
CREATE DATABASE __DATABASE__; |
96 |
|
97 |
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER |
98 |
ON *.* |
99 |
TO '__DBUSER__'@'localhost' |
100 |
IDENTIFIED BY '__DBPASSWORD__' |
101 |
|
102 |
|
103 |
|
104 |
1.1 media-sound/squeezecenter/files/filepaths-7.1-gentoo.patch |
105 |
|
106 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/filepaths-7.1-gentoo.patch?rev=1.1&view=markup |
107 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/filepaths-7.1-gentoo.patch?rev=1.1&content-type=text/plain |
108 |
|
109 |
Index: filepaths-7.1-gentoo.patch |
110 |
=================================================================== |
111 |
--- Slim/Utils/OSDetect.pm.old 2008-07-22 12:25:34.000000000 +0100 |
112 |
+++ Slim/Utils/OSDetect.pm 2008-07-22 12:27:06.000000000 +0100 |
113 |
@@ -253,6 +253,58 @@ |
114 |
warn "dirsFor: Didn't find a match request: [$dir]\n"; |
115 |
} |
116 |
|
117 |
+ } elsif (isGentoo()) { |
118 |
+ |
119 |
+ if ($dir =~ /^(?:Firmware|Graphics|HTML|IR|MySQL|SQL)$/) { |
120 |
+ |
121 |
+ push @dirs, "/usr/share/squeezecenter/$dir"; |
122 |
+ |
123 |
+ } elsif ($dir =~ /^(?:lib)$/) { |
124 |
+ |
125 |
+ push @dirs, "/usr/lib/squeezecenter"; |
126 |
+ |
127 |
+ } elsif ($dir eq 'UserPluginRoot') { |
128 |
+ |
129 |
+ push @dirs, "/var/lib/squeezecenter"; |
130 |
+ |
131 |
+ } elsif ($dir eq 'Plugins') { |
132 |
+ |
133 |
+ push @dirs, "/var/lib/squeezecenter/Plugins"; |
134 |
+ push @dirs, "/usr/lib/" . $Config{'package'} . "/vendor_perl/" . $Config{'version'} . "/Slim/Plugin" |
135 |
+ |
136 |
+ } elsif ($dir eq 'strings' || $dir eq 'revision') { |
137 |
+ |
138 |
+ push @dirs, "/usr/share/squeezecenter"; |
139 |
+ |
140 |
+ } elsif ($dir =~ /^(?:types|convert)$/) { |
141 |
+ |
142 |
+ push @dirs, "/etc/squeezecenter"; |
143 |
+ |
144 |
+ } elsif ($dir =~ /^(?:prefs)$/) { |
145 |
+ |
146 |
+ push @dirs, "/var/lib/squeezecenter/prefs"; |
147 |
+ |
148 |
+ } elsif ($dir eq 'log') { |
149 |
+ |
150 |
+ push @dirs, "/var/log/squeezecenter"; |
151 |
+ |
152 |
+ } elsif ($dir eq 'cache') { |
153 |
+ |
154 |
+ push @dirs, "/var/lib/squeezecenter/cache"; |
155 |
+ |
156 |
+ } elsif ($dir eq 'MySQL') { |
157 |
+ |
158 |
+ # Do nothing - use the depended upon MySQL install. |
159 |
+ |
160 |
+ } elsif ($dir =~ /^(?:music|playlists)$/) { |
161 |
+ |
162 |
+ push @dirs, ''; |
163 |
+ |
164 |
+ } else { |
165 |
+ |
166 |
+ warn "dirsFor: Didn't find a match request: [$dir]\n"; |
167 |
+ } |
168 |
+ |
169 |
# Red Hat/Fedora/SUSE RPM specific paths. |
170 |
} elsif (isRHorSUSE()) { |
171 |
|
172 |
@@ -465,6 +517,19 @@ |
173 |
return isReadyNAS(); |
174 |
} |
175 |
|
176 |
+sub isGentoo { |
177 |
+ |
178 |
+ # Initialize |
179 |
+ my $OS = OS(); |
180 |
+ my $details = details(); |
181 |
+ |
182 |
+ if ($details->{'osName'} eq 'Gentoo') { |
183 |
+ return 1; |
184 |
+ } |
185 |
+ |
186 |
+ return 0; |
187 |
+} |
188 |
+ |
189 |
sub isRHorSUSE { |
190 |
|
191 |
# Initialize |
192 |
@@ -586,6 +651,10 @@ |
193 |
|
194 |
$osDetails{'osName'} = 'Debian'; |
195 |
|
196 |
+ } elsif (-f '/etc/gentoo-release') { |
197 |
+ |
198 |
+ $osDetails{'osName'} = 'Gentoo'; |
199 |
+ |
200 |
} elsif (-f '/etc/redhat_release' || -f '/etc/redhat-release') { |
201 |
|
202 |
$osDetails{'osName'} = 'Red Hat'; |
203 |
@@ -603,7 +672,7 @@ |
204 |
$osDetails{'osArch'} = $Config{'myarchname'}; |
205 |
|
206 |
# package specific addition to @INC to cater for plugin locations |
207 |
- if (isDebian()) { |
208 |
+ if (isDebian() || isGentoo()) { |
209 |
|
210 |
unshift @INC, '/usr/share/squeezecenter'; |
211 |
unshift @INC, '/usr/share/squeezecenter/CPAN'; |
212 |
--- Slim/Music/Import.pm.old 2008-07-22 12:24:32.000000000 +0100 |
213 |
+++ Slim/Music/Import.pm 2008-07-22 12:27:06.000000000 +0100 |
214 |
@@ -128,7 +128,7 @@ |
215 |
|
216 |
$command = '/usr/libexec/squeezecenter-scanner'; |
217 |
|
218 |
- } elsif (Slim::Utils::OSDetect::isDebian()) { |
219 |
+ } elsif (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isGentoo()) { |
220 |
|
221 |
$command = '/usr/sbin/squeezecenter-scanner'; |
222 |
|
223 |
--- Slim/bootstrap.pm.old 2008-07-22 12:24:09.000000000 +0100 |
224 |
+++ Slim/bootstrap.pm 2008-07-22 12:27:06.000000000 +0100 |
225 |
@@ -97,8 +97,9 @@ |
226 |
|
227 |
my @SlimINC = (); |
228 |
|
229 |
- if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE()) { |
230 |
- # On Debian, RH and SUSE, our CPAN directory is located in the same dir as strings.txt |
231 |
+ if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE() || Slim::Utils::OSDetect::isGentoo()) { |
232 |
+ # On Debian, Gentoo, RH and SUSE, our CPAN directory is located in the |
233 |
+ # same dir as strings.txt |
234 |
$libPath = Slim::Utils::OSDetect::dirsFor('strings'); |
235 |
} |
236 |
|
237 |
@@ -125,6 +126,14 @@ |
238 |
$libPath, |
239 |
); |
240 |
|
241 |
+ if (Slim::Utils::OSDetect::isGentoo()) { |
242 |
+ # On Gentoo, the lib directory is located separately to the CPAN |
243 |
+ # directory as it's not architecture-independent, and make sure we |
244 |
+ # also look at the separate user plugins directory. |
245 |
+ push @SlimINC, Slim::Utils::OSDetect::dirsFor('lib'); |
246 |
+ push @SlimINC, Slim::Utils::OSDetect::dirsFor('UserPluginRoot'); |
247 |
+ } |
248 |
+ |
249 |
$d_startup && printf("Got \@INC containing:\n%s\n\n", join("\n", @INC)); |
250 |
|
251 |
# This works like 'use lib' |
252 |
--- Slim/Utils/MySQLHelper.pm.old 2008-07-22 12:25:31.000000000 +0100 |
253 |
+++ Slim/Utils/MySQLHelper.pm 2008-07-22 12:27:06.000000000 +0100 |
254 |
@@ -152,7 +152,7 @@ |
255 |
|
256 |
# Because we use the system MySQL, we need to point to the right |
257 |
# directory for the errmsg. files. Default to english. |
258 |
- if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE()) { |
259 |
+ if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE() || Slim::Utils::OSDetect::isGentoo()) { |
260 |
|
261 |
$config{'language'} = '/usr/share/mysql/english'; |
262 |
} |
263 |
|
264 |
|
265 |
|
266 |
1.1 media-sound/squeezecenter/files/dbdrop-gentoo.sql |
267 |
|
268 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/dbdrop-gentoo.sql?rev=1.1&view=markup |
269 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/dbdrop-gentoo.sql?rev=1.1&content-type=text/plain |
270 |
|
271 |
Index: dbdrop-gentoo.sql |
272 |
=================================================================== |
273 |
DROP DATABASE __DATABASE__; |
274 |
DROP USER '__DBUSER__'@'localhost'; |
275 |
|
276 |
|
277 |
|
278 |
1.1 media-sound/squeezecenter/files/squeezecenter.init.d |
279 |
|
280 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.init.d?rev=1.1&view=markup |
281 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.init.d?rev=1.1&content-type=text/plain |
282 |
|
283 |
Index: squeezecenter.init.d |
284 |
=================================================================== |
285 |
#!/sbin/runscript |
286 |
# Copyright 1999-2008 Gentoo Foundation |
287 |
# Distributed under the terms of the GNU General Public License v2 |
288 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.init.d,v 1.1 2008/08/03 04:35:29 lavajoe Exp $ |
289 |
|
290 |
# These fit the SqueezeCenter ebuild and so shouldn't need to be changed; |
291 |
# user-servicable parts go in /etc/conf.d/squeezecenter. |
292 |
pidfile=/var/run/squeezecenter/squeezecenter.pid |
293 |
logdir=/var/log/squeezecenter |
294 |
varlibdir=/var/lib/squeezecenter |
295 |
prefsdir=${varlibdir}/prefs |
296 |
cachedir=${varlibdir}/cache |
297 |
prefsfile=${prefsdir}/squeezecenter.prefs |
298 |
scuser=squeezecenter |
299 |
scname=squeezecenter-server |
300 |
|
301 |
depend() { |
302 |
need net mysql |
303 |
} |
304 |
|
305 |
start() { |
306 |
ebegin "Starting SqueezeCenter" |
307 |
|
308 |
cd / |
309 |
/usr/bin/nice --adjustment=${SC_NICENESS:-0} sudo -u ${scuser} \ |
310 |
start-stop-daemon \ |
311 |
--start --exec /usr/bin/perl /usr/sbin/${scname} \ |
312 |
-- \ |
313 |
--quiet --daemon \ |
314 |
--pidfile=${pidfile} \ |
315 |
--cachedir=${cachedir} \ |
316 |
--prefsfile=${prefsfile} \ |
317 |
--prefsdir=${prefsdir} \ |
318 |
--logdir=${logdir} \ |
319 |
--audiodir=${SC_MUSIC_DIR} \ |
320 |
--playlistdir=${SC_PLAYLISTS_DIR} \ |
321 |
${SC_OPTS} |
322 |
|
323 |
eend $? "Failed to start SqueezeCenter" |
324 |
} |
325 |
|
326 |
stop() { |
327 |
ebegin "Stopping SqueezeCenter" |
328 |
start-stop-daemon -o --stop --pidfile ${pidfile} |
329 |
eend $? "Failed to stop SqueezeCenter" |
330 |
} |
331 |
|
332 |
|
333 |
|
334 |
1.1 media-sound/squeezecenter/files/squeezecenter.conf.d |
335 |
|
336 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.conf.d?rev=1.1&view=markup |
337 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.conf.d?rev=1.1&content-type=text/plain |
338 |
|
339 |
Index: squeezecenter.conf.d |
340 |
=================================================================== |
341 |
# /etc/conf.d/squeezecenter |
342 |
|
343 |
# Niceness level for the SqueezeCenter process. If not specified then the |
344 |
# default is to run at standard priority. Uncomment the following to run at a |
345 |
# high priority (in order to try to minimise drop-outs due to audio starvation |
346 |
# of the players): |
347 |
#SC_NICENESS=-10 |
348 |
|
349 |
# Default path of your music library and playlists. You can leave these |
350 |
# undefined and configure them through the web interface instead. |
351 |
#SC_MUSIC_DIR=/mnt/media/Music |
352 |
#SC_PLAYLISTS_DIR=/mnt/media/Playlists |
353 |
|
354 |
# The following contains any other options you want to specify, such as default |
355 |
# logging options. The example below will prevent the discovery and display of |
356 |
# UPNP devices within your players. |
357 |
# |
358 |
# See "squeezecenter.pl --help" for a full list of possible options, but note |
359 |
# that many of them are supplied by /etc/init.d/squeezecenter and so don't need |
360 |
# to be present here. |
361 |
#SC_OPTS="--noupnp" |
362 |
|
363 |
|
364 |
|
365 |
1.1 media-sound/squeezecenter/files/squeezecenter.prefs |
366 |
|
367 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.prefs?rev=1.1&view=markup |
368 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.prefs?rev=1.1&content-type=text/plain |
369 |
|
370 |
Index: squeezecenter.prefs |
371 |
=================================================================== |
372 |
dbusername: squeezecenter |
373 |
dbpassword: TBA |
374 |
dbsource: dbi:mysql:database=squeezecenter;mysql_socket=/var/run/mysqld/mysqld.sock |
375 |
|
376 |
|
377 |
|
378 |
1.1 media-sound/squeezecenter/files/Gentoo-plugins-README.txt |
379 |
|
380 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/Gentoo-plugins-README.txt?rev=1.1&view=markup |
381 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/squeezecenter/files/Gentoo-plugins-README.txt?rev=1.1&content-type=text/plain |
382 |
|
383 |
Index: Gentoo-plugins-README.txt |
384 |
=================================================================== |
385 |
# Copyright 1999-2008 Gentoo Foundation |
386 |
# Distributed under the terms of the GNU General Public License v2 |
387 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/Gentoo-plugins-README.txt,v 1.1 2008/08/03 04:35:29 lavajoe Exp $ |
388 |
|
389 |
The standard SqueezeCenter package is installed differently on Gentoo in order |
390 |
that the installation complies with Gentoo's filesystem layout. These notes |
391 |
are provided to give guidance for installing plugins within this modified |
392 |
layout. |
393 |
|
394 |
INSTALLING PLUGINS |
395 |
|
396 |
The installation instructions of plugins should be followed but with the |
397 |
following Gentoo specifics: |
398 |
|
399 |
* Plugins should be installed into the directory: |
400 |
/var/lib/squeezecenter/Plugins |
401 |
* Extension binaries (which sometimes accompany plugins) should be installed |
402 |
into the directory: |
403 |
/usr/lib/squeezecenter/Bin |
404 |
|
405 |
BACKGROUND |
406 |
|
407 |
Those interested can refer to the following for details of Gentoo's filesystem |
408 |
standard: |
409 |
http://devmanual.gentoo.org/general-concepts/filesystem/index.html |