NB! This project is outdated and unmaintained, please refer to the OpenSC MacInstaller instead!
| r123 | r135 | |
|---|---|---|
| 1 | Version 0.3.0 | |
| 2 | ------------- | |
| 3 | New major release with support for MacOSX 10.6 (Snow Leopard). | |
| 4 | May work on MacOSX 10.5 (Leopard). | |
| 5 | - OpenSC: 0.11.11 | |
| 6 | - LibP11: 0.2.7 | |
| 7 | - Engine-pkcs11: 0.1.7 | |
| 8 | - OpenSSH: 5.3p1 | |
| 9 | - OpenSSL: not supplied anymore as the MacOSX native OpenSSL is compiled with DSO support (required for Engine-pkcs11) | |
| 10 | - libusb and ifd-egate: not supplied anymore | |
| 11 | ||
| 1 | 12 | Version 0.2.7 |
| 2 | 13 | ------------- |
| 14 | Last version with support for MacOSX 10.4 (Tiger). | |
| 3 | 15 | - OpenSC: upgrade to 0.11.9 |
| 4 | 16 | - LibP11: upgrade to 0.2.6 |
| r131 | r135 | |
|---|---|---|
| 1 | 1 | BUILDHOME = $(PWD) |
| 2 | OPENSCVERSION = 0.11.9-svn-r3744 | |
| 3 | OPENSSHVERSION = 5.2p1 | |
| 4 | LIBP11VERSION = 0.2.6 | |
| 5 | ENGINEVERSION = 0.1.6 | |
| 2 | SCAVERSION = 0.3.0-pre1 | |
| 3 | OPENSCVERSION = 0.11.11 | |
| 4 | OPENSSHVERSION = 5.3p1 | |
| 5 | LIBP11VERSION = 0.2.7 | |
| 6 | ENGINEVERSION = 0.1.7 | |
| 6 | 7 | PKGCONFIGVERSION = 0.23 |
| 7 | ||
| 8 | ||
| 9 | all: |
|
| 8 | PACKAGEMAKER = /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker | |
| 9 | ||
| 10 | all: sca-$(SCAVERSION).dmg | |
| 10 | 11 | clean: clean-pkg-config clean-opensc clean-libp11 clean-engine clean-openssh |
| 11 | 12 | |
| … | … | |
| 35 | 36 | rm -f fetch-openssh build-openssh install-openssh |
| 36 | 37 | |
| 38 | clean-sca: | |
| 39 | rm -f sca-$(SCAVERSION).dmg* | |
| 40 | rm -rf sca.mpkg | |
| 41 | ||
| 42 | dist: sca-$(SCAVERSION).dmg | |
| 43 | ||
| 44 | sca-$(SCAVERSION).dmg: package | |
| 45 | rm -rf sca.mpkg | |
| 46 | cp -R sca_orig.mpkg sca.mpkg | |
| 47 | cp -R OpenSC.pkg sca.mpkg/Contents/Packages/ | |
| 48 | cp -R libp11.pkg sca.mpkg/Contents/Packages/ | |
| 49 | cp -R engine_pkcs11.pkg sca.mpkg/Contents/Packages/ | |
| 50 | cp -R openssh.pkg sca.mpkg/Contents/Packages/ | |
| 51 | find sca.mpkg -name '.svn' | xargs rm -rf | |
| 52 | rm -f sca-$(SCAVERSION).dmg | |
| 53 | hdiutil create -srcfolder sca.mpkg -volname "SCA $(SCAVERSION)" sca-$(SCAVERSION).dmg | |
| 54 | hdiutil internet-enable -yes sca-$(SCAVERSION).dmg | |
| 55 | md5 sca-$(SCAVERSION).dmg > sca-$(SCAVERSION).dmg.md5 | |
| 56 | ||
| 37 | 57 | pkg-config-$(PKGCONFIGVERSION).tar.gz: |
| 38 | 58 | curl -O http://pkgconfig.freedesktop.org/releases/$@ |
| 39 | 59 | |
| 40 | 60 | opensc-$(OPENSCVERSION).tar.gz: |
| 41 | |
|
| 42 | |
|
| 61 | curl -O http://www.opensc-project.org/files/opensc/$@ | |
| 62 | #curl -O http://www.opensc-project.org/files/opensc/snapshots/$@ | |
| 43 | 63 | # curl -O http://www.opensc-project.org/files/opensc/testing/$@ |
| 44 | 64 | |
| … | … | |
| 50 | 70 | |
| 51 | 71 | openssh-$(OPENSSHVERSION).tar.gz: |
| 52 | curl -O http://ftp.belnet.be/packages/openbsd/OpenSSH/portable/$@ | |
| 72 | #curl -O http://ftp.belnet.be/packages/openbsd/OpenSSH/portable/$@ | |
| 73 | curl -O http://anga.funkfeuer.at/ftp/pub/OpenBSD/OpenSSH/portable/$@ | |
| 74 | ||
| 75 | fetch: fetch-pkg-config fetch-opensc fetch-libp11 fetch-engine fetch-openssh | |
| 53 | 76 | |
| 54 | 77 | fetch-pkg-config: pkg-config-$(PKGCONFIGVERSION).tar.gz |
| … | … | |
| 82 | 105 | cd openssh && patch -p1 <../opensc/src/openssh/ask-for-pin.diff |
| 83 | 106 | touch $@ |
| 107 | ||
| 108 | build: build-pkg-config build-opensc build-libp11 build-engine build-openssh | |
| 84 | 109 | |
| 85 | 110 | build-pkg-config: fetch-pkg-config |
| … | … | |
| 159 | 184 | touch $@ |
| 160 | 185 | |
| 161 | install: install-opensc install-libp11 install-engine install-openssh | |
| 186 | install: | |
| 187 | mkdir -p compiled-opensc/Library/OpenSC/etc/ | |
| 188 | cp opensc/etc/opensc.conf compiled-opensc/Library/OpenSC/etc/opensc.conf.orig | |
| 189 | cp opensc-uninstall compiled-opensc/Library/OpenSC/bin/ | |
| 190 | ./libtool-bundle compiled-opensc/Library/OpenSC/lib/opensc-pkcs11.so compiled-opensc/Library/OpenSC/lib | |
| 191 | cd compiled-opensc/Library/OpenSC/lib/ && \ | |
| 192 | ln -sf libopensc.2.dylib libopensc.2.0.0.dylib && \ | |
| 193 | ln -sf libscconf.2.dylib libscconf.2.0.0.dylib && \ | |
| 194 | ln -sf libpkcs15init.2.dylib libpkcs15init.2.0.0.dylib | |
| 195 | mkdir -p compiled-opensc/usr/lib/ | |
| 196 | cp /usr/lib/libltdl.7.dylib compiled-opensc/usr/lib/ | |
| 197 | install2: | |
| 198 | chown -R root:wheel $(BUILDHOME)/compiled*/* | |
| 199 | chmod -R g+w $(BUILDHOME)/compiled*/* | |
| 200 | ||
| 201 | manual-install: install-opensc install-libp11 install-engine install-openssh | |
| 162 | 202 | |
| 163 | 203 | install-opensc: build-opensc |
| … | … | |
| 177 | 217 | touch $@ |
| 178 | 218 | |
| 219 | package: package-opensc package-libp11 package-engine package-openssh | |
| 220 | ||
| 221 | package-opensc: build-opensc | |
| 222 | $(PACKAGEMAKER) -build -p OpenSC.pkg -f compiled-opensc -v -ds \ | |
| 223 | -i opensc-pack/Info.plist -r opensc-pack/resources -d opensc-pack/Description.plist | |
| 224 | cp opensc-pack/InstallationCheck.strings OpenSC.pkg/Contents/Resources/English.lproj | |
| 225 | cp opensc-pack/InstallationCheck.strings OpenSC.pkg/Contents/Resources | |
| 226 | touch $@ | |
| 227 | ||
| 228 | package-libp11: build-libp11 | |
| 229 | $(PACKAGEMAKER) -build -p libp11.pkg -f compiled-libp11 -v -ds \ | |
| 230 | -i libp11-pack/Info.plist -d libp11-pack/Description.plist | |
| 231 | touch $@ | |
| 232 | ||
| 233 | package-engine: build-engine | |
| 234 | $(PACKAGEMAKER) -build -p engine_pkcs11.pkg -f compiled-engine -v -ds \ | |
| 235 | -i engine-pack/Info.plist -d engine-pack/Description.plist | |
| 236 | touch $@ | |
| 237 | ||
| 238 | package-openssh: build-openssh | |
| 239 | $(PACKAGEMAKER) -build -p openssh.pkg -f compiled-openssh -v -ds \ | |
| 240 | -i openssh-pack/Info.plist -d openssh-pack/Description.plist | |
| 241 | touch $@ | |
| 242 | ||
| 179 | 243 | uninstall: |
| 244 | rm -rf /Library/Receipts/libp11.pkg | |
| 245 | rm -rf /Library/Receipts/engine_pkcs11.pkg | |
| 246 | rm -rf /Library/Receipts/OpenSC.pkg | |
| 247 | rm -rf /Library/Receipts/openssh.pkg | |
| 248 | rm -rf /Library/OpenSC | |
| 249 | ||
| 250 | manual-uninstall: | |
| 180 | 251 | rm -rf /Library/OpenSC |
| 181 | 252 | rm -f install* |
| r123 | r135 | |
|---|---|---|
| 1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE plist PUBLIC "-//Apple |
|
| 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | 3 | <plist version="1.0"> |
| 4 | 4 | <dict> |
| 5 | 5 | <key>CFBundleGetInfoString</key> |
| 6 | <string>0.1. |
|
| 6 | <string>0.1.7, OpenSC Project</string> | |
| 7 | 7 | <key>CFBundleIdentifier</key> |
| 8 | 8 | <string>org.opensc.engine</string> |
| 9 | 9 | <key>CFBundleShortVersionString</key> |
| 10 | <string>0.1. |
|
| 10 | <string>0.1.7</string> | |
| 11 | 11 | <key>IFPkgFlagAllowBackRev</key> |
| 12 | 12 | <true/> |
| … | … | |
| 38 | 38 | <false/> |
| 39 | 39 | <key>IFPkgFormatVersion</key> |
| 40 | <real>0.1000000014901161 |
|
| 40 | <real>0.1000000014901161</real> | |
| 41 | 41 | </dict> |
| 42 | 42 | </plist> |
| r109 | r135 | |
|---|---|---|
| 1 | 1 | Requirements |
| 2 | 2 | ------------ |
| 3 | - |
|
| 4 | - Install Xcode |
|
| 3 | - Mac OS X 10.6 (With latest updates) | |
| 4 | - Install Xcode from SnowLeopard DVD or from Apple on their developer site | |
| 5 | 5 | (http://developer.apple.com/tools/xcode/index.html) for the ADC member. |
| 6 | For ADC registration at no cost: http://developer.apple.com/ |
|
| 6 | For ADC registration at no cost: http://developer.apple.com/products/membership.html | |
| 7 | 7 | |
| 8 | ||
| 9 | ||
| 10 | ||
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | ||
| 15 | ||
| 16 | ||
| 17 | ||
| 18 | ||
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | ||
| 23 | ||
| 24 | ||
| 25 | ||
| 26 | 8 | - Check out the sca project to your Documents folder |
| 27 | 9 | svn co http://www.opensc-project.org/svn/sca/trunk opensc |
| … | … | |
| 33 | 15 | make fetch |
| 34 | 16 | make build |
| 35 | sudo make install | |
| 17 | make install | |
| 18 | sudo chown -R root:wheel compiled*/* | |
| 19 | sudo chmod -R g+w compiled*/* | |
| 36 | 20 | make package |
| 37 | 21 | make dist |
| … | … | |
| 39 | 23 | The resulting file sca-X.X.dmg can be distributed. |
| 40 | 24 | |
| 41 | ||
| 42 | ||
| 43 | ||
| 44 | ||
| 45 | ||
| 46 | ||
| 47 | ||
| 48 | ||
| 49 | ||
| 50 | ||
| 51 | ||
| 52 | ||
| 53 | ||
| 54 | ||
| 55 | ||
| 56 | ||
| 57 | ||
| 58 | ||
| 59 | ||
| 60 | ||
| 61 | ||
| 62 | ||
| 63 | ||
| 64 | ||
| 65 | ||
| 66 | ||
| 67 | ||
| 68 | ||
| 69 | ||
| 70 | ||
| 71 | ||
| 72 | ||
| 73 | ||
| 74 | ||
| 75 | ||
| 76 | ||
| 77 | ||
| 78 | ||
| 79 | ||
| 80 | ||
| 81 | ||
| 82 | ||
| 83 | ||
| 84 | ||
| 85 | ||
| 86 | ||
| 87 | ||
| 88 | ||
| 89 | ||
| 90 | ||
| 91 | ||
| 92 | ||
| 93 | ||
| 94 | ||
| 95 | ||
| 96 | ||
| 97 | ||
| 98 | ||
| 99 | ||
| 100 | ||
| 101 | ||
| 102 | ||
| 103 | ||
| 104 | ||
| 105 | ||
| 106 | ||
| 107 | ||
| 108 | ||
| 109 | ||
| 110 | ||
| 111 | ||
| 112 | ||
| 113 | ||
| 114 | ||
| 115 | ||
| 116 | ||
| 117 | ||
| 118 | ||
| 119 | ||
| 120 | 25 | |
| 121 | 26 | Be sure pcscd is running |
| 122 | 27 | ------------------------ |
| 123 | 28 | With your card reader installed, check ' ps ax | grep pcscd | grep -v "grep pcscd" ' |
| 124 | If it is not running, re-run SCA installer, go to 'Personalize' | |
| 125 | and select 'Smartcard reader autostart fix'. | |
| 29 | If it is not running, check your SmartCard reader documentation | |
| 126 | 30 | If pcscd is running, insert a smartcard, and try 'pcsctest' |
| 127 | 31 | |
| 128 | 32 | To test engine_pkcs11 |
| 129 | 33 | --------------------- |
| 130 | ||
| 34 | openssl | |
| 131 | 35 | engine -t dynamic -pre SO_PATH:/Library/OpenSC/lib/engines/engine_pkcs11.so -pre ID:pkcs11 -pre LIST_ADD:1 -pre LOAD -pre MODULE_PATH:/Library/OpenSC/lib/opensc-pkcs11.so |
| 132 | ||
| 133 | 36 | |
| 134 | 37 | To use SmartCard enabled OpenSSH |
| r123 | r135 | |
|---|---|---|
| 1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE plist PUBLIC "-//Apple |
|
| 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | 3 | <plist version="1.0"> |
| 4 | 4 | <dict> |
| 5 | 5 | <key>CFBundleGetInfoString</key> |
| 6 | <string>0.2. |
|
| 6 | <string>0.2.7, OpenSC Project</string> | |
| 7 | 7 | <key>CFBundleIdentifier</key> |
| 8 | 8 | <string>org.opensc.libp11</string> |
| 9 | 9 | <key>CFBundleShortVersionString</key> |
| 10 | <string>0.2. |
|
| 10 | <string>0.2.7</string> | |
| 11 | 11 | <key>IFPkgFlagAllowBackRev</key> |
| 12 | 12 | <true/> |
| … | … | |
| 38 | 38 | <false/> |
| 39 | 39 | <key>IFPkgFormatVersion</key> |
| 40 | <real>0.1000000014901161 |
|
| 40 | <real>0.1000000014901161</real> | |
| 41 | 41 | </dict> |
| 42 | 42 | </plist> |
| r123 | r135 | |
|---|---|---|
| 1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE plist PUBLIC "-//Apple |
|
| 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | 3 | <plist version="1.0"> |
| 4 | 4 | <dict> |
| 5 | 5 | <key>CFBundleGetInfoString</key> |
| 6 | <string>0.11. |
|
| 6 | <string>0.11.11, OpenSC Project</string> | |
| 7 | 7 | <key>CFBundleIdentifier</key> |
| 8 | 8 | <string>org.opensc.opensc</string> |
| 9 | 9 | <key>CFBundleShortVersionString</key> |
| 10 | <string>0.11. |
|
| 10 | <string>0.11.11</string> | |
| 11 | 11 | <key>IFPkgFlagAllowBackRev</key> |
| 12 | 12 | <true/> |
| … | … | |
| 38 | 38 | <false/> |
| 39 | 39 | <key>IFPkgFormatVersion</key> |
| 40 | <real>0.1000000014901161 |
|
| 40 | <real>0.1000000014901161</real> | |
| 41 | 41 | </dict> |
| 42 | 42 | </plist> |
| r75 | r135 | |
|---|---|---|
| 10 | 10 | DO_CHECKS: { |
| 11 | 11 | # 10.3 or higher system must be active |
| 12 | if(CheckVersion("$SYSTEM_VERS", "10. |
|
| 12 | if(CheckVersion("$SYSTEM_VERS", "10.5.8", "ProductVersion", "<")) { | |
| 13 | 13 | $EXIT_VALUE = ((1 << 6) | ( 1 << 5 ) | 17 ); |
| 14 | 14 | last; |
| r65 | r135 | |
|---|---|---|
| 1 | 1 | #!/bin/bash |
| 2 | 2 | |
| 3 | ||
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | 3 | if !([ -e "/usr/lib/opensc-pkcs11.so" ]) |
| 8 | 4 | then |
| r28 | r135 | |
|---|---|---|
| 1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE plist PUBLIC "-//Apple |
|
| 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | 3 | <plist version="1.0"> |
| 4 | 4 | <dict> |
| … | … | |
| 14 | 14 | <key>IFPkgFlagPackageLocation</key> |
| 15 | 15 | <string>OpenSC.pkg</string> |
| 16 | ||
| 17 | ||
| 18 | ||
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | 16 | <key>IFPkgFlagPackageSelection</key> |
| 23 | 17 | <string>selected</string> |
| … | … | |
| 41 | 35 | <string>selected</string> |
| 42 | 36 | </dict> |
| 43 | ||
| 44 | ||
| 45 | ||
| 46 | ||
| 47 | ||
| 48 | ||
| 49 | ||
| 50 | ||
| 51 | ||
| 52 | ||
| 53 | ||
| 54 | ||
| 55 | ||
| 56 | ||
| 57 | ||
| 58 | ||
| 59 | ||
| 60 | ||
| 61 | ||
| 62 | ||
| 63 | ||
| 64 | ||
| 65 | ||
| 66 | ||
| 67 | 37 | </array> |
| 68 | 38 | <key>IFPkgFormatVersion</key> |
| 69 | <real>0.1000000014901161 |
|
| 39 | <real>0.1000000014901161</real> | |
| 70 | 40 | </dict> |
| 71 | 41 | </plist> |