cfssl-1.2.0_p20170322.ebuild 893 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. EGO_PN="github.com/cloudflare/${PN}/..."
  5. EGIT_COMMIT="1a5ac2e68991e01380068b96f50f5ff982d9bb14"
  6. EGO_VENDOR=( "github.com/juju/ratelimit acf38b000a03e4ab89e40f20f1e548f4e6ac7f72" )
  7. inherit golang-build golang-vcs-snapshot
  8. ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
  9. KEYWORDS="~amd64"
  10. DESCRIPTION="Cloudflare's PKI and TLS toolkit"
  11. HOMEPAGE="https://github.com/cloudflare/cfssl"
  12. SRC_URI="${ARCHIVE_URI}
  13. ${EGO_VENDOR_URI}"
  14. LICENSE="BSD-2"
  15. SLOT="0"
  16. IUSE="hardened"
  17. src_compile() {
  18. export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')"
  19. pushd src || die
  20. GOPATH="${S}" go install github.com/cloudflare/cfssl/cmd/... || die
  21. popd || die
  22. }
  23. src_install() {
  24. dobin bin/*
  25. pushd src/${EGO_PN%/*} || die
  26. dodoc CHANGELOG README.md
  27. popd || die
  28. }