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

Comparing COMP/CMSDIST/srmcp.spec (file contents):
Revision 1.1 by eulisse, Thu May 4 17:15:15 2006 UTC vs.
Revision 1.8 by rehn, Tue Apr 3 13:21:19 2007 UTC

# Line 1 | Line 1
1 < ### RPM external srmcp 1.23
1 > ### RPM external srmcp 1.25
2   ## INITENV +PATH PATH %i/srmclient/bin
3   ## INITENV SET SRM_PATH %i/srmclient
4   ## INITENV SET SRM_CONFIG %i/etc/config.xml
# Line 13 | Line 13 | Source: https://srm.fnal.gov/twiki/pub/S
13   %install
14   unset SRM_PATH SRM_CONFIG || true
15   (cd .. && tar -cf - srmclient) | (cd %i && tar -xf -)
16 if [ ! -f $HOME/.srmconfig/config.xml ]; then
17  mkdir -p %i/etc $HOME/.srmconfig
18  SRM_PATH=%i/srmclient %i/srmclient/sbin/srm \
19    -copy file:///dev/null file:///dev/null > /dev/null 2>&1 || true
20  [ -f $HOME/.srmconfig/config.xml ]
21 fi
22
16   mkdir -p %i/etc
17 < cp -p $HOME/.srmconfig/config.xml %i/etc/config.xml
17 > SRM_PATH=%i/srmclient SRM_CONFIG=%i/etc/config.xml \
18 >  %i/srmclient/sbin/srm \
19 >    -x509_user_trusted_certificates /etc/grid-security/certificates \
20 >    -copy file:////dev/null file:////dev/null > /dev/null 2>&1 || true
21 >
22   perl -p -i -e "s|$HOME|%i|" %i/etc/config.xml
23  
24   %post
25 < %{relocateConfig}.srmconfig/config.xml
25 > %{relocateConfig}etc/config.xml

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines