• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Installing command line tools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Installing command line tools


  • Subject: Installing command line tools
  • From: Brent Burton <email@hidden>
  • Date: Tue, 3 Feb 2009 23:36:36 -0600

Hi folks,

First off, much thanks to this list (via the archives) for already
answering many questions.

I have a few remaining questions about handling command-line utilities
in an installer. Our (internal) package includes a cocoa applicaion, a
kext, and several tools destined for /usr/local/bin. The command line
tools are evolving quickly, and we are constantly adding new ones,
which creates a maintenance load on the installer. We'd like to keep
the installer fairly independent of the specific list of command line
tools.

Right now, our automated build builds everything, and copies all into
/tmp/tools. The command line tools are archived into bintools.tar, and
the installer package contains the app, kext and bintools.tar. When
run, the installer installs bintools.tar into /tmp where a postinstall
script extracts the contents into /usr/local/bin. Whenever we create a
new tool, the packaging automatically gets it since it only handles
the tar file and not individual files.

Ideally, what I'd prefer is to remove the tar archive + script, and
add the /tmp/tools/bintools/ directory to the pmdoc. Unfortunately,
PackageMaker reads the contents of the bintools directory and adds
those files explicitly to the pmdoc. Note that it adds the contents of
the bintools directory as I am editing the pmdoc, not when the
installer package is created.

Conversely, Iceberg handles having a directory added to it in this
way, and the contents of that directory are read when the installer
package is built. Unfortunately, I can't use Iceberg in our
environment.

So:
* What is the best practice for installing command line tools into
/usr/local/bin?
* Is there a way to Iceberg behavior out of PackageMaker w.r.t. a
directory's contents?
* How hacky is our current tar archive payload? Any problems doing this?

thanks,
-Brent
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Installing command line tools
      • From: Greg Neagle <email@hidden>
    • Re: Installing command line tools
      • From: Eli Bach <email@hidden>
  • Next by Date: Re: Installing command line tools
  • Next by thread: Re: Installing command line tools
  • Index(es):
    • Date
    • Thread