Changing the Installer package Checkpoint’s SecureClient R56 to work with Snow Leopard
Posted on 07 September 2009
As in my previous post I describe a method to have SecureClient R56 running on Snow Leopard. However, if you have a lot of machines to be installed an VPN Client, it might be worth just doing the changes inside the package. So it must be done only once. All you need to later, just running the Package on Snow Leopard without editing anything.
It requires some knowledge using the shell, so a basic understanding of Linux commands would be good.
To get around the Leopard Check
- edit two Files inside the package (Right-Click on the Package / Show Package Contents. This opens finder within the package.
- go to Contents/Resources
- open TextEdit, use vi in a shell or whatever you prefer to edit a simple file
- on file “InstallationCheck” change the number 9 in line 8 to number 10: if [ “$MAJOR” != “10” ]; then
- same on file “postinstall “ change the number 9 in line 84 to number 10
Creating a new content (pax archive)
I suspect the original unchanged package is on your Desktop and its name is “SecureClient_B634000031_1”.
Open a Terminal window from the Utilities folder.
cd Desktop mkdir temp cd temp mv $HOME/Desktop/SecureClient_B634000031_1.pkg/Contents/Archive.pax.gz . gunzip Archive.pax.gz pax -r -f Archive.pax mkdir SC cd SC tar -xzvf ../desktop_B634000031_1.tgz
Now just go ahead and do the changes inside Desktop/temp/SC
so please edit “scuninstall” in the bin folder and it will uninstall cleanly:
# Delete install entry so the next time we run the installer it would suggest # installing and not upgrading $RM -r -f /Library/Receipts/SecureClient*.pkg # the following lines should be added here $RM -r -f /private/var/db/receipts/com.checkpoint.secureclient.R56.bom $RM -r -f /private/var/db/receipts/com.checkpoint.secureclient.R56.plist
Open a hex editor and change anything with “kextload -s” to “kextload -r”. on the following files:
Please have alook at my previous post.
mkdir ../newSC tar -czvf ../newSC/desktop_B634000031_1.tgz * sudo chown -R root:wheel ../newSC cd ../newSC/ mkbom -s ./ ../Archive.bom rm ../Archive.pax pax -U root -x cpio -w . > ../Archive.pax cd .. gzip Archive.pax mv Archive.bom $HOME/Desktop/SecureClient_B634000031_1.pkg/Contents/Archive.bom mv Archive.pax.gz $HOME/Desktop/SecureClient_B634000031_1.pkg/Contents/Archive.pax.gz exit
After testing the package, you can delete the temp folder on your desktop.