Skip to content

Instantly share code, notes, and snippets.

@osirisinferi
Last active February 20, 2017 13:46
Show Gist options
  • Save osirisinferi/299759975f27bb4bea7dc03aaf995af1 to your computer and use it in GitHub Desktop.
Save osirisinferi/299759975f27bb4bea7dc03aaf995af1 to your computer and use it in GitHub Desktop.
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
EGO_PN=github.com/joohoi/${PN}
if [[ ${PV} = *9999* ]]; then
inherit golang-vcs
else
KEYWORDS="~amd64"
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
inherit golang-vcs-snapshot
fi
inherit golang-build
DESCRIPTION="A simplified DNS server with a RESTful HTTP API to provide a simple way to automate ACME DNS challenges."
HOMEPAGE="https://github.com/joohoi/acme-dns"
LICENSE="MIT"
SLOT="0"
IUSE=""
DEPEND=""
RDEPEND="dev-lang/go"
src_compile() {
ebegin "Building ${P}"
GOPATH=${WORKDIR}:/usr/lib/go-gentoo:/usr/portage/distfiles/go-src go build -v -work -x ${EGO_PN}
}
src_install() {
ebegin "Installing ${P}"
dobin ${WORKDIR}/${P}/${PN}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment