thin: remove outdated sofware

This commit is contained in:
Anton Bolshakov 2014-01-17 09:40:19 +00:00
parent bddea615ab
commit 2f9a8b9428
5 changed files with 0 additions and 193 deletions

View file

@ -1,5 +0,0 @@
AUX thin-1.2.5-tests.patch 957 RMD160 49ca87c338bddeec4488c76d1a43ad8f969ea52e SHA1 a9968abefaa3d8da0dcbbc458f1a3f4e3627c288 SHA256 44230c552082f06ef4db1d978c5fd71199cec17b47ef8ab701b4eabde3a7e44f
AUX thin.confd 772 RMD160 cce46ac294be31d28575d0f712708335547853d3 SHA1 782323bf5b1cafd65812339a90ff5f935d78010f SHA256 0c6d12deb82208da1acb5ee1f55ed9a5df159ea0f31db9a99b416ca3956a1772
AUX thin.initd 1591 RMD160 d32c9f0b7fc083060305c71d753cf7580b03e9fe SHA1 915d073da08f479e17f7a32076f1f15f4f2c5d53 SHA256 09f7be62b2231a9461b3aafcfddb95fe9ffadbfba1bb5b3044f27f72efe65fea
DIST thin-1.3.1.gem 141824 RMD160 e03d1607b1c00d7458d3fb9dc55a5b0e64c99449 SHA1 e009f5ce3ba092299cd0810652e67c080ffaef14 SHA256 283c01bf7d15d8b3cca47eae4ba03256a38c0a7b0f0c68b952400dab8a19b5f3
EBUILD thin-1.3.1.ebuild 2166 RMD160 fb4738bc3592b81dd2440e5cb993516afedcf75c SHA1 98c9ef9b7c9123c94178453382b873b9a9a5bfa9 SHA256 2717a71322f283cb99aacf90e96758581ff224f5088de22da856720f66e098a0

View file

@ -1,27 +0,0 @@
unchanged:
--- a/spec/request/processing_spec.rb
+++ b/spec/request/processing_spec.rb
@@ -44,6 +44,7 @@ describe Request, 'processing' do
end
it "should set body external encoding to ASCII_8BIT" do
+ pending("Ruby 1.9 compatible implementations only") unless StringIO.instance_methods.include? :external_encoding
Request.new.body.external_encoding.should == Encoding::ASCII_8BIT
end
end
\ No newline at end of file
only in patch2:
unchanged:
--- a/spec/server_spec.rb
+++ b/spec/server_spec.rb
@@ -12,6 +12,10 @@ describe Server do
end
it "should set lower maximum_connections size when too large" do
+ # root users under Linux will not have a limitation on maximum
+ # connections, so we cannot really run this test under that
+ # condition.
+ pending("only for non-root users") if Process.euid == 0
@server.maximum_connections = 100_000
@server.config
@server.maximum_connections.should < 100_000

View file

@ -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=

View file

@ -1,63 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/thin/files/thin.initd,v 1.1 2011/06/12 17:13:51 a3li Exp $
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'
}

View file

@ -1,78 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/thin/thin-1.2.11.ebuild,v 1.1 2011/06/12 17:13:51 a3li Exp $
EAPI=3
USE_RUBY="ruby18 ree18 ruby19"
RUBY_FAKEGEM_TASK_TEST="spec"
inherit ruby-fakegem
DESCRIPTION="A fast and very simple Ruby web server"
HOMEPAGE="http://code.macournoyer.com/thin/"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE=""
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-0.12.6
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 || die
# Disable a test that is known for freezing the testsuite,
# reported upstream.
sed -i \
-e '/should force kill process in pid file/,/^ end/ s:^:#:' \
spec/daemonizing_spec.rb || die
rm spec/server/robustness_spec.rb || die
# nasty but too complex to fix up for now :(
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 ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${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
}