| 1 | BUILDHOME = $(PWD) |
|---|
| 2 | OPENSCVERSION = 0.11.6 |
|---|
| 3 | SCAVERSION = 0.2.4 |
|---|
| 4 | LIBP11VERSION = 0.2.4 |
|---|
| 5 | ENGINEVERSION = 0.1.5 |
|---|
| 6 | OPENSSLVERSION = 0.9.8h |
|---|
| 7 | OPENSSHVERSION = 5.1p1 |
|---|
| 8 | IFDEGATEVERSION = 0.05 |
|---|
| 9 | LIBUSBVERSION = 0.1.12 |
|---|
| 10 | TOKEND_IMAGE_LOCATION = $(HOME)/darwinbuild-0.7.2/Builds.dmg |
|---|
| 11 | TOKEND_IMAGE_NAME = /Volumes/Builds |
|---|
| 12 | TOKEND_PPC_BUILD_NAME = Build8H14 |
|---|
| 13 | TOKEND_i386_BUILD_NAME = Build8G1454 |
|---|
| 14 | PACKAGEMAKER = /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker |
|---|
| 15 | |
|---|
| 16 | all: sca-$(SCAVERSION).dmg |
|---|
| 17 | |
|---|
| 18 | clean: clean-opensc clean-libp11 clean-engine clean-openssl \ |
|---|
| 19 | clean-openssh clean-libusb clean-ifd-egate clean-pcscd_autostart \ |
|---|
| 20 | clean-opensc_tokend |
|---|
| 21 | |
|---|
| 22 | clean-opensc: |
|---|
| 23 | rm -rf opensc |
|---|
| 24 | rm -rf compiled-opensc |
|---|
| 25 | rm -rf OpenSC.pkg |
|---|
| 26 | rm -f fetch-opensc build-opensc package-opensc lipo-opensc |
|---|
| 27 | |
|---|
| 28 | clean-libp11: |
|---|
| 29 | rm -rf libp11 |
|---|
| 30 | rm -rf libp11.pkg |
|---|
| 31 | rm -rf compiled-libp11 |
|---|
| 32 | rm -f fetch-libp11 build-libp11 package-libp11 lipo-libp11 |
|---|
| 33 | |
|---|
| 34 | clean-engine: |
|---|
| 35 | rm -rf engine_pkcs11 |
|---|
| 36 | rm -rf engine_pkcs11.pkg |
|---|
| 37 | rm -rf compiled-engine |
|---|
| 38 | rm -f fetch-engine build-engine package-engine lipo-engine |
|---|
| 39 | |
|---|
| 40 | clean-openssl: |
|---|
| 41 | rm -rf openssl |
|---|
| 42 | rm -rf openssl.pkg |
|---|
| 43 | rm -rf compiled-openssl |
|---|
| 44 | rm -f fetch-openssl build-openssl package-openssl lipo-openssl |
|---|
| 45 | |
|---|
| 46 | clean-openssh: |
|---|
| 47 | rm -rf openssh |
|---|
| 48 | rm -rf openssh.pkg |
|---|
| 49 | rm -rf compiled-openssh |
|---|
| 50 | rm -f fetch-openssh build-openssh package-openssh lipo-openssh |
|---|
| 51 | |
|---|
| 52 | clean-libusb: |
|---|
| 53 | rm -rf libusb |
|---|
| 54 | rm -rf libusb.pkg |
|---|
| 55 | rm -rf compiled-libusb |
|---|
| 56 | rm -f fetch-libusb build-libusb package-libusb lipo-libusb |
|---|
| 57 | |
|---|
| 58 | clean-ifd-egate: |
|---|
| 59 | rm -rf ifd-egate |
|---|
| 60 | rm -rf ifd-egate.pkg |
|---|
| 61 | rm -rf compiled-ifd-egate |
|---|
| 62 | rm -f fetch-ifd-egate build-ifd-egate package-ifd-egate lipo-ifd-egate |
|---|
| 63 | |
|---|
| 64 | clean-pcscd_autostart: |
|---|
| 65 | rm -rf pcscd_autostart.pkg |
|---|
| 66 | rm -f package-pcscd_autostart |
|---|
| 67 | rm -rf compiled-pcscd_autostart |
|---|
| 68 | rm -f build-pcscd_autostart package-pcscd_autostart |
|---|
| 69 | |
|---|
| 70 | clean-opensc_tokend: |
|---|
| 71 | rm -rf compiled-opensc_tokend |
|---|
| 72 | rm -rf opensc_tokend.pkg |
|---|
| 73 | rm -f build-tokend package-opensc_tokend |
|---|
| 74 | |
|---|
| 75 | clean-sca: |
|---|
| 76 | rm -f sca-$(SCAVERSION).dmg* |
|---|
| 77 | rm -rf sca.mpkg |
|---|
| 78 | |
|---|
| 79 | clean-i386: |
|---|
| 80 | rm -rf compiled-*-i386 |
|---|
| 81 | rm -f compiled-i386.tgz |
|---|
| 82 | |
|---|
| 83 | dist: sca-$(SCAVERSION).dmg |
|---|
| 84 | |
|---|
| 85 | sca-$(SCAVERSION).dmg: package |
|---|
| 86 | rm -rf sca.mpkg |
|---|
| 87 | cp -R sca_orig.mpkg sca.mpkg |
|---|
| 88 | cp -R OpenSC.pkg sca.mpkg/Contents/Packages/ |
|---|
| 89 | cp -R libp11.pkg sca.mpkg/Contents/Packages/ |
|---|
| 90 | cp -R engine_pkcs11.pkg sca.mpkg/Contents/Packages/ |
|---|
| 91 | cp -R openssl.pkg sca.mpkg/Contents/Packages/ |
|---|
| 92 | cp -R openssh.pkg sca.mpkg/Contents/Packages/ |
|---|
| 93 | cp -R libusb.pkg sca.mpkg/Contents/Packages/ |
|---|
| 94 | cp -R ifd-egate.pkg sca.mpkg/Contents/Packages/ |
|---|
| 95 | cp -R pcscd_autostart.pkg sca.mpkg/Contents/Packages/ |
|---|
| 96 | cp -R opensc_tokend.pkg sca.mpkg/Contents/Packages/ |
|---|
| 97 | find sca.mpkg -name '.svn' | xargs rm -rf |
|---|
| 98 | rm -f sca-$(SCAVERSION).dmg |
|---|
| 99 | hdiutil create -srcfolder sca.mpkg -volname "SCA $(SCAVERSION)" sca-$(SCAVERSION).dmg |
|---|
| 100 | |
|---|
| 101 | md5sum sca-$(SCAVERSION).dmg > sca-$(SCAVERSION).dmg.md5 |
|---|
| 102 | |
|---|
| 103 | opensc-$(OPENSCVERSION).tar.gz: |
|---|
| 104 | curl -O http://www.opensc-project.org/files/opensc/$@ |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | |
|---|
| 108 | libp11-$(LIBP11VERSION).tar.gz: |
|---|
| 109 | curl -O http://www.opensc-project.org/files/libp11/$@ |
|---|
| 110 | |
|---|
| 111 | engine_pkcs11-$(ENGINEVERSION).tar.gz: |
|---|
| 112 | curl -O http://www.opensc-project.org/files/engine_pkcs11/$@ |
|---|
| 113 | |
|---|
| 114 | openssl-$(OPENSSLVERSION).tar.gz: |
|---|
| 115 | curl -O http://www.openssl.org/source/$@ |
|---|
| 116 | |
|---|
| 117 | |
|---|
| 118 | openssh-$(OPENSSHVERSION).tar.gz: |
|---|
| 119 | curl -O ftp://ftp.belnet.be/packages/openbsd/OpenSSH/portable/$@ |
|---|
| 120 | |
|---|
| 121 | ifd-egate-$(IFDEGATEVERSION)-patched.tar.gz: |
|---|
| 122 | curl -O http://www.luusa.org/~wbx/sc/$@ |
|---|
| 123 | |
|---|
| 124 | libusb-$(LIBUSBVERSION).tar.gz: |
|---|
| 125 | curl -O http://switch.dl.sourceforge.net/sourceforge/libusb/$@ |
|---|
| 126 | |
|---|
| 127 | fetch: fetch-opensc fetch-libp11 fetch-engine fetch-openssl \ |
|---|
| 128 | fetch-openssh fetch-libusb fetch-ifd-egate |
|---|
| 129 | |
|---|
| 130 | fetch-opensc: opensc-$(OPENSCVERSION).tar.gz |
|---|
| 131 | rm -rf opensc |
|---|
| 132 | tar xzvf $^ |
|---|
| 133 | mv opensc-$(OPENSCVERSION) opensc |
|---|
| 134 | touch $@ |
|---|
| 135 | |
|---|
| 136 | fetch-libp11: libp11-$(LIBP11VERSION).tar.gz |
|---|
| 137 | rm -rf libp11 |
|---|
| 138 | tar xzvf $^ |
|---|
| 139 | mv libp11-$(LIBP11VERSION) libp11 |
|---|
| 140 | touch $@ |
|---|
| 141 | |
|---|
| 142 | fetch-engine: engine_pkcs11-$(ENGINEVERSION).tar.gz |
|---|
| 143 | rm -rf engine_pkcs11 |
|---|
| 144 | tar xzvf $^ |
|---|
| 145 | mv engine_pkcs11-$(ENGINEVERSION) engine_pkcs11 |
|---|
| 146 | touch $@ |
|---|
| 147 | |
|---|
| 148 | fetch-openssl: openssl-$(OPENSSLVERSION).tar.gz |
|---|
| 149 | rm -rf openssl |
|---|
| 150 | tar xzvf $^ |
|---|
| 151 | mv openssl-$(OPENSSLVERSION) openssl |
|---|
| 152 | touch $@ |
|---|
| 153 | |
|---|
| 154 | fetch-openssh: openssh-$(OPENSSHVERSION).tar.gz |
|---|
| 155 | rm -rf openssh |
|---|
| 156 | tar xzvf $^ |
|---|
| 157 | mv openssh-$(OPENSSHVERSION) openssh |
|---|
| 158 | cd openssh && patch -p1 <../opensc/src/openssh/ask-for-pin.diff |
|---|
| 159 | touch $@ |
|---|
| 160 | |
|---|
| 161 | fetch-libusb: libusb-$(LIBUSBVERSION).tar.gz |
|---|
| 162 | rm -rf libusb |
|---|
| 163 | tar xzvf $^ |
|---|
| 164 | mv libusb-$(LIBUSBVERSION) libusb |
|---|
| 165 | cd libusb && patch < ../libusb-runloop.patch |
|---|
| 166 | touch $@ |
|---|
| 167 | |
|---|
| 168 | fetch-ifd-egate: ifd-egate-$(IFDEGATEVERSION)-patched.tar.gz |
|---|
| 169 | rm -rf ifd-egate |
|---|
| 170 | tar xzvf $^ |
|---|
| 171 | mv ifd-egate-$(IFDEGATEVERSION) ifd-egate |
|---|
| 172 | touch $@ |
|---|
| 173 | |
|---|
| 174 | build: build-openssl build-opensc build-libp11 build-engine \ |
|---|
| 175 | build-openssh build-libusb build-ifd-egate build-tokend \ |
|---|
| 176 | build-tokend-end build-pcscd_autostart |
|---|
| 177 | |
|---|
| 178 | build-opensc: fetch-opensc |
|---|
| 179 | cd opensc && \ |
|---|
| 180 | OPENSSL_CFLAGS="-I$(BUILDHOME)/compiled-openssl/Library/OpenSC/include" \ |
|---|
| 181 | OPENSSL_LIBS="-L$(BUILDHOME)/compiled-openssl/Library/OpenSC/lib -lcrypto" \ |
|---|
| 182 | ./configure --prefix=/Library/OpenSC --sysconfdir=/Library/OpenSC/etc --enable-pcsc && \ |
|---|
| 183 | make && \ |
|---|
| 184 | make install prefix=$(BUILDHOME)/compiled-opensc/Library/OpenSC |
|---|
| 185 | touch $@ |
|---|
| 186 | |
|---|
| 187 | build-libp11: fetch-libp11 |
|---|
| 188 | cd libp11 && \ |
|---|
| 189 | OPENSSL_CFLAGS="-I$(BUILDHOME)/compiled-openssl/Library/OpenSC/include" \ |
|---|
| 190 | OPENSSL_LIBS="-L$(BUILDHOME)/compiled-openssl/Library/OpenSC/lib -lcrypto" \ |
|---|
| 191 | ./configure --prefix=/Library/OpenSC && \ |
|---|
| 192 | make && \ |
|---|
| 193 | make install prefix=$(BUILDHOME)/compiled-libp11/Library/OpenSC |
|---|
| 194 | touch $@ |
|---|
| 195 | |
|---|
| 196 | build-engine: fetch-engine |
|---|
| 197 | cd engine_pkcs11 && \ |
|---|
| 198 | LIBP11_CFLAGS="-I$(BUILDHOME)/compiled-libp11/Library/OpenSC/include" \ |
|---|
| 199 | LIBP11_LIBS="-L$(BUILDHOME)/compiled-libp11/Library/OpenSC/lib -lp11" \ |
|---|
| 200 | OPENSSL_CFLAGS="-I$(BUILDHOME)/compiled-openssl/Library/OpenSC/include" \ |
|---|
| 201 | OPENSSL_LIBS="-L$(BUILDHOME)/compiled-openssl/Library/OpenSC/lib -lcrypto" \ |
|---|
| 202 | ./configure --prefix=/Library/OpenSC && \ |
|---|
| 203 | make && \ |
|---|
| 204 | make install prefix=$(BUILDHOME)/compiled-engine/Library/OpenSC |
|---|
| 205 | mkdir -p $(BUILDHOME)/compiled-engine/Library/OpenSC/etc |
|---|
| 206 | cp openssl.conf $(BUILDHOME)/compiled-engine/Library/OpenSC/etc |
|---|
| 207 | touch $@ |
|---|
| 208 | |
|---|
| 209 | build-openssl: fetch-openssl |
|---|
| 210 | cd openssl && \ |
|---|
| 211 | ./config --prefix=/Library/OpenSC shared -DDSO_DLFCN -DHAVE_DLFCN_H && \ |
|---|
| 212 | make && \ |
|---|
| 213 | make INSTALL_PREFIX=$(BUILDHOME)/compiled-openssl install |
|---|
| 214 | rm -f $(BUILDHOME)/compiled-openssl/Library/OpenSC/bin/openssl_fips_fingerprint |
|---|
| 215 | touch $@ |
|---|
| 216 | |
|---|
| 217 | build-openssh: fetch-openssh |
|---|
| 218 | cd openssh && \ |
|---|
| 219 | DYLD_LIBRARY_PATH="$(BUILDHOME)/compiled-openssl/Library/OpenSC/lib" \ |
|---|
| 220 | ./configure --prefix=/Library/OpenSC \ |
|---|
| 221 | --with-opensc=$(BUILDHOME)/compiled-opensc/Library/OpenSC \ |
|---|
| 222 | --with-ssl-dir=$(BUILDHOME)/compiled-openssl/Library/OpenSC --without-zlib-version-check \ |
|---|
| 223 | --with-ldflags="-L$(BUILDHOME)/compiled-openssl/Library/OpenSC/lib -L$(BUILDHOME)/compiled-opensc/Library/OpenSC/lib" && \ |
|---|
| 224 | make && \ |
|---|
| 225 | make install-nokeys prefix=$(BUILDHOME)/compiled-openssh/Library/OpenSC |
|---|
| 226 | mv $(BUILDHOME)/compiled-openssh/Library/OpenSC/share/man $(BUILDHOME)/compiled-openssh/Library/OpenSC/man |
|---|
| 227 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/scp |
|---|
| 228 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/sftp |
|---|
| 229 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/ssh-keyscan |
|---|
| 230 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/etc/ssh_host* |
|---|
| 231 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/etc/sshd_config |
|---|
| 232 | rm -rf $(BUILDHOME)/compiled-openssh/Library/OpenSC/libexec |
|---|
| 233 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/scp.1 |
|---|
| 234 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/sftp.1 |
|---|
| 235 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/ssh-keyscan.1 |
|---|
| 236 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man5/sshd_config.5 |
|---|
| 237 | rm -rf $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man8 |
|---|
| 238 | rm -rf $(BUILDHOME)/compiled-openssh/Library/OpenSC/sbin |
|---|
| 239 | mv $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/ssh $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/scssh |
|---|
| 240 | mv $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/ssh-add $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/scssh-add |
|---|
| 241 | mv $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/ssh-agent $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/scssh-agent |
|---|
| 242 | mv $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/ssh-keygen $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/scssh-keygen |
|---|
| 243 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/slogin |
|---|
| 244 | cd $(BUILDHOME)/compiled-openssh/Library/OpenSC/bin/ && ln -s ./scssh scslogin |
|---|
| 245 | mv $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/ssh-add.1 $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/scssh-add.1 |
|---|
| 246 | mv $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/ssh-agent.1 $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/scssh-agent.1 |
|---|
| 247 | mv $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/ssh-keygen.1 $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/scssh-keygen.1 |
|---|
| 248 | mv $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/ssh.1 $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/scssh.1 |
|---|
| 249 | rm -f $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/slogin.1 |
|---|
| 250 | cd $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man1/ && ln -s ./scssh.1 scslogin.1 |
|---|
| 251 | mv $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man5/ssh_config.5 $(BUILDHOME)/compiled-openssh/Library/OpenSC/man/man5/scssh_config.5 |
|---|
| 252 | touch $@ |
|---|
| 253 | |
|---|
| 254 | build-libusb: fetch-libusb |
|---|
| 255 | cd libusb && \ |
|---|
| 256 | ./configure --prefix=/Library/OpenSC --disable-build-docs && \ |
|---|
| 257 | make && \ |
|---|
| 258 | make install prefix=$(BUILDHOME)/compiled-libusb/Library/OpenSC |
|---|
| 259 | touch $@ |
|---|
| 260 | |
|---|
| 261 | build-ifd-egate: fetch-ifd-egate |
|---|
| 262 | cd ifd-egate && \ |
|---|
| 263 | USB_CFLAGS="-I$(BUILDHOME)/compiled-libusb/Library/OpenSC/include -I/System/Library/Frameworks/PCSC.framework/Headers" \ |
|---|
| 264 | USB_LDFLAGS="-L$(BUILDHOME)/compiled-libusb/Library/OpenSC/lib -lusb -Wl,-framework -Wl,PCSC" \ |
|---|
| 265 | make -f Makefile-OSX |
|---|
| 266 | mkdir -p $(BUILDHOME)/compiled-ifd-egate/usr/libexec/SmartCardServices/drivers/ifd-egate.bundle/Contents/MacOS |
|---|
| 267 | cp ifd-egate/Info.plist-OSX $(BUILDHOME)/compiled-ifd-egate/usr/libexec/SmartCardServices/drivers/ifd-egate.bundle/Contents/Info.plist |
|---|
| 268 | cp ifd-egate/libifd_egate.dylib $(BUILDHOME)/compiled-ifd-egate/usr/libexec/SmartCardServices/drivers/ifd-egate.bundle/Contents/MacOS |
|---|
| 269 | touch $@ |
|---|
| 270 | |
|---|
| 271 | build-tokend: |
|---|
| 272 | hdiutil attach $(TOKEND_IMAGE_LOCATION) |
|---|
| 273 | rm -rf $(TOKEND_IMAGE_NAME)/$(TOKEND_PPC_BUILD_NAME)/Sources/Tokend-25868 |
|---|
| 274 | ditto opensc.tokend $(TOKEND_IMAGE_NAME)/$(TOKEND_PPC_BUILD_NAME)/Sources/Tokend-25868 |
|---|
| 275 | cd $(TOKEND_IMAGE_NAME)/$(TOKEND_PPC_BUILD_NAME)/Sources/Tokend-25868 && \ |
|---|
| 276 | xcodebuild -configuration Deployment |
|---|
| 277 | rm -rf $(TOKEND_IMAGE_NAME)/$(TOKEND_i386_BUILD_NAME)/Sources/Tokend-26098 |
|---|
| 278 | ditto opensc.tokend $(TOKEND_IMAGE_NAME)/$(TOKEND_i386_BUILD_NAME)/Sources/Tokend-26098 |
|---|
| 279 | mv -f $(TOKEND_IMAGE_NAME)/$(TOKEND_i386_BUILD_NAME)/Sources/Tokend-26098/Tokend.xcodeproj/project.pbxproj_i386 \ |
|---|
| 280 | $(TOKEND_IMAGE_NAME)/$(TOKEND_i386_BUILD_NAME)/Sources/Tokend-26098/Tokend.xcodeproj/project.pbxproj |
|---|
| 281 | cd $(TOKEND_IMAGE_NAME)/$(TOKEND_i386_BUILD_NAME)/Sources/Tokend-26098 && \ |
|---|
| 282 | xcodebuild -configuration Deployment |
|---|
| 283 | mkdir -p $(BUILDHOME)/compiled-opensc_tokend/System/Library/Security/tokend |
|---|
| 284 | cp -r $(TOKEND_IMAGE_NAME)/$(TOKEND_PPC_BUILD_NAME)/Sources/Tokend-25868/build/Deployment/OpenSC.tokend $(BUILDHOME)/compiled-opensc_tokend/System/Library/Security/tokend/ |
|---|
| 285 | lipo $(TOKEND_IMAGE_NAME)/$(TOKEND_i386_BUILD_NAME)/Sources/Tokend-26098/build/Deployment/OpenSC.tokend/Contents/MacOS/OpenSC \ |
|---|
| 286 | $(BUILDHOME)/compiled-opensc_tokend/System/Library/Security/tokend/OpenSC.tokend/Contents/MacOS/OpenSC \ |
|---|
| 287 | -create -output $(BUILDHOME)/compiled-opensc_tokend/System/Library/Security/tokend/OpenSC.tokend/Contents/MacOS/OpenSC |
|---|
| 288 | touch $@ |
|---|
| 289 | |
|---|
| 290 | build-tokend-end: |
|---|
| 291 | hdiutil detach $(TOKEND_IMAGE_NAME) |
|---|
| 292 | |
|---|
| 293 | build-pcscd_autostart: |
|---|
| 294 | mkdir compiled-pcscd_autostart |
|---|
| 295 | cp -R pcscd_autostart/files/* compiled-pcscd_autostart |
|---|
| 296 | touch $@ |
|---|
| 297 | |
|---|
| 298 | lipo: lipo-openssl lipo-opensc lipo-engine lipo-libp11 lipo-openssh lipo-libusb lipo-ifd-egate |
|---|
| 299 | |
|---|
| 300 | lipo-openssl: compiled-openssl-i386 |
|---|
| 301 | cd compiled-openssl/Library/OpenSC/bin/ && \ |
|---|
| 302 | lipo -create openssl ../../../../compiled-openssl-i386/Library/OpenSC/bin/openssl -output openssl_univ && \ |
|---|
| 303 | mv -f openssl_univ openssl |
|---|
| 304 | cd compiled-openssl/Library/OpenSC/lib/ && \ |
|---|
| 305 | lipo -create libcrypto.a ../../../../compiled-openssl-i386/Library/OpenSC/lib/libcrypto.a -output libcrypto_univ.a && \ |
|---|
| 306 | mv -f libcrypto_univ.a libcrypto.a |
|---|
| 307 | cd compiled-openssl/Library/OpenSC/lib/ && \ |
|---|
| 308 | lipo -create libssl.a ../../../../compiled-openssl-i386/Library/OpenSC/lib/libssl.a -output libssl_univ.a && \ |
|---|
| 309 | mv -f libssl_univ.a libssl.a |
|---|
| 310 | cd compiled-openssl/Library/OpenSC/lib/ && \ |
|---|
| 311 | lipo -create libcrypto.0.9.8.dylib ../../../../compiled-openssl-i386/Library/OpenSC/lib/libcrypto.0.9.8.dylib -output libcrypto_univ.0.9.8.dylib && \ |
|---|
| 312 | mv -f libcrypto_univ.0.9.8.dylib libcrypto.0.9.8.dylib |
|---|
| 313 | cd compiled-openssl/Library/OpenSC/lib/ && \ |
|---|
| 314 | lipo -create libssl.0.9.8.dylib ../../../../compiled-openssl-i386/Library/OpenSC/lib/libssl.0.9.8.dylib -output libssl_univ.0.9.8.dylib && \ |
|---|
| 315 | mv -f libssl_univ.0.9.8.dylib libssl.0.9.8.dylib |
|---|
| 316 | cd compiled-openssl/Library/OpenSC/lib/engines/ && \ |
|---|
| 317 | lipo -create lib4758cca.so ../../../../../compiled-openssl-i386/Library/OpenSC/lib/engines/lib4758cca.so -output lib4758cca_univ.so && \ |
|---|
| 318 | mv -f lib4758cca_univ.so lib4758cca.so |
|---|
| 319 | cd compiled-openssl/Library/OpenSC/lib/engines/ && \ |
|---|
| 320 | lipo -create libaep.so ../../../../../compiled-openssl-i386/Library/OpenSC/lib/engines/libaep.so -output libaep_univ.so && \ |
|---|
| 321 | mv -f libaep_univ.so libaep.so |
|---|
| 322 | cd compiled-openssl/Library/OpenSC/lib/engines/ && \ |
|---|
| 323 | lipo -create libatalla.so ../../../../../compiled-openssl-i386/Library/OpenSC/lib/engines/libatalla.so -output libatalla_univ.so && \ |
|---|
| 324 | mv -f libatalla_univ.so libatalla.so |
|---|
| 325 | cd compiled-openssl/Library/OpenSC/lib/engines/ && \ |
|---|
| 326 | lipo -create libchil.so ../../../../../compiled-openssl-i386/Library/OpenSC/lib/engines/libchil.so -output libchil_univ.so && \ |
|---|
| 327 | mv -f libchil_univ.so libchil.so |
|---|
| 328 | cd compiled-openssl/Library/OpenSC/lib/engines/ && \ |
|---|
| 329 | lipo -create libcswift.so ../../../../../compiled-openssl-i386/Library/OpenSC/lib/engines/libcswift.so -output libcswift_univ.so && \ |
|---|
| 330 | mv -f libcswift_univ.so libcswift.so |
|---|
| 331 | cd compiled-openssl/Library/OpenSC/lib/engines/ && \ |
|---|
| 332 | lipo -create libgmp.so ../../../../../compiled-openssl-i386/Library/OpenSC/lib/engines/libgmp.so -output libgmp_univ.so && \ |
|---|
| 333 | mv -f libgmp_univ.so libgmp.so |
|---|
| 334 | cd compiled-openssl/Library/OpenSC/lib/engines/ && \ |
|---|
| 335 | lipo -create libnuron.so ../../../../../compiled-openssl-i386/Library/OpenSC/lib/engines/libnuron.so -output libnuron_univ.so && \ |
|---|
| 336 | mv -f libnuron_univ.so libnuron.so |
|---|
| 337 | cd compiled-openssl/Library/OpenSC/lib/engines/ && \ |
|---|
| 338 | lipo -create libsureware.so ../../../../../compiled-openssl-i386/Library/OpenSC/lib/engines/libsureware.so -output libsureware_univ.so && \ |
|---|
| 339 | mv -f libsureware_univ.so libsureware.so |
|---|
| 340 | cd compiled-openssl/Library/OpenSC/lib/engines/ && \ |
|---|
| 341 | lipo -create libubsec.so ../../../../../compiled-openssl-i386/Library/OpenSC/lib/engines/libubsec.so -output libubsec_univ.so && \ |
|---|
| 342 | mv -f libubsec_univ.so libubsec.so |
|---|
| 343 | touch $@ |
|---|
| 344 | |
|---|
| 345 | lipo-opensc: compiled-opensc-i386 |
|---|
| 346 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 347 | lipo -create cardos-info ../../../../compiled-opensc-i386/Library/OpenSC/bin/cardos-info -output cardos-info_univ && \ |
|---|
| 348 | mv -f cardos-info_univ cardos-info |
|---|
| 349 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 350 | lipo -create cryptoflex-tool ../../../../compiled-opensc-i386/Library/OpenSC/bin/cryptoflex-tool -output cryptoflex-tool_univ && \ |
|---|
| 351 | mv -f cryptoflex-tool_univ cryptoflex-tool |
|---|
| 352 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 353 | lipo -create eidenv ../../../../compiled-opensc-i386/Library/OpenSC/bin/eidenv -output eidenv_univ && \ |
|---|
| 354 | mv -f eidenv_univ eidenv |
|---|
| 355 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 356 | lipo -create netkey-tool ../../../../compiled-opensc-i386/Library/OpenSC/bin/netkey-tool -output netkey-tool_univ && \ |
|---|
| 357 | mv -f netkey-tool_univ netkey-tool |
|---|
| 358 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 359 | lipo -create opensc-explorer ../../../../compiled-opensc-i386/Library/OpenSC/bin/opensc-explorer -output opensc-explorer_univ && \ |
|---|
| 360 | mv -f opensc-explorer_univ opensc-explorer |
|---|
| 361 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 362 | lipo -create opensc-tool ../../../../compiled-opensc-i386/Library/OpenSC/bin/opensc-tool -output opensc-tool_univ && \ |
|---|
| 363 | mv -f opensc-tool_univ opensc-tool |
|---|
| 364 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 365 | lipo -create piv-tool ../../../../compiled-opensc-i386/Library/OpenSC/bin/piv-tool -output piv-tool_univ && \ |
|---|
| 366 | mv -f piv-tool_univ piv-tool |
|---|
| 367 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 368 | lipo -create pkcs11-tool ../../../../compiled-opensc-i386/Library/OpenSC/bin/pkcs11-tool -output pkcs11-tool_univ && \ |
|---|
| 369 | mv -f pkcs11-tool_univ pkcs11-tool |
|---|
| 370 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 371 | lipo -create pkcs15-crypt ../../../../compiled-opensc-i386/Library/OpenSC/bin/pkcs15-crypt -output pkcs15-crypt_univ && \ |
|---|
| 372 | mv -f pkcs15-crypt_univ pkcs15-crypt |
|---|
| 373 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 374 | lipo -create pkcs15-init ../../../../compiled-opensc-i386/Library/OpenSC/bin/pkcs15-init -output pkcs15-init_univ && \ |
|---|
| 375 | mv -f pkcs15-init_univ pkcs15-init |
|---|
| 376 | cd compiled-opensc/Library/OpenSC/bin/ && \ |
|---|
| 377 | lipo -create pkcs15-tool ../../../../compiled-opensc-i386/Library/OpenSC/bin/pkcs15-tool -output pkcs15-tool_univ && \ |
|---|
| 378 | mv -f pkcs15-tool_univ pkcs15-tool |
|---|
| 379 | cd compiled-opensc/Library/OpenSC/lib/ && \ |
|---|
| 380 | lipo -create libopensc.2.0.0.dylib ../../../../compiled-opensc-i386/Library/OpenSC/lib/libopensc.2.0.0.dylib -output libopensc.2.0.0_univ.dylib && \ |
|---|
| 381 | mv -f libopensc.2.0.0_univ.dylib libopensc.2.0.0.dylib |
|---|
| 382 | cd compiled-opensc/Library/OpenSC/lib/ && \ |
|---|
| 383 | lipo -create libpkcs15init.2.0.0.dylib ../../../../compiled-opensc-i386/Library/OpenSC/lib/libpkcs15init.2.0.0.dylib -output libpkcs15init.2.0.0_univ.dylib && \ |
|---|
| 384 | mv -f libpkcs15init.2.0.0_univ.dylib libpkcs15init.2.0.0.dylib |
|---|
| 385 | cd compiled-opensc/Library/OpenSC/lib/ && \ |
|---|
| 386 | lipo -create libscconf.2.0.0.dylib ../../../../compiled-opensc-i386/Library/OpenSC/lib/libscconf.2.0.0.dylib -output libscconf.2.0.0_univ.dylib && \ |
|---|
| 387 | mv -f libscconf.2.0.0_univ.dylib libscconf.2.0.0.dylib |
|---|
| 388 | cd compiled-opensc/Library/OpenSC/lib/ && \ |
|---|
| 389 | lipo -create opensc-pkcs11.so ../../../../compiled-opensc-i386/Library/OpenSC/lib/opensc-pkcs11.so -output opensc-pkcs11_univ.so && \ |
|---|
| 390 | mv -f opensc-pkcs11_univ.so opensc-pkcs11.so |
|---|
| 391 | cd compiled-opensc/Library/OpenSC/lib/ && \ |
|---|
| 392 | lipo -create pkcs11-spy.so ../../../../compiled-opensc-i386/Library/OpenSC/lib/pkcs11-spy.so -output pkcs11-spy_univ.so && \ |
|---|
| 393 | mv -f pkcs11-spy_univ.so pkcs11-spy.so |
|---|
| 394 | cd compiled-opensc/Library/OpenSC/lib/ && \ |
|---|
| 395 | lipo -create libopensc.a ../../../../compiled-opensc-i386/Library/OpenSC/lib/libopensc.a -output libopensc_univ.a && \ |
|---|
| 396 | mv -f libopensc_univ.a libopensc.a |
|---|
| 397 | cd compiled-opensc/Library/OpenSC/lib/ && \ |
|---|
| 398 | lipo -create libpkcs15init.a ../../../../compiled-opensc-i386/Library/OpenSC/lib/libpkcs15init.a -output libpkcs15init_univ.a && \ |
|---|
| 399 | mv -f libpkcs15init_univ.a libpkcs15init.a |
|---|
| 400 | cd compiled-opensc/Library/OpenSC/lib/ && \ |
|---|
| 401 | lipo -create libscconf.a ../../../../compiled-opensc-i386/Library/OpenSC/lib/libscconf.a -output libscconf_univ.a && \ |
|---|
| 402 | mv -f libscconf_univ.a libscconf.a |
|---|
| 403 | cd compiled-opensc/Library/OpenSC/lib/ && \ |
|---|
| 404 | lipo -create opensc-pkcs11.a ../../../../compiled-opensc-i386/Library/OpenSC/lib/opensc-pkcs11.a -output opensc-pkcs11_univ.a && \ |
|---|
| 405 | mv -f opensc-pkcs11_univ.a opensc-pkcs11.a |
|---|
| 406 | cd compiled-opensc/Library/OpenSC/lib/ && \ |
|---|
| 407 | lipo -create pkcs11-spy.a ../../../../compiled-opensc-i386/Library/OpenSC/lib/pkcs11-spy.a -output pkcs11-spy_univ.a && \ |
|---|
| 408 | mv -f pkcs11-spy_univ.a pkcs11-spy.a |
|---|
| 409 | touch $@ |
|---|
| 410 | |
|---|
| 411 | lipo-engine: compiled-engine-i386 |
|---|
| 412 | |
|---|
| 413 | |
|---|
| 414 | |
|---|
| 415 | cd compiled-engine/Library/OpenSC/lib/engines/ && \ |
|---|
| 416 | lipo -create engine_pkcs11.so ../../../../../compiled-engine-i386/Library/OpenSC/lib/engines/engine_pkcs11.so -output engine_pkcs11-univ.so && \ |
|---|
| 417 | mv -f engine_pkcs11-univ.so engine_pkcs11.so |
|---|
| 418 | touch $@ |
|---|
| 419 | |
|---|
| 420 | lipo-libp11: compiled-libp11-i386 |
|---|
| 421 | cd compiled-libp11/Library/OpenSC/lib/ && \ |
|---|
| 422 | lipo -create libp11.0.1.2.dylib ../../../../compiled-libp11-i386/Library/OpenSC/lib/libp11.0.1.2.dylib -output libp11.0.1.2-univ.dylib && \ |
|---|
| 423 | mv -f libp11.0.1.2-univ.dylib libp11.0.1.2.dylib |
|---|
| 424 | cd compiled-libp11/Library/OpenSC/lib/ && \ |
|---|
| 425 | lipo -create libp11.a ../../../../compiled-libp11-i386/Library/OpenSC/lib/libp11.a -output libp11-univ.a && \ |
|---|
| 426 | mv -f libp11-univ.a libp11.a |
|---|
| 427 | touch $@ |
|---|
| 428 | |
|---|
| 429 | lipo-openssh: compiled-openssh-i386 |
|---|
| 430 | cd compiled-openssh/Library/OpenSC/bin/ && \ |
|---|
| 431 | lipo -create scssh ../../../../compiled-openssh-i386/Library/OpenSC/bin/scssh -output scssh_univ && \ |
|---|
| 432 | mv -f scssh_univ scssh |
|---|
| 433 | cd compiled-openssh/Library/OpenSC/bin/ && \ |
|---|
| 434 | lipo -create scssh-add ../../../../compiled-openssh-i386/Library/OpenSC/bin/scssh-add -output scssh-add_univ && \ |
|---|
| 435 | mv -f scssh-add_univ scssh-add |
|---|
| 436 | cd compiled-openssh/Library/OpenSC/bin/ && \ |
|---|
| 437 | lipo -create scssh-agent ../../../../compiled-openssh-i386/Library/OpenSC/bin/scssh-agent -output scssh-agent_univ && \ |
|---|
| 438 | mv -f scssh-agent_univ scssh-agent |
|---|
| 439 | cd compiled-openssh/Library/OpenSC/bin/ && \ |
|---|
| 440 | lipo -create scssh-keygen ../../../../compiled-openssh-i386/Library/OpenSC/bin/scssh-keygen -output scssh-keygen_univ && \ |
|---|
| 441 | mv -f scssh-keygen_univ scssh-keygen |
|---|
| 442 | touch $@ |
|---|
| 443 | |
|---|
| 444 | lipo-libusb: compiled-libusb-i386 |
|---|
| 445 | cd compiled-libusb/Library/OpenSC/lib/ && \ |
|---|
| 446 | lipo -create libusb-0.1.4.4.4.dylib ../../../../compiled-libusb-i386/Library/OpenSC/lib/libusb-0.1.4.4.4.dylib -output libusb-0.1.4.4.4-univ.dylib && \ |
|---|
| 447 | mv -f libusb-0.1.4.4.4-univ.dylib libusb-0.1.4.4.4.dylib |
|---|
| 448 | cd compiled-libusb/Library/OpenSC/lib/ && \ |
|---|
| 449 | lipo -create libusbpp-0.1.4.4.4.dylib ../../../../compiled-libusb-i386/Library/OpenSC/lib/libusbpp-0.1.4.4.4.dylib -output libusbpp-0.1.4.4.4-univ.dylib && \ |
|---|
| 450 | mv -f libusbpp-0.1.4.4.4-univ.dylib libusbpp-0.1.4.4.4.dylib |
|---|
| 451 | cd compiled-libusb/Library/OpenSC/lib/ && \ |
|---|
| 452 | lipo -create libusb.a ../../../../compiled-libusb-i386/Library/OpenSC/lib/libusb.a -output libusb-univ.a && \ |
|---|
| 453 | mv -f libusb-univ.a libusb.a |
|---|
| 454 | cd compiled-libusb/Library/OpenSC/lib/ && \ |
|---|
| 455 | lipo -create libusbpp.a ../../../../compiled-libusb-i386/Library/OpenSC/lib/libusbpp.a -output libusbpp-univ.a && \ |
|---|
| 456 | mv -f libusbpp-univ.a libusbpp.a |
|---|
| 457 | touch $@ |
|---|
| 458 | |
|---|
| 459 | lipo-ifd-egate: compiled-ifd-egate-i386 |
|---|
| 460 | cd compiled-ifd-egate/usr/libexec/SmartCardServices/drivers/ifd-egate.bundle/Contents/MacOS/ && \ |
|---|
| 461 | lipo -create libifd_egate.dylib ../../../../../../../../compiled-ifd-egate-i386/usr/libexec/SmartCardServices/drivers/ifd-egate.bundle/Contents/MacOS/libifd_egate.dylib -output libifd_egate-univ.dylib && \ |
|---|
| 462 | mv -f libifd_egate-univ.dylib libifd_egate.dylib |
|---|
| 463 | touch $@ |
|---|
| 464 | |
|---|
| 465 | install: |
|---|
| 466 | mkdir -p compiled-opensc/Library/OpenSC/etc/ |
|---|
| 467 | cp opensc/etc/opensc.conf compiled-opensc/Library/OpenSC/etc/opensc.conf.orig |
|---|
| 468 | cp opensc-uninstall compiled-opensc/Library/OpenSC/bin/ |
|---|
| 469 | mkdir -p compiled-opensc/Library/OpenSC/doc/opensc/html |
|---|
| 470 | |
|---|
| 471 | |
|---|
| 472 | |
|---|
| 473 | |
|---|
| 474 | ./libtool-bundle compiled-opensc/Library/OpenSC/lib/opensc-pkcs11.so compiled-opensc/Library/OpenSC/lib |
|---|
| 475 | mkdir -p compiled-libp11/Library/OpenSC/doc/libp11/examples |
|---|
| 476 | cp libp11/doc/*.html compiled-libp11/Library/OpenSC/doc/libp11 |
|---|
| 477 | |
|---|
| 478 | cp libp11/examples/* compiled-libp11/Library/OpenSC/doc/libp11/examples |
|---|
| 479 | cp howto compiled-opensc/Library/OpenSC/doc/build-howto.txt |
|---|
| 480 | |
|---|
| 481 | |
|---|
| 482 | |
|---|
| 483 | mkdir -p compiled-opensc/usr/lib/ |
|---|
| 484 | cp /usr/lib/libltdl.3.dylib compiled-opensc/usr/lib/ |
|---|
| 485 | chown -R root:wheel $(BUILDHOME)/compiled*/* |
|---|
| 486 | chmod -R g+w $(BUILDHOME)/compiled*/* |
|---|
| 487 | |
|---|
| 488 | package: package-opensc package-libp11 package-engine package-openssl package-openssh package-libusb package-pcscd_autostart package-ifd-egate package-opensc_tokend |
|---|
| 489 | |
|---|
| 490 | package-opensc: build-opensc |
|---|
| 491 | $(PACKAGEMAKER) -build -p OpenSC.pkg -f compiled-opensc -v -ds \ |
|---|
| 492 | -i opensc-pack/Info.plist -r opensc-pack/resources -d opensc-pack/Description.plist |
|---|
| 493 | cp opensc-pack/InstallationCheck.strings OpenSC.pkg/Contents/Resources/English.lproj |
|---|
| 494 | cp opensc-pack/InstallationCheck.strings OpenSC.pkg/Contents/Resources |
|---|
| 495 | touch $@ |
|---|
| 496 | |
|---|
| 497 | package-libp11: build-libp11 |
|---|
| 498 | $(PACKAGEMAKER) -build -p libp11.pkg -f compiled-libp11 -v -ds \ |
|---|
| 499 | -i libp11-pack/Info.plist -d libp11-pack/Description.plist |
|---|
| 500 | touch $@ |
|---|
| 501 | |
|---|
| 502 | package-engine: build-engine |
|---|
| 503 | $(PACKAGEMAKER) -build -p engine_pkcs11.pkg -f compiled-engine -v -ds \ |
|---|
| 504 | -i engine-pack/Info.plist -d engine-pack/Description.plist |
|---|
| 505 | touch $@ |
|---|
| 506 | |
|---|
| 507 | package-openssl: build-openssl |
|---|
| 508 | $(PACKAGEMAKER) -build -p openssl.pkg -f compiled-openssl -v -ds \ |
|---|
| 509 | -i openssl-pack/Info.plist -d openssl-pack/Description.plist |
|---|
| 510 | touch $@ |
|---|
| 511 | |
|---|
| 512 | package-openssh: build-openssh |
|---|
| 513 | $(PACKAGEMAKER) -build -p openssh.pkg -f compiled-openssh -v -ds \ |
|---|
| 514 | -i openssh-pack/Info.plist -d openssh-pack/Description.plist |
|---|
| 515 | touch $@ |
|---|
| 516 | |
|---|
| 517 | package-libusb: build-libusb |
|---|
| 518 | $(PACKAGEMAKER) -build -p libusb.pkg -f compiled-libusb -v -ds \ |
|---|
| 519 | -i libusb-pack/Info.plist -d libusb-pack/Description.plist |
|---|
| 520 | touch $@ |
|---|
| 521 | |
|---|
| 522 | package-ifd-egate: build-ifd-egate |
|---|
| 523 | $(PACKAGEMAKER) -build -p ifd-egate.pkg -f compiled-ifd-egate -v -ds \ |
|---|
| 524 | -i ifd-egate-pack/Info.plist -d ifd-egate-pack/Description.plist |
|---|
| 525 | touch $@ |
|---|
| 526 | |
|---|
| 527 | package-pcscd_autostart: build-pcscd_autostart |
|---|
| 528 | $(PACKAGEMAKER) -build -p pcscd_autostart.pkg -f compiled-pcscd_autostart -v -ds \ |
|---|
| 529 | -i pcscd_autostart/Info.plist -r pcscd_autostart/resources -d pcscd_autostart/Description.plist |
|---|
| 530 | touch $@ |
|---|
| 531 | |
|---|
| 532 | package-opensc_tokend: build-tokend |
|---|
| 533 | $(PACKAGEMAKER) -build -p opensc_tokend.pkg -f compiled-opensc_tokend -v -ds \ |
|---|
| 534 | -i opensc_tokend-pack/Info.plist -d opensc_tokend-pack/Description.plist |
|---|
| 535 | touch $@ |
|---|
| 536 | |
|---|
| 537 | uninstall-all: uninstall-pcscd_autostart uninstall |
|---|
| 538 | |
|---|
| 539 | uninstall: |
|---|
| 540 | rm -rf /Library/Receipts/libusb.pkg |
|---|
| 541 | rm -rf /Library/Receipts/ifd-egate.pkg |
|---|
| 542 | rm -rf /Library/Receipts/libp11.pkg |
|---|
| 543 | rm -rf /Library/Receipts/engine_pkcs11.pkg |
|---|
| 544 | rm -rf /Library/Receipts/openssl.pkg |
|---|
| 545 | rm -rf /Library/Receipts/OpenSC.pkg |
|---|
| 546 | rm -rf /Library/Receipts/openssh.pkg |
|---|
| 547 | rm -rf /Library/Receipts/opensc_tokend.pkg |
|---|
| 548 | rm -rf /Library/OpenSC |
|---|
| 549 | rm -rf /System/Library/Security/tokend/OpenSC.tokend |
|---|
| 550 | rm -rf /usr/libexec/SmartCardServices/drivers/ifd-egate.bundle |
|---|
| 551 | |
|---|
| 552 | uninstall-pcscd_autostart: |
|---|
| 553 | rm -rf /Library/Receipts/pcscd_autostart.pkg |
|---|
| 554 | launchctl unload -w /Library/LaunchDaemons/org.opensc.pcscd.autostart |
|---|
| 555 | rm -f /Library/LaunchDaemons/org.opensc.pcscd.autostart |
|---|
| 556 | /Library/OpenSC/bin/sc-securityd.py active |
|---|