1 |
< |
### RPM cms webtools alpha |
1 |
> |
### RPM cms webtools ALPHA |
2 |
|
%define moduleName WEBTOOLS |
3 |
|
%define exportName WEBTOOLS |
4 |
< |
%define cvstag HEAD |
4 |
> |
%define cvstag DMWT_0_0_1 |
5 |
|
%define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e |
6 |
|
Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/%{moduleName}.tar.gz |
7 |
|
|
15 |
|
# Serve a complete directory |
16 |
|
[/Common] |
17 |
|
static_filter.on = True |
18 |
< |
static_filter.dir = "%i/Common" |
18 |
> |
static_filter.dir = %i/Common |
19 |
|
[/Templates] |
20 |
|
static_filter.on = True |
21 |
< |
static_filter.dir = "%i/Templates" |
21 |
> |
static_filter.dir = %i/Templates |
22 |
> |
# Serve a complete directory |
23 |
> |
[/WEBTOOLS/Common] |
24 |
> |
static_filter.on = True |
25 |
> |
static_filter.dir = %i/Common |
26 |
> |
[/WEBTOOLS/Templates] |
27 |
> |
static_filter.on = True |
28 |
> |
static_filter.dir = %i/Templates |
29 |
|
EOF_CHERRYPY_CONF |
30 |
+ |
cat << \EOF_APACHE2_HEADER > %i/etc/apache2-header.conf |
31 |
+ |
RewriteEngine On |
32 |
+ |
RewriteBase /cms/services |
33 |
+ |
EOF_APACHE2_HEADER |
34 |
+ |
|
35 |
+ |
cat << \EOF_APACHE2_CONF > %i/etc/apache2.conf |
36 |
+ |
<Directory %i/Common> |
37 |
+ |
Allow from all |
38 |
+ |
</Directory> |
39 |
+ |
<Directory %i/Templates> |
40 |
+ |
Allow from all |
41 |
+ |
</Directory> |
42 |
+ |
EOF_APACHE2_CONF |
43 |
+ |
|
44 |
+ |
cat << \EOF_APACHE2_FOOTER > %i/etc/apache2-footer.conf |
45 |
+ |
RewriteRule ^/cms/services/webtools/Common(.*)$ %i/Common$1 |
46 |
+ |
RewriteRule ^/cms/services/webtools/Templates(.*)$ %i/Templates$1 |
47 |
+ |
EOF_APACHE2_FOOTER |
48 |
|
|
49 |
|
%post |
50 |
|
%{relocateConfig}etc/cherrypy.conf |
51 |
+ |
%{relocateConfig}etc/apache2.conf |
52 |
+ |
%{relocateConfig}etc/apache2-header.conf |
53 |
+ |
%{relocateConfig}etc/apache2-footer.conf |
54 |
+ |
|