# Copyright 2020-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit go-module DESCRIPTION="A JSON API for BIRD" HOMEPAGE="https://github.com/alice-lg/birdwatcher/tags" SRC_URI=" https://github.com/alice-lg/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz https://conan.grifon.fr/ftp/gentoo/${P}-deps.tar.xz " LICENSE="BSD" LICENSE+=" Apache-2.0 BSD-2 MIT" SLOT="0" KEYWORDS="~amd64" DEPEND=" acct-group/bird acct-group/birdwatcher acct-user/birdwatcher " RDEPEND="${DEPEND}" src_compile() { go build . || die "go build failed" } src_install() { newinitd "${FILESDIR}/${PN}-initd" ${PN} newconfd "${FILESDIR}/${PN}-confd" ${PN} dobin ${PN} insinto /etc doins "${S}/etc/${PN}/${PN}.conf" }