29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
$NetBSD: patch-aa,v 1.2 2015/01/17 12:33:14 prlw1 Exp $
|
|
|
|
- Sort out directories
|
|
|
|
--- get_iplayer.orig 2014-12-21 18:58:18.000000000 +0000
|
|
+++ get_iplayer
|
|
@@ -423,10 +423,10 @@ if ( defined $ENV{GETIPLAYERSYSPREFS} )
|
|
$optfile_system = $ENV{ALLUSERSPROFILE}.'/get_iplayer/options';
|
|
# System options on unix-like systems
|
|
} else {
|
|
- $optfile_system = '/etc/get_iplayer/options';
|
|
+ $optfile_system = '@PREFIX@/etc/get_iplayer/options';
|
|
# Show warning if this deprecated location exists and is not a symlink
|
|
if ( -f '/var/lib/get_iplayer/options' && ! -l '/var/lib/get_iplayer/options' ) {
|
|
- logger "WARNING: System-wide options file /var/lib/get_iplayer/options will be deprecated in future, please use /etc/get_iplayer/options instead\n";
|
|
+ logger "WARNING: System-wide options file /var/lib/get_iplayer/options will be deprecated in future, please use @PREFIX@/etc/get_iplayer/options instead\n";
|
|
}
|
|
}
|
|
# Make profile dir if it doesnt exist
|
|
@@ -438,7 +438,7 @@ my $plugin_dir_system;
|
|
if ( defined $ENV{ALLUSERSPROFILE} && $^O eq "MSWin32" ) {
|
|
$plugin_dir_system = $ENV{ALLUSERSPROFILE}.'/get_iplayer/plugins';
|
|
} else {
|
|
- $plugin_dir_system = '/usr/share/get_iplayer/plugins';
|
|
+ $plugin_dir_system = '@PREFIX@/share/get_iplayer/plugins';
|
|
}
|
|
my $plugin_dir_user = "$profile_dir/plugins";
|
|
for my $plugin_dir ( ( $plugin_dir_user, $plugin_dir_system ) ) {
|