Hi,

I would like to propose the following changes to the install:

1. Install man pages in MANDIR=$(INSTALLTOP)/man rather than
MANDIR=$(OPENSSLDIR)/man

2. Install both shared libraries and archive libraries when shared
libraries are built (and are distinguished from archive libraries,
e.g., libfu.a vs. libfu.so).

3. Install shared libraries using symlinks from less versioned names
to more versioned names, instead of installing up to three copies of
the shared library:
  lrwxrwxrwx  libcrypto.so -> libcrypto.so.0
  lrwxrwxrwx  libcrypto.so.0 -> libcrypto.so.0.9.6
  -rw-r--r--  libcrypto.so.0.9.6

A patch make these changes that has been tested on Solaris 8 is
enclosed, below.

--
Scott Page

---------------------------------- 8< ------------------------------------
diff -rc openssl-0.9.6.orig/Configure openssl-0.9.6.new/Configure
*** openssl-0.9.6.orig/Configure        Sun Sep 24 10:27:37 2000
--- openssl-0.9.6.new/Configure Thu Dec 21 11:49:54 2000
***************
*** 825,831 ****
        s/^SHLIB_TARGET=.*/SHLIB_TARGET=$shared_target/;
        s/^SHLIB_MARK1=.*/SHLIB_MARK1=$shared_mark1/;
        s/^SHLIB_MARK2=.*/SHLIB_MARK2=$shared_mark2/;
-       s/^LIBS=.*/LIBS=libcrypto\.so\* libssl\.so\*/ if (!$no_shared);
        print OUT $_."\n";
        }
  close(IN);
--- 825,830 ----
diff -rc openssl-0.9.6.orig/Makefile.org openssl-0.9.6.new/Makefile.org
*** openssl-0.9.6.orig/Makefile.org     Thu Sep 21 04:23:13 2000
--- openssl-0.9.6.new/Makefile.org      Thu Dec 21 11:49:55 2000
***************
*** 170,176 ****
  MAKEFILE= Makefile.ssl
  MAKE=     make -f Makefile.ssl
  
! MANDIR=$(OPENSSLDIR)/man
  MAN1=1
  MAN3=3
  SHELL=/bin/sh
--- 170,176 ----
  MAKEFILE= Makefile.ssl
  MAKE=     make -f Makefile.ssl
  
! MANDIR=$(INSTALLTOP)/man
  MAN1=1
  MAN3=3
  SHELL=/bin/sh
***************
*** 465,470 ****
--- 465,487 ----
                        $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
                        chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
                fi \
+       done
+       @for i in $(SHARED_LIBS) ;\
+       do \
+               if [ -h "$$i" ]; then \
+               (       echo installing $$i; \
+                       cp $$i.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+                               $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
+                       ln -s $$i.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+                               $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.${SHLIB_MAJOR}; 
+\
+                       ln -s $$i.${SHLIB_MAJOR} \
+                               $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
+                       chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
+               elif [ -f "$$i" ]; then \
+               (       echo installing $$i; \
+                       cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
+                       chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
+               fi \
        done
  
  install_docs:

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to