/[gentoo-x86]/app-admin/webapp-config/files/webapp-config-1.50.16-update-servers.patch
Gentoo

Contents of /app-admin/webapp-config/files/webapp-config-1.50.16-update-servers.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Dec 19 18:31:55 2010 UTC (4 years ago) by rafaelmartins
Branch: MAIN
CVS Tags: HEAD
Added support to www-servers/{nginx,gatling}. Thanks to Fernando V. (bug #211996)

(Portage version: 2.2.0_alpha8/cvs/Linux x86_64)

1 --- WebappConfig/config.py 2006-12-30 13:38:36.000000000 -0500
2 +++ config.py 2009-05-28 12:08:53.000000000 -0400
3 @@ -1289,8 +1289,9 @@
4
5 allowed_servers = {'apache' : WebappConfig.server.Apache,
6 'lighttpd' : WebappConfig.server.Lighttpd,
7 - 'aolserver': WebappConfig.server.Aolserver,
8 - 'cherokee' : WebappConfig.server.Cherokee}
9 + 'cherokee' : WebappConfig.server.Cherokee,
10 + 'nginx' : WebappConfig.server.Nginx,
11 + 'gatling' : WebappConfig.server.Gatling}
12
13 server = self.config.get('USER', 'vhost_server')
14
15 --- WebappConfig/server.py 2009-05-28 12:06:48.000000000 -0400
16 +++ server.py 2009-05-28 12:10:54.000000000 -0400
17 @@ -316,16 +316,6 @@
18 self.vhost_server_uid = get_user('lighttpd')
19 self.vhost_server_gid = get_group('lighttpd')
20
21 -class Aolserver(Basic):
22 -
23 - name = 'Aolserver'
24 - desc = 'supports installation on Aolserver'
25 - dep = 'www-servers/aolserver'
26 -
27 - def set_server_user(self):
28 - self.vhost_server_uid = get_user('aolserver')
29 - self.vhost_server_gid = get_group('aolserver')
30 -
31 class Cherokee(Basic):
32
33 name = 'Cherokee'
34 @@ -336,9 +326,30 @@
35 self.vhost_server_uid = get_user('cherokee')
36 self.vhost_server_gid = get_group('cherokee')
37
38 +class Nginx(Basic):
39 +
40 + name = 'Nginx'
41 + desc = 'supports installation on Nginx'
42 + dep = 'www-servers/nginx'
43 +
44 + def set_server_user(self):
45 + self.vhost_server_uid = get_user('nginx')
46 + self.vhost_server_gid = get_group('nginx')
47 +
48 +class Gatling(Basic):
49 +
50 + name = 'Gatling'
51 + desc = 'supports installation on Gatling'
52 + dep = 'www-servers/gatling'
53 +
54 + def set_server_user(self):
55 + self.vhost_server_uid = get_user('gatling')
56 + self.vhost_server_gid = get_group('gatling')
57 +
58 def listservers():
59
60 OUT.notice('\n'.join(['apache',
61 - 'aolserver',
62 'lighttpd',
63 - 'cherokee']))
64 + 'cherokee',
65 + 'nginx',
66 + 'gatling']))
67 --- config/webapp-config 2006-12-30 13:39:13.000000000 -0500
68 +++ webapp-config 2009-05-28 12:11:24.000000000 -0400
69 @@ -65,9 +65,10 @@
70 # your choices are:
71 #
72 # apache
73 -# aolserver
74 # lighttpd
75 # cherokee
76 +# nginx
77 +# gatling
78 #
79 # you can override this setting by using the -s switch to webapp-config
80

  ViewVC Help
Powered by ViewVC 1.1.20