SafeDelete 1.3b Installation Instructions
-----------------------------------------
There is now a Makfile for each platform.  Before beginning you should
rename the platform Makefile.  Example:  mv Makefile.LINUX Makefile


1. Update the Makefile with the following values:

   PWD      -  *** AIX ONLY ***
	       Set this to the directory where you untar'd the safedelete
	       source files.  This is a kludhy hack since the AIX 'make'
	       command throws you into your $HOME directory and then
	       expects to find all of the files there.
	       The default is: /usr/local/packages/safedelete-1.3b

   SAFEDIR  -  The location where safedeleted files will be stored.
               This directory will have the user's $HOME prefixed to it.
               For example, if SAFEDIR is "/.Safedelete", the safedeleted
               files for user "foo" will be placed in foo's directory
               "$HOME/.Safedelete".  The directory is created the first time
               the user issues the safedelete command.
               The default is:  /.Safedelete

   MAXDAYS  -  The system-wide maximum number of days to keep safedeleted
               files.  This value is used by the safedelchk command as an
               absolute upper limit for determining when safedeleted files
               should be removed.  Values in the .Safedelrc which are 
               larger than MAXDAYS are reduced to MAXDAYS.
               The default is:  30 days

   MAXFILES  -  The maximum number of files to allow in the ncurses full
                screen list.  Files beyond this number for any user will
                not be displayed.
                The default is:  1000 files

   BINDIR  -  The directory where the commands will be installed.
              The default is:  /usr/local/bin

   MANDIR  -  The directory where the manual pages will be placed.
              The default is:  /usr/local/man 

   USH     -  This is the shell under which the "undelsh" command will run.
              Usually this is the same as your login shell.  Issue the command
		echo $SHELL
	      to find out what it is then set this to the same thing.
	      The default for Linux is: /bin/bash
	      The default for AIX, HPUX, and SunOS is: /bin/ksh

   There are also two other lines that may need updated depending on whether 
   or not you are using the ncurses interface.  If you ARE using the ncurses
   interface you'll need to uncomment the CFLAGS line that has the string
   "-I/usr/include/ncurses" in it and put a '#' in column one of the line that
   has the string "-DNO_CURSES" in it.

   If you are NOT using the ncurses interface do the opposite of the above,
   put a '#' in column one of the line that contains the string 
   "-I/usr/include/ncurses" and uncomment the line that contains the 
   string "-DNO_CURSES".


2. After updating the Makefile, save it and issue the command
     make all
   
   This will compile all the source code and create the executables.


3. Issue this command as root:
     make install

   This copies the executables and the manual pages to their proper locations.


4. Each user that has any files currently safedeleted should issue the command
     safecnvt

   to convert their .safedelete.log to the new format required by this release
   of SafeDelete.  The original .safedelete.log will be renamed to 
   .safedelete.log.old.  Those that do not have any safedeleted files can skip
   this step.


5. Anyone wishing to use the .Safedelrc file feature should copy the sample
   file Safedelrc.samp to their $HOME directory and modify it to meet their
   requirements.


6. Update either /etc/profile or each users .bash_profile with the following
   lines:
 
   alias rm='<BINDIR>/safedelete'
   alias purge='/bin/rm'
   export SAFEDAYS=xx
   safedelchk

   where xx is between 1 and MAXDAYS.  

   If you wish to use safedelete from an xterm, you'll also need to define
   the aliases in your .bashrc.

   On my Linux system I have these lines in my .bash_profile:

      alias rm='/usr/local/bin/safedelete'
      alias purge='/bin/rm'
      export SAFEDAYS=7
      safedelchk

   I also have the two alias commands in my .bashrc so my xterm sessions
   will use safedelete.


7. If you have a system with multiple users and are paranoid that someone 
   may not regularly run "safedelchk" you can set up a crontab entry as
   root to run.
