net-dns/ddns-go - 6.17.1 (gentoo-zh)

Search

Install

Install this version:

emerge -a =net-dns/ddns-go-6.17.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-dns/ddns-go-6.17.1

Or alternatively:

emerge --autounmask-write -a =net-dns/ddns-go-6.17.1

Package Information

Description:
Automatically obtain your public IP address and set to your domain name service
Homepage:
https://github.com/jeessy2/ddns-go
License:
MIT BSD

Ebuild Details

Version EAPI Keywords Slot
6.17.1 8 ~amd64 ~riscv 0
View Raw Ebuild
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module systemd

DESCRIPTION="Automatically obtain your public IP address and set to your domain name service"
HOMEPAGE="https://github.com/jeessy2/ddns-go"
SRC_URI="
	https://github.com/jeessy2/ddns-go/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/gentoo-zh/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz
"

LICENSE="MIT BSD"
SLOT="0"
KEYWORDS="~amd64 ~riscv"

BDEPEND=">=dev-lang/go-1.25.0"

PATCHES=(
	"${FILESDIR}/${PN}-6.13.2-remove_update_support.patch"
	"${FILESDIR}/${PN}-6.13.2-remove_service_management_support.patch"
	"${FILESDIR}/${PN}-6.17.1-build_deps_tidy.patch"
)

src_compile() {
	ego build -o "${PN}" \
		-ldflags="-linkmode external \
			-X 'main.version=${PV} (Gentoo)' \
			-X 'main.buildTime=$(date -u +"%Y-%m-%dT%H:%M:%SZ")'" \
		.
}

src_install() {
	dobin "${PN}"
	systemd_dounit "${FILESDIR}/${PN}.service"
	systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
	systemd_dounit "${FILESDIR}/${PN}-web.service"
	keepdir "/etc/${PN}"
}

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.25.0

Manifest for 6.17.1

Type File Size Source URLs
DIST ddns-go-6.17.1-vendor.tar.xz 707076 bytes https://github.com/gentoo-zh/gentoo-deps/releases/download/ddns-go-6.17.1/ddns-go-6.17.1-vendor.tar.xz
DIST ddns-go-6.17.1.tar.gz 199503 bytes https://github.com/jeessy2/ddns-go/archive/refs/tags/v6.17.1.tar.gz