# Copyright 2020-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit go-module DESCRIPTION="Serve structured output from OpenBGPD over HTTP." HOMEPAGE="https://github.com/alice-lg/openbgpd-state-server" SRC_URI=" https://github.com/alice-lg/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz " LICENSE="ISC" SLOT="0" KEYWORDS="~amd64" DEPEND=" acct-group/openbgpd-state-server acct-user/openbgpd-state-server acct-user/_bgpd " RDEPEND="${DEPEND}" src_prepare() { eapply_user sed -i "s/^VERSION := .*/VERSION := ${PV}/" "${S}/Makefile" } src_compile() { make || die } src_install() { newinitd "${FILESDIR}/${PN}-initd" ${PN} newconfd "${FILESDIR}/${PN}-confd" ${PN} dobin "cmd/${PN}/${PN}" }