diff options
-rw-r--r-- | dev-util/drone/Manifest | 4 | ||||
-rw-r--r-- | dev-util/drone/drone-0.8.0_rc4.ebuild | 52 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-util/drone/Manifest b/dev-util/drone/Manifest index 806935683765..fc3f887198cd 100644 --- a/dev-util/drone/Manifest +++ b/dev-util/drone/Manifest @@ -1,6 +1,10 @@ DIST drone-0.7.3.tar.gz 4133041 SHA256 997ce994fb852ffc0c98f20ba17d9ff458b396019207e923cd5863ec7599211e SHA512 4c85e964f43ce3076996cd1cbcfc3675d74b254278d046d1e7d4b7f04ee5fcc55a6de04947c3f8102be474e0ef3fbd5d0006ac2b39aae04fe2bc6b466b513c66 WHIRLPOOL 18cfc24df5735b11f767b0ec323f591e44b08192abb05eff3984ef6bd8ce3df548924fb69b9543cb3c92c3b26f3bddfdfd105ec4014ebe2bd5c2b420c7fe6c2f DIST drone-0.8.0_rc3.tar.gz 4307047 SHA256 833983a3b6fef4c3363858b8d6bc7b712aea3035d6fc83ca1b8a8923b469753f SHA512 11d211edc6243a7d39992638282193d6fa5e07c6ba67f92fb27002b3a8787a4a338e0c0208ffb2283da5c4e2995b868842754b7051837d4090d14acf1c499d25 WHIRLPOOL 0b03682d6e03771be4a1ff1a3160ec629acb671e1388e50d6daed3de9b85f08e4a908db092b39ec7f641d88742d94631e28658e7feaf54afe4442bc1fe69c5b4 +DIST drone-0.8.0_rc4.tar.gz 4556256 SHA256 81b3b428c677f573ed231db5596ddb5640c9d78fffdf579b1aedc9fc684c60d6 SHA512 7d7fee73aa9a1b0c0f02b013f5288494b6d078af4c30159c5109ce6714d5668249c897abdf0a8f348e0bed527aa5c8256348a5acbd010cabe47a50c3aa3bfc8c WHIRLPOOL 260b6021dc03673e5383ca42e269b8a6c6b02e1353a403e9612d71aaae9455b2aa92ab78b3d40e56af16e6f78a898ceb3d975eac84a4f83bfd2599bfec9542f9 DIST github.com-drone-drone-ui-2910d0ee662816a2463d31f0988b1ecccd0410b5.tar.gz 167172 SHA256 5817bfb4fe7546a492d840f7a42a0dc6ede1eeacfc735024276bb90fb1522b5d SHA512 d4c6fbeba9ae5c55533a76fdcf6c251516aa4f8c650f49add7e9392d22a131438bd829670df801495d361417ec12cce07e9d9c28aacd1ce1adc0024408cf3cca WHIRLPOOL f941daae3f12c96fd439680c5ca81ccbe3aea2b76b1e250ef009a0fe7883514909113b6c9ab923bcb05a5950dec9b57bd849bedb8767225f6eece583f4fe63de +DIST github.com-drone-drone-ui-73adc4cc5cee2e715caf508a5473965287448712.tar.gz 228082 SHA256 1bae0a7b78ae13ce793385563cfbb71334de21a49273f2581c3f014be0149f8e SHA512 194f439c380d7e4e96704eadaa874e62c67069da895ede26cbcc807f4959f54ca3f8b2ffc32bb78f790026361ab3e937fcb825bbdc2433ffd5c4a26d0d8ccd3e WHIRLPOOL 7ec17b3792b42b67d9c7886693bfb8d1e7fcdcedb2c615a4573133889a6edda4eff03c688962468452c863606b45d63714861fb781e002adddf76b086b6875da DIST github.com-drone-drone-ui-cd57afd5f7873e5fe0db2cd1b817588f87c8937a.tar.gz 450074 SHA256 c0a1c80abb6893820c57395d6d289d820b95cc66871da566010ee1cc96a5076d SHA512 8b1eaac476cb8cb1116bec4e5422696e3d3c8ff3e5fe7c3c06b388798ca97da56c735ae1476a1c36cb811a9b4e62876dface679df1066cb5febeecc5f85634af WHIRLPOOL 2ec97538ec48cfc511a7e0553faa2c02e501f9e50190c0b896941896ffda2d359e64303ccc50aa1d6c638d0424b28fb9f4d8c57543d2d22183778a8a58d9c2a4 +DIST github.com-golang-net-66aacef3dd8a676686c7ae3716979581e8b03c47.tar.gz 917754 SHA256 5140f8089da711f07bcdffd50b262cc9a6d53dc4c2ebeffd5bd6ef04d103775b SHA512 65b7d18e220e84fc588e0485f083473a91f939ec566b48d53668e337056950e1f40b19346bdbadc483dc57072096aef0508254a7148354f5234e26ac8c0063c3 WHIRLPOOL b48dd92edf0ce8cb27b57132a888b0f7ac2b7b844f62aebe072e5fa3beb9921a409c547c6fd2701f1f4ba68a580e8c5988d915cc8cbeaee62356399d3848f2f6 DIST github.com-golang-net-f5079bd7f6f74e23c4d65efa0f4ce14cbd6a3c0f.tar.gz 913170 SHA256 9131ee3d49925960732127c18c079e52e7fc3a02361f8efaef3177481fa66e38 SHA512 8864831de84b48e899386adb7cd0b6a7db45f38700e8fc27da6798859e33fef5625e05a5342fbdd7d7f93cf62440b9051acbbc8ab4c498a3ecc1cd4ca27b633d WHIRLPOOL c04afe7a817ee0813b36be73e6d42eff98ae3e5a132bf7051457cd8d52402f04c1c0cc96da20c7fdb715a4646f4601b938de2a8b024b7146dfeec75f5a4e55fb +DIST github.com-golang-protobuf-17ce1425424ab154092bbb43af630bd647f3bb0d.tar.gz 266836 SHA256 3f82e7552c325c68b728c17f5b7ebfed200ca376c39353abc2f896756e2291dd SHA512 e6f093a5a8231e8e51daa2c5adf1db8da9dbeddc42fb6d05cd1f0cc03e2f3c1a65647b5463f3d71d94361d8a31163ee4fcc32e57a3e2df9e0a557c06469d88a8 WHIRLPOOL a08ee48e3e9c18aa420d4f15aaa7a1b957e1be12b3db14805904a1e55eb832db4eca830c07ce39f9915a455b4269c63ef4c8cea2f3fd8d84f45dba3c05d4bc66 DIST github.com-golang-protobuf-748d386b5c1ea99658fd69fe9f03991ce86a90c1.tar.gz 253562 SHA256 63d146172b61f33700c03d00753e566697c539031c71daa2545f0ba49b0d412c SHA512 123271536062bee3d268fb54ff108cf914b116b2db9b3372835e0d588db3acd9045ed58e83dc07d7def6c696aa68565cfd7df9eb39210bf197a9d6acf5cc0a65 WHIRLPOOL 56edfde2359def430e7f2a248352963d41831651c0d89e2c0fa0214ef541eaf28f5f35a0318c788e9953d2efcedc9f64c02e3df6e84606ffb9598742165e0e5a diff --git a/dev-util/drone/drone-0.8.0_rc4.ebuild b/dev-util/drone/drone-0.8.0_rc4.ebuild new file mode 100644 index 000000000000..414020cd3e59 --- /dev/null +++ b/dev-util/drone/drone-0.8.0_rc4.ebuild @@ -0,0 +1,52 @@ +# 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="1e64f61009f2e57bd5be41d504ca41305b2263bb" +EGO_VENDOR=( "github.com/drone/drone-ui 73adc4cc5cee2e715caf508a5473965287448712" + "github.com/golang/protobuf 17ce1425424ab154092bbb43af630bd647f3bb0d" + "golang.org/x/net 66aacef3dd8a676686c7ae3716979581e8b03c47 github.com/golang/net" + ) + +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:=" + +RESTRICT="test" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/drone ${PN} +} + +src_compile() { + pushd src || die + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -ldflags "-extldflags '-static' -X github.com/drone/drone/version.VersionDev=build.${PV}.${EGIT_COMMIT:0:7}" -o release/drone-server ${EGO_PN}/cmd/drone-server || die + GOPATH="${WORKDIR}/${P}" go build -ldflags "-X github.com/drone/drone/version.VersionDev=build.${PV}.${EGIT_COMMIT:0:7}" -o release/drone-agent ${EGO_PN}/cmd/drone-agent || die + popd || die +} + +src_install() { + dobin src/release/drone-{agent,server} + dodoc src/github.com/drone/drone/README.md + keepdir /var/log/drone /var/lib/drone + fowners -R ${PN}:${PN} /var/log/drone /var/lib/drone + newinitd "${FILESDIR}"/drone-server.initd drone-server + newconfd "${FILESDIR}"/drone-server.confd drone-server + newinitd "${FILESDIR}"/drone-agent.initd drone-agent + newconfd "${FILESDIR}"/drone-agent.confd drone-agent +} |