aboutsummaryrefslogtreecommitdiff
path: root/net/rubygem-train
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-07-30 09:47:46 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-07-30 09:47:46 +0000
commitbbba7909c3a9c83b280ecda4c370d6eef1591214 (patch)
tree9b090edd3fc7663beb0ff05a458550cee10ae7cd /net/rubygem-train
parent636191937b148e46f3694e94b5523fb448419337 (diff)
downloadports-bbba7909c3a9c83b280ecda4c370d6eef1591214.tar.gz
ports-bbba7909c3a9c83b280ecda4c370d6eef1591214.zip
Notes
Diffstat (limited to 'net/rubygem-train')
-rw-r--r--net/rubygem-train/Makefile33
-rw-r--r--net/rubygem-train/distinfo3
-rw-r--r--net/rubygem-train/files/patch-train.gemspec13
-rw-r--r--net/rubygem-train/pkg-descr21
4 files changed, 70 insertions, 0 deletions
diff --git a/net/rubygem-train/Makefile b/net/rubygem-train/Makefile
new file mode 100644
index 000000000000..335b6bbb00d2
--- /dev/null
+++ b/net/rubygem-train/Makefile
@@ -0,0 +1,33 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= train
+PORTVERSION= 3.3.6
+CATEGORIES= net rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Transport interface to talk to different backends
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= rubygem-activesupport52>=5.2.4.3<6.0.0:devel/rubygem-activesupport52 \
+ rubygem-azure_graph_rbac>=0.16<1:devel/rubygem-azure_graph_rbac \
+ rubygem-azure_mgmt_key_vault>=0.17<1:devel/rubygem-azure_mgmt_key_vault \
+ rubygem-azure_mgmt_resources>=0.15<1:devel/rubygem-azure_mgmt_resources \
+ rubygem-azure_mgmt_security>=0.18<1:devel/rubygem-azure_mgmt_security \
+ rubygem-azure_mgmt_storage>=0.18<1:devel/rubygem-azure_mgmt_storage \
+ rubygem-docker-api>=1.26<2:net/rubygem-docker-api \
+ rubygem-google-api-client>=0.23.9:devel/rubygem-google-api-client \
+ rubygem-googleauth>=0.6.6:security/rubygem-googleauth \
+ rubygem-inifile>=3.0<4:textproc/rubygem-inifile \
+ rubygem-train-core>=${PORTVERSION}:net/rubygem-train-core \
+ rubygem-train-winrm>=0.2<1:net/rubygem-train-winrm
+
+USES= gem
+USE_RUBY= yes
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/net/rubygem-train/distinfo b/net/rubygem-train/distinfo
new file mode 100644
index 000000000000..c3d2d9ffa61d
--- /dev/null
+++ b/net/rubygem-train/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1595865777
+SHA256 (rubygem/train-3.3.6.gem) = 567954ee3a58620488fab62f97b2fc44059dda7df3edcdbe1415b7daeb7588c4
+SIZE (rubygem/train-3.3.6.gem) = 14848
diff --git a/net/rubygem-train/files/patch-train.gemspec b/net/rubygem-train/files/patch-train.gemspec
new file mode 100644
index 000000000000..c84c87c1e5e1
--- /dev/null
+++ b/net/rubygem-train/files/patch-train.gemspec
@@ -0,0 +1,13 @@
+--- train.gemspec.orig 2020-07-24 06:34:34 UTC
++++ train.gemspec
+@@ -32,8 +32,8 @@ Gem::Specification.new do |s|
+ s.add_runtime_dependency(%q<azure_mgmt_security>.freeze, ["~> 0.18"])
+ s.add_runtime_dependency(%q<azure_mgmt_storage>.freeze, ["~> 0.18"])
+ s.add_runtime_dependency(%q<docker-api>.freeze, ["~> 1.26"])
+- s.add_runtime_dependency(%q<google-api-client>.freeze, [">= 0.23.9", "< 0.35.0"])
+- s.add_runtime_dependency(%q<googleauth>.freeze, [">= 0.6.6", "< 0.11.0"])
++ s.add_runtime_dependency(%q<google-api-client>.freeze, [">= 0.23.9"])
++ s.add_runtime_dependency(%q<googleauth>.freeze, [">= 0.6.6"])
+ else
+ s.add_dependency(%q<train-core>.freeze, ["= 3.3.6"])
+ s.add_dependency(%q<train-winrm>.freeze, ["~> 0.2"])
diff --git a/net/rubygem-train/pkg-descr b/net/rubygem-train/pkg-descr
new file mode 100644
index 000000000000..830a9513a10d
--- /dev/null
+++ b/net/rubygem-train/pkg-descr
@@ -0,0 +1,21 @@
+Train lets you talk to your local or remote operating systems and APIs with a
+unified interface.
+
+It allows you to:
+- execute commands via run_command
+- interact with files via file
+- identify the target operating system via os
+- authenticate to API-based services and treat them like a platform
+
+Train supports:
+- Local execution
+- SSH
+- WinRM
+- Docker
+- Mock (for testing and debugging)
+- AWS as an API
+- Azure as an API
+- VMware via PowerCLI
+- Habitat
+
+WWW: https://github.com/inspec/train