diff options
-rw-r--r-- | dns/Makefile | 1 | ||||
-rw-r--r-- | dns/hetzner_ddns/Makefile | 34 | ||||
-rw-r--r-- | dns/hetzner_ddns/distinfo | 3 | ||||
-rwxr-xr-x | dns/hetzner_ddns/files/hetzner_ddns.in | 25 | ||||
-rw-r--r-- | dns/hetzner_ddns/pkg-descr | 9 |
5 files changed, 72 insertions, 0 deletions
diff --git a/dns/Makefile b/dns/Makefile index 71c200092077..60c63d508f51 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -77,6 +77,7 @@ SUBDIR += gen6dns SUBDIR += getdns SUBDIR += hesiod + SUBDIR += hetzner_ddns SUBDIR += hostdb SUBDIR += idnkit SUBDIR += idnkit2 diff --git a/dns/hetzner_ddns/Makefile b/dns/hetzner_ddns/Makefile new file mode 100644 index 000000000000..08998b53c0e5 --- /dev/null +++ b/dns/hetzner_ddns/Makefile @@ -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> diff --git a/dns/hetzner_ddns/distinfo b/dns/hetzner_ddns/distinfo new file mode 100644 index 000000000000..41bd4d428ac9 --- /dev/null +++ b/dns/hetzner_ddns/distinfo @@ -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 diff --git a/dns/hetzner_ddns/files/hetzner_ddns.in b/dns/hetzner_ddns/files/hetzner_ddns.in new file mode 100755 index 000000000000..b1ea2bf6ef3a --- /dev/null +++ b/dns/hetzner_ddns/files/hetzner_ddns.in @@ -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" diff --git a/dns/hetzner_ddns/pkg-descr b/dns/hetzner_ddns/pkg-descr new file mode 100644 index 000000000000..dc3653e1a54f --- /dev/null +++ b/dns/hetzner_ddns/pkg-descr @@ -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 |