New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

How do I create a package


Post Reply New Thread Subscribe

 
Thread Tools
aecaudel

 
Member Since: Aug 05, 2008
Location: Beaumont, TX
Posts: 38
aecaudel is on a distinguished road

aecaudel is offline
First of all, let me say I'm aware of PackageManager. But as best as I can tell that app is for creating an application. The type of package I want to create will simply hold files. VMWare uses these as do some DVD creators.
QUOTE Thanks
MacsWork

 
MacsWork's Avatar
 
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,150
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
You may have heard of PackageManager, but have you heard of Google?

Google
QUOTE Thanks
aecaudel

 
Member Since: Aug 05, 2008
Location: Beaumont, TX
Posts: 38
aecaudel is on a distinguished road

aecaudel is offline
OF COURSE! Most of the results referred to PackageManager. No Help.
QUOTE Thanks
Slydude

 
Slydude's Avatar
 
Member Since: Nov 16, 2009
Location: North Louisiana, USA
Posts: 6,845
Slydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant future
Mac Specs: 2.8 GHz MacBook Pro 10.8,3 8 GB mem, 2.66 GHz Mac Pro - Dead, iPhone 4

Slydude is offline
What are you trying to distribute? Could you do it as a zip archive?

Sylvester Roque Former Contributing Editor About This Particular Macintosh

"Got Time to breathe. You got time for music." Denver Pyle as Briscoe Darling
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
You'll need to be more specific especially if a zip archive is insufficient. What are you trying to accomplish? What kind of files are you working with? There are some other compression formats available to you beyond zip (tar, gunzip, bunzip2) if an archive is needed and zip doesn't work.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
MacsWork

 
MacsWork's Avatar
 
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,150
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
How to Programmatically Create a Mac OS X Package (from the command-line or a shell script).

Note that any lines ending with a backslash should be one line; they've been broken here for a narrower display width.
Set up the files you want to package in a folder called dstroot:
% mkdir ./dstroot
% mkdir -p ./dstroot/usr/local/bin/ \
dstroot/usr/local/share/man/man1/
% install -m 755 myprog ./dstroot/usr/local/bin/
% install -m 644 myprog.1 \
./dstroot/usr/local/share/man/man1/
Create a package info file (this has nothing to do with Fink info files). Either copy one from another .pkg to use as a template, or see this pkg info file from osxutils.

Make the package:
% find dstroot -name .DS_Store -delete
% sudo chown -R root:staff dstroot
% package dstroot mypackage-0.1.info -d . -ignoreDSStore
% rm -f 1
% install -m 644 README.txt \
mypackage-0.1.pkg/Contents/Resources/ReadMe.txt
% install -m 644 LICENSE.txt \
mypackage-0.1.pkg/Contents/Resources/License.txt
% sudo chown -R root:staff \
mypackage-0.1.pkg/Contents/Resource
% tar -h mypackage-0.1.pkg -cf mypackage-0.1.pkg.tar
% gzip -9 mypackage-0.1.pkg.tar
See an example Makefile from the osxutils package which builds a .pkg from the command line at SourceForge.
QUOTE Thanks

Post Reply New Thread Subscribe


« Missing option on my Mac!!! | iSync issue Leopard to Nokia E72 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Possible to create multiple users but keep same set up?multiple logins under one user jlcamp7 OS X - Operating System 4 08-14-2009 05:22 AM
How to create an iso image from a DVD disk on MacOS yinglcs OS X - Apps and Games 1 07-25-2009 09:20 PM
Create a new mailbox on an exchange server from entourage? edokid Switcher Hangout 0 06-19-2005 02:31 AM

All times are GMT -4. The time now is 12:56 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?