diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-01-22 10:09:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-01-22 10:09:44 +0000 |
commit | 09351e78166b5e864197c4456ebae3f89dd0bed9 (patch) | |
tree | 41a96399f56ed3aa399006871bfce4430db84aa2 /net-dns/coredns/coredns-1.3.1.ebuild | |
parent | c8a77dfe4d3d307c1d5dd2650b7297447d8b609d (diff) |
gentoo resync : 22.01.2019
Diffstat (limited to 'net-dns/coredns/coredns-1.3.1.ebuild')
-rw-r--r-- | net-dns/coredns/coredns-1.3.1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-dns/coredns/coredns-1.3.1.ebuild b/net-dns/coredns/coredns-1.3.1.ebuild new file mode 100644 index 000000000000..46995772634c --- /dev/null +++ b/net-dns/coredns/coredns-1.3.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGO_VENDOR=( "github.com/mholt/caddy 6f580c6aa36c54c3e1c65b5c609550a8a2508e3e" + "github.com/miekg/dns 56be65265e34e731425e0269a301774938827c60" + "github.com/prometheus/client_golang 505eaef017263e299324067d40ca2c48f6a2cf50" + "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb" + "github.com/prometheus/procfs 1dc9a6cbc91aacc3e8b2d63db4d2e957a5394ac4" +) + +EGO_PN="github.com/${PN}/${PN}" + +inherit golang-build golang-vcs-snapshot + +EGIT_COMMIT="6b56a9c92130d50cee9bd92aaee500dbccff395f" +ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="A DNS server that chains middleware" +HOMEPAGE="https://github.com/coredns/coredns" + +SRC_URI="${ARCHIVE_URI} + ${EGO_VENDOR_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +RESTRICT="test" + +src_compile() { + pushd src/${EGO_PN} || die + GOPATH="${S}" go build -v -ldflags="-X github.com/coredns/coredns/coremain.GitCommit=${EGIT_COMMIT}" || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} + dobin ${PN} + dodoc README.md + doman man/* + popd || die + + newinitd "${FILESDIR}"/coredns.initd coredns + newconfd "${FILESDIR}"/coredns.confd coredns + + insinto /etc/logrotate.d + newins "${FILESDIR}"/coredns.logrotated coredns +} |