Re: [Pythonmac-SIG] Can someone help me reverse engineer this installer?

2007-07-10 Thread Brian Ray

On Jul 3, 2007, at 9:19 AM, skip at pobox.com wrote:

 A long time ago Sam Thorne created a Mac installer for SpamBayes.   
 It's
 referenced here:

 http://entrian.com/sbwiki/MacOSXPackage

 and source is available here:

 http://www.s-j-t.co.uk/SpamBayes/SpamBayesPkg%200.5.zip

This contains pmsp which should be upgraded to a pmproj.  
PackageMaker.app will do this for you.

The package maker project is fairly self-explanatory.  The Contents  
Root should probably be changed to a relative path.

One thing to take in consideration is that there is a postflight  
and postinstall scripts that get ran at the appropriate time during  
the install. They will may be found in the SpamBayesPkg 0.5/ 
SpamBayes/Package_resources directory. Installer.app knows to run  
these because of how they are named.

The install simply copies the files from what is found in SpamBayes/ 
Package_contents/  to /. So the three big items that get installed  
are:

/Library/StartupItems/SpamBayes
/Library/Python/2.3
/Library/SpamBayes/


The postinstall script adds SPAMBAYES=-YES- to the /etc/hostconfig

The postflight script starts SpamBayes (simulating the way this will  
be done during boot using SystemStarter) and opens the url http:// 
localhost:8880, presumably where SpamBayes runs..




 The binary package here:

 http://www.s-j-t.co.uk/SpamBayes/SpamBayesPackage.pkg.tgz

 won't untar for me.  It complains about a lone zero block at 678.

I get the same error. Must be corrupt.



Brian Ray
[EMAIL PROTECTED]
http://kazavoo.com/blog


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Can someone help me reverse engineer this installer?

2007-07-03 Thread skip
A long time ago Sam Thorne created a Mac installer for SpamBayes.  It's
referenced here:

http://entrian.com/sbwiki/MacOSXPackage

and source is available here:

http://www.s-j-t.co.uk/SpamBayes/SpamBayesPkg%200.5.zip

The binary package here:

http://www.s-j-t.co.uk/SpamBayes/SpamBayesPackage.pkg.tgz

won't untar for me.  It complains about a lone zero block at 678.

I'd like to start generating Mac installer packages for the normal SpamBayes
distribution, but for that I need some help getting started (having never
done any Mac package creation before).  I sent email to the author asking
about how he created the one he did but haven't heard back from him (maybe
he's just on holiday).

Can one of the MacPython experts here deduce how the above package was
generated and suggest how to proceed?  I don't even know what the best
package creator is on the Mac for Python-based apps.

Thx,

Skip Montanaro

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig