home *** CD-ROM | disk | FTP | other *** search
- ; -----------------------------------------------------------------
- ; install.mnu
- ; -----------
- ;
- ; An easy way to install or update the SNUUPM package.
- ; Based on ideas from Eberhard Lisse (el@lisse.na).
- ;
- ; Most of the environment variables are set up in INSTALL.BAT
- ; The SNU_FULL environment variable is passed on to the SNUUPM.BAT
- ; file, for use by the MAIN.MNU of SNUUPM.
- ;
- ; $Id: snuupmxx.mnu 1.1 1995/04/22 21:53:16 mlawrie Exp $
- ; $Log: snuupmxx.mnu $
- ; Revision 1.1 1995/04/22 21:53:16 mlawrie
- ; Initial revision
- ;
- ; -----------------------------------------------------------------
-
- #header message = SNUUPM Installation v%snu_inst_ver% being done on
- #f10 = Exit from Installation Menu
- #exit
- #display,0,3
- "INSTALLATION VALUES:-"
- #display,0,5
- "Hostname '%snu_host%.%snu_dom%', connecting to '%snu_mserv%'"
- #display,0,7
- "at '%snu_phone%', logging in as '%snu_login%', with"
- #display,0,9
- "password '%snu_passwd%', on behalf of the"
- #display,0,11
- "organisation '%snu_org%'."
- #display,0,13
- "The '%snu_mdm%' modem operates at"
- #display,0,15
- "pc-to-modem baud rate '%snu_baud%'"
-
- #if %snu_passwd%==XxXxXxXx
- #display,0,21,2
- "Your PASSWORD needs to be set correctly"
- #endif
-
- %Installation Menu,47,11
- First configure
- Use the Default Values
- call instdef.bat
- #if %snu_sav%
- Load the Previous Setup
- call %sndrive%\usr\lib\snuupm\instsave.bat
- #endif
- Manual Setup (incl PASSWORD)
- %System Setup (<esc> returns)
-
- then toggle
- #if %snu_full%
- Option: both Mail and News
- set snu_full=
- #else
- Option: Mail-only
- set snu_full=y
- #endif
-
- and lastly, Install
-
- INSTALL (use F10 to Exit)
-
- rem
- echo Installing the SNUUPM control files.
- rem
- if exist %snu_p1%\hostpath.bak del %snu_p1%\hostpath.bak>%nul%
- if exist %snu_p1%\hostpath ren %snu_p1%\hostpath hostpath.bak>%nul%
- if exist %snu_p2%\aliases.bak del %snu_p2%\aliases.bak>%nul%
- if exist %snu_p2%\aliases.txt ren %snu_p2%\aliases.txt aliases.bak>%nul%
- if exist %snu_p2%\utl\mainmnu.bak del %snu_p2%\utl\mainmnu.bak>%nul%
- if exist %snu_p2%\utl\main.mnu ren %snu_p2%\utl\main.mnu mainmnu.bak>%nul%
- if exist %snu_p2%\utl\mainbat.bak del %snu_p2%\utl\mainbat.bak>%nul%
- if exist %snu_p2%\utl\main.bat ren %snu_p2%\utl\main.bat mainbat.bak>%nul%
- pkunzip -o -d snuupm.zip %sndrive%\ @%snu_pmfil%>%nul%
-
- rem ----SNUUPM.BAT-----------------------------------------------
- set snu_file=%sndrive%\usr\lib\snuupm\snuupm.bat
- echo Creating %snu_file%
- echo @echo off>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo rem %%sndrive%%\usr\lib\snuupm\snuupm.bat>>%snu_file%
- echo rem>>%snu_file%
- echo rem Sets the environment for a user of snuupm,>>%snu_file%
- echo rem and invokes the main menu>>%snu_file%
- echo rem Author: Mike Lawrie (mlawrie@apies.frd.ac.za), Aug 1994>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo.>>%snu_file%
- echo set snu_full=%snu_full%>>%snu_file%
- echo set snu_vers=%snu_vers%>>%snu_file%
- echo set snu_hd=%snu_host%.%snu_dom%>>%snu_file%
- echo.>>%snu_file%
- echo if "%%1"=="" goto pmuser>>%snu_file%
- echo set snu_usr=%%1>>%snu_file%
- echo goto gotuser>>%snu_file%
- echo.>>%snu_file%
- echo :pmuser>>%snu_file%
- echo if "%%pmuser%%" == "" goto nouser>>%snu_file%
- echo set snu_usr=%%pmuser%%>>%snu_file%
- echo goto gotuser>>%snu_file%
- echo.>>%snu_file%
- echo :nouser>>%snu_file%
- echo set askenv=>>%snu_file%
- echo %%sndrive%%\usr\lib\snuupm\askenv Enter your SNUUPM user-id:->>%snu_file%
- echo if "%%askenv%%"=="" goto exit>>%snu_file%
- echo set pmuser=%%askenv%%>>%snu_file%
- echo set askenv=>>%snu_file%
- echo goto pmuser>>%snu_file%
- echo.>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo rem Save the current environment (Go Green!)>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo :gotuser>>%snu_file%
- echo set uupcusrrx=%%UUPCUSRRC%%>>%snu_file%
- echo set snewsrx=%%SNEWSRC%%>>%snu_file%
- echo set homex=%%HOME%%>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo rem Set up the files for the USER-ID>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo set uupcusrrc=%%sndrive%%\usr\%%snu_usr%%\%%snu_usr%%.rc>>%snu_file%
- echo set snewsrc=%%sndrive%%\usr\%%snu_usr%%\snews.rc>>%snu_file%
- echo set pmuserx=%%PMUSER%%>>%snu_file%
- echo set home=%%sndrive%%\usr\%%snu_usr%%>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo rem Verify that the user's .RC files exist>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo if not exist %%UUPCUSRRC%% goto error1>>%snu_file%
- echo if not exist %%SNEWSRC%% goto error2>>%snu_file%
- echo set pmuser=%%snu_usr%%>>%snu_file%
- echo %%comspec%% /e:2048 /c%%sndrive%%\usr\lib\snuupm\utl\main.bat>>%snu_file%
- echo goto ends>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo rem Come here to issue an error message>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo :error1>>%snu_file%
- echo echo The file "%%UUPCUSRRC%%" doesn't exist.>>%snu_file%
- echo goto err>>%snu_file%
- echo :error2>>%snu_file%
- echo echo The file "%%SNEWSRC%%" doesn't exist.>>%snu_file%
- echo goto err>>%snu_file%
- echo :err>>%snu_file%
- echo echo Please check to see if "%%SNU_USR%%" is a valid user.>>%snu_file%
- echo pause>>%snu_file%
- echo goto ends>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo rem Reset variables and exit>>%snu_file%
- echo rem ----------------------------->>%snu_file%
- echo :ends>>%snu_file%
- echo set uupcusrrc=%%UUPCUSRRX%%>>%snu_file%
- echo set uupcusrrx=>>%snu_file%
- echo set snewsrc=%%SNEWSRX%%>>%snu_file%
- echo set snewsrx=>>%snu_file%
- echo set pmuser=%%PMUSERX%%>>%snu_file%
- echo set pmuserx=>>%snu_file%
- echo set home=%%HOMEX%%>>%snu_file%
- echo set homex=>>%snu_file%
- echo set askenv=>>%snu_file%
- echo set snu_usr=>>%snu_file%
- echo set snu_hd=>>%snu_file%
- echo :exit>>%snu_file%
- echo rem ----ends--------------------->>%snu_file%
- if "%debug%"=="" goto no_dbg1
- if "%editor%"=="" goto no_dbg1
- if exist %editor% %editor% %snu_file%
- :no_dbg1
- set snu_file=
-
-
- rem ----CALLOUT.BAT-----------------------------------------------
- set snu_file=%sndrive%\usr\lib\snuupm\callout.bat
- echo Creating %snu_file%
- echo @echo off>%snu_file%
- echo rem ---------------------------------------------------------->>%snu_file%
- echo rem %sndrive%\usr\lib\snuupm\callout.bat>>%snu_file%
- echo rem ---------------------------------------------------------->>%snu_file%
- echo %sndrive%\usr\lib\snuupm\uucico -s %snu_mserv%>>%snu_file%
- echo if errorlevel 1 goto abort>>%snu_file%
- echo %sndrive%\usr\lib\snuupm\uuxqt>>%snu_file%
- echo if errorlevel 1 goto abort>>%snu_file%
- echo rem ---------------------------------------------------------->>%snu_file%
- echo %sndrive%\usr\lib\snuupm\unbatch>>%snu_file%
- echo if errorlevel 1 goto abort>>%snu_file%
- echo rem ---------------------------------------------------------->>%snu_file%
- echo rem Move incoming mail to be accessible to PMAIL>>%snu_file%
- echo rem>>%snu_file%
- echo call %sndrive%\usr\lib\snuupm\burst>>%snu_file%
- echo goto ends>>%snu_file%
- echo rem ---------------------------------------------------------->>%snu_file%
- echo :abort>>%snu_file%
- echo pause CALLOUT.BAT run failed>>%snu_file%
- echo goto ends>>%snu_file%
- echo rem ---------------------------------------------------------->>%snu_file%
- echo :ends>>%snu_file%
- echo rem ----ends-------------------------------------------------->>%snu_file%
- if "%debug%"=="" goto no_dbg2
- if "%editor%"=="" goto no_dbg2
- if exist %editor% %editor% %snu_file%
- :no_dbg2
- set snu_file=
-
-
- echo Making the uuPC directories
- if not exist %sndrive%\usr\spool\nul md %sndrive%\usr\spool>%nul%
- if not exist %sndrive%\usr\spool\archive\nul md %sndrive%\usr\spool\archive>%nul%
- if not exist %sndrive%\usr\spool\mail\nul md %sndrive%\usr\spool\mail>%nul%
- if not exist %sndrive%\usr\spool\news\nul md %sndrive%\usr\spool\news>%nul%
- if not exist %sndrive%\usr\spool\news\incoming\nul md %sndrive%\usr\spool\news\incoming>%nul%
- if not exist %sndrive%\usr\spool\public\nul md %sndrive%\usr\spool\public>%nul%
- if not exist %sndrive%\usr\root\mail\nul md %sndrive%\usr\root\mail>%nul%
- if not exist %sndrive%\tmp\nul md %sndrive%\tmp>%nul%
-
- rem
- echo Making the HISTORY file
- rem
- echo x>%sndrive%\usr\spool\news\history
-
- rem
- echo Extracting the uuPC programs
- rem %snu_p2% is the path %sndrive%\usr\lib\snuupm
- rem %snu_fad% is the UUPC .ZIP file containing ALIASES.TXT
- rem %snu_fd1% is the UUPC .ZIP file containing MAIL.EXE, RMAIL.EXE
- rem UUCICO.EXE and UUXQT.EXE
- rem %snu_fd2% is the UUPC .ZIP file containing UUX.COM, UUCP.COM
- rem and UUSTAT.COM
- rem
- pkunzip %snu_fad% %snu_p2% aliases.txt>%nul%
- if not errorlevel 0 goto uupc1
-
- if exist %snu_p2%\mail.exe del %snu_p2%\mail.exe>%nul%
- if exist %snu_p2%\rmail.exe del %snu_p2%\rmail.exe>%nul%
- if exist %snu_p2%\uucico.exe del %snu_p2%\uucico.exe>%nul%
- if exist %snu_p2%\uuxqt.exe del %snu_p2%\uuxqt.exe>%nul%
- pkunzip %snu_fd1% %snu_p2% mail.exe rmail.exe uucico.exe uuxqt.exe>%nul%
- if not errorlevel 0 goto uupc1
-
- if exist %snu_p2%\uux.com del %snu_p2%\uux.com>%nul%
- if exist %snu_p2%\uucp.com del %snu_p2%\uucp.com>%nul%
- if exist %snu_p2%\uucp.exe del %snu_p2%\uucp.exe>%nul%
- if exist %snu_p2%\uustat.com del %snu_p2%\uustat.com>%nul%
- pkunzip %snu_fd2% %snu_p2% uux.com uucp.exe uustat.com>%nul%
- if not errorlevel 0 goto uupc1
-
- goto uupc2
- :uupc1
- echo.
- echo.
- echo Some files have failed to unzip. Maybe this is because you are using
- echo a version of pkunzip earlier than 2.04g.
- echo.
- pause
- :uupc2
-
-
- rem ----SYSTEMS-----------------------------------------------
- set snu_file=%sndrive%\etc\uupc\systems
- echo Creating %snu_file%
- rem
- rem Preserving what we can of the existing file
- rem
- if not exist %snu_file% goto syst1
- echo %tab% Copying the existing %snu_file% into %snu_file%.BAK
- if exist %snu_file%.bak del %snu_file%.bak>%nul%
- ren %snu_file% systems.bak>%nul%
- :syst1
- rem
- rem Create a .$$$ file that excludes unwanted line(s)
- rem This could be an empty or a non-existent file, so what?
- rem
- if exist %snu_file%.$$$ del %snu_file%.$$$
- if not exist %snu_file%.bak goto syst2
- type %snu_file%.bak | find /v "%snu_mserv%">%snu_file%.$$$
- :syst2
- rem
- rem Append new lines
- rem
- echo %snu_mserv% Any modem %snu_baud% %snu_phone% g ogin:--ogin: %snu_login% word: %snu_passwd%>>%snu_file%.$$$
- rem
- rem Rename .$$$ file to be the required file
- rem
- ren %snu_file%.$$$ systems>%nul%
-
- if "%debug%"=="" goto no_dbg3
- if "%editor%"=="" goto no_dbg3
- if exist %editor% %editor% %snu_file%
- :no_dbg3
- set snu_file=
-
-
- rem ----PASSWD-----------------------------------------------
- set snu_file=%sndrive%\etc\uupc\passwd
- echo Creating %snu_file%
- rem
- rem Preserving what we can of the existing file
- rem
- if not exist %snu_file% goto pass1
- echo %tab% Copying the existing %snu_file% into %snu_file%.BAK
- if exist %snu_file%.bak del %snu_file%.bak>%nul%
- ren %snu_file% passwd.bak>%nul%
- :pass1
- rem
- rem Create a .$$$ file that excludes unwanted line(s). We need
- rem to exclude the lines with "root" and with the mailserver.
- rem This could result in an empty or a non-existent file, so what?
- rem
- if exist %snu_file%.$$1 del %snu_file%.$$1
- if not exist %snu_file%.bak goto pass2
- type %snu_file%.bak | find /v "%snu_mserv%">%snu_file%.$$1
- if exist %snu_file%.$$$ del %snu_file%.$$$
- if not exist %snu_file%.$$1 goto pass2
- type %snu_file%.$$1 | find /v "root">%snu_file%.$$$
- :pass2
- rem
- rem Append new lines
- rem
- echo %snu_mserv%:*:::%snu_mserv% mailserver>>%snu_file%.$$$
- echo root:*:::Super User:%sndrive%\usr\root>>%snu_file%.$$$
- rem
- rem Rename .$$$ file to be the required file
- rem
- ren %snu_file%.$$$ passwd>%nul%
- if exist %snu_file%.$$1 del %snu_file%.$$1
-
- if "%debug%"=="" goto no_dbg4
- if "%editor%"=="" goto no_dbg4
- if exist %editor% %editor% %snu_file%
- :no_dbg4
- set snu_file=
-
-
- rem ----UUPC.RC-----------------------------------------------
- set snu_file=%sndrive%\etc\uupc\uupc
- echo Creating %snu_file%.rc
-
- if not exist %snu_file%.rc goto uupcrc1
- echo %tab% Copying the existing %snu_file%.rc into %snu_file%.BAK
- if exist %snu_file%.bak del %snu_file%.bak>%nul%
- copy %snu_file%.rc %snu_file%.bak>%nul%
- :uupcrc1
-
- echo postmaster=root>%snu_file%.rc
- echo confdir=%sndrive%\etc\uupc>>%snu_file%.rc
- echo maildir=%sndrive%\usr\spool\mail>>%snu_file%.rc
- echo newsdir=%sndrive%\usr\spool\news\incoming>>%snu_file%.rc
- echo spooldir=%sndrive%\usr\spool>>%snu_file%.rc
- echo pubdir=%sndrive%\usr\spool\public>>%snu_file%.rc
- echo tempdir=%sndrive%\tmp>>%snu_file%.rc
- echo rmail=%sndrive%\usr\lib\snuupm\rmail.exe>>%snu_file%.rc
- echo rnews=%sndrive%\usr\lib\snuupm\rnews.exe>>%snu_file%.rc
- echo options=nobang>>%snu_file%.rc
- echo options=multiqueue>>%snu_file%.rc
- echo options=snews>>%snu_file%.rc
- echo options=collect>>%snu_file%.rc
- echo uncompress=%sndrive%\usr\lib\snuupm\compress -d %%s>>%snu_file%.rc
- echo archivedir=%sndrive%\usr\spool\archive>>%snu_file%.rc
- echo inmodem=modem>>%snu_file%.rc
- echo mailserv=%snu_mserv%>>%snu_file%.rc
- echo organization=%snu_org%>>%snu_file%.rc
- echo banner=banner>>%snu_file%.rc
- echo nodename=%snu_host%>>%snu_file%.rc
- echo domain=%snu_host%.%snu_dom%>>%snu_file%.rc
- if "%debug%"=="" goto no_dbg5
- if "%editor%"=="" goto no_dbg5
- if exist %editor% %editor% %snu_file%.rc
- :no_dbg5
- set snu_file=
-
- rem ----PERMISSN-----------------------------------------------
- rem There is a change in format of this file as from SNUUPM22.
- rem If SNUUPM22 has already been installed, then there should
- rem be a /usr/lib/snuupm/instsave.bat file in existence. Use
- rem this as the criteria to try to preserve the information in
- rem the /etc/uupc/permissn file.
- rem
- set snu_file=%sndrive%\etc\uupc\permissn
- echo Creating %snu_file%
- if not exist %snu_file% goto perm1
- rem
- rem Preserving what we can of the existing file
- rem
- echo %tab% Copying the existing %snu_file% into %snu_file%.BAK
- if exist %snu_file%.bak del %snu_file%.bak>%nul%
- ren %snu_file% permissn.bak>%nul%
- :perm1
- rem
- rem Create a .$$$ file that excludes unwanted line(s)
- rem This could be an empty or a non-existent file, so what?
- rem
- if exist %snu_file%.$$$ del %snu_file%.$$$
- if not exist %snu_file%.bak goto perm2
- if not exist %sndrive%/usr/lib/snuupm/instsave.bat goto perm2
- type %snu_file%.bak | find /v "%snu_mserv%">%snu_file%.$$$
- :perm2
- rem
- rem Append new lines
- rem
- echo LOGNAME=%snu_mserv% SENDFILES=yes REQUEST=yes COMMANDS=rmail:rnews:uucp \>>%snu_file%.$$$
- echo %tab% VALIDATE=%snu_mserv% READ=%sndrive%/usr/spool/public \>>%snu_file%.$$$
- echo %tab% MACHINE=%snu_mserv% WRITE=%sndrive%/usr/spool/public>>%snu_file%.$$$
- rem
- rem Rename .$$$ file to be the required file
- rem
- ren %snu_file%.$$$ permissn>%nul%
-
- if "%debug%"=="" goto no_dbg9
- if "%editor%"=="" goto no_dbg9
- if exist %editor% %editor% %snu_file%
- :no_dbg9
- set snu_file=
-
-
- rem ----ROOT-----------------------------------------------
- set snu_file=%sndrive%\usr\root\root.rc
- echo Creating the user called "root"
- echo Name=Super User>%snu_file%
- echo Mailbox=root>>%snu_file%
- echo Home=%sndrive%\usr\root>>%snu_file%
- echo Signature=%sndrive%\usr\root\mbox\inetsig.pms>>%snu_file%
- echo Editor=%editor% %%s>>%snu_file%
- echo Aliases=%sndrive%\usr\root\aliases.txt>>%snu_file%
- if "%debug%"=="" goto no_dbg6
- if "%editor%"=="" goto no_dbg6
- if exist %editor% %editor% %snu_file%
- :no_dbg6
- set snu_file=%sndrive%\usr\root\snews.rc
- echo Name=Super User>%snu_file%
- echo Mailbox=root>>%snu_file%
- echo Home=%sndrive%\usr\root\>>%snu_file%
- echo Aliases=%sndrive%\usr\root\aliases.txt>>%snu_file%
- echo Editor=%editor% %%s>>%snu_file%
- echo Signature=mbox\inetsig.pms>>%snu_file%
- echo colorhelpf whi+>>%snu_file%
- echo colortextf whi+>>%snu_file%
- echo colorheadb blu>>%snu_file%
- echo colorheadf whi>>%snu_file%
- echo colormsgb blu>>%snu_file%
- echo colormsgf whi>>%snu_file%
- echo Extract=~\extract.nws>>%snu_file%
- if "%debug%"=="" goto no_dbg7
- if "%editor%"=="" goto no_dbg7
- if exist %editor% %editor% %snu_file%
- :no_dbg7
- set snu_file=
-
-
- rem ----BANNER-----------------------------------------------
- set snu_file=%sndrive%\etc\uupc\banner
- echo Creating %snu_file%
-
- if not exist %snu_file% goto bann1
- echo %tab% Copying the existing %snu_file% into %snu_file%.BAK
- if exist %snu_file%.bak del %snu_file%.bak>%nul%
- copy %snu_file% %snu_file%.bak>%nul%
- :bann1
-
- echo SNUUPM: %snu_org%>%snu_file%
- if "%debug%"=="" goto no_dbg8
- if "%editor%"=="" goto no_dbg8
- if exist %editor% %editor% %snu_file%
- :no_dbg8
- set snu_file=
-
-
- rem ----SPOOL DIRs-----------------------------------------------
- echo Making the spool directories for the mailserver
- if not exist %sndrive%\usr\spool\%snu_mserv%\nul md %sndrive%\usr\spool\%snu_mserv%>%nul%
- if not exist %sndrive%\usr\spool\%snu_mserv%\c\nul md %sndrive%\usr\spool\%snu_mserv%\c>%nul%
- if not exist %sndrive%\usr\spool\%snu_mserv%\d\nul md %sndrive%\usr\spool\%snu_mserv%\d>%nul%
- if not exist %sndrive%\usr\spool\%snu_mserv%\x\nul md %sndrive%\usr\spool\%snu_mserv%\x>%nul%
-
-
- rem ----MODEM.MDM-----------------------------------------------
- set snu_file=%sndrive%\etc\uupc\modem
- echo Creating the modem file
-
- if not exist %snu_file%.mdm goto modm3
- echo %tab% Copying the existing %snu_file%.mdm into %snu_file%.BAK
- if exist %snu_file%.bak del %snu_file%.bak>%nul%
- copy %snu_file%.mdm %snu_file%.bak>%nul%
- del %snu_file%.mdm
- :modm3
-
- copy %tmp%\mdm\%snu_mdm%.mdm %snu_file%.mdm>%nul%
- if "%editor%"=="" goto modm1
- if not exist %editor% goto modm1
- echo You might have to edit the file %sndrive%\etc\uupc\modem.mdm to ensure
- echo that the correct COM port is being used, that the DIALPREFIX (ATDP or
- echo ATDT) is set for pulse or tone dialing, and that the INSPEED value
- echo is set correctly. I will try to invoke your favourite editor if you
- echo will press any key for me.........
- pause>%nul%
- %editor% %sndrive%\etc\uupc\modem.mdm
- goto modm2
-
- :modm1
- echo %tab% +-----------------------------------------------------
- echo %tab% ! Edit the file %sndrive%\etc\uupc\modem.mdm in order
- echo %tab% ! to check that the correct COM port is being used
- echo %tab% ! and that the INSPEED value is set correctly.
- echo %tab% +-----------------------------------------------------
- echo Press a key to continue
- pause>%nul%
-
- :modm2
-
-
- rem ----PMAIL-----------------------------------------------
- echo Installing the PMAIL programs
- rem %snu_p2% is the path %sndrive%\usr\lib\snuupm
- rem
- if exist %snu_p2%\pmail.exe del %snu_p2%\pmail.exe>%nul%
- if exist %snu_p2%\pegasus.rsc del %snu_p2%\pegasus.rsc>%nul%
- if exist %snu_p2%\common.pmd del %snu_p2%\common.pmd>%nul%
- if exist %snu_p2%\pmdict3.pmd del %snu_p2%\pmdict3.pmd>%nul%
- pkunzip %snu_fpm% %snu_p2% pmail.exe pegasus.rsc common.pmd pmdict3.pmd>%nul%
- if not errorlevel 0 goto pmail1
- goto pmail2
- :pmail1
- echo.
- echo.
- echo Some files have failed to unzip. Maybe this is because you are using
- echo a version of pkunzip earlier than 2.04g.
- echo.
- pause
- :pmail2
-
-
- rem ----DOUGMENU-----------------------------------------------
- echo Installing DOUGMENU.EXE
- rem %snu_p2% is the path %sndrive%\usr\lib\snuupm
- rem
- if exist %snu_p2%\dougmenu.exe del %snu_p2%\dougmenu.exe>%nul%
- pkunzip %snu_fdm% %snu_p2% dougmenu.exe>%nul%
- if not errorlevel 0 goto dmen1
- goto dmen2
- :dmen1
- echo.
- echo.
- echo Some files have failed to unzip. Maybe this is because you are using
- echo a version of pkunzip earlier than 2.04g.
- echo.
- pause
- :dmen2
-
-
- ;-------------------------------------------------------
- ; SNEWS
- ; Not installed if %snu_full% is unset
- ;-------------------------------------------------------
-
- rem
- rem %snu_p2% is the path %sndrive%\usr\lib\snuupm
- rem %snu_fsn% is the filename of the .ZIP file containing the
- rem SNEWS executables.
- rem %snu_snfil% is the list of files specific to SNEWS in SNUUPM.ZIP
- rem %snu_fd3% is the UUPC .ZIP file containing RNEWS.EXE
- rem
- if exist %snu_p2%\addgroup.exe del %snu_p2%\addgroup.exe>%nul%
- if exist %snu_p2%\compress.exe del %snu_p2%\compress.exe>%nul%
- if exist %snu_p2%\expire.exe del %snu_p2%\expire.exe>%nul%
- if exist %snu_p2%\rmgroup.exe del %snu_p2%\rmgroup.exe>%nul%
- if exist %snu_p2%\snews.exe del %snu_p2%\snews.exe>%nul%
- if exist %snu_p2%\unbatch.exe del %snu_p2%\unbatch.exe>%nul%
-
- if exist %snu_p2%\rnews.exe del %snu_p2%\rnews.exe>%nul%
-
- #if %snu_full%
- echo Installing the SNEWS programs
-
- pkunzip %snu_fsn% %snu_p2% addgroup.exe compress.exe expire.exe rmgroup.exe snews.exe unbatch.exe>%nul%
- if not errorlevel 0 goto snews1
-
- pkunzip %snu_fd3% %snu_p2% rnews.exe>%nul%
- if not errorlevel 0 goto snews1
-
- echo Creating a few news groups.
- if exist %snu_p2%\active.bak del %snu_p2%\active.bak>%nul%
- if exist %snu_p2%\active.bat ren %snu_p2%\active.bat active.bak>%nul%
- pkunzip -o -d snuupm.zip %sndrive%\ @%snu_snfil%>%nul%
- if "%editor%"=="" goto snews3
- if not exist %editor% goto snews3
- echo Would you like to edit the ACTIVE.BAT file before the newsgroups
- askenv are created on your PC? [n] /l
- if not "%askenv%"=="y" goto snews3
- %editor% %sndrive%\usr\lib\snuupm\active.bat
-
- :snews3
- call %sndrive%\usr\lib\snuupm\active
- goto snews2
-
- :snews1
- echo.
- echo.
- echo Some files have failed to unzip. Maybe this is because you are using
- echo a version of pkunzip earlier than 2.04g.
- echo.
- pause
- :snews2
-
- #else
- echo SNEWS is not installed
- #endif
-
- echo +--------------------------------------------------------------+
- echo ! End of installation. Press a key to go back to the Main Menu !
- echo +--------------------------------------------------------------+
- pause>%nul%
-
- If you have PKLITE.EXE
- Compress the Executables
-
- set snu_pkf1=mail.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=rmail.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=uucico.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=uucp.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=uustat.com
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=uux.com
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=uuxqt.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- rem
- rem Ignore the news files if SNEWS is not installed.
- rem
-
- if "%snu_full%"=="" goto pklite1
-
- set snu_pkf1=addgroup.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=compress.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=expire.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=rmgroup.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=rnews.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=snews.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- set snu_pkf1=unbatch.exe
- for %%f in ( %snu_pkf1% ) do if exist %snu_p2%\%%f pklite %snu_p2%\%%f
-
- :pklite1
- set snu_pkf1=
-
-
-
- ;---------------------------------------------------------------------
- ; Configure this PC
- ;---------------------------------------------------------------------
- %System Setup (<esc> returns),20,11
-
- Name of this PC
- #ask thissys,Name of this system (less than 8 characters) [%snu_host%],,,
- set snu_tmp=%thissys%
- if not "%snu_tmp%"=="" set snu_host=%thissys%
-
- Domain that this PC belongs to
- #ask thisdom,Domain without leading dot (eg 'ru.ac.za') [%snu_dom%]
- set snu_tmp=%thisdom%
- if not "%snu_tmp%"=="" set snu_dom=%thisdom%
-
- Name of the Mail Server
- #ask thismx,MailServer to which you dial (eg 'kudu') [%snu_mserv%]
- set snu_tmp=%thismx%
- if not "%snu_tmp%"=="" set snu_mserv=%thismx%
-
- Telephone Number of the Mail Server
- #ask thisMXphone,Enter the telephone number [%snu_phone%]
- set snu_tmp=%thisMXphone%
- if not "%snu_tmp%"=="" set snu_phone=%thisMXphone%
-
- Login/userid for this computer on the Mail Server
- #ask thisLogin,Enter the login/userid on the mailhost [%snu_login%]
- set snu_tmp=%thisLogin%
- if not "%snu_tmp"=="" set snu_login=%thisLogin%
-
- Password on the Mail Server
- #ask thispassword,Password this system uses on the Mailserver [%snu_passwd%]
- set snu_tmp=%thispassword%
- if not "%snu_tmp%"=="" set snu_passwd=%thispassword%
-
- Organization that owns this PC
- #ask thisorg,Organization [%snu_org%],,,
- set snu_tmp=%thisorg%
- if not "%snu_tmp%"=="" set snu_org=%thisorg%
-
- Modem (select SAMPLE to configure your own)
- :get_mdm
- echo.
- echo Choose a modem configuration file from one of these. You might have
- echo to edit this file (as %sndrive%\etc\uupc\modem.mdm) once the installation
- echo is complete.
- dir %tmp%\mdm\*.mdm | sort | more
- askenv Which .MDM file do you want -------- /l
- if "%askenv%"=="" goto no_mdm
- if exist %tmp%\mdm\%askenv%.mdm goto got_mdm
- echo You have made a mistake - try again.
- echo Type only the stem of the modem filename, do not type the full path
- echo and do not type the trailing .MDM
- pause
- goto get_mdm
- :got_mdm
- set snu_mdm=%askenv%
- :no_mdm
-
- Baud Rate (PC-to-Modem)
- #ask baud,Baud rate between the PC and the Modem [%snu_baud%],,,
- "57,600"=57600
- "38,400"=38400
- "19,200"=19200
- " 9,600"=9600
- " 4,800"=4800
- " 2,400"=2400
- " 1,200"=1200
- set snu_tmp=%baud%
- if not "%snu_tmp%"=="" set snu_baud=%baud%
-
- kudu.ru.ac.za
- Kudu's Phone Number
- #display,255,255
- "Kudu's telephone number is 311081 in Grahamstown, South Africa"
- ""
- "From within Grahamstown........ 311081"
- "From within South Africa... 0461311081"
- "Internationally.......... +27461311081"
- ;----ends-----------------------------------------------------------
-