server-blender 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/files/bootstrap.sh +63 -30
- data/server-blender.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.19
|
data/files/bootstrap.sh
CHANGED
@@ -19,6 +19,11 @@ System: `uname -a`
|
|
19
19
|
_
|
20
20
|
}
|
21
21
|
|
22
|
+
function is_darwin()
|
23
|
+
{
|
24
|
+
[[ "`uname -s`" == "Darwin" ]]
|
25
|
+
}
|
26
|
+
|
22
27
|
function setup_node()
|
23
28
|
{
|
24
29
|
if [ -n "${NODE:-}" ]; then
|
@@ -58,7 +63,6 @@ function blender_init()
|
|
58
63
|
set -x
|
59
64
|
}
|
60
65
|
|
61
|
-
|
62
66
|
function distribution()
|
63
67
|
{
|
64
68
|
echo "$DISTRIB_ID $DISTRIB_RELEASE"
|
@@ -83,19 +87,43 @@ function check_version()
|
|
83
87
|
fi
|
84
88
|
}
|
85
89
|
|
86
|
-
|
87
|
-
|
90
|
+
XCODE=xcode_3.2.2_and_iphone_sdk_3.2_final.dmg
|
91
|
+
|
92
|
+
function install_xcode()
|
93
|
+
{
|
94
|
+
if [ -e /usr/bin/gcc ]; then
|
95
|
+
|
96
|
+
log "XCODE seems to be installed"
|
97
|
+
|
98
|
+
else
|
99
|
+
|
100
|
+
log "Installing XCODE..."
|
101
|
+
|
102
|
+
if [ ! -e $XCODE ]; then
|
103
|
+
log "plase download $XCODE and place it in root's home directory"
|
104
|
+
exit
|
105
|
+
fi
|
106
|
+
|
107
|
+
hdiutil mount -plist -nobrowse -readonly -mountrandom /tmp -noidme $XCODE | tee /tmp/xcode-mount.xml
|
108
|
+
|
109
|
+
pkg_path=`cat /tmp/xcode-mount.xml | grep string | grep /tmp/ | cut '-d>' -f2 | cut '-d<' -f1`
|
110
|
+
|
111
|
+
log "package is mounted in $pkg_path"
|
112
|
+
|
113
|
+
installer -pkg $pkg_path/*.mpkg -target /
|
88
114
|
|
89
|
-
|
115
|
+
hdiutil eject $pkg_path
|
90
116
|
|
91
|
-
|
92
|
-
|
117
|
+
log "XCODE installed"
|
118
|
+
|
119
|
+
fi
|
120
|
+
}
|
121
|
+
|
122
|
+
function set_apt_options()
|
93
123
|
{
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
Pin-Priority: 500
|
98
|
-
PREFS
|
124
|
+
export DEBIAN_FRONTEND=noninteractive
|
125
|
+
export DEBIAN_PRIORITY=critical
|
126
|
+
APT_OPTS="-qy -o DPkg::Options::=--force-confdef -o DPkg::Options::=--force-confnew"
|
99
127
|
}
|
100
128
|
|
101
129
|
function apt_upgrade()
|
@@ -122,8 +150,6 @@ function setup_etckeeper()
|
|
122
150
|
etckeeper commit "import during bootstrap" || true
|
123
151
|
}
|
124
152
|
|
125
|
-
|
126
|
-
|
127
153
|
function install_stuff()
|
128
154
|
{
|
129
155
|
log "installing required packages"
|
@@ -167,7 +193,6 @@ function install_custom_rubygems()
|
|
167
193
|
}
|
168
194
|
|
169
195
|
# adds /var/lib/gems/1.8/bin to paths. only needed with the system (debian) braindead gems
|
170
|
-
|
171
196
|
function add_gems_to_system_path()
|
172
197
|
{
|
173
198
|
log "fixing system path"
|
@@ -195,6 +220,18 @@ ENV
|
|
195
220
|
etckeeper commit "after PATH update"
|
196
221
|
}
|
197
222
|
|
223
|
+
function install_rubygems()
|
224
|
+
{
|
225
|
+
if [[ "${USE_SYSTEM_GEMS:-y}" == "y" ]]; then
|
226
|
+
install_system_rubygems
|
227
|
+
add_gems_to_system_path
|
228
|
+
else
|
229
|
+
install_custom_rubygems
|
230
|
+
upgrade_rubygems
|
231
|
+
# upstream rubygems install executables into /usr/bin so no need to fix the path
|
232
|
+
fi
|
233
|
+
}
|
234
|
+
|
198
235
|
#########################################################
|
199
236
|
#########################################################
|
200
237
|
|
@@ -205,28 +242,24 @@ blender_init
|
|
205
242
|
setup_node
|
206
243
|
setup_hostname
|
207
244
|
|
208
|
-
|
209
|
-
|
210
|
-
apt_upgrade
|
211
|
-
setup_etckeeper
|
212
|
-
install_stuff
|
213
|
-
install_system_ruby
|
214
|
-
|
215
|
-
if [[ "${USE_SYSTEM_GEMS:-y}" == "y" ]]; then
|
216
|
-
install_system_rubygems
|
217
|
-
add_gems_to_system_path
|
245
|
+
if is_darwin; then
|
246
|
+
install_xcode
|
218
247
|
else
|
219
|
-
|
220
|
-
|
221
|
-
|
248
|
+
check_version
|
249
|
+
set_apt_options
|
250
|
+
apt_upgrade
|
251
|
+
setup_etckeeper
|
252
|
+
install_stuff
|
253
|
+
install_system_ruby
|
254
|
+
install_rubygems
|
255
|
+
|
256
|
+
etckeeper commit "bootstrapped"
|
222
257
|
fi
|
223
258
|
|
259
|
+
log "Installing some gems"
|
224
260
|
gem install --no-rdoc --no-ri rdoc # needed by most gems
|
225
261
|
gem install --no-rdoc --no-ri ruby-debug # very useful to debug manifests
|
226
262
|
|
227
263
|
date > /etc/bootstraped_at
|
228
|
-
etckeeper commit "bootstrapped"
|
229
|
-
|
230
264
|
trap - EXIT
|
231
|
-
|
232
265
|
echo COMPLETED
|
data/server-blender.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{server-blender}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.19"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Vitaly Kushner"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-10}
|
13
13
|
s.default_executable = %q{blender}
|
14
14
|
s.description = %q{Boostrap and manage servers with shadow_puppet
|
15
15
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: server-blender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 19
|
10
|
+
version: 0.0.19
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Vitaly Kushner
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-10 00:00:00 +02:00
|
19
19
|
default_executable: blender
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|