root/trunk/fink/main/finkinfo/macathena-ssl-certificates.info

Revision 95, 1.0 kB (checked in by quentin, 16 years ago)

On 10.5, check if the SSL certificate exists before attempting to add it

Line 
1 Package: macathena-ssl-certificates
2 Version: 88
3 Revision: 4
4 Source: http://macathena.mit.edu/dist/ssl-certificates-svn%v.tar.gz
5 Maintainer: SIPB MacAthena Project <sipb-macathena@mit.edu>
6 HomePage: http://macathena.mit.edu/
7 License: Public Domain
8 Description: Install the MIT CA into the Keychain
9 DescPackaging: <<
10         This package installs the MIT CA into the system keychain. Uninstalling
11         this package does not remove the certificate.
12 <<
13 Source-MD5: 0dee4abcd1fc98e747e10dc7e6fc2673
14 DocFiles: copyright
15
16 CompileScript: <<
17 <<
18 InstallScript: <<
19         mkdir -p %i/share/%n/
20         cp %b/mitCA.pem %i/share/%n/
21         openssl x509 -inform pem -outform der -in %i/share/%n/mitCA.pem -out %i/share/%n/mitCA.der
22 <<
23 PostInstScript: <<
24         #!/bin/bash
25         if [ "$(/usr/bin/sw_vers -productVersion | cut -d. -f1-2)" == "10.5" ]
26         then
27                 security find-certificate -e "MIT Certification Authority" || security add-trusted-cert -d -k /Library/Keychains/System.keychain %p/share/%n/mitCA.pem
28         else
29                 security add-cert -k /System/Library/Keychains/X509Anchors %p/share/%n/mitCA.der || :
30         fi
31 <<
Note: See TracBrowser for help on using the browser.