deprec 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,101 @@
1
+
2
+
3
+ deprec
4
+ --enable-proxy
5
+ --enable-proxy-balancer
6
+ --enable-proxy-http
7
+
8
+ --enable-rewrite
9
+ --enable-cache
10
+ --enable-headers
11
+
12
+ --enable-ssl
13
+ --enable-deflate
14
+ --with-included-apr
15
+
16
+ new
17
+ --enable-proxy=shared
18
+ --enable-proxy-balancer=shared
19
+ --enable-proxy-http=shared
20
+ --enable-proxy-html=shared
21
+
22
+ --enable-rewrite
23
+ --enable-cache
24
+ --enable-headers
25
+
26
+ --enable-ssl=shared
27
+ --enable-deflate
28
+ --with-included-apr
29
+
30
+ --enable-so
31
+ --enable-cgi
32
+ --enable-info
33
+ --enable-mime-magic
34
+ --enable-usertrack
35
+ --enable-mem-cache
36
+ --enable-modules=all
37
+ --enable-mods-shared=all
38
+ --with-mpm=worker
39
+
40
+
41
+
42
+
43
+
44
+
45
+ Capistrano.configuration(:must_exist).load do
46
+
47
+ desc "Install full apache with mod_php and extras"
48
+ task :install_full_apache do
49
+ version = 'httpd-2.2.4'
50
+ set :src_package, {
51
+ :file => version + '.tar.gz',
52
+ :md5sum => '3add41e0b924d4bb53c2dee55a38c09e httpd-2.2.4.tar.gz',
53
+ :dir => version,
54
+ :url => "http://www.apache.org/dist/httpd/#{version}.tar.gz",
55
+ :unpack => "tar zxf #{version}.tar.gz;",
56
+ :configure => './configure --enable-so --enable-cgi --enable-info --enable-mime-magic --enable-usertrack --enable-deflate --enable-proxy=shared --enable-proxy-html=shared --enable-proxy-http=shared --enable-proxy-balancer=shared --enable-rewrite --enable-cache --enable-mem-cache --enable-ssl=shared --enable-headers --enable-modules=all --enable-mods-shared=all --with-included-apr --with-mpm=worker;',
57
+ :make => 'make;',
58
+ :install => 'make install;',
59
+ :post_install => 'install -b support/apachectl /etc/init.d/httpd;'
60
+ }
61
+ run "export CFLAGS=-O2;"
62
+ deprec.download_src(src_package, src_dir)
63
+ deprec.install_from_src(src_package, src_dir)
64
+ # ubuntu specific - should instead call generic name which can be picked up by different distros
65
+ send(run_method, "update-rc.d httpd defaults")
66
+ end
67
+
68
+ desc "Install PHP from source"
69
+ task :install_php_from_source do
70
+ version = 'php-5.2.1'
71
+ set :src_package, {
72
+ :file => version + '.tar.gz',
73
+ :dir => version,
74
+ :url => "http://ca.php.net/distributions/#{version}.tar.gz",
75
+ :unpack => "tar zxf #{version}.tar.gz;",
76
+ :configure => "./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --disable-ipv6 --enable-sockets --enable-soap --with-pcre-regex --with-mysql --with-zlib --with-gettext --with-sqlite --enable-sqlite-utf8 --with-openssl --with-mcrypt --with-ncurses --with-jpeg-dir=/usr --with-gd --with-ctype --enable-mbstring --with-curl==/usr/lib;",
77
+ :make => 'make;',
78
+ :install => 'make install;',
79
+ :post_install => ""
80
+ }
81
+ apt.install( {:base => %w(flex libcurl3 libcurl3-dev libmcrypt-dev libmysqlclient15-dev libncurses5-dev)}, :stable )
82
+ run "export CFLAGS=-O2;"
83
+ deprec.download_src(src_package, src_dir)
84
+ deprec.install_from_src(src_package, src_dir)
85
+ end
86
+
87
+ desc "Install apache, ruby, php, and server extras"
88
+ task :install_full_rails_stack do
89
+ setup_user_perms
90
+ enable_universe # we'll need some packages from the 'universe' repository
91
+ disable_cdrom_install # we don't want to have to insert cdrom
92
+ install_packages_for_rails # install packages that come with distribution
93
+ install_rubygems
94
+ install_gems
95
+ install_rmagick
96
+ install_postfix
97
+ install_full_apache
98
+ install_php_from_source # php must be installed after apache, needs 'apxs' in apache2/bin
99
+ end
100
+
101
+ end
@@ -180,7 +180,7 @@ Capistrano.configuration(:must_exist).load do
180
180
  :dir => version,
181
181
  :url => "http://www.apache.org/dist/httpd/#{version}.tar.gz",
182
182
  :unpack => "tar zxf #{version}.tar.gz;",
183
- :configure => './configure --enable-proxy --enable-proxy-balancer --enable-proxy-http --enable-rewrite --enable-cache --enable-headers --enable-ssl --enable-deflate --with-included-apr;',
183
+ :configure => './configure --enable-so --enable-proxy --enable-proxy-balancer --enable-proxy-http --enable-rewrite --enable-cache --enable-headers --enable-ssl --enable-deflate --with-included-apr;',
184
184
  :make => 'make;',
185
185
  :install => 'make install;',
186
186
  :post_install => 'install -b support/apachectl /etc/init.d/httpd;'
@@ -191,6 +191,27 @@ Capistrano.configuration(:must_exist).load do
191
191
  send(run_method, "update-rc.d httpd defaults")
192
192
  end
193
193
 
194
+ desc "Install PHP from source"
195
+ task :install_php do
196
+ version = 'php-5.2.2'
197
+ set :src_package, {
198
+ :file => version + '.tar.gz',
199
+ :md5sum => '7a920d0096900b2b962b21dc5c55fe3c php-5.2.2.tar.gz',
200
+ :dir => version,
201
+ :url => "http://www.php.net/distributions/#{version}.tar.gz",
202
+ :unpack => "tar zxf #{version}.tar.gz;",
203
+ :configure => "./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --disable-ipv6 --enable-sockets --enable-soap --with-pcre-regex --with-mysql --with-zlib --with-gettext --with-sqlite --enable-sqlite-utf8 --with-openssl --with-mcrypt --with-ncurses --with-jpeg-dir=/usr --with-gd --with-ctype --enable-mbstring --with-curl==/usr/lib;",
204
+ :make => 'make;',
205
+ :install => 'make install;',
206
+ :post_install => ""
207
+ }
208
+ apt.install( {:base => %w(flex libcurl3 libcurl3-dev libmcrypt-dev libmysqlclient15-dev libncurses5-dev libxml2-dev libjpeg62-dev libpng12-dev)}, :stable )
209
+ run "export CFLAGS=-O2;"
210
+ deprec.download_src(src_package, src_dir)
211
+ deprec.install_from_src(src_package, src_dir)
212
+ deprec.append_to_file_if_missing('/usr/local/apache2/conf/httpd.conf', 'AddType application/x-httpd-php .php')
213
+ end
214
+
194
215
  desc "Setup public symlink directories"
195
216
  task :setup_symlinks, :roles => [:app, :web] do
196
217
  if app_symlinks
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: deprec
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.5.1
7
- date: 2007-05-05 00:00:00 +10:00
6
+ version: 1.6.0
7
+ date: 2007-05-07 00:00:00 +10:00
8
8
  summary: deployment recipes for capistrano
9
9
  require_paths:
10
10
  - lib
@@ -30,6 +30,7 @@ authors: []
30
30
 
31
31
  files:
32
32
  - bin/deprec
33
+ - docs/apache_config_options.txt
33
34
  - docs/building_edge_capistrano.txt
34
35
  - lib/deprec
35
36
  - lib/deprec/capistrano_extensions