Add installer option to deselect tokend
Signed-off-by: Raul Metsma <raul@metsma.ee>
This commit is contained in:
parent
6472027848
commit
f341b758e6
|
@ -1,4 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<!--
|
||||
https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/DistributionDefinitionRef/
|
||||
-->
|
||||
<installer-gui-script minSpecVersion="2">
|
||||
<allowed-os-versions>
|
||||
<os-version min="10.10"/>
|
||||
|
@ -6,17 +9,15 @@
|
|||
<background file="background.jpg" mime-type="image/jpeg" scaling="tofit"/>
|
||||
<welcome file="Welcome.html" mime-type="text/html"/>
|
||||
<title>@PACKAGE_STRING@</title>
|
||||
|
||||
<pkg-ref id="com.apple.tokend.opensc"/>
|
||||
<options customize="never" require-scripts="false"/>
|
||||
<options customize="allow" require-scripts="false"/>
|
||||
<choices-outline>
|
||||
<line choice="default">
|
||||
<line choice="com.apple.tokend.opensc"/>
|
||||
</line>
|
||||
<line choice="default" />
|
||||
<line choice="tokend" />
|
||||
</choices-outline>
|
||||
<choice id="default"/>
|
||||
<choice id="com.apple.tokend.opensc" visible="true">
|
||||
<pkg-ref id="com.apple.tokend.opensc"/>
|
||||
<choice id="default" title="OpenSC PKCS11 and tools" enabled="false">
|
||||
<pkg-ref id="org.opensc-project.mac">OpenSC.pkg</pkg-ref>
|
||||
</choice>
|
||||
<choice id="tokend" title="OpenSC tokend">
|
||||
<pkg-ref id="org.opensc-project.tokend">OpenSC-tokend.pkg</pkg-ref>
|
||||
</choice>
|
||||
<pkg-ref id="com.apple.tokend.opensc" onConclusion="none">OpenSC.pkg</pkg-ref>
|
||||
</installer-gui-script>
|
||||
|
|
|
@ -96,7 +96,7 @@ fi
|
|||
test -L OpenSC.tokend/build/opensc-src || ln -sf ${BUILDPATH}/src OpenSC.tokend/build/opensc-src
|
||||
|
||||
# Build and copy OpenSC.tokend
|
||||
xcodebuild -target OpenSC -configuration Deployment -project OpenSC.tokend/Tokend.xcodeproj install DSTROOT=${BUILDPATH}/target
|
||||
xcodebuild -target OpenSC -configuration Deployment -project OpenSC.tokend/Tokend.xcodeproj install DSTROOT=${BUILDPATH}/target_tokend
|
||||
|
||||
#if ! test -e $BUILDPATH/target/Library/Security/tokend/OpenSC.tokend/Contents/Resources/Applications/terminal-notifier.app; then
|
||||
#if ! test -e terminal-notifier-1.7.1.zip; then
|
||||
|
@ -112,7 +112,7 @@ xcodebuild -target OpenSC -configuration Deployment -project OpenSC.tokend/Token
|
|||
if ! test -e NotificationProxy; then
|
||||
git clone http://github.com/frankmorgner/NotificationProxy.git
|
||||
fi
|
||||
xcodebuild -target NotificationProxy -configuration Release -project NotificationProxy/NotificationProxy.xcodeproj install DSTROOT=$BUILDPATH/target/Library/Security/tokend/OpenSC.tokend/Contents/Resources/
|
||||
xcodebuild -target NotificationProxy -configuration Release -project NotificationProxy/NotificationProxy.xcodeproj install DSTROOT=$BUILDPATH/target_tokend/Library/Security/tokend/OpenSC.tokend/Contents/Resources/
|
||||
mkdir -p "$BUILDPATH/target/Applications"
|
||||
osacompile -o "$BUILDPATH/target/Applications/OpenSC Notify.app" "MacOSX/OpenSC_Notify.applescript"
|
||||
|
||||
|
@ -124,6 +124,7 @@ cp MacOSX/opensc-uninstall ${BUILDPATH}/target/usr/local/bin
|
|||
|
||||
# Build package
|
||||
pkgbuild --root ${BUILDPATH}/target --scripts MacOSX/scripts --identifier org.opensc-project.mac --version @PACKAGE_VERSION@ --install-location / OpenSC.pkg
|
||||
pkgbuild --root ${BUILDPATH}/target_tokend --identifier org.opensc-project.tokend --version @PACKAGE_VERSION@ --install-location / OpenSC-tokend.pkg
|
||||
# Build product
|
||||
productbuild --distribution MacOSX/Distribution.xml --package-path . --resources MacOSX/resources "${imagedir}/OpenSC @PACKAGE_VERSION@.pkg"
|
||||
|
||||
|
|
|
@ -22,9 +22,8 @@ rm -rf /Library/Security/tokend/OpenSC.tokend
|
|||
rm -rf /System/Library/Security/tokend/OpenSC.tokend
|
||||
|
||||
# delete receipts on 10.6+
|
||||
for file in /var/db/receipts/org.opensc-project.mac.bom /var/db/receipts/org.opensc-project.mac.plist; do
|
||||
test -f $file && rm -f $file
|
||||
done
|
||||
pkgutil --forget org.opensc-project.mac > /dev/null
|
||||
pkgutil --forget org.opensc-project.tokend > /dev/null
|
||||
|
||||
# remove this script
|
||||
rm -f /usr/local/bin/opensc-uninstall
|
||||
|
|
Loading…
Reference in New Issue