02e3e0315d
RFC2136 dynamic-DNS updater. Watches a records file (inotify) and new interface addresses and pushes TSIG-signed updates to BIND per zone, sending only the delta. Native miekg/dns (structured per-zone RCODEs), local status API + facter fact, systemd unit, nfpm RPM, Woodpecker CI. Replaces the puppet dns-update shell script; keeps the same records-file and TSIG-key contract.
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
# nfpm packaging for dns-updater. Rendered by scripts/build-rpm.sh (envsubst)
|
|
# after `make build` produces dist/dns-updater.
|
|
name: ${PACKAGE_NAME}
|
|
arch: ${PACKAGE_ARCH}
|
|
platform: ${PACKAGE_PLATFORM}
|
|
version: ${PACKAGE_VERSION}
|
|
release: ${PACKAGE_RELEASE}
|
|
section: net
|
|
maintainer: ${PACKAGE_MAINTAINER}
|
|
homepage: ${PACKAGE_HOMEPAGE}
|
|
license: ${PACKAGE_LICENSE}
|
|
description: "${PACKAGE_DESCRIPTION}"
|
|
provides:
|
|
- dns-updater
|
|
|
|
contents:
|
|
- src: ./dist/dns-updater
|
|
dst: /usr/bin/dns-updater
|
|
file_info:
|
|
mode: 0755
|
|
|
|
- src: ./packaging/dns-updater.service
|
|
dst: /usr/lib/systemd/system/dns-updater.service
|
|
file_info:
|
|
mode: 0644
|
|
|
|
- src: ./packaging/facts.d/dns_updater.sh
|
|
dst: /opt/puppetlabs/facter/facts.d/dns_updater.sh
|
|
file_info:
|
|
mode: 0755
|
|
|
|
- src: ./packaging/env.sample
|
|
dst: /etc/dns-updater/env
|
|
type: config|noreplace
|
|
file_info:
|
|
mode: 0644
|
|
|
|
scripts:
|
|
postinstall: ./packaging/scripts/postinstall.sh
|
|
preremove: ./packaging/scripts/preremove.sh
|
|
|
|
overrides:
|
|
rpm:
|
|
depends:
|
|
- systemd
|