summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/drone/Manifest1
-rw-r--r--dev-util/drone/drone-0.6.0_p20170516.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-util/drone/Manifest b/dev-util/drone/Manifest
index 2acc971e77d8..ea41f48ced23 100644
--- a/dev-util/drone/Manifest
+++ b/dev-util/drone/Manifest
@@ -1,2 +1,3 @@
DIST drone-0.6.0.tar.gz 4144602 SHA256 afcaa71b996f7607240f0b3a1b61fd0d22a662d1d470275cc753a325314765fd SHA512 e399efabca00f8109944e51f69f21e070e9190c77b1be169b93698e19a483d6811ebba4214e22ee1dde161a47f197c83f5380a75308bbbe9b0d2c20ec569a904 WHIRLPOOL c86f89226c764537f1fe2921b63bbdfcce257c206b16e3dcca581f47798290c5b9f3f9e60467fd9326e76dd7198394f015abf4869af03efd6258984863188bdb
+DIST drone-0.6.0_p20170516.tar.gz 4111146 SHA256 5c3e51d5866df4a961b0d6791217581da31cdd48a26e59b5d97af9f2de0f0cfb SHA512 b7ad0a678919d2797fd8939ec92f9ae760639037715c903b9d37101f50b742583d72092eba220932f3473f6886dd27fb06d3a71deb45f63a83c595627e7d184e WHIRLPOOL aaefc7653936384c4ff59684120f77fff71162b16c9d96d97ae42e263baddde7e8a7e0e96a5cb814338b16a3077a81d8f43fd2c079cfc0b5fb0561a812bbf740
DIST github.com-drone-drone-ui-72dc649bc4ff81f4560ab70b29495830a4c1cf3d.tar.gz 167100 SHA256 9e80fff7012b0f54fea80d4725e415c3fc0ced496692baa28bde7e5908b9b314 SHA512 4225d7372e4598dc9aa2eb0e645b3df3f71f7ca7f591d9a198da95276cd47fa2bf7acc808cc4a15ca80f33b259e43e0771744c98f3ff8d016919f1b7d15520b7 WHIRLPOOL 13e4cd0672d9f145c6dc6d5d6cc3f1bd532c02fbb6d8c94ecfb39e50f2471d4b0b5b030aa99bb7f105608225b183dd51a2f5666ddd2b96bcf9ef1c232d16ab4d
diff --git a/dev-util/drone/drone-0.6.0_p20170516.ebuild b/dev-util/drone/drone-0.6.0_p20170516.ebuild
new file mode 100644
index 000000000000..6f5612f75626
--- /dev/null
+++ b/dev-util/drone/drone-0.6.0_p20170516.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="github.com/drone/drone/..."
+EGIT_COMMIT="729d7599853ff54396beaf2035a620b56523885e"
+EGO_VENDOR=( "github.com/drone/drone-ui 72dc649bc4ff81f4560ab70b29495830a4c1cf3d" )
+
+inherit golang-build golang-vcs-snapshot user
+
+ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="A Continuous Delivery platform built on Docker, written in Go"
+HOMEPAGE="https://github.com/drone/drone"
+SRC_URI="${ARCHIVE_URI}
+ ${EGO_VENDOR_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-go/go-bindata
+ dev-go/go-bindata-assetfs:="
+
+pkg_setup() {
+ enewgroup drone
+ enewuser drone -1 -1 /var/lib/drone drone
+}
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)"\
+ go install -ldflags "-extldflags '-static' -X github.com/drone/drone/version.VersionDev=build.${EGIT_COMMIT:0:7}" github.com/drone/drone/drone || die
+ popd || die
+}
+
+src_install() {
+ dobin bin/*
+ dodoc src/github.com/drone/drone/README.md
+ keepdir /var/log/drone /var/lib/drone
+ fowners -R drone:drone /var/log/drone /var/lib/drone
+ newinitd "${FILESDIR}"/drone.initd drone
+ newconfd "${FILESDIR}"/drone.confd drone
+ newinitd "${FILESDIR}"/drone-agent.initd drone-agent
+ newconfd "${FILESDIR}"/drone-agent.confd drone-agent
+}