freebsd-ports/audio/slimserver/files/patch-Slim_Utils_Prefs.pm
Brooks Davis fb51519057 Upgrade to slimserver 6.5.3 see change log for details.
http://www.slimdevices.com/Changelog6.html

Add largely untested support for changing the slimserver user, group,
and database/cache directory with the SLIMUSER, SLIMGROUP, and SLIMDBDIR
make variables.  Make sure the user/group exists before install if you
use a non-standard one.
2007-07-15 03:47:20 +00:00

34 lines
668 B
Perl

$FreeBSD$
--- Slim/Utils/Prefs.pm.orig
+++ Slim/Utils/Prefs.pm
@@ -392,6 +392,10 @@
$path = $Bin . '/Playlists';
+ } elsif (Slim::Utils::OSDetect::OS() eq 'unix') {
+
+ $path = "%%SLIMDBDIR%%/playlists";
+
} else {
$path = '';
@@ -424,7 +428,7 @@
} elsif ($os eq 'unix') {
- $CacheDir = catdir($ENV{'HOME'},'Cache');
+ $CacheDir = "%%SLIMDBDIR%%/cache";
} elsif ($os eq 'win' && Slim::Utils::OSDetect::details->{'osName'} =~ /Vista/) {
@@ -1022,7 +1026,7 @@
$prefsPath = $Bin;
}
} else {
- $prefsPath = $ENV{'HOME'};
+ $prefsPath = "%%SLIMDBDIR%%";
}
$::d_prefs && msg("The default prefs directory is $prefsPath\n");