diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-08-20 22:26:13 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-08-20 22:26:29 +0200 |
commit | cb96188c1ec67650c88d6f184aa4043ae5420edf (patch) | |
tree | 8e2b5735a47a50225424f1ede8016797eea2abeb /package/logitechmediaserver/src/Slim/Utils/OS | |
parent | 9b97b1e198cc745d562996d11a2f6f5c88809ee8 (diff) |
add new PKG_NEEDS variable data, fix logitechmediaserver package
Diffstat (limited to 'package/logitechmediaserver/src/Slim/Utils/OS')
-rw-r--r-- | package/logitechmediaserver/src/Slim/Utils/OS/OpenADK.pm | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/package/logitechmediaserver/src/Slim/Utils/OS/OpenADK.pm b/package/logitechmediaserver/src/Slim/Utils/OS/OpenADK.pm deleted file mode 100644 index d82807b05..000000000 --- a/package/logitechmediaserver/src/Slim/Utils/OS/OpenADK.pm +++ /dev/null @@ -1,100 +0,0 @@ -package Slim::Utils::OS::OpenADK; - -# Logitech Media Server Copyright 2001-2011 Logitech. -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License, -# version 2. - -use strict; -use FindBin qw($Bin); - -use base qw(Slim::Utils::OS::Linux); - -sub initDetails { - my $class = shift; - - $class->{osDetails} = $class->SUPER::initDetails(); - - # package specific addition to @INC to cater for plugin locations - $class->{osDetails}->{isDebian} = 1 ; - - unshift @INC, '/usr/share/logitechmediaserver'; - unshift @INC, '/usr/share/logitechmediaserver/CPAN'; - - return $class->{osDetails}; -} - -=head2 dirsFor( $dir ) - -Return OS Specific directories. - -Argument $dir is a string to indicate which of the server directories we -need information for. - -=cut - -sub dirsFor { - my ($class, $dir) = @_; - - my @dirs = (); - - if ($dir =~ /^(?:oldprefs|updates)$/) { - - push @dirs, $class->SUPER::dirsFor($dir); - - } elsif ($dir =~ /^(?:Firmware|Graphics|HTML|IR|MySQL|SQL|lib|Bin)$/) { - - push @dirs, "/usr/share/logitechmediaserver/$dir"; - - } elsif ($dir eq 'Plugins') { - - push @dirs, $class->SUPER::dirsFor($dir); - push @dirs, "/usr/share/perl5/Slim/Plugin", "/usr/share/logitechmediaserver/Plugins"; - - } elsif ($dir =~ /^(?:strings|revision)$/) { - - push @dirs, "/usr/share/logitechmediaserver"; - - } elsif ($dir eq 'libpath') { - - push @dirs, "/usr/share/logitechmediaserver"; - - } elsif ($dir =~ /^(?:types|convert)$/) { - - push @dirs, "/etc/logitechmediaserver"; - - } elsif ($dir =~ /^(?:prefs)$/) { - - push @dirs, $::prefsdir || "/var/lib/logitechmediaserver/prefs"; - - } elsif ($dir eq 'log') { - - push @dirs, $::logdir || "/var/log/logitechmediaserver"; - - } elsif ($dir eq 'cache') { - - push @dirs, $::cachedir || "/var/lib/logitechmediaserver/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/logitechmediaserver-scanner'; -} - - -1; |