Description: Tweak defaults values for Debian
 Debian needs some default value and a way
 to compute DriverPath different
 from upstream. 
 .
 Debian specific model snippets
 are added in commemts between {% and %}. This
 model snippet is applied after the model generated
 from LCDd.conf. Hence it can override upstream
 default value. For instance:
 .
 # {% upstream_default~ default=yes %}
 #ReportToSyslog=yes
 .
 Generated model has upstream_default=yes. This value
 is canceled by '  upstream_default~ ' and the default
 value is set to yes.
 .
 DriverPath is more complex. The model snippets
 adds a way to test and fix this system dependant value.
 The compute instruction also provides a correct
 default value.
Forwarded: NA
Author: dod
--- a/examples/lcdproc/LCDd.conf
+++ b/examples/lcdproc/LCDd.conf
@@ -34,6 +34,26 @@
 #            the driver modules and will thus not be able to
 #            function properly.
 # NOTE: Always place a slash as last character !
+# {%
+#   default~
+#   value_type=uniline
+#   compute
+#     formula="my $triplet = `/usr/bin/dpkg-architecture -qDEB_HOST_MULTIARCH`;
+#              warn \"cannot run dpkg-architecture\" unless $triplet ;
+#              chomp $triplet;
+#              \"/usr/lib/$triplet/lcdproc/\";"
+#     use_eval=1
+#     allow_override=1 -
+#   warn_unless:dir
+#     code=" defined $_ ? -d : 1"
+#     msg="missing DriverPath dir"
+#     fix="my $triplet = `/usr/bin/dpkg-architecture -qDEB_HOST_MULTIARCH`;
+#          warn \"cannot run dpkg-architecture\" unless $triplet ;
+#          chomp $triplet;
+#          my $res = \"/usr/lib/$triplet/lcdproc/\";
+#          $_ = $res;
+#          "
+#   - %}
 DriverPath=server/drivers/
 
 # Tells the server to load the given drivers. Multiple lines can be given.
@@ -63,10 +83,11 @@
 #ReportLevel=3
 
 # Should we report to syslog instead of stderr? [default: no; legal: yes, no]
+# {% upstream_default~ default=yes %}
 #ReportToSyslog=yes
 
 # User to run as.  LCDd will drop its root privileges and run as this user
-# instead. [default: nobody]
+# instead. {% default~ %}
 User=nobody
 
 # The server will stay in the foreground if set to yes.
