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.13 by lat, Mon Oct 6 09:14:18 2008 UTC vs.
Revision 1.16 by lat, Mon Oct 6 09:45:43 2008 UTC

# Line 1 | Line 1
1 < ### RPM cms frontend 2.0
1 > ### RPM cms frontend 2.1
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_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 mod_perl2
6 + Provides: perl(Compress::Zlib) perl(Digest::HMAC_SHA1)
7 + Obsoletes: cms+frontend+2.0c-cmp
8 + Obsoletes: cms+frontend+2.0b-cmp
9 + Obsoletes: cms+frontend+2.0-cmp
10   Obsoletes: cms+frontend+1.3-cmp
11   Obsoletes: cms+frontend+1.2-cmp
12   Obsoletes: cms+frontend+1.1e-cmp
# Line 32 | Line 36 | Obsoletes: cms+frontend+1.0-cmp
36   rm -fr %instroot/htdocs/*
37   rm -fr %instroot/apache2/*rewrites.d
38   rm -f %instroot/apache2/apps.d/*frontend.conf
39 + rm -f %instroot/apache2/startenv.d/mod_perl2.sh
40   rm -f %instroot/apache2/*/CMSAuth.pm
41   rm -f %instroot/apache2/*/update-cookie-key
42  
# Line 51 | Line 56 | perl -p -i -e "
56    %_builddir/conf/*/*.conf
57  
58   # Copy files to the server setup directory.
59 + cp -p $MOD_PERL2_ROOT/etc/profile.d/init.sh %instroot/apache2/startenv.d/mod_perl2.sh
60   cp -p %_builddir/conf/CMSAuth.pm %instroot/apache2/conf/CMSAuth.pm
61   cp -p %_builddir/conf/cms-centres.txt %instroot/apache2/etc/cms-centres.txt
62   cp -p %_builddir/conf/update-cookie-key %instroot/apache2/etc/update-cookie-key
# Line 61 | Line 67 | cp -rp %_builddir/htdocs/* %instroot/apa
67  
68   %post
69   # Relocate files.
70 < perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/apache2/*.d/*.conf
70 > perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/apache2/*.d/*.{conf,sh}
71  
72   # Deter attempts to modify installed files locally.
73 < chmod a-w $RPM_INSTALL_PREFIX/apache2/*.d/*.conf
73 > chmod a-w $RPM_INSTALL_PREFIX/apache2/*.d/*.{conf,sh}
74   chmod a-w $RPM_INSTALL_PREFIX/apache2/conf/CMSAuth.pm
75   chmod a-w $RPM_INSTALL_PREFIX/apache2/etc/update-cookie-key
76  
# Line 75 | Line 81 | chmod a-w $RPM_INSTALL_PREFIX/apache2/et
81   %dir %instroot/apache2/ssl_rewrites.d
82   %dir %instroot/apache2/auth
83   %dir %instroot/apache2/etc
84 + %attr(444,-,-) %instroot/apache2/startenv.d/mod_perl2.sh
85   %attr(555,-,-) %instroot/apache2/etc/update-cookie-key
86   %config %instroot/apache2/etc/cms-centres.txt
87   %config %attr(444,-,-) %instroot/apache2/apps.d/*frontend.conf

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines