NB! This project is outdated and unmaintained, please refer to the OpenSC MacInstaller instead!

Changeset 135


Ignore:
Timestamp:
11/10/09 14:10:07 (3 years ago)
Author:
jps
Message:

Initial version for MacOSX 10.6 (SnowLeopard?)
This version is build on a MacIntel? running MacOSX 10.6 + XCode
Tokend is not avilable in this preliminary version

Location:
trunk
Files:
10 deleted
10 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r123 r135  
     1Version 0.3.0 
     2------------- 
     3New major release with support for MacOSX 10.6 (Snow Leopard). 
     4May 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 
    112Version 0.2.7 
    213------------- 
     14Last version with support for MacOSX 10.4 (Tiger). 
    315- OpenSC: upgrade to 0.11.9 
    416- LibP11: upgrade to 0.2.6 
  • trunk/Makefile

    r131 r135  
    11BUILDHOME = $(PWD) 
    2 OPENSCVERSION = 0.11.9-svn-r3744 
    3 OPENSSHVERSION = 5.2p1 
    4 LIBP11VERSION = 0.2.6 
    5 ENGINEVERSION = 0.1.6 
     2SCAVERSION = 0.3.0-pre1 
     3OPENSCVERSION = 0.11.11 
     4OPENSSHVERSION = 5.3p1 
     5LIBP11VERSION = 0.2.7 
     6ENGINEVERSION = 0.1.7 
    67PKGCONFIGVERSION = 0.23 
    7  
    8  
    9 all: build-pkg-config build-opensc build-libp11 build-engine build-openssh 
     8PACKAGEMAKER = /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker 
     9 
     10all: sca-$(SCAVERSION).dmg 
    1011clean: clean-pkg-config clean-opensc clean-libp11 clean-engine clean-openssh 
    1112 
     
    3536        rm -f fetch-openssh build-openssh install-openssh 
    3637 
     38clean-sca: 
     39        rm -f sca-$(SCAVERSION).dmg* 
     40        rm -rf sca.mpkg 
     41 
     42dist: sca-$(SCAVERSION).dmg 
     43 
     44sca-$(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 
    3757pkg-config-$(PKGCONFIGVERSION).tar.gz: 
    3858        curl -O  http://pkgconfig.freedesktop.org/releases/$@ 
    3959         
    4060opensc-$(OPENSCVERSION).tar.gz: 
    41         #curl -O http://www.opensc-project.org/files/opensc/$@ 
    42         curl -O http://www.opensc-project.org/files/opensc/snapshots/$@ 
     61        curl -O http://www.opensc-project.org/files/opensc/$@ 
     62        #curl -O http://www.opensc-project.org/files/opensc/snapshots/$@ 
    4363        # curl -O http://www.opensc-project.org/files/opensc/testing/$@ 
    4464 
     
    5070 
    5171openssh-$(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 
     75fetch: fetch-pkg-config fetch-opensc fetch-libp11 fetch-engine fetch-openssh 
    5376 
    5477fetch-pkg-config: pkg-config-$(PKGCONFIGVERSION).tar.gz 
     
    82105        cd openssh && patch -p1 <../opensc/src/openssh/ask-for-pin.diff 
    83106        touch $@ 
     107 
     108build: build-pkg-config build-opensc build-libp11 build-engine build-openssh 
    84109 
    85110build-pkg-config: fetch-pkg-config 
     
    159184        touch $@ 
    160185 
    161 install: install-opensc install-libp11 install-engine install-openssh 
     186install: 
     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/ 
     197install2: 
     198        chown -R root:wheel $(BUILDHOME)/compiled*/* 
     199        chmod -R g+w $(BUILDHOME)/compiled*/* 
     200 
     201manual-install: install-opensc install-libp11 install-engine install-openssh 
    162202 
    163203install-opensc: build-opensc 
     
    177217        touch $@ 
    178218 
     219package: package-opensc package-libp11 package-engine package-openssh  
     220 
     221package-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 
     228package-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 
     233package-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 
     238package-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 
    179243uninstall: 
     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 
     250manual-uninstall: 
    180251        rm -rf /Library/OpenSC 
    181252        rm -f install* 
  • trunk/engine-pack/Info.plist

    r123 r135  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
     2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
    33<plist version="1.0"> 
    44<dict> 
    55        <key>CFBundleGetInfoString</key> 
    6         <string>0.1.6, OpenSC Project</string> 
     6        <string>0.1.7, OpenSC Project</string> 
    77        <key>CFBundleIdentifier</key> 
    88        <string>org.opensc.engine</string> 
    99        <key>CFBundleShortVersionString</key> 
    10         <string>0.1.6</string> 
     10        <string>0.1.7</string> 
    1111        <key>IFPkgFlagAllowBackRev</key> 
    1212        <true/> 
     
    3838        <false/> 
    3939        <key>IFPkgFormatVersion</key> 
    40         <real>0.10000000149011612</real> 
     40        <real>0.1000000014901161</real> 
    4141</dict> 
    4242</plist> 
  • trunk/howto

    r109 r135  
    11Requirements 
    22------------ 
    3 - PPC based Mac OS X 10.4 (With latest updates, currently 10.4.7) 
    4 - Install Xcode 2.4 from Apple on their developer site 
     3- Mac OS X 10.6 (With latest updates) 
     4- Install Xcode from SnowLeopard DVD or from Apple on their developer site 
    55(http://developer.apple.com/tools/xcode/index.html) for the ADC member. 
    6 For ADC registration at no cost: http://developer.apple.com/membership/details.html 
     6For ADC registration at no cost: http://developer.apple.com/products/membership.html 
    77 
    8 - Install Fink (http://fink.sourceforge.net/download/) 
    9  
    10 - In a Terminal 
    11         sudo fink update-all 
    12         sudo fink install automake1.9 
    13         sudo fink install libtool14 
    14         sudo fink install wget 
    15         sudo fink install pkgconfig 
    16          
    17 - Install subversion 
    18         You have two choices here. The first (and historical) one is to compile it  
    19                 yourself through fink by issuing this in a Terminal: 
    20                 sudo fink install svn-client-ssl 
    21         OR install the subversion client package from: 
    22                 http://metissian.com/projects/macosx/subversion/ 
    23  
    24 Building the package for PPC only 
    25 --------------------------------- 
    268- Check out the sca project to your Documents folder 
    279  svn co http://www.opensc-project.org/svn/sca/trunk opensc 
     
    3315        make fetch 
    3416        make build 
    35         sudo make install 
     17        make install 
     18        sudo chown -R root:wheel compiled*/* 
     19        sudo chmod -R g+w compiled*/* 
    3620        make package 
    3721        make dist 
     
    3923The resulting file sca-X.X.dmg can be distributed.       
    4024 
    41 Building the Universal package 
    42 ------------------------------ 
    43 - You need first create the i386 part on a MacIntel system. 
    44         The MacIntel need to have the Developer Xcode installed which is available 
    45         on the Installation DVD or on Apple's developer site. Fink doesn't need  
    46         to be installed. 
    47         Transfer the Makefile_i386 and libusb-runloop.patch 
    48         and then do: 
    49         make -f Makefile_i386 all ; make -f Makefile_i386 transfer 
    50         The compiled-i386.tgz obtained need to be transfered back to your PPC system, 
    51         in Documents/opensc. 
    52         There do tar xzf compiled-i386.tgz 
    53          
    54 - Check out the sca project to your Documents folder 
    55   svn co http://www.opensc-project.org/svn/sca/trunk opensc 
    56  
    57 In the newly created directory "opensc": 
    58 !Edit the makefile! 
    59 !Edit xxxx-pack/Info.plist for version number! 
    60  
    61         make fetch 
    62         make build 
    63         make lipo 
    64         sudo make install 
    65         make package 
    66         make dist 
    67          
    68 The resulting file sca-X.X.dmg can be distributed.       
    69  
    70 Building the Universal Light package 
    71 ------------------------------------ 
    72 - You need first create the i386 part on a MacIntel system. 
    73         The MacIntel need to have the Developer Xcode installed which is available 
    74         on the Installation DVD or on Apple's developer site. 
    75         Transfer the Makefile_light_i386 and libusb-runloop.patch 
    76         and then do: 
    77         make -f Makefile_light_i386 all ; make -f Makefile_light_i386 transfer 
    78         The compiled-i386.tgz obtained need to be transfered back to your your PPC system, 
    79         in Documents/opensc. 
    80         There do tar xzf compiled-i386.tgz 
    81          
    82 - Check out the sca project to your Documents folder 
    83   svn co http://www.opensc-project.org/svn/sca/trunk opensc 
    84  
    85 In the newly created directory "opensc": 
    86 !Edit the makefile! 
    87 !Edit xxxx-pack/Info.plist for version number! 
    88  
    89         make -f Makefile_light fetch 
    90         make -f Makefile_light build 
    91         make -f Makefile_light lipo 
    92         sudo  make -f Makefile_light install 
    93         make -f Makefile_light package 
    94          
    95 The resulting file sca_light-X.X.dmg and sca_reader-X.X.dmg can be distributed.  
    96  
    97  
    98 Before building the file for distribution, check: 
    99 ------------------------------------------------- 
    100  
    101 1. libltdl library 
    102  
    103 This library is installed by XCode 2.3, but is sometimes overwriten by 
    104 other software installer. 
    105 If it is not the right one, you need to reinstall XCode 2.3 
    106 ls -l /usr/lib/libltdl*dylib 
    107 lrwxr-xr-x   1 root  wheel     15 Nov 15 13:04 /usr/lib/libltdl.3.1.0.dylib -> libltdl.3.dylib 
    108 -rwxr-xr-x   1 root  wheel  74684 Nov  3 00:50 /usr/lib/libltdl.3.dylib 
    109 lrwxr-xr-x   1 root  wheel     15 Nov 15 13:04 /usr/lib/libltdl.dylib -> libltdl.3.dylib 
    110  
    111 2. libreadline library 
    112  
    113 ls -l /usr/lib/libreadline*dylib  
    114 lrwxr-xr-x   1 root  wheel  13 Nov  6 09:38 /usr/lib/libreadline.dylib -> libedit.dylib 
    115  
    116 3. opensc.tokend 
    117  
    118 You need to prepare a Darwin Build Directory, according to the points 1 
    119 to 5 of http://www.opensc-project.org/sca/wiki/OpenscTokend.  
    12025 
    12126Be sure pcscd is running 
    12227------------------------ 
    12328With 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'. 
     29If it is not running, check your SmartCard reader documentation 
    12630If pcscd is running, insert a smartcard, and try 'pcsctest' 
    12731 
    12832To test engine_pkcs11 
    12933--------------------- 
    130 /Library/OpenSC/bin/openssl  
     34openssl  
    13135engine -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  
    13336 
    13437To use SmartCard enabled OpenSSH 
  • trunk/libp11-pack/Info.plist

    r123 r135  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
     2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
    33<plist version="1.0"> 
    44<dict> 
    55        <key>CFBundleGetInfoString</key> 
    6         <string>0.2.6, OpenSC Project</string> 
     6        <string>0.2.7, OpenSC Project</string> 
    77        <key>CFBundleIdentifier</key> 
    88        <string>org.opensc.libp11</string> 
    99        <key>CFBundleShortVersionString</key> 
    10         <string>0.2.6</string> 
     10        <string>0.2.7</string> 
    1111        <key>IFPkgFlagAllowBackRev</key> 
    1212        <true/> 
     
    3838        <false/> 
    3939        <key>IFPkgFormatVersion</key> 
    40         <real>0.10000000149011612</real> 
     40        <real>0.1000000014901161</real> 
    4141</dict> 
    4242</plist> 
  • trunk/opensc-pack/Info.plist

    r123 r135  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
     2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
    33<plist version="1.0"> 
    44<dict> 
    55        <key>CFBundleGetInfoString</key> 
    6         <string>0.11.9, OpenSC Project</string> 
     6        <string>0.11.11, OpenSC Project</string> 
    77        <key>CFBundleIdentifier</key> 
    88        <string>org.opensc.opensc</string> 
    99        <key>CFBundleShortVersionString</key> 
    10         <string>0.11.9</string> 
     10        <string>0.11.11</string> 
    1111        <key>IFPkgFlagAllowBackRev</key> 
    1212        <true/> 
     
    3838        <false/> 
    3939        <key>IFPkgFormatVersion</key> 
    40         <real>0.10000000149011612</real> 
     40        <real>0.1000000014901161</real> 
    4141</dict> 
    4242</plist> 
  • trunk/opensc-pack/resources/InstallationCheck

    r75 r135  
    1010DO_CHECKS: { 
    1111        # 10.3 or higher system must be active 
    12         if(CheckVersion("$SYSTEM_VERS", "10.4.4", "ProductVersion", "<")) { 
     12        if(CheckVersion("$SYSTEM_VERS", "10.5.8", "ProductVersion", "<")) { 
    1313                $EXIT_VALUE = ((1 << 6) | ( 1 << 5 ) | 17 ); 
    1414                last; 
  • trunk/opensc-pack/resources/postflight

    r65 r135  
    11#!/bin/bash 
    22 
    3 test -e /usr/lib/libltdl.3.1.0.dylib && unlink /usr/lib/libltdl.3.1.0.dylib 
    4 ln -s /usr/lib/libltdl.3.dylib /usr/lib/libltdl.3.1.0.dylib 
    5 test -e /usr/lib/libltdl.dylib && unlink /usr/lib/libltdl.dylib 
    6 ln -s /usr/lib/libltdl.3.dylib /usr/lib/libltdl.dylib 
    73if !([ -e "/usr/lib/opensc-pkcs11.so" ]) 
    84then 
  • trunk/sca_orig.mpkg/Contents/Info.plist

    r28 r135  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
     2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
    33<plist version="1.0"> 
    44<dict> 
     
    1414                        <key>IFPkgFlagPackageLocation</key> 
    1515                        <string>OpenSC.pkg</string> 
    16                         <key>IFPkgFlagPackageSelection</key> 
    17                         <string>selected</string> 
    18                 </dict> 
    19                 <dict> 
    20                         <key>IFPkgFlagPackageLocation</key> 
    21                         <string>openssl.pkg</string> 
    2216                        <key>IFPkgFlagPackageSelection</key> 
    2317                        <string>selected</string> 
     
    4135                        <string>selected</string> 
    4236                </dict> 
    43                 <dict> 
    44                         <key>IFPkgFlagPackageLocation</key> 
    45                         <string>opensc_tokend.pkg</string> 
    46                         <key>IFPkgFlagPackageSelection</key> 
    47                         <string>selected</string> 
    48                 </dict> 
    49                 <dict> 
    50                         <key>IFPkgFlagPackageLocation</key> 
    51                         <string>ifd-egate.pkg</string> 
    52                         <key>IFPkgFlagPackageSelection</key> 
    53                         <string>unselected</string> 
    54                 </dict> 
    55                 <dict> 
    56                         <key>IFPkgFlagPackageLocation</key> 
    57                         <string>libusb.pkg</string> 
    58                         <key>IFPkgFlagPackageSelection</key> 
    59                         <string>unselected</string> 
    60                 </dict> 
    61                 <dict> 
    62                         <key>IFPkgFlagPackageLocation</key> 
    63                         <string>pcscd_autostart.pkg</string> 
    64                         <key>IFPkgFlagPackageSelection</key> 
    65                         <string>unselected</string> 
    66                 </dict> 
    6737        </array> 
    6838        <key>IFPkgFormatVersion</key> 
    69         <real>0.10000000149011612</real> 
     39        <real>0.1000000014901161</real> 
    7040</dict> 
    7141</plist> 
Note: See TracChangeset for help on using the changeset viewer.