[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2023-08-28 Thread Hans de Graaff
commit: c06dfa7e0964b0b53920162decec9e7463f33867
Author: Hans de Graaff  gentoo  org>
AuthorDate: Mon Aug 28 05:01:44 2023 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Mon Aug 28 09:25:28 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c06dfa7e

www-servers/thin: drop 1.8.1-r2

Signed-off-by: Hans de Graaff  gentoo.org>

 www-servers/thin/thin-1.8.1-r2.ebuild | 95 ---
 1 file changed, 95 deletions(-)

diff --git a/www-servers/thin/thin-1.8.1-r2.ebuild 
b/www-servers/thin/thin-1.8.1-r2.ebuild
deleted file mode 100644
index e5383e716ea4..
--- a/www-servers/thin/thin-1.8.1-r2.ebuild
+++ /dev/null
@@ -1,95 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-USE_RUBY="ruby27 ruby30 ruby31"
-
-RUBY_FAKEGEM_RECIPE_TEST="rspec3"
-RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A fast and very simple Ruby web server"
-HOMEPAGE="http://code.macournoyer.com/thin/;
-SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="Ruby"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE="doc test"
-
-DEPEND="${DEPEND}
-   dev-util/ragel"
-RDEPEND="${RDEPEND}"
-
-# The runtime dependencies are used at build-time as well since the
-# Rakefile loads thin!
-mydeps=">=dev-ruby/daemons-1.0.9
-   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
-   virtual/ruby-ssl"
-
-ruby_add_rdepend "${mydeps}"
-ruby_add_bdepend "${mydeps}
-   dev-ruby/rake-compiler"
-
-all_ruby_prepare() {
-   # Fix Ragel-based parser generation (uses a *very* old syntax that
-   # is not supported in Gentoo)
-   sed -i -e 's: | rlgen-cd::' Rakefile || die
-
-   # Fix specs' dependencies so that the extension is not rebuilt
-   # when running tests
-   rm tasks/spec.rake || die
-
-   # Fix rspec version to allow newer 2.x versions
-   sed -i -e '/gem "rspec"/ s/1.2.9/3.0/ ; 2igem "rack", "<3"' 
spec/spec_helper.rb || die
-
-   # Avoid CLEAN since it may not be available and we don't need it.
-   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
-
-   # Disable a test that is known for freezing the testsuite,
-   # reported upstream. In thin 1.5.1 this just fails.
-   sed -i \
-   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
-   spec/daemonizing_spec.rb || die
-
-   sed -i \
-   -e '/tracing routines (with NO custom logger)/,/^  end/ s:^:#:'\
-   spec/logging_spec.rb || die
-
-   find spec/perf -name "*_spec.rb" -exec \
-   sed -i '/be_faster_then/ i \skip' {} \;
-
-   sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
-   # nasty but too complex to fix up for now :(
-   use doc || rm tasks/rdoc.rake
-}
-
-each_ruby_compile() {
-   ${RUBY} -S rake compile || die "rake compile failed"
-}
-
-all_ruby_install() {
-   all_fakegem_install
-
-   keepdir /etc/thin
-   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
-   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
-
-   einfo
-   elog "Thin is now shipped with init scripts."
-   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
-   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
-   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
-   elog "See /etc/conf.d/thin for more configuration options."
-   einfo
-}
-
-each_ruby_install() {
-   each_fakegem_install
-
-   # Ensure that newer rubygems version see the extention as installed
-   ruby_fakegem_extensions_installed
-}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2023-04-01 Thread Sam James
commit: fc72202197e044e624b11dbd9c6ddf0f002d07aa
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr  2 01:58:24 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr  2 02:55:30 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc722021

www-servers/thin: add 1.8.2

Signed-off-by: Sam James  gentoo.org>

 www-servers/thin/Manifest  |  1 +
 www-servers/thin/thin-1.8.2.ebuild | 95 ++
 2 files changed, 96 insertions(+)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
index 470788c57b45..4603473b7258 100644
--- a/www-servers/thin/Manifest
+++ b/www-servers/thin/Manifest
@@ -1 +1,2 @@
 DIST thin-1.8.1.tar.gz 181377 BLAKE2B 
883a35d60d5845defa1f20a85b90269838a1b1ebeb4d4f32561af061cdac05b545c254fe65cca828ccfed033ad934ad3b72f1795407734d3b377a6022b57397f
 SHA512 
221ef0c0369c449f2ca121c435ffebed318d6179a3b5d52e24d2bd80212df9cac35db39d156275c915c24550f6d8ded9f29616785d0a38e85cd13a1702e31298
+DIST thin-1.8.2.tar.gz 181290 BLAKE2B 
6c8d3be6dca6f9b9b549b863150de85efdd26700c27b28f1765e4d2212827d31f2aae9f586cfa485b62b3da3742c5205486c9c8fd5bd38ec32a2a896c5e0af93
 SHA512 
5f222b54a86156bc5c4b9623a225cd9a4e189f3d2744f8d11efc74e91167e201a554a191f19abb081a050a206f3b281bb7c627a3e72a5ba2b0a73e0e500dd0ed

diff --git a/www-servers/thin/thin-1.8.2.ebuild 
b/www-servers/thin/thin-1.8.2.ebuild
new file mode 100644
index ..0f52fb11ac61
--- /dev/null
+++ b/www-servers/thin/thin-1.8.2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and very simple Ruby web server"
+HOMEPAGE="http://code.macournoyer.com/thin/;
+SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="doc test"
+
+DEPEND="${DEPEND}
+   dev-util/ragel"
+RDEPEND="${RDEPEND}"
+
+# The runtime dependencies are used at build-time as well since the
+# Rakefile loads thin!
+mydeps=">=dev-ruby/daemons-1.0.9
+   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
+   virtual/ruby-ssl"
+
+ruby_add_rdepend "${mydeps}"
+ruby_add_bdepend "${mydeps}
+   dev-ruby/rake-compiler"
+
+all_ruby_prepare() {
+   # Fix Ragel-based parser generation (uses a *very* old syntax that
+   # is not supported in Gentoo)
+   sed -i -e 's: | rlgen-cd::' Rakefile || die
+
+   # Fix specs' dependencies so that the extension is not rebuilt
+   # when running tests
+   rm tasks/spec.rake || die
+
+   # Fix rspec version to allow newer 2.x versions
+   sed -i -e '/gem "rspec"/ s/1.2.9/3.0/ ; 2igem "rack", "<3"' 
spec/spec_helper.rb || die
+
+   # Avoid CLEAN since it may not be available and we don't need it.
+   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
+
+   # Disable a test that is known for freezing the testsuite,
+   # reported upstream. In thin 1.5.1 this just fails.
+   sed -i \
+   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
+   spec/daemonizing_spec.rb || die
+
+   sed -i \
+   -e '/tracing routines (with NO custom logger)/,/^  end/ s:^:#:'\
+   spec/logging_spec.rb || die
+
+   find spec/perf -name "*_spec.rb" -exec \
+   sed -i '/be_faster_then/ i \skip' {} \;
+
+   sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
+   # nasty but too complex to fix up for now :(
+   use doc || rm tasks/rdoc.rake
+}
+
+each_ruby_compile() {
+   ${RUBY} -S rake compile || die "rake compile failed"
+}
+
+all_ruby_install() {
+   all_fakegem_install
+
+   keepdir /etc/thin
+   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
+   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
+
+   einfo
+   elog "Thin is now shipped with init scripts."
+   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
+   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
+   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
+   elog "See /etc/conf.d/thin for more configuration options."
+   einfo
+}
+
+each_ruby_install() {
+   each_fakegem_install
+
+   # Ensure that newer rubygems version see the extention as installed
+   ruby_fakegem_extensions_installed
+}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/files/, www-servers/thin/

2023-03-31 Thread Sam James
commit: 6774d07f7d7e4e48b5c14fc1c056ebc1d614a8b7
Author: Sam James  gentoo  org>
AuthorDate: Fri Mar 31 01:57:23 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Mar 31 17:59:33 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6774d07f

www-servers/thin: enable ruby32

Backport an upstream patch for ruby32. It's not too big at least.

I've also asked upstream if they'll consider making a new release.

Bug: https://github.com/macournoyer/thin/pull/392
Bug: https://github.com/macournoyer/thin/issues/393
Signed-off-by: Sam James  gentoo.org>

 www-servers/thin/files/thin-1.8.1-ruby32.patch | 99 ++
 www-servers/thin/thin-1.8.1-r3.ebuild  | 99 ++
 2 files changed, 198 insertions(+)

diff --git a/www-servers/thin/files/thin-1.8.1-ruby32.patch 
b/www-servers/thin/files/thin-1.8.1-ruby32.patch
new file mode 100644
index ..808ebc2a45db
--- /dev/null
+++ b/www-servers/thin/files/thin-1.8.1-ruby32.patch
@@ -0,0 +1,99 @@
+https://github.com/macournoyer/thin/commit/829c3aaa48efcd0c289d856f068f5d0fb16edaac
+
+From 829c3aaa48efcd0c289d856f068f5d0fb16edaac Mon Sep 17 00:00:00 2001
+From: Vasily Fedoseyev 
+Date: Wed, 1 Feb 2023 00:03:48 +0300
+Subject: [PATCH] Update code base for Ruby v3.2 (#392)
+
+* `File.exists?` is removed in ruby 3.2
+
+* Fix deprecated rspec expectation syntax
+
+* Fix `Socket.gethostbyname` deprecation
+
+* Test on ruby 3.2 and rack 2.
+--- a/lib/thin/backends/swiftiply_client.rb
 b/lib/thin/backends/swiftiply_client.rb
+@@ -50,7 +50,17 @@ def swiftiply_handshake(key)
+ 
+   # For some reason Swiftiply request the current host
+   def host_ip
+-Socket.gethostbyname(@backend.host)[3].unpack('') rescue [0, 0, 
0, 0]
++begin
++  if defined?(Addrinfo)
++# ruby 2.0+
++# TODO: ipv6 support here?
++Addrinfo.getaddrinfo(@backend.host, @backend.port, :PF_INET, 
:STREAM).first.ip_address.split('.').map(&:to_i)
++  else
++Socket.gethostbyname(@backend.host)[3].unpack('')
++  end
++rescue
++  [0, 0, 0, 0]
++end
+   end
+   end
+ end
+\ No newline at end of file
+--- a/lib/thin/daemonizing.rb
 b/lib/thin/daemonizing.rb
+@@ -78,7 +78,7 @@ def change_privilege(user, group=user)
+ 
+   if uid != target_uid || gid != target_gid
+ # Change PID file ownership
+-File.chown(target_uid, target_gid, @pid_file) if 
File.exists?(@pid_file)
++File.chown(target_uid, target_gid, @pid_file) if 
File.exist?(@pid_file)
+ 
+ # Change process ownership
+ Process.initgroups(user, target_gid)
+@@ -174,7 +174,7 @@ def read_pid_file(file)
+ 
+ protected
+   def remove_pid_file
+-File.delete(@pid_file) if @pid_file && File.exists?(@pid_file)
++File.delete(@pid_file) if @pid_file && File.exist?(@pid_file)
+   end
+ 
+   def write_pid_file
+--- a/spec/connection_spec.rb
 b/spec/connection_spec.rb
+@@ -37,7 +37,7 @@
+   end
+ 
+   it "should process at most once when request is larger than expected" do
+-@connection.should_receive(:process).at_most(1)
++expect(@connection).to receive(:process).at_most(1)
+ @connection.receive_data("POST / HTTP/1.1\r\nHost: 
localhost:3000\r\nContent-Length: 300\r\n\r\n")
+ 10.times { @connection.receive_data('X' * 1_000) }
+   end
+--- a/spec/rails_app/config/boot.rb
 b/spec/rails_app/config/boot.rb
+@@ -26,7 +26,7 @@ def vendor_rails?
+ 
+ # FIXME : Ruby 1.9
+ def preinitialize
+-  load(preinitializer_path) if File.exists?(preinitializer_path)
++  load(preinitializer_path) if File.exist?(preinitializer_path)
+ end
+ 
+ def preinitializer_path
+--- a/spec/request/parser_spec.rb
 b/spec/request/parser_spec.rb
+@@ -210,7 +210,7 @@
+   end
+ 
+   it "should fail when total request vastly exceeds specified CONTENT_LENGTH" 
do
+-proc do
++expect do
+   R(<<-EOS, true)
+ POST / HTTP/1.1
+ Host: localhost:3000
+@@ -218,7 +218,7 @@
+ 
+ #{'X' * 300_000}
+ EOS
+-end.should raise_error(InvalidRequest)
++end.to raise_error(InvalidRequest)
+   end
+ 
+   it "should default SERVER_NAME to localhost" do
+

diff --git a/www-servers/thin/thin-1.8.1-r3.ebuild 
b/www-servers/thin/thin-1.8.1-r3.ebuild
new file mode 100644
index ..9f3dce90094e
--- /dev/null
+++ b/www-servers/thin/thin-1.8.1-r3.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and very simple Ruby web server"
+HOMEPAGE="http://code.macournoyer.com/thin/;
+SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 

[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2023-03-29 Thread Sam James
commit: 8bd17584fde67f5e2c5c99385c1a67058189f95e
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar 29 11:06:33 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 29 12:56:28 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bd17584

www-servers/thin: drop 1.8.1, 1.8.1-r1

Signed-off-by: Sam James  gentoo.org>

 www-servers/thin/thin-1.8.1-r1.ebuild | 88 ---
 www-servers/thin/thin-1.8.1.ebuild| 88 ---
 2 files changed, 176 deletions(-)

diff --git a/www-servers/thin/thin-1.8.1-r1.ebuild 
b/www-servers/thin/thin-1.8.1-r1.ebuild
deleted file mode 100644
index 53edc5ed6083..
--- a/www-servers/thin/thin-1.8.1-r1.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-USE_RUBY="ruby27 ruby30 ruby31"
-
-RUBY_FAKEGEM_RECIPE_TEST="rspec3"
-RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A fast and very simple Ruby web server"
-HOMEPAGE="http://code.macournoyer.com/thin/;
-SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="Ruby"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE="doc test"
-
-DEPEND="${DEPEND}
-   dev-util/ragel"
-RDEPEND="${RDEPEND}"
-
-# The runtime dependencies are used at build-time as well since the
-# Rakefile loads thin!
-mydeps=">=dev-ruby/daemons-1.0.9
-   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
-   virtual/ruby-ssl"
-
-ruby_add_rdepend "${mydeps}"
-ruby_add_bdepend "${mydeps}
-   dev-ruby/rake-compiler"
-
-all_ruby_prepare() {
-   # Fix Ragel-based parser generation (uses a *very* old syntax that
-   # is not supported in Gentoo)
-   sed -i -e 's: | rlgen-cd::' Rakefile || die
-
-   # Fix specs' dependencies so that the extension is not rebuilt
-   # when running tests
-   rm tasks/spec.rake || die
-
-   # Fix rspec version to allow newer 2.x versions
-   sed -i -e '/gem "rspec"/ s/1.2.9/3.0/ ; 2igem "rack", "<3"' 
spec/spec_helper.rb || die
-
-   # Avoid CLEAN since it may not be available and we don't need it.
-   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
-
-   # Disable a test that is known for freezing the testsuite,
-   # reported upstream. In thin 1.5.1 this just fails.
-   sed -i \
-   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
-   spec/daemonizing_spec.rb || die
-
-   sed -i \
-   -e '/tracing routines (with NO custom logger)/,/^  end/ s:^:#:'\
-   spec/logging_spec.rb || die
-
-   find spec/perf -name "*_spec.rb" -exec \
-   sed -i '/be_faster_then/ i \skip' {} \;
-
-   sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
-   # nasty but too complex to fix up for now :(
-   use doc || rm tasks/rdoc.rake
-}
-
-each_ruby_compile() {
-   ${RUBY} -S rake compile || die "rake compile failed"
-}
-
-all_ruby_install() {
-   all_fakegem_install
-
-   keepdir /etc/thin
-   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
-   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
-
-   einfo
-   elog "Thin is now shipped with init scripts."
-   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
-   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
-   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
-   elog "See /etc/conf.d/thin for more configuration options."
-   einfo
-}

diff --git a/www-servers/thin/thin-1.8.1.ebuild 
b/www-servers/thin/thin-1.8.1.ebuild
deleted file mode 100644
index 49580a63fd0f..
--- a/www-servers/thin/thin-1.8.1.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-USE_RUBY="ruby25 ruby26 ruby27"
-
-RUBY_FAKEGEM_RECIPE_TEST="rspec"
-RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A fast and very simple Ruby web server"
-HOMEPAGE="http://code.macournoyer.com/thin/;
-SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="Ruby"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE="doc test"
-
-DEPEND="${DEPEND}
-   dev-util/ragel"
-RDEPEND="${RDEPEND}"
-
-# The runtime dependencies are used at build-time as well since the
-# Rakefile loads thin!
-mydeps=">=dev-ruby/daemons-1.0.9
-   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
-   virtual/ruby-ssl"
-
-ruby_add_rdepend "${mydeps}"
-ruby_add_bdepend "${mydeps}
-   dev-ruby/rake-compiler"
-
-all_ruby_prepare() {
-   # Fix Ragel-based parser generation (uses a *very* old syntax that
-   # is not supported in Gentoo)
-   sed -i -e 's: | rlgen-cd::' Rakefile || die
-
-   # Fix specs' 

[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2023-03-23 Thread Hans de Graaff
commit: 5b71d65acc0977763facd487ed97930a2a6f64a6
Author: Hans de Graaff  gentoo  org>
AuthorDate: Thu Mar 23 06:43:40 2023 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Thu Mar 23 06:44:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b71d65a

www-servers/thin: add extension installed marker

Signed-off-by: Hans de Graaff  gentoo.org>

 www-servers/thin/thin-1.8.1-r2.ebuild | 95 +++
 1 file changed, 95 insertions(+)

diff --git a/www-servers/thin/thin-1.8.1-r2.ebuild 
b/www-servers/thin/thin-1.8.1-r2.ebuild
new file mode 100644
index ..e5383e716ea4
--- /dev/null
+++ b/www-servers/thin/thin-1.8.1-r2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and very simple Ruby web server"
+HOMEPAGE="http://code.macournoyer.com/thin/;
+SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="doc test"
+
+DEPEND="${DEPEND}
+   dev-util/ragel"
+RDEPEND="${RDEPEND}"
+
+# The runtime dependencies are used at build-time as well since the
+# Rakefile loads thin!
+mydeps=">=dev-ruby/daemons-1.0.9
+   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
+   virtual/ruby-ssl"
+
+ruby_add_rdepend "${mydeps}"
+ruby_add_bdepend "${mydeps}
+   dev-ruby/rake-compiler"
+
+all_ruby_prepare() {
+   # Fix Ragel-based parser generation (uses a *very* old syntax that
+   # is not supported in Gentoo)
+   sed -i -e 's: | rlgen-cd::' Rakefile || die
+
+   # Fix specs' dependencies so that the extension is not rebuilt
+   # when running tests
+   rm tasks/spec.rake || die
+
+   # Fix rspec version to allow newer 2.x versions
+   sed -i -e '/gem "rspec"/ s/1.2.9/3.0/ ; 2igem "rack", "<3"' 
spec/spec_helper.rb || die
+
+   # Avoid CLEAN since it may not be available and we don't need it.
+   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
+
+   # Disable a test that is known for freezing the testsuite,
+   # reported upstream. In thin 1.5.1 this just fails.
+   sed -i \
+   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
+   spec/daemonizing_spec.rb || die
+
+   sed -i \
+   -e '/tracing routines (with NO custom logger)/,/^  end/ s:^:#:'\
+   spec/logging_spec.rb || die
+
+   find spec/perf -name "*_spec.rb" -exec \
+   sed -i '/be_faster_then/ i \skip' {} \;
+
+   sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
+   # nasty but too complex to fix up for now :(
+   use doc || rm tasks/rdoc.rake
+}
+
+each_ruby_compile() {
+   ${RUBY} -S rake compile || die "rake compile failed"
+}
+
+all_ruby_install() {
+   all_fakegem_install
+
+   keepdir /etc/thin
+   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
+   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
+
+   einfo
+   elog "Thin is now shipped with init scripts."
+   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
+   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
+   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
+   elog "See /etc/conf.d/thin for more configuration options."
+   einfo
+}
+
+each_ruby_install() {
+   each_fakegem_install
+
+   # Ensure that newer rubygems version see the extention as installed
+   ruby_fakegem_extensions_installed
+}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2023-03-18 Thread Hans de Graaff
commit: 6b4302b2c4ce0b748bd9d7a0305e8187f215
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sat Mar 18 07:36:17 2023 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sat Mar 18 16:29:05 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b4302b5

www-servers/thin: actually use rspec3

Signed-off-by: Hans de Graaff  gentoo.org>

 www-servers/thin/thin-1.8.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-servers/thin/thin-1.8.1-r1.ebuild 
b/www-servers/thin/thin-1.8.1-r1.ebuild
index 8f8e959d7f1e..53edc5ed6083 100644
--- a/www-servers/thin/thin-1.8.1-r1.ebuild
+++ b/www-servers/thin/thin-1.8.1-r1.ebuild
@@ -44,7 +44,7 @@ all_ruby_prepare() {
rm tasks/spec.rake || die
 
# Fix rspec version to allow newer 2.x versions
-   sed -i -e '/gem "rspec"/ s/1.2.9/2.0/ ; 2igem "rack", "<3"' 
spec/spec_helper.rb || die
+   sed -i -e '/gem "rspec"/ s/1.2.9/3.0/ ; 2igem "rack", "<3"' 
spec/spec_helper.rb || die
 
# Avoid CLEAN since it may not be available and we don't need it.
sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2023-03-12 Thread Hans de Graaff
commit: d6cd93884c95b2c650e3e531d3bcd859acfafb99
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun Mar 12 12:09:03 2023 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Mar 12 12:09:34 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6cd9388

www-servers/thin: update EAPI 7 -> 8, add ruby30, ruby31

Signed-off-by: Hans de Graaff  gentoo.org>

 www-servers/thin/thin-1.8.1-r1.ebuild | 88 +++
 1 file changed, 88 insertions(+)

diff --git a/www-servers/thin/thin-1.8.1-r1.ebuild 
b/www-servers/thin/thin-1.8.1-r1.ebuild
new file mode 100644
index ..8f8e959d7f1e
--- /dev/null
+++ b/www-servers/thin/thin-1.8.1-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and very simple Ruby web server"
+HOMEPAGE="http://code.macournoyer.com/thin/;
+SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="doc test"
+
+DEPEND="${DEPEND}
+   dev-util/ragel"
+RDEPEND="${RDEPEND}"
+
+# The runtime dependencies are used at build-time as well since the
+# Rakefile loads thin!
+mydeps=">=dev-ruby/daemons-1.0.9
+   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
+   virtual/ruby-ssl"
+
+ruby_add_rdepend "${mydeps}"
+ruby_add_bdepend "${mydeps}
+   dev-ruby/rake-compiler"
+
+all_ruby_prepare() {
+   # Fix Ragel-based parser generation (uses a *very* old syntax that
+   # is not supported in Gentoo)
+   sed -i -e 's: | rlgen-cd::' Rakefile || die
+
+   # Fix specs' dependencies so that the extension is not rebuilt
+   # when running tests
+   rm tasks/spec.rake || die
+
+   # Fix rspec version to allow newer 2.x versions
+   sed -i -e '/gem "rspec"/ s/1.2.9/2.0/ ; 2igem "rack", "<3"' 
spec/spec_helper.rb || die
+
+   # Avoid CLEAN since it may not be available and we don't need it.
+   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
+
+   # Disable a test that is known for freezing the testsuite,
+   # reported upstream. In thin 1.5.1 this just fails.
+   sed -i \
+   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
+   spec/daemonizing_spec.rb || die
+
+   sed -i \
+   -e '/tracing routines (with NO custom logger)/,/^  end/ s:^:#:'\
+   spec/logging_spec.rb || die
+
+   find spec/perf -name "*_spec.rb" -exec \
+   sed -i '/be_faster_then/ i \skip' {} \;
+
+   sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
+   # nasty but too complex to fix up for now :(
+   use doc || rm tasks/rdoc.rake
+}
+
+each_ruby_compile() {
+   ${RUBY} -S rake compile || die "rake compile failed"
+}
+
+all_ruby_install() {
+   all_fakegem_install
+
+   keepdir /etc/thin
+   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
+   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
+
+   einfo
+   elog "Thin is now shipped with init scripts."
+   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
+   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
+   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
+   elog "See /etc/conf.d/thin for more configuration options."
+   einfo
+}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2022-10-19 Thread Sam James
commit: 341fcfec078d363f913a6610753569bb223e9e5b
Author: Petr Vaněk  atlas  cz>
AuthorDate: Wed Oct 19 09:08:17 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Oct 20 03:52:54 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=341fcfec

www-servers/thin: align longdescription opening and closing tags

Signed-off-by: Petr Vaněk  atlas.cz>
Signed-off-by: Sam James  gentoo.org>

 www-servers/thin/metadata.xml | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www-servers/thin/metadata.xml b/www-servers/thin/metadata.xml
index 362ca6fe80ac..35b18e9a8259 100644
--- a/www-servers/thin/metadata.xml
+++ b/www-servers/thin/metadata.xml
@@ -6,10 +6,10 @@
Gentoo Ruby Project


-Thin is a very simple web server written in Ruby. It's single-threaded, which
-means it can only serve one request at a time. This simplicity affords 
increased
-speed and decreased memory usage for singled-threaded framework like Rails.
-
+   Thin is a very simple web server written in Ruby. It's single-threaded, 
which
+   means it can only serve one request at a time. This simplicity affords 
increased
+   speed and decreased memory usage for singled-threaded framework like 
Rails.
+   

macournoyer/thin




[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2021-11-17 Thread Hans de Graaff
commit: a5e0922a366bd139dd7694f8dc42340d256d6201
Author: Hans de Graaff  gentoo  org>
AuthorDate: Thu Nov 18 06:34:27 2021 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Thu Nov 18 06:37:03 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5e0922a

www-servers/thin: add ruby27

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Hans de Graaff  gentoo.org>

 www-servers/thin/thin-1.8.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-servers/thin/thin-1.8.1.ebuild 
b/www-servers/thin/thin-1.8.1.ebuild
index d9b781364f18..49580a63fd0f 100644
--- a/www-servers/thin/thin-1.8.1.ebuild
+++ b/www-servers/thin/thin-1.8.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-USE_RUBY="ruby25 ruby26"
+USE_RUBY="ruby25 ruby26 ruby27"
 
 RUBY_FAKEGEM_RECIPE_TEST="rspec"
 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2021-09-01 Thread Robin H. Johnson
commit: b2661bd3a0f89f6622baf9c47c3f7c1b1f39268d
Author: Robin H. Johnson  gentoo  org>
AuthorDate: Wed Sep  1 23:17:53 2021 +
Commit: Robin H. Johnson  gentoo  org>
CommitDate: Wed Sep  1 23:17:53 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2661bd3

www-servers/thin: remove old distfile entry

Signed-off-by: Robin H. Johnson  gentoo.org>

 www-servers/thin/Manifest | 1 -
 1 file changed, 1 deletion(-)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
index b09108e30fd..470788c57b4 100644
--- a/www-servers/thin/Manifest
+++ b/www-servers/thin/Manifest
@@ -1,2 +1 @@
-DIST thin-1.7.2.tar.gz 180169 BLAKE2B 
fe902b76cbffbad739327754c14dcc46372d412c607f852a4f52554ec8e41e38a07f211c28751b3528fd53c7eb30eb0f8130e3bc0877996187a3d755ccfbc17f
 SHA512 
2c3c831eedd42fc88fc2c46e557284748b6b6bf331d6fd827073918cc3a869e5a60bf7db19ba82add28e07c8a8c92dac609a56cda82b41b37ddfb247e7bf
 DIST thin-1.8.1.tar.gz 181377 BLAKE2B 
883a35d60d5845defa1f20a85b90269838a1b1ebeb4d4f32561af061cdac05b545c254fe65cca828ccfed033ad934ad3b72f1795407734d3b377a6022b57397f
 SHA512 
221ef0c0369c449f2ca121c435ffebed318d6179a3b5d52e24d2bd80212df9cac35db39d156275c915c24550f6d8ded9f29616785d0a38e85cd13a1702e31298



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/, www-servers/thin/files/

2021-09-01 Thread Robin H. Johnson
commit: a6c02ef72c512b3d54a9af7e5fa7429f84f593d9
Author: Robin H. Johnson  gentoo  org>
AuthorDate: Wed Sep  1 21:27:56 2021 +
Commit: Robin H. Johnson  gentoo  org>
CommitDate: Wed Sep  1 22:46:00 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6c02ef7

www-servers/thin: upstream supports thin again

Merged from infra overlay.

Signed-off-by: Robin H. Johnson  gentoo.org>

 www-servers/thin/Manifest|  2 +
 www-servers/thin/files/thin.confd-2  | 43 ++
 www-servers/thin/files/thin.initd-r4 | 88 
 www-servers/thin/metadata.xml| 16 +++
 www-servers/thin/thin-1.8.1.ebuild   | 88 
 5 files changed, 237 insertions(+)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
new file mode 100644
index 000..b09108e30fd
--- /dev/null
+++ b/www-servers/thin/Manifest
@@ -0,0 +1,2 @@
+DIST thin-1.7.2.tar.gz 180169 BLAKE2B 
fe902b76cbffbad739327754c14dcc46372d412c607f852a4f52554ec8e41e38a07f211c28751b3528fd53c7eb30eb0f8130e3bc0877996187a3d755ccfbc17f
 SHA512 
2c3c831eedd42fc88fc2c46e557284748b6b6bf331d6fd827073918cc3a869e5a60bf7db19ba82add28e07c8a8c92dac609a56cda82b41b37ddfb247e7bf
+DIST thin-1.8.1.tar.gz 181377 BLAKE2B 
883a35d60d5845defa1f20a85b90269838a1b1ebeb4d4f32561af061cdac05b545c254fe65cca828ccfed033ad934ad3b72f1795407734d3b377a6022b57397f
 SHA512 
221ef0c0369c449f2ca121c435ffebed318d6179a3b5d52e24d2bd80212df9cac35db39d156275c915c24550f6d8ded9f29616785d0a38e85cd13a1702e31298

diff --git a/www-servers/thin/files/thin.confd-2 
b/www-servers/thin/files/thin.confd-2
new file mode 100644
index 000..a5e5da829e1
--- /dev/null
+++ b/www-servers/thin/files/thin.confd-2
@@ -0,0 +1,43 @@
+# /etc/conf.d/thin: Configuration for /etc/init.d/thin*
+# Copy this file to /etc/conf.d/thin.SERVERNAME for server specific options.
+
+# Set the configuration file location.
+# In start-all mode (/etc/init.d/thin), this must point to the directory where
+# all the thin configurations are located.
+# When starting a specific server (/etc/init.d/thin.SERVER), point to the exact
+# location of the .yml configuration file.
+# CONFIG="/etc/thin/${SVCNAME#*.}.yml"
+
+# Disable looking for a configuration file.
+# You can use THIN_OPTS instead for setting command line options.
+# NOCONFIG=0
+
+# Set the Ruby interpreter to use.
+# RUBY="/usr/bin/ruby"
+
+# Whether to start thin using `bundle exec'
+# DO_BUNDLER=0
+
+# What directory to cd into before starting thin
+# (useful for DO_BUNDLER)
+# CHDIR=
+
+# Set the user for this instance.
+# (Should mirror "user" value in /etc/thin/${SVCNAME#*.}.yml)
+# THIN_USER=
+
+# Set the group for this instance.
+# (Should mirror "group" value in /etc/thin/${SVCNAME#*.}.yml)
+# THIN_GROUP=
+
+# Set the pidfile for this instance.
+# (Should mirror "pid" value in /etc/thin/${SVCNAME#*.}.yml)
+# THIN_PID=
+
+# Set command line options to pass to thin.
+# In specific server mode, '--tag SERVER_NAME' is automatically appended.
+# THIN_OPTS=
+
+# Thin binary
+# THIN=thin # use bundled thin
+# THIN=usr/bin/thin # use system thin

diff --git a/www-servers/thin/files/thin.initd-r4 
b/www-servers/thin/files/thin.initd-r4
new file mode 100644
index 000..960d100b596
--- /dev/null
+++ b/www-servers/thin/files/thin.initd-r4
@@ -0,0 +1,88 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+SERVER=${SVCNAME#*.}
+if [ ${SERVER} != thin ]; then
+   CONFIG=${CONFIG:-/etc/thin/${SERVER}.yml}
+else
+   CONFIG=${CONFIG:-/etc/thin/}
+fi
+NOCONFIG=${NOCONFIG:-0}
+RUBY=${RUBY:-/usr/bin/ruby}
+DO_BUNDLER=${DO_BUNDLER:-0}
+CHDIR=${CHDIR:-}
+THIN=${THIN:-/usr/bin/thin}
+THIN_USER=${THIN_USER:-root}
+THIN_GROUP=${THIN_GROUP:-root}
+THIN_PID=${THIN_PID:-/var/run/thin/thin.pid}
+THIN_OPTS=${THIN_OPTS:-}
+
+depend() {
+   need localmount
+}
+
+checkconfig() {
+   if [ -n ${CHDIR} ]; then
+   cd "${CHDIR}"
+
+   if [ $? -ne 0 ]; then
+   eerror "Cannot cd into requested directory"
+   return 1
+   fi
+   fi
+
+   [ ${SERVER} = thin -o ${NOCONFIG} != 0 ] && return 0
+
+   if [ ! -f ${CONFIG} ]; then
+   eerror "Unable to find the server configuration."
+   eerror "Please set the CONFIG variable in 
/etc/conf.d/${SVCNAME} or"
+   eerror "set NOCONFIG there to 1 to disable looking for a config 
file."
+   return 1
+   fi
+}
+
+buildargs() {
+   if [ ${NOCONFIG} = 0 -a ${SERVER} != thin ]; then
+   echo -n "-C ${CONFIG} "
+   fi
+
+   echo -n "${THIN_OPTS}"
+}
+
+action() {
+   checkconfig || return 1
+
+   [ ${DO_BUNDLER} -ne 0 ] && RUBY="${RUBY} /usr/bin/bundle exec"
+
+   if [ ${SERVER} = thin ]; then
+   ebegin "$2 all thin servers in ${CONFIG}"
+   

[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/, www-servers/thin/files/

2019-11-20 Thread Hans de Graaff
commit: db2de955d5f996cecf3495d50fa264683a43e13f
Author: Hans de Graaff  gentoo  org>
AuthorDate: Wed Nov 20 17:53:40 2019 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Wed Nov 20 17:56:29 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db2de955

www-servers/thin: remove last-rited package

Signed-off-by: Hans de Graaff  gentoo.org>

 www-servers/thin/Manifest|  1 -
 www-servers/thin/files/thin.confd-2  | 39 
 www-servers/thin/files/thin.initd-r4 | 87 ---
 www-servers/thin/metadata.xml| 16 ---
 www-servers/thin/thin-1.7.2.ebuild   | 88 
 5 files changed, 231 deletions(-)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
deleted file mode 100644
index 9ffd8cf5886..000
--- a/www-servers/thin/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST thin-1.7.2.tar.gz 180169 BLAKE2B 
fe902b76cbffbad739327754c14dcc46372d412c607f852a4f52554ec8e41e38a07f211c28751b3528fd53c7eb30eb0f8130e3bc0877996187a3d755ccfbc17f
 SHA512 
2c3c831eedd42fc88fc2c46e557284748b6b6bf331d6fd827073918cc3a869e5a60bf7db19ba82add28e07c8a8c92dac609a56cda82b41b37ddfb247e7bf

diff --git a/www-servers/thin/files/thin.confd-2 
b/www-servers/thin/files/thin.confd-2
deleted file mode 100644
index ca89c44cfd0..000
--- a/www-servers/thin/files/thin.confd-2
+++ /dev/null
@@ -1,39 +0,0 @@
-# /etc/conf.d/thin: Configuration for /etc/init.d/thin*
-# Copy this file to /etc/conf.d/thin.SERVERNAME for server specific options.
-
-# Set the configuration file location.
-# In start-all mode (/etc/init.d/thin), this must point to the directory where
-# all the thin configurations are located.
-# When starting a specific server (/etc/init.d/thin.SERVER), point to the exact
-# location of the .yml configuration file.
-# CONFIG="/etc/thin/${SVCNAME#*.}.yml"
-
-# Disable looking for a configuration file.
-# You can use THIN_OPTS instead for setting command line options.
-# NOCONFIG=0
-
-# Set the Ruby interpreter to use.
-# RUBY="/usr/bin/ruby"
-
-# Whether to start thin using `bundle exec'
-# DO_BUNDLER=0
-
-# What directory to cd into before starting thin
-# (useful for DO_BUNDLER)
-# CHDIR=
-
-# Set the user for this instance.
-# (Should mirror "user" value in /etc/thin/${SVCNAME#*.}.yml)
-# THIN_USER=
-
-# Set the group for this instance.
-# (Should mirror "group" value in /etc/thin/${SVCNAME#*.}.yml)
-# THIN_GROUP=
-
-# Set the pidfile for this instance.
-# (Should mirror "pid" value in /etc/thin/${SVCNAME#*.}.yml)
-# THIN_PID=
-
-# Set command line options to pass to thin.
-# In specific server mode, '--tag SERVER_NAME' is automatically appended.
-# THIN_OPTS=

diff --git a/www-servers/thin/files/thin.initd-r4 
b/www-servers/thin/files/thin.initd-r4
deleted file mode 100644
index 9885a830e73..000
--- a/www-servers/thin/files/thin.initd-r4
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-SERVER=${SVCNAME#*.}
-if [ ${SERVER} != thin ]; then
-   CONFIG=${CONFIG:-/etc/thin/${SERVER}.yml}
-else
-   CONFIG=${CONFIG:-/etc/thin/}
-fi
-NOCONFIG=${NOCONFIG:-0}
-RUBY=${RUBY:-/usr/bin/ruby}
-DO_BUNDLER=${DO_BUNDLER:-0}
-CHDIR=${CHDIR:-}
-THIN_USER=${THIN_USER:-root}
-THIN_GROUP=${THIN_GROUP:-root}
-THIN_PID=${THIN_PID:-/var/run/thin/thin.pid}
-THIN_OPTS=${THIN_OPTS:-}
-
-depend() {
-   need localmount
-}
-
-checkconfig() {
-   if [ -n ${CHDIR} ]; then
-   cd "${CHDIR}"
-
-   if [ $? -ne 0 ]; then
-   eerror "Cannot cd into requested directory"
-   return 1
-   fi
-   fi
-
-   [ ${SERVER} = thin -o ${NOCONFIG} != 0 ] && return 0
-
-   if [ ! -f ${CONFIG} ]; then
-   eerror "Unable to find the server configuration."
-   eerror "Please set the CONFIG variable in 
/etc/conf.d/${SVCNAME} or"
-   eerror "set NOCONFIG there to 1 to disable looking for a config 
file."
-   return 1
-   fi
-}
-
-buildargs() {
-   if [ ${NOCONFIG} = 0 -a ${SERVER} != thin ]; then
-   echo -n "-C ${CONFIG} "
-   fi
-
-   echo -n "${THIN_OPTS}"
-}
-
-action() {
-   checkconfig || return 1
-
-   [ ${DO_BUNDLER} -ne 0 ] && RUBY="${RUBY} /usr/bin/bundle exec"
-
-   if [ ${SERVER} = thin ]; then
-   ebegin "$2 all thin servers in ${CONFIG}"
-   ${RUBY} /usr/bin/thin $1 $(buildargs) --all ${CONFIG}
-   eend $?
-   else
-   ebegin "$2 thin server ${SERVER}"
-   ${RUBY} /usr/bin/thin $(buildargs) --tag ${SERVER} $1
-   eend $?
-   fi
-}
-
-start() {
-   action start 'Starting'
-}
-
-stop() {
-   action stop 'Stopping'
-}
-
-restart() {
-   action restart 'Restarting'
-}
-
-start_pre() {
-   # If the path to the pidfile is 

[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2018-07-01 Thread Hans de Graaff
commit: 6164cb9a74e85d9c9b8108e642883cc4b4ec7441
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun Jul  1 06:59:45 2018 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Jul  1 06:59:45 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6164cb9a

www-servers/thin: add ruby24

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 www-servers/thin/thin-1.7.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www-servers/thin/thin-1.7.2.ebuild 
b/www-servers/thin/thin-1.7.2.ebuild
index b57be6e1536..c256c85b846 100644
--- a/www-servers/thin/thin-1.7.2.ebuild
+++ b/www-servers/thin/thin-1.7.2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-USE_RUBY="ruby21 ruby22 ruby23"
+USE_RUBY="ruby23 ruby24"
 
 RUBY_FAKEGEM_RECIPE_TEST="rspec"
 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2018-04-28 Thread Hans de Graaff
commit: ec1005895c016ecfe2c79605c9732095a4887992
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun Apr 29 05:46:36 2018 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Apr 29 05:58:09 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec100589

www-servers/thin: cleanup

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 www-servers/thin/Manifest |  2 -
 www-servers/thin/thin-1.7.0-r1.ebuild | 88 ---
 www-servers/thin/thin-1.7.1.ebuild| 88 ---
 3 files changed, 178 deletions(-)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
index 9398e73fe3b..9ffd8cf5886 100644
--- a/www-servers/thin/Manifest
+++ b/www-servers/thin/Manifest
@@ -1,3 +1 @@
-DIST thin-1.7.0.tar.gz 180791 BLAKE2B 
60b703abae0c359e11f2ed3689f24a99aa5e636dcf308ed56fc9f72cbe2acefca16c456efe1ff80338020c6543a1c1647b1b7c5d5f21f173595d7caea5ebfdee
 SHA512 
a41ffb8792f5dbc732696af4914e5121e83f21d18e5aae64676dc5d035f84c0e13d352565c5004ba7ac2e42c701522a6aa6a9250303877c3ac566c30336df2c3
-DIST thin-1.7.1.tar.gz 179998 BLAKE2B 
9d046df2264c139823f8bbbff08387b95295a3a9521746103c85cbd69fdbc5de8830b9546e948dd87e742f67521d1adac7f56eaa8e151f1ec8f4de39242921e4
 SHA512 
7a5e3ccef263e5ba15cf53f38d7a8ae6ff974a4cfee2844cc15f9e6afb155b73b43e8c2ba49e177cad20eb9a728f4ddbe0d88417ad7f1c11ca2a535745da73ef
 DIST thin-1.7.2.tar.gz 180169 BLAKE2B 
fe902b76cbffbad739327754c14dcc46372d412c607f852a4f52554ec8e41e38a07f211c28751b3528fd53c7eb30eb0f8130e3bc0877996187a3d755ccfbc17f
 SHA512 
2c3c831eedd42fc88fc2c46e557284748b6b6bf331d6fd827073918cc3a869e5a60bf7db19ba82add28e07c8a8c92dac609a56cda82b41b37ddfb247e7bf

diff --git a/www-servers/thin/thin-1.7.0-r1.ebuild 
b/www-servers/thin/thin-1.7.0-r1.ebuild
deleted file mode 100644
index 48f44ec1c59..000
--- a/www-servers/thin/thin-1.7.0-r1.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-USE_RUBY="ruby21 ruby22 ruby23"
-
-RUBY_FAKEGEM_RECIPE_TEST="rspec"
-RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A fast and very simple Ruby web server"
-HOMEPAGE="http://code.macournoyer.com/thin/;
-SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="Ruby"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE="doc test"
-
-DEPEND="${DEPEND}
-   dev-util/ragel"
-RDEPEND="${RDEPEND}"
-
-# The runtime dependencies are used at build-time as well since the
-# Rakefile loads thin!
-mydeps=">=dev-ruby/daemons-1.0.9
-   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
-   virtual/ruby-ssl"
-
-ruby_add_rdepend "${mydeps}"
-ruby_add_bdepend "${mydeps}
-   dev-ruby/rake-compiler"
-
-all_ruby_prepare() {
-   # Fix Ragel-based parser generation (uses a *very* old syntax that
-   # is not supported in Gentoo)
-   sed -i -e 's: | rlgen-cd::' Rakefile || die
-
-   # Fix specs' dependencies so that the extension is not rebuilt
-   # when running tests
-   rm tasks/spec.rake || die
-
-   # Fix rspec version to allow newer 2.x versions
-   sed -i -e '/gem "rspec"/ s/1.2.9/2.0/' spec/spec_helper.rb || die
-
-   # Avoid CLEAN since it may not be available and we don't need it.
-   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
-
-   # Disable a test that is known for freezing the testsuite,
-   # reported upstream. In thin 1.5.1 this just fails.
-   sed -i \
-   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
-   spec/daemonizing_spec.rb || die
-
-   sed -i \
-   -e '/tracing routines (with NO custom logger)/,/^  end/ s:^:#:'\
-   spec/logging_spec.rb || die
-
-   find spec/perf -name "*_spec.rb" -exec \
-   sed -i '/be_faster_then/ i \pending' {} \;
-
-   sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
-   # nasty but too complex to fix up for now :(
-   use doc || rm tasks/rdoc.rake
-}
-
-each_ruby_compile() {
-   ${RUBY} -S rake compile || die "rake compile failed"
-}
-
-all_ruby_install() {
-   all_fakegem_install
-
-   keepdir /etc/thin
-   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
-   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
-
-   einfo
-   elog "Thin is now shipped with init scripts."
-   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
-   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
-   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
-   elog "See /etc/conf.d/thin for more configuration options."
-   einfo
-}

diff --git a/www-servers/thin/thin-1.7.1.ebuild 
b/www-servers/thin/thin-1.7.1.ebuild
deleted file mode 100644
index b57be6e1536..000
--- a/www-servers/thin/thin-1.7.1.ebuild
+++ 

[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2017-07-10 Thread Hans de Graaff
commit: 058de570c9936f8e879d619865563ae15669d153
Author: Hans de Graaff  gentoo  org>
AuthorDate: Tue Jul 11 04:47:10 2017 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Tue Jul 11 05:03:55 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=058de570

www-servers/thin: add 1.7.2

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 www-servers/thin/Manifest  |  1 +
 www-servers/thin/thin-1.7.2.ebuild | 88 ++
 2 files changed, 89 insertions(+)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
index c88bc9460bb..afc50a57f1a 100644
--- a/www-servers/thin/Manifest
+++ b/www-servers/thin/Manifest
@@ -1,2 +1,3 @@
 DIST thin-1.7.0.tar.gz 180791 SHA256 
8574ea81e50fc6b46bf48c147cce26eb698f60b554228498daba88f65b043927 SHA512 
a41ffb8792f5dbc732696af4914e5121e83f21d18e5aae64676dc5d035f84c0e13d352565c5004ba7ac2e42c701522a6aa6a9250303877c3ac566c30336df2c3
 WHIRLPOOL 
029fde0ec69b4c1bbd57cd98e483c6fa8ec2ae82e4e80c43b0d328a8c424867737b9d8db7a5f642e70b6946092c26b6594d06d884efd2a5efe98b1f387ff9fec
 DIST thin-1.7.1.tar.gz 179998 SHA256 
2b9dbf80d7e2982ed166582af04b0a60dce176461a2547617839610630428120 SHA512 
7a5e3ccef263e5ba15cf53f38d7a8ae6ff974a4cfee2844cc15f9e6afb155b73b43e8c2ba49e177cad20eb9a728f4ddbe0d88417ad7f1c11ca2a535745da73ef
 WHIRLPOOL 
ad60616ed1d0d3ef162e63baf187b13757197022ef4646c8a9cfabcfff750cf325511f2153404dd1e92b4a35bde4aac3f5a6b80ab0eb142a9915508b195cd401
+DIST thin-1.7.2.tar.gz 180169 SHA256 
667a78697331b917ad0f14974537c000c6e06d67a0d9b2a6592791adfed2c48f SHA512 
2c3c831eedd42fc88fc2c46e557284748b6b6bf331d6fd827073918cc3a869e5a60bf7db19ba82add28e07c8a8c92dac609a56cda82b41b37ddfb247e7bf
 WHIRLPOOL 
58af305497cfb6a59f84efbb6b6565e66ef97113efd6aa82e9d794fa5d6e919c6805da278639845eb0c9b2d263c6703ef81b8edc9904acb74db475c68d10b99b

diff --git a/www-servers/thin/thin-1.7.2.ebuild 
b/www-servers/thin/thin-1.7.2.ebuild
new file mode 100644
index 000..b57be6e1536
--- /dev/null
+++ b/www-servers/thin/thin-1.7.2.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and very simple Ruby web server"
+HOMEPAGE="http://code.macournoyer.com/thin/;
+SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="doc test"
+
+DEPEND="${DEPEND}
+   dev-util/ragel"
+RDEPEND="${RDEPEND}"
+
+# The runtime dependencies are used at build-time as well since the
+# Rakefile loads thin!
+mydeps=">=dev-ruby/daemons-1.0.9
+   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
+   virtual/ruby-ssl"
+
+ruby_add_rdepend "${mydeps}"
+ruby_add_bdepend "${mydeps}
+   dev-ruby/rake-compiler"
+
+all_ruby_prepare() {
+   # Fix Ragel-based parser generation (uses a *very* old syntax that
+   # is not supported in Gentoo)
+   sed -i -e 's: | rlgen-cd::' Rakefile || die
+
+   # Fix specs' dependencies so that the extension is not rebuilt
+   # when running tests
+   rm tasks/spec.rake || die
+
+   # Fix rspec version to allow newer 2.x versions
+   sed -i -e '/gem "rspec"/ s/1.2.9/2.0/' spec/spec_helper.rb || die
+
+   # Avoid CLEAN since it may not be available and we don't need it.
+   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
+
+   # Disable a test that is known for freezing the testsuite,
+   # reported upstream. In thin 1.5.1 this just fails.
+   sed -i \
+   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
+   spec/daemonizing_spec.rb || die
+
+   sed -i \
+   -e '/tracing routines (with NO custom logger)/,/^  end/ s:^:#:'\
+   spec/logging_spec.rb || die
+
+   find spec/perf -name "*_spec.rb" -exec \
+   sed -i '/be_faster_then/ i \pending' {} \;
+
+   sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
+   # nasty but too complex to fix up for now :(
+   use doc || rm tasks/rdoc.rake
+}
+
+each_ruby_compile() {
+   ${RUBY} -S rake compile || die "rake compile failed"
+}
+
+all_ruby_install() {
+   all_fakegem_install
+
+   keepdir /etc/thin
+   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
+   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
+
+   einfo
+   elog "Thin is now shipped with init scripts."
+   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
+   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
+   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
+   elog "See /etc/conf.d/thin for more configuration options."
+   einfo
+}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2017-06-19 Thread Hans de Graaff
commit: 2ebd61e87a0391f2c21128dc39b8787a5cadb4fe
Author: Hans de Graaff  gentoo  org>
AuthorDate: Tue Jun 20 04:58:13 2017 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Tue Jun 20 04:58:50 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ebd61e8

www-servers/thin: add 1.7.1

Package-Manager: Portage-2.3.5, Repoman-2.3.1

 www-servers/thin/Manifest  |  1 +
 www-servers/thin/thin-1.7.1.ebuild | 88 ++
 2 files changed, 89 insertions(+)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
index 1371f52b94f..c88bc9460bb 100644
--- a/www-servers/thin/Manifest
+++ b/www-servers/thin/Manifest
@@ -1 +1,2 @@
 DIST thin-1.7.0.tar.gz 180791 SHA256 
8574ea81e50fc6b46bf48c147cce26eb698f60b554228498daba88f65b043927 SHA512 
a41ffb8792f5dbc732696af4914e5121e83f21d18e5aae64676dc5d035f84c0e13d352565c5004ba7ac2e42c701522a6aa6a9250303877c3ac566c30336df2c3
 WHIRLPOOL 
029fde0ec69b4c1bbd57cd98e483c6fa8ec2ae82e4e80c43b0d328a8c424867737b9d8db7a5f642e70b6946092c26b6594d06d884efd2a5efe98b1f387ff9fec
+DIST thin-1.7.1.tar.gz 179998 SHA256 
2b9dbf80d7e2982ed166582af04b0a60dce176461a2547617839610630428120 SHA512 
7a5e3ccef263e5ba15cf53f38d7a8ae6ff974a4cfee2844cc15f9e6afb155b73b43e8c2ba49e177cad20eb9a728f4ddbe0d88417ad7f1c11ca2a535745da73ef
 WHIRLPOOL 
ad60616ed1d0d3ef162e63baf187b13757197022ef4646c8a9cfabcfff750cf325511f2153404dd1e92b4a35bde4aac3f5a6b80ab0eb142a9915508b195cd401

diff --git a/www-servers/thin/thin-1.7.1.ebuild 
b/www-servers/thin/thin-1.7.1.ebuild
new file mode 100644
index 000..b57be6e1536
--- /dev/null
+++ b/www-servers/thin/thin-1.7.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and very simple Ruby web server"
+HOMEPAGE="http://code.macournoyer.com/thin/;
+SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="doc test"
+
+DEPEND="${DEPEND}
+   dev-util/ragel"
+RDEPEND="${RDEPEND}"
+
+# The runtime dependencies are used at build-time as well since the
+# Rakefile loads thin!
+mydeps=">=dev-ruby/daemons-1.0.9
+   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
+   virtual/ruby-ssl"
+
+ruby_add_rdepend "${mydeps}"
+ruby_add_bdepend "${mydeps}
+   dev-ruby/rake-compiler"
+
+all_ruby_prepare() {
+   # Fix Ragel-based parser generation (uses a *very* old syntax that
+   # is not supported in Gentoo)
+   sed -i -e 's: | rlgen-cd::' Rakefile || die
+
+   # Fix specs' dependencies so that the extension is not rebuilt
+   # when running tests
+   rm tasks/spec.rake || die
+
+   # Fix rspec version to allow newer 2.x versions
+   sed -i -e '/gem "rspec"/ s/1.2.9/2.0/' spec/spec_helper.rb || die
+
+   # Avoid CLEAN since it may not be available and we don't need it.
+   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
+
+   # Disable a test that is known for freezing the testsuite,
+   # reported upstream. In thin 1.5.1 this just fails.
+   sed -i \
+   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
+   spec/daemonizing_spec.rb || die
+
+   sed -i \
+   -e '/tracing routines (with NO custom logger)/,/^  end/ s:^:#:'\
+   spec/logging_spec.rb || die
+
+   find spec/perf -name "*_spec.rb" -exec \
+   sed -i '/be_faster_then/ i \pending' {} \;
+
+   sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
+   # nasty but too complex to fix up for now :(
+   use doc || rm tasks/rdoc.rake
+}
+
+each_ruby_compile() {
+   ${RUBY} -S rake compile || die "rake compile failed"
+}
+
+all_ruby_install() {
+   all_fakegem_install
+
+   keepdir /etc/thin
+   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
+   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
+
+   einfo
+   elog "Thin is now shipped with init scripts."
+   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
+   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
+   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
+   elog "See /etc/conf.d/thin for more configuration options."
+   einfo
+}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2017-06-02 Thread Hans de Graaff
commit: 5ed6ecb4d528c4860d1a9ecbc0961f0a9e1f1d85
Author: Hans de Graaff  gentoo  org>
AuthorDate: Fri Jun  2 06:28:52 2017 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Fri Jun  2 06:28:52 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ed6ecb4

www-servers/thin: cleanup

Package-Manager: Portage-2.3.5, Repoman-2.3.1

 www-servers/thin/thin-1.7.0.ebuild | 83 --
 1 file changed, 83 deletions(-)

diff --git a/www-servers/thin/thin-1.7.0.ebuild 
b/www-servers/thin/thin-1.7.0.ebuild
deleted file mode 100644
index f12f4536442..000
--- a/www-servers/thin/thin-1.7.0.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-USE_RUBY="ruby20 ruby21"
-
-RUBY_FAKEGEM_TASK_TEST="spec:main spec:group:0 spec:group:1 spec:group:2"
-
-RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A fast and very simple Ruby web server"
-HOMEPAGE="http://code.macournoyer.com/thin/;
-SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="Ruby"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE="doc test"
-
-DEPEND="${DEPEND}
-   dev-util/ragel"
-RDEPEND="${RDEPEND}"
-
-# The runtime dependencies are used at build-time as well since the
-# Rakefile loads thin!
-mydeps=">=dev-ruby/daemons-1.0.9
-   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
-   virtual/ruby-ssl"
-
-ruby_add_rdepend "${mydeps}"
-ruby_add_bdepend "${mydeps}
-   dev-ruby/rake-compiler
-   test? ( dev-ruby/rspec:0 )"
-
-all_ruby_prepare() {
-   # Fix Ragel-based parser generation (uses a *very* old syntax that
-   # is not supported in Gentoo)
-   sed -i -e 's: | rlgen-cd::' Rakefile || die
-
-   # Fix specs' dependencies so that the extension is not rebuilt
-   # when running tests
-   sed -i -e '/:spec =>/s:^:#:' tasks/spec.rake || die
-
-   # Fix rspec version to allow newer 1.x versions
-   sed -i -e '/gem "rspec"/ s/1.2.9/1.0/' tasks/spec.rake 
spec/spec_helper.rb || die
-
-   # Avoid CLEAN since it may not be available and we don't need it.
-   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
-
-   # Disable a test that is known for freezing the testsuite,
-   # reported upstream. In thin 1.5.1 this just fails.
-   sed -i \
-   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
-   spec/daemonizing_spec.rb || die
-
-   # nasty but too complex to fix up for now :(
-   use doc || rm tasks/rdoc.rake
-   use test || rm tasks/spec.rake
-}
-
-each_ruby_compile() {
-   ${RUBY} -S rake compile || die "rake compile failed"
-}
-
-all_ruby_install() {
-   all_fakegem_install
-
-   keepdir /etc/thin
-   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
-   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
-
-   einfo
-   elog "Thin is now shipped with init scripts."
-   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
-   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
-   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
-   elog "See /etc/conf.d/thin for more configuration options."
-   einfo
-}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2016-12-11 Thread Hans de Graaff
commit: 7cba8b275f41162e02b6c70c0acb74efabbc0f71
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun Dec 11 17:40:06 2016 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Dec 11 18:15:11 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cba8b27

www-servers/thin: add back ~x86 keyword

Package-Manager: portage-2.3.0

 www-servers/thin/thin-1.7.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-servers/thin/thin-1.7.0-r1.ebuild 
b/www-servers/thin/thin-1.7.0-r1.ebuild
index 10c9800..a91e2e6 100644
--- a/www-servers/thin/thin-1.7.0-r1.ebuild
+++ b/www-servers/thin/thin-1.7.0-r1.ebuild
@@ -17,7 +17,7 @@ 
SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> ${P}.tar.g
 
 LICENSE="Ruby"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc64"
+KEYWORDS="~amd64 ~ppc64 ~x86"
 IUSE="doc test"
 
 DEPEND="${DEPEND}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2016-12-04 Thread Manuel Rüger
commit: 69b431726a810b72bd70da5a1f6334c928040f0b
Author: Manuel Rüger  gentoo  org>
AuthorDate: Sun Dec  4 20:54:09 2016 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sun Dec  4 20:54:09 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69b43172

www-servers/thin: Remove old

Package-Manager: portage-2.3.2

 www-servers/thin/Manifest |  1 -
 www-servers/thin/thin-1.6.4-r2.ebuild | 84 ---
 2 files changed, 85 deletions(-)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
index 3c91b6e..1371f52 100644
--- a/www-servers/thin/Manifest
+++ b/www-servers/thin/Manifest
@@ -1,2 +1 @@
-DIST thin-1.6.4.tar.gz 180419 SHA256 
deead8d4d755fd99fa81059bef6b9767e787f027e86d44c903aa3d2a06c082c3 SHA512 
f75bbfbc855769564ff6dbbcb93381d9c9387c3ee1211f53df3eb3a050940c2dd8ffba7321d88f685ec114bf78ee437844853810ff728bad6d760d0b82f95671
 WHIRLPOOL 
a755b434c7b038ec6a0ab24c0819a945e015705ec5234199ec82ab81f85002e2d277160069e215fd86195e84258329a8319887690f1c31174a734befa6ca037f
 DIST thin-1.7.0.tar.gz 180791 SHA256 
8574ea81e50fc6b46bf48c147cce26eb698f60b554228498daba88f65b043927 SHA512 
a41ffb8792f5dbc732696af4914e5121e83f21d18e5aae64676dc5d035f84c0e13d352565c5004ba7ac2e42c701522a6aa6a9250303877c3ac566c30336df2c3
 WHIRLPOOL 
029fde0ec69b4c1bbd57cd98e483c6fa8ec2ae82e4e80c43b0d328a8c424867737b9d8db7a5f642e70b6946092c26b6594d06d884efd2a5efe98b1f387ff9fec

diff --git a/www-servers/thin/thin-1.6.4-r2.ebuild 
b/www-servers/thin/thin-1.6.4-r2.ebuild
deleted file mode 100644
index 9efac81..
--- a/www-servers/thin/thin-1.6.4-r2.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-USE_RUBY="ruby20 ruby21"
-
-RUBY_FAKEGEM_TASK_TEST="spec:main spec:group:0 spec:group:1 spec:group:2"
-
-RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A fast and very simple Ruby web server"
-HOMEPAGE="http://code.macournoyer.com/thin/;
-SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="Ruby"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE="doc test"
-
-DEPEND="${DEPEND}
-   dev-util/ragel"
-RDEPEND="${RDEPEND}"
-
-# The runtime dependencies are used at build-time as well since the
-# Rakefile loads thin!
-mydeps=">=dev-ruby/daemons-1.0.9
-   >=dev-ruby/rack-1.0.0:*
-   >=dev-ruby/eventmachine-1.0.4:0
-   virtual/ruby-ssl"
-
-ruby_add_rdepend "${mydeps}"
-ruby_add_bdepend "${mydeps}
-   dev-ruby/rake-compiler
-   test? ( dev-ruby/rspec:0 )"
-
-all_ruby_prepare() {
-   # Fix Ragel-based parser generation (uses a *very* old syntax that
-   # is not supported in Gentoo)
-   sed -i -e 's: | rlgen-cd::' Rakefile || die
-
-   # Fix specs' dependencies so that the extension is not rebuilt
-   # when running tests
-   sed -i -e '/:spec =>/s:^:#:' tasks/spec.rake || die
-
-   # Fix rspec version to allow newer 1.x versions
-   sed -i -e '/gem "rspec"/ s/1.2.9/1.0/' tasks/spec.rake 
spec/spec_helper.rb || die
-
-   # Avoid CLEAN since it may not be available and we don't need it.
-   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
-
-   # Disable a test that is known for freezing the testsuite,
-   # reported upstream. In thin 1.5.1 this just fails.
-   sed -i \
-   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
-   spec/daemonizing_spec.rb || die
-
-   # nasty but too complex to fix up for now :(
-   use doc || rm tasks/rdoc.rake
-   use test || rm tasks/spec.rake
-}
-
-each_ruby_compile() {
-   ${RUBY} -S rake compile || die "rake compile failed"
-}
-
-all_ruby_install() {
-   all_fakegem_install
-
-   keepdir /etc/thin
-   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
-   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
-
-   einfo
-   elog "Thin is now shipped with init scripts."
-   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
-   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
-   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
-   elog "See /etc/conf.d/thin for more configuration options."
-   einfo
-}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2016-12-04 Thread Manuel Rüger
commit: 38eae75234566b616036e9527eaa352e32c78282
Author: Manuel Rüger  gentoo  org>
AuthorDate: Sun Dec  4 20:53:40 2016 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sun Dec  4 20:53:40 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38eae752

www-servers/thin: Migrate to rspec2; add ruby22, ruby23; drop x86, ppc

Package-Manager: portage-2.3.2

 www-servers/thin/thin-1.7.0-r1.ebuild | 89 +++
 1 file changed, 89 insertions(+)

diff --git a/www-servers/thin/thin-1.7.0-r1.ebuild 
b/www-servers/thin/thin-1.7.0-r1.ebuild
new file mode 100644
index ..10c9800
--- /dev/null
+++ b/www-servers/thin/thin-1.7.0-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and very simple Ruby web server"
+HOMEPAGE="http://code.macournoyer.com/thin/;
+SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64"
+IUSE="doc test"
+
+DEPEND="${DEPEND}
+   dev-util/ragel"
+RDEPEND="${RDEPEND}"
+
+# The runtime dependencies are used at build-time as well since the
+# Rakefile loads thin!
+mydeps=">=dev-ruby/daemons-1.0.9
+   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
+   virtual/ruby-ssl"
+
+ruby_add_rdepend "${mydeps}"
+ruby_add_bdepend "${mydeps}
+   dev-ruby/rake-compiler"
+
+all_ruby_prepare() {
+   # Fix Ragel-based parser generation (uses a *very* old syntax that
+   # is not supported in Gentoo)
+   sed -i -e 's: | rlgen-cd::' Rakefile || die
+
+   # Fix specs' dependencies so that the extension is not rebuilt
+   # when running tests
+   rm tasks/spec.rake || die
+
+   # Fix rspec version to allow newer 2.x versions
+   sed -i -e '/gem "rspec"/ s/1.2.9/2.0/' spec/spec_helper.rb || die
+
+   # Avoid CLEAN since it may not be available and we don't need it.
+   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
+
+   # Disable a test that is known for freezing the testsuite,
+   # reported upstream. In thin 1.5.1 this just fails.
+   sed -i \
+   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
+   spec/daemonizing_spec.rb || die
+
+   sed -i \
+   -e '/tracing routines (with NO custom logger)/,/^  end/ s:^:#:'\
+   spec/logging_spec.rb || die
+
+   find spec/perf -name "*_spec.rb" -exec \
+   sed -i '/be_faster_then/ i \pending' {} \;
+
+   sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
+   # nasty but too complex to fix up for now :(
+   use doc || rm tasks/rdoc.rake
+}
+
+each_ruby_compile() {
+   ${RUBY} -S rake compile || die "rake compile failed"
+}
+
+all_ruby_install() {
+   all_fakegem_install
+
+   keepdir /etc/thin
+   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
+   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
+
+   einfo
+   elog "Thin is now shipped with init scripts."
+   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
+   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
+   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
+   elog "See /etc/conf.d/thin for more configuration options."
+   einfo
+}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2016-05-28 Thread Hans de Graaff
commit: 439f7bfc2fb387dc13c382a7935ce895d705d473
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun May 29 05:21:31 2016 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun May 29 05:21:31 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=439f7bfc

www-servers/thin: add 1.7.0

Package-Manager: portage-2.2.28

 www-servers/thin/Manifest  |  1 +
 www-servers/thin/thin-1.7.0.ebuild | 84 ++
 2 files changed, 85 insertions(+)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
index d13277d..3c91b6e 100644
--- a/www-servers/thin/Manifest
+++ b/www-servers/thin/Manifest
@@ -1 +1,2 @@
 DIST thin-1.6.4.tar.gz 180419 SHA256 
deead8d4d755fd99fa81059bef6b9767e787f027e86d44c903aa3d2a06c082c3 SHA512 
f75bbfbc855769564ff6dbbcb93381d9c9387c3ee1211f53df3eb3a050940c2dd8ffba7321d88f685ec114bf78ee437844853810ff728bad6d760d0b82f95671
 WHIRLPOOL 
a755b434c7b038ec6a0ab24c0819a945e015705ec5234199ec82ab81f85002e2d277160069e215fd86195e84258329a8319887690f1c31174a734befa6ca037f
+DIST thin-1.7.0.tar.gz 180791 SHA256 
8574ea81e50fc6b46bf48c147cce26eb698f60b554228498daba88f65b043927 SHA512 
a41ffb8792f5dbc732696af4914e5121e83f21d18e5aae64676dc5d035f84c0e13d352565c5004ba7ac2e42c701522a6aa6a9250303877c3ac566c30336df2c3
 WHIRLPOOL 
029fde0ec69b4c1bbd57cd98e483c6fa8ec2ae82e4e80c43b0d328a8c424867737b9d8db7a5f642e70b6946092c26b6594d06d884efd2a5efe98b1f387ff9fec

diff --git a/www-servers/thin/thin-1.7.0.ebuild 
b/www-servers/thin/thin-1.7.0.ebuild
new file mode 100644
index 000..4cfb76f
--- /dev/null
+++ b/www-servers/thin/thin-1.7.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_TEST="spec:main spec:group:0 spec:group:1 spec:group:2"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and very simple Ruby web server"
+HOMEPAGE="http://code.macournoyer.com/thin/;
+SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc test"
+
+DEPEND="${DEPEND}
+   dev-util/ragel"
+RDEPEND="${RDEPEND}"
+
+# The runtime dependencies are used at build-time as well since the
+# Rakefile loads thin!
+mydeps=">=dev-ruby/daemons-1.0.9
+   >=dev-ruby/rack-1.0.0:* =dev-ruby/eventmachine-1.0.4:0
+   virtual/ruby-ssl"
+
+ruby_add_rdepend "${mydeps}"
+ruby_add_bdepend "${mydeps}
+   dev-ruby/rake-compiler
+   test? ( dev-ruby/rspec:0 )"
+
+all_ruby_prepare() {
+   # Fix Ragel-based parser generation (uses a *very* old syntax that
+   # is not supported in Gentoo)
+   sed -i -e 's: | rlgen-cd::' Rakefile || die
+
+   # Fix specs' dependencies so that the extension is not rebuilt
+   # when running tests
+   sed -i -e '/:spec =>/s:^:#:' tasks/spec.rake || die
+
+   # Fix rspec version to allow newer 1.x versions
+   sed -i -e '/gem "rspec"/ s/1.2.9/1.0/' tasks/spec.rake 
spec/spec_helper.rb || die
+
+   # Avoid CLEAN since it may not be available and we don't need it.
+   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
+
+   # Disable a test that is known for freezing the testsuite,
+   # reported upstream. In thin 1.5.1 this just fails.
+   sed -i \
+   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
+   spec/daemonizing_spec.rb || die
+
+   # nasty but too complex to fix up for now :(
+   use doc || rm tasks/rdoc.rake
+   use test || rm tasks/spec.rake
+}
+
+each_ruby_compile() {
+   ${RUBY} -S rake compile || die "rake compile failed"
+}
+
+all_ruby_install() {
+   all_fakegem_install
+
+   keepdir /etc/thin
+   newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
+   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
+
+   einfo
+   elog "Thin is now shipped with init scripts."
+   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
+   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
+   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
+   elog "See /etc/conf.d/thin for more configuration options."
+   einfo
+}



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/, www-servers/thin/files/

2016-05-04 Thread Manuel Rüger
commit: 14dae191e1885e3dff62be4ec912e85b8b0c691e
Author: Manuel Rüger  gentoo  org>
AuthorDate: Wed May  4 13:29:49 2016 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Wed May  4 13:29:49 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14dae191

www-servers/thin: Use openrc-run instead of runscript

Package-Manager: portage-2.2.28

 www-servers/thin/files/thin.initd-r4  | 88 +++
 www-servers/thin/thin-1.6.4-r2.ebuild | 84 +
 2 files changed, 172 insertions(+)

diff --git a/www-servers/thin/files/thin.initd-r4 
b/www-servers/thin/files/thin.initd-r4
new file mode 100644
index 000..0b82884
--- /dev/null
+++ b/www-servers/thin/files/thin.initd-r4
@@ -0,0 +1,88 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+SERVER=${SVCNAME#*.}
+if [ ${SERVER} != thin ]; then
+   CONFIG=${CONFIG:-/etc/thin/${SERVER}.yml}
+else
+   CONFIG=${CONFIG:-/etc/thin/}
+fi
+NOCONFIG=${NOCONFIG:-0}
+RUBY=${RUBY:-/usr/bin/ruby}
+DO_BUNDLER=${DO_BUNDLER:-0}
+CHDIR=${CHDIR:-}
+THIN_USER=${THIN_USER:-root}
+THIN_GROUP=${THIN_GROUP:-root}
+THIN_PID=${THIN_PID:-/var/run/thin/thin.pid}
+THIN_OPTS=${THIN_OPTS:-}
+
+depend() {
+   need localmount
+}
+
+checkconfig() {
+   if [ -n ${CHDIR} ]; then
+   cd "${CHDIR}"
+
+   if [ $? -ne 0 ]; then
+   eerror "Cannot cd into requested directory"
+   return 1
+   fi
+   fi
+
+   [ ${SERVER} = thin -o ${NOCONFIG} != 0 ] && return 0
+
+   if [ ! -f ${CONFIG} ]; then
+   eerror "Unable to find the server configuration."
+   eerror "Please set the CONFIG variable in 
/etc/conf.d/${SVCNAME} or"
+   eerror "set NOCONFIG there to 1 to disable looking for a config 
file."
+   return 1
+   fi
+}
+
+buildargs() {
+   if [ ${NOCONFIG} = 0 -a ${SERVER} != thin ]; then
+   echo -n "-C ${CONFIG} "
+   fi
+
+   echo -n "${THIN_OPTS}"
+}
+
+action() {
+   checkconfig || return 1
+
+   [ ${DO_BUNDLER} -ne 0 ] && RUBY="${RUBY} /usr/bin/bundle exec"
+
+   if [ ${SERVER} = thin ]; then
+   ebegin "$2 all thin servers in ${CONFIG}"
+   ${RUBY} /usr/bin/thin $1 $(buildargs) --all ${CONFIG}
+   eend $?
+   else
+   ebegin "$2 thin server ${SERVER}"
+   ${RUBY} /usr/bin/thin $(buildargs) --tag ${SERVER} $1
+   eend $?
+   fi
+}
+
+start() {
+   action start 'Starting'
+}
+
+stop() {
+   action stop 'Stopping'
+}
+
+restart() {
+   action restart 'Restarting'
+}
+
+start_pre() {
+   # If the path to the pidfile is /var/run/thin/foo/thin.pid
+   # then checkpath will fail if /var/run/thin/ does not exist.
+   # This caught infra...
+   d=$(dirname ${THIN_PID})
+   mkdir -p "$d"
+   checkpath -d -m 0775 -o ${THIN_USER}:${THIN_GROUP} "$d"
+}

diff --git a/www-servers/thin/thin-1.6.4-r2.ebuild 
b/www-servers/thin/thin-1.6.4-r2.ebuild
new file mode 100644
index 000..9efac81
--- /dev/null
+++ b/www-servers/thin/thin-1.6.4-r2.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_TEST="spec:main spec:group:0 spec:group:1 spec:group:2"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and very simple Ruby web server"
+HOMEPAGE="http://code.macournoyer.com/thin/;
+SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc test"
+
+DEPEND="${DEPEND}
+   dev-util/ragel"
+RDEPEND="${RDEPEND}"
+
+# The runtime dependencies are used at build-time as well since the
+# Rakefile loads thin!
+mydeps=">=dev-ruby/daemons-1.0.9
+   >=dev-ruby/rack-1.0.0:*
+   >=dev-ruby/eventmachine-1.0.4:0
+   virtual/ruby-ssl"
+
+ruby_add_rdepend "${mydeps}"
+ruby_add_bdepend "${mydeps}
+   dev-ruby/rake-compiler
+   test? ( dev-ruby/rspec:0 )"
+
+all_ruby_prepare() {
+   # Fix Ragel-based parser generation (uses a *very* old syntax that
+   # is not supported in Gentoo)
+   sed -i -e 's: | rlgen-cd::' Rakefile || die
+
+   # Fix specs' dependencies so that the extension is not rebuilt
+   # when running tests
+   sed -i -e '/:spec =>/s:^:#:' tasks/spec.rake || die
+
+   # Fix rspec version to allow newer 1.x versions
+   sed -i -e '/gem "rspec"/ s/1.2.9/1.0/' tasks/spec.rake 
spec/spec_helper.rb || die
+
+   # Avoid CLEAN since it may not be available and we don't need it.
+   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
+
+   # Disable a test that is known for freezing the testsuite,
+   # reported 

[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/, www-servers/thin/files/

2016-05-04 Thread Manuel Rüger
commit: db3f18d7297258ca636c3667aa55eef5f3a1a829
Author: Manuel Rüger  gentoo  org>
AuthorDate: Wed May  4 13:30:59 2016 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Wed May  4 13:30:59 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db3f18d7

www-servers/thin: Remove old

Package-Manager: portage-2.2.28

 www-servers/thin/files/thin.confd | 20 
 www-servers/thin/files/thin.confd-1   | 32 -
 www-servers/thin/files/thin.initd | 63 -
 www-servers/thin/files/thin.initd-1   | 70 
 www-servers/thin/files/thin.initd-2   | 83 -
 www-servers/thin/files/thin.initd-3   | 88 ---
 www-servers/thin/thin-1.6.4-r1.ebuild | 84 -
 7 files changed, 440 deletions(-)

diff --git a/www-servers/thin/files/thin.confd 
b/www-servers/thin/files/thin.confd
deleted file mode 100644
index ca517d6..000
--- a/www-servers/thin/files/thin.confd
+++ /dev/null
@@ -1,20 +0,0 @@
-# /etc/conf.d/thin: Configuration for /etc/init.d/thin*
-# Copy this file to /etc/conf.d/thin.SERVERNAME for server specific options.
-
-# Set the configuration file location.
-# In start-all mode (/etc/init.d/thin), this must point to the directory where
-# all the thin configurations are located.
-# When starting a specific server (/etc/init.d/thin.SERVER), point to the exact
-# location of the .yml configuration file.
-# CONFIG="/etc/thin/${SVCNAME#*.}.yml"
-
-# Disable looking for a configuration file.
-# You can use THIN_OPTS instead for setting command line options.
-# NOCONFIG=0
-
-# Set the Ruby interpreter to use.
-# RUBY="/usr/bin/ruby"
-
-# Set command line options to pass to thin.
-# In specific server mode, '--tag SERVER_NAME' is automatically appended.
-# THIN_OPTS=

diff --git a/www-servers/thin/files/thin.confd-1 
b/www-servers/thin/files/thin.confd-1
deleted file mode 100644
index 16eddf2..000
--- a/www-servers/thin/files/thin.confd-1
+++ /dev/null
@@ -1,32 +0,0 @@
-# /etc/conf.d/thin: Configuration for /etc/init.d/thin*
-# Copy this file to /etc/conf.d/thin.SERVERNAME for server specific options.
-
-# Set the configuration file location.
-# In start-all mode (/etc/init.d/thin), this must point to the directory where
-# all the thin configurations are located.
-# When starting a specific server (/etc/init.d/thin.SERVER), point to the exact
-# location of the .yml configuration file.
-# CONFIG="/etc/thin/${SVCNAME#*.}.yml"
-
-# Disable looking for a configuration file.
-# You can use THIN_OPTS instead for setting command line options.
-# NOCONFIG=0
-
-# Set the Ruby interpreter to use.
-# RUBY="/usr/bin/ruby"
-
-# Set the user for this instance.
-# (Should mirror "user" value in /etc/thin/${SVCNAME#*.}.yml)
-# THIN_USER=
-
-# Set the group for this instance.
-# (Should mirror "group" value in /etc/thin/${SVCNAME#*.}.yml)
-# THIN_GROUP=
-
-# Set the pidfile for this instance.
-# (Should mirror "pid" value in /etc/thin/${SVCNAME#*.}.yml)
-# THIN_PID=
-
-# Set command line options to pass to thin.
-# In specific server mode, '--tag SERVER_NAME' is automatically appended.
-# THIN_OPTS=

diff --git a/www-servers/thin/files/thin.initd 
b/www-servers/thin/files/thin.initd
deleted file mode 100644
index acbb0c7..000
--- a/www-servers/thin/files/thin.initd
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-SERVER=${SVCNAME#*.}
-if [ ${SERVER} != thin ]; then
-CONFIG=${CONFIG:-/etc/thin/${SERVER}.yml}
-else
-CONFIG=${CONFIG:-/etc/thin/}
-fi
-NOCONFIG=${NOCONFIG:-0}
-RUBY=${RUBY:-/usr/bin/ruby}
-THIN_OPTS=${THIN_OPTS:-}
-
-depend() {
-need net localmount
-}
-
-checkconfig() {
-[ ${SERVER} = thin -o ${NOCONFIG} != 0 ] && return 0
-
-if [ ! -f ${CONFIG} ]; then
-eerror "Unable to find the server configuration."
-eerror "Please set the CONFIG variable in 
/etc/conf.d/${SVCNAME} or"
-eerror "set NOCONFIG there to 1 to disable looking for a 
config file."
-return 1
-fi
-}
-
-buildargs() {
-if [ ${NOCONFIG} = 0 -a ${SERVER} != thin ]; then
-echo -n "-C ${CONFIG} "
-fi
-
-echo -n "${THIN_OPTS}"
-}
-
-action() {
-checkconfig || return 1
-
-if [ ${SERVER} = thin ]; then
-ebegin "$2 all thin servers in ${CONFIG}"
-${RUBY} /usr/bin/thin $1 $(buildargs) --all ${CONFIG}
-eend $?
-else
-ebegin "$2 thin server ${SERVER}"
-${RUBY} /usr/bin/thin $(buildargs) --tag ${SERVER} $1
-eend $?
-fi
-}
-
-start() {
-action start 'Starting'
-}
-
-stop() {
-action stop 'Stopping'
-}
-
-restart() {
-action restart 'Restarting'
-}

diff --git 

[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2016-03-20 Thread Manuel Rüger
commit: d248c334cf055eb826134d2610073d3875e6d332
Author: Manuel Rüger  gentoo  org>
AuthorDate: Sun Mar 20 22:50:46 2016 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sun Mar 20 22:50:46 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d248c334

www-servers/thin: Remove old

Package-Manager: portage-2.2.28

 www-servers/thin/Manifest |  1 -
 www-servers/thin/thin-1.6.3-r1.ebuild | 84 ---
 www-servers/thin/thin-1.6.3.ebuild| 84 ---
 3 files changed, 169 deletions(-)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
index 3a15690..d13277d 100644
--- a/www-servers/thin/Manifest
+++ b/www-servers/thin/Manifest
@@ -1,2 +1 @@
-DIST thin-1.6.3.tar.gz 180296 SHA256 
67ad0865c75c09b454bdabfaf7943275282f4aa059a5fb38b9aef8f2c5f7f231 SHA512 
de8c564a9af79d6b8ed849d39c2147745deca8744926a96fe9a5f81745ccab0df5f144d74f1a69fb31d61c8b229d9f51331ad39770d20015e7a4e6453b3abed0
 WHIRLPOOL 
bda35046cb67042273cba973a015518d62dce63627d8c58f7ab57e0a2a6eb6398d17a6d2e0e16f6627714c3aca48bbf0260abd3d34790b76e071ea12f5083735
 DIST thin-1.6.4.tar.gz 180419 SHA256 
deead8d4d755fd99fa81059bef6b9767e787f027e86d44c903aa3d2a06c082c3 SHA512 
f75bbfbc855769564ff6dbbcb93381d9c9387c3ee1211f53df3eb3a050940c2dd8ffba7321d88f685ec114bf78ee437844853810ff728bad6d760d0b82f95671
 WHIRLPOOL 
a755b434c7b038ec6a0ab24c0819a945e015705ec5234199ec82ab81f85002e2d277160069e215fd86195e84258329a8319887690f1c31174a734befa6ca037f

diff --git a/www-servers/thin/thin-1.6.3-r1.ebuild 
b/www-servers/thin/thin-1.6.3-r1.ebuild
deleted file mode 100644
index e98d793..000
--- a/www-servers/thin/thin-1.6.3-r1.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-USE_RUBY="ruby19 ruby20 ruby21"
-
-RUBY_FAKEGEM_TASK_TEST="spec:main spec:group:0 spec:group:1 spec:group:2"
-
-RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A fast and very simple Ruby web server"
-HOMEPAGE="http://code.macournoyer.com/thin/;
-SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="Ruby"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE="doc test"
-
-DEPEND="${DEPEND}
-   dev-util/ragel"
-RDEPEND="${RDEPEND}"
-
-# The runtime dependencies are used at build-time as well since the
-# Rakefile loads thin!
-mydeps=">=dev-ruby/daemons-1.0.9
-   >=dev-ruby/rack-1.0.0
-   >=dev-ruby/eventmachine-1.0.0
-   virtual/ruby-ssl"
-
-ruby_add_rdepend "${mydeps}"
-ruby_add_bdepend "${mydeps}
-   dev-ruby/rake-compiler
-   test? ( dev-ruby/rspec:0 )"
-
-all_ruby_prepare() {
-   # Fix Ragel-based parser generation (uses a *very* old syntax that
-   # is not supported in Gentoo)
-   sed -i -e 's: | rlgen-cd::' Rakefile || die
-
-   # Fix specs' dependencies so that the extension is not rebuilt
-   # when running tests
-   sed -i -e '/:spec =>/s:^:#:' tasks/spec.rake || die
-
-   # Fix rspec version to allow newer 1.x versions
-   sed -i -e '/gem "rspec"/ s/1.2.9/1.0/' tasks/spec.rake 
spec/spec_helper.rb || die
-
-   # Avoid CLEAN since it may not be available and we don't need it.
-   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
-
-   # Disable a test that is known for freezing the testsuite,
-   # reported upstream. In thin 1.5.1 this just fails.
-   sed -i \
-   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
-   spec/daemonizing_spec.rb || die
-
-   # nasty but too complex to fix up for now :(
-   use doc || rm tasks/rdoc.rake
-   use test || rm tasks/spec.rake
-}
-
-each_ruby_compile() {
-   ${RUBY} -S rake compile || die "rake compile failed"
-}
-
-all_ruby_install() {
-   all_fakegem_install
-
-   keepdir /etc/thin
-   newinitd "${FILESDIR}"/${PN}.initd-3 ${PN}
-   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
-
-   einfo
-   elog "Thin is now shipped with init scripts."
-   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
-   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
-   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
-   elog "See /etc/conf.d/thin for more configuration options."
-   einfo
-}

diff --git a/www-servers/thin/thin-1.6.3.ebuild 
b/www-servers/thin/thin-1.6.3.ebuild
deleted file mode 100644
index c972f51..000
--- a/www-servers/thin/thin-1.6.3.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-USE_RUBY="ruby19 ruby20 ruby21"
-
-RUBY_FAKEGEM_TASK_TEST="spec:main spec:group:0 spec:group:1 spec:group:2"
-
-RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A 

[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2016-03-20 Thread Manuel Rüger
commit: 13a21f9a427c514658e34bf50f30ec35d062d114
Author: Manuel Rüger  gentoo  org>
AuthorDate: Sun Mar 20 22:51:19 2016 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sun Mar 20 22:51:19 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13a21f9a

www-servers/thin: Remove ruby19

Package-Manager: portage-2.2.28

 www-servers/thin/thin-1.6.4-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www-servers/thin/thin-1.6.4-r1.ebuild 
b/www-servers/thin/thin-1.6.4-r1.ebuild
index 877cdc1..1d8e054 100644
--- a/www-servers/thin/thin-1.6.4-r1.ebuild
+++ b/www-servers/thin/thin-1.6.4-r1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
 
-USE_RUBY="ruby19 ruby20 ruby21"
+USE_RUBY="ruby20 ruby21"
 
 RUBY_FAKEGEM_TASK_TEST="spec:main spec:group:0 spec:group:1 spec:group:2"
 



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2015-09-30 Thread Hans de Graaff
commit: 00796dfe800702e89802818bf29d054bd22b97c8
Author: Hans de Graaff  gentoo  org>
AuthorDate: Wed Sep 30 08:29:27 2015 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Wed Sep 30 08:29:46 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00796dfe

www-servers/thin: fix eventmachine dependency

Package-Manager: portage-2.2.20.1

 www-servers/thin/{thin-1.6.4.ebuild => thin-1.6.4-r1.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www-servers/thin/thin-1.6.4.ebuild 
b/www-servers/thin/thin-1.6.4-r1.ebuild
similarity index 97%
rename from www-servers/thin/thin-1.6.4.ebuild
rename to www-servers/thin/thin-1.6.4-r1.ebuild
index e98d793..877cdc1 100644
--- a/www-servers/thin/thin-1.6.4.ebuild
+++ b/www-servers/thin/thin-1.6.4-r1.ebuild
@@ -28,8 +28,8 @@ RDEPEND="${RDEPEND}"
 # The runtime dependencies are used at build-time as well since the
 # Rakefile loads thin!
 mydeps=">=dev-ruby/daemons-1.0.9
-   >=dev-ruby/rack-1.0.0
-   >=dev-ruby/eventmachine-1.0.0
+   >=dev-ruby/rack-1.0.0:*
+   >=dev-ruby/eventmachine-1.0.4:0
virtual/ruby-ssl"
 
 ruby_add_rdepend "${mydeps}"



[gentoo-commits] repo/gentoo:master commit in: www-servers/thin/

2015-09-19 Thread Manuel Rüger
commit: 3dd9a093e860ecc24c1d52f6fc8189c0b0b294d8
Author: Manuel Rüger  gentoo  org>
AuthorDate: Sat Sep 19 14:47:29 2015 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sat Sep 19 14:47:29 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dd9a093

www-servers/thin: Version bump

Package-Manager: portage-2.2.20.1

 www-servers/thin/Manifest  |  1 +
 www-servers/thin/thin-1.6.4.ebuild | 84 ++
 2 files changed, 85 insertions(+)

diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
index 6dc0e47..3a15690 100644
--- a/www-servers/thin/Manifest
+++ b/www-servers/thin/Manifest
@@ -1 +1,2 @@
 DIST thin-1.6.3.tar.gz 180296 SHA256 
67ad0865c75c09b454bdabfaf7943275282f4aa059a5fb38b9aef8f2c5f7f231 SHA512 
de8c564a9af79d6b8ed849d39c2147745deca8744926a96fe9a5f81745ccab0df5f144d74f1a69fb31d61c8b229d9f51331ad39770d20015e7a4e6453b3abed0
 WHIRLPOOL 
bda35046cb67042273cba973a015518d62dce63627d8c58f7ab57e0a2a6eb6398d17a6d2e0e16f6627714c3aca48bbf0260abd3d34790b76e071ea12f5083735
+DIST thin-1.6.4.tar.gz 180419 SHA256 
deead8d4d755fd99fa81059bef6b9767e787f027e86d44c903aa3d2a06c082c3 SHA512 
f75bbfbc855769564ff6dbbcb93381d9c9387c3ee1211f53df3eb3a050940c2dd8ffba7321d88f685ec114bf78ee437844853810ff728bad6d760d0b82f95671
 WHIRLPOOL 
a755b434c7b038ec6a0ab24c0819a945e015705ec5234199ec82ab81f85002e2d277160069e215fd86195e84258329a8319887690f1c31174a734befa6ca037f

diff --git a/www-servers/thin/thin-1.6.4.ebuild 
b/www-servers/thin/thin-1.6.4.ebuild
new file mode 100644
index 000..e98d793
--- /dev/null
+++ b/www-servers/thin/thin-1.6.4.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby19 ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_TEST="spec:main spec:group:0 spec:group:1 spec:group:2"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and very simple Ruby web server"
+HOMEPAGE="http://code.macournoyer.com/thin/;
+SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc test"
+
+DEPEND="${DEPEND}
+   dev-util/ragel"
+RDEPEND="${RDEPEND}"
+
+# The runtime dependencies are used at build-time as well since the
+# Rakefile loads thin!
+mydeps=">=dev-ruby/daemons-1.0.9
+   >=dev-ruby/rack-1.0.0
+   >=dev-ruby/eventmachine-1.0.0
+   virtual/ruby-ssl"
+
+ruby_add_rdepend "${mydeps}"
+ruby_add_bdepend "${mydeps}
+   dev-ruby/rake-compiler
+   test? ( dev-ruby/rspec:0 )"
+
+all_ruby_prepare() {
+   # Fix Ragel-based parser generation (uses a *very* old syntax that
+   # is not supported in Gentoo)
+   sed -i -e 's: | rlgen-cd::' Rakefile || die
+
+   # Fix specs' dependencies so that the extension is not rebuilt
+   # when running tests
+   sed -i -e '/:spec =>/s:^:#:' tasks/spec.rake || die
+
+   # Fix rspec version to allow newer 1.x versions
+   sed -i -e '/gem "rspec"/ s/1.2.9/1.0/' tasks/spec.rake 
spec/spec_helper.rb || die
+
+   # Avoid CLEAN since it may not be available and we don't need it.
+   sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
+
+   # Disable a test that is known for freezing the testsuite,
+   # reported upstream. In thin 1.5.1 this just fails.
+   sed -i \
+   -e '/should force kill process in pid file/,/^  end/ s:^:#:' \
+   spec/daemonizing_spec.rb || die
+
+   # nasty but too complex to fix up for now :(
+   use doc || rm tasks/rdoc.rake
+   use test || rm tasks/spec.rake
+}
+
+each_ruby_compile() {
+   ${RUBY} -S rake compile || die "rake compile failed"
+}
+
+all_ruby_install() {
+   all_fakegem_install
+
+   keepdir /etc/thin
+   newinitd "${FILESDIR}"/${PN}.initd-3 ${PN}
+   newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
+
+   einfo
+   elog "Thin is now shipped with init scripts."
+   elog "The default script (/etc/init.d/thin) will start all servers that 
have"
+   elog "configuration files in /etc/thin/. You can symlink the init 
script to"
+   elog "files of the format 'thin.SERVER' to be able to start individual 
servers."
+   elog "See /etc/conf.d/thin for more configuration options."
+   einfo
+}