mirror of
https://git.freebsd.org/ports.git
synced 2025-06-25 14:40:32 -04:00
Stop trying to use ports versions of all the CPAN bits and do things the way the vendor expects. It's less elegant, but much easier to maintain. Do build our own versions of binary modules so we have a chance on all platforms, but use a slightly modified version of their script to do so (mostly make it non interactive and fetch the files from DISTDIR/DIST_SUBDIR rather than direct from slimdevices each build). Mark RESTRICTED. The distfiles and the build contain non-restributable bits. Some of the people building packages for linux are working on a way around this (not distributing the firmware and using alternate images), but that's no here yet. Nagged by: many :-) Prodded by: my dying cd player
34 lines
767 B
Perl
34 lines
767 B
Perl
|
|
$FreeBSD$
|
|
|
|
--- Slim/Utils/Prefs.pm.orig
|
|
+++ Slim/Utils/Prefs.pm
|
|
@@ -99,6 +99,10 @@
|
|
|
|
$path = $Bin . '/Playlists';
|
|
|
|
+ } elsif (Slim::Utils::OSDetect::OS() eq 'unix') {
|
|
+
|
|
+ $path = "/var/db/slimserver/playlists";
|
|
+
|
|
} else {
|
|
|
|
$path = '';
|
|
@@ -126,7 +130,7 @@
|
|
if ($os eq 'mac') {
|
|
$CacheDir = catdir($ENV{'HOME'}, '/Library/Caches/SlimServer');
|
|
} elsif ($os eq 'unix') {
|
|
- $CacheDir = $ENV{'HOME'};
|
|
+ $CacheDir = "/var/db/slimserver/cache";
|
|
}
|
|
my @CacheDirs = splitdir($CacheDir);
|
|
pop @CacheDirs;
|
|
@@ -702,7 +706,7 @@
|
|
} elsif (Slim::Utils::OSDetect::OS() eq 'win') {
|
|
$prefsPath = $Bin;
|
|
} else {
|
|
- $prefsPath = $ENV{'HOME'};
|
|
+ $prefsPath = "/var/db/slimserver";
|
|
}
|
|
|
|
$::d_prefs && msg("The default prefs directory is $prefsPath\n");
|