dns/hetzner_ddns: New port for Hetzner Dynamic DNS

PR:		255916
Reviewed by:	Daniel Engberg <daniel.engberg.lists@pyret.net>
Approved by:	new maintainer
This commit is contained in:
Filip Parag 2021-06-15 12:01:32 -07:00 committed by Kevin Bowling
parent b249c53e8f
commit e529189733
5 changed files with 72 additions and 0 deletions

View File

@ -77,6 +77,7 @@
SUBDIR += gen6dns
SUBDIR += getdns
SUBDIR += hesiod
SUBDIR += hetzner_ddns
SUBDIR += hostdb
SUBDIR += idnkit
SUBDIR += idnkit2

34
dns/hetzner_ddns/Makefile Normal file
View File

@ -0,0 +1,34 @@
# Created by: Filip Parag <filip@parag.rs>
PORTNAME= hetzner_ddns
DISTVERSION= 0.2.2
CATEGORIES= dns
MAINTAINER= filip@parag.rs
COMMENT= Hetzner Dynamic DNS Daemon
LICENSE= BSD2CLAUSE
RUN_DEPENDS= jq:textproc/jq \
curl:ftp/curl
NO_ARCH= yes
NO_BUILD= yes
USE_GITHUB= yes
GH_ACCOUNT= filiparag
PLIST_FILES= bin/${PORTNAME} \
share/man/man1/${PORTNAME}.1.gz \
"@sample etc/${PORTNAME}.conf.sample"
USE_RC_SUBR= ${PORTNAME}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1.man \
${STAGEDIR}${MANPREFIX}/share/man/man1/${PORTNAME}.1
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1623187734
SHA256 (filiparag-hetzner_ddns-0.2.2_GH0.tar.gz) = 0507f0a3c20530ebfc0e07cc086c64a889e095b86503c714393d60135aeea9f3
SIZE (filiparag-hetzner_ddns-0.2.2_GH0.tar.gz) = 7201

View File

@ -0,0 +1,25 @@
#!/bin/sh
#
# $FreeBSD$
# PROVIDE: hetzner_ddns
# REQUIRE: LOGIN
. /etc/rc.subr
name=hetzner_ddns
rcvar="${name}_enable"
pidfile="/var/run/${name}.pid"
start_cmd="${name}_start"
load_rc_config $name
command="/usr/local/bin/${name}"
command_args="--daemon"
procname="/bin/sh"
hetzner_ddns_start()
{
export PATH="$PATH:/usr/local/bin"
eval "${command} ${command_args}"
}
run_rc_command "$1"

View File

@ -0,0 +1,9 @@
Hetzner Dynamic DNS Daemon
A simple daemon to continuously update Hetzner DNS
A and AAAA records for your server with a dynamic IP address.
It features support for multiple subdomain records with painless
configuration and administration.
WWW: https://github.com/filiparag/hetzner_ddns