From 850556ab7d4b07f17c46cd36bcef778368a48050 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 12 Nov 2023 17:34:50 +0100 Subject: [PATCH] Add files for packaging Signed-off-by: Georg Pfuetzenreuter --- .../pdns-genrev.service | 4 +++ suse/pdns-genrev.sysconfig | 33 +++++++++++++++++++ suse/pdns-genrev.system-user | 1 + 3 files changed, 38 insertions(+) rename pdns-genrev.service => suse/pdns-genrev.service (52%) create mode 100644 suse/pdns-genrev.sysconfig create mode 100644 suse/pdns-genrev.system-user diff --git a/pdns-genrev.service b/suse/pdns-genrev.service similarity index 52% rename from pdns-genrev.service rename to suse/pdns-genrev.service index 01244f9..788ed60 100644 --- a/pdns-genrev.service +++ b/suse/pdns-genrev.service @@ -1,7 +1,11 @@ +# This file is part of the pdns-genrev package +# Author: Georg Pfuetzenreuter + [Unit] Description=PowerDNS reverse zone update [Service] Type=oneshot +User=pdns-genrev EnvironmentFile=/etc/sysconfig/pdns-genrev ExecStart=/usr/bin/pdns-genrev $ARGS diff --git a/suse/pdns-genrev.sysconfig b/suse/pdns-genrev.sysconfig new file mode 100644 index 0000000..032a222 --- /dev/null +++ b/suse/pdns-genrev.sysconfig @@ -0,0 +1,33 @@ +# This file is part of the pdns-genrev package +# Author: Georg Pfuetzenreuter + +## Description: pdns-genrev configuration + +## Type: string +## Default: not set +# +# PowerDNS API Key +# +GENREV_KEY="" + +## Type: string +## Default: "http://[::1]:8081" +# +# PowerDNS web server +# +GENREV_URL="http://[::1]:8081" + +## Type: string +## Default: not set +# +# Comma separated list of forward DNS zones +# +GENREV_ZONES="" + +## Type: string +## Default: "--wet" +# +# Command line arguments to pass +# Add "--notify" here if primary/secondary replication is used +# +ARGS="--wet" diff --git a/suse/pdns-genrev.system-user b/suse/pdns-genrev.system-user new file mode 100644 index 0000000..4b7f89c --- /dev/null +++ b/suse/pdns-genrev.system-user @@ -0,0 +1 @@ +u pdns-genrev - "PowerDNS reverse zone helper" /var/lib/empty -