• 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
Re: Installing command line tools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing command line tools


  • Subject: Re: Installing command line tools
  • From: Greg Neagle <email@hidden>
  • Date: Thu, 5 Feb 2009 10:28:40 -0800


On Feb 3, 2009, at 9:36 PM, Brent Burton wrote:

* What is the best practice for installing command line tools into
/usr/local/bin?

Include them in the Archive.pax.gz and Archive.bom just like any other file you want to install.



* Is there a way to Iceberg behavior out of PackageMaker w.r.t. a directory's contents?

Sure. Bypass the GUI, don't use a pmdoc, craft your resources, and call the command-line version of packagemaker. This can be part of your automated build process. A snippet:


${INSTALL} -m 0644 -c OS_X/License.rtf ${PKGRSRCDIR}
${INSTALL} -m 0644 -c OS_X/ReadMe.rtf ${PKGRSRCDIR}
${INSTALL} -m 0644 -c OS_X/Welcome.rtf ${PKGRSRCDIR}
${INSTALL} -m 0644 -c OS_X/background.tiff ${PKGRSRCDIR}
sudo chown -R root:wheel ${PKGDIR}
sudo chgrp admin ${PKGDIR}
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/ packagemaker \
-build -p ${PKGSRCDIR}/../${PKGNAME}.pkg \
-f ${PKGSRCDIR}/${PKGDIR} \
-r ${PKGSRCDIR}/${PKGRSRCDIR} \
-i ${PKGSRCDIR}/tmp/OS_X/Info.plist \
-d ${PKGSRCDIR}/tmp/OS_X/Description.plist




* How hacky is our current tar archive payload? Any problems doing this?

It's a hack. As a system administrator, I want package receipts - specifically bom files, to tell what is installed. I don't want to have to read post-xxx scripts to figure out what other stuff got installed. We'll NEVER have a working uninstall capability as long as developers use post-XXX scripts to install stuff. Your bom would mention the tar archive (which no longer exists on the target) and neglect to mention the bin tools (which now are on the target). No uninstaller could ever make sense of this.


-Greg

_______________________________________________
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: Brent Burton <email@hidden>
References: 
 >Installing command line tools (From: Brent Burton <email@hidden>)

  • Prev by Date: commandline Installer Creation doesn't honor Resources
  • Next by Date: Re: Can Packagemaker create installer with content files outside the bundle?
  • Previous by thread: Re: Installing command line tools
  • Next by thread: Re: Installing command line tools
  • Index(es):
    • Date
    • Thread