SHA256
1
0
forked from pool/dnsdist
dnsdist/dnsdist_bindir.patch
Marcus Rueckert ace5b69128 - update to 1.1.0
dnsdist 1.1.0 has seen a significant amount of development,
  mostly based on feedback from they many 1.0 deployments. The
  majority of the new features have already been taken into
  production by pre-release and beta users.
  Highlights include:
  - TeeAction: send responses to a second nameserver, but ignore
    responses. Used to test new installations on existing traffic.
    Also used by the Yeti rootserver project.
  - Response rules which act on received responses
  - AXFR/IXFR support, including filtering options
  - Linux kernel based query type and query name filtering (eBPF),
    for very high speed packet rejection. Includes counters and
    statistics
  - Query counting infrastructure (contributed by TransIP’s Reinier
    Schoof)
  For the many other new features, improvements and bug fixes,
  please see the dnsdist website for the more complete changelog
  and the current documentation.
  http://dnsdist.org/changelog/#dnsdist-110
  http://dnsdist.org/README/
- refresh dnsdist_bindir.patch to apply cleanly again

OBS-URL: https://build.opensuse.org/package/show/server:dns/dnsdist?expand=0&rev=2
2016-12-30 01:47:54 +00:00

45 lines
1.7 KiB
Diff

Index: dnsdist-0.0.1340g16abeaf/dnsdist.service.in
===================================================================
--- dnsdist-0.0.1340g16abeaf.orig/dnsdist.service.in
+++ dnsdist-0.0.1340g16abeaf/dnsdist.service.in
@@ -8,7 +8,7 @@ After=network-online.target
[Service]
ExecStartPre=@bindir@/dnsdist --check-config
# Note: when editing the ExecStart command, keep --supervised and --disable-syslog
-ExecStart=@bindir@/dnsdist --supervised --disable-syslog
+ExecStart=@bindir@/dnsdist --supervised --disable-syslog --uid dnsdist --gid dnsdist $DNSDIST_OPTIONS
Type=notify
Restart=on-failure
Index: dnsdist-0.0.1340g16abeaf/contrib/dnsdist.default
===================================================================
--- dnsdist-0.0.1340g16abeaf.orig/contrib/dnsdist.default
+++ dnsdist-0.0.1340g16abeaf/contrib/dnsdist.default
@@ -1 +1,25 @@
-DNSDIST_OPTIONS=''
+## Path: System/DNS
+## Description: Commandline options to pass to dnsdist
+## Type: string
+## Default: --config /etc/dnsdist/dnsdist.lua
+## ServiceRestart: dnsdist
+##
+#
+# While you can also configure things like local listen and peers
+# on the commandline, it might be easier to do that in the config
+# file. But either way is supported.
+#
+# If you prefer to configure the listen and peers on the
+# commandline, change the option to something like:
+#
+# --local 127.0.0.1:53 8.8.8.8:53 8.8.4.4:53
+#
+# It should be noted that the following options are hardcoded on
+# the commandline in the service file:
+#
+# --uid dnsdist --gid dnsdist --supervised
+#
+# You should not pass the --daemon option as it will break the
+# startup handling in systemd.
+#
+DNSDIST_OPTIONS='--config /etc/dnsdist/dnsdist.lua'