+ # I'm going with debconf 0.5 because it was the first
+ # "modern" one. udebs just need cdebconf.
+ my $debconfdep=is_udeb($package) ? "cdebconf-udeb" : "debconf (>= 0.5) | debconf-2.0";
+ if ($config ne '' || $templates ne '') {
+ addsubstvar($package, "misc:Depends", $debconfdep);
+ }
+
+ if (($config ne '' || $templates ne '') && ! $dh{NOSCRIPTS}) {