Changeset 48

Show
Ignore:
Timestamp:
02/24/06 15:38:52 (3 years ago)
Author:
jps
Message:

opensc.conf will be not overwritten by a new version, if it was modified by the user

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r42 r48  
    11Version 0.1.9pre 
    22---------------- 
     3- opensc.conf: will not overwrite a user modified one 
    34- experimental: with snapshot version of opensc (0.11.0-pre-r....) and  
    45        openssl (0.9.8-stable-SNAP) 
  • trunk/Makefile

    r47 r48  
    11BUILDHOME = $(PWD) 
    22#OPENSCVERSION = 0.10.1 
    3 OPENSCVERSION = 0.11.0-pre-r2833 
     3OPENSCVERSION = 0.11.0-pre-r2859 
    44SCAVERSION = 0.1.9pre1 
    55LIBP11VERSION = 0.2.1 
    66ENGINEVERSION = 0.1.3 
    77#OPENSSLVERSION = 0.9.7i 
    8 OPENSSLVERSION =0.9.8-stable-SNAP-20060212 
     8OPENSSLVERSION =0.9.8-stable-SNAP-20060224 
    99OPENSSHVERSION = 4.3p1 
    1010IFDEGATEVERSION = 0.05 
  • trunk/opensc-pack/resources/postflight

    r13 r48  
    55test -e /usr/lib/libltdl.dylib && unlink /usr/lib/libltdl.dylib 
    66ln -s /usr/lib/libltdl.3.dylib /usr/lib/libltdl.dylib 
    7 test ! -e /Library/OpenSC/etc/opensc.conf && mv /Library/OpenSC/etc/opensc.conf.orig /Library/OpenSC/etc/opensc.conf 
    8  
     7if [ -e "/Library/OpenSC/etc/opensc.conf.md5" ] 
     8then 
     9        read cs_fromfile file < "/Library/OpenSC/etc/opensc.conf.md5" 
     10        cs_calculated=$( md5 -q "/Library/OpenSC/etc/opensc.conf") 
     11        if [ "$cs_fromfile" = "$cs_calculated" ] 
     12        then 
     13                mv /Library/OpenSC/etc/opensc.conf.orig /Library/OpenSC/etc/opensc.conf 
     14                md5 -r /Library/OpenSC/etc/opensc.conf  > /Library/OpenSC/etc/opensc.conf.md5 
     15        fi 
     16else 
     17        mv /Library/OpenSC/etc/opensc.conf.orig /Library/OpenSC/etc/opensc.conf 
     18        md5 -r /Library/OpenSC/etc/opensc.conf  > /Library/OpenSC/etc/opensc.conf.md5 
     19fi 
    920exit 0