/[gentoo-x86]/dev-libs/openssl/openssl-0.9.6i.ebuild
Gentoo

Contents of /dev-libs/openssl/openssl-0.9.6i.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Mar 13 22:27:16 2003 UTC (16 years, 1 month ago) by gmsoft
Branch: MAIN
Branch point for: RELEASE-1_4
Changes since 1.6: +5 -6 lines
Now produce libssl.so too for hppa.

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.6i.ebuild,v 1.6 2003/03/11 21:11:45 seemant Exp $
4
5 IUSE=""
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
9 SRC_URI="http://www.openssl.org/source/${P}.tar.gz"
10 HOMEPAGE="http://www.openssl.org/"
11
12 RDEPEND="virtual/glibc"
13 DEPEND="${RDEPEND} >=dev-lang/perl-5"
14 LICENSE="as-is"
15 SLOT="0"
16 KEYWORDS="x86 ppc alpha sparc mips hppa arm"
17
18 if [ "$PROFILE_ARCH" = "sparc" -a "`uname -m`" = "sparc64" ]; then
19 SSH_TARGET="linux-sparcv8"
20 fi
21
22 src_unpack() {
23 unpack ${A} ; cd ${S}
24
25 patch -p1 < ${FILESDIR}/${PF}-gentoo.diff
26
27 if [ "${ARCH}" = "mips" ]
28 then
29 cd ${S}
30 patch -p1 < ${FILESDIR}/openssl-0.9.6-mips.diff || die
31 fi
32
33 if [ "${ARCH}" = "arm" ]; then
34 # patch linker to add -ldl or things linking aginst libcrypto fail
35 sed -e \
36 's!^"linux-elf-arm"\(.*\)::BN\(.*\)!"linux-elf-arm"\1:-ldl:BN\2!' \
37 Configure > Configure.orig
38 elif [ "${ARCH}" = "hppa" ]; then
39 sed -e \
40 's!^"linux-parisc"\(.*\)::BN\(.*\)::!"linux-parisc"\1:-ldl:BN\2::::::::::dlfcn:linux-shared:-fPIC::.so.\\$(SHLIB_MAJOR).\\$(SHLIB_MINOR)!' \
41 Configure > Configure.orig
42 else
43 cp Configure Configure.orig
44 fi
45 sed -e "s/-O3/$CFLAGS/" -e "s/-m486//" Configure.orig > Configure
46 }
47
48 src_compile() {
49 if [ ${SSH_TARGET} ]; then
50 einfo "Forcing ${SSH_TARGET} compile"
51 ./Configure ${SSH_TARGET} --prefix=/usr \
52 --openssldir=/etc/ssl shared threads || die
53 else
54 ./config --prefix=/usr --openssldir=/etc/ssl shared threads || die
55 fi
56 # i think parallel make has problems
57 make all || die
58 }
59
60 src_install() {
61 make INSTALL_PREFIX=${D} MANDIR=/usr/share/man install || die
62 dodoc CHANGES* FAQ LICENSE NEWS README
63 dodoc doc/*.txt
64 dohtml doc/*
65 insinto /usr/share/emacs/site-lisp
66 doins doc/c-indentation.el
67
68 # The man pages rand.3 and passwd.1 conflict with other packages
69 # Rename them to ssl-* and also make a symlink from openssl-* to ssl-*
70 cd ${D}/usr/share/man/man1
71 mv passwd.1 ssl-passwd.1
72 ln -sf ssl-passwd.1 openssl-passwd.1
73 cd ${D}/usr/share/man/man3
74 mv rand.3 ssl-rand.3
75 ln -sf ssl-rand.3 openssl-rand.3
76
77 # create the certs directory. Previous openssl builds
78 # would need to create /usr/lib/ssl/certs but this looks
79 # to be the more FHS compliant setup... -raker
80 dodir /etc/ssl/certs
81
82 }
83

  ViewVC Help
Powered by ViewVC 1.1.20