1999-05-13 19:37:32 +08:00
|
|
|
$! INSTALL.COM -- Installs the files in a given directory tree
|
|
|
|
$!
|
|
|
|
$! Author: Richard Levitte <richard@levitte.org>
|
|
|
|
$! Time of creation: 22-MAY-1998 10:13
|
|
|
|
$!
|
2010-01-27 17:18:42 +08:00
|
|
|
$! Changes by Zoltan Arpadffy <zoli@polarhome.com>
|
|
|
|
$!
|
1999-05-13 19:37:32 +08:00
|
|
|
$! P1 root of the directory tree
|
|
|
|
$!
|
|
|
|
$ IF P1 .EQS. ""
|
|
|
|
$ THEN
|
|
|
|
$ WRITE SYS$OUTPUT "First argument missing."
|
2009-05-16 00:36:56 +08:00
|
|
|
$ WRITE SYS$OUTPUT -
|
|
|
|
"It should be the directory where you want things installed."
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXIT
|
|
|
|
$ ENDIF
|
|
|
|
$
|
2009-05-16 00:36:56 +08:00
|
|
|
$ IF (F$GETSYI("CPU").LT.128)
|
|
|
|
$ THEN
|
|
|
|
$ ARCH := VAX
|
|
|
|
$ ELSE
|
|
|
|
$ ARCH = F$EDIT( F$GETSYI( "ARCH_NAME"), "UPCASE")
|
|
|
|
$ IF (ARCH .EQS. "") THEN ARCH = "UNK"
|
|
|
|
$ ENDIF
|
|
|
|
$
|
1999-05-13 19:37:32 +08:00
|
|
|
$ ROOT = F$PARSE(P1,"[]A.;0",,,"SYNTAX_ONLY,NO_CONCEAL") - "A.;0"
|
|
|
|
$ ROOT_DEV = F$PARSE(ROOT,,,"DEVICE","SYNTAX_ONLY")
|
|
|
|
$ ROOT_DIR = F$PARSE(ROOT,,,"DIRECTORY","SYNTAX_ONLY") -
|
|
|
|
- "[000000." - "][" - "[" - "]"
|
|
|
|
$ ROOT = ROOT_DEV + "[" + ROOT_DIR
|
|
|
|
$
|
|
|
|
$ DEFINE/NOLOG WRK_SSLROOT 'ROOT'.] /TRANS=CONC
|
2009-05-16 00:36:56 +08:00
|
|
|
$ DEFINE/NOLOG WRK_SSLLIB WRK_SSLROOT:['ARCH'_LIB]
|
1999-05-13 19:37:32 +08:00
|
|
|
$ DEFINE/NOLOG WRK_SSLINCLUDE WRK_SSLROOT:[INCLUDE]
|
|
|
|
$
|
|
|
|
$ IF F$PARSE("WRK_SSLROOT:[000000]") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLROOT:[000000]
|
2009-05-16 00:36:56 +08:00
|
|
|
$ IF F$PARSE("WRK_SSLLIB:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLLIB:
|
1999-05-13 19:37:32 +08:00
|
|
|
$ IF F$PARSE("WRK_SSLINCLUDE:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLINCLUDE:
|
|
|
|
$
|
2004-03-24 17:52:16 +08:00
|
|
|
$ SDIRS := ,-
|
2010-01-29 20:02:50 +08:00
|
|
|
_'ARCH',-
|
2004-03-24 17:52:16 +08:00
|
|
|
OBJECTS,-
|
2005-11-29 20:46:17 +08:00
|
|
|
MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,WHRLPOOL,-
|
2008-12-16 18:54:28 +08:00
|
|
|
DES,AES,RC2,RC4,RC5,IDEA,BF,CAST,CAMELLIA,SEED,-
|
|
|
|
BN,EC,RSA,DSA,ECDSA,DH,ECDH,DSO,ENGINE,-
|
2004-03-24 17:52:16 +08:00
|
|
|
BUFFER,BIO,STACK,LHASH,RAND,ERR,-
|
2001-10-04 15:34:45 +08:00
|
|
|
EVP,ASN1,PEM,X509,X509V3,CONF,TXT_DB,PKCS7,PKCS12,COMP,OCSP,-
|
2004-03-24 17:52:16 +08:00
|
|
|
UI,KRB5,-
|
2008-12-16 18:54:28 +08:00
|
|
|
STORE,CMS,PQUEUE,TS,JPAKE
|
2010-01-29 20:02:50 +08:00
|
|
|
$ EXHEADER_ := crypto.h,opensslv.h,ebcdic.h,symhacks.h,ossl_typ.h
|
|
|
|
$ EXHEADER__'ARCH' := opensslconf.h
|
2004-03-24 17:52:16 +08:00
|
|
|
$ EXHEADER_OBJECTS := objects.h,obj_mac.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXHEADER_MD2 := md2.h
|
2000-09-09 04:25:49 +08:00
|
|
|
$ EXHEADER_MD4 := md4.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXHEADER_MD5 := md5.h
|
|
|
|
$ EXHEADER_SHA := sha.h
|
|
|
|
$ EXHEADER_MDC2 := mdc2.h
|
|
|
|
$ EXHEADER_HMAC := hmac.h
|
|
|
|
$ EXHEADER_RIPEMD := ripemd.h
|
2005-11-29 20:46:17 +08:00
|
|
|
$ EXHEADER_WHRLPOOL := whrlpool.h
|
2001-10-25 05:21:12 +08:00
|
|
|
$ EXHEADER_DES := des.h,des_old.h
|
2008-12-16 18:54:28 +08:00
|
|
|
$ EXHEADER_AES := aes.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXHEADER_RC2 := rc2.h
|
|
|
|
$ EXHEADER_RC4 := rc4.h
|
|
|
|
$ EXHEADER_RC5 := rc5.h
|
|
|
|
$ EXHEADER_IDEA := idea.h
|
|
|
|
$ EXHEADER_BF := blowfish.h
|
|
|
|
$ EXHEADER_CAST := cast.h
|
2006-06-10 13:38:23 +08:00
|
|
|
$ EXHEADER_CAMELLIA := camellia.h
|
2007-04-24 07:48:59 +08:00
|
|
|
$ EXHEADER_SEED := seed.h
|
2009-01-03 17:25:32 +08:00
|
|
|
$ EXHEADER_MODES := modes.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXHEADER_BN := bn.h
|
2001-03-06 05:17:08 +08:00
|
|
|
$ EXHEADER_EC := ec.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXHEADER_RSA := rsa.h
|
|
|
|
$ EXHEADER_DSA := dsa.h
|
2002-05-23 21:33:08 +08:00
|
|
|
$ EXHEADER_ECDSA := ecdsa.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXHEADER_DH := dh.h
|
2002-08-10 06:34:57 +08:00
|
|
|
$ EXHEADER_ECDH := ecdh.h
|
2000-09-09 04:25:49 +08:00
|
|
|
$ EXHEADER_DSO := dso.h
|
2000-10-27 05:07:28 +08:00
|
|
|
$ EXHEADER_ENGINE := engine.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXHEADER_BUFFER := buffer.h
|
|
|
|
$ EXHEADER_BIO := bio.h
|
|
|
|
$ EXHEADER_STACK := stack.h,safestack.h
|
|
|
|
$ EXHEADER_LHASH := lhash.h
|
|
|
|
$ EXHEADER_RAND := rand.h
|
|
|
|
$ EXHEADER_ERR := err.h
|
|
|
|
$ EXHEADER_EVP := evp.h
|
2000-12-29 06:26:11 +08:00
|
|
|
$ EXHEADER_ASN1 := asn1.h,asn1_mac.h,asn1t.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXHEADER_PEM := pem.h,pem2.h
|
|
|
|
$ EXHEADER_X509 := x509.h,x509_vfy.h
|
|
|
|
$ EXHEADER_X509V3 := x509v3.h
|
2000-06-19 00:06:44 +08:00
|
|
|
$ EXHEADER_CONF := conf.h,conf_api.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXHEADER_TXT_DB := txt_db.h
|
|
|
|
$ EXHEADER_PKCS7 := pkcs7.h
|
|
|
|
$ EXHEADER_PKCS12 := pkcs12.h
|
|
|
|
$ EXHEADER_COMP := comp.h
|
2001-02-20 21:10:14 +08:00
|
|
|
$ EXHEADER_OCSP := ocsp.h
|
2001-05-14 20:22:27 +08:00
|
|
|
$ EXHEADER_UI := ui.h,ui_compat.h
|
2001-10-04 15:34:45 +08:00
|
|
|
$ EXHEADER_KRB5 := krb5_asn.h
|
2004-03-24 17:52:16 +08:00
|
|
|
$! EXHEADER_STORE := store.h,str_compat.h
|
|
|
|
$ EXHEADER_STORE := store.h
|
2008-04-11 09:53:16 +08:00
|
|
|
$ EXHEADER_CMS := cms.h
|
2008-04-12 16:41:05 +08:00
|
|
|
$ EXHEADER_PQUEUE := pqueue.h
|
2006-02-26 18:46:39 +08:00
|
|
|
$ EXHEADER_TS := ts.h
|
2008-12-16 18:54:28 +08:00
|
|
|
$ EXHEADER_JPAKE := jpake.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ LIBS := LIBCRYPTO
|
|
|
|
$
|
2010-01-27 17:18:42 +08:00
|
|
|
$ EXE_DIR := [-.'ARCH'.EXE.CRYPTO]
|
1999-05-13 19:37:32 +08:00
|
|
|
$
|
|
|
|
$ I = 0
|
|
|
|
$ LOOP_SDIRS:
|
|
|
|
$ D = F$EDIT(F$ELEMENT(I, ",", SDIRS),"TRIM")
|
|
|
|
$ I = I + 1
|
|
|
|
$ IF D .EQS. "," THEN GOTO LOOP_SDIRS_END
|
|
|
|
$ tmp = EXHEADER_'D'
|
|
|
|
$ IF D .EQS. ""
|
|
|
|
$ THEN
|
|
|
|
$ COPY 'tmp' WRK_SSLINCLUDE: /LOG
|
|
|
|
$ ELSE
|
2010-01-29 20:02:50 +08:00
|
|
|
$ IF D .EQS. "_''ARCH'"
|
|
|
|
$ THEN
|
|
|
|
$ COPY [-.'ARCH'.CRYPTO]'tmp' WRK_SSLINCLUDE: /LOG
|
|
|
|
$ ELSE
|
|
|
|
$ COPY [.'D']'tmp' WRK_SSLINCLUDE: /LOG
|
|
|
|
$ ENDIF
|
1999-05-13 19:37:32 +08:00
|
|
|
$ ENDIF
|
1999-11-12 09:42:59 +08:00
|
|
|
$ SET FILE/PROT=WORLD:RE WRK_SSLINCLUDE:'tmp'
|
1999-05-13 19:37:32 +08:00
|
|
|
$ GOTO LOOP_SDIRS
|
|
|
|
$ LOOP_SDIRS_END:
|
|
|
|
$
|
|
|
|
$ I = 0
|
|
|
|
$ LOOP_LIB:
|
|
|
|
$ E = F$EDIT(F$ELEMENT(I, ",", LIBS),"TRIM")
|
|
|
|
$ I = I + 1
|
|
|
|
$ IF E .EQS. "," THEN GOTO LOOP_LIB_END
|
|
|
|
$ SET NOON
|
2010-01-27 17:18:42 +08:00
|
|
|
$ IF F$SEARCH(EXE_DIR+E+".OLB") .NES. ""
|
1999-05-13 19:37:32 +08:00
|
|
|
$ THEN
|
2010-01-27 17:18:42 +08:00
|
|
|
$ COPY 'EXE_DIR''E'.OLB WRK_SSLLIB:'E'.OLB/log
|
2009-05-16 00:36:56 +08:00
|
|
|
$ SET FILE/PROT=W:RE WRK_SSLLIB:'E'.OLB
|
1999-05-13 19:37:32 +08:00
|
|
|
$ ENDIF
|
|
|
|
$ ! Preparing for the time when we have shareable images
|
2010-01-27 17:18:42 +08:00
|
|
|
$ IF F$SEARCH(EXE_DIR+E+".EXE") .NES. ""
|
1999-05-13 19:37:32 +08:00
|
|
|
$ THEN
|
2010-01-27 17:18:42 +08:00
|
|
|
$ COPY 'EXE_DIR''E'.EXE WRK_SSLLIB:'E'.EXE/log
|
2009-05-16 00:36:56 +08:00
|
|
|
$ SET FILE/PROT=W:RE WRK_SSLLIB:'E'.EXE
|
1999-05-13 19:37:32 +08:00
|
|
|
$ ENDIF
|
|
|
|
$ SET ON
|
|
|
|
$ GOTO LOOP_LIB
|
|
|
|
$ LOOP_LIB_END:
|
|
|
|
$
|
|
|
|
$ EXIT
|