net-dns/meshname - 0.2.0 (dm9pZCAq)

Search

Package Information

Description:
A universal naming system for all IPv6-based mesh networks
Homepage:
https://github.com/zhoreeq/meshname
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.2.0 8 amd64 ~x86 0
View Raw Ebuild
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module systemd

DESCRIPTION="A universal naming system for all IPv6-based mesh networks"
HOMEPAGE="https://github.com/zhoreeq/meshname"
SRC_URI="
	https://github.com/zhoreeq/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/dm9pZCAq/gentoo-go-deps/releases/download/${P}/${P}-deps.tar.xz
	https://github.com/dm9pZCAq/gentoo-go-deps/releases/download/${P}/${P}-vendor.tar.xz
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~x86"

src_compile() {
	CGO_ENABLED=0 ego build -ldflags "
		-s -w
		-extldflags '-static'
	" "./cmd/${PN}d"
}

src_test() {
	ego test "./pkg/${PN}"/*_test.go
}

src_install() {
	local DOCS=( ./*.md )

	dobin "${PN}d"

	doinitd "contrib/${PN}d.initd"
	systemd_dounit "${PN}d.service"

	einstalldocs
}

Manifest for 0.2.0

Type File Size Source URLs
DIST meshname-0.2.0-deps.tar.xz 21394828 bytes https://github.com/dm9pZCAq/gentoo-go-deps/releases/download/meshname-0.2.0/meshname-0.2.0-deps.tar.xz
DIST meshname-0.2.0-vendor.tar.xz 499124 bytes https://github.com/dm9pZCAq/gentoo-go-deps/releases/download/meshname-0.2.0/meshname-0.2.0-vendor.tar.xz
DIST meshname-0.2.0.tar.gz 1017413 bytes https://github.com/zhoreeq/meshname/archive/v0.2.0.tar.gz