Difference between revisions of "OpenSSL"
From CBLFS
Jump to navigationJump to searchm (I fixed the vertical alignment of the table in the "Contents" section.) |
|||
Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
− | | http://www.openssl.org/source/openssl- | + | | http://www.openssl.org/source/openssl-{{OpenSSL-Version}}.tar.gz |
|- | |- | ||
!Download Source: | !Download Source: | ||
− | | ftp://ftp.openssl.org/source/openssl- | + | | ftp://ftp.openssl.org/source/openssl-{{OpenSSL-Version}}.tar.gz |
|- | |- | ||
!Required Patch: | !Required Patch: | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl- | + | | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl-{{OpenSSL-Version}}-fix_manpages-1.patch |
|- | |- | ||
!Required Patch (Multilib): | !Required Patch (Multilib): | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl- | + | | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl-{{OpenSSL-Version}}-allow_lib64-1.patch |
|- | |- | ||
!Required Patch (x86_64 Multilib): | !Required Patch (x86_64 Multilib): | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl- | + | | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl-{{OpenSSL-Version}}-32bit_x86_64-1.patch |
|- | |- | ||
!Required Patch (MIPS): | !Required Patch (MIPS): | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl- | + | | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl-{{OpenSSL-Version}}-mips_support-1.patch |
|} | |} | ||
Line 35: | Line 35: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../openssl- | + | patch -Np1 -i ../openssl-{{OpenSSL-Version}}-fix_manpages-1.patch && |
./config --openssldir=/etc/ssl --prefix=/usr shared && | ./config --openssldir=/etc/ssl --prefix=/usr shared && | ||
make MANDIR=/usr/share/man | make MANDIR=/usr/share/man | ||
Line 43: | Line 43: | ||
make MANDIR=/usr/share/man install && | make MANDIR=/usr/share/man install && | ||
cp -v -r certs /etc/ssl && | cp -v -r certs /etc/ssl && | ||
− | install -v -d -m755 /usr/share/doc/openssl- | + | install -v -d -m755 /usr/share/doc/openssl-{{OpenSSL-Version}} && |
cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \ | cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \ | ||
− | /usr/share/doc/openssl- | + | /usr/share/doc/openssl-{{OpenSSL-Version}} |
== Multilib == | == Multilib == | ||
Line 55: | Line 55: | ||
==== x86_64 ==== | ==== x86_64 ==== | ||
− | patch -Np1 -i ../openssl- | + | patch -Np1 -i ../openssl-{{OpenSSL-Version}}-32bit_x86_64-1.patch && |
./Configure linux-x86_64-32 --openssldir=/etc/ssl --prefix=/usr shared | ./Configure linux-x86_64-32 --openssldir=/etc/ssl --prefix=/usr shared | ||
Line 82: | Line 82: | ||
This patch allows OpenSSL to be installed a dir other then lib. | This patch allows OpenSSL to be installed a dir other then lib. | ||
− | patch -Np1 -i ../openssl- | + | patch -Np1 -i ../openssl-{{OpenSSL-Version}}-allow_lib64-1.patch |
Configure the Package (Use the appropriate command): | Configure the Package (Use the appropriate command): | ||
Line 106: | Line 106: | ||
This patch allows OpenSSL to be installed into a dir other then lib: | This patch allows OpenSSL to be installed into a dir other then lib: | ||
− | patch -Np1 -i ../openssl- | + | patch -Np1 -i ../openssl-{{OpenSSL-Version}}-allow_lib64-1.patch |
Configure the Package (Use the appropriate command): | Configure the Package (Use the appropriate command): | ||
Line 146: | Line 146: | ||
|- | |- | ||
! Installed Directories: | ! Installed Directories: | ||
− | | /etc/ssl, /usr/include/ssl, /usr/lib/engines, /usr/share/doc/openssl- | + | | /etc/ssl, /usr/include/ssl, /usr/lib/engines, /usr/share/doc/openssl-{{OpenSSL-Version}} |
|} | |} | ||
Revision as of 15:54, 15 December 2006
Download Source: | http://www.openssl.org/source/openssl-1.0.1e.tar.gz |
---|---|
Download Source: | ftp://ftp.openssl.org/source/openssl-1.0.1e.tar.gz |
Required Patch: | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl-1.0.1e-fix_manpages-1.patch |
Required Patch (Multilib): | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl-1.0.1e-allow_lib64-1.patch |
Required Patch (x86_64 Multilib): | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl-1.0.1e-32bit_x86_64-1.patch |
Required Patch (MIPS): | http://svn.cross-lfs.org/svn/repos/patches/openssl/openssl-1.0.1e-mips_support-1.patch |
Introduction to OpenSSL
The OpenSSL package contains management tools and libraries relating to cryptography. These are useful for providing cryptography functions to other packages, notably OpenSSH, email applications and web browsers (for accessing HTTPS sites).
Dependencies
Optional
- bc (used by the testsuite)
Non-Multilib
Compile the package:
patch -Np1 -i ../openssl-1.0.1e-fix_manpages-1.patch && ./config --openssldir=/etc/ssl --prefix=/usr shared && make MANDIR=/usr/share/man
Install the package
make MANDIR=/usr/share/man install && cp -v -r certs /etc/ssl && install -v -d -m755 /usr/share/doc/openssl-1.0.1e && cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \ /usr/share/doc/openssl-1.0.1e
Multilib
32Bit
Configure the Package (Use the appropriate command):
x86_64
patch -Np1 -i ../openssl-1.0.1e-32bit_x86_64-1.patch && ./Configure linux-x86_64-32 --openssldir=/etc/ssl --prefix=/usr shared
Sparc
./Configure linux-sparcv9 --openssldir=/etc/ssl --prefix=/usr shared
Mips (Little-Endian)
./Configure linux-mipsel --openssldir=/etc/ssl --prefix=/usr shared
Mips (Big-Endian)
./Configure linux-mips --openssldir=/etc/ssl --prefix=/usr shared
Compile the package:
USE_ARCH=32 make CC="gcc ${BUILD32}" PERL=/usr/bin/perl
Install the package:
USE_ARCH=32 make PERL=/usr/bin/perl MANDIR=/usr/share/man install
N32
This patch allows OpenSSL to be installed a dir other then lib.
patch -Np1 -i ../openssl-1.0.1e-allow_lib64-1.patch
Configure the Package (Use the appropriate command):
Mips (Little-Endian)
./Configure linux-mipsel-n32 --openssldir=/etc/ssl --prefix=/usr shared
Mips (Big-Endian)
./Configure linux-mips-n32 --openssldir=/etc/ssl --prefix=/usr shared
Compile the package:
USE_ARCH=n32 make CC="gcc ${BUILDN32}" PERL=/usr/bin/perl LIBDIR=lib32
Install the package:
USE_ARCH=n32 make PERL=/usr/bin/perl MANDIR=/usr/share/man LIBDIR=lib32 install
64Bit
This patch allows OpenSSL to be installed into a dir other then lib:
patch -Np1 -i ../openssl-1.0.1e-allow_lib64-1.patch
Configure the Package (Use the appropriate command):
x86_64
./Configure linux-x86_64 --openssldir=/etc/ssl --prefix=/usr shared
Sparc
./Configure linux64-sparcv9 --openssldir=/etc/ssl --prefix=/usr shared
Mips (Little-Endian)
./Configure linux-mips64el --openssldir=/etc/ssl --prefix=/usr shared
Mips (Big-Endian)
./Configure linux-mips64 --openssldir=/etc/ssl --prefix=/usr shared
Compile the package:
USE_ARCH=64 make CC="gcc ${BUILD64}" PERL=/usr/bin/perl LIBDIR=lib64
Install the package:
USE_ARCH=64 make PERL=/usr/bin/perl MANDIR=/usr/share/man LIBDIR=lib64 install
Contents
Installed Programs: | c_rehash, openssl |
---|---|
Installed Libraries: | libcrypto.{so,a}, libssl.{so,a} |
Installed Directories: | /etc/ssl, /usr/include/ssl, /usr/lib/engines, /usr/share/doc/openssl-1.0.1e |
Short Descriptions
c_rehash | is a Perl script that scans all files in a directory and adds symbolic links to their hash values. |
---|---|
openssl | is a command-line tool for using the various cryptography functions of OpenSSL's crypto library from the shell. |
libcrypto.{so,a} | implements a wide range of cryptographic algorithms used in various Internet standards. |
libssl.{so,a} | implements the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols. |