Given the absence, as far as I am aware, of IPS scripts to execute 
similar functions to the pkgadd request and preinstall scripts, does 
anyone have any hints on how to migrate an SVR4 package that does the 
following at preinstall time?

- prompt for desired installation directory
- check for a couple of prerequisite user accounts: abort install if 
they are not found
- check for an existing installation of the same package:
    -- abort install if existing version is newer, else:
    -- call the existing package's "stop" operation to stop its running 
services
    -- backup some files in the existing package, to prevent them being 
overwritten by the new package

There are a few more, but that should be enough to show what I'm trying 
to achieve.  I don't have a problem with migrating SVR4 *postinstall* 
scripts, since I can put that stuff in a script to be run manually after 
installation.  However, I just don't understand how the sort of 
*preinstall* things I listed above can be done in IPS.  Surely some IPS 
packages must do something similar?  How do they do it?

--
Bill
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to