RSS
Supportposted this on May-23 2010 02:38 pm
While Identity Finder is distributed from the IdentityFinder.com website as a dmg, modification to the dmg or application bundle contained therein are not supported. Any organization using Identity Finder for Mac version 3.0 or later (which can take advantage of the management capabilities of Identity Finder Enterprise Console version 4.5 or later) must create and deploy a custom Installer Package that can include a custom plist, license file, and other supplementary files as well as configure the endpoint service application.
The only supported method for creating a custom Installer Package is to use the builds scripts referenced by and attached to this article. These build scripts require the PackageMaker application available with the Apple Developer Tools to be installed on the system used to create the package. Please refer to the Apple User Guide (external PDF link) for complete documentation.
Note: Configuring HTTPS/SSL is outside the scope of this article. If SSL is to be utilized, it is necessary to ensure that the required files and settings are available prior to building the package. For additional information, please refer to the article:
Note: This information only applies to Identity Finder for Mac v3.7 and later. For reference or configuring/troubleshooting an earlier installation package, refer to this KB:
This article contains the following sections:
To begin the process, download the build script, Identity Finder application, and client/console communication configuration file.
Before executing the script to build the package, it is necessary to organize the files that will be included in the package.
/Applications/Identity Finder.app
/Library/Application Support/Identity Finder/identityfinder.lic
/Library/Preferences/com.identityfinder.macedition.plist
/Library/Application Support/Identity Finder/ca.pem
The process of building the pkg installer package is performed by executing the script IdentityFinderPackageBuilder.sh at a command prompt, as follows:
cd IdentityFinderPackageBuilder/Resources
chmod ugo+x preflightchmod ugo+x preinstall
cd ..
chmod ugo+x IdentityFinderPackageBuilder.sh
./IdentityFinderPackageBuilder.sh -RootAuth
The script will then run to completion and create IdentityFinder.pkg in the folder IdentityFinderPackageBuilder/Output. Once completed, test the package.
After building the package, it is necessary to execute the package to verify that all of the components are properly installed and that the endpointservice is started.
Dec 8 11:52:40 Installer[51892]: @(#)PROGRAM:Install PROJECT:Install-388Dec 8 11:52:40 Installer[51892]: @(#)PROGRAM:Installer PROJECT:Installer-281Dec 8 11:52:40 Installer[51892]: Hardware: MacBookPro5,2 @ 2.93 GHz (x 2), 8192 MB RAMDec 8 11:52:40 Installer[51892]: Running OS Build: Mac OS X 10.5.8 (9L31a)Dec 8 11:52:40 Installer[51892]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbinDec 8 11:52:40 Installer[51892]: Env: TMPDIR=/var/folders/ka/kaBzHl2IG6yXTTiPRDoALU+++TI/-Tmp-/Dec 8 11:52:40 Installer[51892]: Env: SHELL=/bin/bashDec 8 11:52:40 Installer[51892]: Env: HOME=/Users/devuserDec 8 11:52:40 Installer[51892]: Env: USER=devuserDec 8 11:52:40 Installer[51892]: Env: LOGNAME=devuserDec 8 11:52:40 Installer[51892]: Env: DISPLAY=/tmp/launch-3zJTAy/:0Dec 8 11:52:40 Installer[51892]: Env: SSH_AUTH_SOCK=/tmp/launch-aGzIG1/ListenersDec 8 11:52:40 Installer[51892]: Env: Apple_PubSub_Socket_Render=/tmp/launch-yUzIST/RenderDec 8 11:52:40 Installer[51892]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:0Dec 8 11:52:40 Installer[51892]: Env: SECURITYSESSIONID=965b9be0Dec 8 11:52:40 Installer[51892]: Env: COMMAND_MODE=unix2003Dec 8 11:52:40 Installer[51892]: Env: CVS_RSH=sshDec 8 11:52:40 Installer[51892]: Identity Finder Installation LogDec 8 11:52:40 Installer[51892]: Opened from: /Users/devuser/Documents/workspace/IdfMacPublic/Installer/IdentityFinderPackageBuilder/IdentityFinder.pkgDec 8 11:52:41 installdb[51894]: started (uid 96)Dec 8 11:52:41 installdb[51894]: Opened receipt database on '/' with schema 17.Dec 8 11:52:41 Installer[51892]: Found receipt (full match) for (identityfinder / com.identityfinder.pkg): (identityfinder / com.identityfinder.pkg)Dec 8 11:52:47 installdb[51894]: done. (0.004u + 0.003s)Dec 8 11:52:55 runner[51895]: Administrator authorization granted.Dec 8 11:52:55 Installer[51892]: ================================================================================Dec 8 11:52:55 Installer[51892]: User picked Standard InstallDec 8 11:52:55 Installer[51892]: Choices selected for installation:Dec 8 11:52:55 Installer[51892]: Upgrade: "Identity Finder"Dec 8 11:52:55 Installer[51892]: IdentityFinder.pkg : com.identityfinder.pkg : 3.7.0.3.7Dec 8 11:52:55 Installer[51892]: ================================================================================Dec 8 11:52:55 Installer[51892]: It took 0.00 seconds to summarize the package selections.Dec 8 11:52:55 Installer[51892]: -[IFPKGDerivedDocument sortedPackageLocations]: result = (\n file://localhost\n)Dec 8 11:52:55 Installer[51892]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhostDec 8 11:52:55 Installer[51892]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/devuser/Documents/workspace/IdfMacPublic/Installer/IdentityFinderPackageBuilder/IdentityFinder.pkgDec 8 11:52:55 Installer[51892]: _installNextPackage of 1Dec 8 11:52:55 installdb[51896]: started (uid 96)Dec 8 11:52:55 installdb[51896]: Opened receipt database on '/' with schema 17.Dec 8 11:52:55 Installer[51892]: Found receipt (full match) for (identityfinder / com.identityfinder.pkg): (identityfinder / com.identityfinder.pkg)Dec 8 11:52:55 Installer[51892]: Starting installation:Dec 8 11:52:55 Installer[51892]: Preparing volume "Macintosh HD" for installationDec 8 11:52:55 Installer[51892]: Configuring volume "Macintosh HD"Dec 8 11:52:56 Installer[51892]: Preparing disk for local booted install.Dec 8 11:52:56 Installer[51892]: Free space on "Macintosh HD": 49.3 GB (52892991488 bytes).Dec 8 11:52:56 Installer[51892]: Create temporary directory "/private/tmp/IdentityFinder.pkg.51892EztnrK"Dec 8 11:52:56 Installer[51892]: run preflight script for Identity FinderDec 8 11:52:56 runner[51895]: preflight[51897]: Starting Identity Finder installer preflight scriptDec 8 11:52:56 runner[51895]: preflight[51897]: Ending Identity Finder installer preflight scriptDec 8 11:52:56 runner[51895]: preflight[51897]: Dec 8 11:52:56 Installer[51892]: Processing Identity Finder:Dec 8 11:52:56 Installer[51892]: Determining files to installDec 8 11:52:56 Installer[51892]: It took 0.01 seconds to create the install plan for identityfinder.Dec 8 11:52:56 Installer[51892]: Removing previously installed languagesDec 8 11:52:56 Installer[51892]: Configuring deferred filesDec 8 11:52:56 Installer[51892]: Determining obsolete filesDec 8 11:52:56 Installer[51892]: Assembling temporary receiptDec 8 11:52:57 Installer[51892]: Performing pre-extraction actionsDec 8 11:52:57 Installer[51892]: run preupgrade script for Identity FinderDec 8 11:52:57 runner[51895]: preupgrade[51899]: Starting pre_upgrade scriptDec 8 11:52:57 runner[51895]: preupgrade[51899]: End pre_upgrade scriptDec 8 11:52:57 runner[51895]: preupgrade[51899]: Dec 8 11:52:57 Installer[51892]: Removing obsoleted filesDec 8 11:52:57 Installer[51892]: Creating destination pathDec 8 11:52:57 Installer[51892]: Validating package payloadDec 8 11:52:57 Installer[51892]: Starting file extractionDec 8 11:52:57 pkgExtractor[51900]: Extracting...Dec 8 11:52:58 pkgExtractor[51900]: 265 of 265 files written in 1.41 seconds.Dec 8 11:52:58 pkgExtractor[51900]: 44500 kilobytes installed at 30.9 MB/s.Dec 8 11:52:58 Installer[51892]: run postupgrade script for Identity FinderDec 8 11:52:58 runner[51895]: postupgrade[51903]: Starting Identity Finder installer /Users/devuser/Documents/workspace/IdfMacPublic/Installer/IdentityFinderPackageBuilder/IdentityFinder.pkg/Contents/Resources/postupgrade scriptDec 8 11:52:58 runner[51895]: postupgrade[51903]: Copying EndpointService to /Library/Application Support/Identity Finder...Dec 8 11:52:59 runner[51895]: postupgrade[51903]: EndpointService successfully copied to /Library/Application Support/Identity FinderDec 8 11:52:59 runner[51895]: postupgrade[51903]: Copying com.identityfinder.launchdaemon.plist to /Library/LaunchDaemons...Dec 8 11:52:59 runner[51895]: postupgrade[51903]: com.identityfinder.launchdaemon.plist cp result = 0Dec 8 11:52:59 runner[51895]: postupgrade[51903]: Loading com.identityfinder.launchdaemon.plist...Dec 8 11:52:59 runner[51895]: postupgrade[51903]: launchctl load /Library/LaunchDaemons/com.identityfinder.launchdaemon.plist result = 0Dec 8 11:52:59 runner[51895]: postupgrade[51903]: Setting owner root:admin for /Applications/Identity Finder.app.Dec 8 11:52:59 runner[51895]: postupgrade[51903]: Setting file mode to 775 for /Applications/Identity Finder.app.Dec 8 11:52:59 runner[51895]: postupgrade[51903]: Ending Identity Finder installer /Users/devuser/Documents/workspace/IdfMacPublic/Installer/IdentityFinderPackageBuilder/IdentityFinder.pkg/Contents/Resources/postupgrade scriptDec 8 11:52:59 Installer[51892]: Performing post-extraction actionsDec 8 11:52:59 Installer[51892]: Finishing receiptDec 8 11:52:59 Installer[51892]: run postflight script for Identity FinderDec 8 11:52:59 runner[51895]: postflight[51916]: Starting post_flight scriptDec 8 11:52:59 runner[51895]: postflight[51916]: End post_flight scriptDec 8 11:52:59 Installer[51892]: Removing temporary directory "/private/tmp/IdentityFinder.pkg.51892EztnrK"Dec 8 11:52:59 Installer[51892]: Finalize disk "Macintosh HD"Dec 8 11:52:59 Installer[51892]: Notifying system of updated componentsDec 8 11:52:59 Installer[51892]: _installNextPackage of 0Dec 8 11:52:59 Installer[51892]: Dec 8 11:52:59 Installer[51892]: **** Summary Information ****Dec 8 11:52:59 Installer[51892]: Operation Elapsed timeDec 8 11:52:59 Installer[51892]: -----------------------------Dec 8 11:52:59 Installer[51892]: script 0.91 secondsDec 8 11:52:59 Installer[51892]: zero 0.01 secondsDec 8 11:52:59 Installer[51892]: install 2.79 secondsDec 8 11:52:59 Installer[51892]: validate 0.00 secondsDec 8 11:52:59 Installer[51892]: os 0.00 secondsDec 8 11:52:59 Installer[51892]: extract 1.50 secondsDec 8 11:52:59 Installer[51892]: receipt 0.41 secondsDec 8 11:52:59 Installer[51892]: disk 1.01 secondsDec 8 11:52:59 Installer[51892]: config 0.02 secondsDec 8 11:52:59 Installer[51892]: Dec 8 11:53:00 Installer[51892]: Starting installation:Dec 8 11:53:00 Installer[51892]: Finalizing installation.Dec 8 11:53:00 Installer[51892]: Registering applicationsDec 8 11:53:00 runner[51895]: Touched '/Applications/Identity Finder.app'Dec 8 11:53:00 Installer[51892]: Registered /Applications/Identity Finder.app.Dec 8 11:53:00 runner[51895]: Touched '/Applications/./Identity Finder.app'Dec 8 11:53:00 runner[51895]: Touched '/Applications/.'Dec 8 11:53:00 Installer[51892]: IFDInstallController 85DB40 state = 5Dec 8 11:53:00 Installer[51892]: Displaying 'Install Succeeded' UI.Dec 8 11:53:01 installdb[51896]: done. (0.004u + 0.003s)
/Library/Application Support/Identity Finder/identityfinder.lic/Library/Application Support/Identity Finder/ca.pem/Library/Preferences/com.identityfinder.macedition.plist
/Library/LaunchDaemons/com.identityfinder.launchdaemon.plist
/Library/Application Support/Identity Finder/EndpointService
When executing an upgrade with a PackageMaker package, no files will be removed even if these files are not present in the new package. If it is necessary to remove files on upgrade, a Preflight script must be created and included in the new package by specifying its location on the Scripts tab within PackageMaker. For example, this script will delete a preexisting Identity Finder.app. Note: Be extremely careful when using this script as an error in any path may result in the deletion of all applications on the system. It is likely more desirable to move the old files to $HOME/.Trash and/or rename them.
A sample Uninstall script is attached to this article as UninstallIDF.sh.
Powered by: C++博客 Copyright © RTY