1 |
commit: 8fb1450e251cb9e9600c0fa9fd0e19f99868d21f |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jun 30 18:00:06 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 1 07:34:41 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fb1450e |
7 |
|
8 |
app-admin/webapp-config: remove unused patches |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/1806 |
11 |
|
12 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
13 |
|
14 |
.../webapp-config-1.50.16-absolute-paths.patch | 42 ------------ |
15 |
.../files/webapp-config-1.50.16-apache-move.patch | 13 ---- |
16 |
.../files/webapp-config-1.50.16-baselayout2.patch | 13 ---- |
17 |
.../webapp-config-1.50.16-fix-unicode-tests.patch | 39 ----------- |
18 |
.../webapp-config-1.50.16-htdocs-symlink.patch | 13 ---- |
19 |
.../webapp-config-1.50.16-update-servers.patch | 80 ---------------------- |
20 |
.../files/webapp-config-1.51-fix-indentation.patch | 25 ------- |
21 |
7 files changed, 225 deletions(-) |
22 |
|
23 |
diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-absolute-paths.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-absolute-paths.patch |
24 |
deleted file mode 100644 |
25 |
index c74fff9..0000000 |
26 |
--- a/app-admin/webapp-config/files/webapp-config-1.50.16-absolute-paths.patch |
27 |
+++ /dev/null |
28 |
@@ -1,42 +0,0 @@ |
29 |
-Index: webapp-config-1.50.16/WebappConfig/config.py |
30 |
-=================================================================== |
31 |
---- webapp-config-1.50.16.orig/WebappConfig/config.py |
32 |
-+++ webapp-config-1.50.16/WebappConfig/config.py |
33 |
-@@ -204,6 +204,7 @@ class Config: |
34 |
- pass |
35 |
- |
36 |
- self.__d = { |
37 |
-+ 'allow_absolute' : 'no', |
38 |
- 'config_protect' : wrapper.config_protect, |
39 |
- # Necessary to load the config file |
40 |
- 'my_etcconfig' : '/etc/vhosts/webapp-config', |
41 |
-@@ -870,8 +871,13 @@ class Config: |
42 |
- # |
43 |
- # this makes sure we don't write rubbish into the installs list |
44 |
- |
45 |
-- installpath = self.config.get('USER', 'g_htdocsdir') + '/' + \ |
46 |
-- self.config.get('USER', 'g_installdir') |
47 |
-+ g_installdir = self.config.get('USER', 'g_installdir') |
48 |
-+ |
49 |
-+ if (os.path.isabs(g_installdir) |
50 |
-+ and self.config.get('USER', 'allow_absolute') == 'yes'): |
51 |
-+ installpath = g_installdir |
52 |
-+ else: |
53 |
-+ installpath = self.config.get('USER', 'g_htdocsdir') + '/' + g_installdir |
54 |
- |
55 |
- installpath = re.compile('/+').sub('/', self.__root + installpath) |
56 |
- |
57 |
-Index: webapp-config-1.50.16/config/webapp-config |
58 |
-=================================================================== |
59 |
---- webapp-config-1.50.16.orig/config/webapp-config |
60 |
-+++ webapp-config-1.50.16/config/webapp-config |
61 |
-@@ -183,6 +183,9 @@ vhost_perms_virtualowned_file="o-w" |
62 |
- |
63 |
- vhost_perms_installdir="0755" |
64 |
- |
65 |
-+# Allow specifying absolute path names using the -d option? |
66 |
-+allow_absolute="no" |
67 |
-+ |
68 |
- |
69 |
- # ======================================================================== |
70 |
- # END OF USER-EDITABLE SETTINGS |
71 |
|
72 |
diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-apache-move.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-apache-move.patch |
73 |
deleted file mode 100644 |
74 |
index 6f9a30e..0000000 |
75 |
--- a/app-admin/webapp-config/files/webapp-config-1.50.16-apache-move.patch |
76 |
+++ /dev/null |
77 |
@@ -1,13 +0,0 @@ |
78 |
-Index: webapp-config-1.50.16/WebappConfig/server.py |
79 |
-=================================================================== |
80 |
---- webapp-config-1.50.16.orig/WebappConfig/server.py |
81 |
-+++ webapp-config-1.50.16/WebappConfig/server.py |
82 |
-@@ -300,7 +300,7 @@ class Apache(Basic): |
83 |
- |
84 |
- name = 'Apache' |
85 |
- desc = 'supports installation on Apache 1 & 2' |
86 |
-- dep = '>=net-www/apache-1.3' |
87 |
-+ dep = '>=www-servers/apache-1.3' |
88 |
- |
89 |
- def set_server_user(self): |
90 |
- self.vhost_server_uid = get_user('apache') |
91 |
|
92 |
diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-baselayout2.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-baselayout2.patch |
93 |
deleted file mode 100644 |
94 |
index 24f0004..0000000 |
95 |
--- a/app-admin/webapp-config/files/webapp-config-1.50.16-baselayout2.patch |
96 |
+++ /dev/null |
97 |
@@ -1,13 +0,0 @@ |
98 |
-Index: webapp-config-1.50.16/sbin/webapp-cleaner |
99 |
-=================================================================== |
100 |
---- webapp-config-1.50.16.orig/sbin/webapp-cleaner |
101 |
-+++ webapp-config-1.50.16/sbin/webapp-cleaner |
102 |
-@@ -11,7 +11,7 @@ CMD="emerge -Cav" |
103 |
- WEBAPP_DIR="/usr/share/webapps" |
104 |
- WEBAPP_CONFIG= |
105 |
- |
106 |
--[[ -z ${RC_GOT_FUNCTIONS} ]] && source /sbin/functions.sh |
107 |
-+[[ -z ${RC_GOT_FUNCTIONS} ]] && source /lib/gentoo/functions.sh |
108 |
- |
109 |
- function help() { |
110 |
- echo "Remove obsolete and unused versions of web applications" |
111 |
|
112 |
diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-fix-unicode-tests.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-fix-unicode-tests.patch |
113 |
deleted file mode 100644 |
114 |
index cad75a2..0000000 |
115 |
--- a/app-admin/webapp-config/files/webapp-config-1.50.16-fix-unicode-tests.patch |
116 |
+++ /dev/null |
117 |
@@ -1,39 +0,0 @@ |
118 |
-Make strings unicode to fix test failures |
119 |
- |
120 |
-Python enables unicode by default. Various quoted strings used |
121 |
-in tests were not declared as unicode and so caused false failures. |
122 |
-This patch addresses this issue. |
123 |
- |
124 |
-Signed-off-by: Matthew Thode <prometheanfire@g.o> |
125 |
-Signed-off-by: Anthony G. Basile <blueness@g.o> |
126 |
- |
127 |
-diff -rupN webapp-config-1.50.16/WebappConfig.orig/db.py webapp-config-1.50.16/WebappConfig/db.py |
128 |
---- webapp-config-1.50.16/WebappConfig.orig/db.py 2012-06-17 11:10:15.964264617 -0500 |
129 |
-+++ webapp-config-1.50.16/WebappConfig/db.py 2012-06-17 11:11:05.364265831 -0500 |
130 |
-@@ -186,7 +186,7 @@ class WebappDB(AppHierarchy): |
131 |
- >>> sb = [i[1] for i in b.list_locations().items()] |
132 |
- >>> sb.sort(lambda x,y: cmp(x[0]+x[1],y[0]+y[1])) |
133 |
- >>> sb |
134 |
-- [['gallery', '1.4.4_p6'], ['gallery', '2.0_rc2'], ['horde', '3.0.5'], ['phpldapadmin', '0.9.7_alpha4']] |
135 |
-+ [[u'gallery', u'1.4.4_p6'], [u'gallery', u'2.0_rc2'], [u'horde', u'3.0.5'], [u'phpldapadmin', u'0.9.7_alpha4']] |
136 |
- |
137 |
- >>> c = WebappDB(here + '/tests/testfiles/webapps', |
138 |
- ... package = 'horde', version = '3.0.5') |
139 |
-@@ -572,7 +572,7 @@ class WebappSource(AppHierarchy): |
140 |
- ... 'horde', '3.0.5') |
141 |
- >>> d = a.get_source_directories('htdocs') |
142 |
- >>> [i for i in d if i != '.svn'] |
143 |
-- ['dir1', 'dir2'] |
144 |
-+ [u'dir1', u'dir2'] |
145 |
- ''' |
146 |
- dirs = [] |
147 |
- |
148 |
-@@ -604,7 +604,7 @@ class WebappSource(AppHierarchy): |
149 |
- >>> a = WebappSource(here + '/tests/testfiles/share-webapps', |
150 |
- ... 'horde', '3.0.5') |
151 |
- >>> a.get_source_files('htdocs') |
152 |
-- ['test1', 'test2'] |
153 |
-+ [u'test1', u'test2'] |
154 |
- ''' |
155 |
- |
156 |
- files = [] |
157 |
|
158 |
diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-htdocs-symlink.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-htdocs-symlink.patch |
159 |
deleted file mode 100644 |
160 |
index a7421b9..0000000 |
161 |
--- a/app-admin/webapp-config/files/webapp-config-1.50.16-htdocs-symlink.patch |
162 |
+++ /dev/null |
163 |
@@ -1,13 +0,0 @@ |
164 |
-Index: webapp-config-1.50.16/WebappConfig/server.py |
165 |
-=================================================================== |
166 |
---- webapp-config-1.50.16.orig/WebappConfig/server.py |
167 |
-+++ webapp-config-1.50.16/WebappConfig/server.py |
168 |
-@@ -158,7 +158,7 @@ class Basic: |
169 |
- |
170 |
- # is the installation directory empty? |
171 |
- |
172 |
-- if not os.listdir(self.__destd): |
173 |
-+ if not os.listdir(self.__destd) and os.path.isdir(self.__destd): |
174 |
- if not self.__p: |
175 |
- os.rmdir(self.__destd) |
176 |
- else: |
177 |
|
178 |
diff --git a/app-admin/webapp-config/files/webapp-config-1.50.16-update-servers.patch b/app-admin/webapp-config/files/webapp-config-1.50.16-update-servers.patch |
179 |
deleted file mode 100644 |
180 |
index f6e7bbd..0000000 |
181 |
--- a/app-admin/webapp-config/files/webapp-config-1.50.16-update-servers.patch |
182 |
+++ /dev/null |
183 |
@@ -1,80 +0,0 @@ |
184 |
---- WebappConfig/config.py 2006-12-30 13:38:36.000000000 -0500 |
185 |
-+++ config.py 2009-05-28 12:08:53.000000000 -0400 |
186 |
-@@ -1289,8 +1289,9 @@ |
187 |
- |
188 |
- allowed_servers = {'apache' : WebappConfig.server.Apache, |
189 |
- 'lighttpd' : WebappConfig.server.Lighttpd, |
190 |
-- 'aolserver': WebappConfig.server.Aolserver, |
191 |
-- 'cherokee' : WebappConfig.server.Cherokee} |
192 |
-+ 'cherokee' : WebappConfig.server.Cherokee, |
193 |
-+ 'nginx' : WebappConfig.server.Nginx, |
194 |
-+ 'gatling' : WebappConfig.server.Gatling} |
195 |
- |
196 |
- server = self.config.get('USER', 'vhost_server') |
197 |
- |
198 |
---- WebappConfig/server.py 2009-05-28 12:06:48.000000000 -0400 |
199 |
-+++ server.py 2009-05-28 12:10:54.000000000 -0400 |
200 |
-@@ -316,16 +316,6 @@ |
201 |
- self.vhost_server_uid = get_user('lighttpd') |
202 |
- self.vhost_server_gid = get_group('lighttpd') |
203 |
- |
204 |
--class Aolserver(Basic): |
205 |
-- |
206 |
-- name = 'Aolserver' |
207 |
-- desc = 'supports installation on Aolserver' |
208 |
-- dep = 'www-servers/aolserver' |
209 |
-- |
210 |
-- def set_server_user(self): |
211 |
-- self.vhost_server_uid = get_user('aolserver') |
212 |
-- self.vhost_server_gid = get_group('aolserver') |
213 |
-- |
214 |
- class Cherokee(Basic): |
215 |
- |
216 |
- name = 'Cherokee' |
217 |
-@@ -336,9 +326,30 @@ |
218 |
- self.vhost_server_uid = get_user('cherokee') |
219 |
- self.vhost_server_gid = get_group('cherokee') |
220 |
- |
221 |
-+class Nginx(Basic): |
222 |
-+ |
223 |
-+ name = 'Nginx' |
224 |
-+ desc = 'supports installation on Nginx' |
225 |
-+ dep = 'www-servers/nginx' |
226 |
-+ |
227 |
-+ def set_server_user(self): |
228 |
-+ self.vhost_server_uid = get_user('nginx') |
229 |
-+ self.vhost_server_gid = get_group('nginx') |
230 |
-+ |
231 |
-+class Gatling(Basic): |
232 |
-+ |
233 |
-+ name = 'Gatling' |
234 |
-+ desc = 'supports installation on Gatling' |
235 |
-+ dep = 'www-servers/gatling' |
236 |
-+ |
237 |
-+ def set_server_user(self): |
238 |
-+ self.vhost_server_uid = get_user('gatling') |
239 |
-+ self.vhost_server_gid = get_group('gatling') |
240 |
-+ |
241 |
- def listservers(): |
242 |
- |
243 |
- OUT.notice('\n'.join(['apache', |
244 |
-- 'aolserver', |
245 |
- 'lighttpd', |
246 |
-- 'cherokee'])) |
247 |
-+ 'cherokee', |
248 |
-+ 'nginx', |
249 |
-+ 'gatling'])) |
250 |
---- config/webapp-config 2006-12-30 13:39:13.000000000 -0500 |
251 |
-+++ webapp-config 2009-05-28 12:11:24.000000000 -0400 |
252 |
-@@ -65,9 +65,10 @@ |
253 |
- # your choices are: |
254 |
- # |
255 |
- # apache |
256 |
--# aolserver |
257 |
- # lighttpd |
258 |
- # cherokee |
259 |
-+# nginx |
260 |
-+# gatling |
261 |
- # |
262 |
- # you can override this setting by using the -s switch to webapp-config |
263 |
- |
264 |
|
265 |
diff --git a/app-admin/webapp-config/files/webapp-config-1.51-fix-indentation.patch b/app-admin/webapp-config/files/webapp-config-1.51-fix-indentation.patch |
266 |
deleted file mode 100644 |
267 |
index 27a11aa..0000000 |
268 |
--- a/app-admin/webapp-config/files/webapp-config-1.51-fix-indentation.patch |
269 |
+++ /dev/null |
270 |
@@ -1,25 +0,0 @@ |
271 |
-From 1bc28049300625a3b24a632e2aacb5776937c19b Mon Sep 17 00:00:00 2001 |
272 |
-From: =?UTF-8?q?Manuel=20R=C3=BCger?= <mrueg@g.o> |
273 |
-Date: Tue, 6 Aug 2013 03:59:31 +0200 |
274 |
-Subject: [PATCH] WebappConfig/config.py: fix indentation |
275 |
- |
276 |
---- |
277 |
- WebappConfig/config.py | 2 +- |
278 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
279 |
- |
280 |
-diff --git a/WebappConfig/config.py b/WebappConfig/config.py |
281 |
-index bf55d1e..bb86a55 100644 |
282 |
---- a/WebappConfig/config.py |
283 |
-+++ b/WebappConfig/config.py |
284 |
-@@ -962,7 +962,7 @@ class Config: |
285 |
- OUT.die('You need to specify at least the application you' |
286 |
- ' would like to handle!') |
287 |
- else: |
288 |
-- return self.config.get('USER', 'pn') |
289 |
-+ return self.config.get('USER', 'pn') |
290 |
- |
291 |
- def check_version_set(self): |
292 |
- if not self.config.has_option('USER', 'pvr'): |
293 |
--- |
294 |
-1.8.1.5 |
295 |
- |