summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2011-06-12 17:13:51 +0000
committerAlex Legler <a3li@gentoo.org>2011-06-12 17:13:51 +0000
commitc35c4da4b5ccc223e2bc9d7a90c1ec34fbeda9b4 (patch)
treec6e923edc43cd8e4160ee3c907716cfc6e33e96e /www-servers
parentVersion bump to the latest. Drop 1.5.0. (diff)
downloadhistorical-c35c4da4b5ccc223e2bc9d7a90c1ec34fbeda9b4.tar.gz
historical-c35c4da4b5ccc223e2bc9d7a90c1ec34fbeda9b4.tar.bz2
historical-c35c4da4b5ccc223e2bc9d7a90c1ec34fbeda9b4.zip
Version bump. The package now installs init scripts and works with more rspec versions.
Package-Manager: portage-2.2.0_alpha39/cvs/Linux x86_64
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/thin/ChangeLog11
-rw-r--r--www-servers/thin/Manifest16
-rw-r--r--www-servers/thin/files/thin.confd20
-rw-r--r--www-servers/thin/files/thin.initd63
-rw-r--r--www-servers/thin/thin-1.2.11.ebuild78
5 files changed, 180 insertions, 8 deletions
diff --git a/www-servers/thin/ChangeLog b/www-servers/thin/ChangeLog
index f17a864d953b..50032f0edb7b 100644
--- a/www-servers/thin/ChangeLog
+++ b/www-servers/thin/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for www-servers/thin
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/thin/ChangeLog,v 1.16 2010/08/13 23:38:19 flameeyes Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/thin/ChangeLog,v 1.17 2011/06/12 17:13:51 a3li Exp $
+
+*thin-1.2.11 (12 Jun 2011)
+
+ 12 Jun 2011; Alex Legler <a3li@gentoo.org> +thin-1.2.11.ebuild,
+ +files/thin.confd, +files/thin.initd:
+ Version bump. The package now installs init scripts and works with more rspec
+ versions.
13 Aug 2010; Diego E. Pettenò <flameeyes@gentoo.org>
thin-1.2.5-r1.ebuild:
diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
index a4469e074d73..4a580c4fc18d 100644
--- a/www-servers/thin/Manifest
+++ b/www-servers/thin/Manifest
@@ -1,15 +1,19 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
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.2.11.gem 142848 RMD160 74537595e90721bb8e013f75e0c65c12f8c156cf SHA1 defa97b88678f1358380346734acefd346a78bd9 SHA256 efdb6d80d613bc3bbd6b65896acd072825e9cfa99b185b875f4ba19fce43a861
DIST thin-1.2.5.gem 152064 RMD160 4f11929bf72d15f38aa9ac05fe458deb4115a90b SHA1 a6ac3d0911a82acc39aa8df235c3a6d78be8f582 SHA256 8a5f1d5d91039f854374a9221c15066d757649090b883d11bbd4af3372be4400
+EBUILD thin-1.2.11.ebuild 2159 RMD160 aea63f00422ca21d8b1747235eb51daba18a1dca SHA1 31e83a1084a364a7f6f9a79e0f9f67be8258b8a3 SHA256 b835dd02358ca34cd08f14db8aa2f831f37f57b9cbae4cfd335fb5eae915da83
EBUILD thin-1.2.5-r1.ebuild 1538 RMD160 6527ace9d64669dcb2a63024f7fed062798cf9be SHA1 3e34bf877c7ce062170f348e25e343d852e2271a SHA256 d3d18951b88f67d7710d206730eeb06745c493a9ad3dc7c123eb60edf6988aec
-MISC ChangeLog 2369 RMD160 f6cd50cbc3b747e97655135821394d2715e5718e SHA1 c3d3067c28be55e1053efa3f42ec4dfff3f58a3f SHA256 65efd4548155c57c3e5c9c48e795f391911c0f264b78d6b024a63a4eda58b8b6
+MISC ChangeLog 2591 RMD160 8ce11a18fdfca9e11cdf6fc147c6ba9ca2438e28 SHA1 be3ba1e1a55b0c0c0eb532774746aa60090dde9e SHA256 ecb8d6f5b2075bc21f201aa27df4e665c4cf291f7482d418e0ee5ecc92d0bee0
MISC metadata.xml 429 RMD160 46c4e3070d56cb7a11d6d2edbea18f7ca893abb4 SHA1 d666e240bdbab618edf666813ee8336dcce1d5a8 SHA256 f96f9c85284589d524a5b3f2ae0ffc9f370d729da95dc0c3e7beb6f32c7eb3cc
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
+Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAkxl11UACgkQAiZjviIA2XgxeACfQwCWGtPHZjP6ug1S06Td2hF8
-A94Anib8OA8+B3A6Tq+Vu+ePr7lUPPzL
-=XxZJ
+iF4EAREIAAYFAk3087gACgkQ3Ca6Xy8+rvQYzAD+OvwC6wxJrmfLqnseYMXnX+Ol
+Y48O7LyrMI0Y7tykRUwA/jJFX+vyzFZrrCKOyog3jAUdIjA49aLpXO7qm13MJMtv
+=0+74
-----END PGP SIGNATURE-----
diff --git a/www-servers/thin/files/thin.confd b/www-servers/thin/files/thin.confd
new file mode 100644
index 000000000000..ca517d6fe36c
--- /dev/null
+++ b/www-servers/thin/files/thin.confd
@@ -0,0 +1,20 @@
+# /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.initd b/www-servers/thin/files/thin.initd
new file mode 100644
index 000000000000..35dfee6ee718
--- /dev/null
+++ b/www-servers/thin/files/thin.initd
@@ -0,0 +1,63 @@
+#!/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'
+}
diff --git a/www-servers/thin/thin-1.2.11.ebuild b/www-servers/thin/thin-1.2.11.ebuild
new file mode 100644
index 000000000000..89d123cf2952
--- /dev/null
+++ b/www-servers/thin/thin-1.2.11.ebuild
@@ -0,0 +1,78 @@
+# 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=2
+
+USE_RUBY="ruby18 ree18"
+
+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
+}