Commit Graph

128 Commits

Author SHA1 Message Date
David Ward bddef2485f macOS: Remove unused build code for the CryptoTokenKit app extension
OpenSCToken (https://github.com/frankmorgner/OpenSCToken) is now a
standalone package that provides the CryptoTokenKit app extension.
It includes its own 'build-package' script, which handles building
the OpenSC library and statically linking against it.

The 'MacOSX/' directory in OpenSC itself is only used to build the
macOS tokend. Remove unused code for building a CryptoTokenKit app
extension from this directory (which no longer works). This should
help to avoid confusion when building OpenSC for macOS.
2018-04-25 13:01:49 +02:00
Frank Morgner 74e7200c31 macOS: fixed detection of OpenPACE package 2017-12-19 12:52:50 +01:00
Frank Morgner 47993116da macOS High Sierra: fixed dmg creation
fixes https://github.com/OpenSC/OpenSC/issues/1198
2017-12-05 08:27:55 +01:00
Frank Morgner 0211f638c3 only set MACOSX_DEPLOYMENT_TARGET
which is equivalent to use -mmacosx-version-min
2017-11-17 10:04:46 +01:00
Frank Morgner 9a2a62e641 fixed codesigning of opensc tools 2017-11-17 10:04:46 +01:00
Frank Morgner c35eb1c9bc macOS: Disable notifications by default
fixes https://github.com/OpenSC/OpenSC/issues/1174
2017-11-17 10:04:46 +01:00
Frank Morgner 027205cc4d use MACOSX_DEPLOYMENT_TARGET 2017-11-17 10:04:46 +01:00
Frank Morgner 718d4852da use pluginkit to register OpenSCToken 2017-11-17 10:04:46 +01:00
Frank Morgner 20ea45b8f1 allow static linking of OpenSCToken 2017-11-17 10:04:46 +01:00
Frank Morgner c9984ca762 MacOS: optionally use CTK in package builder 2017-11-17 10:04:46 +01:00
Frank Morgner ce3f27ff54 opensc-notify: notify for card events
... manually or in daemon mode

fixes compilation in MinGW/Travis CI
2017-08-02 19:04:09 +02:00
Frank Morgner bf828014e5 macOS: Added support for notifications
- adds framework for user defined message strings
- automatically determine the system's language
2017-08-02 19:02:05 +02:00
Frank Morgner 74ec7b04ff sc-hsm: Add support for SoC
- eac: allow CA without EF.CardSecurity
- sc-hsm: implemented CA based on document PKI
- sc-hsm: adds receive limit for SoC card
- introduces dedicated card type for SoC card
- md: integrate card's PIN pad capabilities
- installer: added SC-HSM SoC card to registry
- pkcs15-tool: Added support for PIN entry on card
- change/unblock PIN: add support for PIN entry on card
- added OpenPACE to macOS build
- travis-ci: install gengetopt/help2man via brew
- sc-hsm: Cache EF.C_DevAut
- sc-hsm: Prevent unnecessary applet selection and state resets
- sc-hsm: added support for session pin
- sc-hsm: avoid multiple AID selection
- sc-hsm: Use the information from match_card for all subsequent selections of the applet
- sc-hsm: cache optional files as empty files (Decoding the files will reveal that they were not existing prior caching. This avoids selecting the file though we have already tried to cache the file before.)
- use dedicated directory for CVC trust anchors
- appveyor: added OpenPACE to windows build
2017-05-22 16:25:08 +02:00
Frank Morgner e23960f793 Fixed ssh's pkcs11 usage on macOS
copy (instead of link) our pkcs11 libraries to the default location, which is whitelisted for ssh usage

fixes https://github.com/OpenSC/OpenSC/issues/1008
2017-05-13 23:41:12 +02:00
Raul Metsma 890d97816e Use $(xcrun --sdk macosx --show-sdk-path) to parse SDK_PATH
Signed-off-by: Raul Metsma <raul@metsma.ee>
2017-03-03 09:11:08 +01:00
Frank Morgner e8b5dcfaa6 macOS: Simplyfy installer
- integrated readme into welcome screen
- removed explicit user consent to LGPL in accordance to
  https://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html#ClickThrough
2017-02-20 21:37:44 +01:00
Frank Morgner 25f785e482 macOS: Use a better Uninstaller
An apple script converted to an App calls the local
/usr/local/bin/opensc-uninstall
2017-02-20 21:37:44 +01:00
Frank Morgner c4a99517af only build opensc when needed 2016-10-31 12:34:10 +01:00
Ludovic Rousseau b1aa79058a MacOSX/build-package: fix build for make multi jobs
If --jobs=... argument is used for make (or the equivalent MAKEFLAGS is
defined) then the command "make clean update depend" fails because the 3
actions must be done in sequence and not in parallel.
2016-10-14 14:12:15 +02:00
Ludovic Rousseau 0f69949bbf MacOSX: fix OpenSSL check in build-package.in
OpenSSL is configured to be installed in $PREFIX so the files should be
checked in $BUILDPATH/openssl_bin/$PREFIX/lib/pkgconfig and not
$BUILDPATH/openssl_bin/lib/pkgconfig
2016-10-14 14:02:21 +02:00
Frank Morgner c524930e2b use a user defined PKG_CONFIG_PATH
closes https://github.com/OpenSC/OpenSC/pull/779
2016-06-04 01:36:53 +02:00
scootersmk ee6fd3a09a Update reference URLs in ReadMe.html.in
RSA.com link broken due to move to EMC site.

Closes https://github.com/OpenSC/OpenSC/pull/763
2016-05-23 11:29:38 +02:00
Frank Morgner 8dcdf204af build OpenSSL on OS X if needed 2016-05-23 11:29:34 +02:00
Frank Morgner 4a3e986f8e build 64 bit binaries only
Starting with OS X 10.8 only 64 bit binaries are needed
2016-05-23 11:29:28 +02:00
Ludovic Rousseau b3f5910c27 macosx: do not ignore CFLAGS
Reused the previously defined CFLAGS to add new arguments.
2016-02-29 20:19:42 +01:00
Frank Morgner fd67f794f1 Added minimum version of OS X to pkg 2015-11-03 00:03:17 +01:00
Frank Morgner 5422887f9b reflect dependency to OS X 10.10 in dmg description 2015-10-14 14:34:20 +02:00
Frank Morgner bccf2120cd use PREFIX as shortcut in build script 2015-10-13 15:05:28 +02:00
Frank Morgner 66415690d9 OSX: link pkcs11 library to /usr/local/lib
Circumvents SIP on El Capitan
2015-10-13 15:01:40 +02:00
Frank Morgner da1d4cc78a Fix locking issue on OS X
Works around Apple shipping PCSC-Lite headers without PCSC-Lite. Let's
say they do it for "backward compatibility"...
2015-10-08 08:24:40 +02:00
Frank Morgner 989c06b25d OSX: don't ship with libp11/engine_pkcs11 anymore
both spin off projects should ship with a separate installer. See
discussion here https://github.com/OpenSC/OpenSC/issues/488
2015-09-16 03:52:00 +02:00
Frank Morgner a52b2928cd retry on error with hdiutil 2015-09-03 08:22:50 +02:00
Raul Metsma 4fedad53dd Fix tokend install on OSX 10.11
Install to /Library/Security/tokend instead /System/Library/Security/tokend
http://forums.macrumors.com/threads/os-x-10-11-all-the-little-things.1890519/
/System folder is readonly

Depends https://github.com/OpenSC/OpenSC.tokend/pull/16

Signed-off-by: Raul Metsma <raul@metsma.ee>
2015-07-30 20:31:09 +03:00
Frank Morgner a251b9335c use xcodebuild with `-target OpenSC`
patch by Dirk-Willem van Gulik
2015-03-31 23:57:19 +02:00
Martin Paljak 5448901160 macosx: update the minimal building instructions. 2014-10-26 11:48:57 +02:00
Martin Paljak 82624a98b7 macosx: locate and target the latest SDK to build against. 2014-10-25 20:07:36 +03:00
Raul Metsma f80759b65e Target minimum OSX version to 10.7 2014-09-07 22:07:57 +02:00
Raul Metsma cd7fbe3f8c MacOSX: Build fat binaries i386...
revert part of 6e255a95

Chrome is still 32 bit only
This allows plugins running in Chrome (32bit) to use OpenSC PKCS#11, which would otherwise be only 64bit. Tokend "hides" the cpu architecture issue otherwise.
2014-06-26 17:56:09 +02:00
Martin Paljak 9f90cfae7d macosx: inlude all files needed to build the installer from distribution.
There was a typo in the makefile...
2014-01-14 16:35:12 +00:00
Martin Paljak 4c31128bef macosx: add "graphical uninstaller" to distribution DMG.
This allows to uninstall the software by people who don't use Terminal.
2014-01-04 16:43:36 +00:00
Martin Paljak 91e3988ef0 macosx: fix typo in distribution descriptor 2013-12-18 10:40:59 +00:00
Martin Paljak d4a3edac08 macosx: update package building to modern tools
PackageMaker has been deprecated since Xcode 4.6.
pkgbuild and productbuild have been available since 10.6.6
2013-12-18 09:49:44 +00:00
Martin Paljak cfe0e7368d macosx: silence the deprecation warnings about OpenSSL 2013-12-11 10:41:19 +00:00
Ludovic Rousseau a18a7d8ecf Fix typo 2013-11-01 18:00:49 +01:00
Martin Paljak 6e255a9503 osx: target 10.9 (a free upgrade to anyone using 10.6+) from now on. 2013-10-24 13:29:34 +03:00
Martin Paljak d887083998 macosx: add new tool and SDK paths for OS X 10.8
Also:
 * Don't do a debug build
 * Don't download Tokend build pieces if already present.
 * Check the md5 of the "external binary"

See https://github.com/OpenSC/OpenSC/pull/148
2013-03-30 12:28:05 +02:00
Martin Paljak 8e95abf326 macosx: make the opensc-uninstall script better at removing all files. 2013-03-04 14:09:45 +02:00
Martin Paljak 025d8c8caf macosx: move the binary build components from martinpaljak.net to opensc-project.org 2013-02-25 11:59:59 +02:00
Martin Paljak 578cf06910 Fixup: somehow a double "make make" slipped through.
Thanks to Pohjalainen Pietu for noticing it.
2013-02-22 15:15:09 +02:00
Viktor Tarasov 8741185a4c MacOSX: remove obsolete EXTRA_DISTs from Makefile.am
build scripts have been changed in 3fc2dbc9
2013-02-21 13:12:06 +01:00
Martin Paljak 3fc2dbc9f1 Upgrade the MacOSX package build script to current state of affairs.
- Target only Intel (available since 2006) and OS X 10.6+ (released in 2009)
 - Use sources only from https://github.com/OpenSC/
2013-02-20 14:34:08 +02:00
Martin Paljak 6f8dcc9172 Make the Mac OS X package builder script more resilient.
Don't fail if not needed .la files are nout found in the target.

This is actually a test commit for github<->opensc-project.org sync
2011-12-08 12:18:22 +02:00
Martin Paljak 4f334b8075 MacInstaller: remove cardos-tool on uninstall
Thanks to Marek Kusmin for noticing this.
2011-09-14 11:35:59 +03:00
Martin Paljak 5fc31b7f6e MacInstaller: more explicitly support 10.7
Tokend has been discontinued on 10.7 but still works.

This fixes #382
2011-09-13 21:57:22 +03:00
Martin Paljak 4294f3ca98 MacInstaller: Mac OS X 10.6.8 was released on 23.06.2011. Require it by default 2011-06-30 16:50:25 +03:00
martin 7cc559ec39 MacInstaller: when building OpenSC.tokend, refresh remote branches before trying to switch.
Old checkout is used by build slaves, where new branches might not be visible

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5560 c6295689-39f2-0310-b995-f0e70906c6a9
2011-06-07 13:13:43 +00:00
martin 203eb871d6 MacInstaller: when building the engine on 10.6, extent the pkg-config search path with freshly built libp11 location instead of replacing the path.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5559 c6295689-39f2-0310-b995-f0e70906c6a9
2011-06-07 13:06:41 +00:00
martin f2da113f54 MacInstaller: r5550/[d888b3fd55] changed ABI, bump OpenSC.tokend branch revision.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5557 c6295689-39f2-0310-b995-f0e70906c6a9
2011-06-07 10:49:04 +00:00
martin 5deeef69c9 MacInstaller: fix distribution style, which accidentially got changed in r5376.
This only affects (corrects) Mac OS X binary packaging.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5453 c6295689-39f2-0310-b995-f0e70906c6a9
2011-05-18 05:33:40 +00:00
alonbl 7d5ba618e0 maintainer-clean cleanup, thanks to JONSITO
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5393 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-25 09:45:25 +00:00
martin 9b4f1369c4 MacInstaller: fix 10.5 build script, broken with previous change.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5377 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-20 13:41:04 +00:00
martin a7934b307e MacInstaller: use autoconf to write the correct version to ReadMe files of installers.
* Better version tagging of generated files
 * Bundle files necessary for OS X installer generation to the distribution targzip

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5376 c6295689-39f2-0310-b995-f0e70906c6a9
2011-04-20 12:14:44 +00:00
martin f73eb87fed MacInstaller: use the pre-built libopensc.dylib for building OpenSC.tokend
This way it can be built without installing OpenSC on a clean machine.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5193 c6295689-39f2-0310-b995-f0e70906c6a9
2011-02-10 13:40:35 +00:00
martin e033245ad1 MacInstaller: track Tokend branch in Git based on OpenSC release.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5121 c6295689-39f2-0310-b995-f0e70906c6a9
2011-01-24 10:59:20 +00:00
martin 72c0474dde Prepare for 0.12.0
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4980 c6295689-39f2-0310-b995-f0e70906c6a9
2010-12-22 17:12:11 +00:00
martin 7f32e7a079 Build 0.12.0-rc2
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4961 c6295689-39f2-0310-b995-f0e70906c6a9
2010-12-17 10:15:11 +00:00
martin 05137b7cc1 MacInstaller: add the build date to the DMG label.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4944 c6295689-39f2-0310-b995-f0e70906c6a9
2010-12-13 14:14:37 +00:00
martin 0050a4bc6d MacInstaller: prefer http over git.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4779 c6295689-39f2-0310-b995-f0e70906c6a9
2010-09-28 13:12:54 +00:00
martin af6a246703 MacInstaller: allow building a x86 only version for 10.5
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4778 c6295689-39f2-0310-b995-f0e70906c6a9
2010-09-27 14:06:40 +00:00
martin 2a3fcf3d92 MacInstaller: simplify configure arguments
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4756 c6295689-39f2-0310-b995-f0e70906c6a9
2010-09-22 11:47:35 +00:00
martin 53c3c486af MacInstaller: statically link libltdl for 10.5, as 10.5 PPC comes without the necessary .dylib (i386 has it)
Thanks to Kalev Lember for the original patch.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4735 c6295689-39f2-0310-b995-f0e70906c6a9
2010-09-20 15:01:45 +00:00
martin 767e5dd6c9 MacInstaller: fix syntax error
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4719 c6295689-39f2-0310-b995-f0e70906c6a9
2010-09-14 08:49:50 +00:00
martin 36ef464758 MacInstaller: simplify ./configure calling, disable assert-s
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4718 c6295689-39f2-0310-b995-f0e70906c6a9
2010-09-14 08:49:46 +00:00
martin cb92f7bb9a MacInstaller: Simplify file detection
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4704 c6295689-39f2-0310-b995-f0e70906c6a9
2010-09-09 09:43:27 +00:00
jps 8bb0ab634e MacOSX 10.5: Install libltdl.3.dylib if needed
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4703 c6295689-39f2-0310-b995-f0e70906c6a9
2010-09-09 09:18:18 +00:00
jps 5dc3ffe354 On MacOSX, we need to delete the receipts too, after deleting the application files.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4698 c6295689-39f2-0310-b995-f0e70906c6a9
2010-09-07 08:07:04 +00:00
martin 1bd7e5d2f5 MacInstaller: Add .bundle generation capability from SCA. Thanks to Jean-Pierre Szikora for the reminder.
Adobe Acrobat is one program that requires the .bundle format.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4657 c6295689-39f2-0310-b995-f0e70906c6a9
2010-08-27 09:39:24 +00:00
martin 4cbe69413b Add build script for Mac OS X. Uses github copies of SVN for source.
Includes:
Add static engine_pkcs11.so to the 10.6 installer (#246)
Patch from Mart Randala: add a nice background image and readme file and license file.
Patch from João Poupas: fix a typo and also work with docbook-xsl from macports.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4650 c6295689-39f2-0310-b995-f0e70906c6a9
2010-08-25 08:44:32 +00:00