Wallingford, Ted
2004-Jul-19 10:17 UTC
[Asterisk-Users] Mac OS X installer: missing files fix
I've paraphrased the OS X installer developer's comments: there's a bug in Installer that is preventing the archive from working right. Below is the fix for the problem. First (obviously) run the installer. Since the executables are in the archive.pax.gz file in the installer package, first do a "show package contents" on the package file, then unstuff the enclosed archive.pax.gz file to the desktop... Then open up a shell, CD to the desktop, and run the following: cat Archive.pax | pax -r sudo cp -R usr/* /usr Anyway, hope this helps the Mac folks on the list. Thanks Benjamin for your efforts in this area. -----Original Message----- From: Wallingford, Ted [mailto:ted@indexc.com] Sent: Monday, July 19, 2004 11:28 AM To: 'asterisk-users@lists.digium.com' Subject: RE: [Asterisk-Users] Mac OS X installer for Asterisk Benjamin, Is this package intended to mirror the directory structure of the linux builds? If so, I may have an issue: While /var/lib/asterisk is properly in place after running the installer, /usr/sbin/asterisk is not. I'm running on OS X 10.3.4 and downloaded the package on Sunday afternoon, if that's any help. Did I miss something? Thanks, Ted Wallingford -----Original Message----- From: Sunrise Ltd [mailto:stsltdtyo@yahoo.co.jp] Sent: Saturday, July 17, 2004 2:09 PM To: astusr Subject: [Asterisk-Users] Mac OS X installer for Asterisk Hi I have created a Mac OS X installer package for installing Asterisk on OSX ver 10.2 and 10.3 Anyone who'd like to give this a try, please download the installer package from here ... http://www.astmasters.net/stuff/Asterisk.pkg.tgz to install Asterisk on OSX just double click the package file. please send any feedback to benjamin (at) sunrise (dash) tel (dot) com NOTE: this is a fairly old build but it's rock solid. We have run it on OSX Server 10.2.8 since October last year and it's been going like a Swiss clockwork. Rich Murphey has promised to fix the Makefile for the most recent CVS so it will build on OSX again. Once this is done, we'll make another installer package for the new version. Also, I am still working on extending the install package so that users can choose whether or not they want to install the sources. Anybody interested in this, please bare with me a few more days. regards benjamin -- Sunrise Telephone Systems Ltd 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya, Shibuya-ku, Tokyo, Japan __________________________________________________ Do You Yahoo!? http://bb.yahoo.co.jp/ _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- A non-text attachment was scrubbed... Name: Wallingford, Ted.vcf Type: application/octet-stream Size: 128 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040719/d955d415/WallingfordTed.obj
Wallingford, Ted wrote:>I've paraphrased the OS X installer developer's comments:there's a>bug in Installer that is preventing the archive fromworking right.>Below is the fix for the problem.Apple may have a reputation for attention to detail and perfectionism, but their PackageMaker utillity -- which is what you use to create those install packages -- does most definitely NOT share any of these virtues. It's one of the worst examples of sloppiness I have seen. PackageMaker simply refuses to include files targeted at /usr (and below) into the bills of materials file (Archive.bom). The files are all there, nicely shrinkwrapped into the archive itself (Archive.pax.gz), but no matter what you do, they won't show up in the BOM file. As a result, the installer will not install but ignore them. I am now going to change the target to /private/tmp and then run a postinstall script (luckily this feature actually works) to move the files into /usr. I will also provide a patching utility for those who have been hit by this. Folks, I am very sorry about the inconvenience. I have tested the installer on various systems beforehand, but I must have missed to wipe everything at some point. My sincerest apologies.>First (obviously) run the installer. Since theexecutables are in the>archive.pax.gz file in the installer package, first do a"show package>contents" on the package file, then unstuff the enclosed >archive.pax.gz file to the desktop... Then open up ashell,>CD to the desktop, and run the following: > > cat Archive.pax | pax -r > sudo cp -R usr/* /usrThanks for your follow up. Yes, this will work, but I guess that it is a bit too crude for many Mac folks, they like to just click on things to make stuff work. That was the whole point of creating the install package in the first place. I have failed the Mac folks miserably in this regard. So, please hang on there for a little while, I'll get back to you with a new install package and a patching utility. Meanwhile, we've released a few clickable AppleScript script apps for basic control of Asterisk (start/stop/reload/show version). You can download them (as a zip archive) from http:/www.astmasters.net/stuff/AsteriskApplescripts.zip regards benjamin -- Sunrise Telephone Systems Ltd 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya, Shibuya-ku, Tokyo, Japan __________________________________________________ Do You Yahoo!? http://bb.yahoo.co.jp/
Wallingford, Ted
2004-Jul-19 13:59 UTC
[Asterisk-Users] Mac OS X installer: missing files fix
Benjamin, Did you try using the post-install script to do the cat and copy operations in lieu of the Mac package installer doing it? The package installer will run any shell command you put in the post-install script? I once used it to overcome a similar problem with PostgreSQL on Panther. That might do the trick. I am going to try out your * AppleScripts as soon as possible! Thanks, Ted -----Original Message----- From: Sunrise Ltd [mailto:stsltdtyo@yahoo.co.jp] Sent: Monday, July 19, 2004 3:39 PM To: astusr Subject: Re: [Asterisk-Users] Mac OS X installer: missing files fix Wallingford, Ted wrote:>I've paraphrased the OS X installer developer's comments:there's a>bug in Installer that is preventing the archive fromworking right.>Below is the fix for the problem.Apple may have a reputation for attention to detail and perfectionism, but their PackageMaker utillity -- which is what you use to create those install packages -- does most definitely NOT share any of these virtues. It's one of the worst examples of sloppiness I have seen. PackageMaker simply refuses to include files targeted at /usr (and below) into the bills of materials file (Archive.bom). The files are all there, nicely shrinkwrapped into the archive itself (Archive.pax.gz), but no matter what you do, they won't show up in the BOM file. As a result, the installer will not install but ignore them. I am now going to change the target to /private/tmp and then run a postinstall script (luckily this feature actually works) to move the files into /usr. I will also provide a patching utility for those who have been hit by this. Folks, I am very sorry about the inconvenience. I have tested the installer on various systems beforehand, but I must have missed to wipe everything at some point. My sincerest apologies.>First (obviously) run the installer. Since theexecutables are in the>archive.pax.gz file in the installer package, first do a"show package>contents" on the package file, then unstuff the enclosed archive.pax.gz >file to the desktop... Then open up ashell,>CD to the desktop, and run the following: > > cat Archive.pax | pax -r > sudo cp -R usr/* /usrThanks for your follow up. Yes, this will work, but I guess that it is a bit too crude for many Mac folks, they like to just click on things to make stuff work. That was the whole point of creating the install package in the first place. I have failed the Mac folks miserably in this regard. So, please hang on there for a little while, I'll get back to you with a new install package and a patching utility. Meanwhile, we've released a few clickable AppleScript script apps for basic control of Asterisk (start/stop/reload/show version). You can download them (as a zip archive) from http:/www.astmasters.net/stuff/AsteriskApplescripts.zip regards benjamin -- Sunrise Telephone Systems Ltd 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya, Shibuya-ku, Tokyo, Japan __________________________________________________ Do You Yahoo!? http://bb.yahoo.co.jp/ _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- A non-text attachment was scrubbed... Name: Wallingford, Ted.vcf Type: application/octet-stream Size: 128 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040719/45a483f5/WallingfordTed.obj