diff --git a/dns/godns/Makefile b/dns/godns/Makefile index 982ceeb1ec31..0f657724c6c7 100644 --- a/dns/godns/Makefile +++ b/dns/godns/Makefile @@ -1,37 +1,43 @@ PORTNAME= godns DISTVERSIONPREFIX= v -DISTVERSION= 3.4 -PORTREVISION= 1 +DISTVERSION= 3.4.1 CATEGORIES= dns -MASTER_SITES= https://raw.githubusercontent.com/TimothyYe/${PORTNAME}/${DISTVERSIONFULL}/:gomod -DISTFILES= go.mod:gomod +MASTER_SITES= https://raw.githubusercontent.com/TimothyYe/${PORTNAME}/${DISTVERSIONFULL}/:gomod \ + https://github.com/TimothyYe/${PORTNAME}/releases/download/v${DISTVERSION}/:webui +DISTFILES= go.mod:gomod \ + ${PORTNAME}-web-${DISTVERSIONFULL}.zip:webui +EXTRACT_ONLY= ${DISTFILE_DEFAULT} MAINTAINER= diizzy@FreeBSD.org COMMENT= Dynamic DNS client (DDNS) with optional external reporting features WWW= https://github.com/TimothyYe/godns LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:1.24+,modules USE_RC_SUBR= ${PORTNAME} USE_GITHUB= yes GH_ACCOUNT= TimothyYe GO_MODULE= github.com/TimothyYe/godns GO_TARGET= ./cmd/${PORTNAME} SUB_FILES= pkg-message +post-extract: + @if [ ! -d ${WRKSRC}/internal/server/out ]; then \ + ${MKDIR} ${PATCH_WRKSRC}/internal/server/out ;\ + (${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${_DISTFILES:M*web*} -C ${WRKSRC}/internal/server ${EXTRACT_AFTER_ARGS}) ;\ + fi + post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ - ${PATCH_WRKSRC}/cmd/godns/godns.go + ${PATCH_WRKSRC}/cmd/godns/godns.go @${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|g' \ - ${PATCH_WRKSRC}/cmd/godns/godns.go - ${MKDIR} ${PATCH_WRKSRC}/internal/server/out - ${TOUCH} ${PATCH_WRKSRC}/internal/server/out/index.html + ${PATCH_WRKSRC}/cmd/godns/godns.go post-install: ${INSTALL_DATA} ${FILESDIR}/godns-config.json.sample ${STAGEDIR}${PREFIX}/etc .include diff --git a/dns/godns/distinfo b/dns/godns/distinfo index 2303b06b1ceb..37b8005633bf 100644 --- a/dns/godns/distinfo +++ b/dns/godns/distinfo @@ -1,5 +1,7 @@ -TIMESTAMP = 1774798573 -SHA256 (go/dns_godns/TimothyYe-godns-v3.4_GH0/go.mod) = c202891b1e17a62b045b6f8404a6c21ac2a4e8b99a1be557342375e8158ab9e2 -SIZE (go/dns_godns/TimothyYe-godns-v3.4_GH0/go.mod) = 1822 -SHA256 (go/dns_godns/TimothyYe-godns-v3.4_GH0/TimothyYe-godns-v3.4_GH0.tar.gz) = 8e9c4846c16aee9fb36e60fb9ce1a91bf845cc0e01820f2ec2abf05573d6d5cc -SIZE (go/dns_godns/TimothyYe-godns-v3.4_GH0/TimothyYe-godns-v3.4_GH0.tar.gz) = 873667 +TIMESTAMP = 1775981262 +SHA256 (go/dns_godns/TimothyYe-godns-v3.4.1_GH0/go.mod) = c202891b1e17a62b045b6f8404a6c21ac2a4e8b99a1be557342375e8158ab9e2 +SIZE (go/dns_godns/TimothyYe-godns-v3.4.1_GH0/go.mod) = 1822 +SHA256 (go/dns_godns/TimothyYe-godns-v3.4.1_GH0/godns-web-v3.4.1.zip) = 3836d920590dd7736163db9492e2199eddb1202c56f1414cc598a7d74952339e +SIZE (go/dns_godns/TimothyYe-godns-v3.4.1_GH0/godns-web-v3.4.1.zip) = 369494 +SHA256 (go/dns_godns/TimothyYe-godns-v3.4.1_GH0/TimothyYe-godns-v3.4.1_GH0.tar.gz) = 729f78043bc3df486357a85329aabcc5de5baebcd0c2c2819f665c3e6e2a95fd +SIZE (go/dns_godns/TimothyYe-godns-v3.4.1_GH0/TimothyYe-godns-v3.4.1_GH0.tar.gz) = 873148 diff --git a/dns/godns/files/godns-config.json.sample b/dns/godns/files/godns-config.json.sample index 2547a5456998..8125508144f5 100644 --- a/dns/godns/files/godns-config.json.sample +++ b/dns/godns/files/godns-config.json.sample @@ -1,16 +1,22 @@ { "provider": "MyDDNSProvider", "email": "MyUserName", "password": "MyPassWord", "domains": [{ "domain_name": "foobar.domain", "sub_domains": ["subdomain"] } ], "ip_type": "IPv4", "ip_urls": [""], "ip_interface": "igb0", "interval": 300, "debug_info": false, "run_once": false + "web_panel": { + "enabled": false, + "addr": "0.0.0.0:9000", + "username": "admin", + "password": "changemepassword" + } } diff --git a/dns/godns/files/pkg-message.in b/dns/godns/files/pkg-message.in index 068486296b86..19fb4b69411b 100644 --- a/dns/godns/files/pkg-message.in +++ b/dns/godns/files/pkg-message.in @@ -1,21 +1,22 @@ [ { type: install message: <