| 1 |
Description:Tweak defaults values for Debian |
| 2 |
Debian needs some default values slightly different |
| 3 |
from upstream |
| 4 |
Forwarded:NA |
| 5 |
Author:dod |
| 6 |
--- a/lib/Config/Model/models/LCDd/server.pl |
| 7 |
+++ b/lib/Config/Model/models/LCDd/server.pl |
| 8 |
@@ -115,7 +115,27 @@ |
| 9 |
}, |
| 10 |
'DriverPath', |
| 11 |
{ |
| 12 |
- 'default' => 'server/drivers/', |
| 13 |
+ compute => { |
| 14 |
+ formula => 'my $triplet = `/usr/bin/dpkg-architecture -qDEB_HOST_MULTIARCH`; |
| 15 |
+warn "cannot run dpkg-architecture" unless $triplet ; |
| 16 |
+chomp $triplet; |
| 17 |
+"/usr/lib/$triplet/lcdproc/";', |
| 18 |
+ allow_override => 1, |
| 19 |
+ use_eval => 1 |
| 20 |
+ }, |
| 21 |
+ warn_unless => { |
| 22 |
+ 'dir' => { |
| 23 |
+ code => ' defined $_ ? -d : 1' , |
| 24 |
+ msg => 'missing DriverPath dir', |
| 25 |
+ fix => 'my $triplet = `/usr/bin/dpkg-architecture -qDEB_HOST_MULTIARCH`; |
| 26 |
+warn "cannot run dpkg-architecture" unless $triplet ; |
| 27 |
+chomp $triplet; |
| 28 |
+my $res = "/usr/lib/$triplet/lcdproc/"; |
| 29 |
+$_ = $res; |
| 30 |
+', |
| 31 |
+ } |
| 32 |
+ }, |
| 33 |
+ #'default' => 'server/drivers/', |
| 34 |
'description' => 'Where can we find the driver modules ? |
| 35 |
IMPORTANT: Make sure to change this setting to reflect your |
| 36 |
specific setup! Otherwise LCDd won\'t be able to find |
| 37 |
@@ -196,7 +216,7 @@ |
| 38 |
{ |
| 39 |
'description' => 'Should we report to syslog instead of stderr ? ', |
| 40 |
'type' => 'leaf', |
| 41 |
- 'upstream_default' => 'no', |
| 42 |
+ 'default' => 'yes', |
| 43 |
'value_type' => 'boolean', |
| 44 |
'write_as' => [ |
| 45 |
'no', |
| 46 |
@@ -253,7 +273,6 @@ |
| 47 |
}, |
| 48 |
'User', |
| 49 |
{ |
| 50 |
- 'default' => 'nobody', |
| 51 |
'description' => 'User to run as. LCDd will drop its root privileges, if any, |
| 52 |
and run as this user instead.', |
| 53 |
'type' => 'leaf', |