Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/thin/, www-servers/thin/files/
Date: Wed, 04 May 2016 13:31:23
Message-Id: 1462368659.db3f18d7297258ca636c3667aa55eef5f3a1a829.mrueg@gentoo
1 commit: db3f18d7297258ca636c3667aa55eef5f3a1a829
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 4 13:30:59 2016 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Wed May 4 13:30:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db3f18d7
7
8 www-servers/thin: Remove old
9
10 Package-Manager: portage-2.2.28
11
12 www-servers/thin/files/thin.confd | 20 --------
13 www-servers/thin/files/thin.confd-1 | 32 -------------
14 www-servers/thin/files/thin.initd | 63 -------------------------
15 www-servers/thin/files/thin.initd-1 | 70 ----------------------------
16 www-servers/thin/files/thin.initd-2 | 83 ---------------------------------
17 www-servers/thin/files/thin.initd-3 | 88 -----------------------------------
18 www-servers/thin/thin-1.6.4-r1.ebuild | 84 ---------------------------------
19 7 files changed, 440 deletions(-)
20
21 diff --git a/www-servers/thin/files/thin.confd b/www-servers/thin/files/thin.confd
22 deleted file mode 100644
23 index ca517d6..0000000
24 --- a/www-servers/thin/files/thin.confd
25 +++ /dev/null
26 @@ -1,20 +0,0 @@
27 -# /etc/conf.d/thin: Configuration for /etc/init.d/thin*
28 -# Copy this file to /etc/conf.d/thin.SERVERNAME for server specific options.
29 -
30 -# Set the configuration file location.
31 -# In start-all mode (/etc/init.d/thin), this must point to the directory where
32 -# all the thin configurations are located.
33 -# When starting a specific server (/etc/init.d/thin.SERVER), point to the exact
34 -# location of the .yml configuration file.
35 -# CONFIG="/etc/thin/${SVCNAME#*.}.yml"
36 -
37 -# Disable looking for a configuration file.
38 -# You can use THIN_OPTS instead for setting command line options.
39 -# NOCONFIG=0
40 -
41 -# Set the Ruby interpreter to use.
42 -# RUBY="/usr/bin/ruby"
43 -
44 -# Set command line options to pass to thin.
45 -# In specific server mode, '--tag SERVER_NAME' is automatically appended.
46 -# THIN_OPTS=
47
48 diff --git a/www-servers/thin/files/thin.confd-1 b/www-servers/thin/files/thin.confd-1
49 deleted file mode 100644
50 index 16eddf2..0000000
51 --- a/www-servers/thin/files/thin.confd-1
52 +++ /dev/null
53 @@ -1,32 +0,0 @@
54 -# /etc/conf.d/thin: Configuration for /etc/init.d/thin*
55 -# Copy this file to /etc/conf.d/thin.SERVERNAME for server specific options.
56 -
57 -# Set the configuration file location.
58 -# In start-all mode (/etc/init.d/thin), this must point to the directory where
59 -# all the thin configurations are located.
60 -# When starting a specific server (/etc/init.d/thin.SERVER), point to the exact
61 -# location of the .yml configuration file.
62 -# CONFIG="/etc/thin/${SVCNAME#*.}.yml"
63 -
64 -# Disable looking for a configuration file.
65 -# You can use THIN_OPTS instead for setting command line options.
66 -# NOCONFIG=0
67 -
68 -# Set the Ruby interpreter to use.
69 -# RUBY="/usr/bin/ruby"
70 -
71 -# Set the user for this instance.
72 -# (Should mirror "user" value in /etc/thin/${SVCNAME#*.}.yml)
73 -# THIN_USER=
74 -
75 -# Set the group for this instance.
76 -# (Should mirror "group" value in /etc/thin/${SVCNAME#*.}.yml)
77 -# THIN_GROUP=
78 -
79 -# Set the pidfile for this instance.
80 -# (Should mirror "pid" value in /etc/thin/${SVCNAME#*.}.yml)
81 -# THIN_PID=
82 -
83 -# Set command line options to pass to thin.
84 -# In specific server mode, '--tag SERVER_NAME' is automatically appended.
85 -# THIN_OPTS=
86
87 diff --git a/www-servers/thin/files/thin.initd b/www-servers/thin/files/thin.initd
88 deleted file mode 100644
89 index acbb0c7..0000000
90 --- a/www-servers/thin/files/thin.initd
91 +++ /dev/null
92 @@ -1,63 +0,0 @@
93 -#!/sbin/runscript
94 -# Copyright 1999-2011 Gentoo Foundation
95 -# Distributed under the terms of the GNU General Public License v2
96 -# $Id$
97 -
98 -SERVER=${SVCNAME#*.}
99 -if [ ${SERVER} != thin ]; then
100 - CONFIG=${CONFIG:-/etc/thin/${SERVER}.yml}
101 -else
102 - CONFIG=${CONFIG:-/etc/thin/}
103 -fi
104 -NOCONFIG=${NOCONFIG:-0}
105 -RUBY=${RUBY:-/usr/bin/ruby}
106 -THIN_OPTS=${THIN_OPTS:-}
107 -
108 -depend() {
109 - need net localmount
110 -}
111 -
112 -checkconfig() {
113 - [ ${SERVER} = thin -o ${NOCONFIG} != 0 ] && return 0
114 -
115 - if [ ! -f ${CONFIG} ]; then
116 - eerror "Unable to find the server configuration."
117 - eerror "Please set the CONFIG variable in /etc/conf.d/${SVCNAME} or"
118 - eerror "set NOCONFIG there to 1 to disable looking for a config file."
119 - return 1
120 - fi
121 -}
122 -
123 -buildargs() {
124 - if [ ${NOCONFIG} = 0 -a ${SERVER} != thin ]; then
125 - echo -n "-C ${CONFIG} "
126 - fi
127 -
128 - echo -n "${THIN_OPTS}"
129 -}
130 -
131 -action() {
132 - checkconfig || return 1
133 -
134 - if [ ${SERVER} = thin ]; then
135 - ebegin "$2 all thin servers in ${CONFIG}"
136 - ${RUBY} /usr/bin/thin $1 $(buildargs) --all ${CONFIG}
137 - eend $?
138 - else
139 - ebegin "$2 thin server ${SERVER}"
140 - ${RUBY} /usr/bin/thin $(buildargs) --tag ${SERVER} $1
141 - eend $?
142 - fi
143 -}
144 -
145 -start() {
146 - action start 'Starting'
147 -}
148 -
149 -stop() {
150 - action stop 'Stopping'
151 -}
152 -
153 -restart() {
154 - action restart 'Restarting'
155 -}
156
157 diff --git a/www-servers/thin/files/thin.initd-1 b/www-servers/thin/files/thin.initd-1
158 deleted file mode 100644
159 index 420aa52..0000000
160 --- a/www-servers/thin/files/thin.initd-1
161 +++ /dev/null
162 @@ -1,70 +0,0 @@
163 -#!/sbin/runscript
164 -# Copyright 1999-2013 Gentoo Foundation
165 -# Distributed under the terms of the GNU General Public License v2
166 -# $Id$
167 -
168 -SERVER=${SVCNAME#*.}
169 -if [ ${SERVER} != thin ]; then
170 - CONFIG=${CONFIG:-/etc/thin/${SERVER}.yml}
171 -else
172 - CONFIG=${CONFIG:-/etc/thin/}
173 -fi
174 -NOCONFIG=${NOCONFIG:-0}
175 -RUBY=${RUBY:-/usr/bin/ruby}
176 -THIN_USER=${THIN_USER:-root}
177 -THIN_GROUP=${THIN_GROUP:-root}
178 -THIN_PID=${THIN_PID:-/var/run/thin/thin.pid}
179 -THIN_OPTS=${THIN_OPTS:-}
180 -
181 -depend() {
182 - need net localmount
183 -}
184 -
185 -checkconfig() {
186 - [ ${SERVER} = thin -o ${NOCONFIG} != 0 ] && return 0
187 -
188 - if [ ! -f ${CONFIG} ]; then
189 - eerror "Unable to find the server configuration."
190 - eerror "Please set the CONFIG variable in /etc/conf.d/${SVCNAME} or"
191 - eerror "set NOCONFIG there to 1 to disable looking for a config file."
192 - return 1
193 - fi
194 -}
195 -
196 -buildargs() {
197 - if [ ${NOCONFIG} = 0 -a ${SERVER} != thin ]; then
198 - echo -n "-C ${CONFIG} "
199 - fi
200 -
201 - echo -n "${THIN_OPTS}"
202 -}
203 -
204 -action() {
205 - checkconfig || return 1
206 -
207 - if [ ${SERVER} = thin ]; then
208 - ebegin "$2 all thin servers in ${CONFIG}"
209 - ${RUBY} /usr/bin/thin $1 $(buildargs) --all ${CONFIG}
210 - eend $?
211 - else
212 - ebegin "$2 thin server ${SERVER}"
213 - ${RUBY} /usr/bin/thin $(buildargs) --tag ${SERVER} $1
214 - eend $?
215 - fi
216 -}
217 -
218 -start() {
219 - action start 'Starting'
220 -}
221 -
222 -stop() {
223 - action stop 'Stopping'
224 -}
225 -
226 -restart() {
227 - action restart 'Restarting'
228 -}
229 -
230 -start_pre() {
231 - checkpath -d -m 0775 -o ${THIN_USER}:${THIN_GROUP} $(dirname ${THIN_PID})
232 -}
233
234 diff --git a/www-servers/thin/files/thin.initd-2 b/www-servers/thin/files/thin.initd-2
235 deleted file mode 100644
236 index d3cba62..0000000
237 --- a/www-servers/thin/files/thin.initd-2
238 +++ /dev/null
239 @@ -1,83 +0,0 @@
240 -#!/sbin/runscript
241 -# Copyright 1999-2013 Gentoo Foundation
242 -# Distributed under the terms of the GNU General Public License v2
243 -# $Id$
244 -
245 -SERVER=${SVCNAME#*.}
246 -if [ ${SERVER} != thin ]; then
247 - CONFIG=${CONFIG:-/etc/thin/${SERVER}.yml}
248 -else
249 - CONFIG=${CONFIG:-/etc/thin/}
250 -fi
251 -NOCONFIG=${NOCONFIG:-0}
252 -RUBY=${RUBY:-/usr/bin/ruby}
253 -DO_BUNDLER=${DO_BUNDLER:-0}
254 -CHDIR=${CHDIR:-}
255 -THIN_USER=${THIN_USER:-root}
256 -THIN_GROUP=${THIN_GROUP:-root}
257 -THIN_PID=${THIN_PID:-/var/run/thin/thin.pid}
258 -THIN_OPTS=${THIN_OPTS:-}
259 -
260 -depend() {
261 - need localmount
262 -}
263 -
264 -checkconfig() {
265 - if [ -n ${CHDIR} ]; then
266 - cd "${CHDIR}"
267 -
268 - if [ $? -ne 0 ]; then
269 - eerror "Cannot cd into requested directory"
270 - return 1
271 - fi
272 - fi
273 -
274 - [ ${SERVER} = thin -o ${NOCONFIG} != 0 ] && return 0
275 -
276 - if [ ! -f ${CONFIG} ]; then
277 - eerror "Unable to find the server configuration."
278 - eerror "Please set the CONFIG variable in /etc/conf.d/${SVCNAME} or"
279 - eerror "set NOCONFIG there to 1 to disable looking for a config file."
280 - return 1
281 - fi
282 -}
283 -
284 -buildargs() {
285 - if [ ${NOCONFIG} = 0 -a ${SERVER} != thin ]; then
286 - echo -n "-C ${CONFIG} "
287 - fi
288 -
289 - echo -n "${THIN_OPTS}"
290 -}
291 -
292 -action() {
293 - checkconfig || return 1
294 -
295 - [ ${DO_BUNDLER} -ne 0 ] && RUBY="${RUBY} /usr/bin/bundle exec"
296 -
297 - if [ ${SERVER} = thin ]; then
298 - ebegin "$2 all thin servers in ${CONFIG}"
299 - ${RUBY} /usr/bin/thin $1 $(buildargs) --all ${CONFIG}
300 - eend $?
301 - else
302 - ebegin "$2 thin server ${SERVER}"
303 - ${RUBY} /usr/bin/thin $(buildargs) --tag ${SERVER} $1
304 - eend $?
305 - fi
306 -}
307 -
308 -start() {
309 - action start 'Starting'
310 -}
311 -
312 -stop() {
313 - action stop 'Stopping'
314 -}
315 -
316 -restart() {
317 - action restart 'Restarting'
318 -}
319 -
320 -start_pre() {
321 - checkpath -d -m 0775 -o ${THIN_USER}:${THIN_GROUP} $(dirname ${THIN_PID})
322 -}
323
324 diff --git a/www-servers/thin/files/thin.initd-3 b/www-servers/thin/files/thin.initd-3
325 deleted file mode 100644
326 index 29406ce..0000000
327 --- a/www-servers/thin/files/thin.initd-3
328 +++ /dev/null
329 @@ -1,88 +0,0 @@
330 -#!/sbin/runscript
331 -# Copyright 1999-2015 Gentoo Foundation
332 -# Distributed under the terms of the GNU General Public License v2
333 -# $Id$
334 -
335 -SERVER=${SVCNAME#*.}
336 -if [ ${SERVER} != thin ]; then
337 - CONFIG=${CONFIG:-/etc/thin/${SERVER}.yml}
338 -else
339 - CONFIG=${CONFIG:-/etc/thin/}
340 -fi
341 -NOCONFIG=${NOCONFIG:-0}
342 -RUBY=${RUBY:-/usr/bin/ruby}
343 -DO_BUNDLER=${DO_BUNDLER:-0}
344 -CHDIR=${CHDIR:-}
345 -THIN_USER=${THIN_USER:-root}
346 -THIN_GROUP=${THIN_GROUP:-root}
347 -THIN_PID=${THIN_PID:-/var/run/thin/thin.pid}
348 -THIN_OPTS=${THIN_OPTS:-}
349 -
350 -depend() {
351 - need localmount
352 -}
353 -
354 -checkconfig() {
355 - if [ -n ${CHDIR} ]; then
356 - cd "${CHDIR}"
357 -
358 - if [ $? -ne 0 ]; then
359 - eerror "Cannot cd into requested directory"
360 - return 1
361 - fi
362 - fi
363 -
364 - [ ${SERVER} = thin -o ${NOCONFIG} != 0 ] && return 0
365 -
366 - if [ ! -f ${CONFIG} ]; then
367 - eerror "Unable to find the server configuration."
368 - eerror "Please set the CONFIG variable in /etc/conf.d/${SVCNAME} or"
369 - eerror "set NOCONFIG there to 1 to disable looking for a config file."
370 - return 1
371 - fi
372 -}
373 -
374 -buildargs() {
375 - if [ ${NOCONFIG} = 0 -a ${SERVER} != thin ]; then
376 - echo -n "-C ${CONFIG} "
377 - fi
378 -
379 - echo -n "${THIN_OPTS}"
380 -}
381 -
382 -action() {
383 - checkconfig || return 1
384 -
385 - [ ${DO_BUNDLER} -ne 0 ] && RUBY="${RUBY} /usr/bin/bundle exec"
386 -
387 - if [ ${SERVER} = thin ]; then
388 - ebegin "$2 all thin servers in ${CONFIG}"
389 - ${RUBY} /usr/bin/thin $1 $(buildargs) --all ${CONFIG}
390 - eend $?
391 - else
392 - ebegin "$2 thin server ${SERVER}"
393 - ${RUBY} /usr/bin/thin $(buildargs) --tag ${SERVER} $1
394 - eend $?
395 - fi
396 -}
397 -
398 -start() {
399 - action start 'Starting'
400 -}
401 -
402 -stop() {
403 - action stop 'Stopping'
404 -}
405 -
406 -restart() {
407 - action restart 'Restarting'
408 -}
409 -
410 -start_pre() {
411 - # If the path to the pidfile is /var/run/thin/foo/thin.pid
412 - # then checkpath will fail if /var/run/thin/ does not exist.
413 - # This caught infra...
414 - d=$(dirname ${THIN_PID})
415 - mkdir -p "$d"
416 - checkpath -d -m 0775 -o ${THIN_USER}:${THIN_GROUP} "$d"
417 -}
418
419 diff --git a/www-servers/thin/thin-1.6.4-r1.ebuild b/www-servers/thin/thin-1.6.4-r1.ebuild
420 deleted file mode 100644
421 index 1d8e054..0000000
422 --- a/www-servers/thin/thin-1.6.4-r1.ebuild
423 +++ /dev/null
424 @@ -1,84 +0,0 @@
425 -# Copyright 1999-2016 Gentoo Foundation
426 -# Distributed under the terms of the GNU General Public License v2
427 -# $Id$
428 -
429 -EAPI=5
430 -
431 -USE_RUBY="ruby20 ruby21"
432 -
433 -RUBY_FAKEGEM_TASK_TEST="spec:main spec:group:0 spec:group:1 spec:group:2"
434 -
435 -RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
436 -
437 -inherit ruby-fakegem
438 -
439 -DESCRIPTION="A fast and very simple Ruby web server"
440 -HOMEPAGE="http://code.macournoyer.com/thin/"
441 -SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
442 -
443 -LICENSE="Ruby"
444 -SLOT="0"
445 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
446 -IUSE="doc test"
447 -
448 -DEPEND="${DEPEND}
449 - dev-util/ragel"
450 -RDEPEND="${RDEPEND}"
451 -
452 -# The runtime dependencies are used at build-time as well since the
453 -# Rakefile loads thin!
454 -mydeps=">=dev-ruby/daemons-1.0.9
455 - >=dev-ruby/rack-1.0.0:*
456 - >=dev-ruby/eventmachine-1.0.4:0
457 - virtual/ruby-ssl"
458 -
459 -ruby_add_rdepend "${mydeps}"
460 -ruby_add_bdepend "${mydeps}
461 - dev-ruby/rake-compiler
462 - test? ( dev-ruby/rspec:0 )"
463 -
464 -all_ruby_prepare() {
465 - # Fix Ragel-based parser generation (uses a *very* old syntax that
466 - # is not supported in Gentoo)
467 - sed -i -e 's: | rlgen-cd::' Rakefile || die
468 -
469 - # Fix specs' dependencies so that the extension is not rebuilt
470 - # when running tests
471 - sed -i -e '/:spec =>/s:^:#:' tasks/spec.rake || die
472 -
473 - # Fix rspec version to allow newer 1.x versions
474 - sed -i -e '/gem "rspec"/ s/1.2.9/1.0/' tasks/spec.rake spec/spec_helper.rb || die
475 -
476 - # Avoid CLEAN since it may not be available and we don't need it.
477 - sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
478 -
479 - # Disable a test that is known for freezing the testsuite,
480 - # reported upstream. In thin 1.5.1 this just fails.
481 - sed -i \
482 - -e '/should force kill process in pid file/,/^ end/ s:^:#:' \
483 - spec/daemonizing_spec.rb || die
484 -
485 - # nasty but too complex to fix up for now :(
486 - use doc || rm tasks/rdoc.rake
487 - use test || rm tasks/spec.rake
488 -}
489 -
490 -each_ruby_compile() {
491 - ${RUBY} -S rake compile || die "rake compile failed"
492 -}
493 -
494 -all_ruby_install() {
495 - all_fakegem_install
496 -
497 - keepdir /etc/thin
498 - newinitd "${FILESDIR}"/${PN}.initd-3 ${PN}
499 - newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
500 -
501 - einfo
502 - elog "Thin is now shipped with init scripts."
503 - elog "The default script (/etc/init.d/thin) will start all servers that have"
504 - elog "configuration files in /etc/thin/. You can symlink the init script to"
505 - elog "files of the format 'thin.SERVER' to be able to start individual servers."
506 - elog "See /etc/conf.d/thin for more configuration options."
507 - einfo
508 -}