summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen, Chih-Chia <pigfoot@gmail.com>2019-10-20 17:38:50 +0800
committerChen, Chih-Chia <pigfoot@gmail.com>2019-10-20 17:38:50 +0800
commite15ba6c75fab3bb1ee1214ba317838ab6229c47e (patch)
treed573aba0c431a7cbe1e65b9503e2db64d356031f
parent[net-misc/curlie] refine#7 (diff)
downloadpigfoot-e15ba6c75fab3bb1ee1214ba317838ab6229c47e.tar.gz
pigfoot-e15ba6c75fab3bb1ee1214ba317838ab6229c47e.tar.bz2
pigfoot-e15ba6c75fab3bb1ee1214ba317838ab6229c47e.zip
Add net-misc/cloudflared 2019.10.2
Signed-off-by: Chen, Chih-Chia <pigfoot@gmail.com>
-rw-r--r--net-misc/cloudflared/Manifest1
-rw-r--r--net-misc/cloudflared/cloudflared-2019.10.2.ebuild38
-rw-r--r--net-misc/cloudflared/metadata.xml18
3 files changed, 57 insertions, 0 deletions
diff --git a/net-misc/cloudflared/Manifest b/net-misc/cloudflared/Manifest
new file mode 100644
index 0000000..0a42992
--- /dev/null
+++ b/net-misc/cloudflared/Manifest
@@ -0,0 +1 @@
+DIST cloudflared-2019.10.2.tar.gz 6028279 BLAKE2B d01d4b8a569389675176a155b2374ace4272c3abc205e3dc416bac705fce3d5dfcb14e5eae4bca4358997949997e4e541dcf03d8e87d2dbc3655be49c51d0bce SHA512 f84f97812e760a020277fac708db27a3b27ff5c890cff79d2e5bcf3e7e7e70d774dd0244299cc1f803efd21421ed2494fd0972d7cc001ead01fd31ac3a0f70cd
diff --git a/net-misc/cloudflared/cloudflared-2019.10.2.ebuild b/net-misc/cloudflared/cloudflared-2019.10.2.ebuild
new file mode 100644
index 0000000..e3275de
--- /dev/null
+++ b/net-misc/cloudflared/cloudflared-2019.10.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGO_PN="github.com/cloudflare/${PN}"
+EGO_VENDOR=(
+)
+
+inherit golang-build golang-vcs-snapshot
+
+DESCRIPTION="Argo Tunnel client, written in GoLang"
+ARCHIVE_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ ${EGO_VENDOR_URI}"
+SRC_URI="${ARCHIVE_URI}"
+RESTRICT="mirror"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~arm"
+IUSE="+pie"
+
+src_compile() {
+ use pie && local build_pie="-buildmode=pie"
+ local build_flags="$( echo ${EGO_BUILD_FLAGS} ) $( echo ${build_pie} )"
+
+ set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+ GOCACHE="${T}/go-cache" \
+ CGO_ENABLED=0 \
+ GO111MODULE=off \
+ go install -v -work -x ${build_flags} ${EGO_PN}/cmd/...
+ echo "$@"
+ "$@" || die
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/net-misc/cloudflared/metadata.xml b/net-misc/cloudflared/metadata.xml
new file mode 100644
index 0000000..9f56e87
--- /dev/null
+++ b/net-misc/cloudflared/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pigfoot@gmail.com</email>
+ <name>Chen, Chih-Chia</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cloudflare/cloudflared</remote-id>
+ <bugs-to>https://github.com/cloudflare/cloudflared/issues</bugs-to>
+ <doc>https://developers.cloudflare.com/argo-tunnel/</doc>
+ </upstream>
+ <longdescription lang="en">
+ Contains the command-line client and its libraries for
+ Argo Tunnel, a tunneling daemon that proxies any local
+ webserver through the Cloudflare network.
+ </longdescription>
+</pkgmetadata>