Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use logGen for re-packaging OS X installers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use logGen for re-packaging OS X installers
Authored by: bluehz on Aug 18, '04 12:56:14AM

One technique I have been using for a while now if compiling my own stuff is the following (let assume we have downloaded xyz_src.tgz and we want to compile and then create an OS X pkg from it):

tar -zxvf xzy_src.tgz
cd xyz_src.tgz
mkdir pkgbuild
./configure
make
sudo make install DESTDIR=$cwd/pkgbuild

The DESTDIR cause all the installed elements to be place into the pkgbuild dir you created in their proper hierarchy (e.g. usr/local/bin, usr/share/man/man3, etc). Then to build a pkg you simply use the hierarchy you created in the pkgbuild as your source for PackageMaker. The DESTDIR is recognized by about 75% of the stuff I build, but some of the source code just will not build into a different directory. Works great for the majority of stuff though.



[ Reply to This | # ]