containerd-0.2.3_p20170131.ebuild 967 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/docker/${PN}"
  5. inherit toolchain-funcs
  6. if [[ ${PV} == *9999 ]]; then
  7. inherit golang-vcs
  8. else
  9. MY_PV="${PV/_/-}"
  10. EGIT_COMMIT="aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1"
  11. SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
  12. KEYWORDS="~amd64 ~ppc64"
  13. inherit golang-vcs-snapshot
  14. fi
  15. DESCRIPTION="A daemon to control runC"
  16. HOMEPAGE="https://containerd.tools"
  17. LICENSE="Apache-2.0"
  18. SLOT="0"
  19. IUSE="hardened +seccomp"
  20. DEPEND=""
  21. RDEPEND=">=app-emulation/docker-runc-1.0.0_rc2
  22. seccomp? ( sys-libs/libseccomp )"
  23. S=${WORKDIR}/${P}/src/${EGO_PN}
  24. src_compile() {
  25. local options=( $(usex seccomp "seccomp") )
  26. export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
  27. LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') emake GIT_COMMIT="$EGIT_COMMIT" BUILDTAGS="${options[@]}"
  28. }
  29. src_install() {
  30. dobin bin/containerd* bin/ctr
  31. }