Getting a .app into a .pkg for munki deployment

1,296 views
Skip to first unread message

Avas

unread,
Jan 26, 2016, 6:04:59 PM1/26/16
to munki-dev
How can I go about getting a .app into a .pkg for munki deployment. I am trying to get a SophosInstaller.app into my munki repository so that I can deploy it onto my client machines.

Thank you

Mr. Alan Siu

unread,
Jan 26, 2016, 6:06:21 PM1/26/16
to munk...@googlegroups.com
Chances are the SophosInstaller.app contains a .pkg or some other executable inside of it. What do you see inside when you right-click and select Show Package Contents?


Alan Siu
Client Systems Analyst
St. Ignatius College Preparatory

On Tue, Jan 26, 2016 at 3:04 PM, Avas <avasqu...@gmail.com> wrote:
How can I go about getting a .app into a .pkg for munki deployment. I am trying to get a SophosInstaller.app into my munki repository so that I can deploy it onto my client machines.

Thank you

--
Find related discussion groups here:
https://github.com/munki/munki/wiki/Discussion-Group
---
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
To post to this group, send email to munk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amanda Vasquez

unread,
Jan 26, 2016, 6:10:38 PM1/26/16
to munk...@googlegroups.com
I see a contents folder that consists of a code resources file, info.plist file, other .plist files, some .exe but no package.

You received this message because you are subscribed to a topic in the Google Groups "munki-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/munki-dev/lBM9tTPaxlY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to munki-dev+...@googlegroups.com.

Kris Lou

unread,
Jan 26, 2016, 6:37:57 PM1/26/16
to munk...@googlegroups.com

On Tue, Jan 26, 2016 at 3:04 PM, Avas <avasqu...@gmail.com> wrote:
How can I go about getting a .app into a .pkg for munki deployment. I am trying to get a SophosInstaller.app into my munki repository so that I can deploy it onto my client machines.

You can just point munkiimport to the *.app and it'll wrap it into a *.dmg and import for you.  (i.e. munkiimport /path/to/SophosInstaller.app)

That being said, the deployment process will just then copy your SophosInstaller.app to /Applications, but not necessarily install Sophos for you.  The chances are that you'll have to repackage in a some way.



Ryan Manly

unread,
Jan 27, 2016, 6:47:11 AM1/27/16
to munk...@googlegroups.com
If you need to deploy Sophos Cloud it is very easy.

Use [munki-pkg](https://github.com/munki/munki-pkg) to build a pkg that puts the SophosInstaller folder in /tmp and then run a postinstall script per:

https://www.sophos.com/en-us/support/knowledgebase/120570.aspx

Hugh Burt

unread,
Jan 27, 2016, 8:59:27 AM1/27/16
to munk...@googlegroups.com
We use Sophos with the enterprise console.  I made a pkg with Packages that contains the Sophos installer app and the Sophos Installer Components Folder.  I then use munkiiport to import the pkg into munki.  When installed by munki, the pkg extracts both the folders to /Users/Shared/ and then munki runs a postinstall script :-

<key>postinstall_script</key> 
        <string>#!/bin/sh 
/Users/Shared/sophos_installer/Sophos\ Installer.app/Contents/MacOS/tools/InstallationDeployer --install 
rm -R /Users/Shared/sophos_installer
</string> 

The components folder has the details of the enterprise server etc.



 “Weaseling out of things is important to learn. It’s what separates us from the animals.....except the weasel” ~ Homer Simpson




From: Amanda Vasquez <avasqu...@gmail.com>
To: munk...@googlegroups.com
Sent: Tuesday, 26 January 2016, 23:10
Subject: Re: [munki-dev] Getting a .app into a .pkg for munki deployment

Matt Cahill

unread,
Jan 27, 2016, 4:31:51 PM1/27/16
to munki-dev, hub...@yahoo.co.uk
We opted for repackaging too and followed Rich Trouton's excellent walk through here:

https://derflounder.wordpress.com/2015/06/17/revisiting-sophos-enterprise-anti-virus-for-mac-9-2-x-deployment/

keith....@gmail.com

unread,
Jan 28, 2016, 8:30:23 AM1/28/16
to munki-dev


On Tuesday, January 26, 2016 at 6:04:59 PM UTC-5, Avas wrote:
How can I go about getting a .app into a .pkg for munki deployment. I am trying to get a SophosInstaller.app into my munki repository so that I can deploy it onto my client machines.

Thank you

For some .apps(not Sophos), I use https://github.com/mm2270/App-Packager.
Drag and drop, upload to Munki,Casper, DP and I'm sure others

LK
Reply all
Reply to author
Forward
0 new messages