ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/frontend.spec
(Generate patch)

Comparing COMP/CMSDIST/frontend.spec (file contents):
Revision 1.7 by lat, Wed Oct 1 20:13:12 2008 UTC vs.
Revision 1.14 by lat, Mon Oct 6 09:21:47 2008 UTC

# Line 1 | Line 1
1 < ### RPM cms frontend 1.1b
1 > ### RPM cms frontend 2.0
2   %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&strategy=export&nocache=true
3 < Source0: %cvsserver&module=COMP/WEBTOOLS/Configuration&export=conf&tag=-rFRONTEND_CONF_1_1&output=/config.tar.gz
3 > Source0: %cvsserver&module=COMP/WEBTOOLS/Configuration&export=conf&tag=-rFRONTEND_CONF_2_0&output=/config.tar.gz
4   Source1: %cvsserver&module=COMP/WEBTOOLS/WelcomePages&export=htdocs&tag=-rFRONTEND_HTDOCS_1_0&output=/htdocs.tar.gz
5 < Requires: apache2-conf
6 < Obsoletes: cms+frontend+1.1
5 > Requires: apache2-conf mod_perl2
6 > Provides: perl(Compress::Zlib) perl(Digest::HMAC_SHA1)
7 > Obsoletes: cms+frontend+1.3-cmp
8 > Obsoletes: cms+frontend+1.2-cmp
9 > Obsoletes: cms+frontend+1.1e-cmp
10 > Obsoletes: cms+frontend+1.1d-cmp
11 > Obsoletes: cms+frontend+1.1c-cmp
12 > Obsoletes: cms+frontend+1.1b-cmp
13 > Obsoletes: cms+frontend+1.1-cmp
14   Obsoletes: cms+frontend+1.0-cmp11
15   Obsoletes: cms+frontend+1.0-cmp10
16   Obsoletes: cms+frontend+1.0-cmp9
# Line 26 | Line 33 | Obsoletes: cms+frontend+1.0-cmp
33   rm -fr %instroot/htdocs/*
34   rm -fr %instroot/apache2/*rewrites.d
35   rm -f %instroot/apache2/apps.d/*frontend.conf
36 + rm -f %instroot/apache2/*/CMSAuth.pm
37 + rm -f %instroot/apache2/*/update-cookie-key
38  
39   mkdir -p %instroot/apache2/apps.d
40   mkdir -p %instroot/apache2/rewrites.d
41   mkdir -p %instroot/apache2/ssl_rewrites.d
42 + mkdir -p %instroot/apache2/var/cookie-keys
43   mkdir -p %instroot/apache2/htdocs
44 + mkdir -p %instroot/apache2/auth
45 + mkdir -p %instroot/apache2/etc
46  
47   # Replace template variables in configuration files with actual paths.
48 < perl -p -i -e "s|\@SERVER_ROOT\@|%instroot|g;s|\@APACHE2_ROOT\@|$APACHE2_ROOT|g;" %_builddir/conf/*/*.conf
48 > perl -p -i -e "
49 >  s|\@SERVER_ROOT\@|%instroot/apache2|g;
50 >  s|\@APACHE2_ROOT\@|$APACHE2_ROOT|g;
51 >  s|\@MOD_PERL2_ROOT\@|$MOD_PERL2_ROOT|g" \
52 >  %_builddir/conf/*/*.conf
53  
54   # Copy files to the server setup directory.
55 + cp -p %_builddir/conf/CMSAuth.pm %instroot/apache2/conf/CMSAuth.pm
56 + cp -p %_builddir/conf/cms-centres.txt %instroot/apache2/etc/cms-centres.txt
57 + cp -p %_builddir/conf/update-cookie-key %instroot/apache2/etc/update-cookie-key
58   cp -p %_builddir/conf/apps.d/*frontend.conf %instroot/apache2/apps.d
59   cp -p %_builddir/conf/rewrites.d/*.conf %instroot/apache2/rewrites.d
60   cp -p %_builddir/conf/ssl_rewrites.d/*.conf %instroot/apache2/ssl_rewrites.d
# Line 47 | Line 66 | perl -p -i -e "s|%instroot|$RPM_INSTALL_
66  
67   # Deter attempts to modify installed files locally.
68   chmod a-w $RPM_INSTALL_PREFIX/apache2/*.d/*.conf
69 + chmod a-w $RPM_INSTALL_PREFIX/apache2/conf/CMSAuth.pm
70 + chmod a-w $RPM_INSTALL_PREFIX/apache2/etc/update-cookie-key
71  
72   %files
73   %i/
74 + %dir %instroot/apache2/var/cookie-keys
75   %dir %instroot/apache2/rewrites.d
76   %dir %instroot/apache2/ssl_rewrites.d
77 < %attr(444,-,-) %instroot/apache2/apps.d/*frontend.conf
78 < %attr(444,-,-) %instroot/apache2/rewrites.d/*.conf
79 < %attr(444,-,-) %instroot/apache2/ssl_rewrites.d/*.conf
77 > %dir %instroot/apache2/auth
78 > %dir %instroot/apache2/etc
79 > %attr(555,-,-) %instroot/apache2/etc/update-cookie-key
80 > %config %instroot/apache2/etc/cms-centres.txt
81 > %config %attr(444,-,-) %instroot/apache2/apps.d/*frontend.conf
82 > %config %attr(444,-,-) %instroot/apache2/rewrites.d/*.conf
83 > %config %attr(444,-,-) %instroot/apache2/ssl_rewrites.d/*.conf
84 > %attr(444,-,-) %instroot/apache2/conf/CMSAuth.pm
85 > %instroot/apache2/htdocs/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines