[Bug 268852] net-mgmt/unbound_exporter - rc-script has wrong arguments

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 10 Jan 2023 08:30:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268852

            Bug ID: 268852
           Summary: net-mgmt/unbound_exporter - rc-script has wrong
                    arguments
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: donner@FreeBSD.org
                CC: aduitsis@cpan.org
             Flags: maintainer-feedback?(aduitsis@cpan.org)
                CC: aduitsis@cpan.org

The unbound_exporter does not start again after updates.

Reason are wrong arguments:
 - the argument is `web.listen-address` not `web.listen-adress`
 - multi-line arguments need to be concatenated by backslashes

Patch:

```
--- x   2023-01-10 09:17:42.535941000 +0100
+++ /usr/local/etc/rc.d/unbound_exporter        2023-01-10 09:13:55.360577000
+0100
@@ -44,7 +44,7 @@
        ${unbound_exporter_cert:+-unbound.cert $unbound_exporter_cert} \
        ${unbound_exporter_host:+-unbound.host $unbound_exporter_host} \
        ${unbound_exporter_key:+-unbound.key $unbound_exporter_key} \
-       ${unbound_exporter_bind:+-web.listen-address $unbound_exporter_bin}
-       ${unbound_exporter_path:+-web.telemetry-patch $unbound_exporter_path}
+       ${unbound_exporter_bind:+-web.listen-adress $unbound_exporter_bind} \
+       ${unbound_exporter_path:+-web.telemetry-patch $unbound_exporter_path} \
        ${unbound_exporter_args}"
```

-- 
You are receiving this mail because:
You are the assignee for the bug.