summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2017-06-05 14:52:55 +0000
committertaca <taca@pkgsrc.org>2017-06-05 14:52:55 +0000
commit46973f2a5479873773ea786bdeba29a036edaa9c (patch)
tree254d1600a8b56883f8010fd69de0ba8bfe73fa38 /net
parent5ab9d29448fd1241b42ede83b86020856d050582 (diff)
downloadpkgsrc-46973f2a5479873773ea786bdeba29a036edaa9c.tar.gz
Add ruby-proxifier package version 1.0.3.
Proxifier is a gem to force ruby to use a proxy. This gem was created for 2 purposes. First is to enable ruby programmers to use HTTP or SOCKS proxies interchangeably when using TCPSockets. Either manually with Proxifier::Proxy#open or by require "proxifier/env". The second purpose is to use ruby code that doesn't user proxies for users that have to use proxies. The pruby and pirb executables are simple wrappers for their respective ruby executables that support proxies from environment variables.
Diffstat (limited to 'net')
-rw-r--r--net/ruby-proxifier/ALTERNATIVES2
-rw-r--r--net/ruby-proxifier/DESCR13
-rw-r--r--net/ruby-proxifier/Makefile14
-rw-r--r--net/ruby-proxifier/PLIST19
-rw-r--r--net/ruby-proxifier/distinfo6
5 files changed, 54 insertions, 0 deletions
diff --git a/net/ruby-proxifier/ALTERNATIVES b/net/ruby-proxifier/ALTERNATIVES
new file mode 100644
index 00000000000..aa9d0a210a4
--- /dev/null
+++ b/net/ruby-proxifier/ALTERNATIVES
@@ -0,0 +1,2 @@
+bin/pirb @PREFIX@/bin/pirb@RUBY_SUFFIX@
+bin/pruby @PREFIX@/bin/pruby@RUBY_SUFFIX@
diff --git a/net/ruby-proxifier/DESCR b/net/ruby-proxifier/DESCR
new file mode 100644
index 00000000000..4764cd8fd99
--- /dev/null
+++ b/net/ruby-proxifier/DESCR
@@ -0,0 +1,13 @@
+Proxifier is a gem to force ruby to use a proxy.
+
+This gem was created for 2 purposes.
+
+First is to enable ruby programmers to use HTTP or SOCKS proxies
+interchangeably when using TCPSockets. Either manually with
+Proxifier::Proxy#open or by require "proxifier/env".
+
+The second purpose is to use ruby code that doesn't user proxies for users
+that have to use proxies.
+
+The pruby and pirb executables are simple wrappers for their respective ruby
+executables that support proxies from environment variables.
diff --git a/net/ruby-proxifier/Makefile b/net/ruby-proxifier/Makefile
new file mode 100644
index 00000000000..54c35f91968
--- /dev/null
+++ b/net/ruby-proxifier/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2017/06/05 14:52:55 taca Exp $
+
+DISTNAME= proxifier-1.0.3
+CATEGORIES= net
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/samuelkadolph/ruby-proxifier
+COMMENT= Proxifier is a gem to force ruby to use a proxy
+LICENSE= mit
+
+RUBYGEM_OPTIONS+= --format-executable
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/ruby-proxifier/PLIST b/net/ruby-proxifier/PLIST
new file mode 100644
index 00000000000..8ec2ec196ce
--- /dev/null
+++ b/net/ruby-proxifier/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2017/06/05 14:52:55 taca Exp $
+bin/pirb${RUBY_SUFFIX}
+bin/pruby${RUBY_SUFFIX}
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/LICENSE
+${GEM_LIBDIR}/README.md
+${GEM_LIBDIR}/bin/pirb
+${GEM_LIBDIR}/bin/pruby
+${GEM_LIBDIR}/lib/proxifier.rb
+${GEM_LIBDIR}/lib/proxifier/env.rb
+${GEM_LIBDIR}/lib/proxifier/errors.rb
+${GEM_LIBDIR}/lib/proxifier/proxies/http.rb
+${GEM_LIBDIR}/lib/proxifier/proxies/socks.rb
+${GEM_LIBDIR}/lib/proxifier/proxies/socks4.rb
+${GEM_LIBDIR}/lib/proxifier/proxies/socks4a.rb
+${GEM_LIBDIR}/lib/proxifier/proxy.rb
+${GEM_LIBDIR}/lib/proxifier/version.rb
+${GEM_LIBDIR}/lib/uri/socks.rb
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff --git a/net/ruby-proxifier/distinfo b/net/ruby-proxifier/distinfo
new file mode 100644
index 00000000000..2b74cfc88ac
--- /dev/null
+++ b/net/ruby-proxifier/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/06/05 14:52:55 taca Exp $
+
+SHA1 (proxifier-1.0.3.gem) = ce5b229a0b8aa9df5f299c5fc2978522f086aaf2
+RMD160 (proxifier-1.0.3.gem) = 70a381344864575a68ca8a3f5e40465fe1113141
+SHA512 (proxifier-1.0.3.gem) = 7663c1a0ed670f5dbcfc5aa771c5ec101099f06bd7490ad6895c09d0b243d47f7c96ec78b9e24729a64cf6fb0dccb67ed9d6e5d69790fdbfdc2ec766d7e0752b
+Size (proxifier-1.0.3.gem) = 8192 bytes