Revision 121, 1.2 kB
(checked in by broder, 17 years ago)
|
Updating packages to be more compliant with the Fink packaging standards
...other than, you know, the part where I dump a bunch of things outside of /sw
|
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 |
VERSION=`/usr/bin/sw_vers -productVersion | cut -d. -f1-2` |
---|
25 |
if [ "$VERSION" == "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 find-certificate -e "MIT Certification Authority" /Library/Keychains/System.keychain /System/Library/Keychains/X509Anchors || security add-cert -k /System/Library/Keychains/X509Anchors %p/share/%n/mitCA.der |
---|
30 |
fi |
---|
31 |
<< |
---|