[unix-pc.general] Installable file modifications on UNIX PC

lenny@icus.islp.ny.us (Lenny Tropiano) (11/07/88)

In article <411@whizz.UUCP> bbh@whizz.UUCP (Bud Hovell) writes:
|>I have several installable programs taken from the STORE, each of which
|>specifies '/usr/lbin' as the residence for the program. I want all such
|>executables to live in '/usr/local/bin', but have not yet been able to
|>sed the changes and get the resulting +IN file to execute the installation.
|>
|>I get a message stating that the program is not installable and suggesting
|>I get another copy.
|>
|>Can anyone point me at what is required to modify these files and have
|>them still install properly? 
|> 

All the +IN suffix tells the User Agent to use the /usr/bin/Instcpio.sh shell
script for installation.  Getting the message:

	The file you aer trying to install cannot be used.
	Please arrange for another copy.

just means that a cpio error has occurred.  Yes, the nasty 
"Out of phase -- get help" message.  To modify the installation procedure
for an installable disk set would mean to do the following.

# mkdir tmpdir
# cd tmpdir
# cpio -icBvdum < FILE+IN
Insert all the floppies in order .. This will place all the files
in the "tmpdir" that you just created.

The files of importance in the Installation procedure are:

Install		(a shell script used to install the package)
Remove		(a shell script used to remove the package)
Size		(a file containing the number of blocks need to install)
Files		(a list of all the files to remove -- used by Remove script)
Name		(name of the package to be placed in /usr/installed/CONTENTS)

After you have the package loaded on your hard disk you can "vi" the 
Install and Remove scripts (and Files) to change the 
/usr/lbin references to /usr/local/bin.  Then after you are done do this:

# find . -print | cpio -ocvB > ../FILE2+IN
# cd ..
# rm -rf tmpdir

Now you have a new installable file (FILE2+IN) that has your modifications.
Always keep the original installable file until you are sure your
modifications work!   For more hints on how installations go examine
the /usr/bin/Instcpio.sh.

Enjoy!

-Lenny
-- 
Lenny Tropiano             ICUS Software Systems         [w] +1 (516) 582-5525
lenny@icus.islp.ny.us      Telex; 154232428 ICUS         [h] +1 (516) 968-8576
{talcott,decuac,boulder,hombre,pacbell,sbcs}!icus!lenny  attmail!icus!lenny
        ICUS Software Systems -- PO Box 1; Islip Terrace, NY  11752