]> Frank Brehm's Git Trees - config/samara/etc.git/commitdiff
committing changes in /etc after emerge run
authorfbrehm <fbrehm@samara.profitbricks.localdomain>
Tue, 21 Feb 2012 06:22:15 +0000 (07:22 +0100)
committerroot <root@samara.profitbricks.localdomain>
Tue, 21 Feb 2012 06:22:15 +0000 (07:22 +0100)
Package changes:
+dev-ruby/rubygems-1.3.7-r1

.etckeeper
conf.d/gem_server [new file with mode: 0644]
env.d/10rubygems [new file with mode: 0644]
init.d/gem_server [new file with mode: 0755]

index 078a6620d69eac12c94ddf7430afdb47e673cf68..ec20ee823147b1ce1dacba42c54fc8bb45a30b05 100755 (executable)
@@ -234,6 +234,7 @@ maybe chmod 0644 './conf.d/dmesg'
 maybe chmod 0644 './conf.d/fsck'
 maybe chmod 0644 './conf.d/g15daemon'
 maybe chmod 0644 './conf.d/g15stats'
+maybe chmod 0644 './conf.d/gem_server'
 maybe chmod 0644 './conf.d/git-daemon'
 maybe chmod 0644 './conf.d/gpm'
 maybe chmod 0644 './conf.d/gpsd'
@@ -453,6 +454,7 @@ maybe chmod 0644 './env.d/05binutils'
 maybe chmod 0644 './env.d/05gcc-x86_64-pc-linux-gnu'
 maybe chmod 0644 './env.d/08xulrunner'
 maybe chmod 0644 './env.d/09sandbox'
+maybe chmod 0644 './env.d/10rubygems'
 maybe chmod 0644 './env.d/20ant'
 maybe chmod 0644 './env.d/20java-config'
 maybe chmod 0644 './env.d/20php5.3'
@@ -874,6 +876,7 @@ maybe chmod 0755 './init.d/fancontrol'
 maybe chmod 0755 './init.d/fsck'
 maybe chmod 0755 './init.d/g15daemon'
 maybe chmod 0755 './init.d/g15stats'
+maybe chmod 0755 './init.d/gem_server'
 maybe chmod 0755 './init.d/git-daemon'
 maybe chmod 0755 './init.d/gpm'
 maybe chmod 0755 './init.d/gpsd'
diff --git a/conf.d/gem_server b/conf.d/gem_server
new file mode 100644 (file)
index 0000000..b9cfa3f
--- /dev/null
@@ -0,0 +1,5 @@
+# /etc/conf.d/gem_server
+
+# See `gem_server --help` for more
+
+GEM_SERVER_OPTS=""
diff --git a/env.d/10rubygems b/env.d/10rubygems
new file mode 100644 (file)
index 0000000..f512216
--- /dev/null
@@ -0,0 +1 @@
+RUBYOPT="-rauto_gem"
diff --git a/init.d/gem_server b/init.d/gem_server
new file mode 100755 (executable)
index 0000000..49af383
--- /dev/null
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PID=/var/run/gem_server.pid
+
+depend() {
+       need localmount net
+}
+
+start() {
+       ebegin "Starting gem_server"
+       start-stop-daemon --start --chuid nobody --quiet --background --make-pidfile \
+                --pidfile ${PID} --exec /usr/bin/ruby -- /usr/bin/gem server ${GEM_SERVER_OPTS}
+       eend ${?}
+}
+
+stop() {
+       ebegin "Stopping gem_server"
+       start-stop-daemon --stop --pidfile ${PID}
+       eend ${?}
+}